:root {
  --navy-950: #07101d;
  --navy-900: #0b1424;
  --navy-850: #101c30;
  --navy-800: #16243a;
  --ink: #132033;
  --ink-soft: #314158;
  --gold: #b79243;
  --gold-strong: #caa75d;
  --gold-pale: #f4ead5;
  --cream: #f7f5f0;
  --surface: #ffffff;
  --surface-soft: #f8f9fb;
  --line: #e7e8ec;
  --line-strong: #d7d9df;
  --muted: #737d8d;
  --green: #17765f;
  --green-soft: #e7f4ef;
  --amber: #a96710;
  --amber-soft: #fbf1df;
  --red: #a63742;
  --red-soft: #faeaec;
  --blue: #2c5f93;
  --blue-soft: #eaf1f8;
  --shadow-sm: 0 8px 24px rgba(15, 29, 49, 0.06);
  --shadow: 0 22px 60px rgba(10, 22, 39, 0.12);
  --radius: 22px;
  --radius-sm: 14px;
  --sidebar: 276px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
html.dark {
  --ink: #f5f7fb;
  --ink-soft: #c7ced8;
  --cream: #08111f;
  --surface: #101b2d;
  --surface-soft: #0c1727;
  --line: #25344a;
  --line-strong: #35465e;
  --muted: #96a2b3;
  --gold-pale: #30281a;
  --green-soft: #102c27;
  --amber-soft: #302515;
  --red-soft: #341b21;
  --blue-soft: #14283e;
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.18);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gold) 45%, transparent);
  outline-offset: 2px;
}
body.dialog-open {
  overflow: hidden;
}
[hidden] {
  display: none !important;
}
.mobile-only {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.overline {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.overline.gold {
  color: var(--gold);
}
.fine-print {
  font-size: 12px;
  color: var(--muted);
}
.network-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 2000;
  padding: 9px 18px;
  background: #7c2d12;
  color: #fff;
  text-align: center;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-lockup > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-lockup strong {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.brand-lockup small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--gold-strong), #9f7830);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 8px 22px rgba(183, 146, 67, 0.24);
  overflow: hidden;
}
.brand-mark:before {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 10px;
  transform: rotate(45deg);
}
.brand-mark i {
  position: absolute;
  width: 15px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
}
.brand-mark b {
  position: absolute;
  color: #fff;
  font-size: 21px;
  transform: translateY(-0.5px);
  opacity: 0.96;
}
.brand-mark i {
  display: none;
}
.brand-lockup-light strong,
.brand-lockup-light small {
  color: #fff;
}
.brand-lockup-light small {
  opacity: 0.68;
}
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 47%) 1fr;
  background: var(--surface);
}
.auth-story {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 17% 15%, rgba(202, 167, 93, 0.22), transparent 30%),
    radial-gradient(circle at 88% 88%, rgba(72, 104, 141, 0.22), transparent 31%),
    linear-gradient(145deg, #07101d, #0c1930 55%, #132744);
  color: #fff;
  padding: 52px 6vw 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-story:before,
.auth-story:after {
  content: '';
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  width: 520px;
  height: 520px;
  left: -220px;
  bottom: -260px;
}
.auth-story:after {
  width: 340px;
  height: 340px;
  left: auto;
  right: -180px;
  top: -110px;
}
.story-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  background: rgba(183, 146, 67, 0.12);
  filter: blur(70px);
  right: 12%;
  top: 36%;
  border-radius: 50%;
}
.auth-copy {
  position: relative;
  max-width: 590px;
  margin: 10vh 0 7vh;
}
.auth-copy .overline {
  color: var(--gold-strong);
}
.auth-copy h1 {
  font-size: clamp(37px, 4vw, 62px);
  line-height: 1.22;
  letter-spacing: -0.045em;
  margin: 18px 0 22px;
}
.auth-copy p {
  font-size: 18px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.69);
  max-width: 560px;
}
.story-proof {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.story-proof > div {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.story-proof b {
  font-family: ui-monospace, monospace;
  color: var(--gold-strong);
  font-size: 12px;
}
.story-proof span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}
.story-foot {
  position: relative;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
  margin: 24px 0 0;
}
.auth-panel {
  display: grid;
  place-items: center;
  padding: 48px;
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
}
.auth-card {
  width: min(470px, 100%);
  padding: 10px;
}
.mobile-brand {
  display: none;
}
.auth-card h2 {
  font-size: 34px;
  letter-spacing: -0.035em;
  margin: 12px 0 7px;
}
.auth-card > p {
  margin: 0 0 30px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}
.field > span {
  font-size: 13px;
  font-weight: 750;
  color: var(--ink-soft);
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  padding: 13px 14px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
input:hover,
select:hover,
textarea:hover {
  border-color: var(--line-strong);
}
textarea {
  resize: vertical;
}
.input-wrap {
  position: relative;
}
.input-wrap input {
  padding-left: 72px;
}
.input-action {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  padding: 7px;
}
.button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 10px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 800;
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    background 0.18s,
    border-color 0.18s;
}
.button:hover {
  transform: translateY(-1px);
}
.button:active {
  transform: translateY(0);
}
.button.primary {
  background: linear-gradient(145deg, var(--gold-strong), #a67c32);
  color: #fff;
  box-shadow: 0 10px 22px rgba(183, 146, 67, 0.22);
}
.button.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.button.danger {
  background: var(--red-soft);
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 20%, transparent);
}
.button.success {
  background: var(--green-soft);
  color: var(--green);
  border-color: color-mix(in srgb, var(--green) 20%, transparent);
}
.button.wide {
  width: 100%;
}
.button-loader {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.notice {
  border-radius: 13px;
  padding: 11px 13px;
  margin: 14px 0 0;
  font-size: 13px;
}
.notice.info {
  background: var(--blue-soft);
  color: var(--blue);
}
.notice.danger {
  background: var(--red-soft);
  color: var(--red);
}
.trust-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.trust-row span {
  font-size: 11px;
  color: var(--muted);
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.app-shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 0 0 auto;
  width: var(--sidebar);
  z-index: 80;
  background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: #fff;
  padding: 27px 19px 20px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}
.sidebar-brand {
  padding: 0 8px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-brand small {
  color: rgba(255, 255, 255, 0.55);
}
.main-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 23px;
}
.nav-item {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.66);
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  text-align: right;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 13px;
  font-weight: 750;
  transition: 0.2s;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.nav-item.active {
  background: linear-gradient(100deg, rgba(202, 167, 93, 0.2), rgba(202, 167, 93, 0.07));
  color: #fff;
  box-shadow: inset -3px 0 0 var(--gold-strong);
}
.nav-icon {
  font-size: 19px;
  color: var(--gold-strong);
}
.nav-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--gold-strong);
  color: #172032;
  font-size: 10px;
}
.sidebar-bottom {
  margin-top: auto;
}
.sync-chip {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.72);
  padding: 10px 12px;
  font-size: 12px;
  text-align: right;
  margin-bottom: 13px;
}
.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #54c7a2;
  box-shadow: 0 0 0 4px rgba(84, 199, 162, 0.12);
}
.sync-chip.pending .sync-dot {
  background: #e5a844;
}
.sync-chip.failed .sync-dot {
  background: #d96773;
}
.sync-chip b {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 2px 6px;
}
.user-mini {
  display: grid;
  grid-template-columns: 42px 1fr 34px;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.user-mini strong,
.user-mini small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-mini strong {
  font-size: 13px;
}
.user-mini small {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: linear-gradient(145deg, #d4b46d, #9a712b);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
}
.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
}
.sidebar .icon-button {
  border-color: rgba(255, 255, 255, 0.08);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
}
.workspace {
  margin-right: var(--sidebar);
  min-height: 100vh;
}
.topbar {
  height: 96px;
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
}
.topbar-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-title h1 {
  font-size: 24px;
  line-height: 1;
  margin: 6px 0 0;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-box {
  height: 44px;
  width: min(330px, 28vw);
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--muted);
}
.search-box input {
  border: 0;
  background: transparent;
  padding: 0;
  outline: 0;
  box-shadow: none;
}
.search-box kbd {
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 2px 5px;
  border-radius: 5px;
}
.content {
  max-width: 1580px;
  margin: auto;
  padding: 31px 36px 80px;
}
.view {
  display: none;
}
.view.active-view {
  display: block;
  animation: viewIn 0.28s ease;
}
@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.welcome-strip {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #0c182a, #172b47);
  border-radius: var(--radius);
  padding: 27px 30px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
  min-height: 150px;
}
.welcome-strip:after {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  left: -120px;
  top: -150px;
}
.welcome-strip h2 {
  font-size: 30px;
  letter-spacing: -0.035em;
  margin: 7px 0;
}
.welcome-strip p {
  margin: 0;
  color: rgba(255, 255, 255, 0.61);
}
.welcome-strip .overline {
  color: var(--gold-strong);
}
.focus-score {
  position: relative;
  z-index: 1;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding-right: 28px;
  min-width: 160px;
}
.focus-score span,
.focus-score small {
  display: block;
  color: rgba(255, 255, 255, 0.54);
  font-size: 11px;
}
.focus-score strong {
  display: block;
  font-size: 42px;
  line-height: 1.2;
  color: var(--gold-strong);
  letter-spacing: -0.04em;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin: 17px 0;
}
.summary-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 17px 18px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.summary-card:after {
  content: '';
  position: absolute;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  left: -25px;
  bottom: -27px;
  background: var(--card-tint, var(--gold-pale));
}
.summary-card span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.summary-card strong {
  display: block;
  font-size: 30px;
  line-height: 1.2;
  margin-top: 6px;
  letter-spacing: -0.03em;
}
.summary-card small {
  font-size: 10px;
  color: var(--muted);
}
.summary-card.alert {
  --card-tint: var(--red-soft);
}
.summary-card.warn {
  --card-tint: var(--amber-soft);
}
.summary-card.good {
  --card-tint: var(--green-soft);
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 21px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  margin-bottom: 17px;
}
.panel-head h2,
.panel-head h3 {
  margin: 4px 0 0;
  letter-spacing: -0.025em;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--gold);
  font-weight: 800;
  font-size: 12px;
}
.today-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(285px, 0.72fr);
  gap: 16px;
}
.today-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.priority-list,
.compact-list,
.task-list,
.approval-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.priority-card {
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: var(--surface-soft);
  transition: 0.2s;
}
.priority-card:hover,
.task-card:hover,
.approval-card:hover {
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.priority-line {
  height: 48px;
  border-radius: 99px;
  background: var(--blue);
}
.priority-line.urgent {
  background: var(--red);
}
.priority-line.high {
  background: var(--amber);
}
.priority-line.low {
  background: var(--green);
}
.priority-main {
  min-width: 0;
}
.priority-main h4 {
  margin: 0;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meta-row {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.status-pill,
.count-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 850;
  background: var(--blue-soft);
  color: var(--blue);
}
.status-assigned {
  background: var(--blue-soft);
  color: var(--blue);
}
.status-received,
.status-in_progress {
  background: var(--amber-soft);
  color: var(--amber);
}
.status-needs_help,
.status-overdue {
  background: var(--red-soft);
  color: var(--red);
}
.status-completed,
.status-closed {
  background: var(--green-soft);
  color: var(--green);
}
.status-cancelled {
  background: var(--surface-soft);
  color: var(--muted);
}
.task-quick-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.mini-action {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 750;
}
.mini-action.primary {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}
.mini-action.help {
  color: var(--red);
  background: var(--red-soft);
  border-color: transparent;
}
.empty-state {
  text-align: center;
  padding: 38px 18px;
}
.empty-orbit {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 25px;
  background: var(--surface-soft);
}
.empty-state h4 {
  margin: 0 0 6px;
}
.empty-state p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.compact-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.compact-item:last-child {
  border-bottom: 0;
}
.compact-item h4 {
  font-size: 13px;
  margin: 0;
}
.compact-item p {
  font-size: 11px;
  color: var(--muted);
  margin: 3px 0 0;
}
.count-chip {
  min-width: 27px;
}
.muted-chip {
  background: var(--surface-soft);
  color: var(--muted);
}
.calm-panel {
  background: linear-gradient(145deg, var(--surface), var(--surface-soft));
}
.calm-panel h3 {
  margin: 9px 0 4px;
}
.calm-panel p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 14px;
}
.calm-bars {
  display: flex;
  gap: 5px;
  height: 5px;
}
.calm-bars i {
  display: block;
  flex: 1;
  border-radius: 99px;
  background: var(--line);
}
.calm-bars i.on {
  background: var(--green);
}
.calm-bars i.warn {
  background: var(--amber);
}
.calm-bars i.alert {
  background: var(--red);
}
.completed-panel {
  margin-top: 16px;
}
.completed-row {
  display: flex;
  gap: 10px;
  overflow: auto;
  padding-bottom: 2px;
}
.completed-chip {
  min-width: 230px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.completed-check {
  width: 31px;
  height: 31px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 900;
}
.completed-chip h4 {
  font-size: 12px;
  margin: 0;
}
.completed-chip p {
  font-size: 10px;
  color: var(--muted);
  margin: 2px 0 0;
}
.view-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 17px;
}
.view-toolbar h2 {
  margin: 5px 0 2px;
}
.view-toolbar p {
  margin: 0;
}
.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: auto;
}
.segmented button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 9px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 750;
}
.segmented button.active {
  background: var(--navy-900);
  color: #fff;
}
.tasks-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
}
.tasks-panel {
  padding: 14px;
}
.task-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: 0.2s;
}
.priority-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px var(--blue-soft);
}
.priority-dot.urgent {
  background: var(--red);
  box-shadow: 0 0 0 5px var(--red-soft);
}
.priority-dot.high {
  background: var(--amber);
  box-shadow: 0 0 0 5px var(--amber-soft);
}
.priority-dot.low {
  background: var(--green);
  box-shadow: 0 0 0 5px var(--green-soft);
}
.task-card h3 {
  font-size: 14px;
  margin: 0;
}
.task-card p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.task-card-side {
  text-align: left;
}
.task-card-side time {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 7px;
}
.task-insight {
  align-self: start;
  position: sticky;
  top: 114px;
}
.insight-ring {
  width: 142px;
  height: 142px;
  margin: 18px auto;
  border-radius: 50%;
  background: conic-gradient(var(--gold) var(--progress, 0%), var(--line) 0);
  display: grid;
  place-items: center;
  position: relative;
}
.insight-ring:after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--surface);
}
.insight-ring > div {
  position: relative;
  z-index: 1;
  text-align: center;
}
.insight-ring strong {
  display: block;
  font-size: 27px;
}
.insight-ring span {
  font-size: 10px;
  color: var(--muted);
}
.insight-rows {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.insight-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.insight-row span {
  color: var(--muted);
}
.approval-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.approval-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 18px;
  transition: 0.2s;
}
.approval-card-head {
  display: flex;
  justify-content: space-between;
  gap: 13px;
}
.approval-card h3 {
  font-size: 15px;
  margin: 0 0 5px;
}
.approval-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.approval-flow {
  display: flex;
  align-items: center;
  margin: 18px 0;
  gap: 4px;
}
.approval-step {
  height: 5px;
  flex: 1;
  border-radius: 99px;
  background: var(--line);
}
.approval-step.done {
  background: var(--green);
}
.approval-step.current {
  background: var(--gold);
}
.approval-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.person-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 17px;
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 12px;
  align-items: center;
}
.person-card .avatar {
  width: 45px;
  height: 45px;
}
.person-card h3 {
  font-size: 14px;
  margin: 0;
}
.person-card p {
  font-size: 11px;
  color: var(--muted);
  margin: 3px 0;
}
.person-stats {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.person-actions {
  grid-column: 1/-1;
  display: flex;
  gap: 7px;
  align-items: center;
}
.person-actions .role-select {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 8px;
  font-size: 11px;
  background: var(--surface);
  color: var(--ink);
}
.person-stat {
  padding: 8px;
  border-radius: 10px;
  background: var(--surface-soft);
  text-align: center;
}
.person-stat b,
.person-stat span {
  display: block;
}
.person-stat b {
  font-size: 16px;
}
.person-stat span {
  font-size: 9px;
  color: var(--muted);
}
.dialog {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  max-width: none;
}
.dialog::backdrop {
  background: rgba(4, 10, 19, 0.64);
  backdrop-filter: blur(6px);
}
.dialog-body {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 24px;
  border-radius: 24px;
}
.sheet-dialog {
  width: min(760px, calc(100vw - 28px));
}
.detail-dialog {
  width: min(900px, calc(100vw - 28px));
}
.mini-dialog {
  width: min(500px, calc(100vw - 28px));
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 22px;
}
.dialog-head h2 {
  font-size: 23px;
  margin: 5px 0 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 15px;
}
.field-wide {
  grid-column: 1/-1;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.people-picker {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 4px 0;
}
.person-option {
  position: relative;
}
.person-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.person-option span {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--surface);
  font-size: 11px;
  cursor: pointer;
}
.person-option input:checked + span {
  border-color: var(--gold);
  background: var(--gold-pale);
  color: var(--ink);
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 16px;
}
.detail-section {
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 17px;
  margin-bottom: 12px;
}
.detail-section h3 {
  font-size: 14px;
  margin: 0 0 11px;
}
.detail-description {
  white-space: pre-wrap;
  color: var(--ink-soft);
  font-size: 13px;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.timeline {
  position: relative;
  padding-right: 19px;
}
.timeline:before {
  content: '';
  position: absolute;
  right: 5px;
  top: 7px;
  bottom: 7px;
  width: 1px;
  background: var(--line);
}
.timeline-item {
  position: relative;
  padding: 0 0 15px;
}
.timeline-item:before {
  content: '';
  position: absolute;
  right: -18px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-pale);
}
.timeline-item h4 {
  font-size: 12px;
  margin: 0;
}
.timeline-item p {
  font-size: 10px;
  color: var(--muted);
  margin: 3px 0;
}
.upload-box {
  border: 1px dashed var(--line-strong);
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  background: var(--surface-soft);
}
.upload-box input {
  display: none;
}
.upload-box label {
  display: block;
  cursor: pointer;
}
.upload-box strong,
.upload-box span {
  display: block;
}
.upload-box span {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.progress {
  height: 5px;
  background: var(--line);
  border-radius: 99px;
  margin-top: 9px;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width 0.2s;
}
.toast-region {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  min-width: 280px;
  max-width: 390px;
  background: var(--navy-900);
  color: #fff;
  border-radius: 14px;
  padding: 13px 15px;
  box-shadow: var(--shadow);
  font-size: 13px;
  border-right: 4px solid var(--gold);
  animation: toastIn 0.25s ease;
}
.toast.success {
  border-right-color: #54c7a2;
}
.toast.danger {
  border-right-color: #e16a76;
}
.toast small {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 3px;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 1120px) {
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .today-grid,
  .tasks-layout {
    grid-template-columns: 1fr;
  }
  .today-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .task-insight {
    position: static;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .search-box {
    width: 230px;
  }
  .approval-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .mobile-only {
    display: grid !important;
  }
  .auth-layout {
    display: block;
    background: var(--surface);
  }
  .auth-story {
    display: none;
  }
  .auth-panel {
    min-height: 100vh;
    padding: 24px;
  }
  .mobile-brand {
    display: flex;
    margin-bottom: 55px;
  }
  .auth-card h2 {
    font-size: 29px;
  }
  .sidebar {
    transform: translateX(105%);
    transition: transform 0.25s;
  }
  .sidebar.open {
    transform: none;
  }
  .workspace {
    margin-right: 0;
  }
  .topbar {
    height: 76px;
    padding: 0 17px;
  }
  .topbar-title h1 {
    font-size: 20px;
  }
  .topbar-title .overline {
    display: none;
  }
  .topbar-actions {
    gap: 6px;
  }
  .search-box {
    display: none;
  }
  .topbar-actions > .button span {
    display: none;
  }
  .topbar-actions > .button {
    width: 42px;
    padding: 0;
  }
  .content {
    padding: 18px 14px calc(92px + var(--safe-bottom));
  }
  .welcome-strip {
    padding: 21px;
    min-height: 130px;
  }
  .welcome-strip h2 {
    font-size: 24px;
  }
  .welcome-strip p {
    font-size: 12px;
    max-width: 240px;
  }
  .focus-score {
    display: none;
  }
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    margin: 11px 0;
  }
  .summary-card {
    padding: 14px;
  }
  .summary-card strong {
    font-size: 26px;
  }
  .today-grid {
    gap: 10px;
  }
  .today-side {
    display: flex;
  }
  .panel {
    padding: 16px;
    border-radius: 18px;
  }
  .panel-main {
    padding: 14px;
  }
  .priority-card {
    grid-template-columns: 4px minmax(0, 1fr);
    padding: 12px;
  }
  .priority-card > .task-quick-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
  .completed-panel {
    margin-top: 10px;
  }
  .view-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .segmented {
    width: 100%;
  }
  .tasks-panel {
    padding: 9px;
  }
  .task-card {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 13px;
  }
  .task-card-side {
    grid-column: 2;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .bottom-nav {
    position: fixed;
    z-index: 70;
    bottom: 0;
    right: 0;
    left: 0;
    height: 70px;
    padding: 6px 10px calc(6px + var(--safe-bottom));
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    align-items: center;
  }
  .bottom-nav button {
    border: 0;
    background: transparent;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 18px;
  }
  .bottom-nav b {
    font-size: 9px;
  }
  .bottom-nav button.active {
    color: var(--gold);
  }
  .bottom-nav .fab {
    width: 48px;
    height: 48px;
    border-radius: 17px;
    background: linear-gradient(145deg, var(--gold-strong), #a67c32);
    color: #fff;
    justify-self: center;
    transform: translateY(-13px);
    box-shadow: 0 12px 25px rgba(183, 146, 67, 0.32);
    font-size: 25px;
  }
  .form-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .sheet-dialog,
  .detail-dialog,
  .mini-dialog {
    width: 100vw;
    max-height: 94vh;
    margin: auto 0 0;
  }
  .dialog-body {
    border-radius: 24px 24px 0 0;
    padding: 19px;
    max-height: 94vh;
    overflow: auto;
  }
  .toast-region {
    left: 12px;
    right: 12px;
    bottom: 84px;
  }
  .toast {
    min-width: 0;
    max-width: none;
  }
  .dialog-actions {
    position: sticky;
    bottom: -19px;
    background: var(--surface);
    padding-bottom: calc(19px + var(--safe-bottom));
  }
}
@media (max-width: 430px) {
  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }
  .summary-card small {
    display: none;
  }
  .welcome-strip h2 {
    font-size: 22px;
  }
  .priority-card {
    gap: 10px;
  }
  .completed-chip {
    min-width: 205px;
  }
  .auth-panel {
    padding: 20px;
  }
  .trust-row {
    gap: 5px;
  }
  .trust-row span {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* V4.9.1: audit-friendly task references and prefilled approval context. */
.reference-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}
.reference-row code {
  direction: ltr;
  unicode-bidi: isolate;
  font-size: 0.78rem;
  word-break: break-all;
  color: var(--text);
}
.context-note {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-inline-start: 3px solid var(--gold);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted);
}

/* M1 V5.0.0 — premium shift continuity, handovers and quick capture. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.toolbar-actions,
.notification-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.privacy-chip {
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 6px 10px;
  background: var(--surface-soft);
}
.shift-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) auto auto;
  align-items: center;
  gap: 28px;
  min-height: 205px;
  margin-bottom: 18px;
  padding: 30px 32px;
  border-radius: 27px;
  color: #fff;
  background: linear-gradient(122deg, #071423 0%, #10233d 58%, #15304c 100%);
  box-shadow: 0 22px 48px rgba(7, 20, 35, 0.18);
}
.shift-hero-glow {
  position: absolute;
  inset: -120px auto auto -60px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 180, 94, 0.28), transparent 68%);
  pointer-events: none;
}
.shift-hero:after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to left, #000, transparent 75%);
  pointer-events: none;
}
.shift-hero-main,
.shift-countdown,
.shift-hero-actions {
  position: relative;
  z-index: 1;
}
.shift-hero .overline {
  color: rgba(255, 255, 255, 0.62);
}
.shift-hero h2 {
  font-size: 28px;
  margin: 7px 0 15px;
}
.shift-time {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.shift-time i {
  color: var(--gold);
  font-style: normal;
}
.shift-hero .meta-row {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 13px;
}
.shift-hero .status-pill {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}
.shift-countdown {
  min-width: 150px;
  text-align: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}
.shift-countdown span,
.shift-countdown small {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}
.shift-countdown strong {
  display: block;
  font-size: 29px;
  color: #f3d791;
  margin: 5px 0;
}
.shift-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 145px;
}
.button.light {
  background: #fff;
  color: #10233d;
  border-color: #fff;
}
.button.gold-outline {
  border: 1px solid rgba(228, 191, 105, 0.7);
  background: rgba(217, 180, 94, 0.08);
  color: #f7d98e;
}
.shift-hero .text-button {
  color: #f4d58b;
}
.handover-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(265px, 0.55fr);
  gap: 15px;
  margin-bottom: 15px;
}
.handover-list,
.handover-history {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.handover-card {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  transition:
    transform 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
.handover-card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 8px 22px rgba(10, 24, 41, 0.06);
}
.handover-card.anomaly {
  border-inline-start: 3px solid var(--amber);
}
.handover-card-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--gold-pale);
  color: var(--gold-strong);
  font-size: 18px;
}
.handover-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.handover-card h4 {
  font-size: 13px;
  margin: 0;
}
.handover-card p {
  font-size: 10px;
  color: var(--muted);
  margin: 3px 0;
}
.handover-preview {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.handover-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 230px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.handover-tag b {
  color: var(--gold-strong);
}
.handover-tag.warning {
  background: var(--red-soft);
}
.handover-tag.pending {
  background: var(--amber-soft);
}
.shift-guide {
  background: linear-gradient(155deg, var(--surface), var(--gold-pale));
}
.shift-guide ol {
  list-style: none;
  margin: 17px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.shift-guide li {
  display: grid;
  grid-template-columns: 27px 1fr;
  gap: 9px;
  position: relative;
}
.shift-guide li:before {
  content: counter(list-item);
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  background: var(--navy-900);
  color: #fff;
  font-size: 10px;
}
.shift-guide li b,
.shift-guide li span {
  display: block;
}
.shift-guide li b {
  font-size: 12px;
}
.shift-guide li span {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.handover-stepper {
  display: flex;
  align-items: center;
  max-width: 260px;
  margin: -5px 0 23px;
}
.handover-stepper span {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.handover-stepper span.done {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.handover-stepper i {
  height: 1px;
  flex: 1;
  background: var(--line);
}
.ack-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 52vh;
  overflow: auto;
  padding: 3px;
}
.ack-item {
  display: grid;
  grid-template-columns: auto 40px 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 17px;
  cursor: pointer;
  background: var(--surface);
  transition: 0.18s;
}
.ack-item:has(input:checked) {
  border-color: color-mix(in srgb, var(--gold) 68%, var(--line));
  background: var(--gold-pale);
}
.ack-item input {
  width: 19px;
  height: 19px;
  accent-color: var(--gold);
  margin-top: 7px;
}
.ack-symbol {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  font-weight: 800;
}
.ack-item strong {
  font-size: 9px;
  color: var(--muted);
}
.ack-item h4 {
  font-size: 13px;
  margin: 2px 0;
}
.ack-item p {
  font-size: 10px;
  color: var(--muted);
  margin: 3px 0;
}
.ack-item em {
  display: inline-block;
  font-style: normal;
  font-size: 9px;
  color: var(--amber);
  margin-top: 5px;
}
.ack-confirm {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--muted);
}
.ack-confirm span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}
.ack-confirm p {
  font-size: 10px;
  margin: 0;
}
.capture-hero {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(440px, 1.3fr);
  gap: 28px;
  align-items: center;
  padding: 27px 30px;
  margin-bottom: 16px;
  border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line));
  border-radius: 27px;
  background: radial-gradient(circle at 15% 0, var(--gold-pale), transparent 42%), var(--surface);
  box-shadow: var(--shadow-soft);
}
.capture-hero h2 {
  font-size: 28px;
  margin: 5px 0;
}
.capture-hero > div > p {
  font-size: 12px;
  color: var(--muted);
  max-width: 390px;
}
.capture-composer {
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--surface-soft);
  padding: 8px;
}
.capture-composer textarea {
  width: 100%;
  border: 0 !important;
  background: transparent !important;
  resize: none;
  min-height: 85px;
  padding: 12px !important;
  box-shadow: none !important;
  font-size: 15px;
}
.capture-composer > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 4px 4px;
}
.capture-network-hint {
  font-size: 9px;
  color: var(--muted);
}
.capture-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 15px;
}
.capture-side {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.capture-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.capture-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.capture-glyph {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--gold-strong);
  background: var(--gold-pale);
}
.capture-card p {
  margin: 0;
  font-size: 13px;
  white-space: pre-wrap;
}
.segmented.compact {
  width: auto;
}
.segmented.compact button {
  padding: 7px 12px;
  font-size: 9px;
}
.notification-card {
  position: relative;
  overflow: hidden;
}
.notification-card:after {
  content: '';
  position: absolute;
  left: -60px;
  top: -60px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--gold-pale);
  opacity: 0.7;
  pointer-events: none;
}
.switch-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.switch-row span b,
.switch-row span small {
  display: block;
}
.switch-row span b {
  font-size: 11px;
}
.switch-row span small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 2px;
}
.switch-row input {
  position: absolute;
  opacity: 0;
}
.switch-row i {
  position: relative;
  width: 40px;
  height: 23px;
  border-radius: 99px;
  background: var(--line-strong);
  transition: 0.2s;
  flex: 0 0 auto;
}
.switch-row i:after {
  content: '';
  position: absolute;
  width: 17px;
  height: 17px;
  top: 3px;
  right: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: 0.2s;
}
.switch-row input:checked + i {
  background: var(--gold-strong);
}
.switch-row input:checked + i:after {
  transform: translateX(-17px);
}
.notification-actions {
  margin-top: 15px;
  position: relative;
  z-index: 1;
}
.capture-promise {
  display: flex;
  align-items: center;
  gap: 12px;
}
.capture-promise > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--green-soft);
  color: var(--green);
}
.capture-promise h3 {
  font-size: 12px;
  margin: 0;
}
.capture-promise p {
  font-size: 9px;
  color: var(--muted);
  margin: 3px 0;
}
.capture-preview {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-soft);
  margin-bottom: 15px;
}
.capture-preview span {
  font-size: 9px;
  color: var(--muted);
}
.capture-preview p {
  font-size: 13px;
  margin: 5px 0;
  white-space: pre-wrap;
}
.triage-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 17px;
}
.triage-options label {
  position: relative;
}
.triage-options input {
  position: absolute;
  opacity: 0;
}
.triage-options span {
  height: 100%;
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}
.triage-options b,
.triage-options small {
  display: block;
}
.triage-options b {
  font-size: 11px;
}
.triage-options small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.triage-options input:checked + span {
  border-color: var(--gold);
  background: var(--gold-pale);
}
.m1b-empty {
  padding: 26px 12px;
}
.nav-item:nth-last-child(-n + 3) .nav-icon {
  font-size: 15px;
}
@media (max-width: 1120px) {
  .shift-hero {
    grid-template-columns: 1fr auto;
  }
  .shift-hero-actions {
    grid-column: 1/-1;
    flex-direction: row;
  }
  .handover-layout,
  .capture-layout {
    grid-template-columns: 1fr;
  }
  .capture-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .capture-hero {
    grid-template-columns: 1fr;
  }
  .shift-guide {
    display: none;
  }
}
@media (max-width: 820px) {
  .shift-toolbar .toolbar-actions {
    width: 100%;
  }
  .shift-toolbar .toolbar-actions .button {
    flex: 1;
  }
  .shift-hero {
    grid-template-columns: 1fr;
    padding: 23px 20px;
    gap: 17px;
  }
  .shift-hero h2 {
    font-size: 23px;
  }
  .shift-countdown {
    min-width: 0;
    text-align: right;
  }
  .shift-hero-actions {
    grid-column: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .handover-card {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .handover-card > .button,
  .handover-card > .icon-button {
    grid-column: 2;
    justify-self: start;
  }
  .capture-hero {
    padding: 20px 17px;
    border-radius: 20px;
  }
  .capture-hero h2 {
    font-size: 24px;
  }
  .capture-side {
    display: flex;
  }
  .capture-card {
    grid-template-columns: 36px minmax(0, 1fr);
  }
  .capture-card > .button {
    grid-column: 2;
    justify-self: start;
  }
  .triage-options {
    grid-template-columns: 1fr;
  }
  .ack-item {
    grid-template-columns: auto 35px 1fr;
  }
  .bottom-nav .fab span {
    font-size: 19px;
  }
  .sidebar .main-nav {
    overflow: auto;
  }
  .handover-preview {
    display: none;
  }
}
@media (max-width: 430px) {
  .capture-composer > div {
    align-items: flex-end;
  }
  .capture-composer .button {
    padding-inline: 12px;
  }
  .shift-time {
    flex-wrap: wrap;
  }
  .shift-hero-actions {
    grid-template-columns: 1fr;
  }
  .handover-card-head {
    display: block;
  }
  .handover-card-head .status-pill {
    margin-top: 6px;
  }
  .notification-actions .button {
    width: 100%;
  }
}
/* M1B PWA, offline snapshot and notification onboarding */
.offline-snapshot-bar {
  margin: 12px 24px 0;
  padding: 11px 15px;
  border: 1px solid color-mix(in srgb, var(--amber) 45%, var(--line));
  border-radius: 14px;
  background: var(--amber-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.offline-snapshot-bar[hidden] {
  display: none;
}
.offline-snapshot-bar b {
  font-size: 10px;
  white-space: nowrap;
}
.offline-snapshot-bar span {
  font-size: 9px;
  color: var(--muted);
}
.quiet-hours {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.quiet-hours .field {
  margin: 0;
}
.quiet-hours input {
  min-height: 38px;
}
.stacked-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
}
.stacked-actions > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stacked-actions .button {
  justify-content: center;
}
.install-card {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 12px;
  align-items: center;
  background: linear-gradient(145deg, var(--surface), var(--gold-pale));
}
.install-mark {
  width: 45px;
  height: 45px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--navy-900);
  color: var(--gold);
  font-size: 25px;
  font-weight: 800;
}
.install-card h3 {
  margin: 2px 0;
  font-size: 13px;
}
.install-card p {
  font-size: 9px;
  margin: 2px 0;
}
.install-actions {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.install-actions .button {
  flex: 1;
}
.notification-card .button.primary {
  position: relative;
  z-index: 2;
}
@media (max-width: 820px) {
  .offline-snapshot-bar {
    margin: 8px 12px 0;
    align-items: flex-start;
  }
  .offline-snapshot-bar {
    flex-direction: column;
    gap: 3px;
  }
  .quiet-hours {
    grid-template-columns: 1fr 1fr;
  }
  .stacked-actions > div {
    flex-wrap: wrap;
  }
}
/* Semantic hook retained for automated and assistive UX validation. */
.quick-capture-fab {
  touch-action: manipulation;
}

.capture-composer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.capture-composer-actions .capture-network-hint {
  margin-inline-end: auto;
}
.compact-button {
  min-height: 38px;
  padding: 0 14px;
}
.capture-attachment {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--gold) 8%, var(--surface));
  margin-top: 10px;
}
.capture-attachment b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.capture-attachment[hidden] {
  display: none;
}
@media (max-width: 820px) {
  .capture-composer-actions {
    align-items: stretch;
  }
  .capture-composer-actions .capture-network-hint {
    width: 100%;
  }
  .capture-composer-actions .button {
    flex: 1;
  }
}

/* V5.0.2 — verified recovery, concurrency and identity hardening */
.trash-list {
  display: grid;
  gap: 12px;
  max-height: min(62vh, 680px);
  overflow: auto;
  padding: 2px;
}
.trash-item {
  align-items: center;
}
.trash-item small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.capture-delete {
  color: var(--danger, #a43b3b);
}

.insight-ring {
  background: var(--surface-soft);
}
.insight-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.insight-ring-track,
.insight-ring-value {
  fill: none;
  stroke-width: 4;
}
.insight-ring-track {
  stroke: var(--line);
}
.insight-ring-value {
  stroke: var(--gold);
  stroke-linecap: round;
}
.progress-native {
  display: block;
  width: 100%;
  height: 9px;
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-soft);
  accent-color: var(--gold);
}
.progress-native::-webkit-progress-bar {
  background: var(--surface-soft);
  border-radius: 999px;
}
.progress-native::-webkit-progress-value {
  background: var(--gold);
  border-radius: 999px;
}
.progress-native::-moz-progress-bar {
  background: var(--gold);
  border-radius: 999px;
}
.completion-comment-field {
  margin-top: 13px;
}

html,
body {
  overflow-x: clip;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 75;
  border: 0;
  background: rgba(8, 18, 32, 0.52);
  backdrop-filter: blur(2px);
}
.sidebar-close {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}
.risk-list-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.risk-list-guide h3 {
  margin: 4px 0;
}
.mobile-menu-open {
  overflow: hidden;
}
@media (max-width: 820px) {
  .sidebar {
    visibility: hidden;
  }
  .sidebar.open {
    visibility: visible;
  }
  .sidebar-backdrop:not([hidden]) {
    display: block !important;
  }
  .sidebar-backdrop[hidden] {
    display: none !important;
  }
  .sidebar-close {
    display: grid !important;
  }
  .risk-list-guide {
    align-items: flex-start;
    flex-direction: column;
  }
  .risk-list-guide .button {
    width: 100%;
  }
}

@media (min-width: 821px) {
  .sidebar-backdrop,
  .sidebar-close {
    display: none !important;
  }
}
/* KAF-153 (from the KAF-133 branch). The nav scrolls at EVERY width. Mobile-only, a long desktop nav pushed
   .sidebar-bottom (sync chip, account button) off a 720p screen with nothing able to scroll to it. */
.sidebar .main-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 12px;
}
.sidebar .sidebar-bottom {
  flex-shrink: 0;
}

/* WP2.5 — identity surfaces: registration, password reset, invitations */
.auth-alt {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}
.auth-divider {
  height: 1px;
  background: var(--line);
  margin: 26px 0;
}
.enrolment-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  padding: 18px;
  margin-top: 20px;
}
.enrolment-panel h3 {
  margin: 14px 0 5px;
  font-size: 16px;
}
.enrolment-panel > p {
  margin: 0 0 14px;
  font-size: 13px;
}
.enrolment-qr {
  width: min(232px, 100%);
  margin: 0 auto 18px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.enrolment-qr svg {
  display: block;
  width: 100%;
  height: auto;
}
.secret-field {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  direction: ltr;
  text-align: left;
  word-break: break-all;
}
/* KAF-070 — #otp carries either a 6-digit TOTP or an 11-character recovery code (xxxxx-xxxxx,
   lowercase hex). In an RTL field the hyphen resolves to the paragraph direction under UAX#9
   N2, which reorders the two halves on screen: a user typing 9d3f4-a1b2c would see a1b2c-9d3f4
   and conclude the field had mangled their credential. Same treatment as .secret-field, but
   only once there is a value — while the Arabic placeholder is showing, the field stays RTL so
   it reads and aligns like every other field on the card. */
.code-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.06em;
  direction: ltr;
  text-align: left;
}
.code-input:placeholder-shown {
  font-family: inherit;
  letter-spacing: normal;
  direction: rtl;
  text-align: right;
}
.recovery-codes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-bottom: 10px;
}
.recovery-codes code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  direction: ltr;
  text-align: center;
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}
.invite-panel {
  margin-bottom: 16px;
}
.invite-panel .form-grid {
  margin-top: 4px;
}
.invite-actions {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}
.invite-list-head {
  margin: 22px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.invite-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  margin: 10px 0 6px;
}
.invite-link-row input {
  background: var(--surface);
}
#inviteResult b {
  display: block;
  margin-bottom: 4px;
}
#inviteResult small {
  display: block;
  font-size: 11px;
  opacity: 0.85;
}
.invitation-list {
  display: flex;
  flex-direction: column;
}
.invitation-item {
  align-items: center;
}
.invitation-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 820px) {
  .enrolment-qr {
    width: min(200px, 100%);
  }
  .recovery-codes {
    grid-template-columns: 1fr;
  }
  .invite-link-row {
    grid-template-columns: 1fr;
  }
  .invite-link-row .button {
    width: 100%;
  }
  .invitation-item {
    grid-template-columns: 1fr;
  }
  .invitation-actions {
    justify-content: flex-start;
    margin-top: 6px;
  }
}

/* KAF-095 — org chart. Indentation carries the hierarchy; RTL, so it is padding-inline-start. */
.org-chart {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-block: 0.75rem;
}
.org-chart ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.org-roots,
.org-children {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.org-children {
  padding-inline-start: 1.1rem;
  margin-block-start: 0.6rem;
  border-inline-start: 2px solid var(--line, rgba(128, 128, 128, 0.25));
}
.org-department {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line, rgba(128, 128, 128, 0.25));
  border-radius: 0.75rem;
}
.org-node-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.org-node-head h4,
.org-node-head b {
  margin: 0;
}
.org-teams {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-block-start: 0.6rem;
  padding-inline-start: 0.9rem;
}
.org-team {
  padding: 0.5rem 0.7rem;
  border-radius: 0.6rem;
  background: var(--surface-2, rgba(128, 128, 128, 0.07));
}
.org-members {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-block-start: 0.45rem;
}
.org-member {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--surface, rgba(128, 128, 128, 0.12));
  font-size: 0.85rem;
}
.org-role {
  opacity: 0.65;
  font-size: 0.78rem;
}
.avatar.tiny {
  width: 1.35rem;
  height: 1.35rem;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.org-empty {
  margin: 0.35rem 0 0;
  opacity: 0.7;
}
.org-orphans {
  padding: 0.7rem 0.85rem;
  border: 1px dashed var(--line, rgba(128, 128, 128, 0.35));
  border-radius: 0.75rem;
}
.org-orphans h4 {
  margin: 0 0 0.4rem;
}

/* KAF-099 (D2) — attachments on a task. */
.attachment-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  margin: 0.2rem 0.2rem 0 0;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--surface);
  font-size: 0.85rem;
  text-decoration: none;
}
.attachment-link:hover {
  border-color: var(--gold);
}
.attachment-row {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.attachment-delete {
  color: var(--red);
}
/* KAF-115 — the in-app notification inbox. */
.inbox-wrap {
  position: relative;
}
.inbox-wrap .nav-badge {
  position: absolute;
  top: -6px;
  inset-inline-start: -6px;
  background: #d96773;
  color: #fff;
}
.inbox-panel {
  position: absolute;
  top: 48px;
  inset-inline-end: 0;
  width: min(360px, 86vw);
  max-height: 70vh;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  z-index: 90;
  padding: 10px;
}
.inbox-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px 10px;
  border-bottom: 1px solid var(--line);
}
.inbox-list {
  display: flex;
  flex-direction: column;
}
.inbox-item {
  display: block;
  width: 100%;
  text-align: right;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 6px;
  cursor: pointer;
}
.inbox-item:last-child {
  border-bottom: 0;
}
.inbox-item b {
  display: block;
  font-size: 13px;
}
.inbox-item small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.inbox-item .inbox-time {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  display: block;
}
.inbox-item.unread {
  background: color-mix(in srgb, var(--gold-strong) 7%, transparent);
}
.inbox-empty {
  padding: 22px 8px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.attachment-link {
  flex-wrap: wrap;
  max-width: 100%;
  align-items: baseline;
}
.attachment-name {
  font-weight: 600;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.attachment-meta {
  color: var(--muted);
  font-size: 0.76rem;
  flex-basis: 100%;
}
.archived-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}
.archived-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}
.archived-row small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
/* KAF-154 (FS1 item 6). Copy / download / print under every recovery-code panel; printing shows the
   codes and nothing else (body.printing-recovery is set only for the duration of window.print()). */
.recovery-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.recovery-status {
  align-self: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.recovery-status.success {
  color: var(--green);
}
.recovery-status.danger {
  color: var(--red);
}
@media print {
  body.printing-recovery * {
    visibility: hidden !important;
  }
  body.printing-recovery .print-target,
  body.printing-recovery .print-target * {
    visibility: visible !important;
  }
  body.printing-recovery .print-target {
    position: fixed;
    inset: 0 0 auto 0;
  }
}

/* KAF-157 (FS4 §4): the approval a link named. */
.deep-link-target {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 16px;
}

/* KAF-157 (FS4 §8): the bell's way to «إشعاراتي», and the card inside the account dialog. */
.inbox-foot {
  padding: 8px 6px 2px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.dialog .notification-card {
  margin: 15px 0;
}
.notification-card [data-tone='danger'] {
  color: var(--red);
}
.notification-card [data-tone='success'] {
  color: var(--green);
}
.approval-step-line {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.sync-row-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}
.sync-error {
  color: var(--red);
  margin: 0.2rem 0 0;
}
/* KAF-160 (FS7 §6): tokens the other sheets referenced and nothing declared; the assertive alert stack; the title button. */
:root {
  --accent: var(--gold);
  --soft: var(--surface-soft);
  --shadow-soft: var(--shadow-sm);
  --text: var(--ink);
}
.alert-region {
  bottom: 96px;
}
.toast-dismiss {
  background: none;
  border: 0;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
  position: absolute;
  inset-inline-end: 10px;
  top: 8px;
}
.toast {
  position: relative;
}
.task-open-button {
  font: inherit;
  color: inherit;
  padding: 0;
  text-align: start;
  cursor: pointer;
}
.task-open-button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
