:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.45;font-weight:400;color:#21302b;background:#f4f6f4;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--ink: #21302b;--muted: #6d7772;--line: #d8dfda;--surface: #ffffff;--surface-strong: #eef3ef;--primary: #0f766e;--primary-dark: #0b5d57;--primary-contrast: #ffffff;--primary-focus: rgba(15, 118, 110, .16);--accent: #b4432e;--amber: #c4861f;--danger: #b42318;--success: #1f7a4d;--shadow: 0 18px 40px rgba(33, 48, 43, .14)}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,select{font:inherit;letter-spacing:0}button{border:0}a{color:var(--primary-dark)}.app-shell{min-height:100vh}.topbar{position:sticky;top:0;z-index:10;display:grid;grid-template-columns:auto minmax(280px,1fr) auto;align-items:center;gap:18px;padding:12px 24px;border-bottom:1px solid var(--line);background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.brand{display:inline-flex;align-items:center;gap:10px;min-height:44px;color:var(--ink);background:transparent;font-weight:800;cursor:pointer}.brand img{width:52px;height:32px;object-fit:contain;padding:2px;border:1px solid var(--line);border-radius:6px;background:var(--surface)}.main-nav,.toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.toolbar{justify-content:flex-end}.language-switch{display:inline-flex;align-items:center;gap:4px;min-height:38px;padding:3px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.flag-button{display:grid;place-items:center;width:34px;height:30px;border-radius:6px;color:var(--muted);background:transparent;cursor:pointer;font-size:1.15rem}.flag-button.active{color:var(--primary-dark);background:var(--surface-strong);box-shadow:inset 0 0 0 1px var(--primary)}.flag-button:not(.active):hover{background:#f4f6f4}.nav-button,.icon-text,.icon-only,.secondary,.ghost{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;border-radius:8px;border:1px solid transparent;cursor:pointer;white-space:nowrap;transition:background .14s ease,border-color .14s ease,color .14s ease}.nav-button{padding:0 12px;color:var(--muted);background:transparent}.nav-button.active,.nav-button:hover{color:var(--primary-dark);background:var(--surface-strong)}.icon-text{padding:0 14px;color:var(--primary-contrast);background:var(--primary)}.icon-text:hover{background:var(--primary-dark)}.icon-text.secondary,.secondary{color:var(--ink);border-color:var(--line);background:var(--surface)}.icon-text.secondary:hover,.secondary:hover{border-color:var(--primary);color:var(--primary-dark)}.ghost{padding:0 10px;color:var(--muted);background:transparent}.ghost:hover{color:var(--ink);background:var(--surface-strong)}.compact{min-height:32px;padding:0 10px;font-size:.88rem}.icon-only{width:30px;height:30px;color:var(--muted);background:transparent}.icon-only:hover{background:var(--surface-strong)}.icon-only.danger{color:var(--danger)}button:disabled{cursor:not-allowed;opacity:.55}svg{width:18px;height:18px;flex:0 0 auto}.compact-field{display:grid;gap:3px;min-width:150px;font-size:.78rem;color:var(--muted)}.compact-field select{min-height:34px}input,select{width:100%;min-height:40px;border:1px solid var(--line);border-radius:8px;padding:8px 10px;color:var(--ink);background:var(--surface)}input:focus,select:focus{outline:3px solid var(--primary-focus);border-color:var(--primary)}input:disabled,select:disabled{color:#7d8581;background:#eef1ef}.workspace{width:min(1480px,calc(100vw - 32px));margin:0 auto;padding:24px 0 48px}.notice{margin-bottom:16px;padding:12px 14px;border-radius:8px;border:1px solid;background:var(--surface)}.notice.success{color:var(--success);border-color:#1f7a4d4d}.notice.error{color:var(--danger);border-color:#b423184d}.page-section,.form-section{display:grid;gap:18px}.section-header{display:flex;align-items:center;justify-content:space-between;gap:16px}.section-header.tight{margin-bottom:10px}.import-controls{display:flex;align-items:flex-end;flex-wrap:wrap;gap:8px}.import-controls .compact-field{min-width:140px}.filters-panel{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.filters-panel .compact-field{min-width:180px}h1,h2,p{margin:0}h1{font-size:clamp(1.7rem,3vw,2.6rem);line-height:1.1}h2{font-size:1.15rem;line-height:1.2}.section-header p,.hint,.muted,small{color:var(--muted)}.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.data-table{width:100%;min-width:860px;border-collapse:collapse}.matches-table{min-width:1180px}.data-table th,.data-table td{padding:11px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}.data-table th{position:sticky;top:0;z-index:1;color:#35433e;background:var(--surface-strong);font-size:.82rem;font-weight:800}.data-table tr:last-child td{border-bottom:0}.date-cell{min-width:148px;font-weight:700}.referee-cell{display:inline-flex;align-items:center;gap:6px;min-width:160px}.link-button{padding:0;color:var(--primary-dark);background:transparent;cursor:pointer;text-align:left}.link-button:disabled{color:var(--ink)}.empty-state{display:grid;place-items:center;min-height:180px;border:1px dashed var(--line);border-radius:8px;color:var(--muted);background:#fff9}.form-section{width:min(860px,100%)}.form-grid{display:grid;gap:14px;padding:18px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.form-grid.narrow{max-width:520px}.form-grid.two-column{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid label{display:grid;gap:6px}.form-grid label>span{font-size:.86rem;font-weight:700;color:#35433e}.form-action,.full-span{grid-column:1 / -1}.split-layout{display:grid;grid-template-columns:minmax(320px,420px) minmax(0,1fr);align-items:start;gap:22px}.admin-stack{display:grid;gap:22px;min-width:0}.compact-table{min-width:560px}.details-list{display:grid;grid-template-columns:110px minmax(0,1fr);gap:10px 14px;margin:0}.details-list dt{color:var(--muted);font-weight:700}.details-list dd{margin:0;min-width:0;overflow-wrap:anywhere}.dialog-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:grid;place-items:center;padding:20px;background:#21302b57}.dialog{width:min(720px,100%);max-height:min(720px,calc(100vh - 40px));overflow:auto;border-radius:8px;border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow)}.dialog>.form-grid,.dialog>.details-list{border:0;border-top:1px solid var(--line);border-radius:0}.dialog>.details-list{padding:18px}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px}.checkbox-row{display:flex!important;align-items:center;gap:10px}.checkbox-row input{width:18px;min-height:18px}.inline-checkbox{width:fit-content;margin:0;font-weight:700}.compact-empty{min-height:96px;margin-top:10px}.color-control{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:center;gap:8px}.color-control input[type=color]{width:52px;min-width:52px;padding:3px;cursor:pointer}.color-control input[type=color]::-webkit-color-swatch-wrapper{padding:0}.color-control input[type=color]::-webkit-color-swatch{border:0;border-radius:5px}.color-chip{display:inline-block;width:16px;height:16px;margin-right:8px;border:1px solid var(--line);border-radius:4px;vertical-align:-3px}.logo-preview{width:100%;max-width:280px;aspect-ratio:16 / 9;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--surface-strong)}.logo-preview img{width:100%;height:100%;object-fit:cover}.dev-link{display:inline-flex;align-items:center;gap:8px;width:fit-content;min-height:38px;padding:0 12px;border:1px solid rgba(196,134,31,.45);border-radius:8px;color:#6c4706;background:#fff9eb;text-decoration:none}@media (max-width: 1100px){.topbar{grid-template-columns:1fr}.toolbar{justify-content:flex-start}.split-layout{grid-template-columns:1fr}}@media (max-width: 720px){.workspace{width:min(100vw - 20px,1480px);padding-top:14px}.topbar{padding:10px;gap:10px}.main-nav,.toolbar{align-items:stretch}.nav-button,.icon-text,.ghost{flex:1 1 auto}.compact-field{flex:1 1 160px}.section-header{align-items:flex-start;flex-direction:column}.form-grid.two-column,.details-list{grid-template-columns:1fr}}
