:root {
  color-scheme: light;
  --paper: #f7f8f4;
  --surface: #fffefa;
  --ink: #20332b;
  --muted: #59685f;
  --line: #d8ded3;
  --green: #304f3c;
  --green-hover: #243e2e;
  --tint: #eaf0e4;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font: 100%/1.5 var(--sans);
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { min-width: 280px; margin: 0; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.17; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.038em; }
h3 { font-size: 1rem; font-weight: 600; }
p + p { margin-top: .65rem; }
a { color: var(--green); text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
input, textarea, select { width: 100%; min-width: 0; background: #fff; border: 1px solid #bdc9bc; border-radius: .5rem; padding: .7rem .85rem; }
input::placeholder, textarea::placeholder { color: #728077; opacity: 1; }
textarea { resize: vertical; }
select { appearance: none; padding-right: 2.5rem; background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23455949' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E") no-repeat right .7rem center / 1rem; }
button:disabled, input:disabled, textarea:disabled, select:disabled { cursor: not-allowed; opacity: .6; }
:focus-visible { outline: 3px solid #789a71; outline-offset: 3px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #779872; outline-offset: 1px; }
[hidden] { display: none !important; }
::selection { background: #d3e4cc; color: #213f2b; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 50; inset: .5rem auto auto .5rem; padding: .5rem 1rem; background: white; }
.ico { flex: none; width: 1.15rem; height: 1.15rem; display: inline-block; vertical-align: middle; }
.reverse { transform: rotate(180deg); }
.button, .icon-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  border: 1px solid transparent; border-radius: .52rem; min-height: 2.65rem;
  padding: .6rem 1rem; font: 600 .9rem/1.35 var(--sans); text-decoration: none;
  color: #fff; background: var(--green); transition: background .16s, border-color .16s, transform .12s;
}
.button:hover, .icon-button:hover { background: var(--green-hover); }
.button:active, .icon-button:active { transform: translateY(1px); }
.button.secondary, .button.quiet, .icon-button { color: var(--green); }
.button.secondary { background: var(--surface); border-color: var(--line); }
.button.quiet, .icon-button { background: transparent; }
.button.secondary:hover, .button.quiet:hover, .icon-button:hover { background: var(--tint); border-color: #c4d1c0; }
.icon-button { min-width: 2.5rem; width: 2.5rem; min-height: 2.5rem; height: 2.5rem; padding: .45rem; }
.topbar { height: 4.6rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.bar-inner { height: 100%; width: min(100% - 4.5rem, 94rem); margin: auto; display: flex; align-items: center; gap: 1.15rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--green); text-decoration: none; white-space: nowrap; font: 1.55rem/1 var(--serif); letter-spacing: -.055em; }
.brand em { font-weight: 400; }
.brand-mark { width: 2.1rem; height: 2.25rem; }
.brand-divider { width: 1px; height: 1.5rem; background: var(--line); }
.product-name { font-size: .9rem; font-weight: 550; color: var(--muted); }
.bar-actions { margin-left: auto; display: flex; align-items: center; gap: .4rem; }
.portal-label { display: inline-flex; align-items: center; gap: .55rem; font-size: .9rem; color: var(--muted); }
.flash-wrap { width: min(calc(100% - 3rem), 72rem); margin: 1rem auto; }
.flash, .error-box, #notice:not(:empty) { padding: .75rem 1rem; border: 1px solid #cbd8c7; border-radius: .45rem; background: #edf3e9; }
.error-box, .flash.error { background: #fcf0eb; border-color: #e7c9bb; color: #833f2d; }
.login-page { background: #f6f7f2; }
.login-page .bar-inner { width: min(100% - 5rem, 81rem); }
.login-layout {
  display: grid; grid-template-columns: 1fr 1.05fr; width: min(calc(100% - 6rem), 72rem);
  min-height: clamp(32.5rem, 68vh, 41rem); margin: clamp(2rem, 5.5vh, 4rem) auto;
  background: var(--surface); border: 1px solid #d6ddcf; border-radius: .95rem; overflow: hidden;
  box-shadow: 0 16px 48px -34px rgba(30, 52, 35, .28);
}
.print-panel { position: relative; min-height: 100%; overflow: hidden; background: #bdcdb9; isolation: isolate; color: #fffdf0; }
.print-art, .print-panel::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.print-art { object-fit: cover; object-position: 50% 43%; }
.print-panel::after { content: ""; background: linear-gradient(to top, rgba(20,46,32,.93) 0%, rgba(28,54,39,.78) 15%, rgba(41,66,47,.3) 33%, transparent 52%); }
.print-caption { position: absolute; z-index: 1; left: 8%; bottom: 6%; right: 6%; }
.print-line { display: block; width: 2.8rem; height: 1px; margin-bottom: 1rem; background: #daead2; }
.print-caption h1 { color: #fffdf2; font-size: clamp(3rem, 5.4vw, 4.85rem); line-height: .98; }
.print-caption p { margin-top: .95rem; color: #f3f7e9; line-height: 1.45; font-size: 1rem; }
.login-area { display: flex; align-items: center; justify-content: center; padding: 3rem clamp(2rem, 4vw, 4.6rem); }
.login-content { width: 100%; max-width: 23rem; }
.login-symbol { display: grid; place-items: center; width: 2.85rem; height: 2.85rem; margin-bottom: 1.1rem; border: 1px solid #d6e0d1; border-radius: .85rem; background: #eff3eb; color: var(--green); }
.login-symbol .ico { width: 1.26rem; height: 1.26rem; }
.login-content h2 { font-size: clamp(2.05rem, 3.2vw, 3.05rem); line-height: 1.1; }
.intro { margin-top: .75rem; color: var(--muted); max-width: 22rem; line-height: 1.55; }
.login-form { margin-top: 1.65rem; }
.login-form label, .field label, .review-form label { font-size: .9rem; font-weight: 600; }
.login-form label { display: block; margin: 1.05rem 0 .42rem; }
.input-wrap { position: relative; }
.input-icon { position: absolute; top: 50%; left: .9rem; color: #6c7b6e; transform: translateY(-50%); pointer-events: none; }
.input-wrap input { padding-left: 2.67rem; }
.login-form input { min-height: 3.05rem; }
.login-form #password { padding-right: 3rem; }
.password-toggle { position: absolute; inset: 50% .25rem auto auto; transform: translateY(-50%); color: #617063; }
.password-toggle:active { transform: translateY(-50%); }
.login-submit { width: 100%; min-height: 3.05rem; margin-top: 1.55rem; font-size: 1rem; }
.page-shell { width: min(calc(100% - 4rem), 68rem); margin: 2.5rem auto 4.5rem; }
.wide-shell { max-width: 82rem; width: min(calc(100% - 4rem), 82rem); }
.library { width: min(calc(100% - 3rem), 56rem); margin: 2rem auto 3rem; }
.library h1 { font-size: clamp(2.2rem, 4vw, 3.3rem); margin: 1rem 0; }
.library h2 { margin: 1.4rem 0 .65rem; }
.library form { max-width: 48rem; padding: .75rem 0; }
.library label { display: block; margin-bottom: .7rem; font-size: .9rem; font-weight: 600; }
.library input, .library select { margin-top: .3rem; }
.library button:not(.button) { border: 1px solid var(--line); border-radius: .5rem; padding: .6rem 1rem; min-height: 2.65rem; color: var(--green); background: var(--surface); }
.eyebrow { margin: 0; font-size: .76rem; line-height: 1.3; text-transform: uppercase; font-weight: 650; letter-spacing: .095em; color: #55705b; }
.page-heading, .section-heading, .shift-heading, .shift-tools, .action-row, .composer-foot, .chat-person { display: flex; align-items: center; gap: 1rem; }
.page-heading, .section-heading, .shift-heading, .composer-foot { justify-content: space-between; }
.page-heading { margin: .55rem 0 1.8rem; }
.page-heading h1 { font-size: clamp(2.3rem, 4vw, 3.5rem); }
.page-heading p { margin-top: .5rem; }
.muted, small, .meta, .msg-time { color: var(--muted); }
.status, .pill, .badge { display: inline-flex; align-items: center; border-radius: 2rem; background: #e8eee4; color: #3c5944; font: 600 .79rem/1.35 var(--sans); padding: .32rem .68rem; }
.status-paused, .status-review { background: #f2ead9; color: #6a522a; }
.status-live, .online { color: #355f3a; }
.status-new { background: #e9ede8; color: #536457; }
.current-shift { border: 1px solid var(--line); overflow: hidden; border-radius: .8rem; display: grid; grid-template-columns: minmax(0, 1fr) 27%; background: var(--surface); }
.shift-body { padding: clamp(1.35rem, 3.3vw, 2.6rem); }
.shift-body .section-heading { margin-bottom: 1.3rem; }
.shift-body h2 { font-size: clamp(1.95rem, 3.6vw, 2.9rem); }
.shift-body h2 span, .shift-heading h1 span { color: #687c69; }
.shift-body > p { margin-top: .45rem; }
.shift-art { background: #bdcdb9 url("login-art.svg") no-repeat 52% 53% / cover; border-left: 1px solid var(--line); }
.progress-caption { margin-top: 1.6rem; display: flex; justify-content: space-between; font-size: .9rem; }
progress { display: block; width: 100%; height: .38rem; margin: .55rem 0 1.45rem; overflow: hidden; border: 0; border-radius: 1rem; color: var(--green); background: #e2e8df; accent-color: var(--green); }
progress::-webkit-progress-bar { background: #e2e8df; }
progress::-webkit-progress-value { background: var(--green); border-radius: 1rem; }
progress::-moz-progress-bar { background: var(--green); }
.instructions, .list-section, .report-box { margin-top: 2rem; }
.instructions h2, .list-section h2, .report-box h2 { font-size: 1.85rem; }
.instructions ol { padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; list-style: none; counter-reset: steps; }
.instructions li { counter-increment: steps; padding-top: .9rem; border-top: 1px solid var(--line); }
.instructions li::before { content: counter(steps) "."; margin-right: .4rem; font-weight: 650; color: #4b674f; }
.instructions p { font-size: .92rem; margin-top: .35rem; color: var(--muted); }
.section-heading { margin-bottom: .9rem; }
.history-row { background: var(--surface); border-block-start: 1px solid var(--line); }
.history-row:last-child { border-block-end: 1px solid var(--line); }
.history-row summary { display: flex; align-items: center; gap: .95rem; padding: .85rem 1rem; list-style: none; }
.history-row summary::-webkit-details-marker { display: none; }
.history-row summary::after { content: ""; border: solid #56705a; border-width: 0 1.5px 1.5px 0; width: .5rem; height: .5rem; transform: rotate(45deg); flex: none; margin: 0 .25rem .2rem 0; }
.history-row[open] summary::after { transform: rotate(225deg); margin-bottom: -.2rem; }
.history-row summary > :first-child { flex: 1; }
.history-row summary:hover { background: #eff3ec; }
.history-row summary small, table small, .plain-list small { display: block; font-size: .8rem; margin-top: .2rem; }
.history-body { border-top: 1px solid var(--line); padding: 1rem 1.25rem 1.35rem; }
.history-body h3 { margin: 1.2rem 0 .55rem; }
.history-body h3:first-child { margin-top: 0; }
.history-body ul { padding-left: 1.3rem; }
.blank-state { border: 1px solid var(--line); border-radius: .7rem; background: var(--surface); padding: 2.5rem; }
.blank-state p { color: var(--muted); margin-top: .55rem; }
.blank-state > .ico { margin-bottom: .65rem; width: 1.5rem; height: 1.5rem; color: #5e785d; }
.report-box { border: 1px solid var(--line); border-radius: .7rem; padding: 1.5rem; background: var(--surface); }
.report-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(11.3rem,1fr)); gap: 1.1rem 1.4rem; }
.report-metrics > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding-top: .75rem; border-top: 1px solid var(--line); }
.report-metrics dt { color: var(--muted); font-size: .86rem; }
.report-metrics dd { font: 1.65rem/1.2 var(--serif); }
.report-advice { margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.report-advice ul { padding-left: 1.05rem; margin-top: .5rem; }
.action-row { flex-wrap: wrap; gap: .45rem; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: .6rem; background: var(--surface); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { font-size: .82rem; color: var(--muted); background: #edf1e9; }
th, td { padding: .8rem .9rem; border-bottom: 1px solid var(--line); }
td { font-size: .9rem; }
tbody tr:last-child td { border-bottom: 0; }
td progress { min-width: 4.5rem; margin-bottom: 0; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; margin: 0 0 1.25rem; font-size: .9rem; }
.back-link:hover { text-decoration: underline; }
.transcript, .plain-list { padding: 0; list-style: none; }
.transcript { max-height: 28rem; overflow: auto; }
.transcript li, .plain-list li { border-bottom: 1px solid var(--line); padding: .65rem .2rem; }
.transcript li > div { display: flex; align-items: baseline; gap: .6rem; font-size: .86rem; }
.transcript p { white-space: pre-wrap; overflow-wrap: anywhere; }
.transcript time, .log-crm, .log-hint { color: var(--muted); }
.review-form { margin-top: 1rem; padding: 1rem; border-radius: .5rem; background: #f0f4ed; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; align-items: end; }
.review-form h3, .review-form .full { grid-column: 1/-1; }
.review-form input, .review-form textarea, .review-form select { display: block; margin-top: .3rem; font-weight: 400; }
.review-form button { justify-self: start; }
.work-layout { width: min(calc(100% - 3rem), 97rem); margin: 1.25rem auto 1rem; }
.shift-heading { margin-bottom: 1rem; }
.shift-heading h1 { font-size: clamp(1.6rem, 2.7vw, 2.4rem); margin-top: .2rem; }
.shift-tools { gap: .85rem; }
#progress { font-size: .88rem; font-weight: 600; color: var(--muted); }
#notice:not(:empty) { margin: .7rem 0; }
#workspace { display: grid; grid-template-columns: minmax(12rem,.85fr) minmax(18rem,1.6fr) minmax(17rem,.98fr); min-height: 29rem; height: calc(100dvh - 13rem); max-height: 68rem; border: 1px solid var(--line); border-radius: .78rem; overflow: hidden; background: var(--surface); }
#workspace.crm-closed { grid-template-columns: minmax(12rem,.8fr) minmax(18rem,2.3fr); }
#workspace.crm-closed #crm { display: none; }
.dialog-panel, .chat-panel, .crm-panel { min-width: 0; min-height: 0; }
.dialog-panel { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.dialog-tools { padding: 1rem; border-bottom: 1px solid var(--line); }
.dialog-tools h2, .conversation-top h2, .crm-panel h2 { font: 600 1.05rem/1.35 var(--sans); letter-spacing: -.012em; }
.dialog-tools .input-wrap { margin: .7rem 0 .45rem; }
.dialog-tools input, .dialog-tools select, .crm-panel input, .crm-panel select, .crm-panel textarea { min-height: 2.45rem; font-size: .9rem; }
.dialog-tools select { color: var(--muted); }
#dialogs { overflow: auto; min-height: 0; }
.dialog-row { display: flex; width: 100%; align-items: center; text-align: left; gap: .65rem; border: none; border-bottom: 1px solid #e6eae2; background: transparent; padding: .85rem .8rem; color: var(--ink); }
.dialog-row:hover { background: #f0f4eb; }
.dialog-row.selected, .dialog-row[aria-current=true] { background: #e7eee2; box-shadow: inset 3px 0 #436849; }
.dialog-copy { min-width: 0; flex: 1; }
.dialog-copy strong, .dialog-copy small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dialog-copy strong, .chat-person strong { font-size: .95rem; }
.dialog-copy small, .meta, .msg-time { font-size: .79rem; }
.avatar { flex: none; width: 2.45rem; height: 2.45rem; display: inline-grid; place-items: center; border-radius: 50%; font: 600 .88rem/1 var(--sans); color: #344c3a; background: #dce8d7; object-fit: cover; }
.badge { padding: .16rem .4rem; min-width: 1.35rem; justify-content: center; font-size: .74rem; }
.chat-panel { display: flex; flex-direction: column; background: #f4f6ef; }
.conversation-top { display: flex; align-items: center; flex: none; gap: .5rem; min-height: 3.95rem; padding: .6rem .9rem; border-bottom: 1px solid var(--line); background: var(--surface); }
#chat-header { flex: 1; min-width: 0; }
.chat-person { gap: .65rem; }
.chat-person small { display: block; }
.chat-scroll { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.older { min-height: 1.8rem; padding: .2rem .55rem; align-self: center; font-size: .82rem; margin: .35rem auto 0; }
#messages { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: .58rem; padding: 1rem; }
.bubble { flex: none; max-width: 84%; padding: .62rem .85rem; border: 1px solid #dbe1d5; border-radius: .8rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; }
.bubble.in { align-self: flex-start; background: #fffefa; border-bottom-left-radius: .2rem; }
.bubble.out { align-self: flex-end; background: #e0ebd9; border-color: #d2dfca; border-bottom-right-radius: .2rem; }
.bubble.system { align-self: center; max-width: 94%; background: #f3eddb; color: #62502d; border-color: #e6dbc1; font-size: .86rem; }
.msg-time { display: block; text-align: right; margin-top: .12rem; }
.typing { font-size: .84rem; color: var(--muted); }
.chat-footer { background: var(--surface); border-top: 1px solid var(--line); padding: .7rem .8rem .4rem; }
#composer { display: flex; position: relative; align-items: flex-end; gap: .5rem; }
#message { max-height: 9rem; resize: vertical; min-height: 2.75rem; padding: .62rem 3rem .62rem .7rem; line-height: 1.35; }
.send-button { position: absolute; right: .3rem; bottom: .3rem; width: 2.2rem; min-width: 2.2rem; height: 2.2rem; min-height: 2.2rem; background: var(--green); color: #fff; }
.send-button:hover { color: #fff; background: var(--green-hover); }
.composer-foot { gap: .4rem; margin-top: .2rem; }
.composer-foot small { font-size: .74rem; }
#btn-finish { min-height: 2rem; padding: .3rem .4rem; font-size: .83rem; }
.crm-panel { overflow: auto; border-left: 1px solid var(--line); padding: 1rem; }
.crm-panel h2 { margin: 0 0 .7rem; }
.crm-panel h3 { margin: .2rem 0 .55rem; }
.crm-section { padding: .85rem 0; border-top: 1px solid var(--line); }
.crm-section:first-child { padding-top: 0; border-top: 0; }
.crm-panel p, .crm-panel label { font-size: .9rem; }
.crm-panel form { display: grid; gap: .55rem; }
.field { display: grid; gap: .28rem; }
.booking { border: 1px solid var(--line); border-radius: .45rem; padding: .65rem; margin-bottom: .5rem; }
.slots { display: flex; flex-wrap: wrap; gap: .35rem; margin: .45rem 0; }
.slot { border: 1px solid var(--line); border-radius: .35rem; background: #f4f7f0; padding: .35rem .55rem; font-size: .84rem; }
.slot:hover, .slot[aria-pressed=true], .slot.selected { background: #dce9d6; border-color: #93aa8d; }
.empty { padding: 1.3rem .8rem; color: var(--muted); font-size: .9rem; }
#toast:not(:empty) { position: fixed; z-index: 8; bottom: 1rem; left: 50%; transform: translateX(-50%); max-width: min(92vw, 36rem); padding: .75rem 1.15rem; border-radius: .55rem; background: #283f31; color: white; box-shadow: 0 4px 18px #243e3030; }
.mobile-only { display: none; }
.confirm-dialog { max-width: min(90vw, 28rem); padding: 1.65rem; border: 1px solid var(--line); border-radius: 1rem; color: var(--ink); background: var(--surface); }
.confirm-dialog::backdrop { background: #1c302e65; }
.confirm-dialog h2 { font-size: 1.35rem; margin-top: 0; }
.candidate-form, .library form { max-width: 44rem; }
.candidate-form label, .booking small, .slot-group small, .crm-section>small { display: block; }
.tone-1 { background: #e5dfea; } .tone-2 { background: #e9dfcd; } .tone-3 { background: #d8e5e9; }
.tone-4 { background: #eadbda; } .tone-5 { background: #e9e7c9; }
@media (min-width: 1500px) { .login-layout { margin-block: min(8vh, 5rem); } }
@media (max-width: 1050px) {
  .work-layout { width: calc(100% - 1.5rem); }
  #workspace { grid-template-columns: minmax(11rem,.7fr) minmax(15rem,1.35fr) minmax(15rem,.9fr); }
  .composer-foot small { display: none; }
  .composer-foot { justify-content: flex-end; }
}
@media (max-width: 790px) {
  .login-layout { width: calc(100% - 2.5rem); grid-template-columns: .85fr 1fr; }
  .login-area { padding: 2rem 1.6rem; }
  .bar-inner, .login-page .bar-inner { width: calc(100% - 2.5rem); }
  .page-shell, .wide-shell { width: calc(100% - 2.5rem); }
  .action-row { gap: .3rem; }
  #workspace, #workspace.crm-closed { position: relative; grid-template-columns: minmax(11rem,.8fr) minmax(16rem,1.7fr); }
  #crm { display: none; }
  #workspace.show-crm #crm { display: block; position: absolute; z-index: 4; top: 3.95rem; right: 0; bottom: 0; width: min(24rem,67%); border: 1px solid var(--line); border-right: 0; background: var(--surface); box-shadow: -12px 8px 28px -23px #142d19; }
}
@media (max-width: 620px) {
  .topbar { height: 3.9rem; }
  .bar-inner, .login-page .bar-inner { width: calc(100% - 2rem); gap: .65rem; }
  .brand { font-size: 1.3rem; gap: .32rem; }
  .brand-mark { width: 1.75rem; }
  .portal-label, .product-name { font-size: .8rem; }
  .nav-user span, .brand-divider, .product-name { display: none; }
  .nav-user { padding-inline: .65rem; }
  .login-layout { grid-template-columns: 1fr; width: min(calc(100% - 1.5rem), 28rem); min-height: auto; margin: 1rem auto; }
  .print-panel { min-height: 10.5rem; }
  .print-art { object-position: 50% 34%; }
  .print-panel::after { background: linear-gradient(95deg, rgba(23,50,33,.92), rgba(28,55,36,.65) 35%, transparent 76%); }
  .print-caption { left: 1.5rem; bottom: 1.2rem; }
  .print-line { width: 2rem; margin-bottom: .55rem; }
  .print-caption h1 { font-size: 2.8rem; }
  .print-caption p { margin-top: .45rem; font-size: .88rem; }
  .login-area { padding: 1.65rem 1.3rem 1.8rem; }
  .login-symbol { display: none; }
  .intro { font-size: .94rem; }
  .login-form { margin-top: 1.2rem; }
  .page-shell, .wide-shell { width: calc(100% - 2rem); margin-top: 1.5rem; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; gap: .65rem; }
  .page-heading h1 { font-size: 2.1rem; }
  .current-shift { grid-template-columns: 1fr; }
  .shift-art { display: none; }
  .instructions ol { grid-template-columns: 1fr; gap: .7rem; }
  .report-box, .blank-state { padding: 1rem; }
  .section-heading { flex-wrap: wrap; gap: .45rem; }
  .report-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .history-row summary { padding: .65rem .5rem; gap: .45rem; }
  .history-row .pill, .history-row .status { max-width: 42%; }
  .review-form { grid-template-columns: 1fr; }
  .work-layout { width: 100%; margin: .7rem 0 0; }
  .shift-heading { margin: 0 .75rem .6rem; gap: .3rem; }
  .shift-heading .eyebrow { display: none; }
  .shift-heading h1 { font-size: 1.4rem; }
  .shift-tools { gap: .25rem; flex-wrap: wrap; justify-content: flex-end; }
  .shift-tools button { padding: .45rem .55rem; font-size: .78rem; min-height: 2.1rem; }
  #progress { font-size: .77rem; }
  #workspace, #workspace.crm-closed { display: flex; min-height: 23rem; height: calc(100dvh - 7.6rem); border-radius: 0; border-inline: none; }
  .dialog-panel, .chat-panel { width: 100%; border-right: 0; }
  .chat-panel { display: none; }
  #workspace.show-chat .chat-panel { display: flex; }
  #workspace.show-chat .dialog-panel { display: none; }
  #workspace.show-crm #crm { width: 100%; }
  .mobile-only { display: inline-flex; }
  .bubble { max-width: 91%; }
  #notice:not(:empty) { margin: .45rem; }
}
@media (max-width: 350px) { .portal-label { font-size: .72rem; gap: .25rem; } .login-area { padding: 1.2rem 1rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; } }
