/* Abschluss: shared navy, warm gold and white interface. */
:root {
  --color-navy: #122641;
  --color-gold: #b58b45;
  --color-gold-soft: #f7f1e6;
  --color-bg: #f5f7fb;
  --color-surface: #fff;
  --color-surface-muted: #f0f3f8;
  --color-border: #e1e7ef;
  --color-border-strong: #ccd6e3;
  --color-text: #172b46;
  --color-text-muted: #62718a;
  --color-text-faint: #748198;
  --color-primary: #214f87;
  --color-primary-hover: #183d6c;
  --color-primary-soft: #eaf1fa;
  --color-info: #214f87;
  --color-info-soft: #eaf1fa;
  --color-sidebar: #122641;
  --color-sidebar-text: #c8d4e5;
  --color-sidebar-hover: #203853;
  --color-sidebar-active: #294461;
  --sidebar-width: 248px;
  --topbar-height: 72px;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 4px rgb(18 38 65 / 3%);
  --shadow: 0 6px 24px rgb(18 38 65 / 5%);
  --shadow-lg: 0 18px 60px rgb(18 38 65 / 16%);
}
body { -webkit-font-smoothing: antialiased; line-height: 1.5; }
::selection { background: #dce8f6; color: #122641; }
:focus-visible { outline: 3px solid #386ca6; outline-offset: 3px; }
h1, h2, h3 { color: var(--color-navy); letter-spacing: -.025em; }
h1 { font-size: 26px; font-weight: 650; }
h2 { font-size: 17px; }
.main { padding: 28px 30px 44px; }
.page-header { margin: 0 0 24px; align-items: center; }
.page-subtitle { margin-top: 5px; }

/* The small brand panel carries the gradient; the work area stays calm. */
.sidebar { overflow: visible; border-right: 1px solid #203852; background: var(--color-navy); }
.brand {
  position: relative; display: flex; flex-shrink: 0; gap: 12px;
  margin: 14px 12px 19px; padding: 25px 17px 26px; border-radius: 14px;
  border: 1px solid rgb(228 214 185 / 17%);
  background: radial-gradient(ellipse at 0% 0%, rgb(184 139 65 / 40%), transparent 76%),
    radial-gradient(ellipse at 100% 100%, rgb(45 99 148 / 40%), transparent 80%), #1a2c43;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%), 0 8px 22px rgb(4 15 30 / 10%);
  color: #fff;
}
.brand:hover { text-decoration: none; color: #fff; border-color: rgb(222 188 128 / 36%); }
.brand-lockup { display: block; width: 176px; height: 42px; max-width: 100%; flex-shrink: 0; overflow: visible; }
.brand-lockup-mark { color: #e1c28b; }
.brand-lockup-name { fill: #fff; font-family: var(--font); font-size: 27px; font-weight: 650; letter-spacing: -.035em; }
.brand-lockup-caption { fill: #d5dbe3; font-family: var(--font); font-size: 10px; font-weight: 400; letter-spacing: 0; }
.sidebar-scroll { min-height: 0; flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #40546d transparent; }
.nav-label { margin: 0 24px 7px; color: #91a4be; font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.nav { padding: 0 12px; }
.nav-link { position: relative; padding: 10px 12px; gap: 12px; margin: 2px 0; border-radius: 8px; font-size: 13px; font-weight: 500; color: #c8d4e5; }
.nav-link > .icon { opacity: .8; }
.nav-link:hover { color: #fff; background: #1c3451; }
.nav-link.active { background: linear-gradient(90deg, #294360, #203a57); color: #fff; box-shadow: inset 0 0 0 1px rgb(212 226 246 / 8%); }
.nav-link.active::before { content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px; border-radius: 0 3px 3px 0; background: #d5b476; }
.nav-link.active > .icon { color: #e1c28b; opacity: 1; }
.sidebar-section { margin-top: 20px; padding-top: 17px; border-top-color: rgb(211 224 244 / 10%); }
.sidebar-section-head { color: #91a4be; font-size: 10px; letter-spacing: .09em; padding-left: 24px; padding-right: 21px; }
.nav-compact .nav-link { padding: 7px 12px; font-size: 12px; font-weight: 400; }
.nav-compact .nav-link.active::before { top: 8px; bottom: 8px; }
.sidebar-empty a { color: #e1c28b; }
.sidebar-footer { position: relative; flex-shrink: 0; padding: 12px; border-top: 1px solid rgb(211 224 244 / 12%); margin-top: 10px; }
.user-menu-btn { padding: 8px; border-radius: 9px; }
.user-menu-btn:hover { background: #203853; }
.user-menu-name { color: #eef3fb; font-weight: 550; font-size: 13px; }
.user-menu-role { color: #9db0c9; font-size: 11px; }
.sidebar .avatar { border-radius: 10px; width: 32px; height: 32px; }
.sidebar-footer .dropdown-menu { left: 10px; right: 10px; min-width: 0; }

.preview-notice { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; flex-shrink: 0; margin: 0; padding: 10px 30px; color: #775928; background: #fbf7ee; border-bottom: 1px solid #ece2ce; font-size: 11px; line-height: 1.5; }
.preview-notice > .icon { flex-shrink: 0; }
.preview-notice strong { font-weight: 650; white-space: nowrap; }
.preview-notice > span { color: #796d58; }
.topbar { padding: 0 30px; gap: 20px; background: rgb(255 255 255 / 97%); box-shadow: 0 1px 5px rgb(18 38 65 / 2%); }
.topbar .omnibox { max-width: 500px; }
.omnibox-input { height: 40px; border: 1px solid #e8edf4; background: #f6f8fb; border-radius: 9px; font-size: 13px; padding-left: 39px; }
.omnibox-icon { left: 13px; color: #7b8aa1; }
.omnibox-kbd { background: #fff; border-color: #dce3ed; color: #728098; right: 11px; }
.omnibox-input:focus, .input:focus, .select:focus, textarea.input:focus, .richtext:focus-within { border-color: #5580b2; box-shadow: 0 0 0 3px rgb(33 79 135 / 12%); }
.workspace-identity { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; color: #354862; white-space: nowrap; }
.workspace-name { display: block; line-height: 1.4; }
.workspace-emblem { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #e7dcc6; background: #f9f4e9; color: #84642d; border-radius: 9px; font-size: 10px; letter-spacing: .03em; }

.card, .table-wrap { box-shadow: 0 3px 16px rgb(18 38 65 / 3%); }
.card-header { padding: 17px 20px; border-bottom-color: var(--color-border); }
.card-header h2, .card-title { font-size: 15px; font-weight: 600; }
.card-body { padding: 20px; }
.btn { font-weight: 550; transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease; }
.btn-primary { box-shadow: 0 2px 3px rgb(18 38 65 / 10%); }
.btn-secondary { border-color: #dce3ed; box-shadow: 0 1px 2px rgb(18 38 65 / 3%); }
.btn-secondary:hover { background: #f5f8fc; border-color: #bac9db; }
/* Match text baselines, including the control below a stacked field label. */
.toolbar, .page-actions { align-items: center; align-items: last baseline; }
.input, .select, textarea.input { border-color: #d6deea; min-height: 38px; }
.input-sm { min-height: 30px; }
.label { color: #485b74; font-size: 12px; }
.form-card input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .form-card select, .form-card textarea, .toolbar select, .toolbar input { border-radius: 8px; border-color: #d6deea; }
input[type=checkbox], input[type=radio] { accent-color: var(--color-primary); }
.table thead th { background: #f6f8fb; color: #62718a; font-size: 10.5px; font-weight: 650; letter-spacing: .065em; }
.table tbody th[scope="row"] { position: static; background: transparent; color: var(--color-text); font-size: 13.5px; text-transform: none; letter-spacing: normal; }
.table td, .table th { vertical-align: middle; border-bottom-color: #e9edf3; }
.table tbody tr:nth-child(even) { background: #fff; }
.table tbody tr:hover { background: #f5f8fc; }
.table tbody tr.is-selected { background: #eaf1fa; }
.table tbody tr:focus { outline-color: #386ca6; background: #eaf1fa; }
.tabs { border-bottom-color: #e0e6ef; }
.tab.active { color: var(--color-primary); border-bottom-color: var(--color-gold); }
.tabs-pills .tab.active { background: var(--color-primary); color: #fff; }
.dropdown-menu, .omnibox-suggestions { border: 1px solid #dce3ed; border-radius: 11px; box-shadow: var(--shadow-lg); }
.dropdown-item { border-radius: 6px; }
.dropdown-item:hover { background: #edf3fa; }
.metric { position: relative; padding: 22px; border-top: 2px solid #cbb17e; }
.metric strong { color: #193c67; font-weight: 600; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.metric > span, .metric small { color: var(--color-text-muted); }
.board-column { background: #edf1f7; border: 1px solid #dfe6f0; border-radius: 12px; }
.board-column > header { color: var(--color-navy); padding-bottom: 12px; }
.opportunity-card { border-color: #dfe6ef; border-radius: 10px; box-shadow: 0 2px 5px rgb(18 38 65 / 3%); }
.opportunity-card:hover { border-color: #b7c9df; }
.board-status-form select { border: 1px solid #d6deea; border-radius: 6px; background: #fff; color: var(--color-text); }
.activity-entry { border-left: 2px solid #dce5f0; padding-left: 20px; }
.activity-entry header { color: #233e60; }
.activity-entry > footer.toolbar { align-items: center; gap: 4px 8px; }
.activity-entry > footer.toolbar > form { display: flex; align-items: center; margin: 0; }
.activity-entry > footer.toolbar > a,
.activity-entry > footer.toolbar > form > .btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 30px; height: 30px; padding: 0 9px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font: inherit; font-size: 12.5px; font-weight: 500; line-height: 1;
  color: var(--color-primary); background: transparent; white-space: nowrap;
}
.activity-entry > footer.toolbar > a:hover,
.activity-entry > footer.toolbar > form > .btn:hover { color: var(--color-primary-hover); background: var(--color-primary-soft); text-decoration: none; }
.settings-tile:hover { border-color: #bda269; box-shadow: var(--shadow); }
.settings-tabs { gap: 24px; border-bottom-color: #dce3ed; }
.settings-tabs a { color: #456386; }
.report-table tfoot { background: #edf2f8; }
.report-chart [fill="#0f766e"] { fill: var(--color-primary); }
.report-chart [stroke="#0f766e"] { stroke: var(--color-primary); }
.richtext-btn.active { background: var(--color-primary-soft); color: var(--color-primary); }

/* The sign-in screen shares the same materials and restrained gradient. */
.auth-page .main-wrap { background: radial-gradient(ellipse at 8% 5%, #ece3d1, transparent 48%), radial-gradient(ellipse at 96% 98%, #dee8f5, transparent 50%), #f5f7fb; }
.auth-page .preview-notice { align-self: stretch; justify-content: center; }
.auth-main { flex: 1; padding: 56px 24px; }
.auth-shell { display: grid; grid-template-columns: .95fr 1fr; width: 900px; max-width: 100%; border: 1px solid #d9e1eb; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 80px rgb(18 38 65 / 11%); background: white; }
.auth-intro { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 72px; padding: 38px; color: #fff; background: radial-gradient(ellipse at 0 0, rgb(181 139 69 / 36%), transparent 65%), radial-gradient(ellipse at 100% 100%, #234a70, transparent 70%), #122641; }
.auth-wordmark { display: flex; align-items: center; }
.auth-wordmark .brand-lockup { width: 218px; height: auto; }
.auth-eyebrow { display: block; color: #8a682d; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; font-weight: 650; margin-bottom: 14px; }
.auth-intro .auth-eyebrow { color: #dfc28f; }
.auth-intro h2 { color: #fff; font-size: 31px; font-weight: 500; line-height: 1.3; letter-spacing: -.035em; }
.auth-intro-copy p { max-width: 270px; color: #bdcbdc; font-size: 13px; line-height: 1.7; margin: 20px 0 0; }
.auth-company { color: #edf2f8; font-size: 12px; margin: 0; }
.auth-shell .auth-card { max-width: none; padding: 48px 40px 38px; border: 0; border-radius: 0; box-shadow: none; }
.auth-brand { margin-bottom: 30px; }
.auth-title { font-size: 26px; font-weight: 600; margin-bottom: 8px; }
.auth-subtitle { font-size: 12px; }
.auth-form { gap: 20px; }
.auth-form .input { min-height: 44px; }
.auth-form .btn-lg { height: 44px; font-size: 13px; }
.auth-hint { margin-top: 24px; line-height: 1.7; font-size: 11px; }
.auth-test-note { margin: 0 0 24px; padding: 14px 16px; border: 1px solid #e7dcc6; border-radius: 9px; background: #fbf8f1; color: #53647b; font-size: 11.5px; line-height: 1.55; }
.auth-test-note > strong { display: block; margin-bottom: 7px; color: #745728; font-size: 12px; font-weight: 600; }
.auth-test-note p { margin: 0; }
.auth-test-note p + p { margin-top: 7px; }
.auth-invited-email { margin: 0 0 20px; color: var(--color-text-muted); font-size: 11px; line-height: 1.6; }
.auth-invited-email strong { color: var(--color-navy); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.auth-start-steps { display: grid; gap: 17px; padding: 0; margin: 0 0 26px; list-style: none; counter-reset: auth-start; }
.auth-start-steps li { position: relative; min-height: 29px; padding-left: 42px; counter-increment: auth-start; }
.auth-start-steps li::before { content: counter(auth-start); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--color-primary-soft); color: var(--color-primary); font-size: 12px; font-weight: 600; }
.auth-start-steps strong { display: block; color: var(--color-navy); font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.auth-start-steps span { display: block; color: var(--color-text-muted); font-size: 12px; line-height: 1.55; }

@media (min-width: 1024px) { .topbar .topbar-menu { display: none; } }
@media (max-width: 1199px) { .workspace-identity > span:last-child { display: none; } .main { padding: 24px; } .topbar { padding: 0 24px; } .preview-notice { padding-left: 24px; padding-right: 24px; } }
@media (max-width: 1023.98px) { .sidebar { height: 100dvh; } .topbar .topbar-menu { display: inline-flex; } .main { padding: 22px; } .topbar { padding: 0 20px; gap: 12px; } .preview-notice { padding: 9px 20px; gap: 5px 8px; } }
@media (max-width: 767.98px) {
  :root { --topbar-height: 62px; }
  .main { padding: 18px 14px 32px; }
  h1 { font-size: 24px; }
  .page-header { align-items: stretch; gap: 14px; }
  .topbar { padding: 0 12px; gap: 8px; }
  .topbar .omnibox { max-width: none; }
  .workspace-identity { display: none; }
  .topbar-actions:empty { display: none; }
  .preview-notice { padding: 8px 14px; font-size: 10px; }
  .preview-notice > span { flex-basis: 100%; }
  .card-body, .card-header { padding: 16px; }
  .auth-main { padding: 28px 16px; }
  .auth-shell { grid-template-columns: 1fr; max-width: 440px; border-radius: 16px; }
  .auth-intro { padding: 24px 28px; gap: 0; }
  .auth-intro-copy, .auth-company { display: none; }
  .auth-wordmark .brand-lockup { width: 204px; }
  .auth-shell .auth-card { padding: 30px 28px; }
  .auth-title { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
