
:root {
  --canvas: #f6f3ed;
  --canvas-deep: #ece9e1;
  --surface: #fffdf9;
  --surface-soft: #f7f4ee;
  --ink: #213641;
  --muted: #738084;
  --muted-dark: #52636a;
  --line: #e5e1d8;
  --line-dark: #d3d0c7;
  --coral: #f37d64;
  --coral-deep: #d85c49;
  --coral-soft: #ffe2d9;
  --teal: #74b7ad;
  --teal-deep: #3e8c84;
  --teal-soft: #dff1ed;
  --yellow: #f1c969;
  --yellow-soft: #fff1c8;
  --blue-soft: #e7eef7;
  --blue: #5b7ea6;
  --danger-soft: #ffe4e1;
  --shadow-sm: 0 2px 8px rgba(27, 47, 55, 0.04), 0 1px 2px rgba(27, 47, 55, 0.06);
  --shadow: 0 14px 36px rgba(27, 47, 55, 0.08), 0 2px 7px rgba(27, 47, 55, 0.05);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --sidebar: 242px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Bengali", sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--canvas); scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 100% 0, rgba(116, 183, 173, 0.1), transparent 31rem),
    radial-gradient(circle at 0 100%, rgba(243, 125, 100, 0.05), transparent 34rem),
    var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
a { color: inherit; }

:where(button, a, input, textarea, select):focus-visible {
  outline: 3px solid rgba(62, 140, 132, 0.55);
  outline-offset: 3px;
}

.modal:focus-visible {
  outline: 3px solid rgba(62, 140, 132, 0.45);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-180%);
  border-radius: 9px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  transition: transform 160ms ease;
}

.skip-link:focus { transform: translateY(0); }

.app-shell { min-height: 100vh; }

.app-frame { display: flex; min-height: 100vh; }

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex: 0 0 var(--sidebar);
  flex-direction: column;
  width: var(--sidebar);
  height: 100vh;
  padding: 25px 16px 18px;
  border-right: 1px solid rgba(222, 219, 210, 0.9);
  background: rgba(250, 248, 243, 0.77);
  backdrop-filter: blur(18px);
}

.brand-lockup { display: flex; align-items: center; gap: 10px; padding: 0 9px; text-decoration: none; }

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: var(--ink);
  color: var(--coral);
  box-shadow: 0 6px 13px rgba(33, 54, 65, 0.18);
}

.brand-mark svg { width: 21px; height: 21px; }
.brand-name { display: block; font-size: 16px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.brand-caption { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: 0.13em; line-height: 1.1; text-transform: uppercase; }

.demo-ribbon {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 28px 8px 18px;
  padding: 8px 10px;
  border: 1px solid rgba(215, 196, 137, 0.48);
  border-radius: 9px;
  background: rgba(255, 241, 200, 0.6);
  color: #856b2c;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demo-ribbon .dot, .status-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 99px; background: var(--yellow); }

.nav-label {
  margin: 12px 11px 8px;
  color: #a2aaaa;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav { display: grid; gap: 3px; }

.nav-item, .side-action {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted-dark);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.nav-item:hover, .side-action:hover { background: rgba(232, 237, 232, 0.72); color: var(--ink); }
.nav-item:active, .side-action:active { transform: scale(0.985); }
.nav-item.active { background: var(--ink); color: white; box-shadow: 0 7px 16px rgba(33, 54, 65, 0.16); }
.nav-item .nav-icon, .side-action .nav-icon { width: 17px; height: 17px; opacity: 0.82; }
.nav-item.active .nav-icon { color: var(--coral); opacity: 1; }
.nav-spacer { flex: 1; }
.sidebar-rule { height: 1px; margin: 14px 8px 12px; background: var(--line); }

.trust-link { color: var(--teal-deep); }
.trust-link .nav-icon { color: var(--teal-deep); }

.profile-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 4px 0;
  padding: 12px 9px 0;
  border-top: 1px solid var(--line);
}

.profile-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: var(--coral-soft);
  color: var(--coral-deep);
  font-size: 11px;
  font-weight: 800;
}

.profile-title { display: block; font-size: 11px; font-weight: 800; }
.profile-subtitle { display: block; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: 0.03em; }

.main-column { min-width: 0; flex: 1; }

.topbar {
  position: sticky;
  z-index: 8;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 0 42px;
  border-bottom: 1px solid rgba(225, 222, 213, 0.86);
  background: rgba(246, 243, 237, 0.82);
  backdrop-filter: blur(17px);
}

.crumb { color: var(--muted); font-size: 12px; }
.crumb strong { color: var(--ink); font-weight: 800; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

.topbar-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 253, 249, 0.76);
  color: var(--muted-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topbar-button:hover { border-color: var(--line-dark); color: var(--ink); }
.topbar-button .icon { width: 15px; height: 15px; }
.topbar-button.data-saver-on { border-color: rgba(62, 140, 132, 0.35); background: var(--teal-soft); color: var(--teal-deep); }
.lang-toggle { gap: 0; padding: 3px; text-transform: none; }
.lang-toggle span { padding: 4px 7px; border-radius: 6px; font-size: 11px; font-weight: 800; }
.lang-toggle span.active { background: var(--ink); color: white; }
.mobile-menu-button { display: none; }

.content { width: min(1320px, 100%); margin: 0 auto; padding: 44px 42px 72px; }
.content:focus { outline: none; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-eyebrow, .eyebrow { margin: 0 0 8px; color: var(--coral-deep); font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.11em; text-transform: uppercase; }
.page-heading h1, .hero-copy h1 { max-width: 760px; margin: 0; color: var(--ink); font-size: clamp(29px, 3.4vw, 48px); font-weight: 800; letter-spacing: -0.055em; line-height: 1.05; }
.page-heading p { max-width: 620px; margin: 11px 0 0; color: var(--muted-dark); font-size: 14px; line-height: 1.7; }
.heading-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(270px, 0.9fr);
  gap: 32px;
  min-height: 295px;
  overflow: hidden;
  padding: 38px 40px;
  border: 1px solid rgba(232, 218, 205, 0.7);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 83% 20%, rgba(243, 125, 100, 0.21), transparent 13rem),
    radial-gradient(circle at 82% 87%, rgba(116, 183, 173, 0.15), transparent 16rem),
    #fff8ef;
  box-shadow: var(--shadow);
}

.hero-card::after {
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 410px;
  height: 240px;
  border: 1px solid rgba(243, 125, 100, 0.18);
  border-radius: 50%;
  content: "";
  transform: rotate(-17deg);
}

.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 { max-width: 650px; font-size: clamp(33px, 4.4vw, 59px); }
.hero-copy h1 em { color: var(--coral-deep); font-style: normal; }
.hero-copy .hero-text { max-width: 570px; margin: 17px 0 23px; color: var(--muted-dark); font-size: 14px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-aside { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: flex-end; }

.signal-graphic { position: relative; width: min(100%, 335px); min-height: 180px; padding: 22px 22px 19px; border: 1px solid rgba(33, 54, 65, 0.1); border-radius: 20px; background: rgba(255, 253, 249, 0.65); box-shadow: 0 12px 20px rgba(86, 74, 65, 0.07); }
.signal-grid { position: absolute; inset: 0; opacity: 0.45; background-image: linear-gradient(rgba(33, 54, 65, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(33, 54, 65, 0.06) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(90deg, transparent, #000 28%, #000 76%, transparent); }
.signal-label { position: relative; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; }
.signal-label .live-dot { display: inline-flex; align-items: center; gap: 5px; color: var(--teal-deep); }
.signal-label .live-dot::before { width: 5px; height: 5px; border-radius: 99px; background: var(--teal); content: ""; }
.wave-svg { position: relative; display: block; width: 100%; height: 94px; margin: 8px 0 2px; }
.signal-footer { position: relative; display: flex; align-items: flex-end; justify-content: space-between; }
.signal-value { color: var(--ink); font-size: 23px; font-weight: 800; letter-spacing: -0.06em; }
.signal-value span { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 0; }
.signal-footnote { max-width: 100px; color: var(--muted); font-size: 9px; line-height: 1.35; text-align: right; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 41px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover { transform: translateY(-1px); }
.button .icon { width: 15px; height: 15px; }
.button-primary { background: var(--ink); color: white; box-shadow: 0 8px 13px rgba(33, 54, 65, 0.14); }
.button-primary:hover { background: #2d4855; box-shadow: 0 10px 18px rgba(33, 54, 65, 0.18); }
.button-coral { background: var(--coral); color: #fff; box-shadow: 0 8px 13px rgba(216, 92, 73, 0.16); }
.button-coral:hover { background: var(--coral-deep); }
.button-secondary { border-color: var(--line); background: rgba(255, 253, 249, 0.78); color: var(--ink); }
.button-secondary:hover { background: #fff; border-color: var(--line-dark); }
.button-quiet { min-height: 34px; padding: 7px 9px; color: var(--muted-dark); }
.button-quiet:hover { background: var(--surface-soft); }
.button-teal { border-color: rgba(62, 140, 132, 0.2); background: var(--teal-soft); color: var(--teal-deep); }
.button-teal:hover { background: #d2eae5; }
.button-danger { border-color: rgba(216, 92, 73, 0.22); background: var(--danger-soft); color: var(--coral-deep); }

.workspace-strip { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 17px 0 28px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 253, 249, 0.57); }
.workspace-strip .strip-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tiny-house { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 9px; background: var(--teal-soft); color: var(--teal-deep); }
.tiny-house .icon { width: 15px; height: 15px; }
.strip-title { display: block; color: var(--ink); font-size: 11px; font-weight: 800; }
.strip-subtitle { display: block; margin-top: 1px; color: var(--muted); font-size: 10px; }
.strip-subtitle .mono { font-family: var(--mono); font-size: 9px; }
.workspace-strip .button { flex: 0 0 auto; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card { display: flex; align-items: center; justify-content: space-between; min-height: 96px; padding: 18px 19px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 253, 249, 0.72); box-shadow: var(--shadow-sm); }
.stat-card .stat-label { margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-card .stat-value { color: var(--ink); font-size: 20px; font-weight: 800; letter-spacing: -0.05em; }
.stat-card .stat-meta { margin-top: 2px; color: var(--muted); font-family: var(--mono); font-size: 9px; }
.stat-icon { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 12px; }
.stat-icon .icon { width: 18px; height: 18px; }
.stat-icon.coral { background: var(--coral-soft); color: var(--coral-deep); }
.stat-icon.teal { background: var(--teal-soft); color: var(--teal-deep); }
.stat-icon.yellow { background: var(--yellow-soft); color: #9a782c; }

.dashboard-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 18px; }
.stack { display: grid; gap: 18px; align-content: start; }
.card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 253, 249, 0.78); box-shadow: var(--shadow-sm); }
.card.tinted { border-color: transparent; background: var(--ink); color: white; box-shadow: var(--shadow); }
.card.coral-tinted { border-color: rgba(243, 125, 100, 0.18); background: #fff0e7; }
.card.teal-tinted { border-color: rgba(116, 183, 173, 0.23); background: #edf8f5; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.card-title { color: var(--ink); font-size: 13px; font-weight: 800; letter-spacing: -0.02em; }
.tinted .card-title { color: white; }
.card-kicker { margin-top: 2px; color: var(--muted); font-size: 10px; }
.tinted .card-kicker { color: rgba(255,255,255,0.62); }
.card-link { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: var(--teal-deep); font-size: 10px; font-weight: 800; text-decoration: none; }
.card-link:hover { color: var(--ink); }
.card-link .icon { width: 12px; height: 12px; }

.progress-card { min-height: 282px; }
.progress-layout { display: flex; align-items: center; gap: 24px; }
.progress-ring { position: relative; display: grid; width: 148px; height: 148px; flex: 0 0 148px; place-items: center; border-radius: 50%; background: conic-gradient(var(--coral) 0 68%, #eee7de 68% 100%); transform: rotate(-18deg); }
.progress-ring::before { position: absolute; inset: 11px; border-radius: 50%; background: var(--surface); content: ""; }
.progress-ring-inner { position: relative; z-index: 1; display: grid; place-items: center; transform: rotate(18deg); }
.progress-number { color: var(--ink); font-size: 39px; font-weight: 800; letter-spacing: -0.08em; line-height: 1; }
.progress-number small { font-size: 18px; letter-spacing: -0.03em; }
.progress-label { margin-top: 4px; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: 0.04em; text-transform: uppercase; }
.progress-copy { min-width: 0; }
.progress-copy h3 { margin: 0 0 7px; color: var(--ink); font-size: 18px; font-weight: 800; letter-spacing: -0.05em; }
.progress-copy p { margin: 0 0 13px; color: var(--muted-dark); font-size: 11px; line-height: 1.6; }
.micro-note { display: flex; align-items: flex-start; gap: 7px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.45; }
.micro-note .icon { width: 14px; height: 14px; flex: 0 0 auto; color: var(--coral-deep); }

.action-list { display: grid; gap: 2px; }
.action-row { display: flex; align-items: flex-start; gap: 11px; padding: 11px 0; border-top: 1px solid var(--line); }
.action-row:first-child { padding-top: 0; border-top: 0; }
.priority-dot { width: 8px; height: 8px; flex: 0 0 8px; margin-top: 6px; border-radius: 99px; background: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }
.priority-dot.teal { background: var(--teal-deep); box-shadow: 0 0 0 4px var(--teal-soft); }
.priority-dot.yellow { background: #c79b3d; box-shadow: 0 0 0 4px var(--yellow-soft); }
.action-main { min-width: 0; flex: 1; }
.action-title { color: var(--ink); font-size: 11px; font-weight: 800; }
.action-desc { margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.action-row .button { flex: 0 0 auto; min-height: 29px; }

.event-card { min-height: 247px; }
.event-card .event-lead { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid #e4e8e8; border-radius: 13px; background: #f4f8f7; }
.event-badge { display: grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; border-radius: 12px; background: var(--coral-soft); color: var(--coral-deep); }
.event-badge .icon { width: 20px; height: 20px; }
.event-body { min-width: 0; flex: 1; }
.event-title-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.event-name { color: var(--ink); font-size: 12px; font-weight: 800; }
.event-magnitude { color: var(--coral-deep); font-family: var(--mono); font-size: 14px; font-weight: 500; }
.event-place { margin-top: 2px; color: var(--muted-dark); font-size: 10px; }
.event-meta-line { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; margin-top: 10px; color: var(--muted); font-family: var(--mono); font-size: 8px; }
.event-meta-line .meta-chip { display: inline-flex; align-items: center; gap: 4px; }
.event-meta-line .meta-chip .icon { width: 11px; height: 11px; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; min-height: 21px; padding: 3px 7px; border-radius: 99px; background: var(--yellow-soft); color: #856b2c; font-family: var(--mono); font-size: 8px; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; }
.status-pill.teal { background: var(--teal-soft); color: var(--teal-deep); }
.status-pill.coral { background: var(--coral-soft); color: var(--coral-deep); }
.status-pill.blue { background: var(--blue-soft); color: var(--blue); }
.status-pill.muted { background: #eeece7; color: var(--muted); }
.event-footnote { display: flex; gap: 6px; margin-top: 12px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.event-footnote .icon { width: 13px; height: 13px; flex: 0 0 auto; color: var(--teal-deep); }

.offline-card { display: flex; align-items: center; gap: 15px; min-height: 110px; }
.offline-icon { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 14px; background: var(--teal-soft); color: var(--teal-deep); }
.offline-icon .icon { width: 22px; height: 22px; }
.offline-copy { min-width: 0; flex: 1; }
.offline-copy h3 { margin: 0 0 4px; color: var(--ink); font-size: 13px; font-weight: 800; }
.offline-copy p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.offline-check { display: flex; align-items: center; gap: 5px; color: var(--teal-deep); font-family: var(--mono); font-size: 9px; white-space: nowrap; }
.offline-check .icon { width: 13px; height: 13px; }

.group-card { min-height: 160px; }
.group-members { display: flex; align-items: center; margin-top: 14px; }
.member-avatar { display: grid; width: 34px; height: 34px; margin-left: -6px; place-items: center; border: 3px solid var(--surface); border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 10px; font-weight: 800; }
.member-avatar:first-child { margin-left: 0; background: var(--coral-soft); color: var(--coral-deep); }
.member-avatar:nth-child(3) { background: var(--teal-soft); color: var(--teal-deep); }
.member-more { margin-left: 10px; color: var(--muted); font-size: 10px; }
.group-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.group-status { color: var(--muted); font-family: var(--mono); font-size: 9px; }

.trust-card { min-height: 126px; }
.trust-card-content { display: flex; align-items: flex-start; gap: 11px; }
.trust-shield { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 10px; background: var(--teal-soft); color: var(--teal-deep); }
.trust-shield .icon { width: 16px; height: 16px; }
.trust-card p { margin: 3px 0 10px; color: var(--muted); font-size: 10px; line-height: 1.55; }

.section-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 13px; }
.section-label h2 { margin: 0; color: var(--ink); font-size: 15px; font-weight: 800; letter-spacing: -0.04em; }
.section-label span { color: var(--muted); font-family: var(--mono); font-size: 9px; }

.callout { display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; border: 1px solid rgba(241, 201, 105, 0.48); border-radius: 13px; background: rgba(255, 241, 200, 0.54); color: #735f2e; }
.callout .icon { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; }
.callout strong { display: block; color: #715a1e; font-size: 11px; }
.callout p { margin: 3px 0 0; font-size: 10px; line-height: 1.5; }
.callout.coral { border-color: rgba(243, 125, 100, 0.25); background: var(--coral-soft); color: #845143; }
.callout.coral strong { color: var(--coral-deep); }
.callout.teal { border-color: rgba(116, 183, 173, 0.32); background: var(--teal-soft); color: #3e706a; }
.callout.teal strong { color: var(--teal-deep); }

.tabs { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 253, 249, 0.72); }
.tab { min-height: 32px; padding: 6px 11px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 800; }
.tab.active { background: var(--ink); color: white; box-shadow: 0 4px 8px rgba(33, 54, 65, 0.13); }

.assessment-top { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; align-items: stretch; }
.assessment-progress { display: flex; align-items: center; gap: 24px; }
.mini-ring { position: relative; display: grid; width: 106px; height: 106px; flex: 0 0 106px; place-items: center; border-radius: 50%; background: conic-gradient(var(--teal-deep) 0 var(--progress, 42%), #e6ece8 var(--progress, 42%) 100%); transform: rotate(-18deg); }
.mini-ring::before { position: absolute; inset: 9px; border-radius: 50%; background: var(--surface); content: ""; }
.mini-ring > div { position: relative; z-index: 1; transform: rotate(18deg); text-align: center; }
.mini-ring strong { display: block; color: var(--ink); font-size: 25px; font-weight: 800; letter-spacing: -0.07em; line-height: 1; }
.mini-ring span { color: var(--muted); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.assessment-progress h2 { margin: 0 0 5px; color: var(--ink); font-size: 20px; font-weight: 800; letter-spacing: -0.05em; }
.assessment-progress p { max-width: 520px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.context-card { display: grid; align-content: center; gap: 8px; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink); color: white; }
.context-card .context-label { color: rgba(255,255,255,0.54); font-family: var(--mono); font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; }
.context-card strong { font-size: 17px; font-weight: 800; letter-spacing: -0.04em; }
.context-card p { margin: 0; color: rgba(255,255,255,0.69); font-size: 10px; line-height: 1.5; }

.assessment-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr); gap: 18px; align-items: start; }
.question-list { display: grid; gap: 10px; }
.question-card { padding: 16px 17px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 253, 249, 0.82); box-shadow: var(--shadow-sm); }
.question-card.answered { border-color: rgba(116, 183, 173, 0.55); }
.question-top { display: flex; align-items: flex-start; gap: 12px; }
.question-index { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 9px; background: var(--surface-soft); color: var(--muted); font-family: var(--mono); font-size: 10px; }
.question-card.answered .question-index { background: var(--teal-soft); color: var(--teal-deep); }
.question-copy { min-width: 0; flex: 1; }
.question-copy h3 { margin: 0; color: var(--ink); font-size: 12px; font-weight: 800; }
.question-copy p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.answer-buttons { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 0 40px; }
.answer-button { min-height: 29px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted-dark); font-size: 9px; font-weight: 800; }
.answer-button:hover { border-color: var(--line-dark); }
.answer-button.selected { border-color: var(--teal-deep); background: var(--teal-soft); color: var(--teal-deep); }
.answer-button.selected.negative { border-color: var(--coral-deep); background: var(--coral-soft); color: var(--coral-deep); }
.answer-button.selected.unknown { border-color: #c7a858; background: var(--yellow-soft); color: #856b2c; }
.assessment-side { display: grid; gap: 18px; }
.priority-card { padding: 19px; border: 1px solid rgba(243, 125, 100, 0.21); border-radius: var(--radius); background: #fff0e7; }
.priority-card h3 { margin: 0; color: var(--ink); font-size: 13px; font-weight: 800; }
.priority-card > p { margin: 5px 0 16px; color: var(--muted-dark); font-size: 10px; line-height: 1.55; }
.priority-item { display: flex; gap: 9px; padding: 11px 0; border-top: 1px solid rgba(243, 125, 100, 0.2); }
.priority-item .number { display: grid; width: 21px; height: 21px; flex: 0 0 21px; place-items: center; border-radius: 7px; background: var(--coral); color: #fff; font-family: var(--mono); font-size: 9px; }
.priority-item strong { display: block; color: var(--ink); font-size: 10px; }
.priority-item span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.no-score-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 253, 249, 0.72); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toggle-row strong { display: block; color: var(--ink); font-size: 11px; }
.toggle-row span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.toggle { position: relative; width: 38px; height: 22px; flex: 0 0 38px; border: 0; border-radius: 99px; background: var(--line-dark); }
.toggle::after { position: absolute; top: 4px; left: 4px; width: 14px; height: 14px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(33,54,65,0.15); content: ""; transition: transform 150ms ease; }
.toggle.on { background: var(--teal-deep); }
.toggle.on::after { transform: translateX(16px); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--muted-dark); font-size: 10px; font-weight: 800; }
.field small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.input, .textarea, .select { width: 100%; min-height: 39px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; outline: none; background: var(--surface); color: var(--ink); font-size: 11px; }
.textarea { min-height: 80px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--teal-deep); box-shadow: 0 0 0 3px rgba(116, 183, 173, 0.2); }
.plan-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.85fr); gap: 18px; align-items: start; }
.plan-main { display: grid; gap: 18px; }
.plan-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 253, 249, 0.82); }
.plan-card h2 { margin: 0 0 5px; color: var(--ink); font-size: 15px; font-weight: 800; letter-spacing: -0.03em; }
.plan-card > p { margin: 0 0 17px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.role-list { display: grid; gap: 8px; }
.role-row { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.role-icon { display: grid; width: 26px; height: 26px; flex: 0 0 26px; place-items: center; border-radius: 8px; background: var(--blue-soft); color: var(--blue); }
.role-icon .icon { width: 13px; height: 13px; }
.role-row strong { display: block; color: var(--ink); font-size: 10px; }
.role-row span { display: block; color: var(--muted); font-size: 9px; }
.role-row .button { margin-left: auto; }
.plan-side { display: grid; gap: 18px; }
.version-card { padding: 20px; border: 1px solid rgba(116, 183, 173, 0.28); border-radius: var(--radius); background: var(--teal-soft); }
.version-card .version-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.version-card strong { color: var(--ink); font-size: 17px; letter-spacing: -0.05em; }
.version-card .version-number { color: var(--teal-deep); font-family: var(--mono); font-size: 10px; }
.version-card p { margin: 8px 0 13px; color: #4f736e; font-size: 10px; line-height: 1.55; }
.timeline { display: grid; gap: 0; }
.timeline-row { display: flex; gap: 10px; padding-bottom: 14px; }
.timeline-rail { position: relative; width: 12px; flex: 0 0 12px; }
.timeline-rail::before { position: absolute; top: 5px; left: 3px; width: 6px; height: 6px; border-radius: 99px; background: var(--teal-deep); content: ""; }
.timeline-row:not(:last-child) .timeline-rail::after { position: absolute; top: 12px; bottom: -1px; left: 5px; width: 1px; background: #b6d7d1; content: ""; }
.timeline-row strong { display: block; color: var(--ink); font-size: 10px; }
.timeline-row span { display: block; margin-top: 2px; color: var(--muted); font-family: var(--mono); font-size: 8px; }
.plan-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 4px; }

.checklist-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border: 1px solid rgba(243, 125, 100, 0.23); border-radius: var(--radius); background: #fff0e7; }
.checklist-header h2 { margin: 0; color: var(--ink); font-size: 18px; letter-spacing: -0.05em; }
.checklist-header p { margin: 5px 0 0; color: var(--muted-dark); font-size: 10px; line-height: 1.5; }
.checklist-progress { text-align: right; }
.checklist-progress strong { display: block; color: var(--coral-deep); font-size: 26px; letter-spacing: -0.07em; }
.checklist-progress span { color: var(--muted); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.checklist-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 18px; }
.kit-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 253, 249, 0.82); box-shadow: var(--shadow-sm); }
.kit-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.kit-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 10px; background: var(--surface-soft); color: var(--coral-deep); }
.kit-icon .icon { width: 16px; height: 16px; }
.kit-card h3 { margin: 0; color: var(--ink); font-size: 12px; font-weight: 800; }
.kit-card-header span { display: block; margin-top: 1px; color: var(--muted); font-size: 9px; }
.kit-items { display: grid; gap: 7px; }
.kit-item { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 5px 7px; border: 1px solid transparent; border-radius: 8px; background: var(--surface-soft); }
.kit-item.done { border-color: rgba(116, 183, 173, 0.25); background: var(--teal-soft); }
.kit-checkbox { display: grid; width: 19px; height: 19px; flex: 0 0 19px; place-items: center; border: 1px solid var(--line-dark); border-radius: 6px; background: var(--surface); color: white; }
.kit-item.done .kit-checkbox { border-color: var(--teal-deep); background: var(--teal-deep); }
.kit-checkbox .icon { width: 12px; height: 12px; }
.kit-item span { min-width: 0; flex: 1; color: var(--ink); font-size: 10px; font-weight: 600; }
.kit-item small { color: var(--muted); font-family: var(--mono); font-size: 8px; }
.catalog-note { margin-top: 17px; color: var(--muted); font-size: 9px; line-height: 1.45; }

.feed-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 253, 249, 0.65); }
.feed-toolbar-left { display: flex; align-items: center; gap: 10px; }
.source-avatar { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; background: var(--blue-soft); color: var(--blue); }
.source-avatar .icon { width: 15px; height: 15px; }
.feed-toolbar strong { display: block; color: var(--ink); font-size: 10px; }
.feed-toolbar span { display: block; margin-top: 1px; color: var(--muted); font-size: 9px; }
.feed-list { display: grid; gap: 12px; }
.feed-event { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 253, 249, 0.82); box-shadow: var(--shadow-sm); }
.feed-event.demo-event { border-color: rgba(241, 201, 105, 0.52); }
.feed-event-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 17px; }
.feed-event-name { display: flex; gap: 11px; }
.feed-event-name .event-badge { width: 42px; height: 42px; flex-basis: 42px; }
.feed-event h2 { margin: 0; color: var(--ink); font-size: 15px; font-weight: 800; letter-spacing: -0.04em; }
.feed-event .place-line { margin-top: 3px; color: var(--muted); font-size: 10px; }
.feed-event .magnitude-large { color: var(--coral-deep); font-family: var(--mono); font-size: 26px; line-height: 1; }
.feed-details { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 19px 0 0; padding-top: 15px; border-top: 1px solid var(--line); }
.detail-cell label { display: block; margin-bottom: 4px; color: var(--muted); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.detail-cell strong { display: block; color: var(--ink); font-size: 10px; font-weight: 800; }
.detail-cell span { display: block; margin-top: 1px; color: var(--muted); font-size: 8px; }
.feed-event-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 18px; }
.feed-event-footer p { max-width: 640px; margin: 0; color: var(--muted-dark); font-size: 10px; line-height: 1.55; }
.history-strip { display: flex; align-items: center; gap: 5px; }
.history-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-dark); }
.history-dot.active { background: var(--coral); box-shadow: 0 0 0 3px var(--coral-soft); }
.history-legend { margin-left: 4px; color: var(--muted); font-family: var(--mono); font-size: 8px; }
.known-unknown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.known-box { padding: 12px; border-radius: 10px; background: var(--teal-soft); }
.known-box.unknown { background: var(--yellow-soft); }
.known-box h3 { margin: 0 0 5px; color: var(--teal-deep); font-family: var(--mono); font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; }
.known-box.unknown h3 { color: #856b2c; }
.known-box p { margin: 0; color: var(--muted-dark); font-size: 9px; line-height: 1.5; }

.checkin-hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: center; padding: 29px 31px; border: 1px solid rgba(116, 183, 173, 0.25); border-radius: var(--radius-lg); background: linear-gradient(120deg, #e8f6f2, #f7fbf4); }
.checkin-hero h2 { margin: 0; color: var(--ink); font-size: 25px; font-weight: 800; letter-spacing: -0.06em; }
.checkin-hero p { max-width: 560px; margin: 9px 0 16px; color: var(--muted-dark); font-size: 11px; line-height: 1.65; }
.checkin-visual { position: relative; min-height: 147px; overflow: hidden; padding: 20px; border-radius: 17px; background: var(--ink); }
.checkin-visual::before, .checkin-visual::after { position: absolute; border: 1px solid rgba(116, 183, 173, 0.28); border-radius: 50%; content: ""; }
.checkin-visual::before { inset: 19px 34px; }
.checkin-visual::after { inset: 39px 65px; }
.checkin-radar { position: absolute; top: 50%; left: 50%; display: grid; width: 55px; height: 55px; place-items: center; transform: translate(-50%, -50%); border-radius: 50%; background: var(--coral); color: white; box-shadow: 0 0 0 9px rgba(243, 125, 100, 0.13), 0 0 0 20px rgba(243, 125, 100, 0.07); }
.checkin-radar .icon { width: 21px; height: 21px; }
.checkin-visual span { position: absolute; right: 15px; bottom: 11px; color: rgba(255,255,255,0.56); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.checkin-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(270px, 0.9fr); gap: 18px; align-items: start; margin-top: 18px; }
.status-choices { display: grid; gap: 9px; }
.status-choice { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-align: left; }
.status-choice:hover { border-color: var(--line-dark); background: #fff; }
.status-choice.selected { border-color: var(--teal-deep); background: var(--teal-soft); }
.status-choice .choice-icon { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; border-radius: 10px; background: var(--surface-soft); color: var(--muted-dark); }
.status-choice.selected .choice-icon { background: white; color: var(--teal-deep); }
.status-choice.warn .choice-icon { color: var(--coral-deep); }
.status-choice .choice-icon .icon { width: 16px; height: 16px; }
.status-choice strong { display: block; font-size: 11px; }
.status-choice span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.privacy-panel { display: grid; gap: 15px; }
.privacy-panel h3 { margin: 0; color: var(--ink); font-size: 13px; font-weight: 800; }
.privacy-panel p { margin: -8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.privacy-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 41px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.privacy-option.selected { border-color: var(--teal-deep); background: var(--teal-soft); }
.privacy-option strong { display: block; color: var(--ink); font-size: 10px; }
.privacy-option span { display: block; color: var(--muted); font-size: 8px; }
.radio { width: 16px; height: 16px; flex: 0 0 16px; border: 1px solid var(--line-dark); border-radius: 50%; background: white; }
.privacy-option.selected .radio { border: 4px solid var(--teal-deep); }
.assistance-note { padding: 12px; border-radius: 10px; background: var(--coral-soft); color: #845143; font-size: 9px; line-height: 1.5; }
.assistance-note strong { display: block; margin-bottom: 2px; color: var(--coral-deep); }
.checkin-footer { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 17px; }
.checkin-history { display: grid; gap: 7px; margin-top: 15px; }
.history-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.history-row strong { color: var(--ink); font-size: 10px; }
.history-row span { color: var(--muted); font-family: var(--mono); font-size: 8px; }

.resources-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.view-toggle { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 253, 249, 0.7); }
.view-toggle button { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 5px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 9px; font-weight: 800; }
.view-toggle button.active { background: var(--ink); color: white; }
.view-toggle .icon { width: 12px; height: 12px; }
.resource-layout { display: grid; grid-template-columns: 0.76fr 1.24fr; gap: 16px; align-items: start; }
.map-card { position: relative; min-height: 446px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #e9f1ee; }
.map-card::before { position: absolute; inset: 0; opacity: 0.6; background-image: linear-gradient(30deg, transparent 48%, rgba(96, 152, 142, 0.14) 49%, rgba(96, 152, 142, 0.14) 51%, transparent 52%), linear-gradient(110deg, transparent 48%, rgba(96, 152, 142, 0.12) 49%, rgba(96, 152, 142, 0.12) 51%, transparent 52%); background-size: 116px 100px, 149px 128px; content: ""; }
.map-card::after { position: absolute; inset: 15% 9%; border: 1px dashed rgba(62, 140, 132, 0.38); border-radius: 47% 56% 42% 61%; content: ""; transform: rotate(-11deg); }
.map-label { position: absolute; z-index: 1; top: 16px; left: 16px; padding: 6px 9px; border: 1px solid rgba(255,255,255,0.65); border-radius: 7px; background: rgba(255,255,255,0.72); color: var(--muted-dark); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.map-note { position: absolute; z-index: 1; right: 15px; bottom: 15px; left: 15px; padding: 11px 12px; border: 1px solid rgba(255,255,255,0.7); border-radius: 10px; background: rgba(255,253,249,0.8); color: var(--muted-dark); font-size: 9px; line-height: 1.45; }
.map-note strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 10px; }
.map-pin { position: absolute; z-index: 2; display: grid; width: 30px; height: 30px; place-items: center; border: 3px solid rgba(255,255,255,0.9); border-radius: 50% 50% 50% 0; background: var(--coral); color: white; box-shadow: 0 5px 10px rgba(33,54,65,0.14); transform: rotate(-45deg); }
.map-pin .icon { width: 13px; height: 13px; transform: rotate(45deg); }
.map-pin.one { top: 36%; left: 42%; }
.map-pin.two { top: 52%; left: 68%; background: var(--teal-deep); }
.map-pin.three { top: 63%; left: 28%; background: #c89f42; }
.resource-list { display: grid; gap: 11px; }
.resource-card { padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255, 253, 249, 0.82); box-shadow: var(--shadow-sm); }
.resource-card-top { display: flex; align-items: flex-start; gap: 11px; }
.resource-icon { display: grid; width: 35px; height: 35px; flex: 0 0 35px; place-items: center; border-radius: 11px; background: var(--blue-soft); color: var(--blue); }
.resource-icon.teal { background: var(--teal-soft); color: var(--teal-deep); }
.resource-icon.yellow { background: var(--yellow-soft); color: #9a782c; }
.resource-icon .icon { width: 17px; height: 17px; }
.resource-copy { min-width: 0; flex: 1; }
.resource-copy h3 { margin: 0; color: var(--ink); font-size: 12px; font-weight: 800; }
.resource-copy p { margin: 3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.resource-card .resource-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 13px; margin: 13px 0 0; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 8px; }
.resource-meta span { display: inline-flex; align-items: center; gap: 4px; }
.resource-meta .icon { width: 11px; height: 11px; }
.resource-meta .status-dot { width: 5px; height: 5px; flex-basis: 5px; background: #c79b3d; }

.library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.library-card { display: flex; flex-direction: column; min-height: 254px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 253, 249, 0.8); box-shadow: var(--shadow-sm); }
.library-card .library-icon { display: grid; width: 37px; height: 37px; margin-bottom: 18px; place-items: center; border-radius: 12px; background: var(--coral-soft); color: var(--coral-deep); }
.library-card:nth-child(2) .library-icon { background: var(--teal-soft); color: var(--teal-deep); }
.library-card:nth-child(3) .library-icon { background: var(--yellow-soft); color: #9a782c; }
.library-icon .icon { width: 19px; height: 19px; }
.library-card h2 { margin: 0; color: var(--ink); font-size: 15px; font-weight: 800; letter-spacing: -0.04em; }
.library-card p { margin: 7px 0 17px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.library-meta { display: grid; gap: 5px; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line); }
.library-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-family: var(--mono); font-size: 8px; }
.library-meta-row strong { color: var(--ink); font-weight: 500; }
.library-action { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: 16px; }
.library-action .button { min-height: 31px; }
.demo-warning { margin-bottom: 17px; }

.learn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.learn-card { display: flex; flex-direction: column; min-height: 188px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 253, 249, 0.8); }
.learn-card .learn-number { color: var(--coral-deep); font-family: var(--mono); font-size: 10px; }
.learn-card h2 { margin: 20px 0 6px; color: var(--ink); font-size: 16px; font-weight: 800; letter-spacing: -0.04em; }
.learn-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.learn-card .card-link { margin-top: auto; padding-top: 16px; }

.operator-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.ops-stat { padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,253,249,0.75); }
.ops-stat .ops-label { color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; }
.ops-stat strong { display: block; margin-top: 7px; color: var(--ink); font-size: 23px; letter-spacing: -0.07em; }
.ops-stat span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.ops-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.85fr); gap: 18px; align-items: start; }
.ops-table { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,253,249,0.82); }
.ops-table-header { display: flex; align-items: center; justify-content: space-between; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.ops-table-header h2 { margin: 0; color: var(--ink); font-size: 13px; font-weight: 800; }
.ops-table-header span { color: var(--muted); font-family: var(--mono); font-size: 8px; }
.source-row { display: grid; grid-template-columns: 1.25fr 0.75fr 0.8fr auto; align-items: center; gap: 12px; padding: 13px 19px; border-bottom: 1px solid var(--line); }
.source-row:last-child { border-bottom: 0; }
.source-name strong { display: block; color: var(--ink); font-size: 10px; }
.source-name span { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.source-health { display: flex; align-items: center; gap: 6px; color: var(--teal-deep); font-family: var(--mono); font-size: 8px; }
.source-health.warn { color: #9a782c; }
.source-health .status-dot { background: currentColor; }
.source-time { color: var(--muted); font-family: var(--mono); font-size: 8px; }
.conflict-card { padding: 19px; border: 1px solid rgba(243,125,100,0.27); border-radius: var(--radius); background: #fff0e7; }
.conflict-card h2 { margin: 0; color: var(--ink); font-size: 13px; font-weight: 800; }
.conflict-card > p { margin: 6px 0 15px; color: var(--muted-dark); font-size: 10px; line-height: 1.55; }
.conflict-row { padding: 12px; border: 1px solid rgba(243,125,100,0.21); border-radius: 10px; background: rgba(255,253,249,0.68); }
.conflict-row strong { display: block; color: var(--ink); font-size: 10px; }
.conflict-row span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.ops-actions { display: grid; gap: 10px; margin-top: 18px; }
.ops-action { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.ops-action .ops-action-icon { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; background: var(--surface-soft); color: var(--muted-dark); }
.ops-action .icon { width: 14px; height: 14px; }
.ops-action strong { display: block; color: var(--ink); font-size: 10px; }
.ops-action span { display: block; margin-top: 1px; color: var(--muted); font-size: 8px; }
.ops-action .button { margin-left: auto; min-height: 28px; padding: 6px 8px; }
.kill-switch { padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink); color: white; }
.kill-switch h2 { margin: 0; font-size: 13px; }
.kill-switch p { margin: 5px 0 13px; color: rgba(255,255,255,0.62); font-size: 9px; line-height: 1.5; }
.kill-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.12); }
.kill-switch-row span { font-size: 9px; font-weight: 700; }
.kill-switch .toggle { background: rgba(255,255,255,0.2); }
.kill-switch .toggle.on { background: var(--coral); }

.corrections-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.78fr); gap: 18px; align-items: start; }
.correction-form { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,253,249,0.8); }
.correction-form h2 { margin: 0 0 5px; color: var(--ink); font-size: 16px; font-weight: 800; letter-spacing: -0.04em; }
.correction-form > p { margin: 0 0 18px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.correction-form .button { margin-top: 15px; }
.correction-history { display: grid; gap: 10px; }
.correction-entry { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,253,249,0.78); }
.correction-entry-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.correction-entry strong { color: var(--ink); font-size: 10px; }
.correction-entry p { margin: 7px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.correction-entry small { display: block; margin-top: 9px; color: var(--muted); font-family: var(--mono); font-size: 8px; }

.empty-state { display: grid; min-height: 220px; place-items: center; padding: 30px; border: 1px dashed var(--line-dark); border-radius: var(--radius); color: var(--muted); text-align: center; }
.empty-state .empty-icon { display: grid; width: 42px; height: 42px; margin: 0 auto 10px; place-items: center; border-radius: 13px; background: var(--surface-soft); color: var(--muted); }
.empty-state h2 { margin: 0; color: var(--ink); font-size: 14px; }
.empty-state p { max-width: 360px; margin: 5px 0 0; font-size: 10px; line-height: 1.5; }

.modal-backdrop { position: fixed; z-index: 40; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(26, 40, 46, 0.38); backdrop-filter: blur(5px); }
.modal { width: min(620px, 100%); max-height: min(760px, calc(100vh - 36px)); overflow: auto; padding: 24px; border: 1px solid rgba(255,255,255,0.24); border-radius: 20px; background: var(--surface); box-shadow: 0 30px 80px rgba(22,36,43,0.25); }
.modal.wide { width: min(760px, 100%); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.modal-header h2 { margin: 0; color: var(--ink); font-size: 20px; font-weight: 800; letter-spacing: -0.05em; }
.modal-header p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.modal-close { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--muted-dark); }
.modal-close:hover { background: var(--surface-soft); color: var(--ink); }
.modal-close .icon { width: 15px; height: 15px; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.trust-cell { padding: 12px; border-radius: 10px; background: var(--surface-soft); }
.trust-cell label { display: block; color: var(--muted); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.trust-cell strong { display: block; margin-top: 4px; color: var(--ink); font-size: 10px; }
.trust-explainer { margin-top: 14px; padding: 13px; border-radius: 10px; background: var(--teal-soft); color: #4f736e; font-size: 10px; line-height: 1.55; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.detail-history { display: grid; gap: 9px; }
.detail-history-row { display: flex; align-items: flex-start; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.detail-history-row .history-state { min-width: 78px; color: var(--coral-deep); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.detail-history-row p { margin: 0; color: var(--muted-dark); font-size: 9px; line-height: 1.45; }
.modal .callout { margin-top: 15px; }

.toast-region { position: fixed; z-index: 80; right: 20px; bottom: 20px; display: grid; gap: 8px; width: min(350px, calc(100% - 40px)); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 9px; padding: 12px 13px; border: 1px solid rgba(116, 183, 173, 0.35); border-radius: 12px; background: var(--ink); color: white; box-shadow: var(--shadow); animation: toast-in 220ms ease both; pointer-events: auto; }
.toast .icon { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; color: var(--teal); }
.toast strong { display: block; font-size: 10px; }
.toast span { display: block; margin-top: 2px; color: rgba(255,255,255,0.65); font-size: 9px; line-height: 1.4; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.bottom-nav { display: none; }
.bn { font-family: "Noto Sans Bengali", var(--sans); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@media (max-width: 1120px) {
  :root { --sidebar: 218px; }
  .topbar, .content { padding-right: 28px; padding-left: 28px; }
  .hero-card { gap: 22px; padding: 31px; }
  .hero-copy h1 { font-size: clamp(32px, 4.1vw, 50px); }
  .dashboard-grid, .plan-layout, .checkin-layout, .resource-layout, .ops-grid, .corrections-layout { grid-template-columns: 1fr; }
  .map-card { min-height: 320px; }
}

@media (max-width: 860px) {
  .sidebar { display: none; }
  .topbar { padding: 0 20px; }
  .mobile-menu-button { display: inline-flex; }
  .crumb { display: none; }
  .content { padding: 31px 20px 82px; }
  .hero-card { grid-template-columns: 1fr; min-height: auto; }
  .hero-aside { justify-content: flex-start; }
  .signal-graphic { max-width: 420px; }
  .assessment-top { grid-template-columns: 1fr; }
  .assessment-grid { grid-template-columns: 1fr; }
  .assessment-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checklist-grid, .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learn-grid { grid-template-columns: 1fr; }
  .operator-summary { grid-template-columns: repeat(2, 1fr); }
  .bottom-nav { position: fixed; z-index: 9; right: 12px; bottom: 12px; left: 12px; display: flex; align-items: center; justify-content: space-around; padding: 7px; border: 1px solid rgba(222,219,210,0.94); border-radius: 16px; background: rgba(250,248,243,0.92); box-shadow: 0 10px 28px rgba(27,47,55,0.12); backdrop-filter: blur(18px); }
  .bottom-nav .nav-item { display: grid; width: auto; min-width: 55px; justify-items: center; gap: 3px; padding: 7px 8px; font-size: 8px; text-align: center; }
  .bottom-nav .nav-item .nav-icon { width: 16px; height: 16px; }
}

@media (max-width: 620px) {
  body { font-size: 13px; }
  .topbar { min-height: 62px; padding: 0 14px; }
  .topbar-actions { gap: 4px; }
  .topbar-button { min-height: 31px; padding: 6px 7px; font-size: 8px; }
  .topbar-button .button-label { display: none; }
  .lang-toggle span { padding: 4px 5px; font-size: 10px; }
  .content { padding: 24px 14px 86px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 21px; }
  .page-heading h1 { font-size: 31px; }
  .heading-actions { justify-content: flex-start; }
  .hero-card { gap: 21px; padding: 24px 20px; border-radius: 21px; }
  .hero-copy h1 { font-size: 36px; }
  .hero-copy .hero-text { font-size: 12px; }
  .hero-actions .button { width: 100%; }
  .signal-graphic { min-height: 156px; padding: 17px; }
  .wave-svg { height: 72px; }
  .workspace-strip { align-items: flex-start; flex-direction: column; margin: 13px 0 22px; padding: 12px; }
  .workspace-strip .button { width: 100%; }
  .stats-grid { grid-template-columns: 1fr; gap: 9px; }
  .stat-card { min-height: 80px; }
  .card { padding: 17px; border-radius: 15px; }
  .progress-layout { align-items: flex-start; flex-direction: column; gap: 19px; }
  .progress-ring { width: 124px; height: 124px; flex-basis: 124px; }
  .progress-ring::before { inset: 9px; }
  .progress-copy h3 { font-size: 17px; }
  .action-row { gap: 9px; }
  .action-row .button { display: none; }
  .event-title-line { align-items: flex-start; flex-direction: column; gap: 4px; }
  .offline-card { align-items: flex-start; }
  .offline-check { align-self: flex-end; }
  .assessment-progress { align-items: flex-start; flex-direction: column; gap: 16px; }
  .assessment-side { grid-template-columns: 1fr; }
  .answer-buttons { margin-left: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .plan-footer, .checkin-footer { align-items: stretch; flex-direction: column; }
  .plan-footer .button, .checkin-footer .button { width: 100%; }
  .checklist-header { align-items: flex-start; flex-direction: column; }
  .checklist-progress { text-align: left; }
  .checklist-grid, .library-grid, .known-unknown { grid-template-columns: 1fr; }
  .feed-toolbar, .resources-toolbar { align-items: flex-start; flex-direction: column; }
  .feed-event-top { align-items: flex-start; flex-direction: column; }
  .feed-event .magnitude-large { order: -1; }
  .feed-details { grid-template-columns: repeat(2, 1fr); }
  .feed-event-footer { align-items: flex-start; flex-direction: column; }
  .checkin-hero { grid-template-columns: 1fr; padding: 22px 19px; }
  .checkin-hero h2 { font-size: 23px; }
  .checkin-visual { min-height: 125px; }
  .map-card { min-height: 270px; }
  .source-row { grid-template-columns: 1fr auto; gap: 7px; }
  .source-health { grid-column: 1; }
  .source-time { grid-column: 1; }
  .source-row > .button { grid-column: 2; grid-row: 1 / span 2; }
  .operator-summary { gap: 8px; }
  .ops-stat { padding: 13px; }
  .ops-stat strong { font-size: 20px; }
  .trust-grid { grid-template-columns: 1fr; }
  .modal { padding: 19px; }
  .bottom-nav .nav-item { min-width: 49px; padding-right: 4px; padding-left: 4px; }
  .bottom-nav .nav-item:nth-child(n+6) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .sidebar, .topbar, .bottom-nav, .heading-actions, .hero-actions, .toast-region, .button, .workspace-strip { display: none !important; }
  .content { padding: 0; }
  .app-frame { display: block; }
  .main-column { width: 100%; }
  .plan-layout { display: block; }
  .plan-side { margin-top: 20px; }
  body { background: white; }
}
