@font-face {
    font-family:'DM Sans';
    font-style:normal;
    font-weight:400;
    font-display:swap;
    src:url('../fonts/dm-sans-400.ttf') format('truetype')
}

@font-face {
    font-family:'DM Sans';
    font-style:normal;
    font-weight:500;
    font-display:swap;
    src:url('../fonts/dm-sans-500.ttf') format('truetype')
}

@font-face {
    font-family:'DM Sans';
    font-style:normal;
    font-weight:600;
    font-display:swap;
    src:url('../fonts/dm-sans-600.ttf') format('truetype')
}

@font-face {
    font-family:'DM Sans';
    font-style:normal;
    font-weight:700;
    font-display:swap;
    src:url('../fonts/dm-sans-700.ttf') format('truetype')
}

@font-face {
    font-family:Fraunces;
    font-style:normal;
    font-weight:500;
    font-display:swap;
    src:url('../fonts/fraunces-500.ttf') format('truetype')
}

@font-face {
    font-family:Fraunces;
    font-style:normal;
    font-weight:600;
    font-display:swap;
    src:url('../fonts/fraunces-600.ttf') format('truetype')
}

:root {
    --paper:#f7f5ef;
    --surface:#fffefa;
    --ink:#242d28;
    --muted:#606a62;
    --green:#184d3e;
    --green-dark:#10392e;
    --green-soft:#e7eee6;
    --line:#d9ddd4;
    --danger:#a0352b;
    --danger-soft:#fbefeb;
    --radius:12px;
    --font-body:'DM Sans',sans-serif;
    --font-display:Fraunces,Georgia,serif;
    --space:24px;
    --motion:140ms;
    --ease:cubic-bezier(.16,1,.3,1)
}

* {
    box-sizing:border-box
}

body {
    margin:0;
    background:var(--paper);
    color:var(--ink);
    font-family:var(--font-body);
    font-size:15px;
    line-height:1.6;
    -webkit-font-smoothing:antialiased
}

::selection {
    background:#cadcc8;
    color:var(--green-dark)
}

* {
    scrollbar-color:#a9b7a8 var(--paper);
    scrollbar-width:thin
}

a {
    color:inherit;
    text-decoration:none;
    text-underline-offset:4px
}

button,input,select {
    font:inherit
}

button,a,input,select {
    -webkit-tap-highlight-color:transparent
}

button {
    cursor:pointer
}

input,select {
    caret-color:var(--green)
}

input::placeholder {
    color:#687169;
    opacity:1
}

button:disabled {
    opacity:.6;
    cursor:wait
}

:focus-visible {
    outline:3px solid #64856b;
    outline-offset:4px
}

svg {
    flex-shrink:0;
    vertical-align:middle
}

h1,h2,h3,p {
    margin-top:0
}

h1,h2 {
    font-family:var(--font-display);
    font-weight:500;
    text-wrap:balance
}

h1 {
    font-size:clamp(30px,3.1vw,42px);
    letter-spacing:-.03em;
    line-height:1.18;
    margin-bottom:12px
}

h2 {
    font-size:26px;
    line-height:1.25;
    letter-spacing:-.02em;
    margin-bottom:12px
}

p {
    color:var(--muted);
    max-width:70ch
}

.visually-hidden {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip-path:inset(50%);
    white-space:nowrap;
    border:0
}

.skip-link {
    position:absolute;
    top:-100px;
    left:16px;
    padding:12px 20px;
    background:var(--green);
    color:white;
    z-index:10
}

.skip-link:focus {
    top:12px
}

.brand {
    display:inline-flex;
    align-items:center;
    gap:10px;
    font-size:25px;
    font-weight:700;
    letter-spacing:-.04em;
    line-height:1
}

.brand-dot {
    color:var(--green);
    margin-left:-10px
}

.button {
    display:inline-flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    min-height:46px;
    padding:10px 20px;
    border:1px solid transparent;
    border-radius:7px;
    background:var(--green);
    color:#fffefa;
    font-size:14px;
    font-weight:600;
    line-height:1.5;
    white-space:nowrap
}

.button:hover {
    background:var(--green-dark)
}

.button.secondary {
    background:transparent;
    border-color:#bec8bc;
    color:var(--ink)
}

.button.secondary:hover {
    background:var(--green-soft)
}

.button.danger {
    background:var(--danger)
}

.button.danger:hover {
    background:#85291f
}

.full-width {
    width:100%
}

.text-link {
    text-decoration:underline;
    color:var(--green);
    font-weight:500
}

.text-link:hover {
    text-decoration-thickness:2px
}

.icon-button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    border:0;
    border-radius:6px;
    background:transparent;
    color:var(--muted)
}

.icon-button:hover {
    background:var(--green-soft);
    color:var(--green)
}

.danger-text {
    color:var(--danger)
}

.danger-text:hover {
    background:var(--danger-soft);
    color:var(--danger)
}

.app-page {
    display:grid;
    grid-template-columns:236px minmax(0,1fr);
    min-height:100dvh
}

.sidebar {
    display:flex;
    flex-direction:column;
    padding:36px 22px 24px;
    border-right:1px solid var(--line);
    background:#efeee6
}

.sidebar .brand {
    padding-left:8px
}

.workspace-label {
    font-size:12px;
    font-weight:600;
    margin:58px 12px 14px;
    color:var(--muted)
}

.sidebar nav {
    display:grid;
    gap:6px
}

.sidebar nav > .button { white-space: normal; text-align: left; padding-inline: 12px; }

.nav-link {
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 14px;
    border-radius:7px;
    font-weight:500;
    color:var(--muted);
    min-height:46px
}

.nav-link:hover {
    background:#e4e7dc;
    color:var(--ink)
}

.nav-link.is-current {
    background:#dae5d7;
    color:var(--green);
    font-weight:700
}

.sidebar-account {
    display:flex;
    gap:10px;
    align-items:center;
    margin-top:auto;
    padding-top:40px
}

.avatar {
    display:inline-flex;
    justify-content:center;
    align-items:center;
    width:38px;
    height:38px;
    border-radius:50%;
    background:#e4e9dd;
    color:var(--green);
    font-weight:600;
    flex-shrink:0;
    text-transform:uppercase
}

.account-name {
    min-width:0;
    flex:1;
    font-size:12px
}

.account-name strong {
    display:block;
    overflow-wrap:anywhere;
    color:var(--ink);
    font-size:13px;
    line-height:1.4
}

.account-name span {
    color:var(--muted);
    font-size:11px
}

.sidebar-account .icon-button {
    width:32px
}

.main-content {
    padding:52px clamp(24px,3.5vw,64px);
    min-width:0
}

.page-header {
    display:flex;
    justify-content:space-between;
    gap:24px;
    align-items:center;
    margin-bottom:36px
}

.page-header p {
    margin:0
}

.page-header .button {
    flex-shrink:0
}

.badge {
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:4px 11px;
    border-radius:20px;
    white-space:nowrap;
    font-size:12px;
    font-weight:600
}

.badge.active {
    background:var(--green-soft);
    color:var(--green)
}

.badge.active:before {
    content:'';
    width:5px;
    height:5px;
    border-radius:50%;
    background:var(--green)
}

.badge.inactive {
    background:#ecece7;
    color:#5f655e
}

.badge.neutral {
    border:1px solid #bfc9bb;
    color:var(--muted);
    background:transparent
}

.users-surface {
    border:1px solid var(--line);
    border-radius:var(--radius);
    background:var(--surface);
    overflow:hidden
}

.filter-bar {
    display:flex;
    gap:12px;
    align-items:center;
    padding:22px 24px;
    border-bottom:1px solid var(--line);
    flex-wrap:wrap
}

.search-control {
    position:relative;
    flex:1;
    min-width:200px
}

.search-control svg {
    position:absolute;
    top:13px;
    left:14px;
    color:var(--muted)
}

.search-control input {
    padding-left:42px;
    width:100%
}

input:not([type=checkbox]),select {
    min-height:46px;
    max-width:100%;
    border:1px solid #bfc8bb;
    border-radius:7px;
    background:var(--surface);
    color:var(--ink);
    padding:10px 13px;
    line-height:1.5
}

input:not([type=checkbox]):focus,select:focus {
    border-color:var(--green)
}

.search-control input {
    padding-left:42px
}

.table-hint {
    display:none
}

.table-meta {
    display:flex;
    justify-content:space-between;
    gap:16px;
    padding:16px 24px;
    font-size:12px;
    color:var(--muted)
}

.table-scroll {
    overflow-x:auto
}

table {
    width:100%;
    border-collapse:collapse;
    text-align:left;
    font-size:14px
}

th {
    padding:12px 24px;
    background:#f1f3eb;
    color:var(--muted);
    font-size:12px;
    font-weight:500;
    white-space:nowrap
}

td {
    padding:18px 24px;
    border-bottom:1px solid #e7e9e1;
    vertical-align:middle
}

tbody tr:last-child td {
    border-bottom:0
}

tbody tr:hover,tbody tr:focus-within {
    background:#f7f8f2
}

.user-identity {
    display:flex;
    align-items:center;
    gap:12px;
    min-width:220px
}

.user-details {
    min-width:0;
    max-width:38ch
}

.user-details strong {
    display:block;
    font-weight:600;
    overflow-wrap:anywhere;
    line-height:1.4
}

.user-details>span {
    display:block;
    color:var(--muted);
    font-size:12px;
    overflow-wrap:anywhere;
    margin-top:3px
}

.you-label {
    font-family:var(--font-body);
    font-size:10px;
    font-weight:500;
    background:var(--green-soft);
    padding:2px 5px;
    margin-left:5px;
    border-radius:3px;
    color:var(--green)
}

.date-cell {
    font-variant-numeric:tabular-nums;
    color:var(--muted);
    white-space:nowrap
}

.actions-cell {
    text-align:right
}

.row-actions {
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:8px;
    min-width:110px
}

.row-link {
    display:inline-flex;
    align-items:center;
    gap:7px;
    min-height:42px;
    color:var(--green);
    font-size:13px;
    font-weight:500
}

.row-link:hover {
    text-decoration:underline
}

.pagination {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    border-top:1px solid var(--line);
    padding:18px 24px;
    font-size:12px;
    color:var(--muted)
}

.pagination>div {
    display:flex;
    align-items:center;
    gap:16px;
    flex-wrap:wrap
}

.pagination a {
    font-weight:600;
    color:var(--green);
    padding:8px 4px;
    text-decoration:underline
}

.pagination [aria-disabled] {
    opacity:.7
}

.empty-state {
    text-align:center;
    padding:58px 24px 64px
}

.empty-state svg {
    color:var(--muted);
    margin-bottom:18px
}

.empty-state h2 {
    font-size:24px
}

.empty-state p {
    margin:0 auto 18px
}

.back-link {
    display:inline-flex;
    align-items:center;
    gap:9px;
    color:var(--muted);
    font-size:13px;
    margin-bottom:26px;
    min-height:30px
}

.back-link:hover {
    color:var(--green);
    text-decoration:underline
}

.form-layout {
    display:grid;
    grid-template-columns:minmax(0,720px) minmax(180px,240px);
    gap:clamp(24px,4vw,64px);
    align-items:start
}

.user-form {
    border:1px solid var(--line);
    border-radius:var(--radius);
    background:var(--surface);
    padding:28px 32px
}

.form-section+.form-section {
    border-top:1px solid var(--line);
    padding-top:26px;
    margin-top:10px
}

.form-section h2 {
    font-family:var(--font-body);
    font-size:16px;
    font-weight:600;
    letter-spacing:0;
    margin-bottom:20px
}

.section-description {
    font-size:13px;
    margin-top:-10px;
    margin-bottom:20px
}

.field {
    margin-bottom:22px;
    min-width:0
}

.field label {
    display:block;
    font-size:13px;
    font-weight:500;
    margin-bottom:7px
}

.field input,.field select {
    width:100%
}

.field-hint {
    font-size:12px;
    margin:6px 0 0
}

.field-hint:empty {
    display:none
}

.field-error {
    color:var(--danger);
    font-size:12px;
    margin:6px 0 0
}

.field-error:empty {
    display:none
}

[aria-invalid=true] {
    border-color:var(--danger)!important
}

.form-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px
}

.form-actions {
    display:flex;
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:12px;
    border-top:1px solid var(--line);
    padding-top:24px;
    margin-top:6px
}

.form-note {
    padding-top:20px;
    color:var(--green)
}

.form-note h2 {
    font-size:22px;
    margin-top:18px
}

.form-note p {
    font-size:13px
}

.notice {
    padding:16px 20px;
    border-radius:8px;
    margin-bottom:24px;
    font-size:13px;
    overflow-wrap:anywhere
}

.notice.success {
    display:flex;
    gap:10px;
    align-items:center;
    background:var(--green-soft);
    color:var(--green)
}

.notice.error {
    background:var(--danger-soft);
    color:var(--danger);
    border:1px solid #e1bcb3
}

.notice ul {
    padding-left:20px;
    margin:6px 0 0
}

.notice a {
    text-decoration:underline
}

.delete-panel {
    max-width:640px;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:32px
}

.delete-panel>svg {
    color:var(--danger);
    margin-bottom:20px
}

.delete-panel h2 {
    overflow-wrap:anywhere
}

.delete-panel p {
    font-size:14px;
    overflow-wrap:anywhere
}

.overview {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:40px;
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
    padding:48px 0
}

.overview h2 {
    font-size:34px
}

.overview p {
    margin-bottom:24px
}

.overview-stats {
    display:flex;
    gap:48px;
    margin:0;
    text-align:right;
    flex-shrink:0
}

.overview-stats dt {
    font-size:12px;
    color:var(--muted)
}

.overview-stats dd {
    font-family:var(--font-display);
    font-size:44px;
    color:var(--green);
    font-variant-numeric:tabular-nums;
    margin:4px 0 0
}

.next-section {
    display:flex;
    gap:20px;
    align-items:flex-start;
    padding-top:36px
}

.section-mark {
    padding:10px;
    background:#e8ebe0;
    border-radius:8px;
    color:var(--green)
}

.next-section h2 {
    font-family:var(--font-body);
    font-size:16px;
    font-weight:500;
    letter-spacing:0
}

.next-section p {
    font-size:14px;
    max-width:62ch
}

.login-layout {
    min-height:100dvh;
    display:grid;
    grid-template-columns:48% minmax(0,1fr)
}

.login-story {
    background:#e6e9dc;
    padding:44px clamp(30px,4.7vw,80px);
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    min-width:0
}

.story-content {
    margin:auto 0;
    padding:90px 0
}

.story-content h1 {
    font-size:clamp(42px,4.9vw,76px);
    line-height:1.08;
    letter-spacing:-.04em;
    color:var(--green-dark);
    margin-bottom:28px
}

.story-content h1 em {
    font-style:normal;
    color:var(--green)
}

.story-content p {
    font-size:17px;
    line-height:1.6;
    color:#505e4e
}

.story-footer {
    font-size:12px;
    color:#53624f
}

.login-form-panel {
    display:flex;
    align-items:center;
    justify-content:center;
    padding:64px 40px
}

.login-form-wrap {
    width:100%;
    max-width:370px
}

.access-symbol {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:54px;
    height:54px;
    border:1px solid #c8d2bf;
    border-radius:14px;
    color:var(--green);
    margin-bottom:28px
}

.login-form-wrap h2 {
    font-size:36px;
    margin-bottom:10px
}

.intro {
    font-size:14px;
    margin-bottom:30px
}

.checkbox {
    display:flex;
    align-items:center;
    gap:10px;
    font-size:13px;
    margin:4px 0 28px;
    cursor:pointer
}

input[type=checkbox] {
    accent-color:var(--green);
    width:17px;
    height:17px;
    flex-shrink:0
}

.login-help {
    font-size:12px;
    line-height:1.8;
    text-align:center;
    margin:28px 0
}

.private-note {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    font-size:11px;
    color:var(--muted);
    border-top:1px solid var(--line);
    padding-top:24px
}





@media(hover:hover) and (prefers-reduced-motion:no-preference) {
    .button {
        transition:transform var(--motion) var(--ease)
    }
    .button:active:not(:focus-visible) {
        transform:translateY(1px)
    }
}

@media(prefers-reduced-motion:reduce) {
    *,*::before,*::after {
        animation:none!important;
        transition:none!important;
        scroll-behavior:auto!important
    }
}

@media(min-width:1500px) {
    .main-content {
        max-width:1600px;
        width:100%;
        margin-inline:auto
    }
}

@media(max-width:1100px) {
    .app-page {
        grid-template-columns:210px minmax(0,1fr)
    }
    .sidebar {
        padding-inline:16px
    }
    .main-content {
        padding:40px 28px
    }
    .form-layout {
        grid-template-columns:minmax(0,1fr)
    }
    .form-note {
        max-width:60ch;
        padding-top:0
    }
    .form-note h2 {
        display:inline;
        margin-left:8px
    }
    .form-note p {
        margin:12px 0
    }
    .table-meta {
        flex-direction:column;
        gap:4px
    }
    .overview {
        gap:24px;
        align-items:flex-start
    }
    .overview-stats {
        gap:24px
    }
    .overview h2 {
        font-size:29px
    }
    .overview-stats dd {
        font-size:36px
    }
}

@media(max-width:760px) {
    .app-page {
        display:block
    }
    .sidebar {
        padding:18px 20px;
        border-right:0;
        border-bottom:1px solid var(--line);
        display:grid;
        grid-template-columns:1fr auto;
        gap:16px
    }
    .sidebar .brand {
        font-size:23px;
        padding-left:0
    }
    .sidebar .brand img {
        width:32px;
        height:32px
    }
    .workspace-label {
        display:none
    }
    .sidebar nav {
        grid-row:2;
        grid-column:1/-1;
        display:flex;
        gap:8px
    }
    .nav-link {
        padding:8px 14px;
        min-height:42px;
        font-size:13px
    }
    .sidebar-account {
        padding:0;
        margin:0;
        gap:6px
    }
    .sidebar-account .avatar {
        display:none
    }
    .account-name {
        max-width:140px;
        text-align:right
    }
    .main-content {
        padding:30px 20px 40px
    }
    .page-header {
        align-items:flex-start;
        margin-bottom:26px;
        gap:20px;
        flex-wrap:wrap
    }
    .page-header h1 {
        font-size:32px
    }
    .page-header p {
        font-size:13px
    }
    .filter-bar {
        padding:16px;
        gap:10px
    }
    .search-control {
        flex-basis:100%
    }
    .status-control {
        flex:1
    }
    .status-control select {
        width:100%
    }
    .table-meta {
        padding-inline:16px
    }
    th,td {
        padding-inline:16px
    }
    .pagination {
        flex-direction:column;
        align-items:flex-start;
        padding:16px;
        gap:6px
    }
    .form-layout {
        gap:24px
    }
    .user-form {
        padding:24px 20px
    }
    .form-grid {
        grid-template-columns:1fr;
        gap:0
    }
    .overview {
        flex-direction:column;
        padding:30px 0;
        gap:32px
    }
    .overview-stats {
        gap:48px;
        text-align:left
    }
    .overview h2 {
        font-size:30px
    }
    .next-section {
        gap:14px
    }
    .login-layout {
        grid-template-columns:1fr
    }
    .login-story {
        padding:26px 24px
    }
    .story-content {
        padding:38px 0 0;
        margin:0
    }
    .story-content h1 {
        font-size:38px;
        line-height:1.12;
        margin:0
    }
    .story-content h1 br {
        display:none
    }
    .story-content p,.story-footer {
        display:none
    }
    .login-form-panel {
        padding:38px 24px 40px
    }
    .login-form-wrap {
        max-width:430px
    }
    .access-symbol {
        display:none
    }
    .login-form-wrap h2 {
        font-size:30px
    }
    .login-help {
        margin-bottom:20px
    }
    .delete-panel {
        padding:24px 20px
    }
    .delete-panel h2 {
        font-size:24px
    }
}

@media(max-width:380px) {
    .sidebar {
        padding-inline:16px
    }
    .account-name {
        max-width:90px
    }
    .main-content {
        padding-inline:16px
    }
    .table-meta span:last-child {
        font-size:11px
    }
    .form-actions .button {
        flex:1
    }
    .user-form {
        padding-inline:16px
    }
}

@media(max-width:760px) {
    .table-hint {
        display:block;
        font-size:12px;
        padding:0 16px;
        margin-bottom:16px;
        color:var(--muted)
    }
}

/* Sorteos reuse the directory and form surfaces of the administration shell. */
.confirm-dialog {
    width: min(480px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
}
.status-toggle { border: 0; background: transparent; padding: 6px 0; min-height: 36px; font: inherit; font-size: 13px; cursor: pointer; }
.status-toggle:hover { text-decoration: underline; }
.status-toggle:disabled { opacity: .6; cursor: wait; }
.user-form > .delete-link { margin: 24px 0 0; }
.confirm-dialog::backdrop { background: rgb(36 45 40 / 55%); }
.confirm-dialog h2 { font-size: 26px; line-height: 1.2; margin: 0 0 18px; overflow-wrap: anywhere; }
.confirm-dialog p { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.confirm-dialog .form-actions { margin-top: 24px; }
html:has(.confirm-dialog[open]) { overflow: hidden; }
@media(max-width:380px) { .confirm-dialog { padding: 20px; } .confirm-dialog .form-actions { flex-wrap: wrap; } }
.raffles-table { min-width: 820px; }
.raffle-identity { display: grid; gap: 6px; min-width: 170px; max-width: 310px; }
.raffle-identity a { overflow-wrap: anywhere; white-space: normal; }
.raffle-identity code, .cell-note { font-size: 12px; color: var(--muted); }
.cell-note { display: block; margin-top: 7px; }
.numeric-cell { text-align: right; font-variant-numeric: tabular-nums; }
.table-footnote { font-size: 12px; color: var(--muted); padding: 16px 24px; margin: 0; border-top: 1px solid var(--line); }
.page-header h1 { overflow-wrap: anywhere; }
.page-header > div { min-width: 0; }
@media(max-width:760px) { .sidebar nav { flex-wrap: wrap; } .table-footnote { padding-inline: 16px; } }

.ticket-totals { display: flex; gap: 16px 24px; flex-wrap: wrap; align-items: baseline; padding: 22px 24px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.ticket-totals strong { color: var(--ink); }
.tickets-table { min-width: 0; }
.ticket-number { font-variant-numeric: tabular-nums; font-weight: 600; }
@media(max-width:760px) { .ticket-totals { padding-inline: 16px; } .tickets-table th, .tickets-table td { padding: 12px 10px; } }
.tickets-surface .status-control { min-width: 170px; }
.tickets-surface .table-footnote { max-width: none; }

.registration-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.participant-lookup { margin-bottom: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.participant-lookup .filter-bar { border-bottom: 0; }
.lookup-results { display: grid; gap: 12px; padding: 0 24px 24px; }
.lookup-results p { margin-bottom: 0; }
.participants-table, .tickets-table.has-participants { min-width: 720px; }
.ticket-row-actions { flex-wrap: wrap; gap: 8px 20px; }
.participant-tickets { margin-top: 36px; }
.participant-tickets h2 { font-size: 24px; margin: 0; }
input[type=file] { width: 100%; min-width: 0; }
input::file-selector-button { padding: 6px 10px; margin-right: 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--green-soft); color: var(--green); font: inherit; cursor: pointer; }
@media(max-width:600px) { .registration-settings { grid-template-columns: minmax(0, 1fr); } .lookup-results { padding-inline: 16px; } }
.receipt-dialog { width: min(1100px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.receipt-dialog::backdrop { background: rgb(36 45 40 / 75%); }
.receipt-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.receipt-toolbar h2 { margin: 0; font-size: 24px; }
.receipt-content { overflow: auto; max-height: calc(100dvh - 160px); }
.receipt-content img { display: block; max-width: 100%; max-height: calc(100dvh - 200px); width: auto; height: auto; margin-inline: auto; }
.receipt-content img.is-zoomed { max-width: none; max-height: none; }
.receipt-controls { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.receipt-content iframe { display: block; width: 100%; height: calc(100dvh - 190px); min-height: 240px; border: 0; }
.receipt-content [hidden] { display: none; }
html:has(.receipt-dialog[open]) { overflow: hidden; }
@media(max-width:600px) { .receipt-dialog { padding: 16px; } .receipt-toolbar h2 { font-size: 20px; } }
.ticket-history { margin-top: 36px; padding: 24px; scroll-margin-top: 24px; }
.participant-filters { display: grid; grid-template-columns: minmax(150px, 2fr) minmax(150px, 2fr) minmax(100px, 1fr) auto; align-items: end; }
.participant-filters .field { margin: 0; min-width: 0; }
.tracking-nav { display: flex; gap: 28px; margin: 0 0 24px; border-bottom: 1px solid var(--line); }
.tracking-nav a { padding: 12px 0; text-decoration: none; }
.tracking-nav .is-selected { border-bottom: 2px solid var(--green); font-weight: 600; }
.tracking-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
.tracking-filters .field { min-width: 0; margin: 0; }
.tracking-filter-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; grid-column: 1 / -1; }
.tracking-table { min-width: 850px; }
.movements-table { min-width: 900px; }
.tracking-table td, .movements-table td { overflow-wrap: anywhere; }
.movements-table td { max-width: 280px; }
.movements-table time { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media(max-width:1100px) { .tracking-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width:600px) { .tracking-filters { grid-template-columns: minmax(0, 1fr); } }
.participant-filters .search-control { min-width: 0; width: 100%; }
.participant-filters > .text-link { grid-column: 1 / -1; justify-self: start; }
.participant-assignments { display: grid; gap: 10px; max-width: 300px; overflow-wrap: anywhere; }
.integration-section { margin-top: 32px; }
.section-bar { padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.section-bar h2 { margin: 0 0 8px; font-size: 24px; }
.section-bar p { margin: 0; font-size: 14px; color: var(--muted); }
.integrations-table, .imports-table { min-width: 640px; }
.endpoint-url { max-width: 350px; overflow-wrap: anywhere; white-space: normal; }
.imports-table td { overflow-wrap: anywhere; max-width: 300px; }
@media(max-width:1100px) { .participant-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media(max-width:600px) { .participant-filters { grid-template-columns: minmax(0, 1fr); } .section-bar { padding: 20px 16px; align-items: flex-start; flex-direction: column; } }
.ticket-history h2 { font-size: 24px; margin: 0 0 12px; }
.ticket-history-list { list-style: none; margin: 24px 0 0; padding: 0; }
.ticket-history-list li { border-top: 1px solid var(--line); padding: 20px 0; overflow-wrap: anywhere; }
.ticket-history-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.ticket-history-heading time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ticket-history-list p { margin: 8px 0 0; }
@media(max-width:600px) { .ticket-history { padding: 20px 16px; } }

.registration-filters .status-control { min-width: 170px; }
.draw-option h3 { margin: 0 0 12px; font-size: 18px; }
.public-share { overflow-wrap: anywhere; margin: 0 0 24px; }
.draw-option p { font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.draw-option .button { white-space: normal; text-align: center; }
[data-draw-fallback][hidden] { display: none; }
[data-reset-fallback][hidden] { display: none; }
.field-hint { overflow-wrap: anywhere; }
.draw-winner { font-size: 24px; font-weight: 600; overflow-wrap: anywhere; }
.draw-record { margin: 24px 0; }
.draw-record > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.draw-record dt { color: var(--muted); font-size: 14px; }
.draw-record dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
@media(max-width:600px) { .draw-record > div { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
@media(max-width:600px) { .registration-filters .status-control { flex-basis: 100%; } .registration-filters .status-control select { width: 100%; } }
