:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #19231f; background: #eef1eb; }
* { box-sizing: border-box; }
.application-body { margin: 0; background: linear-gradient(145deg, #f5f2e9 0%, #e8eee8 55%, #dfe8e3 100%); min-height: 100vh; }
.app-shell { width: min(1500px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0 42px; }
.page-navigation { min-height: 34px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.section-navigation { display: flex; gap: 5px; }
.section-navigation a { padding: 6px 9px; border-radius: 7px; color: #315e4d; font-weight: 700; text-decoration: none; }
.section-navigation a:hover { background: rgba(255,255,255,.65); }
.app-header { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 22px; }
.eyebrow { margin: 0 0 7px; color: #a44e2b; font-weight: 750; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(34px, 4vw, 58px); line-height: .98; font-weight: 500; }
.lede { margin: 13px 0 0; color: #56625d; }
.header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 9px; }
button { border: 0; border-radius: 9px; padding: 11px 15px; background: #1f5b46; color: white; font: inherit; font-weight: 700; cursor: pointer; }
button.secondary { background: white; color: #33423c; border: 1px solid #c8d1cc; }
button.danger { background: #a33c2f; }
button:disabled { opacity: .55; cursor: wait; }
.button-link { display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; padding: 10px 15px; background: #1f5b46; color: white; font-weight: 700; text-decoration: none; white-space: nowrap; }
.button-link.secondary { background: white; color: #33423c; border: 1px solid #c8d1cc; }
.breadcrumbs { margin: 0; color: #66736d; font-size: 14px; }
.breadcrumbs a { color: #315e4d; }
.page-header { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.narrow-shell { max-width: 1050px; }
.form-shell { max-width: 720px; }
.entity-card-list { display: grid; gap: 12px; }
.entity-card, .entity-table-card, .entity-form { background: rgba(255,255,255,.9); border: 1px solid rgba(38,64,52,.14); border-radius: 14px; box-shadow: 0 12px 36px rgba(31,55,44,.08); }
.entity-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px; }
.entity-card h2 { margin: 0 0 5px; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.entity-card h2 a { color: #19231f; text-decoration: none; }
.entity-card p { margin: 0; color: #66736d; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.row-actions form { margin: 0; }
.entity-form { margin-top: 24px; padding: 24px; display: grid; gap: 18px; }
.entity-form label { display: grid; gap: 7px; color: #415049; font-weight: 700; }
.entity-form input[type="text"], .entity-form input[type="number"], .entity-form select, .entity-form textarea, .inline-enrollment input, .inline-enrollment select { width: 100%; border: 1px solid #b9c6bf; border-radius: 8px; padding: 11px 12px; background: white; color: #19231f; font: inherit; }
.form-context { margin: 0; padding: 11px 12px; border-radius: 8px; background: #eef3ef; }
.form-actions { display: flex; gap: 9px; margin-top: 4px; }
.form-errors, .flash { border-radius: 9px; padding: 12px 15px; }
.form-errors { color: #852f25; background: #f8e5e1; }
.form-errors ul { margin-bottom: 0; }
.flash { margin-bottom: 15px; background: #dceee5; color: #24513f; }
.entity-table-card { overflow: hidden; }
.entity-table { width: 100%; border-collapse: collapse; }
.entity-table th, .entity-table td { padding: 13px 15px; border-bottom: 1px solid #e4eae6; text-align: left; }
.entity-table th { background: #234f3e; color: white; }
.entity-table td:last-child { width: 1%; white-space: nowrap; }
.empty-state { padding: 25px; color: #66736d; text-align: center; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.detail-card { margin-top: 0; align-content: start; }
.detail-card h2, .participation-card h2 { margin: 0; font-family: Georgia, serif; font-weight: 500; }
.detail-card dl { margin: 0; display: grid; grid-template-columns: 120px 1fr; gap: 9px 14px; }
.detail-card dt { color: #68736e; font-weight: 700; }
.detail-card dd { margin: 0; }
.inline-enrollment { display: grid; gap: 13px; }
.inline-enrollment label { display: grid; gap: 6px; font-weight: 700; }
.participation-card { margin-top: 14px; padding-top: 18px; }
.participation-card h2 { padding: 0 15px 16px; }
.save-status { min-width: 110px; text-align: right; color: #627069; font-size: 14px; }
.save-status[data-state="error"] { color: #a33c2f; font-weight: 700; }
.grid-card { overflow: hidden; padding: 12px; border: 1px solid rgba(38, 64, 52, .14); border-radius: 15px; background: rgba(255, 255, 255, .86); box-shadow: 0 18px 50px rgba(31, 55, 44, .10); }
.tabulator { border: 0 !important; background: transparent !important; font-size: 14px; }
.tabulator .tabulator-header { border: 0 !important; background: #234f3e !important; color: #f7fbf9 !important; }
.tabulator .tabulator-header .tabulator-col { background: #234f3e !important; border-color: rgba(255,255,255,.32) !important; color: #f7fbf9 !important; }
.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title { color: #f7fbf9 !important; font-weight: 750; }
.tabulator .tabulator-header .tabulator-col.tabulator-col-group > .tabulator-col-content .tabulator-col-title { color: #fff !important; font-weight: 800; }
.tabulator .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols { border-color: rgba(255,255,255,.32) !important; }
.tabulator .tabulator-header .tabulator-col[aria-sort="none"] .tabulator-col-sorter .tabulator-arrow { border-bottom-color: rgba(255,255,255,.72) !important; }
.tabulator .tabulator-header .tabulator-col[aria-sort="ascending"] .tabulator-col-sorter .tabulator-arrow { border-bottom-color: #fff !important; }
.tabulator .tabulator-header .tabulator-col[aria-sort="descending"] .tabulator-col-sorter .tabulator-arrow { border-top-color: #fff !important; }
.tabulator .tabulator-header .round-sort-header > .tabulator-col-content { cursor: pointer; }
.tabulator .tabulator-header .round-sort-header > .tabulator-col-content:hover { background: rgba(255,255,255,.08); }
.tabulator .tabulator-row { border-color: #e6ebe7 !important; }
.tabulator .tabulator-row:nth-child(even) { background: #f5f7f4; }
.tabulator .tabulator-cell[tabulator-field="name"] { font-weight: 650; }
.tabulator .tabulator-tableholder { -webkit-overflow-scrolling: touch; overscroll-behavior-inline: contain; }
.footnote { color: #68736e; font-size: 13px; margin: 13px 4px 0; }
@media (max-width: 800px) { .app-shell { width: min(100% - 20px, 1500px); padding-top: 14px; } .page-navigation { margin-bottom: 16px; flex-wrap: wrap; gap: 7px 14px; } .app-header, .page-header, .entity-card { align-items: flex-start; flex-direction: column; } .header-actions, .row-actions { justify-content: flex-start; flex-wrap: wrap; } .app-header .header-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .app-header .header-actions > * { min-width: 0; margin: 0; } .app-header .header-actions .button-link, .app-header .header-actions button { width: 100%; } .app-header .header-actions .save-status { order: -1; grid-column: 1 / -1; min-width: 0; padding-bottom: 2px; text-align: left; } .app-header .header-actions button[data-action="tournament-grid#pair"], .app-header .header-actions form { grid-column: 1 / -1; } .grid-card { padding: 4px; border-radius: 11px; } .tabulator { font-size: 13px; } .save-status { text-align: left; } .entity-table-card { overflow-x: auto; } .detail-grid { grid-template-columns: 1fr; } }
