:root { --cream: #FAF6F0; --ink: #2A2420; --muted: #7A6E64; --accent: #C4572E; --line: #EEE4D8; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; margin: 0; letter-spacing: -0.01em; }
a { color: var(--accent); text-decoration: none; }
.hero { max-width: 720px; margin: 0 auto; padding: 18vh 24px 10vh; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; }
.hero p { font-size: 19px; line-height: 1.55; margin: 0; color: #4E453E; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); font-size: 16px; }

/* Teacher page */
.page { display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 24px clamp(20px, 6.6vw, 96px); gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #E8D9C8; }
.brand-name { font-weight: 600; font-size: 17px; }
.brand-role { color: var(--muted); font-size: 15px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); font-weight: 500; font-size: 15px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 16px; }
.btn-sm { height: 44px; padding: 0 22px; font-size: 15px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-outline { border: 1.5px solid #D9CCBD; color: var(--ink); }
.btn-light { background: var(--cream); color: var(--ink); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-tight { display: flex; flex-direction: column; gap: 2px; }
.hero-grid, .about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; padding: 48px clamp(20px, 6.6vw, 96px) 80px; align-items: center; }
.about-grid { grid-template-columns: 5fr 7fr; border-top: 1px solid var(--line); padding-top: 72px; align-items: start; }
.hero-grid h1 { font-size: clamp(40px, 4.4vw, 64px); line-height: 1.05; }
.lede { font-size: 19px; line-height: 1.55; color: #4E453E; max-width: 520px; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.photo { aspect-ratio: 4 / 4.4; border-radius: 28px; background: #E8D9C8; overflow: hidden; display: flex; align-items: flex-end; padding: 24px; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; margin: -24px; }
.tag { font-size: 13px; color: #8A7B6B; background: var(--cream); padding: 6px 12px; border-radius: 999px; }
.video-card { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: #fff; border-radius: 18px; border: 1px solid var(--line); color: var(--ink); }
.play { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); flex-shrink: 0; position: relative; }
.play::after { content: ""; position: absolute; left: 19px; top: 15px; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.muted-sm { color: var(--muted); font-size: 14px; }
h2 { font-size: 40px; line-height: 1.1; }
.body { font-size: 18px; line-height: 1.6; color: #4E453E; }
.quals { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.quals li { position: relative; padding-left: 32px; font-size: 15px; line-height: 1.5; }
.quals li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.plans { display: flex; flex-direction: column; gap: 36px; padding: 72px clamp(20px, 6.6vw, 96px) 96px; border-top: 1px solid var(--line); }
.plans-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.plan { display: flex; flex-direction: column; gap: 20px; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: 24px; }
.plan .btn { margin-top: auto; }
.plan-featured { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.plan-featured .body, .plan-featured .unit { color: #E3D7C9; }
.plan-featured .plan-name { color: #C9B9A6; }
.plan-top { display: flex; align-items: center; justify-content: space-between; }
.plan-name { font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #fff; }
.price { display: flex; align-items: baseline; gap: 6px; }
.amount { font-family: "DM Serif Display", Georgia, serif; font-size: 44px; }
.unit { font-size: 15px; color: var(--muted); }
.book { display: flex; flex-direction: column; gap: 12px; padding: 64px clamp(20px, 6.6vw, 96px); border-top: 1px solid var(--line); }
.foot { display: flex; justify-content: space-between; padding: 24px clamp(20px, 6.6vw, 96px); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
@media (max-width: 820px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 24px; }
  .plan-grid, .quals { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
  h2 { font-size: 32px; }
}

/* Forms and dashboard */
.narrow { max-width: 520px; }
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 14px; font-weight: 600; color: #4E453E; }
.hint { font-size: 13px; color: var(--muted); line-height: 1.45; }
.input { height: 48px; padding: 0 16px; border: 1.5px solid #D9CCBD; border-radius: 12px; background: #fff; font: inherit; font-size: 16px; color: var(--ink); width: 100%; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(196,87,46,.15); }
.area { height: auto; padding: 12px 16px; line-height: 1.5; resize: vertical; }
select.input { appearance: auto; }
.file { font: inherit; font-size: 14px; }
.input-group { display: flex; align-items: center; }
.input-group .input { border-radius: 12px 0 0 12px; }
.suffix { height: 48px; display: flex; align-items: center; padding: 0 14px; border: 1.5px solid #D9CCBD; border-left: 0; border-radius: 0 12px 12px 0; background: #F3EBE1; color: var(--muted); font-size: 15px; white-space: nowrap; }
.btn { border: 0; cursor: pointer; font-family: inherit; }
.alert { padding: 12px 16px; border-radius: 12px; background: #FBE6DC; color: #9E421F; font-size: 15px; margin: 0; }
.notice { padding: 12px 16px; border-radius: 12px; background: #F3EBE1; color: #4E453E; font-size: 15px; margin: 0; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.toggle { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.toggle input { width: 18px; height: 18px; accent-color: var(--accent); }

.dash { display: flex; min-height: 100vh; }
.side { width: 240px; flex-shrink: 0; background: var(--ink); color: var(--cream); display: flex; flex-direction: column; padding: 28px 16px; gap: 8px; position: sticky; top: 0; height: 100vh; }
.side-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px 24px; font-size: 14px; }
.side-url { font-size: 12px; color: #C9B9A6; word-break: break-all; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 12px; border-radius: 10px; color: #C9B9A6; font-size: 15px; font-weight: 500; }
.side-nav a.active { background: #3B332D; color: var(--cream); }
.side-nav a.soon { opacity: .55; cursor: default; }
.pill-soon { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #3B332D; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.btn-outline-light { border: 1.5px solid #4E453E; color: var(--cream); height: 44px; font-size: 14px; }
.linkbtn { background: none; border: 0; color: #C9B9A6; font: inherit; font-size: 14px; cursor: pointer; padding: 8px 12px; }
.dash-main { flex: 1; min-width: 0; padding: 40px 48px 80px; }
.editor { display: flex; flex-direction: column; gap: 24px; max-width: 880px; }
.editor-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.editor-head h1 { font-size: 36px; line-height: 1.1; }
.head-actions { display: flex; align-items: center; gap: 20px; }
.card { display: flex; flex-direction: column; gap: 18px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.card h2 { font-size: 22px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.photo-row { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: start; }
.photo-preview { width: 160px; height: 176px; border-radius: 18px; background: #E8D9C8; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plans-edit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan-edit { display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--cream); }
.plan-edit .grid2 { gap: 10px; }
.plan-edit-top { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; }
.editor-foot { display: flex; justify-content: flex-end; }
@media (max-width: 960px) {
  .plans-edit, .grid3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .dash { flex-direction: column; }
  .side { width: auto; height: auto; position: static; }
  .dash-main { padding: 24px 20px 60px; }
  .grid2, .photo-row { grid-template-columns: 1fr; }
}

/* Booking flow */
.bk { max-width: 440px; margin: 0 auto; padding: 40px 20px 60px; display: flex; flex-direction: column; gap: 24px; }
.bk h1 { font-size: 30px; line-height: 1.15; }
.bk-head { display: flex; }
.bk-teacher { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.bk-avatar { width: 44px; height: 44px; border-radius: 50%; background: #E8D9C8; overflow: hidden; flex-shrink: 0; }
.bk-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bk-form, .bk-step { display: flex; flex-direction: column; gap: 22px; }
.bk-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.bk-day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; cursor: pointer; color: var(--ink); }
.bk-day span { font-size: 11px; } .bk-day strong { font-size: 16px; }
.bk-day.off { background: transparent; border-color: transparent; color: #B5A797; cursor: default; }
.bk-day.sel { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.bk-daylabel { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.bk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.slot { height: 48px; border: 1.5px solid #D9CCBD; border-radius: 12px; background: #fff; font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; color: var(--ink); }
.slot.sel { background: var(--accent); border-color: var(--accent); color: #fff; }
.bk-nav { display: flex; justify-content: space-between; }
.linkbtn-dark { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--accent); cursor: pointer; }
.bk-foot { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.bk-foot .btn { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }
.center { text-align: center; }
.bk-chosen { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-size: 14px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span { display: flex; align-items: center; height: 40px; padding: 0 16px; border: 1.5px solid #D9CCBD; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 500; cursor: pointer; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.bk-tick { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); position: relative; }
.bk-tick::after { content: ""; position: absolute; left: 20px; top: 18px; width: 22px; height: 12px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg); }
.bk-card { display: flex; flex-direction: column; gap: 16px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.bk-rule { height: 1px; background: var(--line); }
.bk-when { font-size: 20px; font-weight: 600; }
.struck { text-decoration: line-through; color: var(--muted); }
.bk-actions { display: flex; gap: 10px; }
.bk-actions .btn { height: 44px; font-size: 14px; }
.bk-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; color: #4E453E; }
.upper { letter-spacing: .1em; text-transform: uppercase; font-size: 13px; color: var(--muted); }

/* Availability + bookings */
.card-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.field.inline { min-width: 260px; }
.hours { display: flex; flex-direction: column; }
.hours-row { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours-row:last-child { border-bottom: 0; }
.hours-day { width: 96px; flex-shrink: 0; font-weight: 600; font-size: 15px; }
.hours-wins { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.hours-win { display: flex; align-items: center; gap: 8px; }
.input.time { height: 40px; width: 112px; padding: 0 10px; font-size: 15px; }
.blist { display: flex; flex-direction: column; }
.brow { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.brow:last-child { border-bottom: 0; }
.brow.cancelled .bwhen, .brow.cancelled .bwho { opacity: .5; }
.bwhen { display: flex; flex-direction: column; } .bwhen strong { font-size: 18px; }
.bwho { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.bnotes { font-size: 14px; color: #4E453E; padding: 8px 12px; background: var(--cream); border-radius: 10px; margin-top: 6px; white-space: pre-wrap; }
.bact { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pill-warm { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #FBE6DC; color: #9E421F; }
.pill-muted { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #F3EBE1; color: var(--muted); }
@media (max-width: 600px) { .brow { grid-template-columns: 1fr; } .bact { align-items: flex-start; } }
.bk-step[hidden] { display: none; }

/* Availability editor (working hours) */
.wh { display: flex; flex-direction: column; }
.wh-row { display: grid; grid-template-columns: 170px 1fr auto; gap: 16px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.wh-row:last-child { border-bottom: 0; }
.wh-row.off .wh-ranges { padding-top: 6px; }
.wh-day { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; height: 40px; cursor: pointer; }
.switch { position: relative; width: 40px; height: 24px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; border-radius: 999px; background: #D9CCBD; transition: background .15s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(16px); }
.wh-ranges { display: flex; flex-direction: column; gap: 8px; }
.wh-range { display: flex; align-items: center; gap: 8px; }
.input.tsel { height: 40px; width: 104px; padding: 0 8px; font-size: 15px; }
.wh-tools { display: flex; gap: 4px; position: relative; height: 40px; align-items: center; }
.icon-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; border-radius: 10px; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: #F3EBE1; color: var(--ink); }
.copy-pop { position: absolute; right: 0; top: 44px; z-index: 5; width: 200px; display: flex; flex-direction: column; gap: 10px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(42,36,32,.12); }
.copy-actions { display: flex; align-items: center; gap: 12px; padding-top: 4px; }
.ov-list { display: flex; flex-direction: column; }
.ov-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ov-row:last-child { border-bottom: 0; }
.ov-add { display: flex; flex-direction: column; gap: 16px; padding: 18px; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; }
.ov-add-row { display: flex; gap: 20px; flex-wrap: wrap; }
.ov-add-actions { display: flex; align-items: center; gap: 14px; }
@media (max-width: 760px) { .wh-row { grid-template-columns: 1fr; gap: 10px; } }
.conn-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 0; }
.bk.wide { max-width: 560px; }
.me-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
.me-row.muted { background: transparent; }
.me-plans { display: flex; flex-direction: column; gap: 10px; }
.me-plan { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
.me-plan .btn { height: 40px; font-size: 14px; }

/* Weekly slot picker (monthly plan, step 1) */
.wk-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wk-count { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: #FBE6DC; color: #9E421F; white-space: nowrap; margin: 0; }
.wk-grid { display: flex; flex-direction: column; gap: 12px; }
.wk-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wk-head { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.wk-day { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; }
.wk-band { display: flex; align-items: baseline; gap: 8px; padding-top: 10px; margin-top: 4px; border-top: 1px dashed #D9CCBD; }
.wk-band strong { font-size: 14px; } .wk-band span { font-size: 12px; color: var(--muted); }
.wk-head + .wk-band { border-top: 0; margin-top: 0; padding-top: 0; }
.wk-list { display: flex; flex-direction: column; gap: 6px; }
.wk-slot { height: 40px; border: 1.5px solid #D9CCBD; border-radius: 10px; background: #fff; font: inherit; font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer; padding: 0; }
.wk-slot:hover { border-color: var(--accent); }
.wk-slot.sel { background: var(--accent); border-color: var(--accent); color: #fff; }
.wk-slot.off { background: transparent; border-color: transparent; color: #C9B9A6; cursor: default; }
.wk-none { font-size: 13px; color: #B5A797; text-align: center; padding: 10px 0; }

/* Reviews */
.reviews { display: flex; flex-direction: column; gap: 36px; padding: 72px clamp(20px, 6.6vw, 96px); border-top: 1px solid var(--line); }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.review { margin: 0; display: flex; flex-direction: column; gap: 22px; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: 24px; }
.review blockquote { margin: 0; font-family: "DM Serif Display", Georgia, serif; font-size: 22px; line-height: 1.4; color: var(--ink); text-wrap: pretty; }
.review blockquote::before { content: "\201C"; color: var(--accent); margin-right: 2px; }
.review blockquote::after { content: "\201D"; color: var(--accent); margin-left: 2px; }
.review figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.review-avatar { width: 48px; height: 48px; border-radius: 50%; background: #E8D9C8; overflow: hidden; flex-shrink: 0; }
.review-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-row.small { grid-template-columns: 72px 1fr; gap: 14px; }
.photo-preview.round { width: 72px; height: 72px; border-radius: 50%; }

/* Message overlay + inbox */
.overlay { position: fixed; inset: 0; background: rgba(42,36,32,.45); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.overlay[hidden] { display: none; }
.modal { position: relative; width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; background: var(--cream); border-radius: 24px; padding: 32px; box-shadow: 0 24px 64px rgba(42,36,32,.25); }
.modal-close { position: absolute; top: 14px; right: 14px; }
.badge { font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.msg { border-bottom: 1px solid var(--line); }
.msg:last-child { border-bottom: 0; }
.msg summary { display: grid; grid-template-columns: 12px 200px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; cursor: pointer; list-style: none; font-size: 15px; }
.msg summary::-webkit-details-marker { display: none; }
.msg-dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.msg.unread .msg-dot { background: var(--accent); }
.msg.unread .msg-preview { font-weight: 600; }
.msg-who { display: flex; flex-direction: column; min-width: 0; } .msg-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-preview { color: #4E453E; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-when { white-space: nowrap; }
.msg-body { display: flex; flex-direction: column; gap: 14px; padding: 0 0 18px 26px; }
.msg-actions { display: flex; align-items: center; gap: 16px; }
@media (max-width: 760px) { .msg summary { grid-template-columns: 12px 1fr; } .msg-preview, .msg-when { grid-column: 2; } }
#msg-done[hidden], #msg-form[hidden] { display: none; }
