/* Piano Studio Portal — mobile-first */
:root {
  color-scheme: light;
  --bg: #f5f3ee;
  --surface: #ffffff;
  --ink: #1c1d21;
  --ink-2: #3a3c43;
  --muted: #6c6f78;
  --line: #e8e4db;
  --line-2: #f0ede6;
  --accent: #2b3a67;
  --accent-ink: #ffffff;
  --accent-soft: #e8ebf4;
  --gold: #b98a3e;
  --gold-soft: #f6eedd;
  --green: #2f7d57;
  --green-soft: #e3f1e9;
  --red: #c2412d;
  --red-soft: #fbe9e5;
  --orange: #e07b24;
  --orange-soft: #fcefe2;
  --grey: #a7abb3;
  --grey-soft: #eceae5;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(28, 29, 33, .05), 0 2px 10px rgba(28, 29, 33, .04);
  --nav-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px);
}
body.is-public { padding-bottom: 32px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h2 { font-size: 17px; font-weight: 650; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
p { margin: 0 0 10px; }
code { background: var(--line-2); padding: 1px 5px; border-radius: 5px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.center { text-align: center; }
.mt { margin-top: 10px; }
.ico { width: 22px; height: 22px; flex: none; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 243, 238, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.topbar-in { max-width: 760px; margin: 0 auto; height: 54px; padding: 0 12px; display: flex; align-items: center; gap: 6px; }
.tb-title { font-size: 19px; font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 4px; }
.tb-back, .tb-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--ink); }
.tb-back:active, .tb-btn:active { background: var(--line); }
.tb-btn { background: var(--ink); color: #fff; }
.tb-btn.tb-text { width: auto; padding: 0 14px; font-weight: 600; font-size: 15px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }

.wrap { max-width: 760px; margin: 0 auto; padding: 14px 14px 8px; }
.wrap-wide { max-width: 1100px; }

/* Bottom nav */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: space-around;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.bottomnav a { flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; color: var(--muted); font-size: 11.5px; font-weight: 550; border-radius: 12px; }
.bottomnav a.on { color: var(--ink); }
.bottomnav a.on .ico { stroke-width: 2.3; }
.bottomnav a:active { background: var(--line-2); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.card-head h2 { margin-bottom: 0; }
.card-alert { border-color: #ecc9a6; background: #fffaf3; }
.card-alert h2 { color: #8a4b0f; }
.count { background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; border-radius: 99px; padding: 1px 8px; }
.empty { color: var(--muted); margin: 6px 0; }
.empty-card { text-align: center; padding: 28px 16px; }
details > summary { cursor: pointer; list-style: none; font-weight: 600; padding: 10px 0; display: flex; align-items: center; justify-content: space-between; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: 0 6px 4px; transition: transform .15s; }
details[open] > summary::after { transform: rotate(-135deg); margin-bottom: -2px; }
details.card > summary { padding: 0; }
details.sub { border-top: 1px solid var(--line-2); margin-top: 8px; }
details.sub > summary { font-weight: 550; color: var(--ink-2); font-size: 14.5px; }
.actions details { border-top: 1px solid var(--line-2); }
.actions details:first-of-type { border-top: 0; }
summary.danger { color: var(--red); }

/* Lists */
.list { list-style: none; margin: 0; padding: 0; }
.list > li + li { border-top: 1px solid var(--line-2); }
.card.list { padding: 4px 16px; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 0; min-height: 54px; }
.li > .ico:last-child { color: var(--grey); width: 18px; height: 18px; }
.li-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.li-main b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-main > span { color: var(--muted); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.li-time { width: 58px; flex: none; display: flex; flex-direction: column; line-height: 1.2; }
.li-time b { font-size: 15px; font-weight: 650; }
.li-time span { color: var(--muted); font-size: 12px; }
.li-group { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 14px 0 6px; border-top: 0 !important; }
.list.compact .li { min-height: 44px; padding: 8px 0; }
.menu .li > .ico:first-child { color: var(--accent); }
.st-cancelled .li-main b, .st-paused .li-main b { color: var(--muted); }
.st-cancelled .li-main b { text-decoration: line-through; }
.st-moved .li-main b { color: var(--accent); }

/* Chips */
.chip { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); line-height: 1.5; white-space: nowrap; }
.chip-scheduled { background: var(--accent-soft); color: var(--accent); }
.chip-attended { background: var(--green-soft); color: var(--green); }
.chip-absent { background: var(--red-soft); color: var(--red); }
.chip-cancelled { background: var(--grey-soft); color: var(--muted); }
.chip-paused { background: var(--grey-soft); color: #4b4f57; }
.chip-moved { background: transparent; color: var(--accent); border: 1.5px dashed var(--accent); padding: 1px 7px; }
.chip-replacement { background: var(--orange-soft); color: #a8520f; }
.chip-alert { background: #fff1d6; color: #8a5a0b; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font: 600 15.5px/1 var(--font); cursor: pointer; background: var(--surface); color: var(--ink); text-align: center; -webkit-tap-highlight-color: transparent; }
.btn .ico { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--line); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger-ghost { background: transparent; color: var(--red); border-color: #efc7bf; }
.btn-wa { background: #1f9d55; color: #fff; }
.btn-block { display: flex; width: 100%; margin-top: 10px; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn-lg { min-height: 54px; font-size: 16.5px; }
.btnrow { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.btnrow .btn { flex: 1; }
.link { color: var(--accent); font-weight: 600; }
.linkbtn { background: none; border: 0; padding: 6px 0; font: inherit; cursor: pointer; color: var(--accent); }
.linkbtn.muted { color: var(--muted); }
.icon-btn { width: 40px; height: 40px; border: 0; background: none; color: var(--grey); border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.icon-btn:active { background: var(--line-2); color: var(--red); }

/* Forms */
.form h2 { margin-top: 4px; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
input, select, textarea {
  width: 100%; font: 16px/1.3 var(--font); color: var(--ink);
  background: #fbfaf7; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 12px; min-height: 46px; -webkit-appearance: none; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; background: #fff; }
input[readonly] { background: var(--line-2); color: var(--ink-2); }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; }
.check { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; -webkit-appearance: auto; appearance: auto; accent-color: var(--ink); margin: 0; flex: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid2 .field { min-width: 0; }
.search { margin-bottom: 12px; background: var(--surface); }
.copyrow { display: flex; gap: 8px; }
.copyrow input { font-size: 13.5px; min-height: 40px; padding: 8px 10px; }
.copyrow .btn { flex: none; }
.warnbox { background: #fff6e8; border: 1px solid #f0d3a6; border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 12px; font-size: 14.5px; }
.bullets { margin: 0 0 8px; padding-left: 20px; }

/* Segmented controls */
.seg { display: flex; background: #ebe8e1; border-radius: 12px; padding: 3px; gap: 3px; margin-bottom: 12px; }
.seg button, .seg a, .seg label > span { flex: 1; border: 0; background: none; font: 600 14px/1 var(--font); color: var(--ink-2); padding: 10px 6px; border-radius: 9px; cursor: pointer; text-align: center; display: block; }
.seg label { flex: 1; display: flex; }
.seg label > span { width: 100%; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg button.on, .seg a.on, .seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.seg-form { margin-bottom: 0; }
.seg-days label > span { padding: 11px 0; font-size: 13.5px; }
.seg-wrap { flex-wrap: wrap; }
.seg-wrap label { flex: 1 1 30%; }

/* Flash & banners */
.flash { border-radius: var(--radius-sm); padding: 11px 14px; margin-bottom: 12px; font-size: 14.5px; border: 1px solid; }
.flash-ok { background: var(--green-soft); border-color: #c4e2d1; color: #1f5c3f; }
.flash-err { background: var(--red-soft); border-color: #f2c6bd; color: #8e2a1a; }
.flash-warn { background: #fff4e0; border-color: #f0d3a6; color: #7a4a0b; }
.banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); margin-bottom: 12px; }
.banner div { flex: 1; display: flex; flex-direction: column; }
.banner span { font-size: 13.5px; opacity: .85; }
.banner-gold { background: linear-gradient(135deg, #2b2a26, #1c1d21); color: #f7e7c4; }
.banner-gold .ico { color: #e6c27a; }
.holiday-note { display: flex; align-items: center; gap: 6px; background: var(--gold-soft); color: #6b4e16; border-radius: 10px; padding: 8px 10px; font-size: 14px; font-weight: 600; }
.holiday-note .ico { width: 18px; height: 18px; }

/* Dashboard */
.lesson-row .li-main, .lesson-row .li-time { cursor: pointer; }
.att { display: flex; gap: 6px; }
.att-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--grey); display: grid; place-items: center; cursor: pointer; }
.att-btn .ico { width: 20px; height: 20px; }
.att-btn.on-ok { background: var(--green); border-color: var(--green); color: #fff; }
.att-btn.on-bad { background: var(--red); border-color: var(--red); color: #fff; }
.big-num { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0 6px; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.qbtn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow); }
.qbtn .ico { width: 18px; height: 18px; }

/* Student */
.profile-top { display: flex; gap: 14px; align-items: center; }
.avatar { width: 52px; height: 52px; flex: none; border-radius: 16px; background: var(--ink); color: #f7e7c4; display: grid; place-items: center; font-weight: 700; font-size: 22px; }
.profile-slot { font-weight: 650; font-size: 16.5px; margin: 0 0 2px; }
.contact { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.contact > span { flex: 1; font-weight: 600; min-width: 100px; }
.notes { background: var(--line-2); border-radius: 10px; padding: 10px 12px; margin: 12px 0 0; font-size: 14.5px; white-space: normal; }
.months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 4px 0 8px; }
.mchip { text-align: center; border-radius: 9px; padding: 8px 0; font-size: 13px; font-weight: 650; }
.m-paid { background: var(--green); color: #fff; }
.m-unpaid { background: var(--red-soft); color: var(--red); border: 1px solid #f1c3ba; }
.m-paused { background: var(--grey-soft); color: var(--muted); }
.m-na { background: transparent; color: #c9c6be; border: 1px dashed var(--line); }
.m-future { background: var(--line-2); color: var(--muted); }

/* Legend */
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); margin: 0 0 10px; padding: 0 2px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.lg { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.lg-scheduled { background: var(--accent); }
.lg-replacement { background: var(--orange); }
.lg-open { border: 1.5px dashed var(--accent); }
.lg-paused { background: #d5d7dc; }
.lg-holiday { background: #f3e7cf; border: 1px solid #e6d2a8; }
.lg.m-paid, .lg.m-unpaid, .lg.m-paused { padding: 0; border-width: 1px; }

/* Lesson */
.lesson-head .lh-date { font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.lesson-head .lh-time { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 4px; }
.lesson-head .lh-name { font-size: 18px; font-weight: 650; margin-bottom: 8px; }
.lesson-head .lh-name a { color: var(--accent); }
.att-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.attbig { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font: 600 14px/1.2 var(--font); color: var(--ink-2); cursor: pointer; }
.attbig.on.ok { background: var(--green); border-color: var(--green); color: #fff; }
.attbig.on.bad { background: var(--red); border-color: var(--red); color: #fff; }
.attbig.on.muted { background: var(--grey); border-color: var(--grey); color: #fff; }

/* Holidays */
.yearnav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.yearnav b { font-size: 18px; }
.yearnav-in { margin: 10px 0 0; }
.hdot { width: 10px; height: 10px; border-radius: 99px; flex: none; }
.hdot-public { background: var(--gold); }
.hdot-term { background: #7b8bb8; }
.banner-form p { margin-bottom: 4px; }

/* New year */
.steps { display: grid; gap: 8px; margin-bottom: 12px; }
.step { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.step div { flex: 1; display: flex; flex-direction: column; }
.step div span { color: var(--muted); font-size: 13.5px; }
.step-n { width: 28px; height: 28px; border-radius: 99px; background: var(--line-2); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.step.done .step-n { background: var(--green); color: #fff; }
.ny-row { padding: 12px 14px; }
.ny-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; cursor: pointer; }
.ny-top input { width: 22px; height: 22px; -webkit-appearance: auto; appearance: auto; accent-color: var(--ink); margin: 0; }
.ny-top b { flex: 1; }
.ny-top .muted { flex-basis: 100%; padding-left: 32px; margin-top: -4px; }
.ny-fields { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 8px; margin-top: 10px; }
.ny-fields select, .ny-fields input { padding: 9px 10px; min-height: 42px; font-size: 15px; }
.ny-off { display: none; margin: 8px 0 0; }
.ny-row.off .ny-fields { display: none; }
.ny-row.off .ny-off { display: block; }
.ny-row.off { opacity: .7; }

/* Payments */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.stat span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.stat b { font-size: 16px; letter-spacing: -.01em; }
.stat-warn b { color: var(--red); }
.seg-links { margin-bottom: 12px; }
.paylist { list-style: none; margin: 0; padding: 0; }
.pay { padding: 12px 14px; }
.pay.is-paid { border-left: 4px solid var(--green); }
.pay.is-unpaid { border-left: 4px solid #f0b4a8; }
.pay-top { display: flex; align-items: center; gap: 10px; }
.pay p { margin: 6px 0 0; }
.payform { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.undo { margin-top: 2px; }

/* Calendar */
.cal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 8px; margin-bottom: 10px; box-shadow: var(--shadow); }
.fc { --fc-border-color: var(--line); --fc-today-bg-color: rgba(185, 138, 62, .08); --fc-now-indicator-color: var(--red); --fc-page-bg-color: #fff; font-size: 13px; }
.fc .fc-toolbar { gap: 6px; margin-bottom: 10px !important; }
.fc .fc-toolbar-title { font-size: 16px; font-weight: 700; }
.fc .fc-button { background: var(--surface); color: var(--ink); border: 1px solid var(--line); font-weight: 600; text-transform: capitalize; padding: 7px 11px; border-radius: 10px !important; box-shadow: none !important; }
.fc .fc-button-group { gap: 4px; }
.fc .fc-button-primary:not(:disabled):active, .fc .fc-button-primary:not(:disabled).fc-button-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.fc .fc-button-primary:disabled { opacity: .45; background: var(--surface); color: var(--ink); border-color: var(--line); }
.fc .fc-col-header-cell-cushion, .fc .fc-daygrid-day-number { color: var(--ink-2); font-weight: 600; }
.fc .fc-timegrid-slot { height: 1.4em; }
.fc .fc-timegrid-slot-label-cushion { font-size: 11.5px; color: var(--muted); }
.fc .fc-v-event { border-radius: 6px; }
.fc .fc-event { cursor: pointer; }
.fc .fc-event-title { font-weight: 600; }
.fc .ev-moved { background: repeating-linear-gradient(135deg, #fff, #fff 6px, #f1f3f9 6px, #f1f3f9 12px) !important; border: 1.5px dashed var(--accent) !important; }
.fc .ev-moved .fc-event-main { color: var(--accent) !important; }
.fc .ev-paused { background: repeating-linear-gradient(135deg, #dcdee2, #dcdee2 6px, #d0d3d8 6px, #d0d3d8 12px) !important; }
.fc .ev-cancelled .fc-event-title { text-decoration: line-through; }
.fc .ev-flagged { box-shadow: 0 0 0 2px #f0a64a inset; }
.fc .ev-holiday-bg { background: #f3e7cf !important; opacity: .55; }
.fc .fc-list-event:hover td { background: var(--line-2); }
.fc .fc-list-day-cushion { background: var(--line-2) !important; }
.fc .fc-daygrid-event { white-space: normal; }
@media (max-width: 700px) {
  .fc .fc-toolbar-title { font-size: 15px; }
  .fc .fc-timegrid-event .fc-event-time { font-size: 11px; }
  .fc .fc-timegrid-event .fc-event-title { font-size: 12px; }
  .fc .fc-daygrid-event { font-size: 11px; }
}

/* Login */
.login-hero { text-align: center; padding: 28px 0 18px; }
.login-hero h2 { display: block; font-size: 24px; margin: 14px 0 2px; }
.keys { display: inline-flex; gap: 3px; height: 54px; padding: 6px; background: var(--ink); border-radius: 12px; position: relative; }
.keys i { width: 14px; background: #fbf8f1; border-radius: 0 0 3px 3px; position: relative; }
.keys i:nth-child(1)::after, .keys i:nth-child(2)::after, .keys i:nth-child(4)::after, .keys i:nth-child(5)::after, .keys i:nth-child(6)::after { content: ""; position: absolute; right: -6px; top: 0; width: 9px; height: 26px; background: var(--ink); border-radius: 0 0 2px 2px; z-index: 1; }

/* Public pages */
.pub-head h2 { font-size: 24px; display: block; margin-bottom: 4px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.next { margin-top: 12px; background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.next span:first-child { font-size: 12px; opacity: .7; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.next b { font-size: 17px; }
.next .chip { align-self: flex-start; margin-top: 4px; }
.sub-btns { display: grid; grid-template-columns: 1fr; gap: 8px; }
.howto { padding-left: 18px; margin: 4px 0 10px; color: var(--ink-2); }
.howto li { margin-bottom: 6px; }
.publist .is-past, .publist .li-group.is-past { display: none; }
.publist.show-past .is-past { display: flex; }
.publist.show-past .li-group.is-past { display: list-item; }
.li-hol .li-main b { color: #6b4e16; }
.is-past-soft { opacity: .55; }

@media (min-width: 560px) {
  .sub-btns { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  body.is-app { padding-bottom: calc(var(--nav-h) + 24px); }
  .bottomnav { left: 50%; right: auto; transform: translateX(-50%); bottom: 14px; border: 1px solid var(--line); border-radius: 18px; padding: 6px 10px; box-shadow: 0 8px 30px rgba(0,0,0,.08); width: 560px; }
}
