    @import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700&family=Plus+Jakarta+Sans:wght@400;600;700&display=swap");

    @view-transition {
      navigation: auto;
    }

    :root {
      --bg-0:#e9f2ff;
      --bg-1:#dceafe;
      --bg-2:#f3f8ff;
      --panel:#ffffff;
      --ink:#11253f;
      --muted:#4f6b91;
      --brand:#0f4ea2;
      --brand-2:#1f72d8;
      --brand-soft:#e6f0ff;
      --border:#c7d9f2;
      --ok:#1d7a4e;
      --warn:#a82b2b;
      --shadow:0 10px 30px rgba(16, 56, 110, .14);
      --shadow-strong:0 18px 38px rgba(16, 56, 110, .2);
      --ease-smooth:cubic-bezier(.22,1,.36,1);
      --ease-snappy:cubic-bezier(.2,.82,.2,1);
      --dur-fast:.18s;
      --dur-med:.32s;
      --dur-slow:.7s;
    }
    @keyframes bgShift {
      0% { background-position: 0% 0%, 100% 0%, 0% 0%; }
      100% { background-position: 7% 8%, 93% 4%, 0% 0%; }
    }
    @keyframes loginGradient {
      0% {
        background-position: 10% 8%, 88% 10%, 24% 86%, 62% 14%, 0% 44%;
        background-size: 240% 240%, 215% 215%, 245% 245%, 205% 205%, 320% 320%;
      }
      20% {
        background-position: 30% 22%, 72% 18%, 44% 74%, 52% 28%, 36% 48%;
        background-size: 210% 210%, 240% 240%, 220% 220%, 232% 232%, 300% 300%;
      }
      44% {
        background-position: 6% 70%, 94% 82%, 60% 16%, 30% 52%, 76% 56%;
        background-size: 250% 250%, 205% 205%, 188% 188%, 248% 248%, 330% 330%;
      }
      68% {
        background-position: 40% 88%, 56% 30%, 84% 70%, 66% 62%, 24% 68%;
        background-size: 220% 220%, 250% 250%, 228% 228%, 220% 220%, 295% 295%;
      }
      100% {
        background-position: 14% 16%, 84% 14%, 26% 84%, 78% 18%, 100% 52%;
        background-size: 238% 238%, 220% 220%, 250% 250%, 236% 236%, 322% 322%;
      }
    }
    @keyframes pageIn {
      0% { opacity: 0; transform: translateY(8px); }
      100% { opacity: 1; transform: none; }
    }
    @keyframes cardIn {
      0% { opacity: 0; transform: translateY(10px) scale(.99); }
      100% { opacity: 1; transform: translateY(0) scale(1); }
    }
    @keyframes modalIn {
      0% { opacity: 0; transform: translateY(16px) scale(.98); }
      100% { opacity: 1; transform: translateY(0) scale(1); }
    }
    @keyframes queueRowRecentFade {
      0% { background-color: rgba(255, 244, 179, .92); }
      15% { background-color: rgba(255, 244, 179, .82); }
      100% { background-color: transparent; }
    }
    @keyframes teacherConfettiDrop {
      0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) rotate(0deg);
      }
      12% {
        opacity: .98;
      }
      100% {
        opacity: 0;
        transform: translate3d(var(--confetti-drift, 0px), var(--confetti-drop-distance, 112vh), 0) rotate(var(--confetti-rotate, 520deg));
      }
    }
    * { box-sizing: border-box; }
    html, body { min-height: 100%; }
    html {
      scroll-behavior: smooth;
      background-color: var(--bg-1);
      background-image:
        radial-gradient(140% 95% at -20% -15%, rgba(31,114,216,.28) 0%, rgba(31,114,216,.14) 35%, rgba(31,114,216,0) 72%),
        radial-gradient(120% 90% at 120% -10%, rgba(15,78,162,.24) 0%, rgba(15,78,162,.1) 35%, rgba(15,78,162,0) 72%),
        linear-gradient(180deg, var(--bg-0) 0%, #eef6ff 45%, var(--bg-1) 100%);
      background-size: 140% 140%, 140% 140%, 100% 100%;
      background-repeat: no-repeat;
      background-attachment: fixed;
      animation: bgShift 26s var(--ease-smooth) infinite alternate;
    }
    html.masquerade-mode {
      background-color: #ffe9e9;
      background-image:
        radial-gradient(140% 95% at -20% -15%, rgba(189, 45, 45, .24) 0%, rgba(189, 45, 45, .12) 35%, rgba(189, 45, 45, 0) 72%),
        radial-gradient(120% 90% at 120% -10%, rgba(154, 35, 35, .2) 0%, rgba(154, 35, 35, .08) 35%, rgba(154, 35, 35, 0) 72%),
        linear-gradient(180deg, #ffecec 0%, #fff3f3 45%, #ffe9e9 100%);
    }
    body {
      margin: 0;
      font-family: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", sans-serif;
      color: var(--ink);
      background: transparent;
      overflow-x: hidden;
      animation: pageIn var(--dur-med) var(--ease-smooth) both;
    }
    a,
    button,
    input,
    select,
    .panel,
    .extra-item,
    .pill,
    .brand-chip,
    .modal-card,
    .link-button,
    .google-btn {
      transition:
        transform var(--dur-fast) var(--ease-snappy),
        box-shadow var(--dur-med) var(--ease-snappy),
        border-color var(--dur-fast) ease,
        background-color var(--dur-fast) ease,
        background var(--dur-fast) ease,
        color var(--dur-fast) ease;
    }
    .brandbar {
      position: sticky;
      top: 0;
      z-index: 20;
      backdrop-filter: blur(10px) saturate(120%);
      background: linear-gradient(180deg, rgba(233,242,255,.92), rgba(233,242,255,.76));
      border-bottom: 1px solid rgba(158,184,220,.55);
      box-shadow: 0 8px 18px rgba(20, 58, 108, .08);
    }
    body.masquerade-mode .brandbar {
      background: linear-gradient(180deg, rgba(255, 233, 233, .95), rgba(255, 233, 233, .78));
      border-bottom-color: rgba(224, 157, 157, .65);
      box-shadow: 0 8px 18px rgba(120, 32, 32, .14);
    }
    .brand-inner {
      max-width: 1100px;
      margin: 0 auto;
      padding: 12px 16px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }
    .brand-link {
      text-decoration: none;
      color: inherit;
      display: inline-flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }
    .brand-logo {
      height: 52px;
      width: auto;
      object-fit: contain;
      filter: drop-shadow(0 6px 10px rgba(17, 37, 63, .2));
    }
    .brand-copy {
      display: flex;
      flex-direction: column;
      line-height: 1.08;
    }
    .brand-copy strong {
      font-family: "Fraunces", "Georgia", serif;
      color: #123766;
      font-size: 1.1rem;
    }
    .brand-copy span {
      color: var(--muted);
      font-size: .78rem;
      letter-spacing: .15px;
    }
    .brand-chip {
      display: inline-flex;
      align-items: center;
      padding: 6px 12px;
      border-radius: 999px;
      border: 1px solid #c4d8f7;
      background: linear-gradient(180deg, #f2f8ff, var(--brand-soft));
      color: var(--brand);
      font-weight: 700;
      font-size: .76rem;
      letter-spacing: .2px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
    }
    .brand-actions {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }
    .brand-logout-form {
      margin: 0;
    }
    .brand-logout-btn {
      width: auto;
      min-height: 34px;
      padding: 7px 12px;
      font-size: .82rem;
    }
    .wrap { max-width: 1100px; margin: 20px auto; padding: 0 16px 30px; }
    .teacher-confetti-layer {
      position: fixed;
      inset: 0;
      pointer-events: none;
      overflow: hidden;
      z-index: 1600;
    }
    .teacher-confetti-canvas {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 1700;
    }
    .teacher-confetti-piece {
      position: absolute;
      top: -14vh;
      left: 0;
      opacity: 0;
      animation: teacherConfettiDrop var(--confetti-duration, 2.5s) cubic-bezier(.23,.82,.28,1) var(--confetti-delay, 0s) forwards;
      will-change: transform, opacity;
    }
    .panel {
      background: linear-gradient(180deg, #ffffff, #fbfdff 62%, #f5f9ff);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 16px;
      margin-bottom: 14px;
      box-shadow: var(--shadow);
      animation: cardIn var(--dur-slow) var(--ease-smooth) both;
      transform-origin: center top;
    }
    .wrap > .panel:nth-of-type(1) { animation-delay: .03s; }
    .wrap > .panel:nth-of-type(2) { animation-delay: .07s; }
    .wrap > .panel:nth-of-type(3) { animation-delay: .11s; }
    .wrap > .panel:nth-of-type(4) { animation-delay: .15s; }
    .wrap > .panel:nth-of-type(5) { animation-delay: .19s; }
    .wrap > .panel:nth-of-type(6) { animation-delay: .23s; }
    h1,h2,h3 {
      margin: 0 0 12px;
      font-family: "Fraunces", "Georgia", serif;
      color: #123766;
      letter-spacing: .2px;
    }
    .muted { color:var(--muted); }
    .row { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap:12px; }
    .delivery-payment-row {
      grid-template-columns: repeat(3, minmax(220px, 1fr));
    }
    @media (max-width: 1020px) {
      .delivery-payment-row {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
      }
    }
    label { display:block; font-size: 0.9rem; margin-bottom: 6px; }
    .inline-check {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin: 0;
      font-weight: 600;
      color: #123766;
    }
    .inline-check input[type="checkbox"] {
      width: auto;
      margin: 0;
      accent-color: var(--brand);
    }
    .form-section {
      border: 1px solid #d4e3f8;
      background: #f8fbff;
      border-radius: 12px;
      padding: 12px;
      margin-top: 12px;
    }
    .form-section h3 {
      margin-bottom: 8px;
      font-size: 1.02rem;
    }
    .rooms-browser-controls {
      display: grid;
      grid-template-columns: minmax(240px, 380px);
      gap: 10px;
      align-items: end;
      margin-bottom: 10px;
    }
    .rooms-area-controls-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 12px;
    }
    @keyframes roomEditHighlightFade {
      0% {
        background: #fff8d6;
        border-color: #f0d782;
      }
      100% {
        background: #f8fbff;
        border-color: #d4e3f8;
      }
    }
    .rooms-edit-highlight.editing-highlight-active {
      animation: roomEditHighlightFade 10s ease-out both;
    }
    .rooms-table-scroll {
      max-height: calc(44px + (5 * 52px));
      overflow: auto;
      border: 1px solid #dbe7f8;
      border-radius: 12px;
      background: #fff;
    }
    .rooms-list-table {
      margin: 0;
      width: 100%;
      table-layout: fixed;
    }
    .rooms-list-table th {
      position: sticky;
      top: 0;
      background: #f4f9ff;
      z-index: 1;
    }
    .rooms-list-table th:nth-child(1),
    .rooms-list-table td:nth-child(1) {
      width: 34%;
    }
    .rooms-list-table th:nth-child(2),
    .rooms-list-table td:nth-child(2) {
      width: 20%;
    }
    .rooms-list-table tr[data-room-area][hidden] {
      display: none;
    }
    #rooms_area_filter_empty {
      margin: 0;
    }
    .section-title {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    .section-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: auto;
      height: auto;
      border: none;
      background: transparent;
      color: #16477f;
      font-size: 1rem;
      line-height: 1;
      flex-shrink: 0;
    }
    .extras-section {
      margin-top: 22px;
    }
    .extras-panel {
      margin-top: 0;
    }
    .extras-group h4 {
      margin: 0 0 8px;
      font-family: "Fraunces", "Georgia", serif;
      color: #123766;
      font-size: 1rem;
      letter-spacing: .2px;
    }
    .extras-divider {
      border: 0;
      border-top: 1px solid #cfe0f8;
      margin: 12px 0;
    }
    .extra-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 8px;
    }
    .extra-item {
      margin: 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      border: 1px solid #c5daf8;
      background: #fff;
      border-radius: 10px;
      padding: 10px 12px;
      font-size: .92rem;
      transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .18s var(--ease-snappy);
    }
    .extra-item:hover {
      background: #eef6ff;
      border-color: #a8c6ee;
    }
    .extra-item input[type="checkbox"],
    .extra-item input[type="radio"] {
      width: auto;
      margin: 0;
      accent-color: var(--brand);
    }
    .extra-item:has(input:checked) {
      background: #d9eaff;
      border-color: #5f8fcc;
      box-shadow: inset 0 0 0 1px rgba(23, 89, 175, .22);
    }
    .extra-item:has(input:checked):hover {
      background: #d2e5ff;
      border-color: #537fba;
      box-shadow: inset 0 0 0 1px rgba(19, 77, 154, .32);
    }
    .extra-item:has(input:checked) .extra-name {
      color: #0f4ea2;
    }
    .extra-item .extra-name {
      flex: 1;
      color: #123766;
      font-weight: 600;
    }
    .extra-item .extra-price {
      color: #245996;
      font-weight: 700;
      font-size: .86rem;
    }
    input,select,button {
      width: 100%;
      padding: 10px 12px;
      border: 1px solid #bfd3ef;
      border-radius: 10px;
      background: #fff;
      color: var(--ink);
      font-size: .95rem;
    }
    input:focus,select:focus {
      border-color: var(--brand-2);
      outline: 2px solid rgba(31,114,216,.28);
      outline-offset: 1px;
    }
    input:hover:not(:disabled),
    select:hover:not(:disabled) {
      background: #f3f8ff;
      border-color: #9ec0ea;
    }
    button {
      background: linear-gradient(180deg, var(--brand-2), var(--brand));
      color:#fff;
      border:none;
      cursor:pointer;
      font-weight:700;
      box-shadow: 0 8px 20px rgba(15, 78, 162, .25);
      transition: transform .14s var(--ease-snappy), box-shadow .2s var(--ease-snappy), background .2s ease;
    }
    button:hover:not(:disabled) {
      background: linear-gradient(180deg, #1a66c2, #0d4696);
      box-shadow: 0 10px 22px rgba(15, 78, 162, .35);
    }
    button:active:not(:disabled) {
      background: linear-gradient(180deg, #1659ab, #0a3d83);
      transform: translateY(1px) scale(.99);
    }
    button.secondary {
      background: var(--brand-soft);
      color: #153f74;
      border: 1px solid #c5daf8;
      box-shadow: none;
      font-weight: 600;
    }
    button.secondary:hover:not(:disabled) {
      background: #d8e8ff;
      border-color: #b7cfee;
    }
    button.secondary:active:not(:disabled) {
      background: #c9ddfb;
      border-color: #a9c3e9;
    }
    button.toggle-available {
      background: #e4f6e9;
      color: #1d5a36;
      border: 1px solid #bfe2cb;
      box-shadow: none;
      font-weight: 600;
    }
    button.toggle-available:hover:not(:disabled) {
      background: #d6efdf;
      border-color: #a8d6b7;
      box-shadow: none;
    }
    button.toggle-available:active:not(:disabled) {
      background: #c8e8d4;
      border-color: #97cda8;
    }
    button.toggle-unavailable {
      background: #f9e1e1;
      color: #7a2b2b;
      border: 1px solid #e9b7b7;
      box-shadow: none;
      font-weight: 600;
    }
    button.toggle-unavailable:hover:not(:disabled) {
      background: #f3d0d0;
      border-color: #de9f9f;
      box-shadow: none;
    }
    button.toggle-unavailable:active:not(:disabled) {
      background: #ebc2c2;
      border-color: #d38f8f;
    }
    button.danger {
      background: linear-gradient(180deg, #d24b4b, #b92f2f);
      color: #fff;
      border: none;
      box-shadow: 0 8px 20px rgba(148, 31, 31, .24);
    }
    button.danger:hover:not(:disabled) {
      background: linear-gradient(180deg, #be3f3f, #a62626);
      box-shadow: 0 10px 22px rgba(148, 31, 31, .32);
    }
    button.danger:active:not(:disabled) {
      background: linear-gradient(180deg, #ab3838, #911f1f);
    }
    button.admin-mark-paid {
      background: linear-gradient(180deg, #7fd7a4, #58bf88);
      color: #0d3d26;
      border: 1px solid #4eae7c;
      box-shadow: 0 8px 20px rgba(37, 129, 85, .24);
    }
    button.admin-mark-paid:hover:not(:disabled) {
      background: linear-gradient(180deg, #6fcb98, #49b37b);
      box-shadow: 0 10px 22px rgba(31, 115, 75, .3);
    }
    button.admin-mark-paid:active:not(:disabled) {
      background: linear-gradient(180deg, #63be8b, #3ea66f);
    }
    button.admin-mark-unpaid {
      background: linear-gradient(180deg, #d24b4b, #b92f2f);
      color: #fff;
      border: none;
      box-shadow: 0 8px 20px rgba(148, 31, 31, .24);
    }
    button.admin-mark-unpaid:hover:not(:disabled) {
      background: linear-gradient(180deg, #be3f3f, #a62626);
      box-shadow: 0 10px 22px rgba(148, 31, 31, .32);
    }
    button.admin-mark-unpaid:active:not(:disabled) {
      background: linear-gradient(180deg, #ab3838, #911f1f);
    }
    button.complete-order-btn:active:not(:disabled),
    button.complete-order-btn.is-submitting {
      background: linear-gradient(180deg, #2da362, #1d7a4e);
      box-shadow: 0 10px 22px rgba(22, 105, 64, .3);
    }
    button.complete-order-btn.is-submitting {
      opacity: 1;
      pointer-events: none;
    }
    button:disabled { opacity: .55; cursor: not-allowed; }
    .top { display:flex; justify-content:space-between; gap:12px; align-items:center; flex-wrap: wrap; }
    .pill {
      display:inline-block;
      padding:5px 10px;
      border-radius:999px;
      font-size:.8rem;
      background: #e6f1ff;
      border: 1px solid #c6daf8;
      color: #184678;
      font-weight: 600;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
    }
    table { width:100%; border-collapse:collapse; }
    th,td { text-align:left; border-bottom:1px solid #dbe7f8; padding:8px; vertical-align: top; }
    th { font-size: .78rem; text-transform: uppercase; color: #2b4f7e; letter-spacing: .4px; }
    .admin-table-scroll {
      max-height: min(68vh, calc(44px + (10 * 52px)));
      overflow: auto;
      border: 1px solid #dbe7f8;
      border-radius: 12px;
      background: #fff;
    }
    .admin-table-scroll table {
      margin: 0;
    }
    .admin-table-scroll th {
      position: sticky;
      top: 0;
      background: #f4f9ff;
      z-index: 1;
    }
    tbody tr:hover td { background: rgba(228, 240, 255, .55); }
    tr.queue-order-recent td {
      animation: queueRowRecentFade 20s ease-out both;
    }
    tr.teacher-balance-row { cursor: pointer; }
    tr.teacher-balance-row:focus-visible {
      outline: 2px solid rgba(31,114,216,.45);
      outline-offset: -2px;
    }
    .right { text-align:right; }
    .actions { display:flex; gap:8px; flex-wrap: wrap; }
    .actions form { margin: 0; }
    .actions button { width: auto; }
    .inline-form {
      margin: 0;
      display: inline-block;
    }
    .inline-form select {
      min-width: 112px;
    }
    .actions-right { justify-content: flex-end; }
    .queue-order-actions {
      display: inline-flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 6px;
    }
    .queue-order-actions form {
      margin: 0;
    }
    .queue-cash-paid-indicator {
      font-weight: 700;
    }
    .mt-8 { margin-top: 8px; }
    .mt-10 { margin-top: 10px; }
    .mt-12 { margin-top: 12px; }
    .mb-10 { margin-bottom: 10px; }
    .form-fieldset-reset {
      border: 0;
      padding: 0;
      margin: 0;
    }
    .align-end {
      display: flex;
      align-items: flex-end;
    }
    .whitelist-role-form {
      display: flex;
      gap: 8px;
      align-items: center;
    }
    .whitelist-email-input {
      width: min(360px, 100%);
    }
    .whitelist-role-select {
      min-width: 130px;
    }
    .whitelist-save-btn[hidden] {
      display: none !important;
    }
    .error-stack {
      white-space: pre-wrap;
    }
    .admin-audit-pagination {
      justify-content: center;
      align-items: center;
      margin-top: 10px;
    }
    .admin-unpaid-pagination {
      justify-content: center;
      align-items: center;
      margin-top: 10px;
    }
    .admin-unpaid-pagination .pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 40px;
      line-height: 1;
      text-align: center;
    }
    .admin-unpaid-pagination .button-inline:disabled {
      background: #e2e8f2;
      color: #7a879b;
      border-color: #c7d2e4;
      box-shadow: none;
      opacity: 1;
    }
    .admin-audit-pagination .pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 40px;
      line-height: 1;
      text-align: center;
    }
    .admin-audit-pagination .button-inline:disabled {
      background: #e2e8f2;
      color: #7a879b;
      border-color: #c7d2e4;
      box-shadow: none;
      opacity: 1;
    }
    .admin-top-actions {
      align-items: center;
    }
    .admin-section-group {
      border: 1px solid #cdddf4;
      border-radius: 16px;
      padding: 12px;
      margin-bottom: 14px;
      background: linear-gradient(180deg, #f7fbff, #f3f8ff);
      box-shadow: 0 8px 20px rgba(18, 61, 113, .08);
    }
    .admin-group-title {
      margin: 0 0 10px;
      font-size: 1.5em;
      color: #144071;
    }
    .admin-section-group > .panel {
      margin-bottom: 10px;
      box-shadow: none;
    }
    .admin-section-group > .panel:last-child {
      margin-bottom: 0;
    }
    .admin-order-options-panel {
      margin: 0;
      padding: 0;
      border: none;
      background: transparent;
      box-shadow: none;
      border-radius: 0;
    }
    .tab.admin-nav-tabs {
      display: flex;
      align-items: stretch;
      border: 1px solid #c8daf3;
      background: #f1f6ff;
      border-radius: 12px 12px 0 0;
      margin-bottom: 0;
      gap: 0;
      flex-wrap: wrap;
      list-style: none;
      padding-left: 0;
      overflow: hidden;
    }
    .tab.admin-nav-tabs .tablinks.admin-nav-link {
      width: auto;
      min-width: 170px;
      min-height: 44px;
      margin: 0;
      padding: 10px 14px;
      border-radius: 0;
      border: none;
      border-right: 1px solid #d7e4f7;
      background: transparent;
      color: #17447b;
      font-weight: 700;
      box-shadow: none;
      cursor: pointer;
      position: relative;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .tab.admin-nav-tabs .tablinks.admin-nav-link:hover,
    .tab.admin-nav-tabs .tablinks.admin-nav-link:active {
      background: #eef5ff;
      color: #123766;
      border-right-color: #d7e4f7;
      transform: none;
    }
    .tab.admin-nav-tabs .tablinks.admin-nav-link:last-child {
      border-right: none;
    }
    .tab.admin-nav-tabs .tablinks.admin-nav-link.active {
      background: #fff;
      color: #123766;
      box-shadow: inset 0 -2px 0 #fff;
    }
    .tab.admin-nav-tabs .tablinks.admin-nav-link:focus-visible {
      outline: 2px solid rgba(31,114,216,.35);
      outline-offset: 2px;
      z-index: 1;
    }
    .admin-tab-content {
      width: 100%;
      border: 1px solid #c8daf3;
      border-top: none;
      border-radius: 0 0 12px 12px;
      background: #fff;
      padding: 12px;
    }
    .tabcontent.admin-tab-pane {
      width: 100%;
      display: none;
    }
    .tabcontent.admin-tab-pane.active {
      display: block;
    }
    .coffee-options-dropdown-group select {
      max-width: 520px;
    }
    .coffee-options-dropdown-group .actions {
      flex-wrap: wrap;
      gap: 8px;
    }
    .admin-collapsible-head {
      align-items: center;
    }
    .admin-collapsible-head h2 {
      margin-bottom: 0;
    }
    .admin-collapsible-heading-toggle {
      cursor: pointer;
      user-select: none;
    }
    .admin-collapsible-heading-toggle:hover {
      color: #0f2f5a;
    }
    .admin-collapsible-heading-toggle:focus-visible {
      outline: 2px solid rgba(31,114,216,.35);
      outline-offset: 3px;
      border-radius: 6px;
    }
    .admin-collapsible-head > .actions {
      margin-left: auto;
      align-items: center;
    }
    .admin-collapsible-toggle {
      width: auto;
      min-width: 0;
      font-size: 1.08rem;
      line-height: 1;
      padding: 2px 6px;
      font-family: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", sans-serif;
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
      color: #153f74;
      border-radius: 0;
    }
    .admin-collapsible-toggle:hover:not(:disabled),
    .admin-collapsible-toggle:active:not(:disabled) {
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
      color: #0f2f5a;
      transform: none;
    }
    .admin-section-body {
      overflow: hidden;
      will-change: height, opacity, transform;
      transition: height .28s var(--ease-smooth), opacity .22s ease, transform .22s ease;
    }
    .admin-collapsible-block.admin-section-collapsed .admin-section-body {
      pointer-events: none;
    }
    .admin-collapsible-block.admin-section-collapsed {
      padding-bottom: 12px;
    }
    .admin-mobile-menu-toggle {
      display: none;
    }
    .admin-mobile-menu-links {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      align-items: center;
    }
    .full-width-actions {
      display: block;
    }
    .full-width-actions button {
      width: 100%;
    }
    .button-inline {
      width: auto;
    }
    .filter-select {
      width: auto;
      min-width: 145px;
      padding: 8px 10px;
      border-radius: 8px;
    }
    .invoice-range-controls {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: flex-end;
      gap: 10px 12px;
    }
    .invoice-range-field {
      min-width: 220px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
    }
    .invoice-range-field label {
      text-align: center;
      width: 100%;
    }
    .invoice-range-field .filter-select {
      min-width: 220px;
      text-align: center;
    }
    .invoice-range-check {
      min-height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .invoice-range-action {
      min-height: 40px;
      display: flex;
      align-items: flex-end;
      justify-content: center;
    }
    .invoice-range-action .button-inline {
      min-width: 160px;
      white-space: nowrap;
    }
    .invoice-range-pagination {
      margin-top: 10px;
    }
    #invoice_range_mode_modal {
      z-index: 82;
    }
    .invoice-mode-card {
      width: min(560px, 100%);
      max-height: none;
      padding: 18px;
    }
    .invoice-mode-card h3 {
      margin: 0 0 8px;
      color: #144071;
    }
    .invoice-mode-actions {
      justify-content: center;
      align-items: center;
      gap: 10px;
      margin-top: 14px;
      flex-wrap: wrap;
    }
    .invoice-mode-actions button {
      width: auto;
      min-width: 200px;
    }
    .csv-export-card {
      width: fit-content;
      max-width: min(340px, calc(100vw - 32px));
      max-height: none;
      padding: 14px;
    }
    .csv-export-actions {
      flex-direction: column;
      align-items: stretch;
      justify-content: stretch;
      gap: 8px;
      margin-top: 0;
      flex-wrap: nowrap;
    }
    .csv-export-actions a {
      text-decoration: none;
      display: block;
      width: 100%;
    }
    .csv-export-actions button {
      width: 100%;
      min-width: 0;
    }
    .csv-export-note {
      margin-top: 12px;
      text-align: center;
    }
    .queue-panel {
      min-height: calc(100vh - 190px);
      display: flex;
      flex-direction: column;
    }
    .queue-table-wrap {
      flex: 1;
      overflow: auto;
      border: 1px solid #dbe7f8;
      border-radius: 12px;
      background: #fff;
    }
    .queue-table-wrap table {
      margin: 0;
    }
    .queue-table-wrap th {
      position: sticky;
      top: 0;
      background: #f4f9ff;
      z-index: 1;
    }
    .modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 70;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      padding: 56px 16px 16px;
      background: rgba(10, 28, 52, .45);
      backdrop-filter: blur(4px) saturate(120%);
    }
    .modal-backdrop[hidden] {
      display: none;
    }
    .modal-backdrop:not([hidden]) .modal-card {
      animation: modalIn .24s var(--ease-smooth) both;
    }
    .modal-card {
      width: min(1100px, 100%);
      max-height: calc(100vh - 72px);
      background: #fff;
      border: 1px solid #c5daf8;
      border-radius: 16px;
      box-shadow: 0 22px 40px rgba(9, 33, 64, .34);
      padding: 14px;
      overflow: hidden;
    }
    .modal-scroll {
      max-height: min(58vh, 460px);
      overflow: auto;
      border: 1px solid #dbe7f8;
      border-radius: 12px;
      background: #fff;
    }
    .modal-scroll-ten-rows {
      max-height: min(70vh, calc(44px + (10 * 52px)));
    }
    .help-list {
      margin: 0;
      padding: 14px 18px 16px 30px;
      color: #173c67;
      line-height: 1.45;
    }
    .help-list li + li {
      margin-top: 8px;
    }
    .masquerade-form {
      margin-top: 10px;
      border: 1px solid #edc8c8;
      border-radius: 12px;
      background: #fff4f4;
      padding: 10px;
    }
    .masquerade-form label {
      font-weight: 700;
      color: #8f2c2c;
      margin-bottom: 6px;
      font-size: .82rem;
      text-transform: uppercase;
      letter-spacing: .3px;
    }
    .masquerade-form .masquerade-row {
      display: grid;
      grid-template-columns: minmax(220px, 1fr) auto;
      gap: 8px;
      align-items: end;
    }
    .masquerade-form .button-inline {
      min-height: 40px;
    }
    .masquerade-state-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border: 1px solid #ebb9b9;
      background: #fff0f0;
      color: #8a2929;
      border-radius: 999px;
      padding: 5px 11px;
      font-size: .76rem;
      font-weight: 700;
      letter-spacing: .22px;
    }
    .masquerade-exit-floating {
      position: sticky;
      top: 72px;
      z-index: 95;
      width: 100%;
      display: flex;
      justify-content: center;
      margin-bottom: 10px;
    }
    .masquerade-exit-floating button {
      width: auto;
      min-width: 230px;
      padding: 10px 16px;
      box-shadow: 0 10px 26px rgba(134, 25, 25, .28);
    }
    .payment-toggle {
      display: inline-flex;
      align-items: center;
      gap: 2px;
      border: 1px solid #c5daf8;
      border-radius: 10px;
      background: #edf5ff;
      padding: 2px;
    }
    .payment-toggle button {
      width: auto;
      min-width: 88px;
      padding: 8px 10px;
      box-shadow: none;
      border-radius: 8px;
    }
    .payment-toggle button.secondary {
      background: transparent;
      border: none;
      color: #184678;
    }
    .payment-toggle button.secondary:hover:not(:disabled) {
      background: #deecff;
      border: none;
    }
    .payment-toggle button.active {
      background: linear-gradient(180deg, var(--brand-2), var(--brand));
      color: #fff;
      border: none;
    }
    .modal-filter-section {
      border: 1px solid #dbe7f8;
      border-radius: 12px;
      background: #f8fbff;
      margin: 0 0 10px;
      padding: 0 10px 10px;
    }
    .modal-filter-section > summary {
      cursor: pointer;
      padding: 10px 4px;
      font-weight: 700;
      color: #123766;
      user-select: none;
    }
    .modal-filter-section[open] > summary {
      margin-bottom: 8px;
      border-bottom: 1px solid #dbe7f8;
    }
    .filter-lines {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 10px;
      align-items: end;
    }
    .filter-block {
      min-width: 0;
    }
    .filter-block .filter-select {
      width: 100%;
      min-width: 0;
    }
    .filter-block label {
      display: block;
      margin-bottom: 6px;
      font-size: .74rem;
      font-weight: 700;
      color: #2b4f7e;
      text-transform: uppercase;
      letter-spacing: .35px;
    }
    .filter-export {
      display: flex;
      align-items: end;
    }
    .filter-export .button-inline {
      width: 100%;
    }
    @media (max-width: 1080px) {
      .filter-lines {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }
    @media (max-width: 680px) {
      .filter-lines {
        grid-template-columns: 1fr;
      }
    }
    .modal-actions {
      flex: 1;
      align-items: center;
    }
    .modal-filters {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }
    .modal-close-btn {
      margin-left: auto;
    }
    @media (hover:hover) and (pointer:fine) {
      .panel:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-strong);
      }
      .brand-chip:hover {
        transform: translateY(-1px);
      }
      .extra-item:hover {
        transform: translateY(-1px);
      }
      button:hover:not(:disabled) {
        transform: translateY(-1px);
      }
      button.secondary:hover:not(:disabled) {
        transform: translateY(-1px);
      }
      .link-button:hover,
      .google-btn:hover {
        transform: translateY(-1px);
      }
    }
    .icon {
      display:inline-flex;
      align-items:center;
      justify-content:center;
      width:22px;
      height:22px;
      border-radius:6px;
      background:#e4f0ff;
      color:#16477f;
      border:1px solid #c6dbf8;
      font-size:14px;
      margin-right:6px;
      font-weight: 600;
    }
    .ok { color:var(--ok); }
    .warn { color:var(--warn); }
    .order-note {
      text-align: center;
      margin-top: 12px;
    }
    .edit-order-note {
      text-align: center;
      margin: 6px 0 12px;
      color: #123766;
      font-family: "Fraunces", "Georgia", serif;
      font-size: 1.18rem;
      letter-spacing: .2px;
    }
    .grid2 { display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
    a { color: var(--brand); }
    .google-btn {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      min-height: 44px;
      padding: 0 16px 0 12px;
      border-radius: 8px;
      border: 1px solid #dadce0;
      background: #ffffff;
      color: #3c4043;
      font-weight: 600;
      text-decoration: none;
      letter-spacing: .1px;
      box-shadow: 0 1px 2px rgba(60,64,67,.2);
      transition: box-shadow .16s ease, background .16s ease, border-color .16s ease;
    }
    .google-btn:hover {
      background: #f8f9fa;
      border-color: #c6c6c6;
      box-shadow: 0 2px 6px rgba(60,64,67,.24);
    }
    .google-btn:focus-visible {
      outline: 3px solid rgba(66,133,244,.35);
      outline-offset: 2px;
    }
    .google-btn-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 22px;
      height: 22px;
    }
    .link-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      padding: 0 14px;
      border-radius: 8px;
      border: 1px solid #c5daf8;
      background: var(--brand-soft);
      color: #153f74;
      font-weight: 600;
      text-decoration: none;
    }
    body.login-page {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    html.login-page {
      background-color: #97b0cf;
      background-image:
        radial-gradient(155% 130% at 12% 12%, rgba(196, 222, 255, .95) 0%, rgba(151, 176, 207, .5) 42%, rgba(151, 176, 207, 0) 78%),
        radial-gradient(150% 140% at 92% 12%, rgba(19, 91, 186, .46) 0%, rgba(52, 93, 140, .22) 42%, rgba(52, 93, 140, 0) 78%),
        radial-gradient(175% 150% at 20% 88%, rgba(104, 171, 252, .36) 0%, rgba(52, 93, 140, .16) 46%, rgba(52, 93, 140, 0) 84%),
        radial-gradient(165% 150% at 78% 18%, rgba(19, 91, 186, .26) 0%, rgba(19, 91, 186, 0) 76%),
        linear-gradient(145deg, #97b0cf 0%, #345d8c 26%, #68abfc 52%, #c4deff 76%, #135bba 100%);
      background-size: 240% 240%, 215% 215%, 245% 245%, 205% 205%, 320% 320%;
      background-repeat: no-repeat;
      background-attachment: fixed;
      animation: loginGradient 6s ease-in-out infinite alternate;
      will-change: background-position, background-size;
    }
    body.login-page .wrap {
      margin: 0 auto;
      padding: 20px 16px;
      width: 100%;
      max-width: 680px;
      min-height: 100vh;
      display: grid;
      place-items: center;
    }
    .login-panel {
      width: fit-content;
      max-width: min(100%, 760px);
      margin: 0;
      padding: 24px 18px;
      text-align: left;
    }
    .login-hero {
      display: grid;
      grid-template-columns: auto minmax(260px, 1fr);
      gap: 14px;
      align-items: center;
      margin-bottom: 8px;
    }
    .login-copy h1 {
      margin: 0 0 6px;
    }
    .login-logo {
      display: block;
      width: min(100%, 250px);
      max-width: 250px;
      height: auto;
      margin: 0;
      object-fit: contain;
    }
    .login-subtitle {
      margin: 0;
      max-width: 40ch;
    }
    .login-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
    .login-actions-centered {
      justify-content: center;
      width: 100%;
    }
    .login-actions-centered .google-btn,
    .login-actions-centered .link-button {
      width: min(100%, 340px);
      justify-content: center;
    }
    @media (max-width: 760px) {
      html {
        background-attachment: scroll;
      }
      .wrap {
        margin: 12px auto;
        padding: 0 12px 24px;
      }
      .brand-inner {
        padding: 10px 12px;
      }
      .brand-logo {
        height: 44px;
      }
      .brand-copy strong {
        font-size: 1rem;
      }
      .brand-chip {
        justify-content: center;
      }
      .brand-actions {
        width: 100%;
        justify-content: center;
      }
      .panel {
        padding: 14px;
      }
      .row,
      .extra-grid {
        grid-template-columns: 1fr;
      }
      .rooms-browser-controls {
        grid-template-columns: 1fr;
      }
      .rooms-area-controls-grid {
        grid-template-columns: 1fr;
      }
      .rooms-table-scroll {
        max-height: calc(44px + (5 * 56px));
      }
      .admin-table-scroll {
        max-height: min(64vh, calc(44px + (10 * 56px)));
      }
      .top {
        align-items: flex-start;
      }
      .actions {
        width: 100%;
      }
      .actions button {
        width: 100%;
      }
      .admin-collapsible-head > .actions {
        width: auto;
      }
      .admin-collapsible-head > .actions .admin-collapsible-toggle {
        width: auto;
      }
      .admin-top-actions {
        justify-content: flex-end;
      }
      .admin-section-group {
        padding: 10px;
      }
      .admin-nav-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
      }
      .admin-nav-link {
        width: 100%;
        min-width: 0;
        border-radius: 8px;
        margin-bottom: 0;
      }
      .admin-mobile-menu-toggle {
        display: inline-flex;
        width: auto;
        justify-content: center;
        text-align: center;
        align-items: center;
      }
      .admin-mobile-menu-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
      }
      body.login-page .wrap {
        padding: 14px 12px;
      }
      .login-panel {
        width: 100%;
        padding: 18px 14px;
      }
      .login-hero {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
      }
      .login-copy {
        text-align: center;
      }
      .login-logo {
        width: min(100%, 320px);
        max-width: 250px;
        margin: 0 auto;
      }
      .login-actions-centered .google-btn,
      .login-actions-centered .link-button {
        width: 100%;
      }
      .admin-mobile-menu-links.is-open {
        display: flex;
      }
      .admin-mobile-menu-links > a,
      .admin-mobile-menu-links > form {
        width: 100%;
      }
      .queue-panel {
        min-height: calc(100vh - 150px);
      }
      .modal-backdrop {
        padding: 14px;
      }
      .modal-card {
        max-height: calc(100vh - 28px);
        border-radius: 14px;
        padding: 10px;
      }
      .modal-scroll-ten-rows {
        max-height: min(72vh, calc(44px + (10 * 56px)));
      }
      .filter-select.button-inline,
      .filter-export .button-inline {
        width: 100%;
      }
      .invoice-range-controls {
        flex-direction: column;
        align-items: stretch;
      }
      .invoice-range-field {
        min-width: 0;
        align-items: stretch;
      }
      .invoice-range-field label {
        text-align: center;
      }
      .invoice-range-field .filter-select {
        min-width: 0;
        width: 100%;
      }
      .invoice-range-controls .align-end,
      .invoice-range-check,
      .invoice-range-action {
        align-items: stretch;
        justify-content: stretch;
      }
      .invoice-range-controls .button-inline {
        width: 100%;
        min-width: 0;
      }
      .invoice-mode-actions {
        flex-direction: column;
        align-items: stretch;
      }
      .invoice-mode-actions button {
        width: 100%;
        min-width: 0;
      }
      .csv-export-actions {
        flex-direction: column;
        align-items: stretch;
      }
      .csv-export-actions a {
        width: 100%;
      }
      .csv-export-actions button {
        width: 100%;
        min-width: 0;
      }
      .filter-export {
        flex-direction: column;
        width: 100%;
      }
      .masquerade-form .masquerade-row {
        grid-template-columns: 1fr;
      }
      .masquerade-exit-floating {
        top: 62px;
      }
      .masquerade-exit-floating button {
        min-width: 190px;
      }
      .history-table thead {
        display: none;
      }
      .history-table,
      .history-table tbody,
      .history-table tr,
      .history-table td {
        display: block;
        width: 100%;
      }
      .history-table tbody tr {
        border: 1px solid #d4e3f8;
        border-radius: 12px;
        background: #fff;
        padding: 10px;
        margin-bottom: 10px;
      }
      .history-table tbody tr td {
        border-bottom: none;
        padding: 6px 2px;
        display: grid;
        grid-template-columns: 128px 1fr;
        gap: 8px;
        align-items: start;
      }
      .history-table tbody tr td::before {
        content: attr(data-label);
        font-size: .74rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .3px;
        color: #2b4f7e;
      }
      .history-table tbody tr.history-empty td {
        display: block;
        padding: 4px 2px;
      }
      .history-table tbody tr.history-empty td::before {
        content: none;
      }
    }
    @media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } }
    @media (prefers-reduced-motion: reduce) {
      html {
        animation: none !important;
        scroll-behavior: auto;
      }
      *,
      *::before,
      *::after {
        animation: none !important;
        transition: none !important;
      }
    }
    @media (prefers-reduced-motion: reduce) {
      html.login-page {
        animation: loginGradient 9s ease-in-out infinite alternate !important;
      }
    }
