/* organaise — booking page + dashboard */
:root {
  --ink: #1a1a1a; --ink-2: rgba(26, 26, 26, .61); --ink-3: rgba(26, 26, 26, .4);
  --line: rgba(26, 26, 26, .1); --line-2: #d4d4d4; --bg: #fafafa; --card: #fff;
  --accent: #0B5CFF;
  --accent-ink: color-mix(in srgb, var(--accent) 88%, #000);
  --accent-soft: color-mix(in srgb, var(--accent) 7%, #fff);
  --accent-soft-2: color-mix(in srgb, var(--accent) 14%, #fff);
  --accent-line: color-mix(in srgb, var(--accent) 50%, #fff);
  --danger: #c4231b; --ok: #038164;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 16px/1.5 Figtree, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--ink-2); }
.err { color: var(--danger); font-size: 14px; margin: 0 0 16px; }
.err:empty { display: none; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ================= booking page ================= */
.page { min-height: 100vh; padding: 66px 16px 24px; display: flex; flex-direction: column; align-items: center; }
.widget { position: relative; width: 100%; max-width: 1060px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 8px rgba(0, 0, 0, .08); overflow: hidden; }
.widget.split { display: grid; grid-template-columns: minmax(280px, 1fr) 2fr; max-width: 1000px; min-height: 610px; transition: max-width .2s; }
.widget.split.wide { max-width: 1060px; }
.widget.single { max-width: 640px; }
.widget.profile { max-width: 1000px; }

.ribbon { position: absolute; top: 0; right: 0; width: 104px; height: 104px; overflow: hidden; z-index: 2; pointer-events: none; }
.ribbon span { pointer-events: auto; position: absolute; top: 22px; right: -36px; width: 160px; transform: rotate(45deg); background: #505960; color: #fff; text-align: center; line-height: 1.05; padding: 6px 0 5px; }
.ribbon small { display: block; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ribbon b { font-size: 13px; font-weight: 800; letter-spacing: -.01em; }
.ribbon:hover { text-decoration: none; }

/* left column */
.info { position: relative; padding: 25px 30px 30px; border-right: 1px solid var(--line); }
.back { width: 43px; height: 43px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--accent); display: grid; place-items: center; cursor: pointer; margin: 0 0 20px; }
.back:hover { background: var(--accent-soft); }
.back .ic { width: 22px; height: 22px; stroke-width: 2.2; }
.host { display: flex; flex-direction: column; gap: 10px; padding-bottom: 4px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 22px; letter-spacing: .02em; flex: none; }
.avatar.lg { width: 76px; height: 76px; font-size: 26px; }
.hostname { color: var(--ink-2); font-weight: 600; font-size: 16px; }
.evname { font-size: 28px; line-height: 1.2; font-weight: 700; margin: 6px 0 24px; letter-spacing: -.01em; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-weight: 600; font-size: 16px; line-height: 1.35; }
.facts li .ic { margin-top: 1px; color: var(--ink-2); }
.facts li.strong { color: var(--ink); }
.facts li span { display: flex; flex-direction: column; gap: 2px; }
.facts small { font-weight: 400; font-size: 14px; }
.facts a { overflow-wrap: anywhere; }
.evdesc { color: var(--ink); font-size: 15px; line-height: 1.55; margin: 26px 0 0; white-space: pre-line; }

/* right column */
.panel { padding: 28px 32px 32px; min-width: 0; }
.ptitle { font-size: 20px; font-weight: 700; margin: 0 0 24px; letter-spacing: -.005em; }
.pickgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.withtimes .pickgrid { grid-template-columns: minmax(0, 1fr) 220px; }
.cal { max-width: 430px; width: 100%; justify-self: center; }
.monthbar { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 16px; }
.month { font-size: 16px; min-width: 150px; text-align: center; }
.nav { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; cursor: pointer; }
.nav:hover { background: var(--accent-soft-2); }
.nav .ic { stroke-width: 2.4; width: 18px; height: 18px; }
.week, .days { display: grid; grid-template-columns: repeat(7, 1fr); }
.week span { text-align: center; font-size: 12px; color: var(--ink); padding: 6px 0 10px; letter-spacing: .02em; }
.days { row-gap: 6px; }
.days.loading { opacity: .35; }
.day { aspect-ratio: 1; max-width: 44px; width: 100%; justify-self: center; border: 0; border-radius: 50%; background: none; color: var(--ink); font-size: 16px; display: grid; place-items: center; position: relative; padding: 0; }
.day:disabled { color: var(--ink); opacity: .35; cursor: default; }
.day.has { background: var(--accent-soft-2); color: var(--accent-ink); font-weight: 700; cursor: pointer; }
.day.has:hover { background: color-mix(in srgb, var(--accent) 22%, #fff); }
.day.sel, .day.sel:hover { background: var(--accent); color: #fff; }
.nomonth { margin-top: 18px; text-align: center; font-size: 15px; color: var(--ink-2); display: grid; gap: 4px; }
.linkbtn { background: none; border: 0; color: var(--accent); font-weight: 600; cursor: pointer; padding: 0; }
.linkbtn.small { font-size: 14px; font-weight: 500; }

.tz { margin-top: 30px; }
.tzlabel { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.tzbox { display: flex; align-items: center; gap: 8px; max-width: 340px; color: var(--ink); }
.tzbox select { border: 0; background: transparent; font-size: 15px; padding: 6px 0; cursor: pointer; width: 100%; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 9px) 52%, calc(100% - 4px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 20px; }

.times { display: flex; flex-direction: column; min-width: 0; }
.timesday { font-size: 16px; margin: 4px 0 18px; height: 22px; white-space: nowrap; }
.timeslist { display: grid; gap: 10px; max-height: 440px; overflow-y: auto; padding: 2px 6px 4px 2px; }
.slot { height: 52px; border: 1px solid var(--accent-line); border-radius: 4px; background: #fff; color: var(--accent); font-weight: 700; font-size: 16px; cursor: pointer; width: 100%; display: grid; place-items: center; }
.slot:hover { border: 2px solid var(--accent); }
.slotpick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.slot.chosen { background: rgba(26, 26, 26, .61); border-color: transparent; color: #fff; cursor: default; }
.slotnext { height: 52px; border: 0; border-radius: 4px; background: var(--accent); color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; }
.slotnext:hover { background: var(--accent-ink); }

/* form */
.form form { display: grid; gap: 22px; max-width: 480px; }
.field { display: grid; gap: 8px; }
.flabel { font-size: 15px; font-weight: 700; }
.flabel i { color: var(--ink); font-style: normal; }
.field input, .field textarea, .fieldset input, .fieldset select, .fieldset textarea { border: 1px solid var(--line-2); border-radius: 8px; padding: 12px 14px; background: #fff; font-size: 16px; width: 100%; color: var(--ink); }
.field input { height: 46px; }
.field input:focus, .field textarea:focus, .fieldset input:focus, .fieldset select:focus, .fieldset textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cta { justify-self: start; border: 0; border-radius: 40px; background: var(--accent); color: #fff; font-weight: 700; font-size: 16px; padding: 0 22px; height: 46px; cursor: pointer; display: inline-flex; align-items: center; }
.cta:hover { background: var(--accent-ink); text-decoration: none; }
.cta:disabled { opacity: .6; cursor: default; }
.cta.danger { background: var(--danger); margin-top: 6px; }
.cta.inline { margin-top: 8px; }

/* profile (event list) */
.phead { text-align: center; padding: 40px 32px 30px; border-bottom: 1px solid var(--line); display: grid; justify-items: center; gap: 6px; }
.phead h1 { margin: 10px 0 0; font-size: 20px; font-weight: 700; }
.phead p { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 520px; }
.tlist { display: grid; grid-template-columns: 1fr 1fr; padding: 14px 24px 34px; column-gap: 32px; }
.trow { display: flex; align-items: center; gap: 16px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 24px 8px; cursor: pointer; border-radius: 0; }
.trow:hover { background: #f7f7f7; }
.tdot { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); flex: none; }
.tbody { flex: 1; display: grid; gap: 2px; min-width: 0; }
.tname { font-size: 20px; font-weight: 700; }
.tmeta { color: var(--ink-2); font-size: 14px; }
.chev { color: var(--ink); width: 18px; height: 18px; stroke-width: 2.4; }

/* confirmation / cancel */
.done { padding: 44px 36px 40px; display: grid; justify-items: center; text-align: center; gap: 8px; }
.donetitle { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 20px; font-weight: 700; margin: 14px 0 0; }
.okc { width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.okc .ic { width: 16px; height: 16px; stroke-width: 3; }
.done > .muted { margin: 0 0 14px; font-size: 15px; }
.summary { width: 100%; max-width: 460px; text-align: left; border: 1px solid var(--line); border-radius: 8px; padding: 20px 22px; margin: 8px 0 18px; }
.sumtitle { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.summary .facts { gap: 12px; }
.summary .facts li { font-size: 15px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 10px; }
.btn { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 40px; color: var(--ink); font-weight: 600; font-size: 15px; background: #fff; cursor: pointer; }
.btn:hover { border-color: var(--ink); text-decoration: none; }

.foot { margin-top: 22px; }
.lang { display: flex; gap: 2px; }
.lang button { border: 0; background: none; color: var(--ink-2); font-size: 13px; padding: 4px 10px; cursor: pointer; border-radius: 4px; }
.lang button.on { color: var(--ink); font-weight: 700; }
.lang button:hover { background: rgba(0, 0, 0, .04); }

@media (max-width: 899px) {
  .withtimes .pickgrid { grid-template-columns: 1fr; }
  .timeslist { max-height: none; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .slotpick { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .page { padding: 0 0 20px; }
  .widget { border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  .widget.split { grid-template-columns: 1fr; min-height: 0; }
  .info { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 20px 22px; }
  .host { flex-direction: row; align-items: center; }
  .avatar { width: 44px; height: 44px; font-size: 16px; }
  .evname { font-size: 22px; margin: 12px 0 16px; }
  .facts { gap: 10px; }
  .facts li { font-size: 15px; }
  .evdesc { display: none; }
  .back { margin-bottom: 14px; width: 38px; height: 38px; }
  .panel { padding: 22px 20px 28px; }
  .ptitle { font-size: 18px; margin-bottom: 18px; text-align: center; }
  .tlist { grid-template-columns: 1fr; padding: 4px 12px 20px; }
  .trow { padding: 20px 6px; }
  .tname { font-size: 18px; }
  .phead { padding: 34px 20px 24px; }
  .done { padding: 36px 20px; }
  .ribbon { transform: scale(.85); transform-origin: top right; }
}

/* ================= dashboard ================= */
.is-admin { background: #fafafa; }
.dash { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: #fff; border-right: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.wordmark { font-weight: 600; font-size: 24px; letter-spacing: -.045em; padding: 0 10px; color: var(--ink); white-space: nowrap; }
.wordmark i, .ribbon b i { font-style: normal; font-weight: 400; padding: 0 .02em; position: relative; top: -.03em; }
.ribbon b i { opacity: .7; }
.wordmark i { color: #1757e6; }
.createbtn { display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; border: 1px solid var(--line-2); border-radius: 40px; background: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
.createbtn:hover { border-color: var(--ink); }
.createbtn .ic { width: 18px; height: 18px; stroke-width: 2.4; }
.snav { display: grid; gap: 2px; }
.snav button { display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 10px 12px; border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left; }
.snav button:hover { background: #f2f2f2; }
.snav button.on { background: var(--accent-soft-2); color: var(--accent-ink); }
.snav .ic { width: 20px; height: 20px; }
.sfoot { margin-top: auto; display: grid; gap: 10px; }
.sidelink { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-weight: 600; font-size: 14px; color: var(--ink); }
.sidelink .ic { width: 18px; height: 18px; }
.side .lang { padding: 0 4px; }

.dmain { padding: 32px 40px 80px; max-width: 1080px; width: 100%; }
.pagehead { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.pagehead h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.cta.sm { height: 40px; padding: 0 18px; font-size: 15px; gap: 6px; }
.cta .ic { width: 18px; height: 18px; stroke-width: 2.4; }
.backlink { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--accent); font-weight: 600; cursor: pointer; padding: 0; margin-bottom: 14px; }
.backlink .ic { width: 18px; height: 18px; stroke-width: 2.2; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.tcard { background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--accent); border-radius: 8px; box-shadow: 0 1px 6px rgba(0, 0, 0, .06); display: flex; flex-direction: column; }
.tcard.inactive { border-top-color: #c9c9c9; }
.tcard.inactive .tctitle, .tcard.inactive .tcmeta { opacity: .55; }
.tcbody { padding: 18px 20px 20px; display: grid; gap: 4px; flex: 1; }
.tctitle { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.tcmeta { color: var(--ink-2); font-size: 15px; }
.tcview { font-size: 14px; font-weight: 600; margin-top: 10px; justify-self: start; }
.tcfoot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding: 12px 20px; }
.badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: #eee; color: var(--ink-2); padding: 2px 8px; border-radius: 20px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--accent); color: var(--accent); background: #fff; border-radius: 40px; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.pill:hover { background: var(--accent-soft); }
.pill .ic { width: 16px; height: 16px; }
.pill.danger { border-color: var(--danger); color: var(--danger); }
.pill.danger:hover { background: #fdf1f0; }
.textbtn { border: 0; background: none; color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; padding: 6px 4px; }
.textbtn:hover { color: var(--accent); }
.textbtn.small { color: var(--ink-2); font-weight: 500; font-size: 13px; padding: 0; justify-self: start; }

.box { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px 26px; margin-bottom: 20px; }
.box.nopad { padding: 0; overflow: hidden; }
.boxtitle { font-size: 18px; font-weight: 700; margin: 0; }
.hint { color: var(--ink-2); font-size: 14px; margin: 4px 0 0; }
.formgrid { display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fieldset { display: grid; gap: 6px; align-content: start; }
.fieldset .flabel { font-size: 14px; }
.fieldset input, .fieldset select { height: 44px; padding: 0 12px; }
.fieldset textarea { padding: 10px 12px; }
.colorfield input { width: 80px; padding: 4px; }
.switch { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; cursor: pointer; }
.switch input { width: 20px; height: 20px; accent-color: var(--accent); }
.formfoot { display: flex; justify-content: flex-end; }
.savebar { display: flex; justify-content: flex-end; }

.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 16px; }
.subtabs button { border: 0; background: none; padding: 16px 12px 14px; font-weight: 600; font-size: 15px; color: var(--ink-2); border-bottom: 3px solid transparent; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.subtabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.count { background: #f0f0f0; color: var(--ink-2); font-size: 12px; padding: 1px 8px; border-radius: 20px; }
.dayhead { background: #f6f6f6; padding: 10px 26px; font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--line); }
.mrow { border-bottom: 1px solid var(--line); }
.mrow summary { list-style: none; display: grid; grid-template-columns: 200px 1fr auto; gap: 16px; align-items: center; padding: 18px 26px; cursor: pointer; }
.mrow summary::-webkit-details-marker { display: none; }
.mrow summary:hover { background: #fcfcfc; }
.mrow.off .mtime, .mrow.off .mwho { opacity: .5; text-decoration: line-through; }
.mtime { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.mdot { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); flex: none; }
.mwho { display: grid; gap: 2px; font-size: 15px; min-width: 0; }
.mwho > span { color: var(--ink-2); font-size: 14px; }
.mwho > span b { color: var(--ink); font-weight: 600; }
.mmore { color: var(--ink-2); font-size: 14px; }
.mmore::after { content: " \203A"; }
.mdetail { padding: 0 26px 20px 258px; display: grid; gap: 14px; justify-items: start; }
.mdetail dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.mdetail dt { color: var(--ink-2); font-weight: 600; }
.mdetail dd { margin: 0; overflow-wrap: anywhere; }
.empty { padding: 40px 26px; text-align: center; color: var(--ink-2); margin: 0; }

.weekrows { margin-top: 18px; display: grid; gap: 4px; }
.wrow { display: grid; grid-template-columns: 52px 1fr; align-items: start; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f3f3f3; }
.wrow:last-child { border-bottom: 0; }
.dayc { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #e9e9e9; color: var(--ink-2); font-weight: 700; font-size: 13px; cursor: pointer; }
.dayc.on { background: var(--ink); color: #fff; }
.wivs { display: grid; gap: 8px; }
.wiv { display: flex; align-items: center; gap: 8px; }
.wiv input { height: 40px; width: 128px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 10px; background: #fff; }
.unav { color: var(--ink-2); font-size: 15px; line-height: 36px; }
.iconbtn { width: 32px; height: 32px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); cursor: pointer; padding: 0; }
.iconbtn:hover { background: #f0f0f0; color: var(--ink); }
.iconbtn .ic { width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line-2); border-radius: 40px; padding: 2px 4px 2px 14px; font-size: 14px; font-weight: 600; }
.chip .iconbtn { width: 26px; height: 26px; }
.dateadd { height: 38px; border: 1px dashed var(--line-2); border-radius: 40px; padding: 0 12px; background: #fff; }

.inthead { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 8px; }
.intlogo { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft-2); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.subt { font-size: 16px; font-weight: 700; margin: 22px 0 6px; }
.steps { margin: 0 0 12px; padding-left: 20px; color: var(--ink-2); font-size: 14px; display: grid; gap: 3px; }
.copyrow { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.copyrow input { flex: 1; min-width: 0; height: 40px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 12px; background: #fafafa; color: var(--ink-2); font-size: 14px; }
.copyrow.labeled { display: grid; grid-template-columns: 180px 1fr auto; margin: 14px 0 0; }
.subform { display: grid; gap: 10px; margin-top: 8px; border-top: 1px solid var(--line); padding-top: 4px; }
.warn { background: #fff6e5; color: #7a4d00; border-radius: 8px; padding: 9px 12px; font-size: 13px; margin: 4px 0 10px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; z-index: 20; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.loginbox { max-width: 380px; padding: 34px; display: grid; gap: 16px; margin-top: 10vh; }

@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .wordmark { padding: 0; font-size: 20px; flex: 1; }
  .createbtn { height: 38px; padding: 0 14px; order: 2; }
  .snav { order: 3; width: 100%; display: flex; overflow-x: auto; gap: 4px; }
  .snav button { white-space: nowrap; padding: 8px 10px; font-size: 14px; }
  .snav .ic { display: none; }
  .sfoot { display: none; }
  .dmain { padding: 22px 16px 60px; }
  .pagehead h1 { font-size: 22px; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .box { padding: 20px 18px; }
  .mrow summary { grid-template-columns: 1fr auto; padding: 14px 18px; }
  .mrow summary .mwho { grid-column: 1 / -1; grid-row: 2; }
  .mdetail { padding: 0 18px 18px; }
  .dayhead { padding: 10px 18px; }
  .copyrow.labeled { grid-template-columns: 1fr auto; }
  .copyrow.labeled .flabel { grid-column: 1 / -1; }
  .cards { grid-template-columns: 1fr; }
}
