:root {
  color-scheme: light;
  --ink: #121212;
  --muted: #6e6e73;
  --line: rgba(22, 22, 22, 0.1);
  --shell: rgba(255, 255, 255, 0.78);
  --paper: rgba(255, 255, 255, 0.72);
  --shadow: 0 28px 80px rgba(35, 33, 46, 0.12);
  --blue: #646bff;
  --pink: #f548ac;
  --green: #6cd543;
  --cyan: #10c8cf;
  --orange: #ff9a45;
  --radius-xl: 34px;
  --radius-lg: 25px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: #f7f6f5;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  color: var(--ink);
  font-family:
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background-color: #f7f6f5;
  background-image: url("./assets/dashboard-background-desktop.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(100, 107, 255, 0.32);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: #fff;
  background: #111;
  border-radius: 10px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  width: min(1720px, 100%);
  min-height: calc(100vh - 40px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  background: var(--shell);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px) saturate(1.12);
  -webkit-backdrop-filter: blur(28px) saturate(1.12);
}

.sidebar {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 34px 26px 28px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.54);
}

.brand-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-logo {
  width: 165px;
  height: 56px;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: multiply;
}

.product-name {
  margin-left: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sidebar-nav {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: 62px;
}

.nav-item {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  gap: 13px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  font-weight: 720;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.nav-item:hover {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.68);
}

.nav-item.active {
  border-color: rgba(118, 126, 255, 0.2);
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.82), rgba(190, 199, 255, 0.54)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 26px rgba(103, 110, 235, 0.14);
}

.nav-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  font-size: 1.3rem;
}

.sidebar-glow {
  position: absolute;
  right: -70px;
  bottom: 70px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 45%, rgba(255, 174, 239, 0.56), rgba(165, 207, 255, 0.28) 48%, transparent 72%);
  filter: blur(6px);
  opacity: 0.8;
  pointer-events: none;
}

.sidebar-actions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.utility-button,
.text-button,
.black-button,
.secondary-button,
.icon-button,
.text-link {
  border: 0;
  cursor: pointer;
}

.utility-button {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  font-weight: 750;
}

.text-button {
  padding: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 0.75rem;
}

.dashboard {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(510px, 0.95fr) minmax(570px, 1.05fr);
}

.activity-column,
.insight-column {
  min-width: 0;
  padding: 38px 34px 34px;
}

.activity-column {
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.3);
}

.insight-column {
  background: rgba(255, 255, 255, 0.46);
}

.activity-header {
  display: flex;
  min-height: 265px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.activity-header h1 {
  margin: 0;
  font-size: clamp(5rem, 7.2vw, 8.4rem);
  font-weight: 650;
  letter-spacing: -0.075em;
  line-height: 0.72;
}

.header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
}

.header-actions time {
  font-size: 0.9rem;
  font-weight: 750;
}

.primary-action {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 0;
  border-radius: 19px;
  color: #fff;
  background: #111;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
  font-size: 2rem;
  font-weight: 300;
  cursor: pointer;
  transition: transform 160ms ease;
}

.primary-action:hover {
  transform: translateY(-3px) rotate(3deg);
}

.section-heading,
.insight-topbar,
.planner-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2,
.insight-topbar h2,
.planner-header h2,
.decision-strip h2,
.dialog-header h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.count-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.priority-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.priority-card {
  --accent: var(--blue);
  --wash-a: rgba(129, 135, 255, 0.46);
  --wash-b: rgba(213, 218, 255, 0.32);
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 22px 22px 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, white);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 82% 32%, var(--wash-a), transparent 42%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.86), var(--wash-b));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 14px 30px color-mix(in srgb, var(--accent) 13%, transparent);
  backdrop-filter: blur(22px) saturate(1.2);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.priority-card:hover {
  z-index: 3;
  transform: translateY(-5px) scale(1.008);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 22px 40px color-mix(in srgb, var(--accent) 20%, transparent);
}

.priority-card.pink {
  --accent: var(--pink);
  --wash-a: rgba(255, 114, 194, 0.45);
  --wash-b: rgba(255, 215, 236, 0.4);
}

.priority-card.green {
  --accent: var(--green);
  --wash-a: rgba(144, 235, 91, 0.44);
  --wash-b: rgba(223, 255, 192, 0.42);
}

.priority-card.cyan {
  --accent: var(--cyan);
  --wash-a: rgba(52, 225, 230, 0.4);
  --wash-b: rgba(202, 255, 255, 0.44);
}

.priority-card.orange {
  --accent: var(--orange);
  --wash-a: rgba(255, 168, 77, 0.42);
  --wash-b: rgba(255, 229, 198, 0.45);
}

.priority-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 17px;
}

.priority-symbol {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: inset 0 1px 0 white;
  font-size: 1.5rem;
  font-weight: 800;
}

.priority-copy h3 {
  margin: 0 0 5px;
  font-size: 1.18rem;
  letter-spacing: -0.025em;
}

.priority-copy p {
  margin: 0;
  font-size: 0.86rem;
}

.priority-value {
  min-width: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 white;
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
}

.progress-track {
  height: 7px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
}

.progress-track span {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 62%, transparent);
}

.black-button {
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  background: #141414;
  font-size: 0.82rem;
  font-weight: 750;
}

.kpi-list {
  display: grid;
  gap: 12px;
  margin-top: 23px;
}

.kpi-row {
  display: grid;
  min-height: 104px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 15px 18px;
  border: 1px solid rgba(25, 25, 25, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.kpi-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--kpi-color);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--kpi-color) 25%, transparent);
  font-size: 1.4rem;
  font-weight: 800;
}

.kpi-copy h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.kpi-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.progress-ring {
  --ring-size: 60px;
  display: grid;
  width: var(--ring-size);
  height: var(--ring-size);
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--kpi-color) calc(var(--value) * 1%), rgba(32, 32, 42, 0.08) 0);
}

.progress-ring::before {
  content: "";
  grid-area: 1 / 1;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}

.progress-ring strong {
  z-index: 1;
  grid-area: 1 / 1;
  font-size: 0.74rem;
}

.planner-header {
  margin-top: 34px;
}

.icon-button {
  padding: 10px 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  font-weight: 750;
}

.planner-tabs {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.planner-tab {
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(29, 29, 29, 0.05);
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}

.planner-tab.active {
  color: #fff;
  background: #171717;
}

.timeline-wrap {
  margin-top: 12px;
  overflow-x: auto;
  border: 1px solid rgba(25, 25, 25, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.54);
}

.timeline-grid {
  min-width: 610px;
}

.timeline-days {
  display: grid;
  height: 38px;
  grid-template-columns: 64px repeat(5, 1fr);
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 800;
}

.timeline-days span {
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(20, 20, 20, 0.06);
}

.timeline-body {
  position: relative;
  height: 318px;
  margin-left: 0;
  background-image:
    linear-gradient(to right, transparent 63px, rgba(22, 22, 22, 0.065) 64px, transparent 65px),
    repeating-linear-gradient(to right, transparent 0, transparent calc((100% - 64px) / 5 - 1px), rgba(22, 22, 22, 0.055) calc((100% - 64px) / 5));
}

.time-labels {
  position: absolute;
  inset: 0 auto 0 0;
  display: grid;
  width: 64px;
  grid-template-rows: repeat(8, 1fr);
  color: var(--muted);
  font-size: 0.68rem;
}

.time-labels span {
  display: flex;
  justify-content: center;
  padding-top: 10px;
  border-bottom: 1px solid rgba(22, 22, 22, 0.045);
}

.timeline-tasks {
  position: absolute;
  inset: 0 0 0 64px;
}

.timeline-task {
  position: absolute;
  top: calc(var(--row) * 39px + 10px);
  left: calc(var(--start) * 20% + 8px);
  width: calc(var(--span) * 20% - 16px);
  min-width: 95px;
  padding: 8px 12px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--task-color) 56%, white);
  border-radius: 11px;
  color: #161616;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.48), color-mix(in srgb, var(--task-color) 38%, white));
  box-shadow: 0 9px 25px color-mix(in srgb, var(--task-color) 18%, transparent);
  font-size: 0.72rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 61%;
  width: 1px;
  border-left: 1px dashed rgba(18, 18, 18, 0.32);
}

.today-line span {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111;
}

.decision-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(25, 25, 25, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
}

.decision-strip p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.data-panel {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.panel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.panel-header h2 {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -0.05em;
}

.panel-header p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.glass-note,
.mini-metric,
.decision-card,
.data-table-wrap {
  border: 1px solid rgba(25, 25, 25, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
}

.glass-note {
  padding: 18px 20px;
}

.glass-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.86rem;
}

.glass-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.62;
}

.metric-cluster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mini-metric {
  display: grid;
  gap: 7px;
  padding: 16px;
}

.mini-metric span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-metric strong {
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.data-table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.data-table th,
.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(22, 22, 22, 0.075);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.pill-button {
  padding: 8px 11px;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #111;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.decision-card {
  padding: 18px;
}

.decision-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.decision-card h3 {
  margin: 16px 0 8px;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.decision-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.decision-card small {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.text-link {
  padding: 6px;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.editor-dialog {
  width: min(560px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 30px 90px rgba(28, 27, 36, 0.2);
  backdrop-filter: blur(25px);
}

.editor-dialog::backdrop {
  background: rgba(20, 20, 28, 0.28);
  backdrop-filter: blur(5px);
}

.editor-dialog form {
  padding: 28px;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.dialog-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.06);
  font-size: 1.45rem;
  cursor: pointer;
}

.dialog-fields {
  display: grid;
  gap: 15px;
  margin-top: 24px;
}

.field-group {
  display: grid;
  gap: 7px;
}

.field-group label {
  font-size: 0.78rem;
  font-weight: 800;
}

.field-group input,
.field-group textarea,
.field-group select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.field-group textarea {
  min-height: 110px;
  resize: vertical;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}

.secondary-button {
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.07);
  font-weight: 750;
}

.toast {
  position: fixed;
  z-index: 20;
  right: 30px;
  bottom: 30px;
  max-width: min(360px, calc(100vw - 40px));
  padding: 13px 17px;
  border-radius: 14px;
  color: #fff;
  background: #151515;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  font-size: 0.84rem;
  font-weight: 720;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1350px) {
  .app-shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .sidebar {
    padding-inline: 20px;
  }

  .brand-logo {
    width: 145px;
  }

  .dashboard {
    grid-template-columns: minmax(440px, 0.9fr) minmax(500px, 1.1fr);
  }

  .activity-column,
  .insight-column {
    padding-inline: 26px;
  }

  .activity-header h1 {
    font-size: clamp(4.4rem, 7vw, 6.6rem);
  }
}

@media (max-width: 1040px) {
  body {
    padding: 12px;
  }

  .app-shell {
    min-height: calc(100vh - 24px);
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .sidebar {
    position: sticky;
    z-index: 10;
    top: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 14px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    backdrop-filter: blur(24px);
  }

  .brand-logo {
    width: 118px;
    height: 45px;
  }

  .product-name,
  .sidebar-glow,
  .sidebar-actions {
    display: none;
  }

  .sidebar-nav {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    margin: 0;
    overflow-x: auto;
  }

  .nav-item {
    width: auto;
    min-height: 42px;
    flex: 0 0 auto;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 0.75rem;
  }

  .nav-icon {
    width: 18px;
    height: 18px;
    font-size: 1rem;
  }

  .dashboard {
    grid-template-columns: 1fr;
  }

  .activity-column {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .activity-header {
    min-height: 230px;
  }
}

@media (max-width: 680px) {
  body {
    padding: 0;
    background-image: url("./assets/dashboard-background-mobile.png");
    background-position: center top;
    background-attachment: scroll;
  }

  .app-shell {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.64);
  }

  .sidebar {
    grid-template-columns: 1fr auto;
    border-radius: 0;
  }

  .sidebar-nav {
    max-width: 54px;
  }

  .nav-item {
    display: none;
  }

  .nav-item.active {
    display: flex;
    padding: 0 12px;
  }

  .nav-item.active span:last-child {
    display: none;
  }

  .activity-column,
  .insight-column {
    padding: 26px 18px;
  }

  .activity-header {
    min-height: 200px;
  }

  .activity-header h1 {
    font-size: clamp(4rem, 21vw, 5.6rem);
  }

  .eyebrow {
    max-width: 150px;
  }

  .header-actions time {
    font-size: 0.75rem;
  }

  .primary-action {
    width: 50px;
    height: 50px;
  }

  .priority-card {
    padding: 17px 16px 15px;
  }

  .priority-main {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .priority-symbol {
    width: 48px;
    height: 48px;
  }

  .priority-value {
    min-width: 48px;
    padding-inline: 9px;
    font-size: 1.4rem;
  }

  .insight-topbar,
  .planner-header {
    align-items: center;
  }

  .black-button,
  .icon-button {
    padding: 10px 13px;
    font-size: 0.73rem;
  }

  .kpi-row {
    min-height: 92px;
    padding: 13px;
    gap: 12px;
  }

  .kpi-icon {
    width: 48px;
    height: 48px;
  }

  .progress-ring {
    --ring-size: 54px;
  }

  .progress-ring::before {
    width: 41px;
    height: 41px;
  }

  .planner-tabs {
    overflow-x: auto;
  }

  .planner-tab {
    flex: 0 0 auto;
  }

  .decision-strip {
    grid-template-columns: 1fr auto;
  }

  .decision-strip > div {
    grid-column: 1 / -1;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-cluster,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .toast {
    right: 20px;
    bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Recipe Strategy OS v3 — private operating data interface */
.security-gate {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 18% 18%, rgba(129, 107, 255, 0.34), transparent 34%),
    radial-gradient(circle at 86% 76%, rgba(37, 213, 191, 0.3), transparent 35%),
    rgba(13, 14, 25, 0.9);
}

.security-card {
  width: min(100%, 520px);
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 32px;
  color: #fff;
  background: rgba(20, 22, 39, 0.7);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(28px);
}

.security-logo {
  width: 190px;
  height: 64px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}

.security-card h1 {
  margin: 14px 0 12px;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.065em;
}

.security-card > p:not(.eyebrow):not(.form-message) {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
}

.security-card .eyebrow { margin-top: 36px; color: #babdff; }
.security-card label { display: block; margin: 16px 0 7px; color: rgba(255, 255, 255, 0.88); font-size: 0.84rem; font-weight: 750; }
.security-card input { width: 100%; padding: 13px 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 13px; color: #fff; background: rgba(255,255,255,.1); }
.security-card .primary-button { width: 100%; margin-top: 24px; }
.security-note { margin-top: 20px !important; font-size: .76rem; }
.form-message { min-height: 1.2rem; margin: 12px 0 0; color: #ffbaa7; font-size: .82rem; }

.strategy-app {
  display: grid;
  width: min(1660px, calc(100% - 40px));
  min-height: calc(100vh - 40px);
  grid-template-columns: 242px minmax(0, 1fr);
  margin: 20px auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 32px;
  background: rgba(255,255,255,.65);
  box-shadow: 0 30px 80px rgba(26, 27, 40, .16);
  backdrop-filter: blur(28px) saturate(1.1);
}

.strategy-sidebar { display: flex; flex-direction: column; padding: 31px 23px 24px; border-right: 1px solid rgba(21,23,35,.1); background: rgba(255,255,255,.42); }
.strategy-logo { width: 166px; height: 55px; object-fit: contain; object-position: left center; mix-blend-mode: multiply; }
.strategy-nav { display: grid; gap: 8px; margin-top: 56px; }
.strategy-nav-item { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 13px; border: 1px solid transparent; border-radius: 15px; background: transparent; font-size: .88rem; font-weight: 750; text-align: left; cursor: pointer; }
.strategy-nav-item span { display: grid; width: 22px; height: 22px; place-items: center; color: #676dff; font-size: 1.08rem; }
.strategy-nav-item:hover { background: rgba(255,255,255,.65); }
.strategy-nav-item.active { border-color: rgba(108,115,255,.18); background: linear-gradient(105deg, rgba(255,255,255,.83), rgba(195,200,255,.5)); box-shadow: 0 10px 26px rgba(91,96,211,.12); }
.strategy-sidebar-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: auto; color: var(--muted); font-size: .72rem; font-weight: 700; }
.privacy-dot { width: 8px; height: 8px; border-radius: 50%; background: #68ca61; box-shadow: 0 0 0 4px rgba(104,202,97,.13); }
.link-button { margin-left: auto; padding: 4px; border: 0; color: var(--muted); background: transparent; font: inherit; text-decoration: underline; cursor: pointer; }

.strategy-main { min-width: 0; padding: 36px clamp(22px, 3vw, 50px) 48px; background: linear-gradient(115deg, rgba(255,255,255,.53), rgba(245,248,255,.48)); }
.strategy-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.strategy-topbar h1 { max-width: 660px; margin: 0; font-size: clamp(2.2rem, 4.4vw, 4.7rem); font-weight: 690; letter-spacing: -.075em; line-height: .95; }
.topbar-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 385px; }
.data-status { width: 100%; color: var(--muted); font-size: .72rem; text-align: right; }
.test-button { border-color: rgba(235, 101, 44, .28); color: #b74f21; background: rgba(255, 232, 216, .8); }
.soft-button, .primary-button, .dark-button, .outline-button, .table-button { border: 0; border-radius: 13px; font-weight: 750; cursor: pointer; }
.soft-button { padding: 10px 13px; border: 1px solid rgba(21,23,35,.12); background: rgba(255,255,255,.7); font-size: .78rem; }
.primary-button { padding: 13px 18px; color: #fff; background: #646bff; box-shadow: 0 13px 28px rgba(80,87,222,.3); }
.dark-button { padding: 11px 15px; color: #fff; background: #15151a; font-size: .8rem; }
.outline-button { padding: 8px 10px; border: 1px solid rgba(21,23,35,.15); background: rgba(255,255,255,.45); font-size: .73rem; }
.table-button, .text-button { padding: 7px 8px; border: 0; color: #595ee6; background: transparent; font-size: .75rem; font-weight: 800; cursor: pointer; }

.friday-band { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 38px 0 22px; padding: 15px 18px; border: 1px solid rgba(91,99,244,.16); border-radius: 18px; background: linear-gradient(100deg, rgba(233,235,255,.82), rgba(255,255,255,.7)); }
.friday-band > div { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; }
.friday-band strong { align-self: center; font-size: .9rem; }
.friday-band small { grid-column: 2; margin-top: 2px; color: var(--muted); font-size: .72rem; }
.friday-dot { align-self: center; width: 10px; height: 10px; border-radius: 50%; background: #686fff; box-shadow: 0 0 0 5px rgba(104,111,255,.16); }

.home-summary, .kpi-board { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.metric-card { position: relative; min-height: 139px; padding: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.78); border-radius: 22px; background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(228,232,255,.48)); box-shadow: inset 0 1px 0 #fff, 0 14px 28px rgba(45,55,102,.08); }
.metric-card.pink { background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(255,211,236,.55)); }.metric-card.cyan { background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(205,255,252,.55)); }.metric-card.orange { background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(255,226,193,.62)); }.metric-card.green { background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(220,255,195,.62)); }.metric-card.violet { background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(227,203,255,.62)); }
.metric-card strong { display: block; margin-top: 13px; font-size: clamp(1.35rem, 2vw, 2.05rem); letter-spacing: -.05em; }.metric-label { color: var(--muted); font-size: .73rem; font-weight: 800; }.metric-card small { display: block; margin-top: 7px; color: var(--muted); font-size: .7rem; line-height: 1.4; }.metric-card i { position: absolute; bottom: 0; left: 0; height: 5px; border-radius: 0 99px 99px 0; background: #6a70ff; }.metric-card.pink i { background:#f558ad }.metric-card.cyan i { background:#16c9c4 }.metric-card.orange i { background:#ff9b45 }.metric-card.green i { background:#72ca58 }.metric-card.violet i { background:#a46de0 }

.view-panel { margin-top: 26px; }.home-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 14px; }.glass-panel { padding: 22px; border: 1px solid rgba(255,255,255,.88); border-radius: 24px; background: rgba(255,255,255,.58); box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 16px 35px rgba(35,38,69,.08); backdrop-filter: blur(18px); }.emphasis-panel { display:flex; min-height: 220px; flex-direction: column; align-items: flex-start; background: radial-gradient(circle at 82% 24%, rgba(115,121,255,.48), transparent 38%), linear-gradient(130deg, rgba(255,255,255,.83), rgba(211,218,255,.5)); }.panel-kicker { margin:0 0 7px; color:var(--muted); font-size:.7rem; font-weight:850; letter-spacing:.12em; text-transform:uppercase; }.large-number { margin: 14px 0 10px; font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.07em; }.emphasis-panel p { max-width:320px; margin:0 0 22px; color:var(--muted); font-size:.83rem; line-height:1.5; }.emphasis-panel .dark-button { margin-top:auto }.panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; }.panel-head h2, .panel-head h3 { margin:0; letter-spacing:-.045em; }.panel-head h3 { margin-top:7px; font-size:1.05rem; }.wide-panel { margin-top:14px; }.compact-list { display:grid; gap:7px; margin-top:17px; }.event-row { display:grid; grid-template-columns: 78px 1fr auto; align-items:center; gap:10px; padding:10px 11px; border-left:3px solid #7b80ff; border-radius:11px; background:rgba(255,255,255,.46); }.event-row span, .event-row small { color:var(--muted); font-size:.72rem; }.event-row strong { font-size:.82rem; }.event-row.delivery { border-left-color:#f757aa }.event-row.internal { border-left-color:#55c887 }.event-row.review { border-left-color:#ffae46 }.event-row.other { border-left-color:#9d70df }.guide-strip { display:flex; align-items:center; gap:14px; margin-top:14px; padding:17px 21px; border-radius:19px; background:rgba(24,25,40,.91); color:#fff; }.guide-strip > span { display:grid; width:30px; height:30px; place-items:center; border-radius:10px; color:#1f2538; background:#c6ffbc; }.guide-strip strong { font-size:.85rem; }.guide-strip p { margin:4px 0 0; color:rgba(255,255,255,.67); font-size:.75rem; }.guide-strip .text-button { margin-left:auto; color:#ccd0ff; }

.test-data-banner { margin-bottom:14px; padding:22px; border:1px solid rgba(239,112,48,.33); border-radius:24px; background:linear-gradient(110deg,rgba(255,245,237,.88),rgba(255,221,191,.63)); }.test-data-banner > div:first-child { display:inline-block; max-width:760px; }.test-data-banner h2 { margin:9px 0 5px; font-size:1.2rem; letter-spacing:-.045em; }.test-data-banner p { margin:0; color:#785238; font-size:.78rem; line-height:1.55; }.test-data-banner > .outline-button { float:right; margin-top:4px; }.test-chip { display:inline-block; padding:5px 8px; border-radius:999px; color:#fff; background:#e26b36; font-size:.65rem; font-weight:850; letter-spacing:.08em; }.growth-test-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; clear:both; margin-top:18px; }.growth-test-metric { position:relative; overflow:hidden; padding:13px; border:1px solid rgba(255,255,255,.75); border-radius:15px; background:rgba(255,255,255,.52); }.growth-test-metric span,.growth-test-metric small { display:block; color:#815b46; font-size:.69rem; font-weight:750; }.growth-test-metric strong { display:block; margin:5px 0 3px; font-size:1.24rem; letter-spacing:-.04em; }.growth-test-metric i { position:absolute; bottom:0; left:0; height:4px; background:#e26b36; }.growth-test-metric.pink i { background:#e3569c; }.growth-test-metric.green i { background:#55b76b; }

.section-intro { display:flex; align-items:flex-start; justify-content:space-between; gap:22px; margin-bottom:14px; padding:19px 21px; border:1px solid rgba(255,255,255,.8); border-radius:20px; background:rgba(255,255,255,.47); }.section-intro p { margin:0; color:var(--muted); font-size:.84rem; line-height:1.55; }.section-intro ul { margin:10px 0 0; padding-left:18px; color:var(--muted); font-size:.77rem; line-height:1.7; }.submetric-row { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:14px; }.submetric-row article { padding:14px 18px; border-radius:17px; background:rgba(255,255,255,.51); }.submetric-row span { display:block; color:var(--muted); font-size:.72rem; }.submetric-row strong { display:block; margin-top:5px; font-size:1.15rem; letter-spacing:-.04em; }.muted { color:var(--muted); font-size:.74rem; }.table-wrap { margin-top:18px; overflow-x:auto; }.data-table { width:100%; min-width:680px; border-collapse:collapse; }.data-table th { padding:0 11px 10px; color:var(--muted); font-size:.7rem; text-align:left; }.data-table td { padding:12px 11px; border-top:1px solid rgba(25,26,35,.08); font-size:.79rem; vertical-align:middle; }.data-table td strong, .data-table td small { display:block; }.data-table td small { margin-top:3px; color:var(--muted); font-size:.7rem; }.tag { display:inline-block; padding:4px 8px; border-radius:999px; color:#4f55ca; background:rgba(110,117,255,.12); font-size:.68rem; font-weight:800; }.card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:14px; }.project-detail p, .asset-card p { margin:8px 0 14px; color:var(--muted); font-size:.78rem; }.detail-line { display:flex; justify-content:space-between; padding:9px 0; border-top:1px solid rgba(25,26,35,.08); color:var(--muted); font-size:.76rem; }.detail-line strong { color:var(--ink); }.detail-actions { display:flex; gap:7px; margin-top:15px; }.receipt-list { display:grid; gap:3px; margin-top:13px; padding-top:10px; border-top:1px solid rgba(25,26,35,.08); color:var(--muted); }.receipt-list small { font-size:.7rem; }.kpi-board { grid-template-columns:repeat(3,minmax(0,1fr)); margin-bottom:14px; }.calendar-connect { display:grid; grid-template-columns:1.1fr .9fr; gap:20px; margin-bottom:14px; padding:23px; border-radius:24px; color:#fff; background:radial-gradient(circle at 82% 18%, rgba(85,180,255,.65), transparent 35%), linear-gradient(125deg,#15172c,#242959); }.calendar-connect h2 { margin:8px 0; letter-spacing:-.05em; }.calendar-connect p { margin:0; color:rgba(255,255,255,.7); font-size:.8rem; line-height:1.55; }.calendar-connect .tag { color:#fff; background:rgba(255,255,255,.18); }.calendar-legend { display:flex; flex-wrap:wrap; gap:7px; margin:17px 0; }.calendar-legend span { padding:5px 9px; border-radius:999px; background:rgba(111,119,255,.13); color:#575dcd; font-size:.7rem; font-weight:800; }.calendar-legend .delivery { color:#d34994; background:rgba(245,88,173,.14); }.calendar-legend .internal { color:#368a5e; background:rgba(85,200,135,.14); }.calendar-legend .review { color:#c56b20; background:rgba(255,174,70,.15); }.calendar-legend .other { color:#8050b8; background:rgba(157,112,223,.15); }.event-list { display:grid; gap:8px; }.calendar-event { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:5px 0; border-bottom:1px solid rgba(25,26,35,.08); }.calendar-event:last-child { border-bottom:0; }.calendar-event > div { flex:1; }.integration-note { margin-top:14px; }.integration-note ol { margin:14px 0 0; padding-left:18px; color:var(--muted); font-size:.8rem; line-height:1.8; }.button-row { display:flex; flex-wrap:wrap; gap:8px; }

.strategy-dialog { width:min(700px, calc(100% - 28px)); max-height:90vh; padding:0; overflow:auto; border:1px solid rgba(255,255,255,.85); border-radius:25px; background:rgba(250,251,255,.96); box-shadow:0 35px 90px rgba(0,0,0,.25); }.strategy-dialog::backdrop { background:rgba(11,12,24,.5); backdrop-filter:blur(5px); }.strategy-dialog form { padding:26px; }.dialog-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; margin-top:22px; }.field-group { display:grid; gap:6px; }.field-group.full { grid-column:1/-1; }.field-group label { color:#343646; font-size:.75rem; font-weight:800; }.field-group input,.field-group select,.field-group textarea { width:100%; padding:11px 12px; border:1px solid rgba(30,32,48,.15); border-radius:11px; color:var(--ink); background:rgba(255,255,255,.72); }.field-group textarea { min-height:82px; resize:vertical; }.field-help { color:var(--muted); font-size:.66rem; line-height:1.4; }.check-field { display:flex; grid-column:1/-1; align-items:center; gap:8px; padding:11px 12px; border:1px solid rgba(30,32,48,.13); border-radius:11px; color:#343646; font-size:.78rem; font-weight:750; }.check-field input { width:16px; height:16px; accent-color:#686fff; }.check-field .field-help { margin-left:auto; }.dialog-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:23px; }.dialog-header { display:flex; justify-content:space-between; gap:16px; }.dialog-close { display:grid; width:32px; height:32px; place-items:center; border:0; border-radius:10px; background:rgba(28,30,45,.07); font-size:1.3rem; cursor:pointer; }.empty-state { padding:32px 12px; color:var(--muted); text-align:center; }.empty-state strong { display:block; color:var(--ink); }.empty-state p { margin:7px 0 0; font-size:.8rem; }.toast { z-index:100; }

@media (max-width: 1050px) { .strategy-app { width:calc(100% - 24px); grid-template-columns:1fr; margin:12px auto; }.strategy-sidebar { position:sticky; z-index:10; top:0; display:grid; grid-template-columns:auto 1fr; align-items:center; gap:20px; padding:13px 18px; border-right:0; border-bottom:1px solid rgba(21,23,35,.1); }.strategy-logo { width:120px; height:43px; }.strategy-sidebar .product-name,.strategy-sidebar-footer { display:none; }.strategy-nav { display:flex; justify-content:flex-end; gap:4px; margin:0; overflow:auto; }.strategy-nav-item { min-height:40px; padding:0 10px; white-space:nowrap; font-size:.73rem; }.strategy-main { padding:28px; } }
@media (max-width: 680px) { .security-gate { padding:16px; }.security-card { padding:30px 24px; }.strategy-app { width:100%; min-height:100vh; margin:0; border:0; border-radius:0; }.strategy-sidebar { gap:6px; }.strategy-nav { max-width:58px; }.strategy-nav-item { display:none; }.strategy-nav-item.active { display:flex; padding:0 11px; }.strategy-nav-item.active:not(:hover) { font-size:0; }.strategy-nav-item.active span { font-size:1.1rem; }.strategy-main { padding:24px 17px 34px; }.strategy-topbar { display:block; }.topbar-actions { justify-content:flex-start; max-width:none; margin-top:18px; }.data-status { text-align:left; }.friday-band { align-items:flex-start; flex-direction:column; }.home-summary,.kpi-board,.home-grid,.card-grid,.submetric-row,.calendar-connect,.growth-test-grid { grid-template-columns:1fr; }.test-data-banner > .outline-button { float:none; margin-top:14px; }.metric-card { min-height:120px; }.section-intro { flex-direction:column; }.guide-strip p { display:none; }.calendar-event { align-items:flex-start; }.dialog-fields { grid-template-columns:1fr; }.field-group.full,.check-field { grid-column:auto; }.check-field { align-items:flex-start; flex-direction:column; }.check-field .field-help { margin-left:0; }.strategy-dialog form { padding:20px; } }
