:root {
  color-scheme: light dark;
  --bg: #eaf0f8;
  --panel: rgba(255, 255, 255, .66);
  --panel-soft: rgba(255, 255, 255, .58);
  --text: #1b263b;
  --muted: #5c6b83;
  --line: rgba(114, 139, 171, .15);
  --primary: #316c9f;
  --accent-fill: #3975ad;
  --accent-fill-end: #286292;
  --accent-tint: color-mix(in srgb, var(--primary) 12%, transparent);
  --accent-ring: color-mix(in srgb, var(--primary) 26%, transparent);
  --danger: #ce3045;
  --glass-border: rgba(255, 255, 255, .8);
  --glass-shadow: 0 8px 28px rgba(56, 82, 124, .08), inset 0 1px 0 rgba(255, 255, 255, .96);
  --sidebar-fill: linear-gradient(155deg, rgba(255,255,255,.68), rgba(255,255,255,.38));
  --workspace-fill: rgba(255,255,255,.28);
  --dialog-fill: linear-gradient(145deg, rgba(255,255,255,.9), rgba(246,250,255,.83));
  --input-fill: rgba(255,255,255,.72);
  --selected-fill: linear-gradient(130deg, rgba(255,255,255,.6), var(--accent-tint));
  --success-fill: #e3f0e8;
  --success-text: #276047;
  --warning-fill: #f8eedb;
  --warning-text: #765116;
  --danger-fill: #f7e4e9;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; min-width: 320px; font-size: 14px;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse at 5% 10%, rgba(175,217,255,.8), transparent 48%),
    radial-gradient(ellipse at 98% 28%, rgba(205,196,248,.55), transparent 48%),
    radial-gradient(ellipse at 38% 100%, rgba(196,235,224,.58), transparent 50%),
    linear-gradient(145deg, #eef4fb, #e9ecf5 62%, #e9f3f1);
  background-attachment: fixed;
}
::selection { background: var(--accent-ring); }
button { transition: background .18s ease, box-shadow .18s ease, transform .18s ease; }
button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
button, a, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
#boot { padding: 32px; }
.shell { display: grid; grid-template-columns: 212px minmax(0, 1fr); min-height: 100dvh; padding: 14px; gap: 12px; align-items: start; }
.sidebar {
  position: sticky; top: 14px; height: calc(100dvh - 28px); display: flex; flex-direction: column;
  background: var(--sidebar-fill); color: var(--text); padding: 22px 12px 14px;
  border: 1px solid var(--glass-border); border-radius: 22px;
  box-shadow: none;
  -webkit-backdrop-filter: blur(34px) saturate(150%);
  backdrop-filter: blur(34px) saturate(150%);
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 650; letter-spacing: -.35px; }
.sidebar .brand { padding: 2px 9px 25px; }
.brand small, .profile small { display: block; font-size: 11px; font-weight: 500; margin-top: 4px; color: var(--muted); letter-spacing: .04em; }
.brand-mark {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 12px; background: var(--accent-tint); color: var(--primary);
}
.brand-mark::before { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 4px; box-shadow: inset -4px -4px currentColor; }
#nav { display: grid; gap: 4px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid transparent; border-radius: 12px; color: var(--muted); min-height: 42px; }
.nav-link:hover { background: var(--panel-soft); color: var(--text); }
.nav-link[aria-current] { background: var(--accent-tint); border-color: transparent; color: var(--primary); font-weight: 600; }
.icon { position: relative; width: 15px; height: 15px; display: inline-block; flex: none; border: 1.5px solid currentColor; border-radius: 3px; }
.icon::after, .icon::before { position: absolute; }
.icon-overview { background: linear-gradient(currentColor,currentColor) center/1px 100% no-repeat, linear-gradient(currentColor,currentColor) center/100% 1px no-repeat; }
.icon-projects { border-radius: 2px; height: 12px; margin-top: 2px; }
.icon-projects::before { content: ""; left: -1.5px; top: -4px; width: 7px; height: 3px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 2px 2px 0 0; }
.icon-milestones { transform: rotate(45deg) scale(.82); }
.icon-tasks { background: linear-gradient(currentColor,currentColor) 65% 0/1px 100% no-repeat, linear-gradient(currentColor,currentColor) 32% 0/1px 100% no-repeat; }
.icon-hours { border-radius: 50%; }
.icon-hours::before { content: ""; left: 5px; top: 2px; width: 4px; height: 4px; border-left: 1.5px solid; border-bottom: 1.5px solid; }
.icon-changes::before { content: ""; inset: 3px 2px; border-top: 1px solid; border-bottom: 1px solid; }
.icon-bugs { border-radius: 7px; width: 11px; margin-inline: 2px; }
.icon-bugs::before { content: ""; width: 15px; left: -3.5px; top: 4px; height: 3px; border-block: 1px solid; }
.icon-logout { border-right-color: transparent; }
.icon-logout::before { content: "→"; font-size: 16px; top: -5px; left: 5px; }
.profile { margin-top: auto; padding: 15px 3px 2px; border-top: 1px solid var(--line); display: flex; gap: 9px; align-items: center; }
.profile strong { font-size: 13px; }
.profile .icon-button { margin-left: auto; color: var(--muted); }
.avatar { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-tint); color: var(--primary); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); font-weight: 700; font-size: 12px; }
.profile .avatar { width: 33px; height: 33px; background: var(--accent-tint); }
.workspace {
  min-width: 0; min-height: calc(100dvh - 28px);
  border: 1px solid var(--glass-border); border-radius: 28px;
  background: var(--workspace-fill);
}
#content { max-width: 1400px; margin: auto; padding: 28px 28px 36px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.page-head h1 { font-size: 24px; font-weight: 650; letter-spacing: -.5px; line-height: 1.2; }
.page-head p { margin-top: 8px; color: var(--muted); line-height: 1.6; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; gap: 7px; padding: 10px 18px; border: 1px solid var(--glass-border); border-radius: 999px; font-weight: 600; white-space: nowrap; }
.primary {
  background: linear-gradient(150deg, var(--accent-fill), var(--accent-fill-end)); color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent-fill-end) 16%, transparent), inset 0 1px 0 rgba(255,255,255,.22);
}
.primary:hover { background: var(--accent-fill-end); }
.secondary, .demo { background: var(--panel); color: var(--primary); box-shadow: var(--glass-shadow); }
.secondary:hover, .demo:hover { background: var(--accent-tint); }
.button:disabled { cursor: wait; opacity: .63; }
.icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--glass-border); background: var(--panel); box-shadow: var(--glass-shadow); color: var(--muted); }
.icon-button:hover { background: var(--panel-soft); color: var(--primary); }
.button:active { transform: scale(.97); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 4px 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.table-wrap, .board-card { background: var(--panel); border: 1px solid var(--glass-border); border-radius: 14px; }
.metric { padding: 10px 16px; display: grid; gap: 8px; min-width: 0; border-radius: 10px; }
.metric:first-child { padding-left: 0; }
.metric:hover { background: var(--panel-soft); }
.interactive:hover { border-color: var(--accent-ring); }
.metric-label { display: block; font-size: 12px; color: var(--muted); }
.metric strong { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.05em; }
.metric em { font-size: 13px; margin-left: 4px; font-style: normal; color: var(--muted); letter-spacing: 0; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.47fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.panel { min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.panel-head h2 { font-size: 15px; font-weight: 600; }
.text-link { color: var(--primary); font-weight: 650; font-size: 13px; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }
.overview-row, .milestone-row, .event { display: flex; align-items: center; min-width: 0; gap: 10px; padding: 13px 0; }
.overview-row + .overview-row, .milestone-row + .milestone-row, .event + .event { border-top: 1px solid var(--line); }
.overview-row > div, .milestone-row > div, .event > div { min-width: 0; flex: 1; }
.row-title { font-weight: 500; overflow-wrap: anywhere; }
.row-title:hover { color: var(--primary); text-decoration: underline; }
.subline { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.progress { width: 100%; height: 3px; margin-top: 9px; accent-color: var(--accent-fill); display: block; }
.progress::-webkit-progress-bar { background: var(--accent-tint); border-radius: 5px; }
.progress::-webkit-progress-value { background: var(--accent-fill); border-radius: 5px; }
.progress::-moz-progress-bar { background: var(--accent-fill); border-radius: 5px; }
.pill { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 6px; font-size: 12px; white-space: nowrap; color: var(--muted); background: var(--panel-soft); }
.pill.active, .pill.doing { background: var(--accent-tint); color: var(--primary); }
.pill.done, .pill.approved { background: var(--success-fill); color: var(--success-text); }
.pill.review, .pill.pending, .pill.high, .pill.paused { background: var(--warning-fill); color: var(--warning-text); }
.pill.urgent, .pill.rejected, .pill.overdue { background: var(--danger-fill); color: var(--danger); }
.event time, .date-cell { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.filters input { flex: 1 1 225px; max-width: 390px; }
.filters select { width: auto; max-width: 100%; }
input, select, textarea { width: 100%; background: var(--input-fill); border: 1px solid var(--glass-border); color: var(--text); border-radius: 14px; min-height: 44px; padding: 10px 14px; box-shadow: inset 0 1px 3px rgba(59,83,117,.035); }
textarea { min-height: 85px; resize: vertical; }
input::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus {
  outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px var(--accent-tint);
}
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 13px 15px; vertical-align: middle; }
th { color: var(--muted); font-size: 12px; font-weight: 600; background: transparent; white-space: nowrap; }
td { border-top: 1px solid var(--line); overflow-wrap: anywhere; }
td:first-child { min-width: 135px; }
td:last-child, table .date-cell { white-space: nowrap; }
.table-action { border: 0; background: transparent; padding: 6px; }
.empty { padding: 28px 15px; text-align: center; color: var(--muted); }
.panel .empty { border: 0; padding: 18px 4px; text-align: left; }
.board { display: grid; grid-template-columns: repeat(4, minmax(208px, 1fr)); gap: 13px; overflow-x: auto; padding: 0 0 8px; }
.lane { min-height: 270px; background: var(--panel-soft); border: 1px solid transparent; padding: 10px; border-radius: 14px; }
.lane.drop { border-color: var(--primary); background: var(--accent-tint); }
.lane h2 { display: flex; align-items: center; justify-content: space-between; font-size: 14px; padding: 5px 4px 12px; }
.lane h2 span { color: var(--muted); background: var(--panel); border-radius: 10px; padding: 2px 7px; font-size: 12px; }
.board-card { padding: 11px; margin-bottom: 8px; cursor: grab; }
.board-card .card-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 11px; }
.board-card .avatar { width: 24px; height: 24px; font-size: 11px; }
.board-card time { color: var(--muted); font-size: 12px; }
.board-card .overdue { color: var(--danger); }
.hours-total { margin: 0 0 14px; color: var(--muted); }
.hours-total strong { color: var(--text); }
dialog { width: min(560px, calc(100% - 24px)); padding: 0; border: 1px solid var(--glass-border); border-radius: 28px; color: var(--text);
  background: var(--dialog-fill); box-shadow: 0 18px 55px rgba(51,75,113,.17);
  -webkit-backdrop-filter: blur(40px) saturate(170%); backdrop-filter: blur(40px) saturate(170%); }
dialog::backdrop { background: rgba(47,66,97,.17); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
dialog form { max-height: min(85dvh, 850px); display: flex; flex-direction: column; }
.dialog-head, .dialog-foot { padding: 15px 20px; display: flex; align-items: center; gap: 9px; }
.dialog-head { justify-content: space-between; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 22px; font-weight: 650; text-align: center; flex: 1; padding-left: 36px; }
.close { font-size: 24px; }
.dialog-foot { justify-content: end; flex-wrap: wrap; border-top: 1px solid var(--line); }
.dialog-foot .form-error { flex-basis: 100%; }
.form-fields { display: grid; gap: 14px; padding: 18px 20px; overflow: auto; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
label input, label select, label textarea { font-weight: 400; }
.form-error { color: var(--danger); line-height: 1.55; }
#toast {
  position: fixed; z-index: 2; top: max(16px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  width: max-content; max-width: min(420px, calc(100% - 32px)); padding: 12px 16px;
  color: #fff; background: rgba(32,47,72,.9); border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px; box-shadow: 0 10px 35px rgba(28,46,77,.2); text-align: center;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.login { min-height: 100dvh; display: grid; place-items: center; padding: 25px; background: transparent; }
.login-card { width: min(100%, 430px); border: 1px solid var(--glass-border); border-radius: 32px;
  background: var(--dialog-fill); padding: 36px; box-shadow: 0 18px 55px rgba(51,75,113,.17);
  -webkit-backdrop-filter: blur(40px) saturate(170%); backdrop-filter: blur(40px) saturate(170%); }
.login .brand small { color: var(--muted); }
.login h1 { margin: 25px 0 19px; font-size: 26px; }
.login form { display: grid; gap: 13px; }
@media (max-width: 1080px) {
  .shell { grid-template-columns: 210px minmax(0, 1fr); }
  #content { padding-inline: 20px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 0; }
  .workspace { border: 0; border-radius: 0; box-shadow: none; }
  .sidebar { position: static; height: auto; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
  .sidebar .brand { padding: 0 5px; }
  #nav { display: flex; grid-column: span 2; grid-row: 2; overflow: auto; }
  .nav-link { white-space: nowrap; padding: 8px 10px; min-height: 37px; gap: 8px; }
  .profile { border: 0; margin: 0; padding: 0; }
  #content { padding: 20px 14px; }
}
@media (max-width: 620px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-bottom: 18px; }
  .metric, .metric:first-child { padding: 8px; }
  .page-head { align-items: start; }
  .profile > div { display: none; }
}
.dashboard-stack { display: grid; gap: 28px; min-width: 0; }

.login .floating-field { position: relative; }
.login .floating-field input { height: 64px; padding: 28px 16px 10px; border-radius: 16px; font-size: 16px; line-height: 24px; }
.login .floating-field label {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  display: block; margin: 0; font-size: 16px; line-height: 16px;
  pointer-events: none; transition: top .18s, transform .18s, font-size .18s;
}
.login .floating-field input:focus + label,
.login .floating-field input:not(:placeholder-shown) + label,
.login .floating-field input:autofill + label { top: 9px; transform: none; font-size: 12px; }
.login .primary { min-height: 48px; margin-top: 10px; color: var(--primary); background: var(--accent-tint); box-shadow: var(--glass-shadow); }
.login .primary:hover { background: color-mix(in srgb, var(--primary) 18%, transparent); }
.login input:is(:autofill, :-webkit-autofill) {
  -webkit-text-fill-color: var(--text); caret-color: var(--primary);
  -webkit-box-shadow: inset 0 0 0 1000px color-mix(in srgb, var(--primary) 6%, var(--bg));
  box-shadow: inset 0 0 0 1000px color-mix(in srgb, var(--primary) 6%, var(--bg));
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c111a;
    --panel: rgba(32,42,58,.84);
    --panel-soft: rgba(59,75,98,.55);
    --text: #edf2fa;
    --muted: #aab9ce;
    --line: rgba(174,195,224,.18);
    --primary: #a7cfef;
    --danger: #ff8798;
    --glass-border: rgba(196,216,245,.18);
    --glass-shadow: 0 8px 28px rgba(0,0,0,.22), inset 0 1px 0 rgba(222,235,255,.1);
    --sidebar-fill: linear-gradient(155deg, rgba(27,38,54,.76), rgba(17,25,38,.6));
    --workspace-fill: rgba(10,17,28,.44);
    --dialog-fill: linear-gradient(145deg, rgba(39,52,73,.96), rgba(26,37,55,.94));
    --input-fill: rgba(16,26,42,.7);
    --selected-fill: linear-gradient(130deg, var(--accent-tint), rgba(255,255,255,.035));
    --success-fill: rgba(62,135,101,.24);
    --success-text: #a0dbbb;
    --warning-fill: rgba(169,121,44,.23);
    --warning-text: #f0cd90;
    --danger-fill: rgba(190,70,90,.2);
  }
  body {
    background:
      radial-gradient(ellipse at 5% 10%, rgba(28,62,103,.4), transparent 48%),
      radial-gradient(ellipse at 98% 28%, rgba(60,42,94,.3), transparent 48%),
      radial-gradient(ellipse at 38% 100%, rgba(23,64,61,.28), transparent 50%),
      linear-gradient(145deg, #0b121d, #10121c 62%, #0c1918);
    background-attachment: fixed;
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .sidebar, .workspace, dialog, .login-card { background: var(--bg); }
}
@media (prefers-reduced-transparency: reduce) {
  .sidebar, .workspace, dialog, .login-card { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  dialog::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  button, .login .floating-field label { transition: none; }
  .button:active { transform: none; }
}
@media (max-width: 760px) {
  input, select, textarea { font-size: 16px; }
}
@media (max-width: 480px) {
  .login-card { padding: 28px 22px; }
  .page-head { flex-wrap: wrap; }
}
