* {
  box-sizing: border-box;
}
:root {
  color-scheme: light;
  --ink: #20352f;
  --soft: #53685f;
  --line: #d4dfd8;
  --bg: #f4f7f3;
  --green: #185d49;
}
body {
  margin: 0;
  font:
    16px/1.55 "Inter",
    "Arial",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a {
  color: #145c47;
  text-underline-offset: 3px;
}
button,
input,
select,
textarea {
  font: inherit;
}
[hidden] {
  display: none !important;
}
.question-copy { overflow-wrap: anywhere; }
.panel audio { max-width: 100%; }
.shell {
  max-width: 760px;
  margin: auto;
  padding: 0 24px;
}
.shell.narrow {
  max-width: 530px;
}
.mast {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topline,
.heading,
.actions,
.printtools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topline,
.heading {
  justify-content: space-between;
}
.topline {
  min-height: 62px;
}
.brand {
  font-weight: 700;
  letter-spacing: -0.025em;
}
.heading.order-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
.contact-title { grid-column: 1 / -1; display: flex; align-items: center; gap: 4px; margin: 0 0 16px; }
.contact-title h1 { min-width: 0; margin: 0; }
.contact-pencil {
  width: 44px; height: 44px; display: grid; place-items: center;
  padding: 0; border: 0; border-radius: 50%; color: var(--green); background: transparent;
}
.contact-pencil svg {
  box-sizing: content-box; padding: 6px; border: 1px solid var(--line);
  border-radius: 50%; background: #eef5f0;
}
.contact-pencil:hover svg, .contact-pencil:focus-visible svg { background: #deeae2; border-color: #90b2a2; }
.contact-form { grid-column: 1 / -1; display: grid; gap: 7px; width: 100%; max-width: 32rem; margin: 0 0 16px; }
.contact-form .actions { gap: 8px; }
.kicker,
.hint,
small,
figcaption,
.summary,
time {
  color: var(--soft);
}
.kicker {
  font-size: 0.84rem;
}
.summary {
  margin-top: -10px;
}
main {
  padding-bottom: 64px !important;
}
h1,
h2 {
  line-height: 1.16;
  letter-spacing: -0.035em;
}
h1 {
  font-family: "Georgia", serif;
  font-weight: 500;
  font-size: clamp(32px, 6vw, 46px);
  margin: 28px 0 20px;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 21px;
  margin: 0 0 16px;
}
.back {
  display: inline-block;
  margin-top: 22px;
}
.shell.issued-page, .issued-body .topline { max-width: 620px; }
.issued-code { color: var(--soft); margin: 25px 0 0; font-size: .9rem; font-variant-numeric: tabular-nums; }
.issued-code + h1 { margin: 5px 0 6px; }
.issued-until { margin: 0; color: var(--soft); }
.issued-until time { color: var(--ink); }
.issued-panel label { margin-bottom: 7px; color: var(--ink); font-size: 1rem; }
.issued-panel textarea { display: block; resize: vertical; min-height: 7rem; max-height: 48vh; line-height: 1.5; }
.issued-terms { font-size: .9rem; line-height: 1.5; color: var(--soft); margin: 12px 0 0; }
.issued-actions { display: grid; gap: 8px; margin-top: 18px; }
.issued-actions button { min-height: 46px; padding: 8px 12px; border-radius: 9px; line-height: 1.35; }
.issued-alternatives { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(205px, 100%), 1fr)); gap: 8px; }
.issued-alternatives button { background: #f5f8f5; border: 1px solid #b9cbc1; color: #225742; }
.issued-actions .copy-done, .issued-actions [data-copied] .copy-default { display: none; }
.issued-actions [data-copied] .copy-done { display: inline; }
.issued-alternatives [data-copied] { background: #e4f1e9; border-color: #78a58e; }
.issued-page :is(a,button,textarea):focus-visible { outline: 3px solid #336b91; outline-offset: 2px; }
.issued-feedback:not(.manual-copy) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; margin: 0; }
.issued-page #feedback:empty { display: block; }
.issued-feedback.manual-copy { padding: 9px 12px; border-radius: 6px; background: #eef4f7; color: #25465b; font-size: .92rem; }
.issued-footer { margin: 16px 0 8px; }
.issued-footer .issued-return { min-height: 48px; gap: 9px; padding-inline: 18px; color: var(--green); background: white; border-color: #799b8d; }
.issued-footer p { margin: 9px 0 0; }
@media (max-width: 520px) { .issued-footer .issued-return { width: 100%; } }
.panel,
.list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.panel {
  padding: clamp(16px, 5vw, 26px);
  margin: 18px 0;
}
.panel p:first-child {
  margin-top: 0;
}
.panel p:last-child {
  margin-bottom: 0;
}
.stack {
  display: grid;
  gap: 17px;
}
.stack > p {
  margin: 0;
}
label,
legend {
  font-size: 0.94rem;
  font-weight: 650;
}
label {
  display: grid;
  gap: 5px;
}
input:not([type="checkbox"]),
textarea,
select {
  min-width: 0;
  width: 100%;
  padding: 10px 12px;
  min-height: 44px;
  background: #fcfdfb;
  color: var(--ink);
  border: 1px solid #a5b9ad;
  border-radius: 7px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 500;
}
.check input {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  accent-color: var(--green);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
legend {
  margin-bottom: 6px;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--green);
  font-weight: 650;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  padding: 9px 15px;
  min-height: 44px;
  text-decoration: none;
}
button:hover,
.button:hover {
  filter: brightness(0.94);
}
:focus-visible {
  outline: 3px solid #c27c17;
  outline-offset: 3px;
}
.stack > button {
  justify-self: start;
}
.textbtn {
  border: 0;
  color: var(--green);
  background: transparent;
}
.light {
  background: #eef5f0;
  color: var(--green);
  border-color: #bad0c1;
}
.danger,
.warning {
  color: #8b3430;
}
.danger {
  background: #fff7f5;
  border-color: #d6a09a;
}
.warning {
  background: #fff1e9;
  border-radius: 7px;
  padding: 8px 12px;
}
.attention {
  border-left: 4px solid #477a50;
}
.hint,
small,
figcaption {
  font-size: 0.88rem;
  font-weight: 400;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
.pair,
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.gallery .photo,
figure .photo,
#preview {
  max-width: 100%;
  max-height: 250px;
  object-fit: contain;
  border-radius: 7px;
  background: var(--bg);
}
.gallery form {
  margin: 6px 0;
}
figure {
  margin: 10px 0;
}
.tabs,
.search {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tabs {
  border-bottom: 1px solid var(--line);
}
.tabs a {
  text-decoration: none;
  padding: 9px 10px;
}
.tabs a[aria-current] {
  border-bottom: 3px solid var(--green);
  font-weight: 700;
}
.search {
  margin: 16px 0;
}
.search input {
  flex: 1;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  padding: 14px 18px;
}
.row + .row,
.copy + .copy {
  border-top: 1px solid var(--line);
}
.row strong,
.row span:not(.status) {
  display: block;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.row div > span {
  font-size: 0.85rem;
}
.status {
  font-size: 0.78rem;
  color: #21523f;
  background: #e6f0e8;
  border-radius: 20px;
  padding: 4px 10px;
  white-space: nowrap;
}
.empty {
  padding: 8px 18px;
  color: var(--soft);
}
summary {
  cursor: pointer;
  font-weight: 650;
}
details[open] summary {
  margin-bottom: 15px;
}
.copy {
  padding: 14px 0;
}
.copy label input {
  width: 64px;
}
.activity {
  padding-left: 0;
  list-style: none;
}
.activity li {
  margin: 7px 0;
}
.activity time {
  font-size: 0.86rem;
}
.printtools {
  padding: 18px;
  justify-content: center;
}
.paper {
  text-align: center;
  margin: 15px auto;
  max-width: 210mm;
  background: white;
  padding: 30mm 8mm 10mm;
  min-height: 260mm;
}
.paper img {
  display: block;
  width: 100mm;
  height: 150mm;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto 7mm;
}
.paper div {
  overflow-wrap: anywhere;
}
@media (max-width: 520px) {
  .shell {
    padding: 0 15px;
  }
  .pair {
    grid-template-columns: 1fr;
  }
  .heading {
    gap: 3px;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .gallery img {
    max-height: 210px;
  }
  .row {
    padding: 12px;
  }
  .tabs {
    gap: 0;
  }
  .tabs a {
    padding: 9px 7px;
    font-size: 14px;
  }
}
@page {
  size: A4 portrait;
  margin: 0;
}
@media print {
  body {
    background: #fff;
  }
  .printtools {
    display: none;
  }
  .paper {
    margin: 0;
    width: 210mm;
    min-height: 0;
    padding: 30mm 10mm 0;
    font:
      12pt/1.4 Arial,
      sans-serif;
    break-inside: avoid;
  }
  .paper img {
    height: 150mm;
    width: 100mm;
    max-width: none;
  }
  .paper div {
    max-width: 185mm;
    margin: auto;
  }
}

/* Claude 20.11: simplified card, chips, photo picker (up to 10) and review picks */
.now { border-left: 4px solid var(--green); }
.now h2 { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid #bad0c1; border-radius: 22px; background: #fff; color: var(--ink); cursor: pointer; }
.chip input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid #c27c17; outline-offset: 2px; }
.chip input:disabled + span { opacity: 0.45; cursor: default; }
.chip.quiet span { color: var(--soft); }
.quiet-links { margin: 6px 0 0; font-size: 0.9rem; color: var(--soft); }
.more .sub { padding: 14px 0; border-top: 1px solid var(--line); }
.more .sub:first-of-type { border-top: 0; padding-top: 0; }
.more h3 { margin: 0 0 8px; font-size: 1rem; }
details.aside summary { font-weight: 400; font-size: 0.9rem; color: var(--soft); }
label.count input { width: 64px; }
.offscreen { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.picker { display: grid; gap: 8px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.thumbs:empty { display: none; }
.thumbs figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #e6ede8; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs .noview img { display: none; }
.thumbs .noview::after { content: "HEIC"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--soft); font-weight: 650; pointer-events: none; }
.thumbs .remove { z-index: 1; position: absolute; top: 4px; right: 4px; min-height: 30px; width: 30px; padding: 0; border-radius: 15px; background: rgba(32, 53, 47, 0.78); border-color: transparent; font-size: 1.1rem; line-height: 1; }
.picks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 6.25rem), 1fr));
  align-items: start;
  gap: .65rem;
}
.photo-choice { position: relative; min-width: 0; cursor: pointer; }
.photo-frame {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #f0f3f0;
}
.photo-frame img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.photo-choice input {
  position: absolute;
  z-index: 1;
  inset: .4rem auto auto .4rem;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--green);
  cursor: pointer;
}
.photo-choice input:checked + .photo-frame { border-color: var(--green); }
.photo-choice input:focus-visible + .photo-frame { outline: 2px solid var(--green); outline-offset: 3px; }
.photo-choice:has(input:disabled), .photo-choice input:disabled { cursor: default; }
.photo-choice input:disabled + .photo-frame { border-style: dashed; }
.photo-pending, .photo-index, .choice-caption { font-size: .82rem; color: var(--soft); }
.choice-caption { line-height: 1.35; overflow-wrap: anywhere; }
.chips legend { width: 100%; margin: 0 0 2px; color: var(--soft); }

/* Claude 21.11: voice answers and video reports */
#deliver-progress { width: 100%; height: 10px; accent-color: currentColor; }
.player audio, .player video { display: block; width: 100%; max-height: 70vh; border-radius: 10px; background: #000; }
.player audio { background: transparent; }

#thumbs { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; }
#thumbs:empty { display: none; }
.photo-note { position: relative; display: block; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.photo-note figure { position: absolute; top: 10px; left: 10px; width: 64px; }
.photo-note > .remove { width: 44px; min-height: 44px; top: 6px; right: 3px; border: 0; color: var(--soft); background: transparent; font-size: 1.3rem; }
.photo-note details, .review-photo { min-width: 0; }
.photo-note summary { cursor: pointer; overflow-wrap: anywhere; min-height: 64px; padding: 7px 34px 6px 76px; list-style-position: inside; color: var(--green); font-weight: 650; }
.photo-note label { margin: 7px 0; }
.note-actions { display: flex; flex-wrap: wrap; gap: 3px 12px; }
.note-actions .textbtn { min-height: 40px; padding: 0; text-align: left; font-size: .87rem; }
.note-hint, .photo-label span { color: var(--soft); }
.photo-label { margin: 5px 0 8px; font-size: .9rem; overflow-wrap: anywhere; }
.photo-label strong, .photo-label span { display: block; }
.paper div { overflow-wrap: anywhere; }

/* Claude 22.11: «Исправить фото» on the client page, the list of what was sent, «Было → Станет» for the admin */
.fix-item { padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.fix-item.removed .fix-pics img:first-child { opacity: .35; }
.fix-pics { display: flex; align-items: center; gap: 8px; }
.fix-pics img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; background: #e6ede8; }
.fix-pics img.noview { visibility: hidden; }
.fix-arrow { color: var(--soft); font-size: 1.3rem; }
.fix-title { margin: 8px 0 2px; color: var(--green); font-weight: 650; overflow-wrap: anywhere; }
.fix-state { margin: 2px 0; }
.sent-list ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.sent-list li { display: flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.sent-list img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; flex: none; }
.fix-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: start; }
.fix-pair .fix-arrow { align-self: center; }
.fix-gone { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; border: 1px dashed var(--line); color: var(--soft); text-align: center; padding: 6px; }

/* Claude 22.11 (owner): record the voice answer here, shoot videos here, several videos in one link */
#video-part { position: relative; }
input.file-hidden[type="file"] {
  position: absolute; top: 0; left: 0; width: 1px; height: 1px; min-height: 0;
  padding: 0; border: 0; clip-path: inset(50%); overflow: hidden; pointer-events: none;
}
.rec-time { margin: 0; color: #a3372d; font-weight: 650; font-variant-numeric: tabular-nums; }
.rec-stop { background: #a3372d; border-color: #a3372d; }
.rec-take audio { display: block; width: 100%; }
.video-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.video-list li { display: grid; grid-template-columns: minmax(170px, 40%) minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.video-list video, #video-live { display: block; width: 100%; min-width: 0; aspect-ratio: 16/9; max-height: 46vh; object-fit: contain; border-radius: 8px; background: #17211d; }
.video-actions { gap: 8px 12px; }
#video-feedback:empty { display: none; }
@media (max-width: 520px) { .video-list li { grid-template-columns: minmax(0,1fr); } }
.video-list .stack { gap: 6px; min-width: 0; }
.video-list .textbtn { justify-self: start; min-height: 36px; padding: 0; }
.delivery-files { margin: 4px 0 8px; padding-left: 1.3em; }
.delivery-files li { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; }
.delivery-files .textbtn { min-height: 36px; padding: 0; font-size: .87rem; }
.player .part + .part { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }

/* Claude 22.11 (owner): voice order — step 2 opens only after «Оплата сверена» */
.locked { margin: 0; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; color: var(--soft); font-weight: 650; }
.paid { margin: 0; color: var(--green); font-weight: 650; }

/* Claude 22.11 (owner): the payment page for the client */
.pay { padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.pay-sum { margin: 0; font-size: 1.25rem; font-weight: 650; }
.pay-card { gap: 6px; }
.pay-card .button { text-align: center; }
.amount-tools { display: flex; gap: 4px 10px; align-items: center; flex-wrap: wrap; }
.amount-tools .textbtn { padding: 0; font-size: .9rem; }
#feedback:empty { display: none; }
.pay-abroad summary { cursor: pointer; color: var(--green); font-weight: 650; min-height: 44px; display: flex; align-items: center; }
.pay-abroad p { margin: 6px 0 10px; }
.pay-after { margin: 0; }

/* Claude 22.11 (owner): how many programmes */
.count-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.count-pick label { flex-basis: 100%; font-weight: 650; margin: 0; }
.count-controls { display: inline-grid; grid-template-columns: 44px minmax(48px, 3.5rem) 44px; align-items: stretch; gap: 6px; }
.count-controls button { display: grid; place-items: center; min-width: 0; min-height: 44px; padding: 0; font-size: 1.2rem; line-height: 1; }
.count-controls input { width: 100%; min-width: 0; min-height: 44px; padding-inline: 0; text-align: center; font-size: 1.05rem; font-variant-numeric: tabular-nums; appearance: textfield; }
.count-controls input::-webkit-inner-spin-button, .count-controls input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pay-line { margin: 0; font-weight: 650; }
.program-balance dl { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,9rem),1fr)); gap: .6rem 1rem; margin: .5rem 0; }
.program-balance dt { color: var(--soft); font-size: .92rem; }
.program-balance dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.program-balance > strong { color: #82521d; }
.program-balance p { margin: .4rem 0 0; }
.heading > div, .row > div { min-width: 0; overflow-wrap: anywhere; }
.pay-abroad summary { justify-content: space-between; gap: 10px; }
.pay-abroad summary::after { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); flex-shrink: 0; margin-right: 4px; }
.pay-abroad[open] summary::after { transform: rotate(225deg); }

/* Claude 22.11 (owner): payment page in two steps */
.pay-step { margin: 8px 0 0; font-size: 1.05rem; }
.receipts { margin-top: 18px; }
.receipts .receipt { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.kept { margin: 0; color: var(--green); }
/* Claude 25.11 (owner): the receipt as a cabinet page, with a way back */
.proof-links { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.proof-view h1 { margin: 14px 0 4px; }
.proof-back { margin-top: 4px; }
.proof-page { display: block; width: 100%; height: auto; margin: 12px 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.proof-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 24px; }
/* Claude 25.11 (owner): booking wishes for a consultation */
.wish-line { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.panel.wish .hint { margin: 2px 0 0; }
.panel.wish form { margin-top: 10px; }
fieldset.wish { gap: 8px; }
fieldset.wish legend { margin-bottom: 2px; padding: 0; }
/* Claude 25.11 (owner): card payments through the ЮKassa API */
.yoo-line { margin: 0 0 6px; overflow-wrap: anywhere; }
.warning-text { color: #9a3412; }
#pay-card[aria-disabled="true"] { opacity: .6; pointer-events: none; }
.payment-hint { border-left: 3px solid #a7b99b; background: #f3f6f0; border-radius: 5px; padding: 10px 14px; }
.payment-hint p, .payment-hint ul { margin: 4px 0; }
.payment-signal {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px;
  align-items: start; padding: 16px; border: 1px solid; border-left-width: 5px; border-radius: 12px;
}
.payment-not-found { background: #fff2ce; border-color: #ab6919; color: #5a3207; }
.payment-unavailable { background: #eaf2fa; border-color: #617e98; color: #254665; }
.payment-training { background: #edf3ef; border-color: #718c7d; color: #2e5141; }
.training-example summary { color: var(--green); min-height: 44px; padding: 9px 0; }
.payment-symbol {
  width: 28px; height: 28px; border: 2px solid currentColor; border-radius: 50%; display: grid;
  place-items: center; font-size: 18px; font-weight: 750; line-height: 1;
}
.payment-signal strong { display: block; font-size: clamp(1.18rem, 3.6vw, 1.4rem); line-height: 1.25; }
.payment-signal p { margin: 6px 0 0; font-size: .96rem; line-height: 1.5; }
.hint-time { display: block; margin-top: 7px; }
.hint-tools { display: flex; gap: 4px 10px; align-items: center; flex-wrap: wrap; }
.hint-tools button { padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }
.home-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.home-link:hover { text-decoration: underline; }
.row .status-review { background: #ffedc6; color: #604011; }
.receipt-check { border-top: 1px solid var(--line); padding-top: 14px; }
.payment-trail { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 16px; }
.payment-trail summary { min-height: 38px; color: var(--green); cursor: pointer; font-weight: 650; }
.ledger-tabs { margin-bottom: 16px; }
.ledger-tabs a { padding-block: 8px; }
.ledger-tabs [aria-current] { font-weight: 700; }
.ledger-entry h2 { margin-bottom: 4px; overflow-wrap: anywhere; }
.ledger-entry p { margin-top: 0; }
.ledger-entry dl { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 5px 15px; }
.ledger-entry dt { color: var(--soft); }
.ledger-entry dd { margin: 0; overflow-wrap: anywhere; }
.yoo-found { margin: 4px 0; padding: 8px 10px; border-radius: 8px; background: #e7f2ea; color: var(--green); font-weight: 650; overflow-wrap: anywhere; }

/* The order desk shares the staff palette; all filtering works without JavaScript. */
.shell.orders-desk, .desk-body .topline { max-width: 1020px; }
.desk-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 20px; margin: 27px 0 22px; }
.desk-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 20px; }
.desk-title h1 { margin: 0; }
.desk-title a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.desk-create { list-style: none; display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; width: fit-content; padding: 9px 17px; background: var(--green); border-radius: 9px; color: white; }
.desk-create::-webkit-details-marker { display: none; }
.desk-create span { line-height: 1; font-size: 1.15em; }
#new-order:has(details[open]) { grid-column: 1 / -1; }
.desk-create-form { margin-top: 12px; padding: clamp(16px, 3vw, 26px); border: 1px solid var(--line); border-radius: 12px; background: white; }
.desk-notices { border-inline-start: 4px solid #a26b22; padding: 3px 15px; background: #fff4db; border-radius: 6px; margin: 12px 0 18px; }
.desk-notices p { margin: 6px 0; }
.desk-scope, .desk-stages, .desk-more nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.desk-scope { width: fit-content; padding: 3px; border: 1px solid #cad9ce; border-radius: 12px; background: #e8efe9; }
.desk-scope :is(a,button), .desk-stages :is(a,button), .desk-more nav :is(a,button) {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px;
  padding: 7px 12px; border: 1px solid transparent; border-radius: 8px; color: var(--soft);
  background: transparent; font: inherit; font-weight: 600; text-decoration: none;
}
.desk-scope [aria-current] { color: var(--ink); background: #fff; border-color: #b9cdbf; box-shadow: 0 1px 3px #182c1d0f; }
.desk-list { background: white; border: 1px solid var(--line); border-radius: 14px; margin: 14px 0 8px; }
.desk-stages { padding: 12px 14px 9px; }
.desk-stages :is(a,button) { color: var(--ink); font-size: .93rem; }
.desk-stages [aria-current] { color: #fff; background: var(--green); }
.desk-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.4em; padding: 0 4px; border-radius: 5px; background: #eaf0eb; color: #38574b; font-size: .81em; font-variant-numeric: tabular-nums; }
.desk-stages [aria-current] .desk-count { background: #fff; color: #185d49; }
.desk-search { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(145px, 220px) auto; gap: 8px; padding: 0 16px 16px; }
.desk-search input, .desk-search select { background: white; }
.desk-query { margin: -4px 16px 12px; font-size: .9rem; }
.desk-order { display: grid; grid-template-columns: minmax(0, 1fr) auto 12px; align-items: center; gap: 8px 16px; padding: 13px 18px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.desk-order:last-child { border-radius: 0 0 14px 14px; }
.desk-client { min-width: 0; overflow-wrap: anywhere; }
.desk-client strong, .desk-client span, .desk-client small { display: block; }
.desk-client strong { font-size: 1.04rem; }
.desk-client span { font-size: .92rem; }
.desk-client small { color: var(--soft); font-size: .8rem; font-variant-numeric: tabular-nums; }
.panel .order-relation { margin: 6px 0 14px; color: var(--soft); font-size: .95rem; overflow-wrap: anywhere; }
.panel .order-relation a { color: var(--green); font-weight: 650; text-decoration: underline; text-underline-offset: .15em; }
.desk-status { justify-self: start; padding: 4px 10px; border-radius: 7px; color: #35483d; background: #eef1ed; font-size: .88rem; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.desk-status-payment { color: #604511; background: #fcf2da; }
.desk-status-review { color: #773605; background: #ffe4c5; }
.desk-status-materials { color: #304c65; background: #e8f1f6; }
.desk-status-work { color: #235541; background: #e5f1e9; }
.desk-status[data-stage="review_materials"] { color: #fff; background: #245181; }
.desk-status[data-stage="checkout"] { color: #514438; background: #e9e3da; }
.desk-status[data-stage="voice"] { color: #fff; background: #24604d; }
.desk-arrow { color: var(--soft); font-size: 1.4rem; }
.desk-empty, .desk-pages { padding: 22px 18px; border-top: 1px solid var(--line); color: var(--soft); }
.desk-more, .ledger-reserve { color: var(--soft); margin-block: 12px; }
.desk-more summary, .ledger-reserve summary { padding-block: 10px; width: fit-content; min-height: 44px; }
.desk-more[open] summary, .ledger-reserve[open] summary { margin-bottom: 0; }
.desk-more nav { gap: 2px; }
.desk-more nav :is(a,button) { color: var(--green); text-decoration: underline; text-underline-offset: 3px; font-size: .9rem; }
.desk-more nav [aria-current] { background: #e1ebe3; }
.ledger-reserve p { margin: 0; padding: 0 0 10px; }
.ledger-reserve-warning { border-inline-start: 3px solid #a26b22; padding-inline: 12px; color: #664211; }
@media (hover: hover) {
  .desk-order:hover, .desk-scope :is(a,button):not([aria-current]):hover,
  .desk-stages :is(a,button):not([aria-current]):hover { background: #f1f6f2; color: var(--ink); }
  .desk-create:hover { background: #124b3a; }
}
@media (max-width: 620px) {
  .desk-toolbar { margin: 17px 0 14px; gap: 6px; }
  .desk-title { flex-direction: column; gap: 0; }
  .desk-create { padding-inline: 12px; }
  .desk-stages { gap: 2px; padding: 8px; }
  .desk-stages :is(a,button) { padding-inline: 8px; }
  .desk-search { grid-template-columns: minmax(0, 1fr) auto; padding: 4px 12px 14px; }
  .desk-search input[type=search] { grid-column: 1 / -1; }
  .desk-order { grid-template-columns: minmax(0,1fr) 12px; gap: 6px; padding: 12px; }
  .desk-status { grid-column: 1; }
  .desk-arrow { grid-column: 2; grid-row: 1 / span 2; }
}

.topline:has(.staff-brand) { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; min-height: 70px; padding-block: 7px; }
.topline .staff-brand { display: block; justify-self: start; min-height: 0; padding-block: 9px; font-size: clamp(1.18rem, 1.1rem + .55vw, 1.55rem); font-weight: 650; line-height: 1.22; }
.staff-brand span { white-space: nowrap; }
.topline:has(.staff-brand) .textbtn { padding-inline: 8px; }
.order-navigation { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; margin: 18px 0 15px; }
.order-nav-back { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 8px 15px; border: 1px solid #9eb6a8; border-radius: 9px; background: white; color: var(--green); font-weight: 650; text-decoration: none; }
.order-nav-back span { font-size: 1.2rem; line-height: 1; }
.order-nav-back:hover { background: #eaf2ec; }
.order-nav-ledger { display: inline-flex; align-items: center; min-height: 44px; margin-inline-start: auto; padding-inline: 3px; color: var(--soft); font-size: .93rem; text-underline-offset: 4px; }

.delivery-options, .voice-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; min-width: 0; }
.delivery-options { gap: 2px 18px; }
.delivery-options legend { font-size: .93rem; margin: 0; }
.delivery-options label { display: inline-flex; align-items: center; min-height: 44px; gap: 7px; font-weight: 500; cursor: pointer; }
.delivery-options input[type=radio] { margin: 0; appearance: auto; width: 17px; min-height: 0; height: 17px; padding: 0; accent-color: var(--green); }
.voice-composer { min-width: 0; padding: clamp(12px, 3vw, 20px); border: 1px solid var(--line); border-radius: 11px; background: #f7f9f6; }
.voice-actions { gap: 8px; }
.voice-actions button, .voice-picker span { min-height: 46px; padding: 9px 15px; font: inherit; font-weight: 650; line-height: 1.35; border-radius: 8px; }
.voice-picker { position: relative; display: inline-flex; margin: 0; font-size: 1rem; }
.voice-picker span, .delivery-ready :is(#rec-start, #video-shoot), .audio-sources.has-audio button:not(.rec-stop) { display: inline-flex; align-items: center; justify-content: center; background: white; border: 1px solid #97afa2; color: var(--green); cursor: pointer; }
.voice-picker input:focus-visible + span { outline: 3px solid #336b91; outline-offset: 2px; }
.voice-picker input:disabled + span { opacity: .55; cursor: default; }
.voice-file-help { color: var(--soft); margin: 8px 0 0; font-size: .88rem; }
.audio-sources:not(.has-audio) > summary, .audio-sources.capturing > summary,
.audio-sources.capturing .voice-picker, .audio-sources.capturing .voice-file-help { display: none; }
.audio-sources > summary, .additional-answer > summary, .result-management > summary { min-height: 44px; width: fit-content; padding: 10px 2px; color: var(--green); }
.audio-sources[open] > summary { margin-bottom: 4px; }
.rec-take { min-width: 0; }
.rec-take p { margin: 0 0 5px; overflow-wrap: anywhere; font-weight: 600; }
.voice-feedback:not(:empty) { margin: 8px 0 0; font-size: .92rem; color: var(--ink); }
.voice-feedback:empty, .voice-actions [role=timer]:empty, #deliver-status:empty { display: none; }
#deliver-send:disabled { background: #edf1ee; color: #58675f; border-color: #cdd8d0; opacity: 1; cursor: default; }
voice-player { display: block; width: 100%; min-width: 0; }
voice-player:has(> audio[hidden]) { display: none; }
voice-player > audio { display: block; width: 100%; }
.audio-toolbar, .audio-level { display: flex; align-items: center; gap: 6px; }
.audio-toolbar { justify-content: space-between; flex-wrap: wrap; margin-top: 3px; }
.audio-toolbar button { padding: 4px 8px; min-width: 44px; min-height: 44px; background: transparent; color: var(--ink); border: 1px solid transparent; font-size: .93rem; }
voice-player > .audio-speed {
  display: flex; width: fit-content; min-height: 44px; margin-inline-start: auto; gap: 7px; padding: 4px 3px;
  color: var(--soft); background: transparent; border: 0; font-size: .86rem; font-weight: 550;
}
.audio-speed::after {
  content: ""; width: 26px; height: 16px; border: 1px solid #70847b; border-radius: 9px;
  background: radial-gradient(circle at 7px 50%, #53685f 4px, transparent 5px) #f0f3ef;
}
.audio-speed[aria-checked=true] { color: var(--green); }
.audio-speed[aria-checked=true]::after {
  border-color: var(--green); background: radial-gradient(circle at 18px 50%, white 4px, transparent 5px) var(--green);
}
@media (forced-colors: active) { .audio-speed[aria-checked=true] { text-decoration: underline double; } }
.audio-toolbar button:hover { background: #e9efe9; }
.audio-level { margin-inline-start: auto; gap: 0; }
.audio-level > span { color: var(--soft); font-size: .85rem; margin-inline-end: 7px; }
.audio-level input[type=range] { width: clamp(62px, 14vw, 96px); min-height: 44px; height: 44px; margin: 0; padding: 0; border: 0; background: transparent; accent-color: var(--green); cursor: pointer; }
.audio-mute .sound-off, .audio-mute.muted .sound-on { display: none; }
.audio-mute.muted .sound-off { display: inline; }
voice-player.separate-volume audio::-webkit-media-controls-mute-button { display: none !important; }
voice-player.separate-volume audio::-webkit-media-controls-volume-slider { display: none !important; }
.delivery-result voice-player { margin-block: 9px; }
.current-result-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; margin: 14px 0 6px; }
.current-result-link label, .current-result-link small { grid-column: 1 / -1; }
.current-result-link small:empty { display: none; }
.current-result-link input { font-size: .92rem; }
.result-management { margin-block: 4px; }
.additional-answer { border-top: 1px solid var(--line); padding-top: 6px; }
@media (max-width: 500px) {
  .voice-actions button, .voice-picker { flex: 1 1 10rem; }
  .voice-picker span { width: 100%; }
  .current-result-link { grid-template-columns: minmax(0, 1fr); }
  .current-result-link button { justify-self: start; }
}

.practice-print-actions, .assignment-output, .practice-follow form, .practice-relations {
  display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1rem;
}
.practice-print-actions { margin: .5rem 0; }
.practice-print-actions a { font-size: .92rem; }
.assignment-output { padding-bottom: .65rem; }
.assignment-faces { display: flex; flex-wrap: wrap; gap: .25rem; }
.assignment-faces img { width: 2.35rem; height: 2.8rem; object-fit: contain; border-radius: .2rem; background: #f1f3f0; }
.practice-relations { margin: .5rem 0; }
.print-outcome, .outcome-actions, .outcome-copies {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .65rem;
}
.print-outcome { margin: .6rem 0; gap: .5rem 1rem; }
.outcome-copies { font-size: .9rem; }
.outcome-copies input[type="number"] { width: 4.1rem; text-align: center; }
.outcome-actions .textbtn { padding-inline: .5rem; }
.print-outcome :focus-visible, .partial-print :focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
[data-correct-identity][hidden] { display: none; }

.practice-state { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .8rem; margin: .45rem 0; }
.practice-state-label { color: #355347; font-size: .9rem; }
.practice-state-label.needs-attention { background: #fff2d5; color: #694611; padding: .2rem .55rem; border-radius: .35rem; }
.practice-state details { max-width: 100%; }

.registry-nav, .client-order header, .registry-pager { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1.15rem; }
.registry-table { width: 100%; border-spacing: 0; background: #fff; border: 1px solid #d5dfd7; border-radius: .6rem; }
.registry-table th, .registry-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid #e1e7e2; vertical-align: top; }
.registry-table th { font-size: .85rem; color: #40574b; }
.registry-table tr:last-child td { border-bottom: 0; }
.client-name, .client-order, .registry-table td { overflow-wrap: anywhere; }
.registry-table td span, .registry-table small, .registry-payments small, .registry-practices small, .registry-practices span { display: block; }
.registry-total small { display: block; color: var(--soft); }
.client-order h2 { margin: 0; }
.client-order header { justify-content: space-between; }
.registry-payments, .registry-practices { padding: 0; list-style: none; }
.registry-payments li, .registry-practices li { border-top: 1px solid #e1e7e2; padding: .55rem 0; }
.registry-payments li strong { margin-right: .65rem; }
@media (max-width: 650px) {
  .registry-table, .registry-table tbody, .registry-table tr, .registry-table td { display: block; }
  .registry-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .registry-table tr { padding: .7rem .9rem; border-bottom: 1px solid #d5dfd7; }
  .registry-table td { border: 0; padding: .23rem 0; }
  .registry-table td:not(:first-child)::before { content: attr(data-label); display: block; color: #506358; font-size: .8rem; }
  .registry-table tr:last-child { border: 0; }
}

/* The reception register, ledger and order card use the same margins as the order desk. */
.history-nav { margin-block: 20px 10px; }
.directory-list { margin-top: 14px; }
.directory-search { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 16px; }
.directory-search input[type="search"] { grid-column: auto; }
.directory-search a { grid-column: 1 / -1; justify-self: start; }
.directory-list .registry-table { border: 0; border-top: 1px solid var(--line); border-radius: 0; table-layout: fixed; }
.registry-table th:nth-child(1) { width: 23%; }
.registry-table th:nth-child(2) { width: 38%; }
.registry-table th:nth-child(3) { width: 18%; }
.registry-table .client-name { font-weight: 650; }
.directory-orders { list-style: none; margin: 0; padding: 0; }
.directory-orders > li + li { margin-top: .7rem; border-top: 1px solid var(--line); padding-top: .65rem; }
.directory-recipients { margin-block-start: .45rem; }
.directory-recipient-head, .directory-recipient-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(4.75rem, 29%);
  align-items: baseline;
  gap: .55rem;
}
.directory-recipient-head { color: var(--soft); font-size: .79rem; font-weight: 650; }
.directory-recipients dl { margin: .15rem 0 0; }
.directory-recipient-row { padding-block: .25rem; font-size: .9rem; line-height: 1.4; }
.directory-recipient-row + .directory-recipient-row { border-top: 1px solid #eaf0eb; }
.directory-recipient-row dt { display: grid; grid-template-columns: 1.3em 1fr; min-width: 0; }
.directory-practice-no, .directory-recipient-empty { color: var(--soft); }
.directory-recipient-row dd { min-width: 0; margin: 0; font-weight: 600; }
.directory-recipient-empty { font-weight: 400; }
.directory-recipient-row a { display: inline-block; padding-block: .15rem; }
@media (pointer: coarse) {
  .directory-recipient-row:has(a) { align-items: center; padding-block: 0; }
  .directory-recipient-row a { display: inline-flex; align-items: center; min-height: 44px; }
}
.recipient-select select[id] { scroll-margin-block-start: 2.5rem; }
.directory-service, .meeting-result, .meeting-day-summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .55rem;
}
.meeting-result { display: inline-flex; max-width: 100%; font-size: .86rem; line-height: 1.4; }
.meeting-result strong { padding: .15rem .5rem; border-radius: .4rem; background: #e6f0e9; color: var(--green); }
.meeting-result time, .meeting-unknown { color: var(--soft); font-variant-numeric: tabular-nums; }
.directory-consultation.meeting-result { display: flex; font-size: .93rem; gap: .2rem .55rem; }
.directory-consultation .directory-consultation-title { display: inline-flex; gap: .4rem; align-items: baseline; }
.directory-consultation-title i { color: var(--green); font-style: normal; font-weight: 700; }
.directory-consultation small, .directory-consultation time { color: var(--soft); font-size: .84rem; }
.meeting-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.meeting-day-summary strong { font-size: .95rem; }
.meeting-day-summary .textbtn { padding-inline: .4rem; font-size: .9rem; }
.meeting-day-field { max-width: 22rem; }
.meeting-day-field input[type="date"] { width: min(100%, 12rem); }
.meeting-day-field small { color: var(--soft); font-weight: 400; }
.meeting-day :focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
@media (max-width: 520px) {
  .order-heading > .meeting-result { grid-column: 1 / -1; justify-self: start; }
}
.directory-practices { margin: .25rem 0 0; padding-inline-start: 1.35rem; font-size: .9rem; }
.directory-practices li + li { margin-top: .15rem; }
.service-done { color: var(--green); font-weight: 650; }
.ledger-list .ledger-reserve { padding: 0 16px; margin: 0; border-top: 1px solid var(--line); }
.ledger-list .ledger-entry { margin: 0; padding: 20px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.ledger-entry h2 { font-size: 1.12rem; margin-bottom: .35rem; }
.ledger-entry p { margin: .35rem 0; }
.ledger-entry dl { margin-bottom: 0; }
.ledger-practices { margin-block: .7rem; }
.ledger-practices small { color: var(--soft); }
.registry-pager { padding: 12px 16px; }
.practice-plan-header, .practice-unit-header, .practice-task { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px 18px; }
.practice-plan-header { margin-bottom: 18px; }
.practice-plan-header h2, .practice-unit-header h3 { margin: 0; }
.practice-plan-header p { margin: .3rem 0 0; }
.practice-unit { margin-top: 12px; padding: 16px 18px 6px; border: 1px solid var(--line); border-radius: 12px; }
.practice-unit-header h3 { font-size: 1.12rem; line-height: 1.35; overflow-wrap: anywhere; }
.practice-number { margin: 0 0 .2rem; font-size: .86rem; font-weight: 650; color: var(--soft); }
.practice-unit-header .assignment-faces { align-items: center; justify-content: flex-end; max-width: 12rem; }
.practice-unit-header .assignment-faces img { width: 34px; height: 40px; }
.practice-editor { margin-block: 2px 6px; }
.practice-editor > summary, .practice-task summary { width: fit-content; min-height: 44px; padding-block: 10px; color: var(--green); font-size: .92rem; }
.practice-editor[open] > .stack { padding-bottom: 14px; }
.recipient-picker {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  align-items: start;
  gap: .45rem .8rem;
  max-width: 32rem;
}
.recipient-picker :is(input, select) { font-weight: 500; }
.recipient-select { position: relative; }
.recipient-select select { appearance: none; padding-right: 2rem; }
.recipient-select::after {
  content: "";
  position: absolute;
  right: .9rem;
  top: 50%;
  width: .45rem;
  height: .45rem;
  border: solid var(--soft);
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.recipient-picker :focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.recipient-note { margin: .25rem 0 0; color: var(--soft); font-size: .9rem; overflow-wrap: anywhere; }
.directory-practices .recipient-note { display: block; margin-top: 0; font-weight: 400; }
.recipient-captions { grid-column: 1 / -1; }
.recipient-captions summary { width: fit-content; padding: .5rem 0; min-height: 44px; color: var(--green); }
.recipient-captions p { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin: .2rem 0; }
.recipient-captions small { margin-right: .25rem; color: var(--soft); }
.recipient-captions button { font-size: .9rem; font-weight: 500; padding: .35rem .65rem; }
@media (max-width: 520px) {
  .recipient-picker { grid-template-columns: minmax(0, 1fr); }
}
.practice-state { display: grid; gap: 0; margin: 0; }
.practice-task { padding: 9px 0; border-top: 1px solid #e1e8e2; }
.task-caption { min-width: 0; display: grid; justify-items: start; gap: 2px; }
.task-caption strong { font-size: .94rem; }
.practice-state-label { font-size: .86rem; }
.practice-print-actions, .practice-task-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0; }
.practice-print-actions a, .practice-file, .practice-task-actions > a { display: inline-flex; align-items: center; min-height: 44px; font-size: .92rem; }
.practice-print-actions button, .practice-record { min-height: 44px; }
.practice-file .file-short { display: none; }
.practice-task details { min-width: 0; }
.practice-task details[open] { flex-basis: 100%; }
.practice-task details[open] form { align-items: end; }
@media (max-width: 680px) {
  .practice-plan-header, .practice-task { grid-template-columns: minmax(0,1fr); align-items: start; }
  .practice-plan-header { gap: 6px; }
  .practice-unit { padding: 12px 12px 4px; }
  .practice-task { gap: 3px; padding: 9px 0; }
  .practice-file .file-long { display: none; }
  .practice-file .file-short { display: inline; }
  .task-caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
  .practice-unit-header .assignment-faces { max-width: 70px; }
  .practice-unit-header .assignment-faces img { width: 28px; height: 34px; }
  .practice-print-actions, .practice-task-actions { gap: 4px 12px; }
  .practice-plan-header .practice-print-actions { justify-content: flex-start; }
}
@media (max-width: 650px) {
  .registry-table td.empty-date { display: none; }
  .registry-table td:first-child { padding-bottom: .45rem; }
  .registry-table td:not(:first-child)::before { font-weight: 600; }
  .directory-list .registry-table { table-layout: auto; }
  .ledger-list .ledger-entry { padding: 14px; }
}
@media (max-width: 410px) {
  .practice-plan-header .practice-print-actions { justify-items: start; }
  .practice-unit .practice-task-actions, .practice-unit .practice-print-actions { column-gap: 10px; }
  .practice-unit .practice-task-actions > button, .practice-unit .practice-print-actions button { padding-inline: 10px; font-size: .93rem; }
  .practice-unit .practice-task-actions > a, .practice-unit .practice-print-actions a { font-size: .86rem; }
}

.practice-progress { display: grid; grid-template-columns: repeat(auto-fit,minmax(9rem,1fr)); margin: .75rem 0 1rem; border-block: 1px solid var(--line); }
.practice-progress > div { padding: .6rem .5rem; }
.practice-progress dt { color: var(--soft); font-size: .86rem; }
.practice-progress dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.practice-plan-header .practice-print-actions { justify-content: flex-end; max-width: 24rem; }
.print-size { display: block; flex: 0 0 100%; color: var(--soft); text-align: right; }
.practice-composer { padding: .85rem 0; border-top: 1px solid var(--line); }
.composer-heading { display: flex; justify-content: space-between; gap: .75rem; align-items: center; }
.composer-heading h3 { margin: .25rem 0; }
.print-log, .program-results { margin: .65rem 0 0; border-top: 1px solid var(--line); }
.print-log > summary, .program-results > summary, .print-job > summary, .legacy-print > summary,
.partial-print > summary { min-height: 44px; padding: .65rem 0; }
.print-job, .legacy-print { border-top: 1px solid var(--line); }
.print-job > summary small { display: block; color: var(--soft); margin-left: 1rem; font-weight: 400; }
.partial-count { grid-template-columns: minmax(0,1fr) 4.5rem; align-items: center; gap: .75rem; }
.partial-print { margin-top: .6rem; border-top: 1px solid var(--line); }
.partial-print > summary { color: var(--green); }
.partial-print .stack { gap: .55rem; margin-block: .25rem; }
.partial-print .stack button { margin-top: .25rem; }
@media (max-width:680px) {
  .practice-progress { grid-template-columns: 1fr; gap: .15rem; padding: .35rem 0; }
  .practice-progress > div { display: flex; justify-content: space-between; align-items: baseline; padding: .15rem 0; gap: .75rem; }
  .practice-plan-header .practice-print-actions { justify-content: flex-start; }
  .print-size { text-align: left; }
}

.directory-cost-link { display: block; width: fit-content; margin-top: .3rem; padding-block: .2rem; font-size: .86rem; }
.order-cost { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin: 1rem 0 .4rem; padding: .8rem 1rem; background: var(--bg); border-radius: .55rem; }
.order-cost dt { color: var(--soft); font-size: .84rem; }
.order-cost dd { margin: .15rem 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.order-cost dd small { display: block; font-weight: 400; color: var(--soft); }
.payment-detail summary { width: fit-content; padding-block: .65rem; color: var(--green); }
.practice-price-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: .15rem 1rem; }
.practice-price { font-variant-numeric: tabular-nums; color: var(--ink); }
@media (max-width: 650px) {
  .order-cost { display: grid; gap: .35rem; }
  .order-cost > div { display: flex; align-items: baseline; justify-content: space-between; gap: .7rem; }
  .order-cost dd { text-align: right; }
  .payment-detail summary, .directory-cost-link { min-height: 44px; align-content: center; }
}

.office-health { display:flex; flex-wrap:wrap; gap:.3rem 1.25rem; margin:.75rem 0; color:var(--soft); font-size:.875rem; }
.office-health [data-printer]::before { content:""; display:inline-block; width:.5rem; height:.5rem; border-radius:50%; margin-right:.4rem; background:#777; }
.office-health [data-state="ready"]::before { background:#327348; }
.office-health [data-state="online"]::before { background:#996313; }
.office-health [data-state="offline"]::before { background:#a24940; }

.desk-order-training { box-shadow: inset 3px 0 #ad67bb; }
.desk-order-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .55rem;
}
.order-training-badge {
  display: inline-block;
  max-width: 100%;
  padding: .18rem .55rem;
  border: 1px solid #bc83ca;
  border-radius: .4rem;
  background: #f5dafa;
  color: #60216f;
  font-size: .88rem;
  line-height: 1.35;
  font-weight: 750;
  letter-spacing: normal;
  text-transform: none;
  vertical-align: middle;
}

.desk-transfer { display:flex; flex-wrap:wrap; align-items:center; gap:.3rem .8rem; padding:.25rem 0; }
.desk-transfer p { flex:1 1 17rem; overflow-wrap:anywhere; }
.desk-transfer button { min-height:44px; }

.desk-action { margin: 0 16px 14px; }
.desk-action button { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; }
.desk-action button[aria-pressed="true"] { color: var(--green); background: #e6f0e9; border-color: var(--green); }
.desk-action-check { display: inline-grid; place-items: center; width: 1.05rem; height: 1.05rem; border: 1px solid currentColor; border-radius: 4px; line-height: 1; }
.desk-empty button { margin-top: .65rem; }
