:root {
  --bg: #f2f5ef;
  --surface: #ffffff;
  --surface-soft: #f7f9f5;
  --surface-strong: #e8eee3;
  --line: #dce5d7;
  --line-strong: #c7d4c1;
  --text: #18231a;
  --muted: #60705f;
  --faint: #899687;
  --accent: #4d7d35;
  --accent-dark: #315a25;
  --accent-soft: #e4efdd;
  --sidebar: #20301f;
  --sidebar-soft: #2a3d28;
  --warning: #a96920;
  --warning-soft: #fff4df;
  --danger: #bd4242;
  --danger-soft: #fff0ee;
  --blue: #356f96;
  --blue-soft: #e8f2f7;
  --purple: #765c9c;
  --purple-soft: #f0ecf7;
  --shadow-sm: 0 2px 8px rgba(31, 51, 29, .06);
  --shadow: 0 18px 42px rgba(31, 51, 29, .13);
  --sidebar-width: 268px;
  --topbar-height: 76px;
  --radius-sm: 10px;
  --radius: 16px;
  --font-text: "YS Text", "Yandex Sans Text", "Yandex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  --font-display: "YS Display", "Yandex Sans Display", "YS Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  color-scheme: light;
  font-family: var(--font-text);
}

* { box-sizing: border-box; }
html { min-height: 100%; overflow-x: hidden; background: var(--bg); scroll-behavior: auto; }
body { min-width: 320px; min-height: 100%; margin: 0; overflow-x: hidden; color: var(--text); background: var(--bg); font-family: var(--font-text); font-size: 14px; font-feature-settings: "kern", "liga", "clig"; text-rendering: optimizeLegibility; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, .brand strong { font-family: var(--font-display); font-weight: 700; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar-width); display: flex; flex-direction: column; padding: 22px 16px 16px; color: #e7eee3; background: var(--sidebar); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 24px; color: inherit; text-decoration: none; }
.brand img { width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; object-fit: cover; }
.brand span, .sidebar-profile > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.brand strong { font-size: 14px; letter-spacing: .045em; text-transform: uppercase; }
.brand small { margin-top: 4px; color: #9faf9b; font-size: 11px; }
.main-nav { display: grid; gap: 4px; }
.main-nav a { min-height: 46px; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; padding: 0 13px; border-left: 3px solid transparent; border-radius: 8px; color: #cbd6c7; text-decoration: none; transition: color 140ms ease, background 140ms ease, border-color 140ms ease; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.main-nav a.active { border-left-color: #9cba63; color: #fff; background: var(--sidebar-soft); }
.main-nav a svg { width: 19px; height: 19px; }
.main-nav a b { min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 10px; color: #253420; background: #abc474; font-size: 10px; }
.sidebar-help { margin-top: auto; padding: 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.045); }
.sidebar-help > svg { width: 23px; height: 23px; margin-bottom: 8px; color: #b7ce85; }
.sidebar-help strong { display: block; font-size: 13px; }
.sidebar-help p { margin: 6px 0 12px; color: #aebbaa; font-size: 11px; line-height: 1.5; }
.sidebar-help button { padding: 0; border: 0; color: #bed98c; background: transparent; font-size: 11px; font-weight: 750; cursor: pointer; }
.sidebar-help button:hover { color: #fff; }
.sidebar-profile { min-height: 60px; display: grid; grid-template-columns: 38px 1fr 16px; align-items: center; gap: 10px; margin-top: 14px; padding: 9px; border-top: 1px solid rgba(255,255,255,.09); color: inherit; text-decoration: none; }
.sidebar-profile strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile small { margin-top: 3px; overflow: hidden; color: #a0ae9e; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile > svg { width: 15px; color: #849481; }
.avatar { width: 38px; height: 38px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #28421f; background: #b7ce85; font-size: 11px; font-weight: 800; }
.avatar.small { width: 35px; height: 35px; }

.main-area { min-width: 0; flex: 1; margin-left: var(--sidebar-width); }
.topbar { position: sticky; top: 0; z-index: 20; height: var(--topbar-height); display: flex; align-items: center; gap: 14px; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.topbar-title { min-width: 205px; display: flex; flex-direction: column; }
.topbar-title strong { font-size: 17px; }
.topbar-title span { margin-top: 3px; color: var(--faint); font-size: 11px; }
.global-search { width: min(480px, 42vw); min-height: 42px; display: flex; align-items: center; gap: 9px; margin-right: auto; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); transition: border-color 140ms ease, background 140ms ease; }
.global-search:focus-within { border-color: var(--accent); background: #fff; }
.global-search svg { width: 17px; color: var(--faint); }
.global-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 12px; }
.global-search input::placeholder { color: var(--faint); }
.global-search kbd { padding: 3px 6px; border: 1px solid var(--line); border-bottom-color: var(--line-strong); border-radius: 5px; color: var(--faint); background: #fff; font-size: 9px; }
.icon-button { width: 40px; height: 40px; display: grid; flex: 0 0 auto; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--surface); cursor: pointer; transition: color 140ms ease, border-color 140ms ease, background 140ms ease; }
.icon-button:hover { color: var(--accent-dark); border-color: var(--line-strong); background: var(--surface-soft); }
.notification-button { position: relative; }
.notification-button > span { position: absolute; top: -5px; right: -4px; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; border-radius: 10px; color: #fff; background: var(--danger); font-size: 8px; font-weight: 800; }
.top-profile { min-width: 150px; display: grid; grid-template-columns: 35px 1fr 14px; align-items: center; gap: 9px; padding-left: 4px; color: inherit; text-decoration: none; }
.top-profile > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.top-profile strong { font-size: 12px; }
.top-profile small { margin-top: 2px; color: var(--faint); font-size: 10px; }
.top-profile > svg { width: 14px; color: var(--faint); }
.menu-button { display: none; }
.content { width: min(1480px, 100%); min-height: calc(100vh - var(--topbar-height)); margin: 0 auto; padding: 28px clamp(20px, 3vw, 42px) 48px; outline: none; }
.bottom-nav { display: none; }

.page-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.page-intro h1 { margin: 0; font-size: clamp(25px, 2.5vw, 36px); line-height: 1.1; letter-spacing: -.035em; }
.page-intro p { max-width: 660px; margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.page-intro-actions { display: flex; gap: 8px; }
.eyebrow { display: block; margin-bottom: 7px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--text); background: #fff; font-size: 12px; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform 120ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease; }
.button:hover { border-color: var(--accent); color: var(--accent-dark); }
.button:active { transform: translateY(1px); }
.button svg { width: 16px; }
.button.primary { color: #fff; border-color: var(--accent); background: var(--accent); }
.button.primary:hover { border-color: var(--accent-dark); color: #fff; background: var(--accent-dark); }
.button.secondary { background: var(--surface-soft); }
.button.ghost { border-color: transparent; background: transparent; }
.button.danger { color: var(--danger); border-color: #edcac7; background: var(--danger-soft); }
.text-button { padding: 0; border: 0; color: var(--accent-dark); background: transparent; font-size: 12px; font-weight: 750; cursor: pointer; }
.text-button:hover { color: var(--accent); }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.card-head h2, .card-head h3 { margin: 0; font-size: 16px; letter-spacing: -.015em; }
.card-head p { margin: 5px 0 0; color: var(--faint); font-size: 11px; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--surface-soft); font-size: 10px; font-weight: 700; }
.status-badge.success { color: #2d672d; border-color: #c8dec0; background: #edf7e9; }
.status-badge.warning { color: #875819; border-color: #ead4aa; background: var(--warning-soft); }
.status-badge.blue { color: #315f7d; border-color: #cadce7; background: var(--blue-soft); }

.home-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .7fr); gap: 20px; }
.hero-card { position: relative; min-height: 254px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 190px; align-items: center; padding: clamp(24px, 3vw, 38px); border: 0; color: #fff; background: var(--sidebar); }
.hero-card::after { content: ""; position: absolute; right: 132px; bottom: -60px; width: 150px; height: 150px; border: 28px solid rgba(255,255,255,.045); border-radius: 50%; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy .eyebrow { color: #bcd48a; }
.hero-copy h1 { max-width: 650px; margin: 0; font-size: clamp(28px, 3vw, 42px); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; }
.hero-copy p { max-width: 570px; margin: 12px 0 22px; color: #c6d2c3; line-height: 1.55; }
.hero-copy .button.primary { border-color: #a7c16e; color: #24331f; background: #b7ce85; }
.hero-copy .button.primary:hover { border-color: #c7dda0; background: #c7dda0; }
.hero-metric { position: relative; z-index: 1; display: grid; place-items: center; }
.progress-ring { --value: 64; width: 150px; height: 150px; display: grid; place-items: center; border: 12px solid rgba(255,255,255,.13); border-top-color: #b7ce85; border-right-color: #b7ce85; border-radius: 50%; transform: rotate(14deg); }
.progress-ring > span { display: flex; flex-direction: column; align-items: center; transform: rotate(-14deg); }
.progress-ring strong { font-size: 31px; line-height: 1; letter-spacing: -.04em; }
.progress-ring small { margin-top: 6px; color: #b9c8b5; font-size: 9px; text-transform: uppercase; }
.today-card { padding: 22px; }
.task-list { display: grid; gap: 6px; }
.task { min-height: 58px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.task:last-child { border-bottom: 0; }
.task-check { width: 21px; height: 21px; display: grid; place-items: center; border: 1.5px solid var(--line-strong); border-radius: 6px; color: transparent; background: #fff; }
.task.done .task-check { color: #fff; border-color: var(--accent); background: var(--accent); }
.task.done strong { color: var(--faint); text-decoration: line-through; }
.task strong { display: block; font-size: 12px; }
.task small { display: block; margin-top: 3px; color: var(--faint); font-size: 10px; }
.task time { color: var(--faint); font-size: 10px; }
.task svg { width: 13px; }
.section-row { min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 26px 0 13px; }
.section-row h2 { margin: 0; font-size: 19px; letter-spacing: -.025em; }
.section-row a { color: var(--accent-dark); font-size: 11px; font-weight: 750; text-decoration: none; }
.section-row a:hover { color: var(--accent); }
.continue-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.learning-card { min-width: 0; padding: 17px; cursor: pointer; transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease; }
.learning-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 10px 24px rgba(31,51,29,.09); }
.learning-card-head { display: flex; justify-content: space-between; gap: 10px; }
.learning-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; color: var(--accent-dark); background: var(--accent-soft); }
.learning-icon.blue { color: var(--blue); background: var(--blue-soft); }
.learning-icon.purple { color: var(--purple); background: var(--purple-soft); }
.learning-icon svg { width: 21px; }
.learning-card h3 { min-height: 38px; margin: 16px 0 7px; font-size: 14px; line-height: 1.35; }
.learning-card p { min-height: 32px; margin: 0 0 15px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.meta-row { display: flex; align-items: center; gap: 13px; color: var(--faint); font-size: 10px; }
.meta-row span { display: flex; align-items: center; gap: 5px; }
.meta-row svg { width: 13px; height: 13px; }
.linear-progress { height: 6px; overflow: hidden; margin-top: 14px; border-radius: 4px; background: var(--surface-strong); }
.linear-progress span { height: 100%; display: block; border-radius: inherit; background: var(--accent); }
.learning-card-foot { display: flex; justify-content: space-between; margin-top: 8px; color: var(--faint); font-size: 9px; }

.summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.summary-item { display: grid; grid-template-columns: 39px 1fr; align-items: center; gap: 11px; padding: 18px 20px; border-right: 1px solid var(--line); }
.summary-item:last-child { border-right: 0; }
.summary-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 9px; color: var(--accent-dark); background: var(--accent-soft); }
.summary-icon.warning { color: var(--warning); background: var(--warning-soft); }
.summary-icon.blue { color: var(--blue); background: var(--blue-soft); }
.summary-icon.purple { color: var(--purple); background: var(--purple-soft); }
.summary-icon svg { width: 19px; }
.summary-item strong { display: block; font-size: 21px; line-height: 1; letter-spacing: -.03em; }
.summary-item span { display: block; margin-top: 4px; color: var(--faint); font-size: 10px; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.news-card { min-width: 0; display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 19px; }
.news-card.priority { border-left: 4px solid var(--warning); }
.news-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px; color: var(--warning); background: var(--warning-soft); }
.news-icon.internship { color: var(--accent-dark); background: var(--accent-soft); }
.news-icon svg { width: 21px; }
.news-card .eyebrow { margin-bottom: 5px; font-size: 8px; }
.news-card h3 { margin: 0; font-size: 13px; line-height: 1.4; }
.news-card p { margin: 6px 0 10px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.news-card a { color: var(--accent-dark); font-size: 11px; font-weight: 750; text-decoration: none; }
.install-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; margin-top: 16px; padding: 17px 19px; border: 1px solid #bdd2b3; border-radius: var(--radius); background: var(--accent-soft); }
.install-card-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--accent); }
.install-card strong { display: block; font-size: 12px; }
.install-card p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }

.learning-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.program-card { padding: 24px; }
.program-header { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 15px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.program-logo { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--accent); }
.program-logo svg { width: 26px; }
.program-header h2 { margin: 0; font-size: 19px; }
.program-header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.program-progress { min-width: 82px; text-align: right; }
.program-progress strong { display: block; color: var(--accent-dark); font-size: 25px; }
.program-progress span { color: var(--faint); font-size: 9px; }
.timeline { position: relative; display: grid; gap: 0; padding-top: 8px; }
.timeline::before { content: ""; position: absolute; top: 34px; bottom: 36px; left: 18px; width: 1px; background: var(--line-strong); }
.timeline-item { position: relative; display: grid; grid-template-columns: 38px 1fr auto; gap: 14px; padding: 18px 0; }
.timeline-marker { z-index: 1; width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--faint); background: #fff; font-size: 11px; font-weight: 800; }
.timeline-item.complete .timeline-marker { color: #fff; border-color: var(--accent); background: var(--accent); }
.timeline-item.current .timeline-marker { color: var(--accent-dark); border: 2px solid var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 5px #fff; }
.timeline-copy h3 { margin: 1px 0 5px; font-size: 13px; }
.timeline-copy p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.timeline-copy .meta-row { margin-top: 8px; }
.timeline-action { align-self: center; }
.mentor-card, .shift-card { padding: 20px; }
.side-stack { display: grid; gap: 14px; }
.mentor-profile { display: flex; align-items: center; gap: 11px; }
.mentor-avatar { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--purple); font-weight: 800; }
.mentor-profile strong { display: block; font-size: 13px; }
.mentor-profile span { display: block; margin-top: 4px; color: var(--faint); font-size: 10px; }
.mentor-card p { margin: 15px 0; padding: 12px; border-left: 3px solid var(--accent); color: var(--muted); background: var(--surface-soft); font-size: 11px; line-height: 1.55; }
.shift-row { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; }
.date-tile { width: 48px; height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.date-tile strong { color: var(--accent-dark); font-size: 19px; line-height: 1; }
.date-tile span { margin-top: 4px; color: var(--faint); font-size: 8px; text-transform: uppercase; }
.shift-row > div:last-child strong { display: block; font-size: 12px; }
.shift-row > div:last-child span { display: block; margin-top: 5px; color: var(--faint); font-size: 10px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.search-field { min-width: 240px; min-height: 42px; display: flex; flex: 1; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.search-field:focus-within { border-color: var(--accent); }
.search-field svg { width: 17px; color: var(--faint); }
.search-field input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font-size: 12px; }
.filter-tabs { display: flex; gap: 4px; padding: 4px; overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.filter-tabs button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.filter-tabs button.active { color: #fff; background: var(--accent); }
.material-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.material-card { min-width: 0; overflow: hidden; cursor: pointer; transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease; }
.material-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 10px 24px rgba(31,51,29,.09); }
.material-cover { position: relative; height: 135px; display: grid; place-items: center; color: var(--accent-dark); background: #dfead8; }
.material-cover.blue { color: var(--blue); background: #dfedf5; }
.material-cover.warm { color: var(--warning); background: #f5e9d5; }
.material-cover.purple { color: var(--purple); background: #e9e2f2; }
.material-cover svg { width: 42px; height: 42px; stroke-width: 1.35; }
.material-type { position: absolute; top: 11px; left: 11px; padding: 5px 7px; border-radius: 6px; color: #fff; background: rgba(24,35,26,.72); font-size: 8px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.favorite-button { position: absolute; top: 9px; right: 9px; width: 31px; height: 31px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; color: var(--muted); background: rgba(255,255,255,.88); cursor: pointer; }
.favorite-button svg { width: 16px; height: 16px; }
.favorite-button.active { color: #c28c1e; }
.favorite-button.active svg { fill: currentColor; }
.material-body { padding: 16px; }
.material-body h3 { min-height: 39px; margin: 0 0 7px; font-size: 13px; line-height: 1.45; }
.material-body p { min-height: 32px; margin: 0 0 13px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.material-body .meta-row { justify-content: space-between; }
.material-complete { color: var(--accent-dark); font-weight: 750; }
.empty-state { grid-column: 1 / -1; padding: 64px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); background: rgba(255,255,255,.55); text-align: center; }
.empty-state svg { width: 40px; height: 40px; color: var(--line-strong); }
.empty-state h3 { margin: 14px 0 7px; color: var(--text); }
.empty-state p { margin: 0; font-size: 11px; }

.tests-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.test-list { display: grid; gap: 11px; }
.test-card { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 17px; }
.test-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 11px; color: var(--purple); background: var(--purple-soft); }
.test-icon svg { width: 22px; }
.test-copy h3 { margin: 0 0 6px; font-size: 13px; }
.test-copy p { margin: 0 0 7px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.test-score { min-width: 68px; text-align: center; }
.test-score strong { display: block; color: var(--accent-dark); font-size: 22px; }
.test-score span { color: var(--faint); font-size: 9px; }
.rules-card { padding: 20px; }
.rules-card h3 { margin: 0 0 13px; font-size: 14px; }
.rules-card ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rules-card li { display: grid; grid-template-columns: 22px 1fr; gap: 9px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.rules-card li span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; color: var(--accent-dark); background: var(--accent-soft); font-size: 9px; font-weight: 800; }
.score-card { margin-top: 14px; padding: 20px; color: #fff; background: var(--sidebar); }
.score-card strong { display: block; font-size: 33px; line-height: 1; }
.score-card span { display: block; margin-top: 7px; color: #b9c6b6; font-size: 10px; }

.progress-top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric-card { padding: 19px; }
.metric-card > span { color: var(--faint); font-size: 10px; font-weight: 700; }
.metric-card strong { display: block; margin: 12px 0 6px; font-size: 28px; letter-spacing: -.04em; }
.metric-card small { color: var(--muted); font-size: 9px; }
.progress-main { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); gap: 16px; margin-top: 16px; }
.activity-card, .skills-card, .achievements-card { padding: 22px; }
.week-chart { height: 205px; display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: clamp(8px, 2vw, 28px); padding: 20px 8px 0; border: 1px solid var(--line); border-width: 1px 0; background: var(--surface-soft); }
.week-column { height: 100%; display: flex; align-items: center; justify-content: flex-end; flex-direction: column; gap: 7px; }
.week-column strong { color: var(--faint); font-size: 9px; font-weight: 650; }
.week-bar { width: min(34px, 70%); min-height: 4px; border-radius: 5px 5px 2px 2px; background: var(--accent); }
.week-column span { min-height: 15px; color: var(--faint); font-size: 9px; }
.skill-list { display: grid; gap: 18px; }
.skill-row-head { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 11px; }
.skill-row-head span { color: var(--muted); }
.skill-row-head strong { color: var(--accent-dark); }
.achievement-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.achievement { min-height: 128px; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 14px; border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.achievement-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: var(--warning); background: var(--warning-soft); }
.achievement-icon svg { width: 23px; }
.achievement.locked { opacity: .48; filter: grayscale(1); }
.achievement strong { margin-top: 10px; font-size: 11px; }
.achievement span { margin-top: 4px; color: var(--faint); font-size: 9px; }

.profile-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; }
.profile-card { padding: 26px; text-align: center; }
.profile-avatar { width: 82px; height: 82px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 50%; color: #2c4923; background: #b7ce85; font-size: 22px; font-weight: 850; }
.profile-card h2 { margin: 0; font-size: 20px; }
.profile-card > p { margin: 6px 0 17px; color: var(--muted); font-size: 11px; }
.profile-level { display: flex; justify-content: space-between; align-items: center; padding: 13px; border-radius: 10px; background: var(--surface-soft); text-align: left; }
.profile-level span { color: var(--muted); font-size: 10px; }
.profile-level strong { display: block; margin-top: 3px; font-size: 12px; }
.profile-details { display: grid; gap: 12px; margin-top: 20px; text-align: left; }
.profile-details div { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 11px; }
.profile-details span { color: var(--faint); }
.profile-details strong { text-align: right; }
.settings-card { padding: 24px; }
.settings-section + .settings-section { margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--line); }
.settings-section h3 { margin: 0 0 14px; font-size: 14px; }
.setting-row { min-height: 55px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 8px 0; }
.setting-row strong { display: block; font-size: 12px; }
.setting-row p { margin: 4px 0 0; color: var(--faint); font-size: 10px; }
.toggle { position: relative; width: 42px; height: 24px; flex: 0 0 auto; border: 0; border-radius: 14px; background: #ccd5c8; cursor: pointer; transition: background 150ms ease; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); transition: transform 150ms ease; }
.toggle.active { background: var(--accent); }
.toggle.active::after { transform: translateX(18px); }
.connection { display: flex; align-items: center; gap: 7px; color: var(--accent-dark); font-size: 10px; font-weight: 750; }
.connection::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.notification-permission { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-bottom: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.notification-permission-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 9px; color: var(--accent-dark); background: var(--accent-soft); }
.notification-permission-icon svg { width: 19px; }
.notification-permission strong { font-size: 11px; }
.notification-permission p { margin: 4px 0 0; color: var(--faint); font-size: 9px; line-height: 1.45; }

.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(18,28,18,.38); backdrop-filter: blur(2px); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(420px, 100vw); display: flex; flex-direction: column; padding: 25px; border-left: 1px solid var(--line); background: #fff; box-shadow: -18px 0 45px rgba(22,35,21,.16); transform: translateX(105%); transition: transform 220ms ease; }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.drawer-list { flex: 1; overflow-y: auto; }
.notification { display: grid; grid-template-columns: 39px 1fr; gap: 12px; padding: 17px 2px; border-bottom: 1px solid var(--line); }
.notification.unread { background: #fbfcfa; }
.notification-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 9px; color: var(--purple); background: var(--purple-soft); }
.notification-icon.success { color: var(--accent-dark); background: var(--accent-soft); }
.notification-icon svg { width: 18px; }
.notification strong { font-size: 12px; }
.notification p { margin: 5px 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.notification time { color: var(--faint); font-size: 9px; }
.drawer-read { align-self: center; margin-top: 17px; }
.ai-status { margin: 14px 0; padding: 10px 11px; border: 1px solid #cfe0c8; border-radius: 8px; color: var(--accent-dark); background: var(--accent-soft); font-size: 9px; }
.ai-status span { width: 7px; height: 7px; display: inline-block; margin-right: 5px; border-radius: 50%; background: var(--accent); }
.ai-chat { min-height: 0; flex: 1; overflow-y: auto; padding: 8px 0 15px; }
.ai-message { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 12px; }
.ai-message.user { justify-content: flex-end; }
.ai-message p { max-width: 82%; margin: 0; padding: 12px 13px; border-radius: 4px 13px 13px 13px; color: var(--muted); background: var(--surface-soft); font-size: 11px; line-height: 1.55; }
.ai-message.user p { border-radius: 13px 4px 13px 13px; color: #fff; background: var(--accent); }
.ai-avatar { width: 29px; height: 29px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 8px; color: var(--accent-dark); background: var(--accent-soft); }
.ai-avatar svg { width: 15px; }
.ai-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0; }
.ai-suggestions button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: #fff; font-size: 9px; cursor: pointer; }
.ai-suggestions button:hover { border-color: var(--accent); color: var(--accent-dark); }
.ai-form { display: grid; grid-template-columns: 1fr 38px; gap: 8px; padding-top: 13px; border-top: 1px solid var(--line); }
.ai-form textarea { min-height: 40px; max-height: 110px; padding: 10px 11px; resize: none; border: 1px solid var(--line); border-radius: 9px; outline: 0; }
.ai-form textarea:focus { border-color: var(--accent); }
.ai-form button { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 9px; color: #fff; background: var(--accent); cursor: pointer; }
.ai-form button:hover { background: var(--accent-dark); }

.modal { width: min(760px, calc(100vw - 30px)); max-height: calc(100vh - 30px); padding: 0; overflow: hidden; border: 0; border-radius: 16px; color: var(--text); background: #fff; box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(18,28,18,.48); backdrop-filter: blur(3px); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.material-viewer { max-height: calc(100vh - 210px); overflow-y: auto; padding: 24px; }
.viewer-placeholder { min-height: 330px; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 30px; color: var(--muted); background: var(--surface-soft); text-align: center; }
.viewer-placeholder > svg { width: 55px; height: 55px; margin-bottom: 18px; color: var(--accent); }
.viewer-placeholder h3 { margin: 0 0 8px; color: var(--text); }
.viewer-placeholder p { max-width: 510px; margin: 0; font-size: 11px; line-height: 1.6; }
.viewer-outline { width: min(500px, 100%); display: grid; gap: 8px; margin-top: 20px; text-align: left; }
.viewer-outline div { padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 10px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 15px 24px; border-top: 1px solid var(--line); }
.quiz-modal { width: min(680px, calc(100vw - 30px)); }
.quiz-shell { padding: 26px; }
.quiz-top { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.quiz-top h2 { margin: 0; font-size: 20px; }
.quiz-top p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.quiz-progress { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 10px; }
.quiz-progress .linear-progress { width: 110px; margin: 0; }
.quiz-question { padding: 21px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.quiz-question > span { color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.quiz-question h3 { margin: 9px 0 18px; font-size: 17px; line-height: 1.4; }
.answer-list { display: grid; gap: 8px; }
.answer { width: 100%; min-height: 48px; display: grid; grid-template-columns: 27px 1fr; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: #fff; text-align: left; cursor: pointer; }
.answer:hover { border-color: var(--accent); }
.answer.selected { border-color: var(--accent); background: var(--accent-soft); }
.answer span { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 10px; font-weight: 800; }
.quiz-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 18px; }
.quiz-result { padding: 38px 28px; text-align: center; }
.result-mark { width: 78px; height: 78px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; color: #fff; background: var(--accent); }
.result-mark svg { width: 36px; height: 36px; }
.quiz-result h2 { margin: 0; font-size: 25px; }
.quiz-result > p { max-width: 440px; margin: 10px auto 22px; color: var(--muted); line-height: 1.55; }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 460px; margin: 0 auto 24px; border: 1px solid var(--line); border-radius: 11px; }
.result-stats div { padding: 14px; border-right: 1px solid var(--line); }
.result-stats div:last-child { border-right: 0; }
.result-stats strong { display: block; color: var(--accent-dark); font-size: 20px; }
.result-stats span { display: block; margin-top: 5px; color: var(--faint); font-size: 8px; }
.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 100; display: grid; gap: 8px; pointer-events: none; }
.toast { min-width: 270px; max-width: 390px; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #c6ddbd; border-radius: 10px; color: var(--accent-dark); background: #f6fbf3; box-shadow: var(--shadow); animation: toast-in 180ms ease both; }
.toast svg { width: 18px; }
.toast strong { display: block; font-size: 11px; }
.toast span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1120px) {
  .home-grid, .learning-layout, .tests-layout { grid-template-columns: 1fr; }
  .today-card { order: 2; }
  .side-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .global-search { max-width: 330px; }
  .topbar-title { min-width: 160px; }
  .top-profile { min-width: 40px; }
  .top-profile > span:nth-child(2), .top-profile > svg { display: none; }
}

@media (max-width: 880px) {
  :root { --sidebar-width: 252px; --topbar-height: 66px; }
  .sidebar { transform: translateX(-103%); transition: transform 220ms ease; }
  .sidebar.open { transform: translateX(0); box-shadow: 16px 0 42px rgba(18,28,18,.22); }
  .main-area { margin-left: 0; }
  .menu-button { display: grid; }
  .topbar { padding: 0 18px; }
  .topbar-title { min-width: 0; margin-right: auto; }
  .global-search { display: none; }
  .continue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .continue-grid .learning-card:last-child { grid-column: span 2; }
  .summary-strip { grid-template-columns: repeat(2, 1fr); }
  .summary-item:nth-child(2) { border-right: 0; }
  .summary-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .install-card { grid-template-columns: 44px 1fr; }
  .install-card .button { width: 100%; }
  .progress-top { grid-template-columns: repeat(2, 1fr); }
  .progress-main, .profile-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --topbar-height: 60px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .topbar { height: calc(var(--topbar-height) + env(safe-area-inset-top)); gap: 9px; padding: env(safe-area-inset-top) 12px 0; }
  .topbar-title strong { font-size: 14px; }
  .topbar-title span { font-size: 9px; }
  .top-profile { display: none; }
  .icon-button { width: 38px; height: 38px; }
  .content { min-height: calc(100vh - 128px); padding: 18px 13px 28px; }
  .bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 25; width: 100%; height: calc(68px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 7px 5px max(7px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); backdrop-filter: blur(12px); }
  .bottom-nav a { min-width: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; overflow: hidden; color: var(--faint); font-size: 8px; text-decoration: none; white-space: nowrap; }
  .bottom-nav a svg { width: 20px; height: 20px; }
  .bottom-nav a.active { color: var(--accent-dark); font-weight: 800; }
  .page-intro { display: block; margin-bottom: 16px; }
  .page-intro h1 { font-size: 25px; }
  .page-intro p { font-size: 11px; }
  .page-intro-actions { margin-top: 12px; }
  .page-intro-actions .button { flex: 1; }
  .section-row { gap: 10px; }
  .section-row h2 { min-width: 0; font-size: 18px; }
  .section-row a, .section-row .text-button { flex: 0 1 auto; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
  .hero-card { min-height: 0; display: block; padding: 24px 20px; }
  .hero-copy h1 { font-size: 29px; }
  .hero-copy p { font-size: 11px; }
  .hero-metric { display: none; }
  .today-card { padding: 18px; }
  .continue-grid, .material-grid, .side-stack { grid-template-columns: 1fr; }
  .continue-grid .learning-card:last-child { grid-column: auto; }
  .summary-strip { grid-template-columns: repeat(2, 1fr); }
  .summary-item { grid-template-columns: 34px 1fr; padding: 14px 12px; }
  .summary-icon { width: 34px; height: 34px; }
  .summary-item strong { font-size: 18px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card { grid-template-columns: 40px 1fr; padding: 16px; }
  .news-icon { width: 40px; height: 40px; }
  .install-card { grid-template-columns: 38px 1fr; padding: 15px; }
  .install-card-icon { width: 38px; height: 38px; }
  .install-card .button { grid-column: 1 / -1; }
  .program-card { padding: 17px; }
  .program-header { grid-template-columns: 45px 1fr; }
  .program-logo { width: 45px; height: 45px; }
  .program-progress { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; text-align: left; }
  .program-progress strong { font-size: 19px; }
  .timeline-item { grid-template-columns: 34px 1fr; gap: 11px; }
  .timeline-marker { width: 34px; height: 34px; }
  .timeline-action { grid-column: 2; }
  .toolbar { display: grid; }
  .search-field { min-width: 0; }
  .filter-tabs { max-width: calc(100vw - 26px); }
  .material-cover { height: 125px; }
  .tests-layout { gap: 14px; }
  .test-card { grid-template-columns: 42px 1fr; padding: 14px; }
  .test-icon { width: 42px; height: 42px; }
  .test-card > .button, .test-score { grid-column: 1 / -1; }
  .test-card > .button { width: 100%; }
  .test-score { display: flex; align-items: baseline; justify-content: center; gap: 5px; }
  .progress-top { gap: 8px; }
  .metric-card { padding: 15px; }
  .metric-card strong { font-size: 24px; }
  .progress-main { gap: 10px; }
  .activity-card, .skills-card, .achievements-card { padding: 17px; }
  .week-chart { gap: 7px; padding-right: 0; padding-left: 0; }
  .achievement-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-layout { gap: 12px; }
  .profile-card, .settings-card { padding: 19px; }
  .notification-permission { grid-template-columns: 38px 1fr; }
  .notification-permission-icon { width: 38px; height: 38px; }
  .notification-permission .button { grid-column: 1 / -1; width: 100%; }
  .drawer { padding: 20px 16px; }
  .modal { width: calc(100vw - 18px); max-height: calc(100vh - 18px); border-radius: 13px; }
  .modal-head, .material-viewer, .modal-actions { padding-right: 17px; padding-left: 17px; }
  .modal-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .quiz-shell { padding: 19px 16px; }
  .quiz-top { display: block; }
  .quiz-progress { margin-top: 12px; }
  .quiz-question { padding: 16px; }
  .quiz-question h3 { font-size: 15px; }
  .result-stats div { padding: 11px 5px; }
  .toast-region { right: 10px; bottom: 78px; left: 10px; }
  .toast { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Product UI v2: readable, restrained and consistent */
:root {
  --bg: #f5f6f2;
  --surface-soft: #f7f8f5;
  --surface-strong: #e9ede6;
  --line: #d9dfd6;
  --line-strong: #bbc7b7;
  --text: #172019;
  --muted: #58635b;
  --faint: #758078;
  --accent: #397529;
  --accent-dark: #24551c;
  --accent-soft: #edf4e9;
  --sidebar: #173322;
  --sidebar-soft: #234831;
  --radius-sm: 10px;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(25, 45, 29, .06);
  --shadow: 0 16px 42px rgba(21, 42, 27, .14);
}

body { font-size: 15px; line-height: 1.45; }
svg { stroke-width: 1.85; }
h1, h2, h3, strong { letter-spacing: -.012em; }
.card { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.button { min-height: 44px; padding: 0 17px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; }
.button.primary { background: var(--accent-dark); }
.button.primary:hover { background: #173f14; }
.text-button { font-size: 13px; font-weight: 600; }
.status-badge { padding: 5px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.eyebrow { margin-bottom: 8px; font-size: 11px; font-weight: 700; letter-spacing: .075em; }
.page-intro h1 { font-size: clamp(28px, 3vw, 38px); font-weight: 650; letter-spacing: -.025em; }
.page-intro p { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.card-head h2, .card-head h3 { font-size: 17px; font-weight: 650; }
.card-head p { font-size: 12px; }

.brand strong { font-size: 15px; font-weight: 650; }
.brand small { font-size: 12px; }
.main-nav a { min-height: 48px; border-radius: 9px; font-size: 14px; font-weight: 500; }
.main-nav a b { font-size: 11px; font-weight: 650; }
.sidebar-help strong { font-size: 14px; }
.sidebar-help p, .sidebar-help button { font-size: 12px; }
.sidebar-profile { grid-template-columns: 42px 1fr 16px; }
.sidebar-profile strong { font-size: 13px; }
.sidebar-profile small { font-size: 11px; }
.topbar-title strong { font-size: 18px; font-weight: 650; }
.topbar-title span { font-size: 12px; }
.global-search input { font-size: 13px; }
.top-profile strong { font-size: 13px; }
.top-profile small { font-size: 11px; }

.hero-card { border-radius: 16px; }
.hero-card::after { display: none; }
.hero-copy h1 { font-weight: 600; line-height: 1.12; letter-spacing: -.02em; }
.hero-copy p { color: #d7dfd5; font-size: 14px; line-height: 1.6; }
.progress-ring { border-width: 10px; }
.today-card { padding: 24px; }
.task { min-height: 66px; }
.task strong { font-size: 14px; font-weight: 600; }
.task small, .task time { font-size: 12px; }
.section-row h2 { font-size: 21px; font-weight: 650; }
.section-row a { font-size: 13px; }
.learning-card { padding: 19px; }
.learning-icon { border-radius: 9px; }
.learning-card h3 { min-height: 42px; font-size: 15px; font-weight: 600; }
.learning-card p { min-height: 38px; font-size: 13px; }
.meta-row, .learning-card-foot { font-size: 12px; }

.summary-strip { border-radius: var(--radius); }
.summary-item { grid-template-columns: 32px 1fr; gap: 12px; padding: 21px 22px; }
.summary-icon, .summary-icon.warning, .summary-icon.blue, .summary-icon.purple { width: 32px; height: 32px; border-radius: 0; color: var(--accent-dark); background: transparent; }
.summary-icon svg { width: 23px; height: 23px; }
.summary-item strong { font-size: 23px; font-weight: 650; }
.summary-item span { margin-top: 5px; color: var(--muted); font-size: 12px; }

.news-card h3 { font-size: 15px; font-weight: 600; }
.news-card p { font-size: 13px; }
.news-card a { font-size: 13px; }
.install-card strong { font-size: 14px; }
.install-card p { font-size: 12px; }
.team-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 8px 20px; }
.team-person { position: relative; min-width: 0; display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 12px; padding: 14px 18px; border-right: 1px solid var(--line); }
.team-person:last-child { border-right: 0; }
.team-person strong { display: block; overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.team-person span:not(.employee-photo, .online-dot) { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.online-dot { position: absolute; top: 17px; left: 57px; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: #3c8b37; }

.program-header h2 { font-size: 21px; font-weight: 650; }
.program-header p { font-size: 13px; }
.program-progress span { font-size: 11px; }
.timeline-copy h3 { font-size: 15px; font-weight: 600; }
.timeline-copy p { font-size: 13px; }
.mentor-profile { gap: 13px; }
.mentor-profile strong { font-size: 14px; font-weight: 600; }
.mentor-profile span { font-size: 12px; }
.mentor-card p { font-size: 13px; line-height: 1.6; }
.shift-row > div:last-child strong { font-size: 14px; }
.shift-row > div:last-child span { font-size: 12px; }

.search-field input { font-size: 13px; }
.filter-tabs button { min-height: 34px; font-size: 12px; font-weight: 600; }
.material-type { font-size: 10px; }
.material-body h3 { min-height: 42px; font-size: 15px; font-weight: 600; }
.material-body p { min-height: 40px; font-size: 12.5px; line-height: 1.55; }
.test-copy h3 { font-size: 15px; font-weight: 600; }
.test-copy p, .rules-card li { font-size: 12.5px; }
.metric-card > span { font-size: 12px; }
.metric-card small { font-size: 11px; }
.skill-row-head { font-size: 13px; }
.achievement strong { font-size: 13px; }
.achievement span { font-size: 11px; }
.profile-card > p, .profile-details div, .setting-row strong { font-size: 13px; }
.setting-row p, .notification-permission p { font-size: 12px; }

.employee-photo {
  width: 48px;
  height: 48px;
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(24, 51, 34, .11);
  border-radius: 50%;
  background-image: url("./assets/employee-portraits-v1.jpg");
  background-size: 200% 200%;
  background-repeat: no-repeat;
  background-color: #ebe9e2;
}
.employee-photo.small { width: 38px; height: 38px; }
.photo-alex { background-position: 0 0; }
.photo-maria { background-position: 100% 0; }
.photo-admin { background-position: 0 100%; }
.photo-chef { background-position: 100% 100%; }
.profile-photo { width: 92px; height: 92px; margin: 0 auto 17px; }

/* Complete sign-in and registration flow */
.app-shell.auth-mode .sidebar,
.app-shell.auth-mode .topbar,
.app-shell.auth-mode .bottom-nav { display: none; }
.app-shell.auth-mode .main-area { min-height: 100vh; margin-left: 0; }
.app-shell.auth-mode .content { width: 100%; max-width: none; min-height: 100vh; padding: 0; }
.auth-stage { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 46%) 1fr; background: #f7f8f5; }
.auth-visual { display: flex; flex-direction: column; padding: clamp(30px, 4vw, 64px); color: #fff; background: var(--sidebar); }
.auth-brand { display: flex; align-items: center; gap: 13px; color: #fff; text-decoration: none; }
.auth-brand img { width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.auth-brand span { display: flex; flex-direction: column; }
.auth-brand strong { font-size: 15px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.auth-brand small { margin-top: 3px; color: #b9c8bc; font-size: 12px; }
.auth-story { max-width: 570px; margin: auto 0; padding: 70px 0; }
.auth-label { display: block; margin-bottom: 10px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.auth-visual .auth-label { color: #b9d783; }
.auth-story h1 { max-width: 570px; margin: 0; font-size: clamp(34px, 4vw, 55px); font-weight: 600; line-height: 1.08; letter-spacing: -.025em; }
.auth-story > p { max-width: 530px; margin: 20px 0 28px; color: #ced9d0; font-size: 16px; line-height: 1.65; }
.auth-story ul { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.auth-story li { display: flex; align-items: center; gap: 10px; color: #e2e9e3; font-size: 14px; }
.auth-story li svg { width: 18px; color: #b9d783; }
.auth-people { display: flex; align-items: center; gap: 16px; padding-top: 23px; border-top: 1px solid rgba(255,255,255,.12); }
.avatar-stack { display: flex; padding-left: 10px; }
.avatar-stack .employee-photo { width: 42px; height: 42px; margin-left: -10px; border: 3px solid var(--sidebar); }
.auth-people strong { display: block; font-size: 13px; font-weight: 600; }
.auth-people span:last-child { display: block; margin-top: 3px; color: #aebdaf; font-size: 11px; }
.auth-panel { display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 42px clamp(24px, 6vw, 92px); }
.auth-card { width: min(500px, 100%); padding: clamp(28px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 14px 42px rgba(30, 49, 34, .08); }
.auth-card.compact { width: min(560px, 100%); }
.auth-card-head { margin-bottom: 27px; }
.auth-card-head h2, .onboarding-success h2 { margin: 0; font-size: 29px; font-weight: 650; line-height: 1.2; letter-spacing: -.025em; }
.auth-card-head p, .onboarding-success p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.auth-form { display: grid; gap: 17px; }
.auth-field { display: grid; gap: 7px; }
.auth-field > span { color: var(--text); font-size: 13px; font-weight: 600; }
.auth-field > span small { color: var(--faint); font-weight: 400; }
.auth-field > div { min-height: 50px; display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; transition: border-color 140ms ease, box-shadow 140ms ease; }
.auth-field > div:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(57, 117, 41, .1); }
.auth-field svg { width: 18px; color: var(--faint); }
.auth-field input, .auth-field select { min-width: 0; width: 100%; height: 46px; padding: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 15px; }
.auth-field input::placeholder { color: #99a19a; }
.auth-form-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.auth-checkbox { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; cursor: pointer; }
.auth-checkbox input { width: 17px; height: 17px; accent-color: var(--accent); }
.auth-submit { width: 100%; min-height: 50px; font-size: 14px; }
.auth-divider { position: relative; margin: 24px 0 16px; color: var(--faint); font-size: 11px; text-align: center; }
.auth-divider::before { content: ""; position: absolute; top: 50%; right: 0; left: 0; height: 1px; background: var(--line); }
.auth-divider span { position: relative; padding: 0 12px; background: #fff; }
.auth-secondary-link { min-height: 44px; display: flex; align-items: center; justify-content: center; color: var(--accent-dark); font-size: 13px; font-weight: 600; text-decoration: none; }
.auth-secondary-link:hover { color: var(--accent); }
.admin-entry { display: grid; grid-template-columns: 22px 1fr 16px; align-items: center; gap: 12px; margin-top: 18px; padding: 15px 0 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.admin-entry > svg:first-child { color: var(--accent); }
.admin-entry > svg:last-child { width: 15px; color: var(--faint); }
.admin-entry strong { display: block; font-size: 13px; font-weight: 600; }
.admin-entry small { display: block; margin-top: 3px; color: var(--faint); font-size: 11px; }
.auth-legal { width: min(500px, 100%); margin-top: 15px; color: var(--faint); font-size: 10px; line-height: 1.45; text-align: center; }
.registration-progress { height: 4px; margin: -44px -44px 34px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--surface-strong); }
.registration-progress span { height: 100%; display: block; background: var(--accent); transition: width 180ms ease; }
.auth-actions { display: grid; grid-template-columns: 1fr 1.5fr; gap: 9px; margin-top: 4px; }
.auth-hint, .admin-security { display: flex; align-items: flex-start; gap: 9px; padding: 12px 13px; border-left: 3px solid var(--accent); border-radius: var(--radius-sm); color: var(--muted); background: var(--surface-soft); font-size: 12px; line-height: 1.5; }
.auth-hint svg, .admin-security svg { width: 18px; flex: 0 0 auto; color: var(--accent); }
.admin-security { margin: 20px 0 6px; }
.registration-summary { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 13px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-soft); }
.registration-summary .employee-photo { width: 58px; height: 58px; }
.registration-summary strong { display: block; font-size: 15px; font-weight: 600; }
.registration-summary span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.notification-choice { display: grid; grid-template-columns: 19px 38px 1fr; align-items: center; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.notification-choice:has(input:checked) { border-color: #b7cfad; background: var(--accent-soft); }
.notification-choice input { width: 18px; height: 18px; accent-color: var(--accent); }
.notification-choice-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--accent-dark); }
.notification-choice-icon svg { width: 20px; }
.notification-choice strong { display: block; font-size: 13px; font-weight: 600; }
.notification-choice small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.auth-checkbox.consent { margin-top: 3px; }
.onboarding-success { text-align: center; }
.success-mark { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; color: #fff; background: var(--accent); }
.success-mark svg { width: 28px; height: 28px; }
.assigned-program { margin: 27px 0 18px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.assigned-program-head { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; }
.program-number { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--accent-dark); font-size: 12px; font-weight: 700; }
.assigned-program strong { display: block; font-size: 15px; font-weight: 600; }
.assigned-program-head div span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.assigned-program-path { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 17px; }
.assigned-program-path span { height: 4px; background: var(--surface-strong); }
.assigned-program-path span.complete { background: var(--accent); }
.assigned-mentor { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 13px; margin-bottom: 22px; padding: 14px; border-radius: var(--radius-sm); background: var(--surface-soft); }
.assigned-mentor .employee-photo { width: 58px; height: 58px; }
.assigned-mentor div > span, .assigned-mentor small { display: block; color: var(--muted); font-size: 11px; }
.assigned-mentor strong { display: block; margin: 3px 0; font-size: 14px; font-weight: 600; }

@media (max-width: 960px) {
  .auth-stage { grid-template-columns: minmax(330px, 42%) 1fr; }
  .auth-visual { padding: 30px; }
  .auth-story h1 { font-size: 36px; }
  .auth-panel { padding: 30px 22px; }
  .team-row { grid-template-columns: 1fr; }
  .team-person { border-right: 0; border-bottom: 1px solid var(--line); }
  .team-person:last-child { border-bottom: 0; }
}

@media (max-width: 700px) {
  body { font-size: 15px; }
  .auth-stage { display: block; }
  .auth-visual { min-height: 92px; padding: calc(18px + env(safe-area-inset-top)) 20px 18px; }
  .auth-story, .auth-people { display: none; }
  .auth-brand img { width: 42px; height: 42px; }
  .auth-brand strong { font-size: 14px; }
  .auth-brand small { font-size: 11px; }
  .auth-panel { min-height: calc(100vh - 92px); justify-content: flex-start; padding: 20px 14px calc(28px + env(safe-area-inset-bottom)); }
  .auth-card { padding: 25px 20px; box-shadow: none; }
  .auth-card-head { margin-bottom: 22px; }
  .auth-card-head h2, .onboarding-success h2 { font-size: 26px; }
  .auth-card-head p, .onboarding-success p { font-size: 13.5px; }
  .registration-progress { margin: -25px -20px 27px; }
  .auth-actions { grid-template-columns: 1fr; }
  .assigned-program-head { grid-template-columns: 42px 1fr; }
  .assigned-program-head .status-badge { grid-column: 2; justify-self: start; }
  .notification-choice { grid-template-columns: 18px 1fr; }
  .notification-choice-icon { display: none; }
  .hero-copy h1 { font-size: 30px; line-height: 1.15; }
  .hero-copy p { font-size: 13.5px; }
  .bottom-nav a { font-size: 10px; }
  .bottom-nav a svg { width: 21px; height: 21px; }
  .summary-item span { font-size: 11px; }
  .page-intro h1 { font-size: 27px; }
  .page-intro p { font-size: 13px; }
  .timeline-copy h3 { font-size: 14px; }
  .timeline-copy p, .meta-row { font-size: 12px; }
  .team-person { padding-right: 4px; padding-left: 4px; }
}

.progress-ring small,
.news-card .eyebrow,
.date-tile span,
.week-column strong,
.week-column span,
.notification time,
.ai-status,
.ai-suggestions button,
.quiz-question > span,
.result-stats span,
.toast span { font-size: 11px; }

@media (max-width: 700px) {
  .section-row a,
  .section-row .text-button { font-size: 11px; }
}

/* Internal messenger */
.team-person { color: inherit; text-decoration: none; transition: background 140ms ease; }
.team-person:hover { background: var(--surface-soft); }
.messenger-content { display: flex; flex-direction: column; }
.messenger-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.messenger-page-head h1 { margin: 0; font-size: clamp(27px, 3vw, 36px); font-weight: 650; letter-spacing: -.025em; }
.messenger-page-head p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.messenger-shell { min-height: 610px; height: calc(100vh - var(--topbar-height) - 176px); overflow: hidden; display: grid; grid-template-columns: 360px minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.conversation-panel { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #fbfcfa; }
.conversation-toolbar { display: grid; grid-template-columns: 1fr 40px; align-items: center; gap: 9px; padding: 17px 16px 10px; }
.conversation-toolbar label, .new-chat-search { min-width: 0; height: 42px; display: grid; grid-template-columns: 19px 1fr; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.conversation-toolbar label:focus-within, .new-chat-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(57,117,41,.09); }
.conversation-toolbar label svg, .new-chat-search svg { width: 17px; color: var(--faint); }
.conversation-toolbar input, .new-chat-search input { min-width: 0; width: 100%; height: 38px; padding: 0; border: 0; outline: 0; color: var(--text); background: transparent; font: inherit; font-size: 12.5px; }
.message-filters { display: flex; gap: 5px; padding: 0 16px 12px; border-bottom: 1px solid var(--line); }
.message-filters button { min-height: 31px; padding: 0 10px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.message-filters button.active { color: var(--accent-dark); background: var(--accent-soft); }
.conversation-list { min-height: 0; flex: 1; overflow-y: auto; padding: 7px; }
.conversation-item { position: relative; min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 11px; padding: 12px 10px; border-radius: 10px; color: inherit; text-decoration: none; }
.conversation-item:hover { background: #f1f4ef; }
.conversation-item.active { background: #e9f0e6; }
.conversation-item .employee-photo, .conversation-item .conversation-symbol { width: 48px; height: 48px; }
.conversation-copy { min-width: 0; display: grid; gap: 5px; }
.conversation-copy > span { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.conversation-copy strong { overflow: hidden; font-size: 13.5px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.conversation-copy time { flex: 0 0 auto; color: var(--faint); font-size: 10px; }
.conversation-copy small { min-width: 0; overflow: hidden; color: var(--muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-copy b { min-width: 19px; height: 19px; display: grid; flex: 0 0 auto; place-items: center; padding: 0 5px; border-radius: 10px; color: #fff; background: var(--accent); font-size: 9px; }
.conversation-online { position: absolute; top: 47px; left: 45px; width: 11px; height: 11px; border: 2px solid #fbfcfa; border-radius: 50%; background: #3b9138; }
.conversation-item.active .conversation-online { border-color: #e9f0e6; }
.conversation-symbol { width: 48px; height: 48px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 12px; color: #fff; background: var(--sidebar-soft); }
.conversation-symbol.channel { color: #684717; background: #f7ebd5; }
.conversation-symbol svg { width: 22px; }
.conversation-empty { padding: 28px 12px; color: var(--faint); font-size: 12px; text-align: center; }

.chat-panel { min-width: 0; width: 100%; max-width: 100%; min-height: 0; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.chat-header { min-height: 72px; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.chat-header > .employee-photo, .chat-header > .conversation-symbol { width: 48px; height: 48px; }
.chat-header > div:nth-of-type(1) { min-width: 0; }
.chat-header strong { display: block; overflow: hidden; font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.chat-header span { display: block; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.chat-header-actions { display: flex; gap: 7px; }
.chat-back { display: none; color: var(--text); }
.chat-back svg { width: 22px; }
.message-thread { min-width: 0; width: 100%; min-height: 0; flex: 1; overflow-x: hidden; overflow-y: auto; padding: 24px clamp(20px, 4vw, 54px); background: #f6f7f4; }
.message-day { display: flex; align-items: center; justify-content: center; margin: 7px 0 17px; }
.message-day span { padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--faint); background: rgba(255,255,255,.92); font-size: 10px; font-weight: 600; }
.message-row { display: flex; align-items: flex-end; gap: 9px; margin: 9px 0; }
.message-row.outgoing { justify-content: flex-end; }
.message-photo { width: 31px; height: 31px; margin-bottom: 2px; }
.message-stack { min-width: 0; max-width: min(620px, 76%); }
.message-sender { display: block; margin: 0 0 4px 3px; color: var(--accent-dark); font-size: 10.5px; font-weight: 650; }
.message-bubble { position: relative; min-width: 110px; max-width: 100%; padding: 10px 12px 7px; border: 1px solid var(--line); border-radius: 12px 12px 12px 4px; background: #fff; box-shadow: 0 1px 2px rgba(24,46,29,.04); }
.outgoing .message-bubble { border-color: #c9dcc2; border-radius: 12px 12px 4px 12px; background: #e9f3e5; }
.message-bubble p { margin: 0 0 3px; overflow-wrap: anywhere; color: var(--text); font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.message-time { min-height: 14px; display: flex; align-items: center; justify-content: flex-end; gap: 2px; color: var(--faint); font-size: 9px; text-align: right; }
.message-time svg { width: 13px; color: var(--accent); }
.shared-material { width: min(330px, 100%); display: grid; grid-template-columns: 34px minmax(0, 1fr) 15px; align-items: center; gap: 9px; margin: 9px 0 4px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: #fff; text-align: left; cursor: pointer; }
.shared-material > span:first-child { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; color: var(--accent-dark); background: var(--accent-soft); }
.shared-material svg { width: 17px; }
.shared-material > span:nth-child(2) { min-width: 0; }
.shared-material strong, .shared-material small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shared-material strong { font-size: 11px; font-weight: 650; }
.shared-material small { margin-top: 3px; color: var(--faint); font-size: 9.5px; }
.shared-material > svg { color: var(--faint); }
.message-composer { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: end; gap: 8px; padding: 12px 15px; border-top: 1px solid var(--line); background: #fff; }
.message-composer textarea { min-width: 0; width: 100%; min-height: 42px; max-height: 112px; resize: none; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); outline: 0; color: var(--text); background: var(--surface-soft); font: inherit; font-size: 13px; line-height: 1.55; }
.message-composer textarea:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(57,117,41,.08); }
.composer-action, .composer-send { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--radius-sm); cursor: pointer; }
.composer-action { color: var(--muted); background: var(--surface-soft); }
.composer-send { color: #fff; background: var(--accent-dark); }
.composer-action svg, .composer-send svg { width: 19px; }
.channel-notice { min-height: 67px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 18px; border-top: 1px solid var(--line); color: var(--muted); background: #fff; }
.channel-notice > svg { width: 19px; color: var(--accent); }
.channel-notice strong, .channel-notice small { display: block; }
.channel-notice strong { font-size: 12px; font-weight: 650; }
.channel-notice small { margin-top: 2px; font-size: 10px; }

.new-chat-dialog { width: min(460px, calc(100vw - 28px)); max-height: min(650px, calc(100vh - 28px)); padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); background: #fff; box-shadow: var(--shadow); }
.new-chat-dialog::backdrop { background: rgba(15,31,20,.48); backdrop-filter: blur(3px); }
.new-chat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 21px 22px 16px; }
.new-chat-head h2 { margin: 0; font-size: 21px; font-weight: 650; }
.new-chat-search { margin: 0 22px 13px; }
.new-chat-list { max-height: 430px; overflow-y: auto; padding: 0 12px 14px; }
.new-chat-list a { display: grid; grid-template-columns: 48px 1fr 18px; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 10px; color: inherit; text-decoration: none; }
.new-chat-list a:hover { background: var(--surface-soft); }
.new-chat-list a > svg { width: 16px; color: var(--faint); }
.new-chat-list strong, .new-chat-list small { display: block; }
.new-chat-list strong { font-size: 13px; font-weight: 650; }
.new-chat-list small { margin-top: 3px; color: var(--muted); font-size: 10.5px; }
.bottom-nav a { position: relative; }
.bottom-nav a b { position: absolute; top: 1px; left: calc(50% + 7px); min-width: 16px; height: 16px; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; border-radius: 9px; color: #fff; background: var(--danger); font-size: 8px; font-weight: 700; }

@media (max-width: 1100px) {
  .messenger-shell { grid-template-columns: 310px minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .content.messenger-content { height: calc(100vh - var(--topbar-height) - 68px - env(safe-area-inset-bottom)); min-height: 0; padding: 0; overflow: hidden; }
  .messenger-page-head { display: none; }
  .messenger-shell { width: 100%; min-height: 0; height: 100%; grid-template-columns: 1fr; border: 0; border-radius: 0; box-shadow: none; }
  .conversation-panel, .chat-panel { min-width: 0; width: 100%; max-width: 100vw; }
  .conversation-panel { border-right: 0; }
  .messenger-shell:not(.conversation-selected) .chat-panel { display: none; }
  .messenger-shell.conversation-selected .conversation-panel { display: none; }
  .chat-header { min-height: 65px; grid-template-columns: 28px 42px minmax(0, 1fr) auto; gap: 9px; padding: 8px 10px; }
  .chat-header > .employee-photo, .chat-header > .conversation-symbol { width: 42px; height: 42px; }
  .chat-back { display: grid; place-items: center; }
  .chat-header-actions .icon-button { width: 36px; height: 36px; border: 0; }
  .chat-header-actions [data-chat-call] { display: none; }
  .conversation-toolbar { padding-top: 12px; }
  .conversation-item { min-height: 70px; padding: 10px; }
  .message-thread { padding: 15px 10px 18px; background-size: 20px 20px; }
  .message-stack { max-width: 84%; }
  .message-bubble p { font-size: 12.5px; }
  .message-composer { grid-template-columns: 38px minmax(0, 1fr) 40px; gap: 6px; padding: 9px 8px calc(9px + env(safe-area-inset-bottom)); }
  .composer-action { width: 38px; }
  .new-chat-dialog { width: calc(100vw - 20px); }
}

/* Readability pass: consistent scale and stronger contrast */
:root {
  --muted: #424d45;
  --faint: #5d685f;
  --line: #d2d9cf;
  --line-strong: #aebbaa;
}

body { font-size: 16px; line-height: 1.55; }
.content:not(.messenger-content) { max-width: 1540px; }
.button { min-height: 46px; padding: 0 18px; font-size: 14px; line-height: 1.25; }
.text-button { font-size: 14px; }
.status-badge { min-height: 28px; padding: 5px 9px; font-size: 12px; line-height: 1.2; }
.eyebrow { font-size: 12px; }
.page-intro p { font-size: 15px; }
.card-head { align-items: flex-start; }
.card-head > div, .mentor-profile > div, .shift-row > div:last-child { min-width: 0; }
.card-head h2, .card-head h3 { font-size: 18px; line-height: 1.3; }
.card-head p { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.45; }

.learning-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; }
.program-header p { font-size: 14px; }
.program-progress span { font-size: 12px; }
.timeline-copy h3 { font-size: 16px; line-height: 1.35; }
.timeline-copy p { font-size: 14px; line-height: 1.55; }
.meta-row, .learning-card-foot { font-size: 13px; }
.side-stack { min-width: 0; gap: 16px; }
.mentor-card, .shift-card { min-width: 0; padding: 24px; }
.mentor-profile { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 13px; }
.mentor-profile .employee-photo { width: 52px; height: 52px; }
.mentor-profile strong { font-size: 16px; line-height: 1.3; }
.mentor-profile span { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.mentor-card > p { margin: 18px 0; padding: 15px 16px; color: var(--text); font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.mentor-card .button { width: 100%; }
.shift-row { grid-template-columns: 58px minmax(0, 1fr); gap: 14px; }
.date-tile { width: 58px; height: 62px; }
.date-tile strong { font-size: 22px; }
.date-tile span { margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 600; }
.shift-row > div:last-child strong { font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.shift-row > div:last-child span { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.task strong { font-size: 15px; }
.task small, .task time { color: var(--muted); font-size: 13px; }
.learning-card h3, .news-card h3, .material-body h3, .test-copy h3 { font-size: 16px; line-height: 1.4; }
.learning-card p, .news-card p, .material-body p, .test-copy p, .rules-card li { color: var(--muted); font-size: 14px; line-height: 1.55; }
.summary-item span, .metric-card > span, .install-card p, .team-person span:not(.employee-photo, .online-dot) { color: var(--muted); font-size: 13px; }
.profile-card > p, .profile-details div, .setting-row strong { font-size: 14px; }
.setting-row p, .notification-permission p { color: var(--muted); font-size: 13px; }
.achievement strong { font-size: 14px; }
.achievement span, .metric-card small { color: var(--muted); font-size: 12px; }

.auth-card { width: min(540px, 100%); }
.auth-card-head p, .onboarding-success p { color: var(--muted); font-size: 15px; }
.auth-field > span { font-size: 14px; }
.auth-field > div { min-height: 54px; }
.auth-field input, .auth-field select { height: 50px; font-size: 16px; }
.auth-field input::placeholder { color: #717b73; opacity: 1; }
.auth-checkbox { color: var(--muted); font-size: 13px; }
.auth-divider { font-size: 12px; }
.auth-secondary-link { font-size: 14px; }
.admin-entry strong { font-size: 14px; }
.admin-entry small, .auth-legal { color: var(--muted); font-size: 12px; }
.auth-hint, .admin-security { font-size: 13px; }
.notification-choice strong { font-size: 14px; }
.notification-choice small { color: var(--muted); font-size: 13px; }
.registration-summary span, .assigned-program-head div span, .assigned-mentor div > span, .assigned-mentor small { color: var(--muted); font-size: 13px; }
.role-code-preview { min-height: 72px; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 12px; padding: 14px 15px; border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--muted); background: var(--surface-soft); }
.role-code-preview.valid { border-color: #b9d1b1; border-left-color: var(--accent); background: var(--accent-soft); }
.role-code-preview > svg { width: 21px; color: var(--accent-dark); }
.role-code-preview strong, .role-code-preview span { display: block; }
.role-code-preview strong { color: var(--text); font-size: 14px; font-weight: 650; line-height: 1.35; }
.role-code-preview span { margin-top: 4px; font-size: 13px; line-height: 1.4; }

.conversation-copy strong { font-size: 14px; }
.conversation-copy small { color: var(--muted); font-size: 13px; }
.conversation-copy time, .message-time { color: var(--muted); font-size: 11px; }
.message-filters button { font-size: 13px; }
.chat-header strong { font-size: 15px; }
.chat-header span { color: var(--muted); font-size: 13px; }
.message-day span, .message-sender { font-size: 12px; }
.message-bubble p { font-size: 14px; }
.shared-material strong { font-size: 13px; }
.shared-material small { color: var(--muted); font-size: 11px; }
.message-composer textarea { font-size: 15px; }
.channel-notice strong { font-size: 14px; }
.channel-notice small { font-size: 12px; }
.new-chat-list strong { font-size: 14px; }
.new-chat-list small { color: var(--muted); font-size: 12px; }

/* Telegram-like chat and group management */
.conversation-item { min-height: 78px; }
.conversation-copy { overflow: hidden; }
.conversation-copy strong { font-size: 15px; line-height: 1.3; }
.conversation-copy small { font-size: 13px; line-height: 1.35; }
.conversation-copy time { font-size: 11px; }
.conversation-copy > span:last-child { align-items: center; }
.conversation-marks { min-width: 0; display: flex; flex: 0 0 auto; align-items: center; gap: 5px; }
.conversation-marks > svg { width: 14px; color: var(--faint); }
.conversation-marks b { min-width: 20px; height: 20px; }
.conversation-symbol { border-radius: var(--radius-sm); }
.new-group-entry { width: calc(100% - 28px); min-height: 68px; display: grid; grid-template-columns: 46px minmax(0, 1fr) 18px; align-items: center; gap: 12px; margin: 0 14px 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); background: var(--accent-soft); text-align: left; cursor: pointer; }
.new-group-entry > span:first-child { width: 46px; height: 46px; display: grid; place-items: center; border-radius: var(--radius-sm); color: #fff; background: var(--accent-dark); }
.new-group-entry > span:first-child svg { width: 22px; }
.new-group-entry > span:nth-child(2) { min-width: 0; }
.new-group-entry strong, .new-group-entry small { display: block; }
.new-group-entry strong { font-size: 15px; font-weight: 650; }
.new-group-entry small { margin-top: 3px; color: var(--muted); font-size: 13px; }
.new-group-entry > svg { width: 17px; color: var(--faint); }

.chat-settings-dialog { width: min(560px, calc(100vw - 28px)); max-height: min(780px, calc(100vh - 28px)); padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); background: #fff; box-shadow: var(--shadow); }
.chat-settings-dialog::backdrop { background: rgba(15,31,20,.48); backdrop-filter: blur(3px); }
.chat-settings-head { display: grid; grid-template-columns: 42px 60px minmax(0, 1fr); align-items: center; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.chat-settings-head > .employee-photo, .chat-settings-head > .conversation-symbol { width: 60px; height: 60px; }
.chat-settings-head > div { min-width: 0; }
.chat-settings-head span { color: var(--accent-dark); font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.chat-settings-head h2 { margin: 2px 0 0; overflow: hidden; font-size: 22px; font-weight: 650; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.chat-settings-head p { margin: 4px 0 0; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.chat-settings-body { max-height: calc(min(780px, 100vh - 28px) - 102px); overflow-y: auto; padding: 18px; }
.chat-edit-section { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.auth-field > small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.chat-setting-list { padding: 10px 0; border-bottom: 1px solid var(--line); }
.chat-setting-row { width: 100%; min-height: 64px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 6px; border: 0; color: var(--text); background: transparent; text-align: left; }
.chat-setting-row.action { cursor: pointer; }
.chat-setting-row.action:hover { background: var(--surface-soft); }
.chat-setting-row > svg { width: 17px; color: var(--faint); }
.chat-setting-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--radius-sm); color: var(--accent-dark); background: var(--accent-soft); }
.chat-setting-icon svg { width: 20px; }
.chat-setting-row strong, .chat-setting-row small { display: block; }
.chat-setting-row strong { font-size: 15px; font-weight: 650; }
.chat-setting-row small { margin-top: 3px; color: var(--muted); font-size: 13px; }
.chat-members { padding: 18px 0; border-bottom: 1px solid var(--line); }
.chat-section-title { display: flex; align-items: center; justify-content: space-between; margin: 0 6px 8px; }
.chat-section-title strong { font-size: 16px; }
.chat-section-title span { min-width: 28px; padding: 2px 7px; border-radius: 12px; color: var(--accent-dark); background: var(--accent-soft); font-size: 12px; text-align: center; }
.chat-member-row { min-height: 64px; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 6px; }
.chat-member-row .employee-photo { width: 46px; height: 46px; }
.chat-member-row > div { min-width: 0; }
.chat-member-row strong, .chat-member-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-member-row strong { font-size: 14px; }
.chat-member-row small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.chat-danger-zone { display: grid; gap: 4px; padding-top: 12px; }
.chat-danger-zone button { min-height: 60px; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px 12px; border: 0; border-radius: var(--radius-sm); color: var(--danger); background: transparent; text-align: left; cursor: pointer; }
.chat-danger-zone button:hover { background: #fff1ef; }
.chat-danger-zone button > svg { width: 21px; }
.chat-danger-zone strong, .chat-danger-zone small { display: block; }
.chat-danger-zone strong { font-size: 14px; }
.chat-danger-zone small { margin-top: 3px; color: var(--muted); font-size: 12px; }

.create-group-dialog form { min-height: 0; display: flex; flex-direction: column; }
.simple-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px; border-bottom: 1px solid var(--line); }
.simple-dialog-head h2 { margin: 4px 0 0; font-size: 22px; font-weight: 650; }
.simple-dialog-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.create-group-body { min-height: 0; overflow-y: auto; padding: 20px 22px; }
.member-picker { display: grid; gap: 4px; margin: 18px 0 0; padding: 0; border: 0; }
.member-picker legend { margin-bottom: 8px; font-size: 14px; font-weight: 650; }
.member-picker label { min-height: 62px; display: grid; grid-template-columns: 22px 46px minmax(0, 1fr) 24px; align-items: center; gap: 11px; padding: 7px 8px; border-radius: var(--radius-sm); cursor: pointer; }
.member-picker label:hover { background: var(--surface-soft); }
.member-picker input { width: 18px; height: 18px; accent-color: var(--accent); }
.member-picker .employee-photo { width: 46px; height: 46px; }
.member-picker strong, .member-picker small { display: block; }
.member-picker strong { font-size: 14px; }
.member-picker small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.member-picker i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: transparent; background: var(--surface-soft); }
.member-picker i svg { width: 15px; }
.member-picker input:checked ~ i { color: #fff; background: var(--accent); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 20px; border-top: 1px solid var(--line); }

@media (max-width: 700px) {
  .conversation-item { min-height: 76px; }
  .conversation-copy strong { font-size: 15px; }
  .conversation-copy small { font-size: 13px; }
  .chat-settings-dialog { width: 100%; max-width: none; max-height: 94vh; margin: auto 0 0; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 18px 18px 0 0; }
  .chat-settings-head { grid-template-columns: 38px 52px minmax(0, 1fr); gap: 11px; padding: 16px; }
  .chat-settings-head > .employee-photo, .chat-settings-head > .conversation-symbol { width: 52px; height: 52px; }
  .chat-settings-head h2 { font-size: 19px; }
  .chat-settings-body { max-height: calc(94vh - 86px); padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); }
  .chat-edit-section { grid-template-columns: 1fr; }
  .chat-edit-section .button { width: 100%; }
  .simple-dialog-head { padding: 18px 16px; }
  .create-group-body { padding: 18px 16px; }
  .dialog-actions { padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
  .dialog-actions .button { flex: 1; }
}

@media (max-width: 1120px) {
  .learning-layout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .content:not(.messenger-content) { padding-right: 16px; padding-left: 16px; }
  .page-intro h1 { font-size: 29px; }
  .page-intro p, .hero-copy p { font-size: 14px; }
  .bottom-nav a { font-size: 11px; }
  .section-row a, .section-row .text-button { font-size: 13px; }
  .mentor-card, .shift-card { padding: 22px; }
  .auth-card-head p, .onboarding-success p { font-size: 14px; }
  .notification-choice { padding: 15px; }
  .message-bubble p { font-size: 14px; }
}

/* Final type scale: no essential interface copy below a comfortable reading size */
.brand strong { font-size: 15px; }
.brand small { color: #c2cec0; font-size: 12px; }
.main-nav a { font-size: 14px; font-weight: 620; }
.sidebar-help strong { font-size: 14px; }
.sidebar-help p { color: #c2cec0; font-size: 13px; }
.sidebar-help button { font-size: 13px; }
.sidebar-profile strong { font-size: 13px; }
.sidebar-profile small { color: #c2cec0; font-size: 12px; }
.topbar-title span { color: var(--muted); font-size: 13px; }
.global-search input { font-size: 14px; }
.global-search kbd { font-size: 11px; }
.top-profile strong { font-size: 14px; }
.top-profile small { color: var(--muted); font-size: 12px; }
.progress-ring small { font-size: 11px; }
.hero-copy p { font-size: 15px; }
.section-row a { font-size: 14px; }
.material-type { font-size: 12px; }
.test-score span, .score-card span { font-size: 12px; }
.week-column strong, .week-column span { color: var(--muted); font-size: 12px; }
.skill-row-head { font-size: 14px; }
.profile-level span, .connection { font-size: 13px; }
.notification-permission strong { font-size: 14px; }
.notification p { font-size: 14px; line-height: 1.55; }
.notification time { color: var(--muted); font-size: 12px; }
.ai-status { font-size: 13px; }
.ai-message p, .ai-suggestions button { font-size: 14px; }
.viewer-placeholder p, .viewer-outline div { font-size: 14px; }
.quiz-top p { font-size: 14px; }
.quiz-progress { font-size: 13px; }
.quiz-question > span { font-size: 11px; }
.toast strong { font-size: 14px; }
.toast span { font-size: 12px; }
.auth-label { font-size: 12px; }
.auth-people span:last-child { color: #c2cec0; font-size: 12px; }

@media (max-width: 700px) {
  .topbar-title span { font-size: 12px; }
  .page-intro p, .hero-copy p { font-size: 15px; }
  .summary-item span { font-size: 12px; }
  .bottom-nav a { font-size: 11px; }
}

/* Employee journey: clear navigation and an explicit internship-day flow */
.page-back { width: fit-content; min-height: 44px; display: inline-flex; align-items: center; gap: 9px; margin: -7px 0 18px; color: var(--accent-dark); font-size: 14px; font-weight: 700; text-decoration: none; }
.page-back svg { width: 19px; }
.page-back:hover { color: var(--accent); }
.clear-empty-state { max-width: 760px; padding: 38px; }
.clear-empty-state > svg { width: 36px; height: 36px; color: var(--accent); }
.clear-empty-state h1 { margin: 18px 0 10px; font-size: 30px; line-height: 1.18; }
.clear-empty-state p { max-width: 620px; margin: 0 0 24px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.internship-side-note { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.loading-state { min-height: 320px; display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--muted); }
.loading-state span { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: loading-spin .8s linear infinite; }
@keyframes loading-spin { to { transform: rotate(360deg); } }

.internship-day-shell { max-width: 1240px; margin: 0 auto; }
.internship-day-hero { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 145px; align-items: end; gap: 28px; padding: 4px 2px 24px; }
.internship-day-hero > div { min-width: 0; }
.internship-day-hero h1 { margin: 0; overflow-wrap: anywhere; font-size: clamp(30px, 4vw, 48px); line-height: 1.06; letter-spacing: -.04em; }
.internship-day-hero p { max-width: 760px; margin: 12px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.day-progress-box { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: center; }
.day-progress-box strong, .day-progress-box span { display: block; }
.day-progress-box strong { font-size: 30px; line-height: 1; }
.day-progress-box span { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.day-status-panel { min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 16px; margin-bottom: 20px; padding: 18px 20px; border: 1px solid #ead4aa; border-radius: var(--radius); background: var(--warning-soft); }
.day-status-panel > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius-sm); color: var(--warning); background: rgba(255,255,255,.75); }
.day-status-panel > span svg { width: 23px; }
.day-status-panel > div { min-width: 0; }
.day-status-panel strong { display: block; font-size: 17px; line-height: 1.3; }
.day-status-panel p { margin: 5px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.day-status-panel.active { border-color: #bfd6b7; background: var(--accent-soft); }
.day-status-panel.active > span { color: var(--accent-dark); }
.day-status-panel.submitted, .day-status-panel.done { border-color: #bcd4b4; background: #edf7e9; }
.day-status-panel.submitted > span, .day-status-panel.done > span { color: var(--accent-dark); }
.internship-day-grid { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 20px; }
.day-main-column { min-width: 0; display: grid; gap: 20px; }
.day-section { min-width: 0; padding: 26px; }
.day-section-head { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.day-section-head > div { min-width: 0; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 13px; }
.day-section-head > div > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--radius-sm); color: #fff; background: var(--accent); font-size: 15px; font-weight: 800; }
.day-section-head h2 { margin: 0; font-size: 21px; line-height: 1.25; }
.day-section-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.day-section-head > strong { flex: 0 0 auto; padding: 6px 9px; border-radius: 8px; color: var(--accent-dark); background: var(--accent-soft); font-size: 14px; }
.internship-checklist { display: grid; gap: 10px; }
.internship-check { min-width: 0; min-height: 82px; display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: start; gap: 13px; padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-soft); cursor: pointer; }
.internship-check.checked { border-color: #bfd6b7; background: #f1f8ee; }
.internship-check input { position: absolute; opacity: 0; pointer-events: none; }
.internship-check-mark { width: 26px; height: 26px; display: grid; place-items: center; margin-top: 1px; border: 2px solid var(--line-strong); border-radius: 8px; color: transparent; background: #fff; }
.internship-check.checked .internship-check-mark { color: #fff; border-color: var(--accent); background: var(--accent); }
.internship-check-mark svg { width: 16px; }
.internship-check > span:last-child { min-width: 0; }
.internship-check small, .internship-check strong, .internship-check em { display: block; overflow-wrap: anywhere; }
.internship-check small { color: var(--accent-dark); font-size: 12px; font-style: normal; font-weight: 700; }
.internship-check strong { margin-top: 4px; font-size: 16px; line-height: 1.4; }
.internship-check em { margin-top: 5px; color: var(--muted); font-size: 13px; font-style: normal; line-height: 1.5; }
.internship-check:has(input:disabled) { cursor: default; }
.day-no-steps { padding: 17px; border-radius: var(--radius-sm); color: var(--muted); background: var(--surface-soft); font-size: 14px; line-height: 1.55; }
.day-note { display: block; }
.day-note > span, .day-note > small { display: block; }
.day-note > span { margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.day-note textarea { width: 100%; min-height: 138px; resize: vertical; padding: 14px 15px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); outline: 0; color: var(--text); background: #fff; font-size: 16px; line-height: 1.55; }
.day-note textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(77,125,53,.12); }
.day-note textarea:disabled { opacity: 1; color: var(--text); background: var(--surface-soft); }
.day-note > small { margin: 8px 0 15px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.day-side-column { position: sticky; top: calc(var(--topbar-height) + 20px); min-width: 0; }
.day-summary-card { padding: 23px; }
.day-summary-card h3 { margin: 0 0 18px; font-size: 19px; }
.day-summary-card ol { display: grid; gap: 14px; margin: 0 0 21px; padding: 0; list-style: none; }
.day-summary-card li { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 10px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.day-summary-card li > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); background: var(--surface-strong); font-size: 12px; font-weight: 800; }
.day-summary-card li.done { color: var(--text); }
.day-summary-card li.done > span { color: #fff; background: var(--accent); }
.day-summary-card li svg { width: 15px; }
.day-summary-card .button { width: 100%; min-height: 48px; text-align: center; }
.day-summary-card > p { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.mentor-feedback { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 22px; background: var(--accent-soft); }
.mentor-feedback > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-sm); color: var(--accent-dark); background: #fff; }
.mentor-feedback small { color: var(--accent-dark); font-size: 12px; font-weight: 750; text-transform: uppercase; }
.mentor-feedback p { margin: 6px 0 0; font-size: 15px; line-height: 1.6; }

.live-plan-list { display: grid; gap: 8px; }
.live-plan-list a { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) 18px; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: inherit; background: var(--surface-soft); text-decoration: none; }
.live-plan-list a > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 9px; color: var(--accent-dark); background: var(--accent-soft); }
.live-plan-list a > div { min-width: 0; }
.live-plan-list strong, .live-plan-list small { display: block; overflow-wrap: anywhere; }
.live-plan-list strong { font-size: 14px; line-height: 1.35; }
.live-plan-list small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.live-plan-list a > svg { width: 16px; color: var(--faint); }
.live-today-card { padding: 24px; }
.live-progress-days { max-width: 920px; padding: 25px; }
.live-progress-days > a { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) 18px; align-items: center; gap: 13px; min-height: 68px; padding: 10px 4px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.live-progress-days > a > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--radius-sm); color: var(--muted); background: var(--surface-strong); font-weight: 800; }
.live-progress-days > a > span.done { color: #fff; background: var(--accent); }
.live-progress-days > a > span.current { color: var(--accent-dark); background: var(--accent-soft); }
.live-progress-days > a > span svg { width: 18px; }
.live-progress-days > a > div { min-width: 0; }
.live-progress-days strong, .live-progress-days small { display: block; overflow-wrap: anywhere; }
.live-progress-days strong { font-size: 15px; }
.live-progress-days small { margin-top: 4px; color: var(--muted); font-size: 13px; }
.live-progress-days > a > svg { width: 16px; color: var(--faint); }

@media (max-width: 960px) {
  .internship-day-grid { grid-template-columns: 1fr; }
  .day-side-column { position: static; }
}

@media (max-width: 700px) {
  .topbar, .bottom-nav { background: #fff; backdrop-filter: none; }
  .app-shell, .main-area { width: 100%; max-width: 100vw; min-width: 0; }
  .content:not(.messenger-content) { width: 100%; padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); }
  .internship-day-shell, .internship-day-grid, .day-main-column, .day-side-column { width: 100%; max-width: 100%; min-width: 0; }
  .page-back { margin: -4px 0 13px; font-size: 15px; }
  .internship-day-hero { grid-template-columns: 1fr; gap: 15px; padding-bottom: 18px; }
  .internship-day-hero h1 { font-size: 32px; line-height: 1.1; }
  .internship-day-hero p { font-size: 15px; }
  .day-progress-box { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; text-align: left; }
  .day-progress-box strong { font-size: 24px; }
  .day-progress-box span { max-width: 120px; margin: 0; text-align: right; }
  .day-status-panel { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 15px; }
  .day-status-panel, .day-section, .internship-check { max-width: 100%; overflow: hidden; }
  .day-status-panel > span { width: 44px; height: 44px; }
  .day-status-panel .button { grid-column: 1 / -1; width: 100%; min-height: 50px; }
  .day-section { padding: 19px 16px; }
  .day-section-head { gap: 10px; }
  .day-section-head > div { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .day-section-head > div > span { width: 34px; height: 34px; }
  .day-section-head h2 { font-size: 19px; }
  .day-section-head > strong { font-size: 13px; }
  .internship-check { min-height: 76px; padding: 14px; }
  .internship-check strong { font-size: 15px; }
  .day-summary-card { padding: 20px 17px; }
  .day-summary-card .button { min-height: 52px; }
  .clear-empty-state { padding: 26px 20px; }
  .clear-empty-state h1 { font-size: 25px; }
  .live-today-card { padding: 20px 16px; }
  .live-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-summary-strip .summary-item { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
