/* Візуальна мова взята з Кіловат Shop: нічне небо, скляні картки, Manrope, кремові активні
   поверхні. Компонування своє -- щільні списки й великі зони дотику для щоденного керування. */
:root {
  --ink: #f6f4ec;
  --soft: rgba(246, 244, 236, 0.74);
  --faint: rgba(246, 244, 236, 0.14);
  --line: rgba(246, 244, 236, 0.26);
  --glass: rgba(18, 32, 56, 0.56);
  --glass-in: rgba(255, 255, 255, 0.07);
  --cream: #f6f4ec;
  --forest: #13233a;
  --moss: #63c0ff;
  --amber: #e2b866;
  --red: #e88270;
  --green: #7fd6a4;
  --r-lg: 26px;
  --r-md: 18px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: #0b1424; }
html, body { overflow-x: clip; }
body {
  margin: 0; min-height: 100vh;
  font: 500 16px/1.45 var(--font);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
/* небо: глибокий синій із двома м'якими відблисками замість фото */
.sky {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 60% at 85% -10%, rgba(99, 192, 255, 0.30), rgba(99, 192, 255, 0) 60%),
    radial-gradient(90% 50% at 0% 20%, rgba(226, 184, 102, 0.12), rgba(226, 184, 102, 0) 65%),
    linear-gradient(#10203a, #0b1424 55%, #0a1220);
}

main { max-width: 760px; margin: 0 auto; padding: 18px 14px calc(120px + env(safe-area-inset-bottom)); }

.eyebrow { margin: 6px 2px 8px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--moss); }
h1 { margin: 0 2px 18px; font: 800 clamp(28px, 8vw, 40px)/1.05 var(--font); letter-spacing: -0.03em; }
h3 { margin: 0 0 12px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
p { margin: 0; }

.glass {
  margin-top: 12px; padding: 18px 16px;
  background: var(--glass);
  backdrop-filter: blur(30px) saturate(140%); -webkit-backdrop-filter: blur(30px) saturate(140%);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.glass.flush { padding-left: 0; padding-right: 0; }
.glass.flush > h3, .glass.flush > .pad { padding-left: 16px; padding-right: 16px; }
.hint { margin-top: 10px; font-size: 14px; color: var(--soft); }
.empty { padding: 6px 0 2px; font-size: 15px; color: var(--soft); }

/* перемикачі: білий контур, активний пункт із напівпрозорою заливкою */
.seg { display: flex; padding: 3px; border: 1.5px solid rgba(246, 244, 236, 0.7); border-radius: 999px; }
.seg button {
  flex: 1 1 0; min-width: 0; padding: 9px 8px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 14px/1.2 var(--font); color: var(--ink); background: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.seg button.on { background: rgba(246, 244, 236, 0.3); font-weight: 800; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.seg + .seg { margin-top: 10px; }
.bar-top { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }

/* день: стрілки й дата */
.daynav { display: flex; align-items: center; gap: 8px; }
.daynav b { flex: 1; text-align: center; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.daynav b small { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
.round {
  flex: none; width: 44px; height: 44px; padding: 0; cursor: pointer; display: grid; place-items: center;
  color: var(--ink); background: var(--glass-in); border: 1px solid var(--line); border-radius: 50%;
}
.round:disabled { opacity: 0.3; }
.round svg, .dock svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* рядки списків */
.rows { margin: 0; padding: 0; list-style: none; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--faint); }
.rows .row:first-child { border-top: 0; }
.row .main { flex: 1; min-width: 0; }
.row .main > b { display: block; font-size: 16px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.row .main > span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--soft); }
.row .time { flex: none; width: 50px; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.row .time small { display: block; font-size: 12.5px; font-weight: 600; color: var(--soft); }
.row.tap { cursor: pointer; }
.row.now .time { color: var(--moss); }

.tag { display: inline-block; margin-left: 6px; padding: 2px 8px; vertical-align: 1px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; border: 1px solid var(--line); border-radius: 999px; color: var(--soft); white-space: nowrap; }
.tag.warn { color: var(--amber); border-color: rgba(226, 184, 102, 0.6); }
.tag.info { color: var(--moss); border-color: rgba(99, 192, 255, 0.55); }
.tag.bad { color: var(--red); border-color: rgba(232, 130, 112, 0.6); }

/* відмітка: три кнопки на рядок, активна залита кольором статусу */
.marks { flex: none; display: flex; gap: 6px; }
.marks button {
  width: 44px; height: 40px; padding: 0; cursor: pointer;
  font: 800 14px/1 var(--font); color: var(--ink); background: var(--glass-in); border: 1px solid var(--faint); border-radius: 13px;
}
.marks button.on[data-status="present"] { color: var(--forest); background: var(--green); border-color: var(--green); }
.marks button.on[data-status="late"] { color: var(--forest); background: var(--amber); border-color: var(--amber); }
.marks button.on[data-status="absent"] { color: var(--forest); background: var(--red); border-color: var(--red); }
.marks button.soft.on { opacity: 0.62; }
.marks button:disabled { opacity: 0.35; cursor: default; }
.badge { flex: none; padding: 6px 12px; font-size: 13px; font-weight: 800; border-radius: 999px; color: var(--forest); background: var(--cream); white-space: nowrap; }
.badge.present { background: var(--green); }
.badge.late { background: var(--amber); }
.badge.absent { background: var(--red); }
.badge.ghost { color: var(--soft); background: none; border: 1px solid var(--line); font-weight: 700; }

/* пари дня: стрічка, що гортається */
.lessons { display: flex; gap: 8px; margin: 12px -14px 0; padding: 2px 14px 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.lessons::-webkit-scrollbar { display: none; }
.lesson {
  flex: 0 0 auto; max-width: 62vw; padding: 10px 14px; cursor: pointer; text-align: left; scroll-snap-align: start;
  font: inherit; color: var(--ink); background: var(--glass-in); border: 1px solid var(--line); border-radius: var(--r-md);
}
.lesson b { display: block; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.lesson span { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lesson i { display: block; margin-top: 6px; font-size: 12.5px; font-style: normal; color: var(--soft); white-space: nowrap; }
.lesson.on { color: var(--forest); background: var(--cream); border-color: var(--cream); }
.lesson.on i { color: rgba(19, 35, 58, 0.72); }

/* цифри */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.stat { padding: 14px 12px; background: var(--glass-in); border: 1px solid var(--faint); border-radius: var(--r-md); }
.stat b { display: block; font-size: clamp(22px, 7vw, 32px); font-weight: 800; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 600; line-height: 1.25; color: var(--soft); }
.stat.good b { color: var(--green); }
.stat.bad b { color: var(--red); }
.stat.warn b { color: var(--amber); }

.meter { padding: 10px 16px; border-top: 1px solid var(--faint); }
.meter:first-of-type { border-top: 0; }
.meter-head { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 700; }
.meter-head span { flex: none; font-variant-numeric: tabular-nums; color: var(--soft); font-weight: 600; }
.track { display: flex; height: 8px; margin-top: 8px; gap: 2px; border-radius: 4px; overflow: hidden; background: var(--faint); }
.track i { display: block; }
.track .p { background: var(--green); }
.track .l { background: var(--amber); }
.track .a { background: var(--red); }

.weeks { display: flex; align-items: flex-end; gap: 6px; height: 96px; margin-top: 6px; }
.weeks div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--soft); font-variant-numeric: tabular-nums; }
.weeks i { display: block; width: 100%; min-height: 3px; border-radius: 6px 6px 2px 2px; background: var(--red); }
.weeks em { font-style: normal; font-weight: 800; color: var(--ink); }

/* наступна пара */
.next b { display: block; font: 800 22px/1.15 var(--font); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.next span { display: block; margin-top: 6px; font-size: 15px; color: var(--soft); }
.cta { display: inline-block; margin-top: 14px; padding: 12px 20px; cursor: pointer; text-decoration: none; font: 800 15px/1.2 var(--font); color: var(--forest); background: var(--moss); border: 0; border-radius: 999px; }
.cta.wide { display: block; width: 100%; text-align: center; }
.link { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

/* домашні завдання */
.hw { padding: 14px 16px; border-top: 1px solid var(--faint); }
.hw:first-of-type { border-top: 0; }
.hw-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.hw-head b { font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.hw-head span { flex: none; font-size: 13px; font-weight: 700; color: var(--moss); white-space: nowrap; }
.hw-head span.soon { color: var(--amber); }
.hw-head span.late { color: var(--red); }
.hw p { margin-top: 6px; font-size: 14.5px; color: var(--soft); white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hw.open p { display: block; }

input[type="search"] {
  display: block; width: 100%; padding: 12px 16px;
  font: 600 16px/1.2 var(--font); color: var(--ink); background: var(--glass-in); border: 1px solid var(--faint); border-radius: 16px;
}
input[type="search"]::placeholder { color: var(--soft); }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* вимикачі */
.tick { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--faint); cursor: pointer; }
.tick:first-of-type { border-top: 0; }
.tick div { min-width: 0; }
.tick b { display: block; font-size: 16px; font-weight: 700; }
.tick span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--soft); }
.tick input {
  -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 50px; height: 30px; margin: 0;
  background: rgba(246, 244, 236, 0.18); border: 0; border-radius: 999px; cursor: pointer; transition: background 0.2s;
}
.tick input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; background: #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); transition: transform 0.2s; }
.tick input:checked { background: var(--moss); }
.tick input:checked::after { transform: translateX(20px); }

/* вікно з деталями: кремове, як у Кіловаті */
dialog {
  width: min(520px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 24px 20px 20px; overflow: auto;
  color: var(--forest); background: var(--cream); border: 0; border-radius: 26px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
dialog::backdrop { background: rgba(8, 14, 26, 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
dialog h2 { margin: 0 40px 4px 0; font-size: 22px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
dialog .sub { margin-bottom: 14px; font-size: 14px; color: rgba(19, 35, 58, 0.72); }
dialog .close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; padding: 0; cursor: pointer; font-size: 24px; line-height: 1; color: var(--forest); background: rgba(19, 35, 58, 0.1); border: 0; border-radius: 50%; }
dialog .tick { padding-left: 0; padding-right: 0; border-color: rgba(19, 35, 58, 0.14); }
dialog .tick span { color: rgba(19, 35, 58, 0.7); }
dialog .tick input { background: rgba(19, 35, 58, 0.2); }
dialog .tick input:checked { background: var(--forest); }
dialog .seg { margin-top: 14px; border-color: rgba(19, 35, 58, 0.55); }
dialog .seg button { color: var(--forest); }
dialog .seg button.on { background: var(--forest); color: var(--cream); box-shadow: none; }
dialog h3 { margin: 18px 0 0; color: rgba(19, 35, 58, 0.66); }

/* плаваюча панель: під нею вміст плавно згасає */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; pointer-events: none;
  display: flex; justify-content: center; padding: 40px 10px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(rgba(8, 14, 26, 0), rgba(8, 14, 26, 0.86) 62%);
}
.pill { pointer-events: auto; display: flex; gap: 2px; padding: 6px; max-width: 100%; background: var(--cream); border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.42); }
.dock button {
  display: flex; align-items: center; justify-content: center; gap: 7px; height: 46px; min-width: 46px; padding: 0 11px; cursor: pointer;
  border: 0; border-radius: 999px; color: var(--forest); background: none; font: 700 13.5px/1 var(--font);
  transition: background 0.2s, color 0.2s;
}
.dock button span { display: none; }
.dock button.on { color: var(--cream); background: var(--forest); padding: 0 15px 0 13px; }
.dock button.on span { display: inline; }

.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 9; transform: translateX(-50%);
  max-width: calc(100% - 28px); padding: 12px 18px; font-size: 14.5px; font-weight: 700; text-align: center;
  color: var(--forest); background: var(--cream); border-radius: 18px; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}
.toast.bad { color: #fff; background: #b4483a; }

.skeleton { height: 86px; margin-top: 12px; border-radius: var(--r-lg); background: linear-gradient(100deg, var(--glass-in) 30%, rgba(255, 255, 255, 0.14) 50%, var(--glass-in) 70%); background-size: 220% 100%; animation: shine 1.3s linear infinite; }
@keyframes shine { to { background-position: -220% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } .tick input, .tick input::after, .dock button { transition: none; } }

@media (max-width: 380px) {
  .marks button { width: 38px; height: 38px; font-size: 13px; }
  .row { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .row .time { width: 44px; }
  .dock button.on span { display: none; }
  .dock button.on { padding: 0 11px; }
}

.row > svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* форма у вікні: поля на кремовому тлі */
dialog form label { display: block; margin-top: 14px; font-size: 13.5px; font-weight: 700; color: rgba(19, 35, 58, 0.78); }
dialog form label small { font-weight: 500; color: rgba(19, 35, 58, 0.56); }
dialog form input, dialog form select, dialog form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  font: 600 16px/1.3 var(--font); color: var(--forest); background: #fff; border: 1px solid rgba(19, 35, 58, 0.22); border-radius: 14px;
}
dialog form select { -webkit-appearance: none; appearance: none; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2313233a' stroke-width='1.6'/%3E%3C/svg%3E") right 14px center no-repeat; }
dialog form textarea { resize: vertical; min-height: 110px; }
dialog form input:focus-visible, dialog form select:focus-visible, dialog form textarea:focus-visible { outline: 2px solid var(--forest); outline-offset: 1px; }
dialog form .pair { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px; }
.form-error { min-height: 20px; margin-top: 12px; font-size: 14px; font-weight: 700; color: #b4483a; }
.cta.dark { margin-top: 6px; color: var(--cream); background: var(--forest); }
.cta:disabled { opacity: 0.5; }
.cta.wide + .glass { margin-top: 14px; }

/* завдання: файли й дії видно, коли картку розгорнуто */
.hw-files { margin: 8px 0 0; }
.hw-actions { display: none; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hw.open .hw-actions { display: flex; }
.chipbtn { padding: 9px 14px; cursor: pointer; font: 700 13.5px/1.2 var(--font); color: var(--ink); background: var(--glass-in); border: 1px solid var(--line); border-radius: 999px; }

/* файли у формі */
.filelist { margin: 8px 0 0; padding: 0; list-style: none; }
.filelist li { display: flex; align-items: center; gap: 10px; padding: 9px 6px 9px 12px; margin-bottom: 6px; background: #fff; border: 1px solid rgba(19, 35, 58, 0.16); border-radius: 12px; }
.filelist span { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filelist small { font-weight: 500; color: rgba(19, 35, 58, 0.56); }
.filelist button { flex: none; width: 32px; height: 32px; padding: 0; cursor: pointer; font-size: 20px; line-height: 1; color: var(--forest); background: rgba(19, 35, 58, 0.08); border: 0; border-radius: 50%; }
dialog form label.filepick { margin-top: 4px; padding: 12px; text-align: center; cursor: pointer; font-size: 15px; font-weight: 800; color: var(--forest); border: 1.5px dashed rgba(19, 35, 58, 0.4); border-radius: 14px; }
.cta.ghost { margin-top: 10px; color: #b4483a; background: none; border: 1.5px solid rgba(180, 72, 58, 0.5); }

/* домашнє завдання в розкладі: смужка під парою і крапка на дні тижня */
.due { display: flex; align-items: baseline; gap: 8px; width: 100%; margin-top: 8px; padding: 8px 12px; cursor: pointer; text-align: left;
  font: 600 13.5px/1.3 var(--font); color: var(--ink); background: rgba(226, 184, 102, 0.14); border: 1px solid rgba(226, 184, 102, 0.5); border-radius: 12px; overflow-wrap: anywhere; }
.due b { flex: none; display: inline; font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; color: var(--amber); }
.lesson .dot { display: inline-block; width: 7px; height: 7px; margin-left: 6px; vertical-align: 2px; border-radius: 50%; background: var(--amber); }
.lesson.on .dot { background: #b8862c; }

/* картка завдання у вікні */
.card-eyebrow { margin: 0 44px 6px 0; font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #2a6f9e; }
.card-eyebrow.soon { color: #9a6a12; }
.card-eyebrow.late { color: #b4483a; }
.card-title { margin-top: 10px; font-size: 17px; font-weight: 800; overflow-wrap: anywhere; }
.card-text { margin-top: 8px; font-size: 15.5px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
dialog .filelist { margin-top: 14px; }
dialog .filelist li { padding: 10px 12px; }
dialog .cta.wide { margin-top: 10px; }
.cta.ghost.neutral { color: var(--forest); border-color: rgba(19, 35, 58, 0.4); }
dialog .card-author { margin: 14px 0 0; }

/* номер пари за сіткою дзвінків; порожні місця дня теж видно */
.row .num { flex: none; width: 30px; height: 30px; display: grid; place-items: center; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); border: 1.5px solid var(--line); border-radius: 50%; }
.row.now .num { color: var(--forest); background: var(--moss); border-color: var(--moss); }
.row.free { padding-top: 8px; padding-bottom: 8px; }
.row.free .num { color: var(--soft); border-style: dashed; border-color: var(--faint); }
.row.free .time { font-weight: 600; color: var(--soft); opacity: 0.7; }
.row.free .main > span { margin: 0; font-size: 14px; color: var(--soft); opacity: 0.8; }
.row.free.gap { background: rgba(226, 184, 102, 0.07); }
.row.free.gap .main > span { color: var(--amber); opacity: 1; font-weight: 700; }
.row.free.gap .num { border-color: rgba(226, 184, 102, 0.5); color: var(--amber); }
@media (max-width: 380px) { .row .num { width: 26px; height: 26px; font-size: 13px; } }

.testclock { margin: -6px 2px 14px; padding: 10px 14px; font-size: 13.5px; font-weight: 600; color: var(--amber); background: rgba(226, 184, 102, 0.12); border: 1px dashed rgba(226, 184, 102, 0.6); border-radius: 14px; }

/* гортання днів свайпом: новий день заїжджає з того боку, куди гортали */
.slide-next { animation: slide-next 0.22s ease-out; }
.slide-prev { animation: slide-prev 0.22s ease-out; }
@keyframes slide-next { from { transform: translateX(36px); opacity: 0; } }
@keyframes slide-prev { from { transform: translateX(-36px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .slide-next, .slide-prev { animation: none; } }

/* Відвідування: редактор розгортається під рядком студента. */
.attendance-block { touch-action: pan-y; }
.attendance-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 0 16px; margin-bottom: 10px; }
.attendance-heading h3 { flex: 1 1 150px; margin: 0; }
.attendance-heading .chipbtn { margin: 0; font-size: 12px; }
.lesson-swipe-hint { margin: 0 0 12px; font-size: 12px; }
.student-item { border-top: 1px solid var(--faint); }
.student-item:first-child { border-top: 0; }
.student-item > .row { border: 0; }
.tapname { cursor: pointer; text-align: left; color: inherit; background: none; border: 0; padding: 0; font: inherit; }
.tapname > b { text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 4px; }
.tapname[aria-expanded="true"] > b { text-decoration-color: var(--line); }
.hint.tip { margin: 0 0 6px; font-size: 13px; }
.presence-inline { display: grid; gap: 2px; margin: 0 0 8px; padding: 0 16px 4px; background: none; color: inherit; border: 0; border-radius: 0; scroll-margin-block: 16px 110px; }
.pl { display: flex; align-items: center; height: 22px; margin: 0 12px; }
.pl-track { position: relative; width: 100%; height: 4px; border-radius: 2px; background: var(--faint); touch-action: none; cursor: pointer; }
.pl-track::before { content: ""; position: absolute; inset: -10px 0; }
.pl-fill { position: absolute; inset: 0; border-radius: 2px; background: var(--soft); opacity: .4; pointer-events: none; }
.pl-dot { position: absolute; z-index: 1; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; padding: 0; border: 0; background: none; cursor: grab; touch-action: none; border-radius: 50%; }
.pl-dot::after { content: ""; position: absolute; inset: 8px; border: 1px solid var(--ink); border-radius: 50%; background: var(--ink); }
.pl-dot.unset::after { background: #18263a; border-color: var(--soft); border-style: dashed; }
.pl-dot.on, .pl-dot:focus-visible { z-index: 2; outline: 1px solid var(--line); outline-offset: -4px; cursor: grabbing; }
.pl-dot:disabled { opacity: .45; }
.pl-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-height: 16px; }
.pl-card { display: flex; align-items: baseline; gap: 4px; min-width: 0; white-space: nowrap; font-size: 11px; line-height: 16px; font-variant-numeric: tabular-nums; }
.pl-card.out { justify-content: flex-end; }
.pl-card small { font-size: inherit; color: var(--soft); }
.pl-card b { font-size: 12px; font-weight: 600; }
.pl-card span { color: var(--soft); font-size: 10px; }
.pl-actions { display: flex; align-items: center; gap: 8px; height: 22px; }
.pl-actions .chipbtn { margin: 0; padding: 3px 5px; color: var(--soft); background: none; border: 0; border-radius: 0; font: 600 11px/16px var(--font); }
.pl-actions [data-pl-save] { color: var(--ink); }
.pl-actions button:disabled { opacity: .35; }
#pl-status { flex: 1; font-size: 10px; line-height: 16px; color: var(--soft); }
.presence-inline .form-error { margin: 0; min-height: 0; color: var(--red); font-size: 12px; }
.presence-inline .form-error:empty { display: none; }
