:root {
  color-scheme: light;
  --ink: #2A3B47;
  --muted: #6B7B85;
  --paper: #F4F6F9;
  --card: #FFFFFF;
  --line: rgba(44,95,124,.16);
  --primary: #2C5F7C;
  --primary-strong: #234B63;
  --soft: #E3EFF5;
  --blue: #4A8BA8;
  --teal: #3E8B8B;
  --green: #4A8B5C;
  --green-soft: #EAF4EC;
  --yellow: #F5D547;
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: #DCE7ED; }
body { margin: 0; min-height: 100vh; background: linear-gradient(145deg, rgba(184,212,227,.72), transparent 42%), #E8EFF3; color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
[hidden] { display: none !important; }
.pilot-note { position: fixed; top: 18px; left: 24px; color: rgba(42,59,71,.68); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.pilot-shell { width: min(100%, 480px); min-height: 100dvh; margin: 0 auto; overflow: hidden; background: var(--paper); box-shadow: 0 12px 32px rgba(26,50,69,.13); }
.pilot-header { display: flex; min-height: 66px; align-items: center; justify-content: space-between; padding: max(12px, env(safe-area-inset-top)) 18px 10px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); }
.pilot-header > button { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--card); color: var(--primary); font-size: 10px; font-weight: 800; cursor: pointer; }
.pilot-header > button[aria-current="page"] { border-color: var(--primary); background: var(--primary); color: white; }
.pilot-brand { display: flex; align-items: center; gap: 10px; }
.pilot-brand > div { display: grid; gap: 1px; }
.pilot-brand strong { font-size: 14px; }
.pilot-brand small { color: var(--muted); font-size: 10px; }
.pilot-brand__mark { position: relative; display: block; width: 38px; height: 38px; border-radius: 6px; background: var(--primary); box-shadow: 0 4px 10px rgba(44,95,124,.2); }
.pilot-brand__mark::before { content: ''; position: absolute; left: 11px; bottom: 10px; width: 4px; height: 10px; background: var(--blue); box-shadow: 7px -5px 0 var(--teal), 14px -12px 0 var(--yellow); }
.pilot-brand__mark i { position: absolute; left: 9px; right: 8px; bottom: 7px; height: 1px; background: rgba(255,255,255,.45); }
main { padding: 30px 20px max(96px, calc(78px + env(safe-area-inset-bottom))); }
.login-view, .access-view { padding: 54px 8px 20px; }
.eyebrow { display: block; margin-bottom: 6px; color: var(--primary); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 390px; margin-bottom: 12px; font-size: clamp(28px, 7vw, 34px); line-height: 1.08; letter-spacing: -.035em; }
.login-view > p, .access-view p { max-width: 390px; margin-bottom: 28px; color: var(--muted); font-size: 13px; line-height: 1.55; }
form { display: grid; gap: 13px; }
label { display: grid; gap: 7px; }
label span { color: var(--muted); font-size: 10px; font-weight: 750; }
input, select { width: 100%; min-height: 52px; padding: 0 13px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink); }
input:focus, select:focus { outline: 3px solid rgba(74,139,168,.28); border-color: var(--blue); }
form button, .secondary-button { min-height: 52px; border: 0; border-radius: 6px; background: var(--primary); color: white; font-size: 12px; font-weight: 800; cursor: pointer; }
form button:disabled { opacity: .55; cursor: wait; }
.message { min-height: 20px; margin-top: 12px; color: #A33B32; font-size: 11px; font-weight: 700; }
.security-copy { display: block; max-width: 390px; margin-top: 20px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.access-view { display: grid; grid-template-columns: auto 1fr; gap: 15px; }
.access-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--primary); font-weight: 850; }
.access-view .secondary-button { grid-column: 1 / -1; background: var(--card); border: 1px solid var(--line); color: var(--primary); }
.account-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 30px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.account-row > div { display: grid; }
.account-row strong { font-size: 13px; }
.account-row button, #logout-button { border: 0; background: transparent; color: var(--primary); font-size: 10px; font-weight: 800; cursor: pointer; }
.release-banner { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: start; gap: 11px; margin: -14px 0 20px; padding: 12px; border: 1px solid rgba(62,139,139,.28); border-left: 3px solid var(--teal); background: #F0F7F7; }
.release-banner__label { padding: 4px 6px; background: var(--teal); color: white; font-size: 8px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.release-banner > div { display: grid; gap: 2px; }
.release-banner strong { font-size: 11px; }
.release-banner p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
.release-banner small { color: var(--teal); font-size: 8px; font-weight: 800; }
.release-banner > button { width: 28px; height: 28px; border: 0; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
.greeting { margin-bottom: 18px; }
.greeting p { margin-bottom: 3px; color: var(--muted); font-size: 13px; }
.greeting h1 { margin-bottom: 0; }
.week-navigation { display: grid; grid-template-columns: 42px 1fr 42px; gap: 7px; margin-top: 14px; }
.week-navigation button { min-height: 38px; border: 1px solid var(--line); border-radius: 5px; background: var(--card); color: var(--primary); font-size: 11px; font-weight: 800; cursor: pointer; }
.week-navigation button:first-child, .week-navigation button:last-child { font-size: 22px; line-height: 1; }
.week-navigation button:disabled { opacity: .5; cursor: wait; }
.pilot-status { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 11px; margin-bottom: 11px; padding: 11px 12px; border: 1px solid rgba(74,139,92,.24); border-radius: 7px; background: var(--green-soft); }
.pilot-status > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 5px; background: var(--green); color: white; font-size: 12px; font-weight: 800; }
.pilot-status div { display: grid; gap: 2px; }
.pilot-status strong { font-size: 11px; }
.pilot-status small { color: #587262; font-size: 9px; }
.month-section { margin: 16px 0; }
.month-section__head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.month-section__head > div { min-width: 0; }
.month-section__head h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.month-section__head small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.month-section__head > button { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--card); color: var(--primary); font-size: 9px; font-weight: 800; cursor: pointer; }
.month-goal-card { border: 1px solid var(--line); background: var(--card); }
.goal-weekly { padding: 14px; border-left: 3px solid var(--teal); background: var(--soft); }
.goal-weekly > small { display: block; margin-bottom: 7px; color: var(--primary); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.goal-weekly > div { display: flex; flex-wrap: wrap; gap: 6px; }
.goal-weekly span { flex: 0 0 auto; padding: 6px 8px; border: 1px solid rgba(44,95,124,.14); background: var(--card); color: var(--ink); font-size: 9px; font-weight: 750; white-space: nowrap; }
.goal-weekly strong { color: var(--green); font-size: 10px; }
.goal-list { display: grid; }
.goal-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.goal-row > div { display: grid; gap: 2px; min-width: 0; }
.goal-row strong { font-size: 11px; }
.goal-row small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.goal-row b { color: var(--primary); font-size: 10px; white-space: nowrap; }
.goal-row b.is-complete { color: var(--green); }
.goal-empty { padding: 17px 15px; }
.goal-empty strong { font-size: 11px; }
.goal-empty p { margin: 4px 0 12px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.goal-empty button { min-height: 38px; padding: 0 13px; border: 0; border-radius: 5px; background: var(--primary); color: white; font-size: 10px; font-weight: 800; cursor: pointer; }
.week-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); background: var(--card); }
.week-toolbar > div { display: grid; }
.week-toolbar .eyebrow { margin-bottom: 2px; }
.week-toolbar strong { font-size: 13px; }
.week-toolbar button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 5px; background: var(--primary); color: white; font-size: 11px; font-weight: 800; cursor: pointer; }
.microsoft-probe { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 12px; margin-bottom: 12px; padding: 14px; border: 1px solid rgba(0,120,212,.22); border-left: 3px solid #0078D4; background: #F1F7FC; }
.microsoft-probe__mark { display: grid; width: 38px; height: 38px; place-items: center; background: #0078D4; color: white; font-size: 14px; font-weight: 850; }
.microsoft-probe > div { display: grid; gap: 2px; min-width: 0; }
.microsoft-probe .eyebrow { margin: 0; color: #0067B8; }
.microsoft-probe strong { font-size: 11px; }
.microsoft-probe p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
.microsoft-probe > button { grid-column: 1 / -1; min-height: 40px; border: 0; border-radius: 5px; background: #0078D4; color: white; font-size: 10px; font-weight: 800; cursor: pointer; }
.microsoft-probe > button:disabled { opacity: .6; cursor: wait; }
.microsoft-probe.is-success { border-color: rgba(74,139,92,.28); border-left-color: var(--green); background: var(--green-soft); }
.microsoft-probe.is-success .microsoft-probe__mark, .microsoft-probe.is-success > button { background: var(--green); }
.microsoft-probe.is-error { border-color: rgba(163,59,50,.24); border-left-color: #A33B32; background: #FCEBE9; }
.microsoft-probe.is-error .microsoft-probe__mark, .microsoft-probe.is-error > button { background: #A33B32; }
.week-card { padding: 20px; border-radius: 9px; background: linear-gradient(135deg, var(--primary), var(--primary-strong)); color: white; box-shadow: 0 7px 18px rgba(44,95,124,.2); }
.week-card__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.week-card .eyebrow { color: rgba(255,255,255,.65); }
.week-card h2 { margin-bottom: 0; font-size: 22px; letter-spacing: -.035em; }
.week-card__head > strong { font-size: 24px; }
.progress { height: 5px; margin: 18px 0; overflow: hidden; background: rgba(255,255,255,.16); }
.progress span { display: block; width: 0; height: 100%; background: var(--yellow); transition: width .3s ease; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.metric { display: grid; gap: 2px; padding: 12px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.06); }
.metric small { color: rgba(255,255,255,.65); font-size: 9px; }
.metric strong { font-size: 18px; }
.metric em { color: rgba(255,255,255,.55); font-size: 8px; font-style: normal; }
.appointment-section { margin-top: 14px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.section-head h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.section-head > span { color: var(--muted); font-size: 9px; font-weight: 700; }
.appointment-list { display: grid; gap: 7px; }
.appointment-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); background: var(--card); }
.appointment-row__edit { display: grid; gap: 3px; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.appointment-row__edit:focus-visible { outline: 3px solid rgba(74,139,168,.28); outline-offset: 4px; }
.appointment-row__copy { display: grid; gap: 3px; min-width: 0; }
.appointment-row__edit strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.appointment-row__edit small { color: var(--muted); font-size: 9px; }
.appointment-row__status { min-width: 92px; min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--card); color: var(--primary); font-size: 9px; font-weight: 800; cursor: pointer; }
.appointment-row__status.is-done { border-color: rgba(74,139,92,.25); background: var(--green-soft); color: var(--green); }
.appointment-row__status:disabled { opacity: .55; cursor: wait; }
.appointment-empty { margin: 0; padding: 18px 14px; border: 1px dashed var(--line); color: var(--muted); font-size: 10px; text-align: center; }
.type-list { display: grid; gap: 7px; margin-top: 12px; }
.type-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); background: var(--card); }
.type-row div { display: grid; gap: 2px; }
.type-row strong { font-size: 11px; }
.type-row small { color: var(--muted); font-size: 9px; }
.type-row > b { color: var(--primary); font-size: 13px; }
.pilot-boundary { margin-top: 14px; padding: 14px; border-left: 3px solid var(--teal); background: var(--soft); }
.pilot-boundary strong { font-size: 11px; }
.pilot-boundary p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.app-panel { min-height: 220px; }
.app-nav { position: fixed; z-index: 20; left: 50%; bottom: 0; display: grid; width: min(100%, 480px); grid-template-columns: repeat(3, 1fr); padding: 7px 10px max(7px, env(safe-area-inset-bottom)); transform: translateX(-50%); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 0 -8px 24px rgba(26,50,69,.08); backdrop-filter: blur(14px); }
.app-nav button { display: grid; min-height: 52px; place-items: center; align-content: center; gap: 3px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 9px; font-weight: 800; cursor: pointer; }
.app-nav button span { display: grid; min-width: 25px; height: 22px; place-items: center; color: currentColor; font-size: 12px; font-weight: 850; }
.app-nav button[aria-current="page"] { background: var(--soft); color: var(--primary); }
.app-nav button:focus-visible { outline: 3px solid rgba(74,139,168,.28); outline-offset: -2px; }
.team-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 12px; border-radius: 8px; background: var(--primary); color: white; overflow: hidden; }
.team-summary > div { display: grid; gap: 3px; padding: 14px 10px; border-right: 1px solid rgba(255,255,255,.14); }
.team-summary > div:last-child { border-right: 0; }
.team-summary small { color: rgba(255,255,255,.65); font-size: 8px; }
.team-summary strong { font-size: 17px; }
.team-list { display: grid; gap: 7px; }
.team-row { padding: 13px 14px; border: 1px solid var(--line); background: var(--card); }
.team-row__head, .team-row__numbers { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.team-row__head strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.team-row__head span { color: var(--primary); font-size: 10px; font-weight: 800; white-space: nowrap; }
.team-row__progress { height: 4px; margin: 9px 0 8px; overflow: hidden; background: var(--soft); }
.team-row__progress span { display: block; height: 100%; background: var(--teal); }
.team-row__numbers { flex-wrap: wrap; color: var(--muted); font-size: 8px; }
.team-empty { margin: 0; padding: 18px 14px; border: 1px dashed var(--line); color: var(--muted); font-size: 10px; text-align: center; }
.development-section { margin-top: 20px; }
.development-head { display: grid; gap: 10px; margin-bottom: 8px; }
.development-head h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.development-toggle { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--line); border-radius: 5px; background: var(--card); }
.development-toggle button { min-height: 34px; border: 0; border-radius: 3px; background: transparent; color: var(--muted); font-size: 9px; font-weight: 800; cursor: pointer; }
.development-toggle button[aria-pressed="true"] { background: var(--soft); color: var(--primary); }
.development-card { padding: 15px 14px 12px; border: 1px solid var(--line); background: var(--card); }
.development-status { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.development-status > div { display: grid; gap: 2px; }
.development-status strong { font-size: 11px; }
.development-status small { color: var(--muted); font-size: 8px; }
.development-status > span { padding: 5px 7px; border-radius: 4px; background: var(--soft); color: var(--primary); font-size: 8px; font-weight: 850; white-space: nowrap; }
.development-status > span.is-plan { background: var(--green-soft); color: var(--green); }
.development-status > span.is-knapp { background: #FFF8D8; color: #816C00; }
.development-status > span.is-hinter_plan { background: #FCEBE9; color: #A33B32; }
.development-chart { position: relative; display: grid; min-height: 158px; grid-template-columns: repeat(var(--development-columns, 5), minmax(38px, 1fr)); gap: 9px; align-items: end; margin-top: 16px; padding-top: 22px; overflow-x: auto; }
.development-goal-line { position: absolute; z-index: 1; right: 0; left: 0; bottom: var(--goal-position); border-top: 1px dashed rgba(62,139,139,.72); pointer-events: none; }
.development-goal-line span { position: absolute; top: -16px; right: 0; padding-left: 5px; background: var(--card); color: var(--teal); font-size: 7px; font-weight: 800; }
.development-column { position: relative; z-index: 2; display: grid; min-width: 38px; grid-template-rows: 16px 108px 18px; gap: 3px; align-items: end; justify-items: center; }
.development-column > strong { color: var(--ink); font-size: 8px; }
.development-bar-track { display: flex; width: 24px; height: 108px; align-items: end; background: linear-gradient(to top, var(--soft), rgba(227,239,245,.3)); }
.development-bar { display: block; width: 100%; min-height: 0; background: linear-gradient(to top, var(--primary), var(--teal)); }
.development-column > small { color: var(--muted); font-size: 8px; font-weight: 750; }
.install-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; margin-top: 14px; padding: 12px; border: 1px solid var(--line); background: var(--card); }
.install-card img { border-radius: 12px; box-shadow: 0 4px 12px rgba(35,75,99,.18); }
.install-card > div { display: grid; gap: 3px; }
.install-card strong { font-size: 10px; }
.install-card p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.4; }
.install-card button { min-height: 36px; padding: 0 10px; border: 0; border-radius: 5px; background: var(--primary); color: white; font-size: 9px; font-weight: 800; cursor: pointer; }
.install-dialog-copy { padding: 20px; }
.install-dialog-copy ol { display: grid; gap: 12px; margin: 0; padding-left: 20px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.install-dialog-copy strong { color: var(--ink); }
.install-intro { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 13px; margin: -2px 0 18px; padding: 12px; border: 1px solid var(--line); background: var(--card); }
.install-intro img { border-radius: 13px; box-shadow: 0 5px 14px rgba(35,75,99,.18); }
.install-intro > div { display: grid; gap: 3px; }
.install-intro strong { font-size: 11px; }
.install-intro p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
.install-dialog-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; margin-top: 20px; }
.install-dialog-actions button { min-height: 46px; border: 0; border-radius: 5px; background: var(--primary); color: white; font-size: 10px; font-weight: 800; cursor: pointer; }
.install-dialog-actions .secondary-button { border: 1px solid var(--line); background: var(--card); color: var(--primary); }
.install-publisher { display: flex; align-items: center; gap: 8px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.install-publisher > span { display: grid; width: 28px; height: 28px; place-items: center; background: var(--primary); color: white; font-size: 9px; font-weight: 850; letter-spacing: .04em; }
.install-publisher small { color: var(--muted); font-size: 8px; line-height: 1.35; }
.install-publisher b { color: var(--primary); font-weight: 800; }
.app-credit { display: flex; align-items: center; gap: 9px; margin: 24px 0 2px; padding: 14px 0 4px; border-top: 1px solid var(--line); }
.app-credit__mark { display: grid; width: 32px; height: 32px; place-items: center; background: var(--primary); color: white; font-size: 9px; font-weight: 850; letter-spacing: .04em; }
.app-credit > div { display: grid; gap: 2px; }
.app-credit strong { font-size: 10px; }
.app-credit small { color: var(--muted); font-size: 8px; }
dialog { width: min(calc(100% - 28px), 440px); padding: 0; border: 0; border-radius: 8px; background: var(--paper); color: var(--ink); box-shadow: 0 18px 55px rgba(26,50,69,.28); }
dialog::backdrop { background: rgba(22,39,50,.48); backdrop-filter: blur(2px); }
dialog form { padding: 20px; }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.dialog-head h2 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.dialog-head > button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 5px; background: var(--card); color: var(--ink); font-size: 21px; cursor: pointer; }
.dialog-copy { margin: -6px 0 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.field-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.goal-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.goal-form-grid label:first-child { grid-column: 1 / -1; }
.form-message { min-height: 17px; color: #A33B32; font-size: 10px; font-weight: 700; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.dialog-actions button { min-height: 48px; border: 0; border-radius: 5px; background: var(--primary); color: white; font-size: 11px; font-weight: 800; cursor: pointer; }
.dialog-actions .secondary-button { border: 1px solid var(--line); background: var(--card); color: var(--primary); }
.dialog-actions button:disabled { opacity: .55; cursor: wait; }
@media (max-width: 760px) { body { background: var(--paper); } .pilot-note { display: none; } .pilot-shell { box-shadow: none; } }
@media (max-width: 360px) { main { padding-inline: 14px; } .metrics { grid-template-columns: 1fr; } .field-row, .goal-form-grid { grid-template-columns: 1fr; } .goal-form-grid label:first-child { grid-column: auto; } .goal-row { grid-template-columns: 1fr; gap: 5px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
