:root { color-scheme: light; }
* { box-sizing: border-box; }
html { font-family: Arial, sans-serif; }
body { margin: 0; background: radial-gradient(circle at 50% -20%, #49302a, #181210 65%); color: #302a20; font-size: 16px; line-height: 1.55; }
a { color: #8c1717; }
a:hover { color: #b66314; }
#wrapper { width: min(calc(100% - 64px), 1160px); min-height: calc(100vh - 64px); margin: 32px auto; display: flex; flex-direction: column; border: 1px solid #816d50; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 70px #0007; }
#header { min-height: 188px; padding: 20px clamp(24px, 3.5vw, 52px); background: radial-gradient(circle at 25% 25%, #692624 0, transparent 52%), linear-gradient(120deg, #20100f 0%, #5c1a18 70%, #241210 100%); display: flex; align-items: center; gap: clamp(20px, 3vw, 34px); border-bottom: 4px solid #ad8c56; }
#header .brand-logo { display: block; flex: 0 0 118px; width: 118px; padding: 5px; background: #f6efd9; border: 4px solid #ad8c56; border-radius: 5px; box-shadow: 0 8px 22px #0008; transform: rotate(-2deg); }
#header .brand-logo img { display: block; width: 100%; height: auto; }
#header .brand-copy { padding-left: 24px; border-left: 1px solid #b68d61; }
#header h1 { margin: 0 0 8px; font: italic clamp(2.2rem, 4.5vw, 3.7rem) Georgia, serif; line-height: 1.1; }
#header p { margin: 0; color: #f2d8aa; font: 1.1rem Georgia, serif; }
#header a { color: #fce8c4; text-decoration: none; }
#body { flex: 1; display: grid; grid-template-columns: 228px minmax(0, 1fr); align-items: stretch; }
#nav { display: flex; flex-direction: column; min-width: 0; background: #941b1b; }
#nav ul { margin: 0; padding: 28px 22px 18px; list-style: none; }
#nav li + li { border-top: 1px solid #b6524e; }
#nav a { display: block; padding: 10px 2px; color: #fff1d4; font: italic 1.22rem Georgia, serif; text-decoration: none; }
#nav a:hover, #nav a[aria-current="page"] { color: #ffd070; }
#nav .nav-admin-button { margin: 16px 22px 28px; padding: 10px 12px; border: 1px solid #edcaa0; border-radius: 4px; color: #fff1d4; font: bold .95rem Arial, sans-serif; text-align: center; }
#nav .nav-admin-button:hover { background: #751313; color: #fff; }
.nav-stats { margin: auto 22px 0; padding-top: 18px; border-top: 1px solid #d1796d; color: #fff1d4; }
.nav-stats p { margin: 0 0 12px; }
.nav-stats span { display: block; font-size: .84rem; }
.nav-stats strong { display: block; font: bold 1.35rem Georgia, serif; line-height: 1.2; color: #ffd070; }
#content { min-width: 0; padding: clamp(22px, 3vw, 40px); background: #e9e7d9; }
h2 { margin: 0 0 12px; color: #941b1b; font: italic 1.7rem Georgia, serif; }
h3 { margin-bottom: 8px; color: #661515; }
p { margin: 0 0 16px; }
.panel { max-width: 1320px; padding: clamp(22px, 2.5vw, 32px); margin: 0 auto 20px; border: 1px solid #d5cbb9; border-radius: 8px; background: #faf8f0; box-shadow: 0 5px 18px #3c24100b; }
.panel:last-child { margin-bottom: 0; }
.notice { padding: 13px 17px; border-left: 4px solid #941b1b; background: #fffaf0; }
.notice.success { border-color: #397244; }
.notice.error { border-color: #af2525; }
.button, button { display: inline-block; padding: 10px 17px; border: 0; border-radius: 4px; background: #941b1b; color: #fff; font: bold 1rem Arial, sans-serif; cursor: pointer; text-decoration: none; }
.button:hover, button:hover { background: #6d1212; color: #fff; }
form { max-width: 640px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: bold; }
input, select, textarea { width: 100%; padding: 9px 10px; border: 1px solid #938e7c; border-radius: 4px; background: #fff; color: #26231b; font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid #941b1b; outline-offset: 1px; }
.form-actions { margin-top: 18px; }
.participants-section { margin-top: 10px; }
.participants-section h3 { margin-top: 0; }
.participant-row { margin: 0 0 12px; padding: 12px 14px 16px; border: 1px solid #bcb7a5; background: #f7f5e9; }
.participant-row legend { padding: 0 6px; font-weight: bold; color: #661515; }
.participant-fields { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 12px; }
.participant-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.participant-actions button { padding: 8px 12px; }
.participant-actions button:disabled { cursor: not-allowed; opacity: .55; }
.admin-login { display: grid; gap: 14px; max-width: 360px; }
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.admin-toolbar form { margin: 0; }
.export-actions { margin: 0 0 18px; }
.payment-template-form textarea { min-height: 170px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; line-height: 1.5; }
.payment-template-form + p, .payment-template-form .form-actions { margin-top: 18px; }
.inline-action-form { margin: 16px 0; }
code { overflow-wrap: anywhere; }
.admin-text-form, .admin-group-form { max-width: 100%; }
.registration-settings-form { max-width: 720px; }
.registration-mode-options { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 18px; padding: 14px; border: 1px solid #bcb7a5; background: #f7f5e9; }
.registration-mode-options legend { font-weight: bold; color: #661515; }
.registration-mode-options label { display: flex; align-items: center; gap: 7px; font-weight: normal; }
.registration-mode-options input { width: auto; margin: 0; }
.admin-text-field { margin-bottom: 16px; }
.admin-text-field textarea { min-height: 100px; resize: vertical; }
.rich-field .rich-editor { display: none; }
.rich-field.is-enhanced .rich-editor { display: block; }
.rich-field.is-enhanced .rich-source { display: none; }
.rich-field .ql-toolbar { background: #f8f4e9; border-color: #bcb5a1; border-radius: 5px 5px 0 0; }
.rich-field .ql-container { background: #fff; border-color: #bcb5a1; border-radius: 0 0 5px 5px; font: inherit; }
.rich-field .ql-editor { min-height: 125px; max-height: 420px; overflow-y: auto; font: inherit; line-height: 1.55; }
.rich-field .ql-editor:focus { outline: 2px solid #941b1b; outline-offset: -2px; }
.rich-field .ql-toolbar button { padding: 3px 5px; background: transparent; }
.rich-field .ql-toolbar button:hover { background: #efe2cf; }
.rich-count { align-self: flex-end; }
.rich-count.over-limit { color: #a11919; font-weight: bold; }
.rich-text { margin-bottom: 16px; overflow-wrap: anywhere; }
.rich-text > :last-child { margin-bottom: 0; }
.rich-text p { margin: 0 0 12px; }
.rich-text h2, .rich-text h3 { margin: 14px 0 8px; }
.rich-text ul, .rich-text ol { margin: 0 0 14px; padding-left: 25px; }
.rich-text blockquote { margin: 0 0 14px; padding: 4px 14px; border-left: 3px solid #ad8c56; background: #f5f1e5; }
.field-note { margin: 0; color: #5d584e; font-size: .85em; }
.admin-group-panel .participant-fields { grid-template-columns: 2fr 1fr 1.5fr; }
.table-scroll { overflow-x: auto; }
.delete-form { margin-top: 28px; }
.danger-button { background: #6e1818; }
.remove-row-button { margin-top: 12px; padding: 7px 11px; background: #765b58; font-size: .9rem; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
small { color: #5d584e; }
table { width: 100%; border-collapse: collapse; background: #fffdf5; }
th, td { border-bottom: 1px solid #d3cfbc; padding: 9px; text-align: left; }
th { color: #651212; }
#footer { padding: 18px 20px; background: #201412; color: #e9e7d9; text-align: center; font-size: .9rem; }
#footer a { color: #ffd7b5; }
@media (max-width: 960px) {
  #body { display: block; }
  #nav ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 14px; padding: 10px 22px; }
  #nav li + li { border: 0; }
  #nav a { padding: 7px 0; font-size: 1rem; }
  .nav-stats { display: flex; gap: 36px; margin: 8px 22px 0; padding-top: 12px; }
  .nav-stats p { margin-bottom: 8px; }
  #nav .nav-admin-button { align-self: flex-start; margin: 10px 22px 20px; padding: 8px 16px; }
}
@media (max-width: 700px) {
  body { background: #e9e7d9; }
  #wrapper { width: 100%; min-height: 100vh; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
  #header { min-height: 150px; padding: 18px; gap: 18px; }
  #header .brand-logo { flex-basis: 86px; width: 86px; padding: 3px; border-width: 2px; }
  #header .brand-copy { padding-left: 16px; }
  #header h1 { font-size: clamp(1.55rem, 6vw, 2.4rem); margin-bottom: 5px; }
  #header p { font-size: .9rem; }
  #nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px 18px; }
  .nav-stats { margin: 8px 18px 0; }
  #nav .nav-admin-button { margin: 10px 18px 18px; }
  #content { padding: 18px 14px 28px; }
  .panel { padding: 20px 18px; margin-bottom: 14px; border-radius: 8px; }
  .form-grid { grid-template-columns: 1fr; }
  .participant-fields, .admin-group-panel .participant-fields { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  #header { gap: 12px; }
  #header .brand-logo { flex-basis: 72px; width: 72px; }
  #header .brand-copy { padding-left: 12px; }
  #header h1 { font-size: 1.5rem; }
  #header p { font-size: .8rem; }
  .nav-stats { gap: 20px; }
  .nav-stats span { font-size: .78rem; }
  #content { padding: 14px 10px 22px; }
  .panel { padding: 18px 14px; }
}
.game-teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.game-team { min-width: 0; }
.game-team h3 { margin-top: 0; }
.game-team-count { margin: .8rem 0 0; text-align: right; }
@media (max-width: 900px) { .game-teams { grid-template-columns: 1fr; } }

/* Vizuální systém 2026 */
:root { --wine:#7c2028; --deep:#46191f; --cream:#f6f3eb; --paper:#fffdf8; --gold:#c39b60; --ink:#292526; --muted:#695f5b; --line:#e6ded2; font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
html { scroll-behavior:smooth; }
body { background:#eae4d9; color:var(--ink); font-family:inherit; line-height:1.6; }
a { color:var(--wine); text-underline-offset:3px; }
:focus-visible { outline:3px solid var(--gold); outline-offset:3px; }
#wrapper { width:100%; min-height:100vh; margin:0; border:0; border-radius:0; background:var(--cream); box-shadow:none; }
#header { min-height:112px; padding:18px clamp(24px,3.5vw,46px); gap:20px; border-bottom:1px solid var(--line); background:var(--paper); }
#header .brand-logo { flex:0 0 74px; width:74px; height:74px; display:grid; place-items:center; padding:6px; border:1px solid #e4d8c8; border-radius:15px; background:#f8f3e7; box-shadow:none; transform:none; }
#header .brand-logo img { width:100%; height:100%; object-fit:contain; }
#header .brand-copy { min-width:0; padding:0; border:0; }
.brand-eyebrow { margin:0 0 2px !important; color:var(--wine) !important; font-family:inherit !important; font-size:.68rem !important; font-weight:800 !important; line-height:1.3; letter-spacing:.2em; text-transform:uppercase; }
#header h1 { margin:0; color:var(--deep); font:700 clamp(1.6rem,2.7vw,2.25rem)/1.1 Georgia,serif; letter-spacing:-.035em; }
#header h1 a { color:inherit; }
#header .brand-tagline { margin:5px 0 0; color:var(--muted); font-family:inherit; font-size:.87rem; font-weight:400; line-height:1.4; }
#body { grid-template-columns:224px minmax(0,1fr); }
#nav { padding:28px 14px 18px; border-right:1px solid #ded5c9; background:#f0e9dd; }
#nav ul { display:grid; gap:5px; padding:0; }
#nav li + li { border:0; }
#nav li a { padding:11px 15px; border-radius:11px; color:#514343; font-family:inherit; font-size:.94rem; font-style:normal; font-weight:700; line-height:1.3; transition:background .18s,color .18s,transform .18s; }
#nav li a:hover { background:#fffaf2; color:var(--wine); transform:translateX(2px); }
#nav li a[aria-current="page"] { background:var(--wine); color:#fffaf2; box-shadow:0 5px 14px #7c20282a; }
.nav-stats { display:grid; gap:11px; margin:auto 0 0; padding:22px 13px 6px; border:0; color:var(--ink); }
.nav-stats p { margin:0; padding:12px 13px; border:1px solid #e2d7c9; border-radius:12px; background:#f9f4eb; }
.nav-stats span { color:var(--muted); font-size:.71rem; font-weight:700; line-height:1.3; }
.nav-stats strong { margin-top:5px; color:var(--wine); font-family:inherit; font-size:1.35rem; font-weight:800; line-height:1; font-variant-numeric:tabular-nums; }
#nav .nav-admin-button { margin:14px 13px 0; padding:10px 13px; border:1px solid #c8b6aa; border-radius:10px; color:#61504a; font-family:inherit; font-size:.83rem; font-weight:700; line-height:1.3; transition:background .18s; }
#nav .nav-admin-button:hover { background:#fffaf2; color:var(--wine); }
#content { padding:clamp(22px,3vw,40px); background:var(--cream); }
#content > .panel,#content > .event-facts { width:100%; max-width:1320px; margin-left:auto; margin-right:auto; }
#content > .panel:not(.hero) > p,#content > .panel:not(.hero) > .rich-text { max-width:none; }
#content > :last-child { margin-bottom:0; }
h2,h3 { line-height:1.2; letter-spacing:-.035em; }
h2 { margin:0 0 18px; color:var(--deep); font:700 clamp(1.45rem,2.4vw,2rem)/1.2 Georgia,serif; }
h3 { margin:22px 0 10px; color:var(--deep); font-size:1.15rem; }
.panel { min-width:0; max-width:none; margin:0 0 20px; padding:clamp(24px,3vw,36px); border:1px solid var(--line); border-radius:18px; background:var(--paper); box-shadow:0 7px 24px #4e252009; }
.panel > :last-child { margin-bottom:0; }
.eyebrow { display:inline-block; margin:0 0 13px; color:var(--wine); font-size:.72rem; font-weight:800; letter-spacing:.16em; line-height:1.4; text-transform:uppercase; }
.hero { position:relative; isolation:isolate; overflow:hidden; min-height:310px; padding:32px clamp(28px,3vw,42px); border-color:#70222a; background:radial-gradient(circle at 91% 13%,#b76b5680,transparent 28%),linear-gradient(135deg,#4b1b22,#802831 68%,#581e25); color:#fff9ec; box-shadow:0 15px 35px #64212a24; }
.hero::after { content:""; position:absolute; z-index:-1; width:220px; height:255px; right:0; top:50%; transform:translateY(-50%); background:#fff2db; opacity:.15; -webkit-mask:url('/assets/stinadla-logo-2026.png') center / contain no-repeat; mask:url('/assets/stinadla-logo-2026.png') center / contain no-repeat; pointer-events:none; }
.hero .eyebrow { color:#eec995; }
.hero h2 { max-width:850px; margin:0 0 13px; color:#fff9ec; font:700 clamp(2.3rem,3.6vw,3.65rem)/1.06 Georgia,serif; letter-spacing:-.05em; }
.hero .rich-text { max-width:calc(100% - 195px); color:#f7e8e0; font-size:.96rem; }
.hero .rich-text a { color:#ffe0a7; }
.hero .button { background:#f5cf93; color:var(--deep); }
.hero .button:hover { background:#ffe5b9; color:var(--deep); }
.hero-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:18px; }
.hero-actions .button { margin:0; }
.hero-link { padding:10px 2px; color:#fff2db; font-weight:700; }
.hero-link:hover { color:#ffe0a7; }
.event-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:0 0 20px; }
.event-facts div { min-width:0; padding:20px 21px; border:1px solid var(--line); border-radius:15px; background:var(--paper); }
.event-facts dt { margin-bottom:6px; color:var(--wine); font-size:.71rem; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
.event-facts dd { margin:0; color:var(--deep); font-size:clamp(1rem,1.5vw,1.17rem); font-weight:750; line-height:1.35; }
.home-news { border-left:4px solid var(--gold); }
.notice { margin:16px 0; padding:14px 17px; border:1px solid #e2cbb5; border-left:4px solid var(--gold); border-radius:8px; background:#fff8ed; }
.notice.success { border-left-color:#508162; background:#f2f9f3; }
.notice.error { border-left-color:#af3636; background:#fff0ef; }
.button,button { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:43px; padding:10px 17px; border:1px solid transparent; border-radius:10px; background:var(--wine); color:#fff; font-family:inherit; font-size:.92rem; font-weight:700; line-height:1.3; text-align:center; transition:background .18s,transform .18s,box-shadow .18s; }
.button:hover,button:hover { background:#5f1720; color:#fff; transform:translateY(-1px); box-shadow:0 5px 12px #5f172022; }
button:disabled { cursor:not-allowed; opacity:.55; transform:none; box-shadow:none; }
form { max-width:690px; }
.form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:19px 20px; }
.field { min-width:0; gap:6px; }
label { color:#3c3331; font-size:.9rem; font-weight:700; }
input,select,textarea { min-height:44px; padding:10px 12px; border:1px solid #cfc2b9; border-radius:9px; background:#fff; color:var(--ink); transition:border-color .15s,box-shadow .15s; }
textarea { min-height:105px; }
input:hover,select:hover,textarea:hover { border-color:#ac9088; }
input:focus,select:focus,textarea:focus { border-color:var(--wine); outline:0; box-shadow:0 0 0 3px #a84c4d25; }
input[type="checkbox"],input[type="radio"] { width:auto; min-height:0; accent-color:var(--wine); }
.form-actions { margin-top:24px; }
.participant-row { margin-bottom:13px; padding:15px 17px 18px; border:1px solid #e1d5c7; border-radius:12px; background:#faf7f0; }
.participant-row legend { color:var(--wine); font-weight:800; }
.participant-actions button,.remove-row-button { min-height:39px; padding:8px 13px; font-size:.84rem; }
.participant-actions button + button,.remove-row-button { border-color:#d1b8b6; background:#f8eded; color:var(--wine); }
.participant-actions button + button:hover,.remove-row-button:hover { background:#f0dede; color:var(--deep); }
.admin-toolbar .button,.admin-toolbar button { min-height:39px; padding:8px 12px; font-size:.82rem; }
.registration-mode-options { border-color:#e1d5c7; border-radius:11px; background:#faf7f0; }
.registration-mode-options legend { color:var(--wine); }
.rich-field .ql-toolbar { border-color:#d8c9bd; border-radius:9px 9px 0 0; background:#f8f3ea; }
.rich-field .ql-container { border-color:#d8c9bd; border-radius:0 0 9px 9px; }
.rich-field .ql-toolbar button { min-height:0; border-radius:3px; }
.rich-text li + li { margin-top:4px; }
.field-note,small { color:var(--muted); }
.table-scroll { max-width:100%; border:1px solid var(--line); border-radius:11px; }
table { background:#fff; font-size:.9rem; }
th,td { padding:12px 13px; border-bottom:1px solid #eee7df; vertical-align:top; }
th { background:#f5efe6; color:var(--deep); font-size:.75rem; font-weight:800; letter-spacing:.03em; }
tbody tr:nth-child(even) { background:#fdfaf5; }
tbody tr:last-child td { border-bottom:0; }
#footer { padding:22px 25px; border-top:1px solid var(--line); background:var(--paper); color:var(--muted); font-size:.82rem; }
#footer a { color:var(--wine); font-weight:700; }
@media (max-width:900px) {
  #wrapper { width:100%; margin:0; }
  #body { display:block; }
  #nav { flex-direction:row; align-items:center; flex-wrap:wrap; gap:9px; padding:11px 19px; border:0; border-bottom:1px solid #ded5c9; }
  #nav ul { flex:1 1 auto; display:flex; flex-wrap:wrap; gap:4px; padding:0; }
  #nav li a { padding:8px 11px; font-size:.84rem; }
  .nav-stats { order:3; width:100%; display:flex; gap:9px; margin:0; padding:6px 0 0; }
  .nav-stats p { flex:1; padding:8px 11px; }
  .nav-stats strong { font-size:1.12rem; }
  #nav .nav-admin-button { margin:0; padding:8px 10px; }
}
@media (max-width:650px) {
  body { background:var(--cream); }
  #wrapper { width:100%; min-height:100vh; margin:0; border:0; border-radius:0; box-shadow:none; }
  #header { min-height:90px; padding:14px 18px; gap:13px; }
  #header .brand-logo { flex-basis:61px; width:61px; height:61px; padding:4px; border-radius:11px; }
  .brand-eyebrow { font-size:.59rem !important; letter-spacing:.14em; }
  #header h1 { font-size:clamp(1.45rem,6vw,1.9rem); }
  #header .brand-tagline { font-size:.74rem; line-height:1.3; }
  #nav { padding:10px 14px; }
  #nav ul { width:100%; flex-basis:100%; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; }
  #nav li a { padding:9px 4px; text-align:center; font-size:.74rem; }
  .nav-stats { order:3; }
  .nav-stats span { font-size:.64rem; }
  #nav .nav-admin-button { order:4; width:100%; font-size:.78rem; }
  #content { padding:18px 14px 28px; }
  .panel { margin-bottom:14px; padding:23px 19px; border-radius:15px; }
  .hero { min-height:0; padding:30px 23px; }
  .hero::after { width:220px; height:260px; right:-48px; opacity:.07; }
  .hero h2 { font-size:clamp(2.25rem,10vw,3.45rem); }
  .hero .rich-text { max-width:none; font-size:1rem; }
  .event-facts { gap:9px; }
  .event-facts div { padding:16px 14px; }
  .event-facts dd { font-size:.95rem; }
  .form-grid,.participant-fields,.admin-group-panel .participant-fields { grid-template-columns:1fr; }
  .field.full { grid-column:auto; }
  .participant-row { padding:13px; }
}
@media (max-width:390px) {
  #header .brand-tagline { max-width:225px; }
  #nav li a { font-size:.68rem; }
  .event-facts { grid-template-columns:1fr; }
  .event-facts div { padding:13px 15px; }
  .hero-actions .button { width:100%; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { transition-duration:.01ms !important; animation-duration:.01ms !important; } }

.admin-toolbar .is-current { background:var(--deep); box-shadow:0 3px 10px #46191f2a; }
.admin-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:12px; margin:18px 0 22px; }
.admin-metrics > div { padding:17px 18px; border:1px solid var(--line); border-radius:13px; background:#f8f2e9; }
.admin-metrics span { display:block; color:var(--muted); font-size:.78rem; font-weight:700; line-height:1.3; }
.admin-metrics strong { display:block; margin-top:7px; color:var(--wine); font-size:1.5rem; line-height:1.2; font-variant-numeric:tabular-nums; }
.admin-quicklinks { display:flex; flex-wrap:wrap; gap:8px; }
.admin-filters { max-width:none; display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin:18px 0 20px; }
.admin-filters .field { flex:1 1 170px; }
.admin-filters .field:first-of-type { flex:2 1 260px; }
.admin-filters button { flex:0 0 auto; }
.admin-import-form { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin:18px 0; }
.admin-import-form .field { flex:1 1 260px; }
.attendance-action { margin:0; }
.attendance-action button { min-height:34px; padding:6px 10px; font-size:.78rem; white-space:nowrap; }
@media (max-width:650px) {
  .admin-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .admin-metrics > div { padding:13px; }
  .admin-metrics strong { font-size:1.25rem; }
  .admin-filters button,.admin-import-form button { width:100%; }
}
