@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:wght@100..900&family=Lobster+Two:ital,wght@0,400;0,700;1,400&display=swap');

:root { --ink: #24214d; --muted: #747393; --muted-deep: #5a5875; --purple: #5b5bd6; --purple-dark: #4747b9; --purple-soft: #eeedff; --orange: #ff8f50; --orange-dark: #df6831; --orange-soft: #fff0e6; --teal: #52b8a8; --teal-soft: #e7f8f3; --yellow: #ffd968; --line: #ebe9f4; --shadow: 0 18px 45px rgba(55,49,116,.08); }
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; color: var(--ink); background: #f7f6ff; background-image: radial-gradient(circle at 9% 10%, rgba(255,217,104,.17), transparent 19rem), radial-gradient(circle at 96% 22%, rgba(82,184,168,.13), transparent 22rem), linear-gradient(125deg, #f8f7ff 0%, #f9f8ff 44%, #fffaf6 100%); font-family: 'Google Sans Flex', 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.45; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(91,91,214,.3); outline-offset: 3px; }

.table-shell { position: relative; z-index: 1; width: min(100% - 52px, 1370px); margin: 0 auto; padding: 24px 0 18px; }
.table-topbar, .table-hero, .table-content, .table-footer { position: relative; z-index: 1; }
.table-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }.brand-mark { display: grid; place-items: center; width: 58px; height: 50px; color: #fff; background: var(--purple); border: 3px solid #fff; border-radius: 16px 16px 16px 5px; box-shadow: 0 6px 0 #4545ac; font-size: 22px; font-weight: 900; letter-spacing: -.06em; transform: rotate(-3deg); }.brand-copy { display: flex; flex-direction: column; gap: 0; }.brand-copy strong { font-size: 16px; letter-spacing: .075em; line-height: 1; }.brand-copy small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.table-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }.table-nav a { display: inline-flex; align-items: center; gap: 5px; padding: 8px 9px; color: var(--muted-deep); background: rgba(255,255,255,.55); border: 1px solid var(--line); border-radius: 10px; font-size: 11px; font-weight: 800; text-decoration: none; }.table-nav a:hover, .table-nav a[aria-current='page'] { color: var(--purple-dark); background: var(--purple-soft); border-color: #c8c6ef; }.nav-icon { font-size: 14px; line-height: 1; }.table-topbar-right { display: flex; align-items: center; gap: 9px; }.sync-status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; color: var(--muted-deep); background: rgba(255,255,255,.65); border: 1px solid rgba(222,220,243,.9); border-radius: 100px; font-size: 12px; font-weight: 700; }.status-dot { width: 8px; height: 8px; background: var(--yellow); border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,217,104,.2); }.sync-status[data-state='ready'] .status-dot { background: var(--teal); box-shadow: 0 0 0 4px rgba(82,184,168,.16); }.sync-status[data-state='offline'] .status-dot { background: var(--orange); box-shadow: 0 0 0 4px rgba(255,143,80,.16); }.sync-status[data-state='loading'] .status-dot { animation: blink 1s infinite; }@keyframes blink { 50% { opacity: .35; } }.back-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; color: var(--purple-dark); background: rgba(255,255,255,.64); border: 1px solid var(--line); border-radius: 11px; font-size: 12px; font-weight: 700; text-decoration: none; }.back-link:hover { background: var(--purple-soft); border-color: #c8c6ef; }.back-link svg, .export-button svg, .refresh-button svg, .table-note svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }.avatar { display: grid; place-items: center; width: 38px; height: 38px; color: var(--purple-dark); background: var(--yellow); border: 3px solid #fff; border-radius: 50%; font-size: 12px; font-weight: 900; box-shadow: 0 3px 0 #e6bd41; }

.table-hero { display: flex; align-items: center; justify-content: space-between; min-height: 205px; padding: 42px 6% 24px 4%; }.table-hero > div:first-child { max-width: 760px; }.eyebrow, .section-kicker { color: var(--purple); font-size: 11px; font-weight: 900; letter-spacing: .14em; }.eyebrow { display: flex; align-items: center; gap: 8px; }.eyebrow i { display: inline-block; width: 25px; height: 3px; background: var(--orange); border-radius: 10px; }.table-hero h1 { margin: 9px 0 0; font-family: 'Lobster Two', Georgia, cursive; font-size: clamp(48px, 5vw, 72px); font-weight: 700; letter-spacing: -.04em; line-height: .95; }.table-hero h1 span { color: var(--orange); }.table-hero p { max-width: 630px; margin-top: 13px; color: var(--muted-deep); font-size: 15px; }.hero-sticker { display: grid; place-items: center; width: 132px; height: 100px; color: var(--purple-dark); background: var(--yellow); border: 6px solid #fff; border-radius: 38px 38px 38px 9px; box-shadow: 0 9px 0 rgba(72,69,178,.18); font-size: 49px; transform: rotate(5deg); }

.table-content { padding: 24px; background: rgba(255,255,255,.89); border: 1px solid rgba(232,230,244,.95); border-radius: 24px; box-shadow: var(--shadow); }.content-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }.content-heading h2 { margin: 3px 0 0; font-size: 25px; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; }.content-heading p { margin-top: 6px; color: var(--muted); font-size: 12px; }.content-actions { display: flex; align-items: center; gap: 8px; }.export-button, .refresh-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 13px; font-size: 13px; font-weight: 900; }.export-button { padding: 10px 16px; color: #fff; background: var(--purple); border: 0; box-shadow: 0 5px 0 #4545ac; transition: transform .2s, background .2s, box-shadow .2s; }.export-button:hover { background: var(--purple-dark); box-shadow: 0 2px 0 #4545ac; transform: translateY(3px); }.refresh-button { padding: 9px 12px; color: var(--purple-dark); background: var(--purple-soft); border: 1px solid #d9d8f5; }.refresh-button:hover { background: #e2e1ff; }.export-button:disabled, .refresh-button:disabled { cursor: not-allowed; opacity: .58; }
.summary-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }.summary-card { display: flex; align-items: center; gap: 10px; min-height: 68px; padding: 12px 14px; background: #faf9ff; border: 1px solid var(--line); border-radius: 15px; }.summary-icon { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; color: var(--purple); background: var(--purple-soft); border-radius: 10px; font-size: 18px; }.summary-card:nth-child(2) .summary-icon { color: #278f81; background: var(--teal-soft); }.summary-card:nth-child(3) .summary-icon { color: var(--orange-dark); background: var(--orange-soft); }.summary-card span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }.summary-card strong { display: block; margin-top: -3px; font-size: 23px; font-weight: 900; line-height: 1; }
.map-preview { margin-top: 18px; padding: 14px; background: #f4f2ff; border: 1px dashed #d8d6ef; border-radius: 16px; }.preview-heading { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 2px 10px; }.preview-heading strong { color: var(--ink); font-size: 13px; }.preview-heading > span:last-child { margin-left: auto; color: var(--muted); font-size: 10px; }.map-wrap { overflow-x: auto; border: 1px solid #e5e3f0; border-radius: 12px; }.map-table { width: 100%; min-width: 900px; table-layout: fixed; border-collapse: collapse; background: #fff; }.map-table th, .map-table td { border: 1px solid #e5e3f0; text-align: center; }.map-table thead tr:first-child th { padding: 8px; color: #fff; background: var(--purple); font-size: 10px; font-weight: 900; letter-spacing: .08em; }.map-table thead tr:nth-child(2) th { padding: 6px; color: var(--purple-dark); background: var(--purple-soft); font-size: 10px; }.map-table td { height: 72px; padding: 6px 5px; vertical-align: middle; }.map-table td.is-occupied { background: var(--teal-soft); }.map-table td.is-empty { color: var(--muted); background: #f7f6fa; }.map-table td small { display: block; color: #8b88aa; font-size: 9px; font-weight: 800; line-height: 1.2; }.map-table td strong { display: block; margin-top: 4px; overflow-wrap: anywhere; color: var(--ink); font-size: 11px; line-height: 1.2; }
.table-wrap { margin-top: 18px; overflow-x: auto; border: 1px solid #e5e3f0; border-radius: 16px; }.seat-table { width: 100%; min-width: 720px; border-collapse: collapse; background: #fff; }.seat-table th, .seat-table td { padding: 12px 14px; border-bottom: 1px solid #efedf6; text-align: left; }.seat-table th { color: var(--purple-dark); background: var(--purple-soft); font-size: 11px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }.seat-table th:first-child, .seat-table td:first-child { width: 60px; text-align: center; }.seat-table tbody tr:last-child td { border-bottom: 0; }.seat-table tbody tr:hover { background: #fbfaff; }.seat-table td { color: var(--muted-deep); font-size: 13px; }.seat-table .student-cell { color: var(--ink); font-weight: 800; }.seat-table .number-cell { color: var(--muted); font-size: 12px; font-weight: 800; }.seat-badge { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 8px; color: #278f81; background: var(--teal-soft); border-radius: 8px; font-size: 11px; font-weight: 800; }.seat-badge.is-empty { color: var(--muted); background: #f4f3f9; }.empty-row td { padding: 32px 15px; color: var(--muted); text-align: center; }.table-note { display: flex; align-items: center; gap: 6px; margin: 13px 2px 0; color: var(--muted); font-size: 11px; }.table-note svg { flex: 0 0 14px; width: 14px; height: 14px; }
.table-footer { display: flex; justify-content: space-between; gap: 18px; padding: 17px 5px 0; color: #aaa8bf; font-size: 11px; }.table-doodle { position: fixed; z-index: 0; color: rgba(91,91,214,.12); font-weight: 900; pointer-events: none; user-select: none; }.doodle-sigma { top: 30%; left: 1.5%; font-size: 62px; transform: rotate(-17deg); }.doodle-pi { right: 1.4%; bottom: 9%; color: rgba(255,143,80,.14); font-size: 67px; transform: rotate(15deg); }.doodle-grid { top: 13%; right: 20%; color: rgba(82,184,168,.23); font-size: 34px; transform: rotate(12deg); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; max-width: min(360px, calc(100% - 48px)); padding: 12px 17px; color: #fff; background: #2f2b66; border-radius: 13px; box-shadow: 0 12px 35px rgba(45,42,100,.25); font-size: 13px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .22s, transform .22s; }.toast.is-visible { opacity: 1; transform: translateY(0); }.toast[data-type='error'] { background: #be564c; }
@media (max-width: 1080px) { .table-topbar { flex-wrap: wrap; }.table-nav { order: 3; width: 100%; margin: 0; justify-content: flex-end; }.table-topbar-right { margin-left: auto; }.content-heading { align-items: flex-start; flex-direction: column; }.content-actions { width: 100%; justify-content: flex-end; } }
@media (max-width: 620px) { .table-shell { width: min(100% - 22px, 560px); padding-top: 14px; }.brand-mark { width: 52px; height: 46px; font-size: 20px; }.brand-copy strong { font-size: 14px; }.brand-copy small, .sync-status { display: none; }.table-topbar-right { gap: 6px; }.back-link { padding: 7px 8px; }.back-link span { display: none; }.table-nav { justify-content: stretch; gap: 4px; }.table-nav a { flex: 1; justify-content: center; padding: 7px 4px; font-size: 10px; }.table-hero { min-height: 205px; padding: 45px 5px 16px; }.table-hero h1 { font-size: 49px; }.table-hero p { max-width: 84%; font-size: 13px; }.hero-sticker { position: absolute; right: 6px; bottom: 14px; width: 100px; height: 66px; border-width: 4px; border-radius: 23px 23px 23px 6px; font-size: 36px; }.table-content { padding: 18px 11px 16px; border-radius: 20px; }.content-heading h2 { font-size: 22px; }.content-actions { flex-direction: column; }.export-button, .refresh-button { width: 100%; }.summary-row { grid-template-columns: 1fr; }.map-preview { padding: 9px; }.preview-heading > span:last-child { margin-left: 0; }.map-table { min-width: 760px; }.table-footer { flex-direction: column; gap: 3px; } }
@media print { body { background: #fff; }.table-shell { width: 100%; padding: 0; }.table-topbar, .table-hero, .content-actions, .summary-row, .table-note, .table-footer, .table-doodle, .toast { display: none !important; }.table-content { padding: 0; border: 0; box-shadow: none; }.content-heading { display: block; }.table-wrap { overflow: visible; border: 0; }.seat-table { min-width: 0; }.seat-table th, .seat-table td { padding: 8px; } }
