:root {
  color-scheme: light;
  --brand-950: #17384d;
  --brand-900: #244d68;
  --brand-800: #345f7b;
  --brand-700: #427591;
  --brand-100: #e8f0f4;
  --ink: #13212b;
  --muted: #65747f;
  --surface: #ffffff;
  --canvas: #f2f5f7;
  --line: #dce4e9;
  --green: #14835f;
  --green-soft: #e7f6ef;
  --amber: #a86400;
  --amber-soft: #fff2dc;
  --red: #c73632;
  --red-soft: #ffebea;
  --blue: #1969a5;
  --blue-soft: #e7f2fb;
  --shadow: 0 10px 32px rgba(23, 56, 77, .11);
  --modal-viewport-height: 100dvh;
  --modal-viewport-top: 0px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { overscroll-behavior-y: none; margin: 0; min-height: 100%; background: var(--canvas); color: var(--ink); }
body { min-width: 320px; -webkit-font-smoothing: antialiased; }
body.modal-open { position: fixed; right: 0; left: 0; width: 100%; overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.app-shell {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--canvas);
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.loading-screen, .error-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 32px;
  text-align: center;
  color: var(--muted);
}

.loading-screen {
  position: fixed;
  inset: 0;
  min-height: 100dvh;
  padding: max(32px, env(safe-area-inset-top)) max(32px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(32px, env(safe-area-inset-left));
  background: linear-gradient(112deg, #143348 0%, #244d68 62%, #345f7b 100%);
  color: #fff;
}

.loading-logo {
  display: block;
  width: min(230px, 72vw);
  height: auto;
}

.loading-vpn-note {
  max-width: 320px;
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .1);
  color: #eef5fa;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.error-mark {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 22px;
  color: #fff;
  background: var(--brand-800);
  font-weight: 900;
  font-size: 23px;
  box-shadow: var(--shadow);
}

.topbar {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(18px + env(safe-area-inset-top)) 18px 17px;
  color: #fff;
  background: linear-gradient(112deg, #143348 0%, #244d68 62%, #345f7b 100%);
  border-bottom: 1px solid rgba(144, 187, 211, .28);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 6px 22px rgba(20, 51, 72, .13);
}
.topbar::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -91px;
  right: -147px;
  width: 360px;
  height: 360px;
  background: url('/assets/energostroy-mark-white.png?v=header-corporate-20260916') center / contain no-repeat;
  opacity: .07;
  pointer-events: none;
}

.brand-row, .page-title-row, .section-head, .request-top, .person-row, .dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand { min-width: 0; }
.brand-logo { display: block; width: 100%; height: auto; }
.topbar-dashboard .brand { width: min(268px, 100%); min-width: 0; }
.topbar-dashboard .brand-logo { width: 100%; }
.topbar-dashboard .brand-sub {
  margin: 8px 0 0;
  color: #d0e0eb;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.45;
}

.role-switch {
  flex: 0 0 88px;
  width: 88px;
  min-height: 36px;
  padding: 0 7px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  color: #fff;
  background: rgba(255,255,255,.09);
  appearance: auto;
  font-size: 10px;
  font-weight: 500;
}
.role-switch option { color: var(--ink); background: #fff; }
.topbar-dashboard .hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(218, 235, 246, .2);
}
.header-identity { min-width: 0; }
.topbar-dashboard .eyebrow {
  margin: 0;
  color: #bad0df;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.topbar-dashboard .hero-meta {
  margin: 5px 0 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}
.topbar-dashboard .work-date {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 12px;
  border-left: 1px solid rgba(218, 235, 246, .2);
  text-align: right;
  white-space: nowrap;
}
.header-calendar-date { color: #fff; font-size: 11px; line-height: 1.4; font-weight: 650; font-variant-numeric: tabular-nums; }
.header-weekday { color: #bad0df; font-size: 11px; line-height: 1.4; text-transform: capitalize; }
@media (max-width: 360px) {
  .topbar { padding-inline: 15px; padding-top: calc(16px + env(safe-area-inset-top)); padding-bottom: 15px; }
  .topbar-dashboard .brand { width: min(248px, 100%); }
  .topbar-dashboard .brand-sub { font-size: 10px; }
  .topbar-dashboard .hero { gap: 10px; margin-top: 12px; padding-top: 11px; }
  .topbar-dashboard .hero-meta { font-size: 13px; }
  .topbar-dashboard .eyebrow { font-size: 8.5px; letter-spacing: .035em; }
  .topbar-dashboard .work-date { padding-left: 10px; }
  .header-calendar-date, .header-weekday { font-size: 10px; }
}

.content { padding: 18px 14px 8px; }
.action-row { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 17px; }
.primary-action, .danger-action, .secondary-action, .close-button, .nav-button, .request-card {
  border: 0;
  cursor: pointer;
}
.primary-action, .danger-action, .secondary-action {
  min-height: 54px;
  padding: 0 18px;
  border-radius: 17px;
  font-weight: 800;
  font-size: 15px;
}
.primary-action { color: #fff; background: var(--brand-800); box-shadow: 0 8px 20px rgba(52,95,123,.22); }
.danger-action { color: #fff; background: var(--red); box-shadow: 0 8px 20px rgba(199,54,50,.2); }
.secondary-action { color: var(--brand-900); background: var(--brand-100); }
.primary-action:disabled, .danger-action:disabled, .secondary-action:disabled {
  opacity: .68;
  cursor: wait;
  box-shadow: none;
}
.primary-action.is-loading::after, .danger-action.is-loading::after, .secondary-action.is-loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 9px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -2px;
  animation: button-spin .7s linear infinite;
}

.section { margin-bottom: 24px; }
.section-head { margin: 0 3px 11px; align-items: end; }
.section-head h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.section-head span { color: var(--muted); font-size: 12px; }
.information-section .section-head h2 { display: flex; align-items: center; gap: 10px; }
.information-section .section-head h2::before { content: ''; flex: 0 0 4px; height: 21px; border-radius: 8px; background: linear-gradient(180deg, var(--brand-700), var(--brand-950)); }
.request-list, .person-list { display: grid; gap: 10px; }

.request-card {
  width: 100%;
  padding: 16px;
  text-align: left;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 5px 18px rgba(23,56,77,.055);
  color: var(--ink);
}
.request-card:active { transform: scale(.99); }
.information-card:focus-visible { outline: 3px solid rgba(66,117,145,.28); outline-offset: 2px; }
.information-heading { display: grid; gap: 2px; min-width: 0; }
.information-heading-label, .information-heading-reference { display: block; overflow-wrap: anywhere; }
.information-heading-reference { font-variant-numeric: tabular-nums; }
.information-card .information-card-reference { color: var(--brand-900); font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.35; }
.information-card h3 { margin-top: 9px; }
.information-card-location { color: var(--muted); font-size: 12px; }
.information-card-date { flex: 0 0 auto; }
.information-card-date b { margin-left: 4px; color: var(--brand-700); font-size: 19px; line-height: 1; }
.information-sheet { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
.information-dialog-head { gap: 12px; align-items: center; }
.information-dialog-head h2 { max-width: 34ch; line-height: 1.2; letter-spacing: -.025em; }
.information-dialog-head .information-heading-label { color: var(--ink); font-size: clamp(19px, 5vw, 23px); font-weight: 800; }
.information-dialog-head .information-heading-reference { color: var(--muted); font-size: 14px; font-weight: 600; }
.information-dialog-head .close-button { flex: 0 0 44px; }
.information-detail { padding: 21px 18px 18px; }
.information-object { margin: 0 0 17px; }
.information-detail .information-object h3 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.22; letter-spacing: -.025em; overflow-wrap: anywhere; }
.information-object-address { margin: 5px 0 0; color: var(--brand-800); font-size: 15px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.information-detail-text { margin: 0 0 19px; padding: 17px 18px; border: 1px solid rgba(66,117,145,.2); border-left: 4px solid var(--brand-700); border-radius: 16px; background: linear-gradient(145deg, #eaf3f7, #f6fafb); box-shadow: 0 7px 22px rgba(23,56,77,.055); color: var(--ink); font-size: 17px; font-weight: 600; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.information-author-grid { grid-template-columns: 1fr; margin-top: 0; }
.information-author-grid .identity-card { min-height: 68px; }
.information-date-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin-top: 10px; }
.information-date-grid .detail-box { min-height: 0; }
.information-media-section, .information-chat-section { margin-top: 22px; padding-top: 19px; border-top: 1px solid var(--line); }
.information-media-section h3, .information-chat-section h3 { margin: 0 0 12px; font-size: 17px; }
.information-media-section .media-grid { margin-top: 0; }
.information-chat-empty { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.information-chat-section .request-feed { border: 0; border-radius: 16px; }
.information-chat-section .feed-composer { margin-top: 12px; }
.request-number { font-size: 14px; font-weight: 900; }
.status-chip, .mini-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
}
.status-chip.in_progress { color: var(--green); background: var(--green-soft); }
.status-chip.transferred { color: var(--amber); background: var(--amber-soft); }
.status-chip.done { color: var(--green); background: var(--green-soft); }
.status-chip.failed, .status-chip.cancelled, .status-chip.out_of_scope { color: var(--red); background: var(--red-soft); }
.status-chip.emergency { color: var(--red); background: var(--red-soft); margin-right: 5px; }
.request-card h3 { margin: 13px 0 8px; font-size: 16px; line-height: 1.32; }
.request-transfer-notice {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 14px 0 4px;
  padding: 13px 14px;
  border: 1px solid rgba(183,103,0,.14);
  border-radius: 17px;
  background: linear-gradient(135deg, #fff7e7, #ffefd2);
  color: #9b5700;
}
.request-transfer-icon {
  position: relative;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  padding-top: 7px;
  border: 1px solid rgba(183,103,0,.16);
  background: rgba(255,255,255,.82);
  box-shadow: 0 3px 10px rgba(155,87,0,.08);
  color: #8d4e00;
  font-size: 15px;
  font-weight: 900;
}
.request-transfer-icon::before {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  left: -1px;
  height: 10px;
  border-radius: 13px 13px 5px 5px;
  background: #d88a1a;
}
.request-transfer-copy { min-width: 0; }
.request-transfer-copy small { display: block; margin-bottom: 2px; color: #a9660c; font-size: 11px; font-weight: 800; }
.request-transfer-copy strong { display: block; color: #8d4e00; font-size: 15px; line-height: 1.3; }
.request-transfer-copy p { margin: 7px 0 0; color: #7b6242; font-size: 12px; line-height: 1.4; }
.request-transfer-copy p span { font-weight: 800; }
.request-transfer-notice.compact {
  gap: 8px;
  margin: 10px 0;
  padding: 9px 11px;
  border-radius: 14px;
}
.request-transfer-notice.compact .request-transfer-icon { flex-basis: 30px; width: 30px; height: 30px; padding-top: 6px; border-radius: 10px; font-size: 12px; }
.request-transfer-notice.compact .request-transfer-icon::before { height: 7px; border-radius: 10px 10px 4px 4px; }
.request-transfer-notice.compact .request-transfer-copy small { margin: 0; font-size: 10px; }
.request-transfer-notice.compact .request-transfer-copy strong { font-size: 13px; }
.request-card-preview-strip { display: flex; gap: 7px; margin: 11px 0; pointer-events: none; }
.request-card-preview {
  position: relative;
  flex: 0 0 72px;
  display: grid;
  place-items: center;
  width: 72px;
  height: 56px;
  overflow: hidden;
  border-radius: 12px;
  color: var(--brand-900);
  background: linear-gradient(145deg, var(--brand-100), #d8e6ed);
  font-size: 20px;
  font-weight: 900;
}
.request-card-preview.has-preview .media-tile-preview { opacity: 1; }
.request-card-preview.has-preview[data-media-type="video"]::after {
  content: '▶';
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  padding-left: 2px;
  border-radius: 50%;
  color: #fff;
  background: rgba(8,23,32,.68);
  box-shadow: 0 2px 8px rgba(8,23,32,.24);
  font-size: 12px;
}
.request-card-preview.has-preview > span { visibility: hidden; }
.request-card-preview-more {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.request-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.request-meta strong { color: #42525e; }
.request-arrow { color: #8da0ad; font-weight: 900; }

.empty-state { padding: 28px 18px; text-align: center; border-radius: 20px; background: var(--surface); color: var(--muted); }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--ink); }
.empty-state-positive { color: #41725d; background: var(--green-soft); }
.empty-state-positive strong { color: var(--green); }
.dashboard-empty-state { display: flex; align-items: center; gap: 13px; padding: 14px 16px; text-align: left; }
.dashboard-empty-state .empty-check { flex: 0 0 38px; width: 38px; height: 38px; margin: 0; font-size: 21px; }
.dashboard-empty-copy { min-width: 0; }
.dashboard-empty-copy strong { margin: 0 0 2px; font-size: 14px; }
.dashboard-empty-copy > span { display: block; font-size: 12px; line-height: 1.35; }
.empty-check {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 24px;
  font-weight: 900;
}

.person-row {
  width: 100%;
  align-items: flex-start;
  padding: 15px;
  border: 0;
  border-radius: 19px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.person-row:active { transform: scale(.99); }
.avatar {
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: var(--brand-100);
  color: var(--brand-800);
  font-weight: 900;
}
.avatar-photo { object-fit: cover; background: var(--brand-100); }
.person-copy { flex: 1; min-width: 0; }
.person-copy h3 { margin: 1px 0 4px; font-size: 15px; line-height: 1.2; }
.person-copy p { margin: 0; color: var(--muted); font-size: 12px; }
.person-status { margin-top: 9px; }
.return-date { margin-top: 7px !important; color: var(--brand-800) !important; font-weight: 750; }
.person-arrow { align-self: center; color: #8da0ad; font-size: 25px; font-weight: 900; line-height: 1; }
.person-detail-card { display: grid; justify-items: center; gap: 18px; }
.person-detail-photo {
  display: block;
  width: min(100%, 360px);
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  object-fit: cover;
  object-position: center top;
  background: var(--brand-100);
  box-shadow: 0 10px 28px rgba(23,56,77,.14);
}
.person-detail-initials { display: grid; place-items: center; color: var(--brand-800); font-size: 60px; font-weight: 900; }
.person-detail-copy { width: 100%; text-align: center; }
.person-detail-copy h3 { margin: 0 0 7px; font-size: 22px; line-height: 1.2; }
.person-detail-title { margin: 0 0 13px; color: var(--muted); font-size: 15px; line-height: 1.35; }
.person-detail-return { margin: 12px 0 0; color: var(--brand-800); font-size: 13px; font-weight: 800; }
.mini-chip.active { color: var(--green); background: var(--green-soft); }
.mini-chip.vacation, .mini-chip.absent { color: var(--amber); background: var(--amber-soft); }
.mini-chip.unconfirmed, .mini-chip.inactive { color: var(--red); background: var(--red-soft); }

.filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 14px;
}
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field > label, .field-label { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .055em; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--surface);
  outline: none;
}
.filters .field input,
.filters .field select {
  height: 44px;
  min-height: 44px;
  border-radius: 10px;
  padding-block: 0;
}
.filters .field input[type="date"] { line-height: normal; }
.field textarea { min-height: 106px; padding: 13px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-700); box-shadow: 0 0 0 3px rgba(66,117,145,.13); }
.field .create-media-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 5px 18px rgba(23,56,77,.045);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.create-media-picker:active { transform: scale(.995); }
.create-media-picker:focus-within { border-color: var(--brand-700); box-shadow: 0 0 0 3px rgba(66,117,145,.12); }
.create-media-picker.has-files { border-color: rgba(20,131,95,.32); background: var(--green-soft); }
.create-media-icon {
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--brand-900);
  background: var(--brand-100);
  font-size: 21px;
}
.create-media-copy { flex: 1 1 auto; min-width: 0; }
.create-media-copy strong { display: block; color: var(--ink); font-size: 15px; line-height: 1.25; }
.create-media-copy small { display: block; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 12px; font-weight: 650; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.create-media-picker.has-files .create-media-icon,
.create-media-picker.has-files .create-media-copy small { color: var(--green); }
.create-media-chevron { flex: 0 0 auto; color: #91a5b1; font-size: 28px; font-weight: 400; line-height: 1; }
.create-media-picker input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }

.bottom-nav {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  width: min(100%, 760px);
  min-height: calc(74px + env(safe-area-inset-bottom));
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
}
.nav-button { min-height: 55px; border-radius: 16px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 800; }
.nav-button .nav-icon { display: block; margin-bottom: 4px; font-size: 20px; }
.nav-button .nav-icon svg { display: block; width: 22px; height: 22px; margin: 0 auto; fill: currentColor; }
.nav-button .nav-icon svg[fill="none"] { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-button.active { color: var(--brand-900); background: var(--brand-100); }

.modal-layer {
  position: fixed;
  z-index: 1000;
  top: var(--modal-viewport-top);
  right: 0;
  bottom: auto;
  left: 0;
  height: var(--modal-viewport-height);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding-top: max(20px, env(safe-area-inset-top));
  background: rgba(19, 33, 43, .18);
  overflow: hidden;
  overscroll-behavior: none;
  isolation: isolate;
}
.modal-layer.open { display: flex; }
.modal-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-height: calc(var(--modal-viewport-height) - max(20px, env(safe-area-inset-top)));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  overflow-anchor: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 17px 17px calc(24px + env(safe-area-inset-bottom));
  border-radius: 27px 27px 0 0;
  background: var(--canvas);
  box-shadow: 0 -18px 50px rgba(0,0,0,.2);
}
.dialog-head { position: sticky; top: -17px; z-index: 2; margin: -1px -1px 14px; padding: 12px 1px; background: var(--canvas); }
.dialog-head h2 { margin: 0; font-size: 21px; }
.close-button { width: 44px; height: 44px; border-radius: 14px; background: var(--surface); color: var(--ink); font-size: 22px; }
.card-swipe-sheet .dialog-head { touch-action: none; }
.card-swipe-sheet.is-card-entering { animation: card-sheet-enter .2s cubic-bezier(.22,1,.36,1) both; }
@keyframes card-sheet-enter {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.card-swipe-sheet.is-card-dragging, .card-swipe-sheet.is-card-settling, .card-swipe-sheet.is-card-dismissing { transform: translate3d(0, var(--card-dismiss-y, 0px), 0); }
.card-swipe-sheet.is-card-settling, .card-swipe-sheet.is-card-dismissing { transition: transform .24s cubic-bezier(.25,.1,.25,1); }
.card-swipe-sheet.is-card-dismissing { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .card-swipe-sheet.is-card-entering { animation: none; } .card-swipe-sheet.is-card-settling, .card-swipe-sheet.is-card-dismissing { transition: none; } }
.detail-card { padding: 18px; border-radius: 22px; background: var(--surface); }
.detail-card h3 { margin: 15px 0 7px; font-size: 20px; line-height: 1.25; }
.request-lifecycle { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); container-type: inline-size; margin: 19px 0 17px; padding: 0 3px; }
.lifecycle-step { position: relative; padding-top: 17px; color: var(--muted); text-align: center; }
.lifecycle-step::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 1px; background: var(--line); }
.lifecycle-step:first-child::before { left: 50%; }
.lifecycle-step:last-child::before { right: 50%; }
.lifecycle-dot { position: absolute; z-index: 1; top: 0; left: 50%; width: 11px; height: 11px; border: 2px solid var(--surface); border-radius: 50%; background: var(--line); box-shadow: 0 0 0 1px var(--line); transform: translateX(-50%); }
.lifecycle-step.is-reached { color: var(--ink); }
.lifecycle-step.is-reached .lifecycle-dot { background: var(--brand-700); box-shadow: 0 0 0 1px var(--brand-700); }
.lifecycle-step strong { display: block; font-size: 12.75px; font-size: clamp(12.75px, calc(6px + 2.8cqi), 16px); line-height: 1.2; white-space: nowrap; }
.lifecycle-step time { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-size: clamp(11px, calc(5px + 2.65cqi), 14px); line-height: 1.25; white-space: nowrap; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.detail-box { min-height: 76px; padding: 12px; border-radius: 15px; background: var(--canvas); }
.detail-box span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.detail-box strong { font-size: 13px; line-height: 1.25; }
.executor-box { display: flex; align-items: center; gap: 10px; }
.executor-box > div { min-width: 0; }
.executor-photo { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 13px; object-fit: cover; background: var(--brand-100); }
.executor-photo.customer-company-logo { box-sizing: border-box; padding: 5px; object-fit: contain; background: #fff; }
.executor-box small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.25; }
.request-identity-grid { grid-template-columns: 1fr; }
.identity-card { min-height: 70px; width: 100%; }
.identity-card.full { grid-column: 1 / -1; }
.identity-card strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.identity-initials { display: grid; place-items: center; color: var(--brand-800); font-size: 13px; font-weight: 900; }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.media-grid-compact { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); }
.media-tile { position: relative; isolation: isolate; aspect-ratio: 1; display: grid; place-content: center; justify-items: center; overflow: hidden; border: 0; border-radius: 15px; background: linear-gradient(145deg, var(--brand-100), #d8e6ed); color: var(--brand-900); font-size: 11px; font-weight: 800; cursor: pointer; }
.media-tile-icon { font-size: 25px; }
.media-tile-label { font-size: 11px; }
.media-tile-preview { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .16s ease; }
.media-tile.has-preview .media-tile-preview { opacity: 1; }
.media-tile.has-preview[data-media-type="video"]::after { content: '▶'; position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%); box-sizing: border-box; display: grid; place-items: center; width: 42px; height: 42px; padding-left: 3px; border-radius: 50%; color: #fff; background: rgba(8,23,32,.72); box-shadow: 0 3px 12px rgba(8,23,32,.28); font-size: 18px; }
.media-tile.has-preview .media-tile-icon, .media-tile.has-preview .media-tile-label { visibility: hidden; }
.media-tile.loading { opacity: .55; cursor: wait; }
.media-viewer-wrap { display: grid; place-items: center; min-height: 180px; margin-bottom: 14px; border-radius: 18px; overflow: hidden; background: #081720; }
.media-viewer { display: block; width: 100%; max-height: 72vh; object-fit: contain; background: #081720; }
.image-zoom-viewer { margin-bottom: 14px; overscroll-behavior: none; }
.image-zoom-stage { position: relative; height: clamp(280px, 62dvh, 620px); overflow: hidden; overscroll-behavior: none; border-radius: 18px; background: var(--brand-950); touch-action: none; user-select: none; -webkit-user-select: none; }
.image-zoom-stage::before { content: ""; position: absolute; z-index: 0; top: 50%; left: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; border: 3px solid rgba(255,255,255,.22); border-top-color: #fff; border-radius: 50%; animation: button-spin .8s linear infinite; }
.image-zoom-stage.is-ready::before, .image-zoom-stage.is-error::before { display: none; }
.image-zoom-stage.is-error::after { content: "Не удалось загрузить фото"; position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; color: rgba(255,255,255,.82); text-align: center; }
.zoomable-image { position: relative; z-index: 1; width: 100%; height: 100%; max-height: none; object-fit: contain; opacity: 0; transform-origin: center; will-change: transform; transition: opacity .12s ease; }
.image-zoom-stage.is-ready .zoomable-image { opacity: 1; }
.media-gallery { position: fixed; z-index: 1100; inset: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: max(18px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); color: #f4f5f7; color-scheme: dark; background: rgba(0,0,0,var(--gallery-backdrop-opacity,1)); overscroll-behavior: none; touch-action: none; transition: background-color .24s ease-out; }
.media-gallery.is-dismissing { touch-action: none; }
.gallery-header, .gallery-footer { opacity: var(--gallery-controls-opacity,1); transition: opacity .24s ease-out; }
.media-gallery.is-dismiss-dragging, .media-gallery.is-dismiss-dragging > .gallery-header, .media-gallery.is-dismiss-dragging > .gallery-body, .media-gallery.is-dismiss-dragging > .gallery-footer { transition: none; }
.gallery-header { display: flex; align-items: center; justify-content: flex-end; gap: 20px; width: min(100%, 1180px); flex: 0 0 auto; min-height: 46px; }
.gallery-close, .gallery-nav { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid rgba(255,255,255,.11); color: #f4f5f7; background: rgba(255,255,255,.045); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .18s ease, border-color .18s ease, opacity .18s ease; touch-action: manipulation; }
.gallery-close { width: 44px; height: 44px; border-radius: 50%; }
.gallery-close svg { width: 20px; height: 20px; }
.gallery-body { position: relative; width: min(100%, 1180px); flex: 1; min-height: 0; display: flex; transform: translate3d(0,var(--gallery-dismiss-y,0px),0) scale(var(--gallery-dismiss-scale,1)); transition: transform .24s cubic-bezier(.25,.1,.25,1); will-change: transform; }
.gallery-stage { position: relative; width: 100%; height: 100%; min-height: 0; overflow: hidden; background: transparent; touch-action: none; isolation: isolate; }
.gallery-track { display: flex; width: 100%; height: 100%; will-change: transform; transition: transform .5s cubic-bezier(.25,.1,.25,1); }
.gallery-track.is-dragging { transition: none; }
.gallery-slide { position: relative; flex: 0 0 100%; width: 100%; min-width: 0; height: 100%; display: grid; place-items: center; overflow: hidden; }
.gallery-slide .image-zoom-stage { width: 100%; height: 100%; border-radius: 0; background: transparent; }
.gallery-slide .image-zoom-stage::before, .gallery-slide .image-zoom-stage.is-error::after { display: none; }
.gallery-slide .media-viewer { width: 100%; height: 100%; max-height: 100%; object-fit: contain; background: transparent; }
.gallery-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 1; pointer-events: none; }
.gallery-slide .zoomable-image { transition: opacity .32s ease-out; }
.image-zoom-stage.is-zoom-animating .zoomable-image { transition: opacity .32s ease-out, transform .36s cubic-bezier(.25,.1,.25,1); }
.gallery-slide .image-zoom-stage.is-ready .gallery-preview { animation: gallery-preview-out .22s ease .34s forwards; }
@keyframes gallery-preview-out { to { opacity: 0; } }
.gallery-placeholder-icon { color: rgba(232,240,244,.4); }
.gallery-placeholder-icon svg { width: 44px; height: 44px; stroke-width: 1; }
.gallery-slide .image-zoom-stage .gallery-placeholder-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.gallery-load-indicator { position: absolute; z-index: 2; left: 50%; bottom: 20px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 99px; background: #161616; color: #e8f0f4; font-size: 11px; white-space: nowrap; pointer-events: none; opacity: 0; animation: gallery-loading-in .22s ease .35s forwards; }
.gallery-load-indicator i { width: 11px; height: 11px; border: 1px solid #555; border-top-color: #eef3fa; border-radius: 50%; animation: button-spin .8s linear infinite; }
.gallery-slide .has-preview .gallery-load-indicator, .gallery-slide .is-ready .gallery-load-indicator, .gallery-slide .is-error .gallery-load-indicator { display: none; }
.gallery-slide .has-preview .gallery-placeholder-icon, .gallery-slide .is-ready .gallery-placeholder-icon { display: none; }
@keyframes gallery-loading-in { to { opacity: 1; } }
.gallery-image-retry { display: none; position: absolute; z-index: 3; bottom: 20px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); min-height: 44px; padding: 10px 14px; border: 1px solid #52617a; border-radius: 14px; color: #fff; background: #17202e; font-size: 12px; cursor: pointer; }
.gallery-slide .is-error .gallery-image-retry { display: block; }
.gallery-video-badge { z-index: 1; display: grid; place-items: center; width: 58px; height: 58px; padding-left: 3px; border: 1px solid #ffffff38; border-radius: 50%; color: #fff; background: #111111b3; font-size: 20px; pointer-events: none; }
.gallery-slide.has-video { display: flex; flex-direction: column; gap: 0; }
.gallery-video-frame { position: relative; display: grid; place-items: center; flex: 1; min-height: 0; width: 100%; overflow: hidden; background: #000; }
.gallery-video-frame video { pointer-events: none; }
.gallery-video-gesture { position: absolute; z-index: 1; inset: 0; touch-action: none; }
.gallery-video-controls { position: absolute; z-index: 2; inset: 12px; display: grid; place-content: center; justify-items: center; gap: 14px; pointer-events: none; }
.gallery-video-controls[hidden], .gallery-video-retry[hidden], .gallery-video-actions button[hidden] { display: none; }
.gallery-video-play { display: grid; place-items: center; width: 74px; height: 74px; padding: 0 0 0 3px; border: 1px solid #ffffff50; border-radius: 50%; background: #ffffffee; color: #090909; box-shadow: 0 4px 32px #0006; cursor: pointer; pointer-events: auto; touch-action: manipulation; }
.gallery-video-play svg { width: 30px; height: 30px; }
.gallery-video-retry { min-height: 44px; padding: 11px 18px; border: 1px solid #ffffff38; border-radius: 14px; background: #222; color: #fff; font: inherit; font-size: 13px; cursor: pointer; pointer-events: auto; }
.gallery-video-status { max-width: 280px; padding: 8px 12px; border-radius: 12px; background: #000b; color: #e5e5e5; text-align: center; font-size: 12px; line-height: 1.4; }
.gallery-video-status:empty { display: none; }
.gallery-video-toolbar { flex: 0 0 auto; width: 100%; padding: 15px 18px 8px; border-top: 1px solid #ffffff0d; background: #000; color: #fff; user-select: none; }
.gallery-video-times { display: flex; justify-content: space-between; gap: 12px; color: #a5a5a5; font-size: 12px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.gallery-video-times [data-gallery-video-elapsed] { color: #f4f4f4; }
.gallery-video-timeline { position: relative; display: flex; align-items: center; height: 36px; }
.gallery-video-track { position: absolute; left: 0; right: 0; height: 3px; overflow: hidden; border-radius: 99px; background: #ffffff30; pointer-events: none; }
.gallery-video-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: #fff; }
.gallery-video-timeline input { position: relative; z-index: 1; display: block; width: 100%; height: 36px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; outline: none; cursor: pointer; touch-action: none; -webkit-appearance: none; appearance: none; }
.gallery-video-timeline input::-webkit-slider-runnable-track { height: 3px; border: 0; background: transparent; }
.gallery-video-timeline input::-webkit-slider-thumb { width: 14px; height: 14px; margin-top: -5.5px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px #ffffff0c; -webkit-appearance: none; }
.gallery-video-timeline input::-moz-range-track { height: 3px; border: 0; background: transparent; }
.gallery-video-timeline input::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
.gallery-video-timeline input:disabled { opacity: .3; cursor: default; }
.gallery-video-timeline input:focus-visible { outline: 1px solid #fff8; outline-offset: 3px; border-radius: 6px; }
.gallery-video-actions { display: flex; align-items: center; gap: 9px; }
.gallery-video-actions button { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 8px; border: 0; border-radius: 50%; background: transparent; color: #c7c7c7; cursor: pointer; touch-action: manipulation; }
.gallery-video-actions button svg { width: 22px; height: 22px; }
.gallery-video-actions button.gallery-video-toggle { flex-basis: 44px; width: 44px; height: 44px; margin-right: 4px; background: #f5f5f5; color: #090909; }
.gallery-video-actions button:disabled { opacity: .25; cursor: default; }
.gallery-video-actions button:focus-visible, .gallery-video-play:focus-visible, .gallery-video-retry:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.gallery-video-spacer { flex: 1; }
.gallery-slide.has-video:fullscreen { width: 100vw; height: 100dvh; padding-bottom: env(safe-area-inset-bottom); background: #000; }
.gallery-slide .document-open { z-index: 1; max-width: calc(100% - 40px); padding: 16px; border: 1px solid #425168; border-radius: 16px; overflow-wrap: anywhere; text-align: center; background: #171717; color: #ededed; }
.gallery-error { z-index: 2; display: grid; justify-items: center; gap: 12px; max-width: 380px; margin: 18px; padding: 24px; border: 1px solid #ffffff15; border-radius: 22px; color: #a9b3c3; background: #111111ed; text-align: center; font-size: 13px; line-height: 1.5; }
.gallery-error strong { color: #f4f5f7; font-size: 16px; font-weight: 550; }
.gallery-error p { margin: 0; }
.gallery-error .secondary-action { min-height: 44px; padding: 10px 18px; background: #292929; color: #ededed; }
.gallery-footer { display: flex; align-items: center; justify-content: center; width: min(100%, 1180px); flex: 0 0 auto; }
.gallery-navigation { display: flex; align-items: center; gap: 5px; flex-shrink: 0; padding: 6px; border: 1px solid #ffffff26; border-radius: 99px; background: #101010; box-shadow: inset 0 1px 0 #ffffff08; }
.gallery-nav { width: 48px; height: 48px; border: none; border-radius: 50%; background: transparent; }
.gallery-nav svg { width: 24px; height: 24px; }
.gallery-nav[hidden] { display: none; }
.gallery-nav:disabled { opacity: .22; cursor: default; }
.gallery-navigation [data-gallery-counter] { min-width: 72px; padding: 0 8px; color: #e4eaf3; font-size: 14px; font-weight: 550; font-variant-numeric: tabular-nums; text-align: center; white-space: nowrap; }
.gallery-close:focus-visible, .gallery-nav:focus-visible { outline: 2px solid #b7d6ff; outline-offset: 3px; }
@media (hover: hover) { .gallery-close:hover, .gallery-nav:not(:disabled):hover { background: #ffffff12; border-color: #ffffff28; } }
@media (max-width: 600px) { .media-gallery { gap: 10px; padding-left: max(4px, env(safe-area-inset-left)); padding-right: max(4px, env(safe-area-inset-right)); padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: max(12px, env(safe-area-inset-bottom)); } .gallery-header { gap: 12px; padding-inline: 8px; } .gallery-footer { padding-inline: 8px; } }
@media (max-height: 460px) { .media-gallery { gap: 8px; padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: max(8px, env(safe-area-inset-bottom)); } .gallery-header { min-height: 44px; } .gallery-navigation { padding: 3px; } }
@media (prefers-reduced-motion: reduce) { .media-gallery, .gallery-body, .gallery-header, .gallery-footer, .gallery-track, .gallery-slide .zoomable-image, .image-zoom-stage.is-zoom-animating .zoomable-image, .gallery-close, .gallery-nav { transition: none; } .gallery-slide .image-zoom-stage.is-ready .gallery-preview { animation: none; opacity: 0; } .gallery-load-indicator { animation: none; opacity: 1; } .gallery-load-indicator i { animation: none; } }

.secondary-action { min-height: 50px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); color: var(--brand-900); font-weight: 800; }
.viewer-error { margin: 8px 0 18px; color: var(--red); line-height: 1.45; }
.form-error { min-height: 20px; margin: 8px 0; color: var(--red); font-size: 12px; }
.detail-note { margin-top: 10px; }
.request-result-section { margin-top: 22px; }
.detail-card .request-result-section h3 { margin: 0 0 9px; }
.request-result-card {
  padding: 14px;
  border: 1px solid rgba(66,117,145,.22);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(224,238,246,.62), rgba(247,250,252,.95));
}
.request-result-card.has-result { border-color: rgba(18,139,97,.25); background: rgba(231,247,240,.58); }
.request-result-card .media-grid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.request-result-empty { display: flex; align-items: center; gap: 12px; }
.request-result-empty > span { flex: 0 0 44px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--surface); font-size: 22px; }
.request-result-empty strong { display: block; color: var(--brand-950); font-size: 14px; }
.request-result-empty p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.request-result-media-action { margin-top: 12px; background: var(--surface); }
.completion-camera-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.request-actions { display: grid; gap: 9px; margin: 16px 0; }
.request-actions .needs-evidence { box-shadow: none; }
.cancel-request-form { display: grid; gap: 9px; padding-top: 6px; }
.cancel-request-form label { display: grid; gap: 7px; color: var(--muted); font-size: .88rem; font-weight: 700; }
.cancel-request-form textarea { width: 100%; min-height: 88px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; color: var(--brand-950); background: var(--surface); resize: vertical; }
.cancel-request-form textarea:focus { border-color: var(--brand-700); outline: 0; box-shadow: 0 0 0 3px rgba(66,117,145,.13); }
.cancel-confirm-hint { margin: 0; color: var(--red); font-size: .86rem; font-weight: 700; }
.cancel-request-form .danger-action.confirming { filter: brightness(.88); }
.transfer-request-form { display: grid; gap: 10px; margin: -6px 0 16px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--canvas); }
.transfer-request-form[hidden] { display: none; }
.transfer-request-form label { display: grid; gap: 7px; color: var(--muted); font-size: .88rem; font-weight: 700; }
.transfer-request-form input, .transfer-request-form textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 14px; color: var(--brand-950); background: var(--surface); font: inherit; }
.transfer-request-form textarea { min-height: 82px; resize: vertical; }
.transfer-request-form input:focus, .transfer-request-form textarea:focus { border-color: var(--brand-700); outline: 0; box-shadow: 0 0 0 3px rgba(66,117,145,.13); }
.upload-row { display: grid; gap: 8px; margin: 12px 0 18px; }
.document-open { text-decoration: none; }
.file-action { display: grid; place-items: center; cursor: pointer; }
.file-action input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-action.is-uploading { opacity: .72; cursor: wait; pointer-events: none; }
.file-action.is-success { border-color: rgba(18,139,97,.35); color: var(--green); background: var(--green-soft); }
.upload-feedback { min-height: 20px; margin: -2px 2px 2px; color: var(--muted); font-size: 12px; font-weight: 750; line-height: 1.4; }
.upload-feedback.loading { color: var(--brand-700); }
.upload-feedback.selected { color: var(--brand-900); }
.upload-feedback.success { color: var(--green); }
.upload-feedback.error { color: var(--red); }
.upload-progress[hidden] { display: none; }
.upload-progress {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 10px 0 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--canvas);
}
.upload-progress-ring {
  --progress-angle: 0deg;
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: conic-gradient(var(--brand-700) var(--progress-angle), var(--line) 0);
}
.upload-progress-ring::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--surface);
}
.upload-progress-ring span {
  position: relative;
  z-index: 1;
  color: var(--brand-900);
  font-size: 12px;
  font-weight: 900;
}
.upload-progress-copy { display: grid; gap: 4px; min-width: 0; }
.upload-progress-copy strong { color: var(--brand-950); font-size: 14px; line-height: 1.25; }
.upload-progress-copy span { color: var(--muted); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.upload-progress.success { border-color: rgba(18,139,97,.32); background: var(--green-soft); }
.upload-progress.success .upload-progress-ring { background: conic-gradient(var(--green) 360deg, var(--line) 0); }
.upload-progress.success .upload-progress-ring span,
.upload-progress.success .upload-progress-copy strong { color: var(--green); }
.upload-progress.error { border-color: rgba(194,54,54,.28); background: #fff7f7; }
.upload-progress.error .upload-progress-ring { background: conic-gradient(var(--red) 360deg, var(--line) 0); }
.upload-progress.error .upload-progress-ring span,
.upload-progress.error .upload-progress-copy strong { color: var(--red); }
.app-toast {
  position: fixed;
  z-index: 30;
  top: calc(14px + env(safe-area-inset-top));
  left: 50%;
  width: min(420px, calc(100% - 28px));
  padding: 14px 16px;
  border: 1px solid #cfe8dc;
  border-radius: 16px;
  color: #0b6547;
  background: #f2fff9;
  box-shadow: 0 12px 34px rgba(8,23,32,.22);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
  transform: translateX(-50%);
}
.app-toast.warning { border-color: #f0d79e; color: #795315; background: #fff9eb; }
.app-toast.error { border-color: #f0caca; color: var(--red); background: #fff7f7; }
.app-toast[hidden] { display: none; }
.request-feed {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--canvas);
}
.feed-entry { display: flex; flex-direction: column; align-items: flex-start; width: 100%; }
.feed-entry.is-group-start:not(:first-child) { margin-top: 8px; }
.feed-entry.is-own { align-items: flex-end; }
.feed-entry.is-other { align-items: flex-start; }
.feed-bubble {
  width: fit-content;
  max-width: 84%;
  padding: 9px 11px 7px;
  border-radius: 16px 16px 16px 5px;
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(23,56,77,.07);
}
.feed-entry.is-other .feed-bubble { margin-right: auto; }
.feed-entry.is-own .feed-bubble { margin-left: auto; border-radius: 16px 16px 5px 16px; background: var(--brand-100); }
.feed-author { display: block; color: var(--brand-800); font-size: 12px; line-height: 1.25; }
.feed-entry.is-own .feed-author { color: var(--brand-900); text-align: right; }
.feed-entry.is-other.participant-tone-0 .feed-author { color: #2d668d; }
.feed-entry.is-other.participant-tone-1 .feed-author { color: #7c4d99; }
.feed-entry.is-other.participant-tone-2 .feed-author { color: #a04f56; }
.feed-entry.is-other.participant-tone-3 .feed-author { color: #31745b; }
.feed-entry.is-other.participant-tone-4 .feed-author { color: #8a5d20; }
.feed-entry.is-other.participant-tone-5 .feed-author { color: #4d5fa6; }
.feed-bubble p { margin: 4px 0 0; font-size: 14px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.feed-bubble .media-grid { grid-template-columns: repeat(2, minmax(86px, 136px)); margin: 8px 0 2px; }
.feed-message-meta { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 5px; }
.feed-bubble time, .feed-edited { color: var(--muted); font-size: 10px; line-height: 1.2; }
.feed-edit-button { min-height: 26px; padding: 3px 7px; border-radius: 8px; color: var(--brand-800); background: transparent; font-size: 10px; font-weight: 800; }
/* The editor belongs to the chat column, including narrow MAX WebViews. */
.feed-entry { min-width: 0; }
.feed-entry .feed-bubble.is-editing {
  width: min(100%, 520px); max-width: 100%; min-width: 0;
  padding: 12px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--brand-100); box-shadow: none;
}
.message-edit-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: 100%; min-width: 0; margin: 0; scroll-margin-block: 16px; }
.message-edit-heading { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--brand-800); }
.message-edit-heading svg { flex: 0 0 16px; width: 16px; height: 16px; }
.message-edit-form label { min-width: 0; font-size: 12px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.message-edit-form textarea {
  display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 116px; max-height: 240px;
  margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); background: var(--surface); font-size: 16px; line-height: 1.5;
  resize: none; overflow-y: auto; outline: none; transition: border-color .15s, box-shadow .15s;
}
.message-edit-form textarea:focus { border-color: var(--brand-700); box-shadow: 0 0 0 3px rgba(66,117,145,.12); }
.message-edit-form textarea:read-only { color: var(--muted); }
.message-edit-form .form-error { min-height: 0; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--red-soft); font-size: 13px; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.message-edit-form .form-error:empty { display: none; }
.message-edit-actions { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.message-edit-actions button { flex: 1 1 7.75em; min-width: 0; max-width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 650; line-height: 1.4; }
.message-edit-actions .primary-action { background: var(--brand-900); box-shadow: 0 3px 8px rgba(23,56,77,.12); }
.message-edit-actions .secondary-action { color: var(--brand-900); background: transparent; border: 1px solid rgba(66,117,145,.24); }
.message-edit-actions button:disabled { cursor: default; }
.message-edit-actions .is-loading::after { content: none; }
.message-edit-actions button:focus-visible { outline: 2px solid var(--brand-700); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .message-edit-form textarea { transition: none; } }
.feed-composer { display: grid; gap: 7px; margin-top: 10px; }
.messenger-composer {
  min-width: 0; max-width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 3px 12px rgba(23,56,77,.07);
}
.messenger-attach,
.messenger-send {
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  font-size: 19px;
  line-height: 1;
}
.messenger-attach { color: var(--brand-800); background: var(--brand-100); }
.messenger-attach span { transform: translateY(-1px); }
.messenger-attach.is-uploading { position: relative; opacity: 1; }
.messenger-attach.is-uploading span { opacity: 0; }
.messenger-attach.is-uploading::after {
  content: '';
  position: absolute;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(44,93,122,.24);
  border-top-color: var(--brand-800);
  border-radius: 50%;
  animation: button-spin .8s linear infinite;
}
.messenger-attach.is-success { color: var(--green); background: var(--green-soft); }
.discussion-form { display: flex; align-items: flex-end; gap: 7px; flex: 1 1 auto; min-width: 0; margin: 0; }
.discussion-form textarea {
  min-width: 0;
  flex: 1 1 auto;
  width: 100%;
  height: 38px;
  min-height: 38px;
  max-height: 104px;
  padding: 9px 4px 8px;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 16px;
  line-height: 20px;
  resize: none;
  outline: none;
  overflow-y: auto;
}
.discussion-form textarea::placeholder { color: var(--muted); }
.messenger-send { color: #fff; background: var(--brand-800); font-size: 17px; }
.messenger-send span { transform: translate(1px, -1px); }
.messenger-send:disabled { opacity: .58; }
.messenger-send.is-loading { position: relative; color: transparent; font-size: 0; }
.messenger-send.is-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.38);
  border-top-color: #fff;
  border-radius: 50%;
  animation: button-spin .8s linear infinite;
}
.feed-composer > .form-error,
.feed-composer > .upload-feedback { margin: 0 8px; min-height: 0; }
.feed-composer > .form-error:empty,
.feed-composer > .upload-feedback:empty { display: none; }
.feed-composer .upload-progress { margin: 2px 0; }
.success-note { padding: 22px; border-radius: 18px; color: var(--green); background: var(--green-soft); font-weight: 800; }
.feedback-screen { display: grid; gap: 22px; padding-top: 20px; }
.direct-contacts-head { margin: 0 3px 14px; }
.direct-contacts-head h2 { margin: 0; font-size: 25px; letter-spacing: -.035em; }
.direct-contacts-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.direct-contacts-list { display: grid; gap: 10px; }
.direct-contact-link { display: flex; align-items: center; gap: 12px; min-height: 74px; padding: 14px 16px; border: 0; color: var(--ink); background: transparent; text-decoration: none; transition: background .15s ease; }
button.direct-contact-link { width: 100%; font: inherit; text-align: left; cursor: pointer; }
.direct-contact-link:active { background: var(--brand-100); }
.direct-contact-link:focus-visible, .feedback-attach:focus-within, .feedback-submit:focus-visible { outline: 3px solid var(--brand-700); outline-offset: 3px; }
.direct-contact-icon { flex: 0 0 40px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; color: var(--brand-800); background: var(--brand-100); }
.direct-contact-icon svg { width: 22px; height: 22px; }
.direct-contact-link svg, .feedback-compose-card svg { fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.direct-contact-copy { flex: 1 1 auto; min-width: 0; }
.direct-contact-copy small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; line-height: 1.3; }
.direct-contact-copy strong { display: block; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.direct-contact-arrow { flex: 0 0 19px; width: 19px; height: 19px; color: var(--muted); }
.direct-contact-phone { min-height: 96px; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; color: #fff; background: linear-gradient(115deg, #17384d, #345f7b); box-shadow: 0 6px 16px rgba(23,56,77,.13); }
.direct-contact-phone:active { background: #244d68; }
.direct-contact-phone .direct-contact-icon { color: #fff; background: rgba(255,255,255,.12); }
.direct-contact-phone .direct-contact-copy small { color: #d3e1e9; }
.direct-contact-phone .direct-contact-copy strong { color: #fff; font-size: clamp(18px, 5.5vw, 23px); font-weight: 750; letter-spacing: -.04em; white-space: nowrap; }
.direct-contact-phone .direct-contact-arrow { color: #d3e1e9; }
.direct-contact-secondary { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.direct-contact-secondary .direct-contact-link + .direct-contact-link { border-top: 1px solid var(--line); }
.direct-contact-secondary .direct-contact-link:focus-visible { outline-offset: -4px; border-radius: 16px; }
.supervisor-contact-form { margin: 0; }
.feedback-compose-card { display: grid; gap: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 5px 20px rgba(23,56,77,.035); }
.feedback-compose-intro h2 { margin: 0; font-size: 20px; font-weight: 750; line-height: 1.3; letter-spacing: -.035em; }
.feedback-compose-intro p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.feedback-message-block { display: grid; gap: 12px; }
.feedback-message-label { margin: 0; color: var(--ink); font-size: 13px; font-weight: 650; }
.feedback-message-input {
  width: 100%;
  min-height: 116px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: var(--canvas);
  font-size: 16px;
  line-height: 1.5;
  resize: vertical;
}
.feedback-message-input:focus { border-color: var(--brand-700); background: var(--surface); outline: 3px solid rgba(66,117,145,.12); }
.feedback-message-input::placeholder { color: var(--muted); }
.feedback-message-input:disabled { opacity: .7; }
.feedback-attach { position: relative; display: flex; align-items: center; gap: 11px; min-height: 48px; border-radius: 10px; color: var(--brand-900); font-size: 13px; font-weight: 600; cursor: pointer; }
.feedback-attach svg { flex: 0 0 22px; width: 22px; height: 22px; margin-left: 3px; }
.feedback-attach small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 400; }
.feedback-attach input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.feedback-attach.has-file { color: var(--green); }
.feedback-attachment-status { margin: -5px 0 0; padding: 9px 12px; border-radius: 10px; color: var(--green); background: var(--green-soft); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.feedback-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; margin: 2px 0 0; padding: 13px; border: 0; border-radius: 15px; color: #fff; background: var(--brand-900); font-size: 15px; font-weight: 700; cursor: pointer; }
.feedback-submit svg { width: 19px; height: 19px; }
.feedback-submit:active { background: var(--brand-950); }
.feedback-submit:disabled { opacity: .7; cursor: wait; }
.feedback-submit.is-loading svg { display: none; }
.feedback-submit.is-loading::after { content: ''; width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: feedback-spin .8s linear infinite; }
@keyframes feedback-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .feedback-submit.is-loading::after { animation: none; } }
.feedback-success-note { display: flex; align-items: center; gap: 9px; margin: 0; padding: 12px; border-radius: 13px; color: var(--green); background: var(--green-soft); font-size: 13px; font-weight: 600; line-height: 1.5; }
.feedback-success-note svg { flex: 0 0 22px; width: 22px; height: 22px; stroke-width: 2.4; }
.feedback-success-note[hidden], .feedback-attachment-status[hidden] { display: none; }
.feedback-message-block > .form-error { min-height: 0; margin: 0; }
.feedback-message-block > .form-error:empty { display: none; }
.supervisor-contact-form .upload-progress { margin: 0; }

.fallback-help { max-width: 420px; margin-top: 22px; font-size: 13px; line-height: 1.5; }
.create-gap { margin-top: 12px; }
.full-action { width: 100%; }
.muted-detail { color: var(--muted); }

.planned-round-section { margin-top: 2px; }
.current-requests-section { margin-bottom: 14px; }
.daily-summary { margin: 0 0 18px; padding: 13px 14px 11px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 5px 18px rgba(23,56,77,.04); }
.daily-summary-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.daily-summary-metrics > div { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; padding: 0 9px; border-left: 1px solid var(--line); }
.daily-summary-metrics > div:first-child { border-left: 0; }
.daily-summary-metrics strong { flex: 0 0 auto; color: var(--brand-900); font-size: 25px; line-height: 1; }
.daily-summary-metrics span { color: var(--muted); font-size: 10px; font-weight: 750; line-height: 1.25; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.dashboard-executor { padding-top: 10px; }
.dashboard-executor .action-row { margin-bottom: 11px; }
.dashboard-executor .danger-action { min-height: 46px; border-radius: 14px; font-size: 13px; box-shadow: 0 5px 14px rgba(199,54,50,.16); }
.dashboard-executor .current-requests-section { margin-bottom: 10px; }
.dashboard-executor .section-head { margin-bottom: 8px; }
.dashboard-executor .request-list { gap: 8px; }
.dashboard-executor .request-card { padding: 13px 14px; border-radius: 16px; }
.dashboard-executor .request-card h3 { margin: 8px 0 6px; }
.dashboard-executor .daily-summary { margin-bottom: 18px; }
.planned-round-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 92px;
  padding: 17px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(23,56,77,.025);
  text-align: left;
  cursor: pointer;
}
.round-archive-check { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; color: var(--amber); background: var(--amber-soft); }
.planned-round-card.done .round-archive-check { color: var(--green); background: var(--green-soft); }
.planned-round-card.has-remarks { border-color: #e9d9b9; }
.planned-round-card.has-remarks .round-archive-check { color: #a76a13; background: #fff2db; }
.round-archive-remarks { justify-self: start; padding: 4px 9px; border-radius: 7px; color: #946017; background: #fff3df; font-size: 11px; line-height: 1.35; font-weight: 600; }
.round-archive-check svg { width: 22px; height: 22px; stroke-width: 2.5; }
.round-archive-copy { display: grid; gap: 7px; flex: 1; min-width: 0; }
.round-archive-copy strong { color: var(--ink); font-size: 16px; line-height: 1.35; letter-spacing: -.02em; font-weight: 650; overflow-wrap: anywhere; }
.round-archive-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; color: var(--muted); font-size: 12px; line-height: 1.4; font-weight: 450; font-variant-numeric: tabular-nums; }
.round-archive-meta time { white-space: nowrap; }
.round-archive-time { color: #435d6e; }
.round-archive-dot { color: #a5b4be; }
.round-archive-pending { color: var(--amber); }
.round-archive-arrow { display: grid; flex: 0 0 16px; color: #8da2af; }
.round-archive-arrow svg { width: 16px; height: 16px; }
.planned-round-card:focus-visible { outline: 3px solid #9cbed3; outline-offset: 2px; }
.planned-round-card:active { background: #f6faf8; border-color: #b7d7c9; }
.planned-round-card.has-remarks:active { background: #fffbf3; border-color: #d8bc89; }
@media (max-width: 360px) {
  .planned-round-card { gap: 10px; padding: 15px 13px; }
  .round-archive-copy strong { font-size: 15px; }
  .round-archive-meta { font-size: 11px; column-gap: 5px; }
}
.planned-round-summary { display: grid; gap: 7px; padding: 14px; border-radius: 16px; background: var(--canvas); }
.planned-round-summary > span { color: var(--amber); font-weight: 850; }
.planned-round-summary > small { color: var(--muted); }
.planned-round-detail-grid > .full { grid-column: 1 / -1; }
.planned-round-comment { min-height: 0; padding: 15px; }
.planned-round-comment span { margin-bottom: 8px; font-size: 12px; }
.planned-round-comment strong { display: block; font-size: 15px; line-height: 1.55; font-weight: 700; white-space: pre-wrap; overflow-wrap: anywhere; }
.round-details-form { display: grid; gap: 10px; margin: 14px 0; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.round-remarks-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; border: 0; }
.round-remarks-choice legend { grid-column: 1 / -1; margin-bottom: 2px; color: var(--muted); font-size: 12px; font-weight: 800; }
.round-remarks-choice label { display: flex; align-items: center; gap: 7px; min-height: 46px; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--canvas); cursor: pointer; }
.round-remarks-choice input { margin: 0; accent-color: var(--brand-800); }
.round-remarks-choice span { font-size: 13px; font-weight: 800; }
.round-media-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; margin: 0 0 10px; }
.round-media-action { width: 100%; min-height: 52px; padding: 10px 12px; text-align: center; }
.round-media-entry { display: grid; gap: 6px; min-width: 0; }
.round-media-entry .media-tile { width: 100%; }
.round-media-delete { min-height: 36px; border: 1px solid #f0caca; border-radius: 11px; background: #fff7f7; color: var(--red); font-size: 12px; font-weight: 850; cursor: pointer; }
.round-media-delete.confirming { border-color: var(--red); background: var(--red); color: #fff; }
.round-media-delete:disabled { opacity: .55; cursor: wait; }

/* Planned round: the person who completed it, result, then compact evidence. */
.round-sheet { padding: 20px 16px calc(24px + env(safe-area-inset-bottom)); }
.round-dialog-head { margin-bottom: 18px; gap: 12px; }
.round-dialog-head h2 { font-size: 24px; letter-spacing: -.04em; }
.round-dialog-head .close-button { display: grid; place-items: center; width: 42px; height: 42px; min-height: 42px; border-radius: 50%; }
.round-dialog-head .close-button svg { width: 21px; height: 21px; }
.round-detail { display: grid; gap: 14px; padding: 0; }
.round-detail [hidden] { display: none !important; }
.round-hero { padding: 18px; border: 1px solid #dce5eb; border-radius: 22px; background: linear-gradient(125deg,#e8f0f5,#f5f8fa); }
.round-hero.is-done { border-color: #cde7dc; background: linear-gradient(125deg,#e7f4ed,#f5faf7); }
.round-hero-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; color: var(--muted); font-size: 12px; }
.round-status-pill { display: inline-flex; align-items: center; gap: 4px; padding: 6px 9px; border-radius: 20px; background: rgba(255,255,255,.85); color: var(--brand-900); font-size: 11px; font-weight: 650; }
.round-status-pill svg { width: 15px; height: 15px; }
.round-hero.is-done .round-status-pill { color: #14835f; }
.round-hero h3 { margin: 0; font-size: 21px; line-height: 1.3; letter-spacing: -.025em; }
.round-detail .field { gap: 7px; }
.round-detail .field label { color: var(--muted); font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.round-detail .field input, .round-detail .field textarea { width: 100%; min-height: 46px; padding: 12px 13px; border: 1px solid #d9e3e9; border-radius: 13px; background: var(--surface); font-size: 16px; line-height: 1.4; }
.round-detail .field textarea { min-height: 98px; }
.round-detail .field input:focus, .round-detail .field textarea:focus { border-color: #6b94ad; outline: 3px solid #e1edf4; }
.round-panel { margin: 0; padding: 18px; border: 1px solid #e0e7ec; border-radius: 22px; background: var(--surface); }
.round-panel > h3 { margin: 0 0 14px; font-size: 17px; letter-spacing: -.025em; }
.round-materials-empty { margin: 0; color: var(--muted); font-size: 13px; }
.round-materials .round-media-actions, .round-materials .round-media-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0; }
.round-materials .round-media-grid:not(:empty) + .round-media-actions { margin-top: 10px; }
.round-materials .round-media-entry { gap: 0; border: 1px solid #d2e8dd; border-radius: 16px; background: #f4faf7; overflow: hidden; }
.round-material-open, .round-materials .round-media-action { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; width: 100%; min-height: 82px; padding: 14px 12px; color: var(--ink); text-align: left; }
.round-material-open { border: 0; background: transparent; cursor: pointer; }
.round-materials .round-media-action { border: 1px dashed #b7ccd9; border-radius: 16px; background: #f6f9fb; }
.round-material-icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 13px; color: var(--brand-800); background: #e7f0f6; }
.round-material-icon svg { width: 23px; height: 23px; }
.round-material-copy { display: grid; gap: 5px; min-width: 0; flex: 1; }
.round-material-copy strong { font-size: 15px; line-height: 1.25; font-weight: 650; }
.round-material-copy small { display: flex; align-items: center; gap: 3px; font-size: 11px; line-height: 1.35; color: var(--muted); font-weight: 450; }
.round-material-copy small svg { width: 13px; height: 13px; }
.round-material-open .round-material-copy small { color: #16815e; }
.round-material-arrow, .round-material-add { flex: 0 0 20px; color: #7895a7; }
.round-material-arrow svg, .round-material-add svg { display: block; width: 20px; height: 20px; }
.round-material-preview { position: relative; display: grid; place-items: center; flex: 0 0 72px; width: 72px; height: 72px; overflow: hidden; border-radius: 14px; background: #e7f0f6; }
.round-material-preview .media-tile-preview { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.round-material-open.has-preview .media-tile-preview { opacity: 1; }
.round-material-open.has-preview .round-material-icon { visibility: hidden; }
.round-preview-play { position: absolute; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; padding-left: 2px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; color: white; background: rgba(13,35,48,.65); font-size: 11px; opacity: 0; }
.round-material-open.has-preview .round-preview-play { opacity: 1; }
.round-material-open:focus-visible, .round-media-action:focus-within { outline: 3px solid #afcbdc; outline-offset: 2px; }
.round-materials .round-media-delete { justify-self: end; min-height: 38px; padding: 5px 14px; border: 0; border-radius: 0; background: transparent; color: #7b8b85; font-size: 11px; font-weight: 500; }
.round-materials .round-media-delete.confirming { color: var(--red); background: #fff1f0; }
.round-detail .upload-feedback:empty, .round-detail .form-error:empty { display: none; }
.round-detail .upload-progress { margin-bottom: 0; border: 0; border-radius: 14px; background: #f0f5f8; }
.upload-progress.processing .upload-progress-ring { background: conic-gradient(var(--brand-700) 90deg, var(--line) 0); animation: round-saving 1.2s linear infinite; }
.upload-progress.processing .upload-progress-ring span { animation: round-saving 1.2s linear infinite reverse; }
@keyframes round-saving { to { transform: rotate(360deg); } }
.round-retry { width: 100%; min-height: 44px; padding: 10px; margin-top: 10px; border: 1px solid #b7ccd9; border-radius: 12px; color: var(--brand-900); background: #eef5f9; font-size: 14px; font-weight: 600; }
.round-retry[hidden] { display: none; }
.round-detail .round-remarks-choice { gap: 9px; }
.round-detail .round-remarks-choice legend { margin-bottom: 12px; color: var(--ink); font-size: 17px; font-weight: 650; letter-spacing: -.025em; }
.round-detail .round-remarks-choice label { position: relative; display: block; min-height: 72px; padding: 0; border: 0; background: transparent; }
.round-detail .round-remarks-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.round-detail .round-remarks-choice span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; height: 100%; min-height: 72px; padding: 12px 6px; border: 1px solid #dce5eb; border-radius: 14px; background: #f8fafb; color: var(--muted); font-size: 12px; font-weight: 600; }
.round-detail .round-remarks-choice span svg { width: 23px; height: 23px; }
.round-detail .round-remarks-choice input:checked + span { color: #147956; border-color: #82bda5; background: #e9f6ef; }
.round-detail .round-remarks-choice input[value="present"]:checked + span { color: #9a6512; border-color: #dec28f; background: #fff5e4; }
.round-detail .round-remarks-choice input:focus-visible + span { outline: 3px solid #afcbdc; outline-offset: 2px; }
.round-detail .planned-round-detail-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0; }
.round-result { display: flex; align-items: flex-start; gap: 12px; }
.round-result.is-clear { border-color: #cde7dc; background: #edf8f2; }
.round-result.has-remarks { border-color: #ecd9b2; background: #fff8ec; }
.round-result-icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; color: var(--muted); background: var(--canvas); }
.round-result-icon svg { width: 23px; height: 23px; }
.round-result.is-clear .round-result-icon { color: white; background: #16815e; }
.round-result.has-remarks .round-result-icon { color: #a56d1c; background: #fae9c9; }
.round-result-label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.round-result h3 { margin: 0; font-size: 19px; line-height: 1.3; letter-spacing: -.025em; }
.round-result.is-clear h3 { color: #147956; }
.round-result.has-remarks h3 { color: #8e5e17; }
.round-result > div { min-width: 0; }
.round-result p { margin: 9px 0 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.round-detail .planned-round-comment { background: var(--surface); border: 1px solid #e0e7ec; border-radius: 18px; }
.round-finish { padding: 2px 0 0; }
.round-finish .primary-action { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 54px; border-radius: 17px; font-size: 16px; font-weight: 650; background: #244d68; box-shadow: 0 5px 14px rgba(36,77,104,.12); }
.round-finish .primary-action svg { width: 22px; height: 22px; }
.round-finish .primary-action:disabled { opacity: 1; color: #91a0aa; background: #e2e9ee; box-shadow: none; }
.round-finish > p { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: 11px; }
@media (max-width: 360px) {
  .round-sheet { padding-right: 12px; padding-left: 12px; }
  .round-panel, .round-hero { padding: 14px; }
  .round-material-open, .round-materials .round-media-action { gap: 9px; padding-right: 10px; padding-left: 10px; }
  .round-material-icon { flex-basis: 38px; width: 38px; height: 42px; }
  .round-material-copy strong { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .upload-progress.processing .upload-progress-ring, .upload-progress.processing .upload-progress-ring span { animation: none; }
}

.archive-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; margin-bottom: 14px; border-radius: 15px; background: #e6ecef; }
.archive-tabs.has-information { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.archive-tab { min-height: 42px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 850; cursor: pointer; }
.archive-tab.active { color: var(--brand-900); background: var(--surface); box-shadow: 0 3px 10px rgba(23,56,77,.08); }
.information-archive-card .round-archive-check { color: var(--brand-800); background: var(--brand-100); }
.information-archive-card .round-archive-check svg { stroke-width: 1.8; }
.information-archive-card .round-archive-copy strong { gap: 1px; }
.information-archive-card .information-heading-label { color: var(--ink); font-size: 14px; font-weight: 700; }
.information-archive-card .information-heading-reference { color: var(--brand-800); font-size: 12px; font-weight: 700; }
.information-archive-active { justify-self: start; color: var(--brand-800); font-size: 11px; font-weight: 650; }
.archive-list-section { margin-bottom: 0; }
.archive-request-card { min-width: 0; overflow: hidden; border: 1px solid #dce5e9; border-radius: 20px; background: var(--surface); box-shadow: 0 4px 16px rgba(23,56,77,.035); }
.archive-request-open { position: relative; display: block; width: 100%; padding: 16px; border: 0; text-align: left; background: transparent; color: var(--ink); cursor: pointer; }
.archive-request-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.archive-request-number { color: #647984; font-size: 12px; line-height: 1.4; font-weight: 600; font-variant-numeric: tabular-nums; }
.archive-request-status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 8px; color: var(--blue); background: var(--blue-soft); font-size: 11px; line-height: 1.35; font-weight: 650; }
.archive-request-status svg { flex: 0 0 14px; width: 14px; height: 14px; stroke-width: 2.3; }
.archive-request-status.done { color: var(--green); background: var(--green-soft); }
.archive-request-status.in_progress { color: #2b678a; background: #eaf2f8; }
.archive-request-status.transferred { color: #946017; background: #fff3df; }
.archive-request-status.failed { color: var(--red); background: var(--red-soft); }
.archive-request-status.cancelled, .archive-request-status.out_of_scope { color: #667782; background: #edf1f4; }
.archive-cancellation-reason { display: block; margin-top: 12px; padding-right: 18px; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.request-cancellation strong { overflow-wrap: anywhere; }
.archive-request-emergency { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; color: #b9433b; font-size: 11px; font-weight: 600; }
.archive-request-emergency svg { width: 14px; height: 14px; }
.archive-request-open h3 { margin: 12px 0 14px; color: var(--ink); font-size: 17px; line-height: 1.4; letter-spacing: -.018em; font-weight: 650; white-space: pre-line; overflow-wrap: anywhere; }
.archive-request-emergency + h3 { margin-top: 6px; }
.archive-request-dates { display: grid; gap: 5px; padding-right: 10px; font-size: 11px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.archive-request-dates > span { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 8px; }
.archive-request-dates > span > :first-child { color: #81909a; }
.archive-request-dates time { color: #546c79; font-weight: 500; }
.archive-request-dates time > span { color: #a1afb7; }
.archive-request-due > span:last-child { color: #946017; font-weight: 550; }
.archive-request-arrow { position: absolute; right: 14px; bottom: 18px; display: grid; place-items: center; color: #8da2af; }
.archive-request-arrow svg { width: 15px; height: 15px; }
.archive-evidence { padding: 12px 16px 14px; border-top: 1px solid #edf1f3; background: #fafcfc; }
.archive-evidence-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; color: #758792; font-size: 11px; line-height: 1.4; font-weight: 500; }
.archive-evidence-heading > span:last-child { font-variant-numeric: tabular-nums; color: #9aa8b0; }
.archive-evidence-previews { display: flex; align-items: center; gap: 8px; }
.archive-evidence-preview { position: relative; display: grid; place-items: center; flex: 0 1 72px; min-width: 0; width: 72px; height: 60px; padding: 0; overflow: hidden; border: 1px solid rgba(46,79,97,.07); border-radius: 10px; background: #eaf0f3; color: #7393a5; cursor: pointer; }
.archive-evidence-placeholder { display: grid; place-items: center; }
.archive-evidence-placeholder svg { width: 22px; height: 22px; }
.archive-evidence-preview.has-preview .media-tile-preview { opacity: 1; }
.archive-evidence-preview.has-preview .archive-evidence-placeholder { opacity: 0; }
.archive-evidence-play { display: none; position: absolute; z-index: 1; width: 27px; height: 27px; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: rgba(13,35,46,.6); color: white; }
.archive-evidence-play svg { width: 19px; height: 19px; }
.archive-evidence-preview.has-preview .archive-evidence-play { display: grid; }
.archive-evidence-more { flex: 0 0 34px; min-height: 44px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--brand-700); font-size: 13px; font-weight: 650; cursor: pointer; }
.archive-evidence-empty { padding: 11px 16px; border-top: 1px solid #edf1f3; color: #8898a2; font-size: 11px; line-height: 1.4; }
.archive-request-open:active, .archive-evidence-more:active { background: #f1f6f8; }
.archive-evidence-preview:active { transform: scale(.96); }
.archive-request-open:focus-visible, .archive-evidence-preview:focus-visible, .archive-evidence-more:focus-visible { outline: 2px solid var(--brand-700); outline-offset: -3px; }
@media (max-width: 360px) {
  .archive-request-open { padding: 14px; }
  .archive-request-open h3 { font-size: 16px; }
  .archive-evidence { padding-inline: 14px; }
  .archive-request-dates > span { grid-template-columns: 65px minmax(0, 1fr); column-gap: 6px; }
}
.archive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 3px 11px;
}
.archive-result-count { color: var(--muted); font-size: 12px; font-weight: 750; }
.archive-toolbar-actions { display: flex; align-items: center; gap: 7px; }
.archive-filter-toggle, .archive-filter-clear {
  min-height: 39px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--brand-900);
  background: var(--surface);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}
.archive-filter-toggle.active { border-color: #b9d2df; background: var(--brand-100); }
.archive-filter-toggle span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 5px;
  border-radius: 10px;
  color: #fff;
  background: var(--brand-800);
  font-size: 10px;
}
.archive-filter-clear { padding-inline: 7px; border: 0; color: var(--muted); background: transparent; }
.archive-filters { margin-bottom: 12px; padding: 14px; border-radius: 18px; background: var(--surface); box-shadow: 0 5px 18px rgba(23,56,77,.045); }
.archive-filter-apply {
  grid-column: 1 / -1;
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--brand-800);
  font-weight: 850;
  cursor: pointer;
}

.participants-form { margin: 12px 0; padding: 13px; border: 1px solid var(--line); border-radius: 15px; }
.participants-form fieldset { display: grid; gap: 8px; margin: 0 0 12px; padding: 0; border: 0; }
.participants-form legend { margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.participants-form label { font-size: 13px; }
.participants-form .participant-choice { display: flex; align-items: flex-start; gap: 10px; min-width: 0; min-height: 44px; padding: 10px; border-radius: 10px; background: var(--surface); }
.participant-choice input { flex: 0 0 auto; margin: 2px 0 0; width: 18px; height: 18px; accent-color: var(--brand-800); }
.participant-choice > span { min-width: 0; overflow-wrap: anywhere; }
.participant-choice .participant-name { display: block; line-height: 1.4; }
.participant-choice small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.participant-choice.is-unavailable { color: var(--muted); }
.participant-choice:has(input:disabled) { cursor: not-allowed; }
.participants-form .secondary-action { width: 100%; }

@media (min-width: 560px) {
  .content { padding: 22px; }
  .filters { grid-template-columns: 1fr 1fr 1fr; }
  .field.full { grid-column: auto; }
  .archive-filters .field.full:first-child { grid-column: 1 / -1; }
  .action-row { grid-template-columns: minmax(220px, 320px); }
}

@media (prefers-reduced-motion: no-preference) {
  .request-card, .person-row, .primary-action, .danger-action { transition: transform .15s ease, filter .15s ease; }
  .request-card:hover, .person-row:hover, .primary-action:hover, .danger-action:hover { filter: brightness(.985); }
}

@keyframes button-spin { to { transform: rotate(360deg); } }

/* Round, compact request summary and one uninterrupted list of requests. */
.dashboard-content { padding: 14px 14px 10px; }
.dashboard-content.has-action-dock { padding-bottom: 108px; }
.dashboard-content.dashboard-executor.has-action-dock { padding-bottom: 93px; }
.work-today-summary { display: flex; flex-wrap: nowrap; align-items: baseline; justify-content: center; gap: 2px; margin: 0 0 14px; padding: 0; color: var(--muted); font-size: clamp(10.5px, calc(4.5vw - 4px), 17px); line-height: 1.5; }
.work-stat { display: inline-flex; align-items: baseline; flex: 0 0 auto; gap: 2px; white-space: nowrap; }
.work-stat + .work-stat::before { content: '·'; color: #a1afb8; }
.work-stat-value { min-width: 2ch; color: var(--ink); font-size: inherit; font-weight: 650; font-variant-numeric: tabular-nums; }
.work-stat-label { font-size: inherit; }
.work-stat-value.work-today-in-progress { color: var(--brand-900); }
.work-stat-value.work-today-done { color: var(--green); }
.work-today-cancelled .work-stat-value { color: var(--muted); }
.dashboard-content .current-requests-section .request-list { gap: 10px; }
.dashboard-content .work-request-card h3 { display: block; overflow: visible; -webkit-line-clamp: unset; font-size: 16px; }
.dashboard-action-dock { position: fixed; z-index: 19; left: 50%; bottom: calc(74px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(100%, 760px); padding: 14px 12px 11px; background: linear-gradient(0deg, #f2f5f7 70%, rgba(242,245,247,0)); pointer-events: none; }
.dashboard-action-dock .quick-actions { gap: 9px; margin: 0; pointer-events: auto; }
.dashboard-content .section { margin-bottom: 14px; }
.dashboard-content .section-head { margin-bottom: 8px; }
.dashboard-content .section-head h2 { font-size: 18px; letter-spacing: -.025em; }
.dashboard-content .information-section .section-head h2 { min-width: 0; gap: 8px; white-space: nowrap; font-size: clamp(14px, 4.6vw, 18px); letter-spacing: -.035em; }
.dashboard-content .section-head > span { font-size: 11px; }
.work-clear { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 120px; margin-bottom: 12px; padding: 14px 18px; border: 1px solid #cfe9df; border-radius: 24px; background: linear-gradient(120deg, #e6f5ed, #f2faf6); color: #176348; text-align: center; }
.work-clear-check { display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; background: #14835f; color: #fff; box-shadow: 0 0 0 7px rgba(20,131,95,.07); }
.work-clear-check svg { width: 32px; height: 32px; stroke-width: 2.8; }
.work-clear h2 { margin: 0; color: #19714f; font-size: 23px; line-height: 1.15; font-weight: 750; letter-spacing: -.035em; }
.news-discovery { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 6px; border: 0; border-radius: 12px; background: transparent; color: #53756a; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.news-discovery svg { display: block; width: 26px; height: 26px; animation: news-discovery-nudge .9s ease-in-out 30; }
.news-discovery:focus-visible { outline: 2px solid #14835f; outline-offset: 0; }
#news-title { scroll-margin-top: 18px; }
@keyframes news-discovery-nudge { 0%, 25%, 100% { transform: translateY(-4px); opacity: .65; } 55% { transform: translateY(6px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .news-discovery svg { animation: none; } }
@media (max-width: 359px) { .work-clear h2 { font-size: 20px; } }
.work-list-link { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; flex-shrink: 0; min-height: 44px; margin: -8px 0 -6px; padding: 0 1px 0 8px; border: 0; background: transparent; color: var(--brand-900); font-size: 13px; font-weight: 650; cursor: pointer; }
.work-list-link svg { width: 14px; height: 14px; }
.work-request-card { display: block; width: 100%; padding: 16px; border: 1px solid var(--line); border-radius: 20px; text-align: left; color: var(--ink); background: var(--surface); box-shadow: 0 4px 18px rgba(23,56,77,.045); cursor: pointer; }
.work-request-card.is-emergency { border-color: #efcbc7; box-shadow: inset 3px 0 0 var(--red), 0 4px 18px rgba(23,56,77,.045); }
.work-request-meta, .work-request-status, .work-request-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.work-request-meta { color: var(--muted); font-size: 12px; font-weight: 550; }
.work-request-status { justify-content: flex-end; flex-wrap: wrap; font-size: 11px; }
.work-emergency-label { padding: 4px 7px; border-radius: 6px; color: #b6322e; background: var(--red-soft); font-weight: 700; }
.work-request-card h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 12px 0 14px; font-size: 18px; line-height: 1.32; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.work-request-footer { font-size: 12px; line-height: 1.35; }
.work-assignee { min-width: 0; color: var(--muted); }
.work-open { display: flex; align-items: center; gap: 3px; flex-shrink: 0; color: var(--brand-900); font-weight: 700; }
.work-open svg { width: 16px; height: 16px; }
.work-rounds { display: grid; gap: 8px; }
.work-round-card { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 86px; padding: 13px 14px; border: 1px solid #d5e9df; border-radius: 18px; color: var(--ink); background: #f8fcfa; text-align: left; }
.work-round-card { cursor: pointer; }
.work-round-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: var(--green); color: white; }
.work-round-icon svg { width: 24px; height: 24px; }
.work-round-copy { display: grid; flex: 1; min-width: 0; gap: 4px; }
.work-round-copy strong { color: #19714f; font-size: 15px; font-weight: 700; }
.work-round-copy > span:not(.activity-badge) { color: var(--ink); font-size: 13px; line-height: 1.3; }
.work-round-copy small { color: var(--muted); font-size: 12px; }
.work-round-arrow { flex-shrink: 0; color: #5c9079; }
.work-round-arrow svg { display: block; width: 16px; height: 16px; }
.work-round-card.is-pending { border-color: #efddba; background: #fffbf3; }
.work-round-card.is-pending .work-round-icon { background: var(--amber-soft); color: var(--amber); }
.work-round-card.is-pending .work-round-copy strong, .work-round-card.is-pending .work-round-arrow { color: var(--amber); }
.work-request-card:active, .work-round-card:active { background: var(--brand-100); }
.work-request-card:focus-visible, .work-round-card:focus-visible, .work-list-link:focus-visible { outline: 3px solid var(--brand-700); outline-offset: 3px; }
.quick-actions { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin: 0 0 18px; }
.quick-action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 72px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 17px; color: var(--brand-900); background: var(--surface); font-size: 12px; font-weight: 650; line-height: 1.25; box-shadow: 0 4px 14px rgba(23,56,77,.035); cursor: pointer; transition: transform .15s, background .15s; }
.quick-action svg { width: 23px; height: 23px; flex: 0 0 23px; }
.quick-action-request { color: white; background: linear-gradient(145deg, var(--brand-900), var(--brand-800)); border-color: transparent; box-shadow: 0 4px 10px rgba(36,77,104,.12); }
.quick-action-emergency { color: #b83230; background: #fff0ee; border-color: #f5d9d5; }
.quick-action:active { transform: scale(.97); }
.quick-action:focus-visible { outline: 3px solid var(--brand-700); outline-offset: 3px; }
.dashboard-executor .quick-action:only-child { flex-direction: row; gap: 10px; min-height: 57px; font-size: 14px; }
@media (max-width: 360px) {
  .dashboard-content .section-head h2 { font-size: 16px; }
  .work-list-link { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .quick-action { transition: none; } }

/* Creation sheets share the dashboard's quiet surfaces and line icons. */
.modal-sheet.creation-sheet { padding: 18px 18px calc(20px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: #fff; box-shadow: 0 -8px 36px rgba(23,56,77,.13); }
.creation-sheet .creation-head { top: -18px; gap: 10px; margin: -1px -1px 18px; padding: 10px 1px 14px; border-bottom: 1px solid #edf1f4; background: #fff; }
.creation-heading { display: flex; align-items: center; gap: 11px; min-width: 0; }
.creation-head h2 { font-size: 20px; font-weight: 750; letter-spacing: -.035em; line-height: 1.18; overflow-wrap: anywhere; }
.creation-symbol { flex: 0 0 40px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: var(--brand-900); background: var(--brand-100); }
.creation-symbol-emergency { color: #b83230; background: #fff0ee; }
.creation-symbol svg { width: 22px; height: 22px; }
.creation-head .close-button { display: grid; place-items: center; flex: 0 0 44px; border-radius: 50%; background: #f3f6f8; color: var(--muted); }
.creation-head .close-button svg { width: 19px; height: 19px; }
.creation-form .field { gap: 7px; min-width: 0; }
.creation-form .create-gap { margin-top: 16px; }
.creation-form .field > label:not(.create-media-picker), .creation-form .field-label { color: #3c505e; font-size: 13px; font-weight: 650; text-transform: none; letter-spacing: normal; }
.creation-form .field input:not([type="file"]), .creation-form .field textarea { min-width: 0; min-height: 48px; border: 1px solid #e6ecef; border-radius: 12px; background: #f6f8fa; font-size: 16px; line-height: 1.4; transition: border-color .15s, box-shadow .15s; }
.creation-form .field textarea { min-height: 108px; padding: 12px; resize: vertical; }
.creation-form .field input::placeholder, .creation-form .field textarea::placeholder { color: #788892; opacity: 1; }
.creation-form .field input:focus, .creation-form .field textarea:focus { border-color: var(--brand-700); background: #fff; box-shadow: 0 0 0 3px rgba(66,117,145,.1); }
.creation-form-emergency .field input:focus, .creation-form-emergency .field textarea:focus { border-color: #bd5550; box-shadow: 0 0 0 3px rgba(199,54,50,.09); }
.creation-field-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.creation-field-label > span { color: var(--muted); font-size: 11px; font-weight: 400; }
.creation-form .create-media-picker { min-height: 66px; gap: 10px; padding: 11px 12px; border: 1px dashed #cbd8e0; border-radius: 13px; background: #fff; box-shadow: none; }
.creation-form .create-media-icon { flex-basis: 34px; width: 34px; height: 34px; border-radius: 10px; background: #f0f5f8; }
.creation-form .create-media-icon svg { width: 21px; height: 21px; }
.creation-form .create-media-copy strong { color: var(--brand-900); font-size: 13px; font-weight: 650; }
.creation-form .create-media-copy small { margin-top: 3px; font-size: 11px; font-weight: 400; }
.creation-form .create-media-chevron { color: var(--brand-700); font-size: 22px; }
.creation-form .create-media-picker.has-files { border-style: solid; border-color: #afd5c7; background: var(--green-soft); }
.creation-form .create-media-picker.has-files .create-media-copy strong { color: var(--green); }
.creation-form .upload-feedback, .creation-form .form-error { min-height: 0; margin: 10px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.creation-form .upload-feedback:empty, .creation-form .form-error:empty { display: none; }
.creation-submit { display: block; min-height: 50px; margin-top: 22px; padding: 12px 16px; border-radius: 14px; font-size: 15px; font-weight: 650; line-height: 1.3; }
.creation-submit.primary-action { background: linear-gradient(145deg, var(--brand-900), var(--brand-800)); box-shadow: 0 4px 12px rgba(36,77,104,.12); }
.creation-submit.danger-action { background: #bd3632; box-shadow: 0 4px 12px rgba(199,54,50,.12); }
.creation-sheet button:focus-visible, .creation-schedule summary:focus-visible { outline: 3px solid var(--brand-700); outline-offset: 3px; }
.creation-schedule { margin-top: 16px; border: 1px solid #e6ecef; border-radius: 12px; }
.creation-schedule summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 10px 12px; list-style: none; color: #3c505e; font-size: 13px; font-weight: 650; cursor: pointer; }
.creation-schedule summary::-webkit-details-marker { display: none; }
.creation-schedule summary small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 400; }
.schedule-toggle { color: var(--brand-700); font-size: 22px; font-weight: 400; }
.creation-schedule[open] .schedule-toggle { transform: rotate(45deg); }
.creation-dates { display: grid; gap: 12px; padding: 4px 12px 14px; }
.creation-dates input[type="datetime-local"] { max-width: 100%; padding: 10px; }
@media (min-width: 480px) { .creation-dates { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .creation-form .field input, .creation-form .field textarea, .creation-form .create-media-picker { transition: none; } }

.creation-form-information .create-gap, .creation-form-information .creation-schedule { margin-top: 12px; }
.creation-form-information .field textarea { min-height: 88px; }
.creation-form-information .creation-submit { margin-top: 18px; }

/* Personnel directory and employee profile. */
.personnel-directory { padding: 16px 14px 10px; }
.personnel-directory .section-head { margin: 0 2px 12px; }
.personnel-directory .section-head h2 { font-size: 21px; font-weight: 700; letter-spacing: -.035em; }
.personnel-directory .section-head > span { font-size: 12px; }
.personnel-directory .person-list { gap: 0; overflow: hidden; border: 1px solid #e5ebef; border-radius: 20px; background: #fff; box-shadow: 0 4px 20px rgba(23,56,77,.025); }
.personnel-directory .person-row { align-items: center; gap: 12px; padding: 13px 14px; border-radius: 0; background: transparent; }
.personnel-directory .person-row + .person-row { border-top: 1px solid #edf1f4; }
.personnel-directory .person-row:active { transform: none; background: #f5f8fa; }
.personnel-directory .person-row:focus-visible { outline: 2px solid var(--brand-700); outline-offset: -3px; }
.personnel-directory .avatar { flex: 0 0 48px; width: 48px; height: 58px; border-radius: 13px; background: #edf3f6; object-position: center top; font-size: 16px; font-weight: 650; }
.personnel-directory .person-copy h3 { margin: 0 0 3px; font-size: 14px; font-weight: 650; line-height: 1.3; letter-spacing: -.015em; overflow-wrap: anywhere; }
.personnel-directory .person-copy p { font-size: 11px; line-height: 1.35; }
.personnel-directory .person-status { margin-top: 6px; }
.person-availability { display: inline-flex; align-items: baseline; gap: 6px; max-width: 100%; color: var(--muted); font-size: 11px; font-weight: 550; line-height: 1.4; }
.availability-dot { flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.person-availability.active { color: #187757; }
.person-availability.vacation, .person-availability.absent { color: #986112; }
.person-availability.unconfirmed, .person-availability.inactive { color: #aa4a47; }
.personnel-directory .return-date { margin-top: 4px !important; color: var(--muted) !important; font-size: 11px; font-weight: 400; }
.personnel-directory .person-arrow { display: grid; place-items: center; flex: 0 0 12px; color: #8b9da8; }
.personnel-directory .person-arrow svg { width: 13px; height: 13px; }
.modal-sheet.employee-sheet { padding: 16px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: #fff; box-shadow: 0 -8px 36px rgba(23,56,77,.13); }
.employee-sheet .employee-head { top: -16px; margin: -1px 0 12px; padding: 0 0 10px; border-bottom: 1px solid #edf1f4; background: #fff; }
.employee-head h2 { color: var(--muted); font-size: 14px; font-weight: 550; }
.employee-head .close-button { display: grid; place-items: center; flex: 0 0 44px; border-radius: 50%; color: var(--muted); background: #f3f6f8; }
.employee-head .close-button svg { width: 19px; height: 19px; }
.employee-head .close-button:focus-visible { outline: 3px solid var(--brand-700); outline-offset: 3px; }
.employee-sheet .person-detail-card { gap: 18px; padding: 10px 0 0; border-radius: 0; }
.employee-sheet .person-detail-photo { width: 112px; border-radius: 18px; background: #eef3f6; box-shadow: 0 0 0 5px #f5f8fa; }
.employee-sheet .person-detail-initials { font-size: 34px; font-weight: 600; }
.employee-sheet .person-detail-copy h3 { max-width: 440px; margin: 0 auto 6px; font-size: 23px; font-weight: 650; letter-spacing: -.035em; line-height: 1.2; overflow-wrap: anywhere; }
.employee-surname, .employee-given-name { display: block; }
.employee-given-name { margin-top: 3px; }
.employee-sheet .person-detail-title { margin: 0; font-size: 13px; line-height: 1.4; }
.employee-availability { width: 100%; padding: 14px 16px; border: 1px solid #e8eef1; border-radius: 15px; background: #f8fafb; }
.employee-availability-main { display: grid; gap: 6px; }
.employee-field-label { color: var(--muted); font-size: 11px; }
.employee-availability .person-availability { gap: 8px; font-size: 14px; font-weight: 600; }
.employee-availability .availability-dot { flex-basis: 7px; width: 7px; height: 7px; }
.employee-sheet .person-detail-return { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid #e3eaf0; color: var(--muted); font-size: 12px; font-weight: 400; }
.employee-sheet .person-detail-return strong { color: var(--ink); font-size: 13px; font-weight: 600; }
.employee-registration { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
@media (hover: hover) { .personnel-directory .person-row:hover { background: #f8fafb; } }

/* Contract selection uses the same mobile layout as the dispatcher. */
body.service-selection-open { background: linear-gradient(112deg, #143348 0%, #244d68 62%, #345f7b 100%); }
body.service-selection-open .app-shell { padding-bottom: 0; background: transparent; }
.service-selection { min-height: 100vh; min-height: 100dvh; max-width: 560px; margin: 0 auto; padding: max(48px, env(safe-area-inset-top)) 22px max(36px, env(safe-area-inset-bottom)); color: #fff; }
.service-selection > img { width: 210px; max-width: 75%; margin-bottom: 36px; }
.service-selection h1 { font-size: 26px; line-height: 1.2; margin: 0 0 12px; }
.service-selection > p { color: #d0e0eb; line-height: 1.5; margin-bottom: 26px; }
.service-options { display: grid; gap: 16px; }
.service-option { --service-accent: #287ba6; --service-tint: #eaf5fb; width: 100%; text-align: left; padding: 22px; border: 1px solid #dce5ef; border-radius: 20px; background: linear-gradient(135deg, #fff 55%, var(--service-tint)); color: #162d4b; box-shadow: 0 6px 20px #102a4810; }
.service-option-aircon { --service-accent: #168b87; --service-tint: #e8f7f3; }
.service-option-heading { display: flex; align-items: center; gap: 18px; }
.service-option-icon { display: grid; place-items: center; flex: 0 0 68px; width: 68px; height: 68px; border: 1px solid #ffffff; border-radius: 20px; color: var(--service-accent); background: var(--service-tint); box-shadow: inset 0 1px 0 #ffffffb3; }
.service-option-icon svg { width: 46px; height: 46px; }
.service-option strong { display: block; min-width: 0; font-size: clamp(19px, 5vw, 22px); line-height: 1.25; overflow-wrap: anywhere; }
.service-option-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid #dce5ef99; font-size: 14px; color: #416580; }
.service-option-action svg { width: 21px; height: 21px; flex: 0 0 21px; color: var(--service-accent); }
.service-option:focus-visible { outline: 3px solid #dceef8; outline-offset: 4px; }
@media (hover: hover) { .service-option:hover { border-color: var(--service-accent); box-shadow: 0 8px 24px #102a4818; } }
@media (max-width: 360px) { .service-option { padding: 18px; } .service-option-heading { gap: 14px; } .service-option-icon { flex-basis: 56px; width: 56px; height: 56px; border-radius: 17px; } .service-option-icon svg { width: 40px; height: 40px; } }
#request-place, #request-equipment { max-width: 100%; font-size: 16px; }
.equipment-place { margin: 8px 0 14px; color: #5c6c7c; font-size: 14px; line-height: 1.45; font-weight: 400; }

/* Upload controls: quiet actions next to the evidence they affect. */
.media-tile-wrap { min-width: 0; position: relative; }
.media-tile-wrap > .media-tile { width: 100%; }
.attachment-delete { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 36px; margin-top: 5px; padding: 5px 3px; border: 0; border-radius: 10px; background: transparent; color: var(--muted, #667b86); font: inherit; font-size: 12px; cursor: pointer; }
.attachment-delete svg { width: 14px; height: 14px; }
.attachment-delete.confirming { background: #fff0ed; color: #a83d35; }
.upload-cancel { flex: 0 0 auto; min-height: 40px; padding: 8px 12px; border: 1px solid #c8d7de; border-radius: 12px; color: #244c61; background: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.upload-cancel[hidden] { display: none; }
.upload-cancel:disabled { opacity: .6; cursor: wait; }
.upload-progress-copy { min-width: 0; }
@media (max-width: 380px) { .upload-progress { flex-wrap: wrap; } .upload-cancel { margin-left: auto; } }

.upload-progress:has(.upload-cancel:not([hidden])) { grid-template-columns: 58px minmax(0, 1fr); }
.upload-cancel { grid-column: 2; justify-self: start; }

/* Media selection and saved-file actions share one quiet, corporate language. */
.saved-media-actions { display: flex; align-items: center; gap: 3px; margin-top: 5px; }
.saved-media-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 42px; padding: 7px 3px; border: 0; border-radius: 10px; background: transparent; color: #526e80; font: inherit; font-size: 11px; font-weight: 550; cursor: pointer; }
.saved-media-actions svg { flex: 0 0 16px; width: 16px; height: 16px; }
.saved-media-actions .media-replace { flex: 1; min-width: 0; }
.saved-media-actions .media-remove { flex: 0 0 34px; }
.saved-media-actions button:active { background: #e5edf2; }
.saved-media-actions .media-remove:active { background: #faebe9; color: #ab433b; }
.saved-media-actions button:disabled { opacity: .4; cursor: default; }
.round-media-entry > .saved-media-actions { justify-content: flex-end; margin: 0 6px 5px; }
.round-media-entry .media-replace { flex: 0 1 auto; padding: 8px 12px; font-size: 12px; }
.media-edit-overlay { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: flex-end; justify-content: center; padding: max(16px, env(safe-area-inset-top)) 0 0; background: rgba(11, 35, 51, .55); overscroll-behavior: contain; }
.media-edit-sheet { display: flex; flex-direction: column; width: 100%; max-width: 540px; max-height: 100%; max-height: min(92dvh, 900px); overflow: hidden; border-radius: 26px 26px 0 0; background: #f5f8fa; color: #172e3c; box-shadow: 0 -12px 70px #102b4433; outline: 0; animation: media-sheet-enter .22s cubic-bezier(.2,.8,.2,1); }
.media-edit-header { display: flex; flex: 0 0 auto; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 24px 20px 18px; background: #fff; border-bottom: 1px solid #e9eff3; }
.media-edit-header h2 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.035em; line-height: 1.2; }
.media-edit-header p { margin: 8px 0 0; max-width: 340px; font-size: 13px; font-weight: 400; color: #637c8b; line-height: 1.45; }
.media-edit-close { flex: 0 0 40px; display: grid; place-items: center; width: 40px; height: 40px; padding: 10px; border: 0; border-radius: 50%; background: #eff4f7; color: #34596f; cursor: pointer; }
.media-edit-close svg { width: 20px; height: 20px; }
.media-edit-close:disabled { opacity: .35; }
.media-edit-body { min-height: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 18px; }
.media-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.media-review-grid.single { grid-template-columns: minmax(0, 1fr); }
.media-review-item { min-width: 0; position: relative; overflow: hidden; border: 1px solid #e0e9ee; border-radius: 16px; background: #fff; }
.media-review-preview { position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; background: linear-gradient(145deg, #244d68, #143348); }
.media-review-preview img, .media-review-preview video { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.single .media-review-preview { aspect-ratio: 4 / 3; max-height: 38dvh; }
.media-review-preview [hidden] { display: none; }
.media-review-fallback { padding: 16px; color: #dce9f0; text-align: center; font-size: 12px; line-height: 1.5; }
.media-review-remove { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 36px; height: 36px; padding: 9px; border: 1px solid #ffffffb0; border-radius: 50%; background: #fffffff0; color: #254c62; box-shadow: 0 2px 8px #102b4420; cursor: pointer; }
.media-review-remove svg { width: 18px; height: 18px; }
.media-review-copy { display: grid; gap: 5px; padding: 12px; }
.media-review-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; color: #294659; }
.media-review-copy > span { color: #7b8d98; font-size: 11px; }
.media-review-copy .media-review-state { color: #597487; font-size: 12px; font-variant-numeric: tabular-nums; }
.media-review-track { height: 3px; background: #eaf0f4; }
.media-review-track span { display: block; width: 0; height: 100%; background: #346987; transition: width .18s ease; }
.media-review-item[data-state="success"] .media-review-state { color: #1c8568; }
.media-review-item[data-state="success"] .media-review-track span { background: #269678; }
.media-review-item[data-state="error"] .media-review-state { color: #ad4f47; }
.media-review-empty { margin: 24px 10px; text-align: center; color: #718794; font-size: 14px; line-height: 1.5; }
.media-edit-footer { flex: 0 0 auto; padding: 14px 20px max(20px, env(safe-area-inset-bottom)); border-top: 1px solid #e4ecf1; background: #fff; }
.media-edit-status { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: #597386; overflow-wrap: anywhere; }
.media-edit-status:empty { display: none; }
.media-edit-status[data-state="error"] { color: #a9443d; }
.media-edit-status[data-state="success"] { color: #1c8568; }
.media-edit-buttons { display: flex; gap: 10px; }
.media-edit-buttons > button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 1; min-width: 0; min-height: 50px; padding: 12px 10px; border: 1px solid transparent; border-radius: 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.media-edit-buttons svg { width: 18px; height: 18px; }
.media-edit-primary { background: #244d68; color: #fff; box-shadow: 0 3px 8px #244d6818; }
.media-edit-secondary { background: #f0f5f8; color: #31576d; }
.media-edit-danger { background: #ac4b43; color: #fff; }
.media-edit-buttons button:disabled { opacity: .45; cursor: default; }
.media-edit-sheet button:focus-visible, .saved-media-actions button:focus-visible { outline: 3px solid #639cbd; outline-offset: 2px; }
.media-edit-sheet [hidden] { display: none !important; }
.media-delete-preview { display: grid; place-items: center; min-height: 120px; max-height: 38dvh; aspect-ratio: 4/3; overflow: hidden; border-radius: 16px; background: linear-gradient(145deg, #244d68, #143348); color: #dce9f0; font-size: 13px; }
.media-delete-preview img, .media-delete-preview video { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.media-delete-name { margin: 12px 4px 0; color: #667f8e; font-size: 12px; overflow-wrap: anywhere; }
@keyframes media-sheet-enter { from { transform: translateY(24px); } to { transform: translateY(0); } }
@media (min-width: 640px) { .media-edit-overlay { align-items: center; padding: 24px; } .media-edit-sheet { border-radius: 26px; } }
@media (prefers-reduced-motion: reduce) { .media-edit-sheet { animation: none; } .media-review-track span { transition: none; } }
.media-upload-dock {
  position: fixed; z-index: 1060; left: 16px; right: 16px;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; max-width: 520px; margin-inline: auto;
  padding: 12px 10px 15px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 20px;
  background: linear-gradient(125deg, #295a73, #173b50); color: #fff;
  box-shadow: 0 8px 28px rgba(12,35,49,.22); overflow: hidden;
}
.media-upload-dock[hidden], .media-edit-overlay[hidden] { display: none !important; }
.upload-dock-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border: 0; padding: 0; color: inherit; background: transparent; text-align: left; }
.upload-dock-main > span:last-child { min-width: 0; }
.upload-dock-main strong { display: block; font-size: 14px; line-height: 1.3; font-weight: 650; }
.upload-dock-main [data-dock-detail] { display: block; margin-top: 3px; color: #d4e3ec; font-size: 12px; line-height: 1.35; }
.upload-dock-icon { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 12px; background: rgba(255,255,255,.1); }
.upload-dock-icon svg, .upload-dock-cancel svg { width: 20px; height: 20px; }
.upload-dock-cancel { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; margin-left: 4px; border: 0; color: #e3edf3; background: transparent; border-radius: 14px; }
.upload-dock-cancel:disabled { opacity: .4; }
.upload-dock-track { position: absolute; height: 3px; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,.12); }
.upload-dock-track span { display: block; height: 100%; width: 0; background: #afd9ef; transition: width .22s ease-out; }
.media-upload-dock[data-state="processing"] .upload-dock-track span { width: 38% !important; animation: upload-dock-processing 1.7s ease-in-out infinite; }
.media-upload-dock[data-state="error"] .upload-dock-track span { background: #f5b8ac; width: 100% !important; }
@keyframes upload-dock-processing { from { transform: translateX(-110%); } to { transform: translateX(370%); } }
@media (prefers-reduced-motion: reduce) { .upload-dock-track span { transition: none; animation: none !important; } }

body.has-background-upload #modal .upload-progress { display: none; }

/* The transfer bar has its own space; it never floats over the card controls. */
.media-upload-dock { min-height: 64px; max-height: 64px; left: 12px; right: 12px; padding: 9px 8px 12px 12px; border-radius: 16px; }
.upload-dock-main { gap: 9px; }
.upload-dock-main strong, .upload-dock-main [data-dock-detail] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-dock-main strong { font-size: 13px; }
.upload-dock-main [data-dock-detail] { font-size: 11px; }
.upload-dock-queue { flex: 0 0 36px; min-height: 40px; padding: 4px; margin-left: 5px; border: 1px solid #ffffff38; border-radius: 10px; color: white; background: #ffffff12; font-size: 13px; }
.upload-dock-queue[hidden] { display: none; }
body.has-background-upload .app-shell { padding-bottom: calc(174px + env(safe-area-inset-bottom)); }
body.modal-open .media-upload-dock { bottom: calc(10px + env(safe-area-inset-bottom)); }
body.has-background-upload .modal-layer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
body.has-background-upload .modal-sheet { max-height: calc(var(--modal-viewport-height) - max(20px, env(safe-area-inset-top)) - 84px - env(safe-area-inset-bottom)); }
/* Connection recovery, saved drafts and administrator health view. */
.connection-status { position:fixed; top:env(safe-area-inset-top,0); left:8px; right:8px; z-index:2000; padding:12px 16px; background:#fff4dc; color:#633f08; border:1px solid #e6c780; border-radius:12px; box-shadow:0 4px 16px #0002; font-size:14px; line-height:1.4; }
.connection-status[hidden] { display:none; }
.draft-clear { display:block; margin:12px auto 0; padding:8px 12px; border:0; background:transparent; color:#536b7e; font:inherit; font-size:13px; cursor:pointer; }
.draft-note { padding:10px 12px; border-radius:10px; background:#edf4fa; color:#325a78; font-size:13px; overflow-wrap:anywhere; }
.activity-badge { display:inline-flex; align-items:center; justify-self:start; width:max-content; flex-shrink:0; padding:3px 7px; border-radius:20px; background:#e5f0fc; color:#174e81; font-size:11px; font-weight:700; line-height:1.3; white-space:nowrap; }
.work-request-meta:has(.activity-badge) { flex-wrap:wrap; gap:6px; }
.system-status-button { width:100%; margin:20px 0; padding:14px; border:1px solid #d9e1e8; border-radius:14px; color:#325a78; background:#fff; font:inherit; cursor:pointer; }
.system-status-list { margin:16px 0; }
.system-status-list > div { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; padding:12px 0; border-bottom:1px solid #e8edf1; }
.system-status-list dt { color:#536b7e; }
.system-status-list dd { margin:0; text-align:right; overflow-wrap:anywhere; font-weight:600; }
.status-caption { color:#627380; line-height:1.5; font-size:13px; }

/* Keep the diagnostics sheet steady while loading and refreshing its values. */
.modal-sheet.system-status-sheet { height: calc(var(--modal-viewport-height) - max(20px, env(safe-area-inset-top))); }
.system-status-caption { min-height: 2.5em; }

/* Rolling news feed. These cards never overlay working actions. */
.news-section { margin-top: 12px; }
.news-section .section-head { align-items: center; justify-content: flex-start; gap: 4px; }
.news-section .news-management { margin-left: auto; }
.news-card-arrow svg { width: 18px; height: 18px; }
.news-cards { display: grid; gap: 10px; }
.news-card { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px; text-align: left; color: inherit; font: inherit; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); cursor: pointer; min-width: 0; }
.news-card:active { transform: scale(.992); background: var(--brand-100); }
.news-thumbnail { display: block; flex: 0 0 78px; width: 78px; height: 78px; border-radius: 13px; object-fit: cover; }
.news-thumbnail-frame { flex: 0 0 78px; width: 78px; height: 78px; }
.news-picture { display: block; }
.news-card-copy { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; }
.news-card-copy strong { font-size: 15px; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-copy time { font-size: 11px; line-height: 1.4; color: var(--muted); }
.news-card-arrow { color: var(--muted); flex: 0 0 18px; }
.news-empty { font-size: 14px; color: var(--muted); padding: 8px 0; }
.news-reader-sheet { height: calc(var(--modal-viewport-height) - max(20px, env(safe-area-inset-top))); padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); background: var(--surface); }
.news-reader-sheet.is-news-dragging, .news-reader-sheet.is-news-settling, .news-reader-sheet.is-news-dismissing { transform: translate3d(0, var(--news-dismiss-y, 0px), 0); }
.news-reader-sheet.is-news-settling, .news-reader-sheet.is-news-dismissing { transition: transform .24s cubic-bezier(.25,.1,.25,1); }
.news-reader-sheet.is-news-dismissing { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .news-reader-sheet.is-news-settling, .news-reader-sheet.is-news-dismissing { transition: none; } }
.news-reader-head { top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin: 0 0 10px; padding: 0; border: 0; background: var(--surface); }
.news-reader-head { touch-action: none; }
.news-reader-head > time { display: block; font-size: 12px; letter-spacing: .02em; color: var(--muted); }
.news-reader h2 { font-size: clamp(23px, 5.7vw, 30px); line-height: 1.2; letter-spacing: -.025em; margin: 0 0 20px; overflow-wrap: anywhere; }
.news-reader-image-frame { margin: 0 0 22px; }
.news-reader-image { display: block; width: 100%; max-height: 320px; height: auto; object-fit: cover; border-radius: 16px; margin: 0; }
.news-picture-caption { display: block; margin-top: 6px; text-align: right; font-size: 11px; line-height: 1.3; color: var(--muted); }
.news-picture-caption[hidden] { display: none; }
.news-reader-text { font-size: 16px; line-height: 1.65; color: var(--ink); overflow-wrap: anywhere; }
.news-reader-text p { margin: 0 0 18px; }
.news-eyebrow { color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 6px; }
.news-admin-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
.news-admin-controls small { flex-basis: 100%; color: var(--muted); }
.news-admin-controls .secondary-action, .news-hide { font-size: 12px; }
.is-hidden-news { opacity: .6; }
@media (max-width: 360px) { .news-thumbnail, .news-thumbnail-frame { flex-basis: 64px; width: 64px; height: 68px; } .news-card { gap: 10px; } .news-card-copy strong { font-size: 14px; } .news-card-arrow { display: none; } }

.news-management { position: relative; flex: 0 0 44px; margin: 0; font-size: 12px; color: var(--muted); }
.news-management summary { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 1px solid transparent; border-radius: 12px; color: var(--brand-800); background: transparent; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.news-management summary::-webkit-details-marker { display: none; }
.news-management summary svg { width: 22px; height: 22px; }
.news-management[open] summary, .news-management summary:active { border-color: #d4e2ea; background: var(--brand-100); }
.news-management summary:focus-visible { outline: 2px solid var(--brand-700); outline-offset: 2px; }
.news-management .news-admin-controls { position: absolute; z-index: 20; top: calc(100% + 6px); right: 0; display: grid; width: min(300px, calc(100vw - 28px)); margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.news-management:not([open]) .news-admin-controls { display: none; }
.news-management .news-admin-controls .secondary-action { width: 100%; min-height: 44px; text-align: left; }
.news-management .news-admin-controls small { padding: 3px 2px; }

/* News uses the existing request mini-chat and upload viewer. */
.news-comments { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.news-comments h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.news-comments [data-news-comment-count] { color: var(--muted); font-size: 14px; font-weight: 500; }
.news-comments fieldset { min-width: 0; margin: 12px 0 0; padding: 0; border: 0; }
.news-comments .messenger-composer { gap: 6px; }
.news-comments .feed-bubble p { white-space: pre-wrap; }
.messenger-emoji { flex: 0 0 32px; width: 32px; height: 38px; min-height: 38px; padding: 0; border: 0; border-radius: 50%; color: var(--brand-800); background: transparent; font-size: 26px; }
.news-emojis:not([hidden]) { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; padding: 10px 0; }
.news-emojis button { min-width: 0; min-height: 40px; padding: 4px; border: 0; border-radius: 8px; background: var(--brand-100); font-size: 22px; }
