@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/geist-latin.woff2) format("woff2");
}

:root {
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --green-50: #f0fdf4;
  --green-400: #4ade80;
  --green-700: #15803d;
  --rose-50: #fff1f2;
  --red-500: #ef4444;
  --red-600: #dc2626;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid var(--gray-200); }
html { font-family: Geist, ui-sans-serif, system-ui, sans-serif; line-height: 1.5; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; background: #fff; color: var(--gray-900); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
main { min-height: 100vh; background: #fff; }
a { color: inherit; text-decoration: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; background: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
h1, h2, h3 { font-size: inherit; font-weight: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* ---- nav + footer */
.nav { width: 100%; border-bottom: 1px solid var(--gray-200); background: #fff; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; }
/* The corner logo is "TU": the T from "Tune" and the U-with-horn from "Up" in the full logo. The horn
   rises above the letters, so the image is moved up a whole number of pixels (a part-pixel move would
   blur it) to level the letters with the tabs. */
.nav-logo img { height: 2.75rem; width: auto; position: relative; top: -9px; }
.nav-links { display: none; align-items: center; gap: 2rem; font-size: .875rem; color: var(--gray-600); }
.nav-links a:hover { color: var(--gray-900); }
.nav-account { display: flex; align-items: center; gap: 1rem; }
.nav-links a[aria-current] { color: var(--gray-900); font-weight: 500; }
.nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 2.25rem; height: 2.25rem; padding: 0 .5rem; border-radius: .375rem; }
.nav-toggle span { display: block; height: 2px; background: var(--gray-700); border-radius: 1px; }
.nav-toggle:hover { background: var(--gray-100); }
.nav { position: relative; }
@media (max-width: 899px) {
  .nav-links.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; top: 100%; left: 0; right: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--gray-200); padding: .5rem 1.5rem 1rem; font-size: 1rem; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .08); }
  .nav-links.is-open a { padding: .75rem 0; }
}
@media (min-width: 900px) { .nav-links { display: flex; } .nav-toggle { display: none; } }
.skip-link { position: absolute; left: -999px; top: .5rem; z-index: 100; background: var(--gray-900); color: #fff; padding: .5rem 1rem; border-radius: .375rem; font-size: .875rem; }
.skip-link:focus { left: .5rem; }
:focus-visible { outline: 2px solid var(--gray-900); outline-offset: 2px; }
.input:focus-visible { outline: none; }
body.modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } .spinner { animation: none; } }

.footer { border-top: 1px solid var(--gray-200); background: #fff; }
.footer-main { max-width: 64rem; margin: 0 auto; padding: 2.5rem 1.5rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-brand { text-align: center; }
.footer-name { font-weight: 700; }
.footer-tag { font-size: .875rem; color: var(--gray-500); }
.footer-links { display: flex; align-items: center; gap: 1.5rem; font-size: .875rem; color: var(--gray-600); }
.footer-links a:hover { color: var(--gray-900); }
.footer-legal { border-top: 1px solid var(--gray-100); }
.footer-legal p { max-width: 64rem; margin: 0 auto; padding: 1rem 1.5rem; font-size: .75rem; color: var(--gray-400); text-align: center; }
@media (min-width: 640px) {
  .footer-main { flex-direction: row; }
  .footer-brand, .footer-legal p { text-align: left; }
}

/* ---- buttons, inputs, chips */
.btn { display: inline-block; background: var(--gray-900); color: #fff; font-size: .875rem; padding: .5rem 1rem; border-radius: .375rem; border: 1px solid transparent; text-align: center; transition: background-color .15s, border-color .15s; }
.btn:hover { background: var(--gray-700); }
.btn:disabled { opacity: .5; }
.btn-sm { padding: .5rem 1rem; }
.btn-lg { padding: .75rem 1.5rem; font-weight: 500; }
.btn-block { display: block; width: 100%; padding: .75rem 1rem; font-weight: 500; }
.btn-outline { background: transparent; color: inherit; border-color: var(--gray-300); }
.btn-outline:hover { background: transparent; border-color: var(--gray-500); }
.btn-amber { background: var(--amber-600); font-weight: 500; }
.btn-amber:hover { background: var(--amber-700); }
.btn-xl { border-radius: .75rem; padding: .75rem 1rem; }
.link-btn { font-size: .875rem; color: var(--gray-500); transition: color .15s; }
.link-btn:hover { color: var(--gray-900); }
.text-link { font-size: .875rem; color: var(--gray-500); text-decoration: underline; text-align: left; }
.text-link:hover { color: var(--gray-900); }
.danger-link { font-size: .75rem; color: var(--red-500); }
.danger-link:hover { color: var(--red-600); text-decoration: underline; }

.label { display: block; font-size: .875rem; font-weight: 500; color: var(--gray-700); margin-bottom: .25rem; }
.input { width: 100%; border: 1px solid var(--gray-300); border-radius: .375rem; padding: .5rem 1rem; font-size: .875rem; background: #fff; }
select.input { padding: .5rem .75rem; }
textarea.input { padding: .5rem .75rem; resize: vertical; }
.input::placeholder { color: var(--gray-400); }
.input:focus { outline: none; box-shadow: 0 0 0 2px var(--gray-900); }
.hint { font-size: .75rem; color: var(--gray-500); }
.error { font-size: .875rem; color: var(--red-600); }
.success { font-size: .875rem; color: var(--green-700); }
.muted { font-size: .875rem; color: var(--gray-400); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .25rem .75rem; border-radius: 9999px; font-size: .875rem; border: 1px solid var(--gray-300); color: var(--gray-600); transition: all .15s; }
.chip:hover { border-color: var(--gray-500); }
.chip.is-on { background: var(--gray-900); color: #fff; border-color: var(--gray-900); }
.chip-more { border-style: dashed; }
.more-list { columns: 2; column-gap: 1rem; max-height: 60vh; overflow-y: auto; padding: .25rem 0; }
.more-list .check-row { break-inside: avoid; margin-bottom: .625rem; }
.tag { font-size: .75rem; background: var(--gray-100); color: var(--gray-700); padding: .25rem .625rem; border-radius: 9999px; }
.tags { display: flex; flex-wrap: wrap; gap: .375rem; }

.stack-3 > * + * { margin-top: .75rem; }
.stack-4 > * + * { margin-top: 1rem; }
.stack-6 > * + * { margin-top: 1.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-4 { margin-bottom: 1rem; }
.box { border: 1px solid var(--gray-200); border-radius: .75rem; padding: 1.5rem; }
.eyebrow { font-size: .875rem; font-weight: 600; color: var(--gray-700); text-transform: uppercase; letter-spacing: .025em; }

/* ---- page shells */
.page { margin: 0 auto; padding: 4rem 1.5rem; }
.page-wide { max-width: 64rem; }
.page-form { max-width: 32rem; }
.page-narrow { max-width: 28rem; }
.page-tall { padding-top: 6rem; padding-bottom: 6rem; }
.page-title { font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; margin-bottom: .5rem; }
.page-sub { color: var(--gray-500); margin-bottom: 2rem; }
.page-sub-dark { color: var(--gray-600); margin-bottom: 2.5rem; }
.form-foot { font-size: .75rem; color: var(--gray-400); text-align: center; margin-top: 1.5rem; }
.form-foot a { text-decoration: underline; }

/* ---- home */
.hero { max-width: 48rem; margin: 0 auto; padding: 4rem 1.5rem; text-align: center; }
.hero-logo { margin: 0 auto 1rem; height: 12rem; width: auto; }
.hero-lead { font-size: 1.125rem; line-height: 1.75rem; color: var(--gray-600); margin: 0 auto 2rem; max-width: 42rem; }
.strong { color: var(--gray-900); font-weight: 500; }
.hero-actions { display: flex; justify-content: center; gap: 1rem; }

.stats-band { border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); background: var(--gray-50); }
.stats { max-width: 48rem; margin: 0 auto; padding: 3rem 1.5rem; display: flex; justify-content: center; gap: 3rem; }
.stat { text-align: center; }
.stat-value { min-height: 2.5rem; display: flex; align-items: center; justify-content: center; font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; }
.stat-label { font-size: .875rem; color: var(--gray-500); margin-top: .25rem; }
@media (min-width: 640px) { .stats { gap: 5rem; } }
.spinner { width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 3px solid rgba(156, 163, 175, .25); border-top-color: var(--gray-400); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.how { max-width: 56rem; margin: 0 auto; padding: 5rem 1.5rem; }
.how h2, .cta h2 { font-size: 1.5rem; line-height: 2rem; font-weight: 700; }
.how h2 { text-align: center; margin-bottom: 3rem; }
.steps { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { text-align: center; }
.step-num { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--gray-900); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin: 0 auto 1rem; }
.step h3 { font-weight: 600; margin-bottom: .5rem; }
.step p { font-size: .875rem; color: var(--gray-600); }
.cta { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem 6rem; text-align: center; }
.cta h2 { margin-bottom: .75rem; }
.cta p { color: var(--gray-600); margin-bottom: 2rem; }

/* ---- contact */
.contact { max-width: 42rem; margin: 0 auto; padding: 6rem 1.5rem; text-align: center; }
.contact .page-title { margin-bottom: 1rem; }
.contact-lead { color: var(--gray-600); margin-bottom: 3rem; }
.contact-cards { display: grid; gap: 1.5rem; text-align: left; max-width: 24rem; margin: 0 auto; }
.contact-cards .eyebrow { margin-bottom: .5rem; }
.contact-link:hover { text-decoration: underline; }
.contact-note { font-size: .75rem; color: var(--gray-400); margin-top: 3rem; }

.not-found { min-height: 60vh; display: flex; align-items: center; justify-content: center; gap: 1.25rem; }
.not-found h1 { font-size: 1.5rem; font-weight: 500; padding-right: 1.4rem; border-right: 1px solid rgba(0, 0, 0, .3); line-height: 49px; }
.not-found p { font-size: .875rem; }

/* ---- tutor directory */
.tutor-search { margin-bottom: 1rem; }
.tutor-filters { margin-bottom: 1rem; }
.tutor-count { font-size: .75rem; color: var(--gray-400); margin-bottom: 2rem; }
.tutor-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .tutor-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .tutor-grid { grid-template-columns: repeat(3, 1fr); } }
.tutor-card { border: 1px solid var(--gray-200); border-radius: .75rem; overflow: hidden; display: flex; flex-direction: column; background: #fff; transition: box-shadow .15s; }
.tutor-card:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1); }
.tutor-banner { position: relative; height: 4rem; }
.tutor-banner .avatar { position: absolute; left: 50%; bottom: -2rem; transform: translateX(-50%); }
.tutor-body { padding: 2.5rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; text-align: center; }
.tutor-name { font-weight: 600; }
.tutor-instruments { font-size: .875rem; color: var(--gray-500); margin-bottom: .25rem; }
.tutor-meta { font-size: .75rem; color: var(--gray-400); margin-bottom: .25rem; }
.tutor-bio { font-size: .75rem; color: var(--gray-500); margin-top: .5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tutor-action { margin-top: auto; padding-top: 1rem; }
.tutor-action .btn { width: 100%; }
.rating { font-size: .75rem; color: var(--gray-500); }
.rating-none { font-size: .75rem; color: var(--gray-400); }

.avatar { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; background: var(--gray-100); box-shadow: 0 0 0 4px #fff, 0 1px 2px rgba(0, 0, 0, .05); display: flex; align-items: center; justify-content: center; font-size: 1.125rem; font-weight: 700; color: var(--gray-500); }
.avatar-lg { width: 6rem; height: 6rem; font-size: 1.5rem; }

/* ---- modals */
.overlay { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(0, 0, 0, .4); }
.overlay-top { z-index: 50; }
.modal { position: relative; background: #fff; border-radius: 1rem; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25); width: 100%; max-width: 28rem; max-height: 90vh; overflow-y: auto; }
.modal-banner { position: relative; height: 7rem; }
.modal-banner .avatar { position: absolute; left: 50%; bottom: -3rem; transform: translateX(-50%); }
.modal-close { position: absolute; top: 1rem; right: 1rem; z-index: 10; width: 2rem; height: 2rem; border-radius: 50%; background: rgba(255, 255, 255, .8); color: var(--gray-600); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; line-height: 1; transition: background-color .15s; }
.modal-close:hover { background: #fff; }
.modal-head { padding: 4rem 2rem 1.25rem; display: flex; flex-direction: column; align-items: center; text-align: center; border-bottom: 1px solid var(--gray-100); }
.modal-head h2 { font-size: 1.25rem; font-weight: 700; }
.modal-school { font-size: .875rem; color: var(--gray-500); margin-top: .125rem; }
.modal-location { font-size: .75rem; color: var(--gray-400); margin-top: .125rem; }
.modal-rating { margin-top: .375rem; }
.modal-stats { display: flex; gap: 2rem; margin-top: 1rem; }
.modal-stats .num { font-size: 1.5rem; font-weight: 700; }
.modal-stats .cap { font-size: .75rem; color: var(--gray-400); }
.modal-body { padding: 1.5rem 2rem; }
.modal-body > * + * { margin-top: 1.25rem; }
.modal-foot { padding: 0 2rem 2rem; }
.modal-foot .btn { display: block; width: 100%; }
.caps { font-size: .75rem; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .375rem; }
.prose { font-size: .875rem; color: var(--gray-700); line-height: 1.625; }
.signin-gate { border: 1px dashed var(--gray-200); border-radius: .5rem; padding: 1rem; text-align: center; }
.signin-gate p { font-size: .875rem; color: var(--gray-500); margin-bottom: .5rem; }
.signin-gate a { font-size: .875rem; font-weight: 500; color: var(--amber-700); text-decoration: underline; }
.note { font-size: .75rem; color: var(--gray-400); padding: .5rem 0; }

.review { border: 1px solid var(--gray-200); border-radius: .75rem; padding: 1rem; }
.review + .review { margin-top: .5rem; }
.review-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: .25rem; }
.review-who { font-size: .875rem; font-weight: 500; color: var(--gray-700); }
.review-when { font-size: .75rem; color: var(--gray-400); flex-shrink: 0; }
.review-comment { font-size: .875rem; color: var(--gray-600); font-style: italic; border-left: 2px solid var(--gray-200); padding-left: .75rem; margin-top: .5rem; }

/* weekly availability grid (7am–10pm, half-hour rows) */
.avail { user-select: none; overflow-x: auto; }
.avail-inner { display: inline-flex; min-width: 100%; }
.avail-times { width: 3.5rem; flex-shrink: 0; padding-top: 1.5rem; }
.avail-times div { height: 1rem; position: relative; }
.avail-times span { position: absolute; right: .25rem; top: -.375rem; font-size: 9px; line-height: 1; color: var(--gray-400); white-space: nowrap; }
.avail-day { flex: 1; min-width: 34px; border-left: 1px solid var(--gray-200); }
.avail-day:last-child { border-right: 1px solid var(--gray-200); }
.avail-day-name { height: 1.5rem; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--gray-200); font-size: 10px; font-weight: 600; color: var(--gray-500); }
.avail-cell { height: 1rem; background: var(--rose-50); border-top: 1px solid var(--gray-100); }
.avail-cell:nth-child(even) { border-top-color: var(--gray-300); }
.avail-cell.is-free { background: var(--green-400); }

/* lesson request */
.request { max-width: 32rem; border-radius: .75rem; padding: 1.5rem; }
.request-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.request-head h2 { font-size: 1.125rem; font-weight: 600; }
.request-x { color: var(--gray-400); font-size: 1.5rem; line-height: 1; }
.request-x:hover { color: var(--gray-700); }
.request-step { margin-bottom: 1.25rem; }
.request-step .label { margin-bottom: .5rem; }
.request-step .input { padding: .5rem .75rem; }
.step-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.step-title { font-size: .875rem; font-weight: 500; color: var(--gray-700); margin-bottom: .5rem; }
.step-row .step-title { margin-bottom: 0; }
.toggle { display: flex; gap: .25rem; }
.toggle button { font-size: .75rem; padding: .25rem .5rem; border-radius: 9999px; color: var(--gray-500); transition: all .15s; }
.toggle button:hover { color: var(--gray-700); }
.toggle button.is-on { background: var(--gray-900); color: #fff; }
.date-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.date-pill { padding: .375rem .75rem; border-radius: .5rem; font-size: .875rem; border: 1px solid var(--gray-200); color: var(--gray-700); transition: all .15s; }
.date-pill:hover { border-color: var(--gray-400); }
.date-pill.is-on { background: var(--gray-900); color: #fff; border-color: var(--gray-900); }
.cal { border: 1px solid var(--gray-200); border-radius: .75rem; overflow: hidden; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-head { background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
.cal-head div { font-size: .75rem; font-weight: 600; color: var(--gray-500); text-align: center; padding: .5rem 0; }
.cal-day { border-top: 1px solid var(--gray-100); border-left: 1px solid var(--gray-100); min-height: 68px; padding: .375rem; text-align: left; transition: background-color .15s; min-width: 0; }
.cal-day .d { font-size: .75rem; margin-bottom: .25rem; color: var(--gray-500); }
.cal-day .t { font-size: 10px; color: var(--green-700); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-day.is-past { background: rgba(249, 250, 251, .5); }
.cal-day.is-past .d { color: var(--gray-300); }
.cal-day.is-open { background: rgba(240, 253, 244, .6); cursor: pointer; }
.cal-day.is-open:hover { background: var(--green-50); }
.cal-day.is-on { background: var(--gray-900); }
.cal-day.is-on .d { color: #fff; font-weight: 700; }
.cal-day.is-on .t { color: var(--gray-200); }
.open-hours { background: var(--gray-50); border-radius: .5rem; padding: .5rem .75rem; margin-bottom: .75rem; }
.open-hours p { font-size: .75rem; color: var(--gray-500); margin-bottom: .125rem; }
.open-hours span { font-size: .75rem; color: var(--gray-700); font-weight: 500; }
.open-hours .dot { color: var(--gray-400); margin: 0 .25rem; }
.time-row { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.time-pick p { font-size: .75rem; color: var(--gray-500); margin-bottom: .25rem; }
.time-pick div { display: flex; align-items: center; gap: .25rem; }
.time-pick select, .time-pick input { border: 1px solid var(--gray-300); border-radius: .375rem; padding: .375rem .5rem; font-size: .875rem; background: #fff; text-align: center; width: 3.5rem; }
.time-pick select:last-child { width: 4rem; }
.time-pick select:focus, .time-pick input:focus { outline: none; border-color: var(--gray-500); }
.time-pick .colon { color: var(--gray-400); font-weight: 500; }
.time-error { font-size: .75rem; color: var(--red-500); margin-top: .25rem; }
.optional { color: var(--gray-400); font-weight: 400; }
.sent { text-align: center; padding: 2rem 0; }
.sent .check { font-size: 1.875rem; margin-bottom: 1rem; }
.sent h2 { font-size: 1.125rem; font-weight: 600; margin-bottom: .5rem; }
.sent p { font-size: .875rem; color: var(--gray-500); margin-bottom: 1.5rem; }
.sent .btn { padding: .5rem 1.5rem; }

/* ---- dashboards */
.dash-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 768px) { .dash-grid { grid-template-columns: 3fr 2fr; } }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; min-height: 2.25rem; }
.row-card { border: 1px solid var(--gray-200); border-radius: .75rem; padding: 1rem 1.25rem; }
.row-card + .row-card { margin-top: .75rem; }
.row-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.row-title { font-weight: 600; }
.row-sub { font-size: .875rem; color: var(--gray-500); }
.row-note { font-size: .875rem; color: var(--gray-600); font-style: italic; border-left: 2px solid var(--gray-200); padding-left: .75rem; margin-top: .5rem; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: .75rem; }
.badge { font-size: .75rem; font-weight: 500; padding: .125rem .625rem; border-radius: 9999px; background: var(--gray-100); color: var(--gray-700); flex-shrink: 0; text-transform: capitalize; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-accepted, .badge-complete { background: #dcfce7; color: #166534; }
.badge-declined, .badge-cancelled { background: var(--gray-100); color: var(--gray-500); }
.window-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.window-row select, .window-row input { border: 1px solid var(--gray-300); border-radius: .375rem; padding: .375rem .5rem; font-size: .875rem; background: #fff; }
.window-row .to { font-size: .75rem; color: var(--gray-400); }
.stars { display: flex; gap: .125rem; }
.stars button { font-size: 1.25rem; line-height: 1; color: var(--gray-300); }
.stars button.is-on { color: var(--amber-600); }
.review-form { margin-top: .75rem; }
.review-form > * + * { margin-top: .5rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(3, 1fr); } }
.table-wrap { overflow-x: auto; border: 1px solid var(--gray-200); border-radius: .75rem; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th { text-align: left; font-size: .75rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em; background: var(--gray-50); }
th, td { padding: .625rem 1rem; white-space: nowrap; }
td { border-top: 1px solid var(--gray-100); color: var(--gray-700); }
td .text-link { font-size: .75rem; }

.notice { border-radius: .75rem; padding: .875rem 1.25rem; font-size: .875rem; margin-bottom: 2rem; border: 1px solid; }
.notice-warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.notice-ok { background: var(--green-50); border-color: #bbf7d0; color: #166534; }
.photo-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.photo-row .avatar { box-shadow: none; flex-shrink: 0; }
.photo-row label.btn { cursor: pointer; }
.photo-row label.btn:focus-within { outline: 2px solid var(--gray-900); outline-offset: 2px; }
.access-select { border: 1px solid var(--gray-300); border-radius: .375rem; padding: .25rem .5rem; font-size: .8125rem; background: #fff; }
.nav-user { font-size: .875rem; font-weight: 500; color: var(--gray-900); max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) { .nav-user { max-width: 7.5rem; } .nav-account { gap: .625rem; } }
/* editable weekly availability chart on the tutor dashboard */
.avail-edit { touch-action: none; }
.avail-edit .avail-cell { display: block; width: 100%; height: 1.125rem; cursor: pointer; border-left: 0; border-right: 0; border-bottom: 0; }
.avail-edit .avail-times div { height: 1.125rem; }
.avail-edit .avail-cell:hover { filter: brightness(.94); }
.avail-edit .avail-cell:focus-visible { outline: 2px solid var(--gray-900); outline-offset: -2px; position: relative; }
/* centre the tabs in the bar: equal space either side, whatever the logo and name widths are */
@media (min-width: 900px) {
  .nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: 1rem; }
  .nav-logo { justify-self: start; }
  .nav-account { justify-self: end; min-width: 0; }
}
@media (min-width: 900px) and (max-width: 1023px) { .nav-links { gap: 1.25rem; } .nav-user { max-width: 8rem; } }
/* sits under the password box with clear space between them (it used to be pulled up against the box) */
.stack-4 > .form-aside { font-size: .8125rem; text-align: right; margin-top: .5rem; }
.form-aside a { color: var(--gray-600); text-decoration: underline; }
.form-aside a:hover { color: var(--gray-900); }
/* leaderboards */
.page-board { max-width: 44rem; }
.board-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--gray-200); margin-bottom: 1.25rem; overflow-x: auto; }
.board-tab { padding: .625rem 1rem; font-size: .875rem; font-weight: 500; color: var(--gray-500); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .15s; }
.board-tab:hover { color: var(--gray-900); }
.board-tab[aria-selected="true"] { color: var(--gray-900); border-bottom-color: var(--amber-600); }
.board-filters { display: flex; gap: .75rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.board-filters .input { width: auto; flex: 1 1 12rem; }
.page-board .notice { margin-bottom: 1.25rem; }
.page-board .notice a { text-decoration: underline; font-weight: 500; }
.board-list { list-style: none; border: 1px solid var(--gray-200); border-radius: .75rem; overflow: hidden; }
.board-row { display: flex; align-items: center; gap: 1rem; padding: .75rem 1.25rem; }
.board-row + .board-row { border-top: 1px solid var(--gray-100); }
.board-rank { flex: 0 0 2rem; height: 2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .875rem; font-weight: 600; color: var(--gray-500); background: var(--gray-100); font-variant-numeric: tabular-nums; }
.board-top-1 .board-rank { background: #fde68a; color: #78350f; }
.board-top-2 .board-rank { background: #e5e7eb; color: #374151; }
.board-top-3 .board-rank { background: #fed7aa; color: #7c2d12; }
.board-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.board-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-sub { font-size: .75rem; color: var(--gray-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-value { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* admins and half admins have extra tabs: switch to the menu button earlier so the bar never crowds */
@media (max-width: 1479px) {
  .nav-many .nav-links { display: none; }
  .nav-many .nav-toggle { display: flex; }
  .nav-many.nav { display: flex; }
  .nav-many .nav-links.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; top: 100%; left: 0; right: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--gray-200); padding: .5rem 1.5rem 1rem; font-size: 1rem; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .08); }
  .nav-many .nav-links.is-open a { padding: .75rem 0; }
}
@media (min-width: 1480px) and (max-width: 1599px) { .nav-many .nav-links { gap: 1.25rem; } .nav-many .nav-user { max-width: 9rem; } }
@media (max-width: 480px) {
  .board-tabs { gap: 0; }
  .board-tab { flex: 1 1 auto; padding: .625rem .375rem; font-size: .8125rem; text-align: center; }
  .board-row { gap: .75rem; padding: .75rem 1rem; }
}
/* profile photo cropper */
.crop-modal { max-width: 21.5rem; }   /* overridden per use to fit the frame */
.crop-modal .hint { margin-bottom: 1rem; }
.crop-stage { position: relative; max-width: 100%; margin: 0 auto; border-radius: .5rem; overflow: hidden; background: var(--gray-100); }
.crop-canvas { display: block; cursor: grab; touch-action: none; }
.crop-canvas:active { cursor: grabbing; }
.crop-canvas:focus-visible { outline: none; }
.crop-stage:has(.crop-canvas:focus-visible) { box-shadow: 0 0 0 2px var(--gray-900); }
/* the circle: everything outside it is washed out, so it is clear what will be kept */
.crop-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 200px rgba(255, 255, 255, .72); border: 2px solid #fff; outline: 1px solid rgba(0, 0, 0, .35); outline-offset: -1px; pointer-events: none; }
.crop-controls { display: flex; align-items: center; gap: .75rem; margin: 1rem 0 1.25rem; }
.crop-zoom { flex: 1; accent-color: var(--gray-900); }
.crop-controls .hint { margin: 0; font-size: 1rem; width: 1rem; text-align: center; }
/* tutor status: green Available, red Booked */
.status-tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: .125rem .625rem; border-radius: 9999px; }
.status-tag::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; margin-right: .375rem; background: currentColor; vertical-align: .02em; }
.status-tag.status-available { background: #dcfce7; color: #166534; }
.status-tag.status-booked { background: #fee2e2; color: #991b1b; }
.tutor-status { margin: .125rem 0 .375rem; }
.modal-status { margin-top: .5rem; }
.tutor-count { margin-bottom: 2rem; }
.status-pick { display: flex; flex-wrap: wrap; gap: .5rem; }
.status-opt { display: inline-flex; align-items: center; gap: .375rem; padding: .375rem .75rem; border: 1px solid var(--gray-300); border-radius: 9999px; font-size: .875rem; color: var(--gray-600); cursor: pointer; }
.status-opt input { accent-color: var(--gray-900); margin: 0; }
/* the chosen one is a plain neutral grey, whichever it is */
.status-opt:has(input:checked) { background: var(--gray-200); border-color: var(--gray-500); color: var(--gray-900); font-weight: 500; }
.status-opt:has(input:focus-visible) { outline: 2px solid var(--gray-900); outline-offset: 2px; }
/* Meet the Team page: a large featured first card, then the rest in a row */
.team-page { max-width: 68rem; }
.team-page .notice { margin-bottom: 2rem; }
.team-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .75rem; background: var(--gray-100); }
.team-feature { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center; background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: 1.25rem; padding: 1.25rem; margin-bottom: 3rem; }
/* The featured photo sits in a frame that is at least 4:3 and grows taller to match the text beside it. */
.team-feature-media { position: relative; min-width: 0; border-radius: .75rem; overflow: hidden; background: var(--gray-100); }
/* An invisible spacer 75% as tall as the frame is wide: the frame is never shorter than 4:3, but its
   width stays fixed by the column, so matching a tall text block makes it taller, not wider. */
.team-feature-media::before { content: ""; display: block; padding-top: 75%; }
.team-feature-media .team-photo { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; object-fit: cover; }
.team-feature-text h2 { font-size: 1.5rem; line-height: 2rem; font-weight: 700; margin-bottom: .75rem; }
.team-feature-text p { color: var(--gray-600); line-height: 1.75; white-space: pre-line; }
/* side by side only where there is room for a decent photo; narrower screens put the photo above the text */
@media (min-width: 960px) {
  .team-feature { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2.5rem; padding: 1.75rem; align-items: stretch; }
  .team-feature-text { align-self: center; }
  .team-feature-text { padding-right: 1rem; }
  .team-feature-text h2 { font-size: 1.875rem; line-height: 2.25rem; }
  .team-feature-text p { font-size: 1.0625rem; }
}
.team-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem 2rem; align-items: start; }
@media (min-width: 560px) { .team-grid { grid-template-columns: repeat(2, 1fr); } .team-grid-1 { grid-template-columns: minmax(0, 28rem); justify-content: center; } }
@media (min-width: 900px) { .team-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.team-card h3 { font-weight: 600; font-size: 1.0625rem; margin: 1rem 0 .375rem; }
.team-card p { font-size: .875rem; color: var(--gray-600); line-height: 1.625; white-space: pre-line; }
/* Meet the team (admin) */
.team-row { display: flex; align-items: center; gap: 1rem; }
.team-row-text { flex: 1; min-width: 0; }
.team-row-text .row-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.team-row-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: flex-end; }
.team-row-actions .text-link { font-size: .75rem; }
.team-row-actions .text-link:disabled { color: var(--gray-300); text-decoration: none; }
.team-thumb { flex: 0 0 auto; width: 5rem; aspect-ratio: 4 / 3; border-radius: .375rem; overflow: hidden; background: var(--gray-100); object-fit: cover; display: flex; align-items: center; justify-content: center; font-size: .625rem; color: var(--gray-400); }
.team-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 560px) { .team-row { flex-wrap: wrap; } .team-row-actions { width: 100%; justify-content: flex-start; } }
#team-visibility { margin-bottom: 1rem; }
/* The Daily Strum: the grid shrinks its squares so a long instrument still fits a phone */
.page-strum { max-width: 40rem; }
.strum-intro { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.strum-key { list-style: none; display: flex; flex-direction: column; gap: .5rem; font-size: .875rem; color: var(--gray-700); }
.strum-key li { display: flex; align-items: center; gap: .75rem; }
.strum-key .strum-cell { width: 2rem; font-size: 1rem; }
.strum-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .75rem; }
.strum-clock { font-weight: 600; font-variant-numeric: tabular-nums; }
.strum-grid { display: flex; flex-direction: column; gap: .3rem; }
.strum-row { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 3.25rem)); gap: .3rem; justify-content: center; }
.strum-cell { aspect-ratio: 1; border: 2px solid var(--gray-300); border-radius: .375rem; display: flex; align-items: center; justify-content: center; font-weight: 700; text-transform: uppercase; line-height: 1; color: var(--gray-900); font-size: min(1.625rem, calc((100vw - 4rem) / var(--n, 6) * .5)); }
.strum-cell.is-typed { border-color: var(--gray-500); }
.strum-cell.is-hit, .strum-keycap.is-hit { background: #16a34a; border-color: #16a34a; color: #fff; }
.strum-cell.is-near, .strum-keycap.is-near { background: #d9a406; border-color: #d9a406; color: #fff; }
.strum-cell.is-miss, .strum-keycap.is-miss { background: var(--gray-500); border-color: var(--gray-500); color: #fff; }
.strum-message { min-height: 1.5rem; margin: .5rem 0; text-align: center; font-size: .875rem; font-weight: 500; color: #b91c1c; white-space: pre; }
.page-strum .notice { margin-bottom: 1rem; }
.page-strum .notice a { text-decoration: underline; font-weight: 500; }
.strum-keys { display: flex; flex-direction: column; gap: .375rem; touch-action: manipulation; }
.strum-keyrow { display: flex; justify-content: center; gap: .3rem; }
.strum-keycap { flex: 1 1 0; max-width: 2.75rem; height: 3.25rem; border-radius: .375rem; background: var(--gray-200); font-weight: 600; font-size: 1rem; text-transform: uppercase; color: var(--gray-900); }
.strum-keycap.is-wide { flex: 1.6 1 0; max-width: 4.25rem; font-size: .75rem; }
.strum-keycap:hover { filter: brightness(.95); }
.strum-me { background: var(--green-50); }
/* anyone signed in has a Dashboard tab and their name in the bar: switch to the menu button a little earlier */
@media (max-width: 1239px) {
  .nav-some .nav-links { display: none; }
  .nav-some .nav-toggle { display: flex; }
  .nav-some.nav { display: flex; }
  .nav-some .nav-links.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; top: 100%; left: 0; right: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--gray-200); padding: .5rem 1.5rem 1rem; font-size: 1rem; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .08); }
  .nav-some .nav-links.is-open a { padding: .75rem 0; }
}
.cta-more { margin-top: 1rem; }
/* admin: one person's children and lessons */
.person-modal { max-width: 40rem; }
.person-section { margin-top: 1.5rem; }
.person-section .eyebrow { font-size: .75rem; margin-bottom: .5rem; }
.person-list { list-style: none; font-size: .875rem; color: var(--gray-700); border: 1px solid var(--gray-200); border-radius: .5rem; }
.person-list li { padding: .625rem .875rem; }
.person-list li + li { border-top: 1px solid var(--gray-100); }
.person-line { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.person-list .hint { margin-top: .25rem; }
/* notifications bell beside the signed-in person's name */
.bell { position: relative; display: flex; }
.bell-btn { position: relative; width: 2.25rem; height: 2.25rem; border-radius: .375rem; display: flex; align-items: center; justify-content: center; color: var(--gray-600); }
.bell-btn:hover, .bell-btn[aria-expanded="true"] { background: var(--gray-100); color: var(--gray-900); }
.bell-count { position: absolute; top: .125rem; right: .0625rem; min-width: 1.05rem; height: 1.05rem; padding: 0 .25rem; border-radius: 9999px; background: #dc2626; color: #fff; font-size: .6875rem; font-weight: 600; line-height: 1.05rem; text-align: center; }
.bell-panel { position: absolute; top: calc(100% + .5rem); right: 0; z-index: 40; width: 22rem; max-height: 70vh; overflow-y: auto; background: #fff; border: 1px solid var(--gray-200); border-radius: .75rem; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, .15); text-align: left; }
.bell-head { padding: .75rem 1rem; font-size: .875rem; font-weight: 600; border-bottom: 1px solid var(--gray-100); }
.bell-empty { padding: 1.25rem 1rem; font-size: .875rem; color: var(--gray-500); }
.bell-list { list-style: none; }
.bell-item { padding: .875rem 1rem; }
.bell-item + .bell-item { border-top: 1px solid var(--gray-100); }
.bell-title { font-size: .875rem; font-weight: 600; color: var(--gray-900); }
.bell-text { font-size: .8125rem; color: var(--gray-600); margin-top: .125rem; }
.bell-note { font-style: italic; }
.bell-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .625rem; }
.bell-address { margin-top: .5rem; display: grid; gap: .375rem; }
.input-sm { padding: .375rem .625rem; font-size: .875rem; }
@media (max-width: 560px) { .bell { position: static; } .bell-panel { left: 1rem; right: 1rem; width: auto; top: 100%; } }
.check-row { display: flex; align-items: center; gap: .5rem; font-size: .875rem; cursor: pointer; }
.check-row input { width: 1rem; height: 1rem; accent-color: var(--gray-900); margin: 0; }
#email-notify .hint { margin-top: .375rem; }
/* Daily Strum leaderboard: names show in full; on a phone the score sits under the name */
.strum-board .board-name { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
.strum-board .strum-score { display: none; font-size: .8125rem; white-space: normal; }
@media (max-width: 560px) { .strum-board .strum-score { display: block; } .strum-board .board-value { display: none; } }
/* Tab bar with scripting on: as many tabs as fit are shown, the rest sit in the menu button's list.
   (common.js adds .nav-fit and marks the tabs that don't fit; these rules replace the width cut-offs above.) */
.nav-left { display: flex; align-items: center; gap: .5rem; }
@media (min-width: 900px) { .nav-left { justify-self: start; } }
.nav.nav-fit { display: flex; gap: 0; }
.nav.nav-fit .nav-left, .nav.nav-fit .nav-account { flex: 0 0 auto; }
.nav.nav-fit .nav-links { display: flex; flex-direction: row; flex: 1 1 0; min-width: 0; justify-content: center; align-items: center; flex-wrap: nowrap; white-space: nowrap; position: static; padding: 0; border: 0; box-shadow: none; background: none; font-size: .875rem; }
.nav.nav-fit .nav-links a { flex: 0 0 auto; padding: 0; }
.nav.nav-fit .nav-links .nav-over { display: none; }
.nav.nav-fit .nav-toggle { display: none; }
.nav.nav-fit.nav-has-more .nav-toggle { display: flex; }
.nav-menu { position: absolute; top: 100%; left: 0; right: 0; z-index: 30; display: flex; flex-direction: column; background: #fff; border-bottom: 1px solid var(--gray-200); padding: .5rem 1.5rem 1rem; font-size: 1rem; color: var(--gray-600); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .08); }
.nav-menu[hidden] { display: none; }
.nav-menu a { padding: .75rem 0; }
.nav-menu a:hover, .nav-menu a[aria-current] { color: var(--gray-900); }
.nav-menu a[aria-current] { font-weight: 500; }
@media (min-width: 900px) { .nav-menu { left: auto; right: 1.5rem; top: calc(100% + .25rem); width: 14rem; padding: .375rem 1rem; border: 1px solid var(--gray-200); border-radius: .75rem; font-size: .875rem; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, .15); } .nav-menu a { padding: .5rem 0; } }
/* the bell's picture sits a touch low so it lines up with the middle of the tab names beside it */
.bell-btn svg { position: relative; top: 2px; }
/* the bell's list opens against the right edge of the page, under the bar, not hanging off the bell itself */
@media (min-width: 561px) { .bell { position: static; } .bell-panel { right: 1rem; top: calc(100% + .25rem); } }
/* Daily Strum: a rejected guess shakes its row and shows a short notice over the grid */
.strum-stage { position: relative; }
.strum-toast { position: absolute; top: -2.875rem; left: 50%; transform: translateX(-50%); z-index: 5; background: var(--gray-900); color: #fff; font-size: .875rem; font-weight: 600; padding: .625rem .875rem; border-radius: .375rem; white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); pointer-events: none; }
@keyframes strum-shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(2px); } 30%, 50%, 70% { transform: translateX(-4px); } 40%, 60% { transform: translateX(4px); } }
.strum-row.is-shake { animation: strum-shake .6s; }

/* Admin activity log */
.activity-day { margin-top: 1.75rem; }
.activity-day .eyebrow { margin-bottom: .5rem; }
.activity-list { border: 1px solid var(--gray-200); border-radius: .75rem; }
.activity-row { display: grid; grid-template-columns: 4.75rem 5.5rem minmax(0, 1fr); gap: .75rem; align-items: baseline; padding: .625rem 1rem; font-size: .875rem; }
.activity-row + .activity-row { border-top: 1px solid var(--gray-100); }
.activity-time { color: var(--gray-500); font-variant-numeric: tabular-nums; white-space: nowrap; }
.activity-kind { justify-self: start; font-size: .75rem; padding: .0625rem .5rem; border-radius: 9999px; background: var(--gray-100); color: var(--gray-700); }
.activity-lessons { background: #dbeafe; color: #1e40af; }
.activity-accounts { background: #fef3c7; color: #92400e; }
.activity-emails { background: #ede9fe; color: #5b21b6; }
.activity-signins { background: var(--gray-100); color: var(--gray-600); }
.activity-site { background: #dcfce7; color: #166534; }
.activity-text { color: var(--gray-700); overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .activity-row { grid-template-columns: auto minmax(0, 1fr); }
  .activity-text { grid-column: 1 / -1; }
}
.mt-2 { margin-top: .5rem; }
/* shown across the top while an admin looks at the site as a parent */
.view-banner { background: #fef3c7; color: var(--amber-700); border-bottom: 1px solid #fcd34d; padding: .6rem 1rem; font-size: .9rem; text-align: center; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: center; }
.view-banner strong { color: var(--gray-900); }
.access-cell { display: flex; flex-direction: column; gap: .375rem; align-items: flex-start; }
.section-tools { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; justify-content: flex-end; }
.sort-label { display: inline-flex; align-items: center; gap: .375rem; font-size: .8125rem; color: var(--gray-600); }
/* Contact page: "Help us improve the website" */
.feedback-box { margin-top: 1.5rem; text-align: left; display: flex; flex-direction: column; gap: .5rem; }
.feedback-who { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: .25rem 0; }
@media (max-width: 640px) { .feedback-who { grid-template-columns: 1fr; } }
.feedback-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.fb-near { color: var(--amber-700); }
.fb-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Admin Feedback tab */
.feedback-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.feedback-item { display: flex; flex-direction: column; gap: .5rem; }
.feedback-item.is-handled { opacity: .7; }
.feedback-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; font-size: .875rem; }
.feedback-text { white-space: pre-wrap; overflow-wrap: anywhere; }
