:root {
  color-scheme: light;
  --bg: #f4f3f0;
  --surface: #fcfcfb;
  --surface-2: #f0efec;
  --surface-3: #e6e5e0;
  --border: #dcdad4;
  --text: #0b0b0b;
  --text-2: #52514e;
  --text-3: #75736e;
  --accent: #2a78d6;
  --accent-ink: #1c5cab;
  --accent-soft: #cde2fb;
  --danger: #c23434;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --s-todo: #8a8984;
  --s-prog: #2a78d6;
  --s-block: #d03b3b;
  --s-done: #0ca30c;
  --warn: #b77900;
  --c1: #2a78d6; --c2: #eb6834; --c3: #1baf7a; --c4: #eda100;
  --c5: #e87ba4; --c6: #008300; --c7: #4a3aa7; --c8: #e34948;
  --radius: 10px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121211; --surface: #1a1a19; --surface-2: #232321; --surface-3: #2e2e2b;
    --border: #383835; --text: #ffffff; --text-2: #c3c2b7; --text-3: #9a998f;
    --accent: #3987e5; --accent-ink: #86b6ef; --accent-soft: #184f95; --danger: #e66767;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35);
    --s-todo: #8f8e86; --s-prog: #3987e5; --s-block: #e05555; --s-done: #0ca30c; --warn: #fab219;
    --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500;
    --c5: #d55181; --c6: #008300; --c7: #9085e9; --c8: #e66767;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121211; --surface: #1a1a19; --surface-2: #232321; --surface-3: #2e2e2b;
  --border: #383835; --text: #ffffff; --text-2: #c3c2b7; --text-3: #9a998f;
  --accent: #3987e5; --accent-ink: #86b6ef; --accent-soft: #184f95; --danger: #e66767;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35);
  --s-todo: #8f8e86; --s-prog: #3987e5; --s-block: #e05555; --s-done: #0ca30c; --warn: #fab219;
  --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500;
  --c5: #d55181; --c6: #008300; --c7: #9085e9; --c8: #e66767;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.45 var(--font); min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
a { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 10px 20px; background: var(--surface); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand h1 { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.logo { width: 24px; height: 24px; border-radius: 6px; background: var(--accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='7'/%3E%3C/svg%3E");
  position: relative; }
.logo::after { content: ""; position: absolute; left: 7px; top: 5px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.tabs { display: flex; gap: 2px; background: var(--surface-2); padding: 3px; border-radius: 9px; }
.tabs button { border: 0; background: transparent; padding: 6px 14px; border-radius: 7px; cursor: pointer; color: var(--text-2); font-weight: 500; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.btn { border: 1px solid var(--border); background: var(--surface); padding: 6px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; font-weight: 500; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--danger); }
.btn.icon { padding: 6px 10px; font-weight: 700; }
.btn.sm { padding: 3px 9px; font-size: 13px; }
.link { border: 0; background: none; color: var(--accent-ink); cursor: pointer; padding: 4px; }

.sync { display: flex; align-items: center; gap: 7px; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 5px 12px; cursor: pointer; font-size: 13px; color: var(--text-2); }
.sync .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--s-todo); }
.sync[data-state="saved"] .dot { background: var(--s-done); }
.sync[data-state="dirty"] .dot { background: var(--warn); }
.sync[data-state="saving"] .dot { background: var(--accent); animation: pulse 1s infinite; }
.sync[data-state="error"] .dot { background: var(--s-block); }
@keyframes pulse { 50% { opacity: .3; } }

.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; min-width: 230px; z-index: 30; }
.menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.menu button:hover { background: var(--surface-2); }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 53px; z-index: 15; }
.filters input[type=search] { flex: 1 1 220px; max-width: 320px; }
.filters input[type=search], .filters select { border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 6px 10px; }
.filters select.active { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.check { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); cursor: pointer; }

main { padding: 20px; max-width: 1600px; margin: 0 auto; }

/* ---------- shared bits ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.panel { padding: 16px 18px; }
.panel h3 { font-size: 14px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.panel h3 .sub { font-weight: 400; color: var(--text-3); font-size: 12px; }
.muted { color: var(--text-3); }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.pdot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.status-badge i { width: 8px; height: 8px; border-radius: 50%; }
.prio { font-size: 12px; font-weight: 600; white-space: nowrap; }
.prio.High { color: var(--danger); }
.prio.Medium { color: var(--warn); }
.prio.Low { color: var(--text-3); }
.overdue { color: var(--danger); font-weight: 600; }
.soon { color: var(--warn); font-weight: 600; }
.progress { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.tag { font-size: 11px; padding: 0 6px; border-radius: 4px; border: 1px solid var(--border); color: var(--text-2); }

.empty { text-align: center; padding: 60px 20px; }
.empty h2 { font-size: 22px; margin-bottom: 8px; }
.empty p { color: var(--text-2); max-width: 520px; margin: 0 auto 20px; }
.empty .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.none { color: var(--text-3); padding: 12px 0; font-size: 13px; }

/* ---------- overview ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 14px 16px; cursor: pointer; text-align: left; }
.kpi:hover { border-color: var(--accent); }
.kpi .k { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.kpi .v { font-size: 30px; font-weight: 650; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 12px; color: var(--text-3); }
.ov-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.ov-grid > * { min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.proj { padding: 14px 16px; cursor: pointer; border-left: 4px solid var(--pc); }
.proj:hover { box-shadow: var(--shadow); }
.proj .top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.proj h4 { margin: 0; font-size: 15px; font-weight: 600; }
.proj .desc { color: var(--text-2); font-size: 12.5px; margin: 4px 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.proj .nums { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); margin-top: 6px; }
.proj .edit { border: 0; background: none; cursor: pointer; color: var(--text-3); padding: 2px 6px; border-radius: 6px; }
.proj .edit:hover { background: var(--surface-2); color: var(--text); }
.health { font-size: 12px; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.health.ok { color: var(--s-done); } .health.risk { color: var(--warn); } .health.off { color: var(--danger); } .health.done { color: var(--text-3); }

.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--text-2); margin-bottom: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.hbars { display: flex; flex-direction: column; gap: 8px; }
.hbar { display: grid; grid-template-columns: minmax(80px, 150px) 1fr 44px; gap: 10px; align-items: center; font-size: 13px; }
.hbar .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.hbar .track { display: flex; gap: 2px; height: 14px; }
.hbar .seg { height: 100%; min-width: 3px; cursor: default; }
.hbar .seg:first-child { border-radius: 4px 0 0 4px; }
.hbar .seg:last-child { border-radius: 0 4px 4px 0; }
.hbar .seg:only-child { border-radius: 0 4px 4px 0; }
.hbar .seg:hover { filter: brightness(1.12); }
.hbar .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }
.list { display: flex; flex-direction: column; }
.li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 0; border-top: 1px solid var(--border); cursor: pointer; font-size: 13px; }
.li:first-child { border-top: 0; }
.li:hover .t { color: var(--accent-ink); }
.li .t { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .s { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; color: var(--text-3); font-size: 12px; }

/* ---------- board ---------- */
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; align-items: start; overflow-x: auto; padding-bottom: 8px; }
.col { background: var(--surface-2); border-radius: var(--radius); padding: 10px; min-height: 200px; transition: background .15s; }
.col.drop { background: var(--accent-soft); }
.col header { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; font-weight: 600; }
.col header .n { color: var(--text-3); font-weight: 500; }
.col header .add { margin-left: auto; border: 0; background: none; cursor: pointer; color: var(--text-3); font-size: 18px; line-height: 1; padding: 0 4px; border-radius: 5px; }
.col header .add:hover { background: var(--surface-3); color: var(--text); }
.tcard { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 11px; margin-bottom: 8px; cursor: grab; border-left: 3px solid var(--pc); }
.tcard:hover { box-shadow: var(--shadow); }
.tcard.dragging { opacity: .45; }
.tcard .t { font-weight: 550; margin-bottom: 6px; word-break: break-word; }
.tcard .row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--text-2); }
.tcard .row + .row { margin-top: 6px; }
.tcard .progress { margin-top: 8px; }
.tcard .owner { margin-left: auto; }
.avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); color: var(--text-2); display: inline-grid; place-items: center; font-size: 10px; font-weight: 700; flex: none; }

/* ---------- table ---------- */
.tablewrap { overflow-x: auto; }
table.tasks { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tasks th { text-align: left; font-weight: 600; color: var(--text-2); font-size: 12px; padding: 10px; border-bottom: 1px solid var(--border); white-space: nowrap; cursor: pointer; user-select: none; position: sticky; top: 0; background: var(--surface); }
table.tasks th:hover { color: var(--text); }
table.tasks th .arr { color: var(--accent); }
table.tasks td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.tasks tbody tr { cursor: pointer; }
table.tasks tbody tr:hover { background: var(--surface-2); }
table.tasks td.title { font-weight: 500; min-width: 220px; }
table.tasks td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.tasks select.inline { border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 2px 4px; cursor: pointer; }
table.tasks select.inline:hover { border-color: var(--border); background: var(--surface); }
.tfoot { display: flex; justify-content: space-between; padding: 10px 14px; color: var(--text-3); font-size: 12px; }

/* ---------- timeline ---------- */
.tl-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tl-bar .seg { display: flex; background: var(--surface-2); padding: 3px; border-radius: 8px; gap: 2px; }
.tl-bar .seg button { border: 0; background: none; padding: 4px 10px; border-radius: 6px; cursor: pointer; color: var(--text-2); }
.tl-bar .seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.tl-bar .range { font-weight: 600; margin: 0 6px; }
.gantt { overflow-x: auto; }
.gantt-inner { min-width: 760px; position: relative; }
.g-head, .g-row { display: grid; grid-template-columns: 240px 1fr; }
.g-head { position: sticky; top: 0; background: var(--surface); z-index: 2; border-bottom: 1px solid var(--border); }
.g-head .lbl { padding: 8px 12px; font-size: 12px; color: var(--text-3); }
.g-scale { position: relative; height: 34px; }
.g-scale .wk { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--border); font-size: 11px; color: var(--text-3); padding: 9px 5px; white-space: nowrap; overflow: hidden; }
.g-group { display: grid; grid-template-columns: 240px 1fr; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.g-group .lbl { padding: 7px 12px; font-weight: 600; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.g-row { border-bottom: 1px solid var(--border); min-height: 34px; }
.g-row .lbl { padding: 7px 12px 7px 26px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.g-row .lbl:hover { color: var(--accent-ink); }
.g-lane { position: relative; }
.g-grid { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--border); opacity: .55; pointer-events: none; }
.g-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--danger); z-index: 1; pointer-events: none; }
.g-today-lbl { position: absolute; top: 2px; font-size: 10px; color: #fff; background: var(--danger); padding: 0 4px; border-radius: 3px; transform: translateX(-50%); z-index: 3; }
.g-barx { position: absolute; top: 8px; height: 18px; border-radius: 4px; background: color-mix(in srgb, var(--pc) 30%, var(--surface)); border: 1px solid var(--pc); cursor: pointer; overflow: hidden; }
.g-barx > span { display: block; height: 100%; background: var(--pc); opacity: .85; }
.g-barx.clipL { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left-style: dashed; }
.g-barx.clipR { border-top-right-radius: 0; border-bottom-right-radius: 0; border-right-style: dashed; }
.g-ms { position: absolute; top: 10px; width: 14px; height: 14px; background: var(--pc); transform: translateX(-50%) rotate(45deg); border-radius: 2px; cursor: pointer; border: 2px solid var(--surface); }
.g-over { outline: 2px solid var(--danger); outline-offset: 1px; }

.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cal .dow { background: var(--surface-2); padding: 6px 8px; font-size: 12px; color: var(--text-3); font-weight: 600; }
.cal .day { background: var(--surface); min-height: 108px; padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal .day.other { background: var(--surface-2); }
.cal .day.other .dn { color: var(--text-3); }
.cal .dn { font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 2px; }
.cal .day.today .dn { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 7px; align-self: flex-start; }
.cal .ev { font-size: 11.5px; padding: 2px 6px; border-radius: 4px; background: color-mix(in srgb, var(--pc) 16%, var(--surface)); border-left: 3px solid var(--pc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.cal .ev.done { text-decoration: line-through; color: var(--text-3); }
.cal .more { font-size: 11px; color: var(--text-3); }

/* ---------- dialogs ---------- */
.dlg { border: 1px solid var(--border); border-radius: 14px; padding: 0; width: min(640px, calc(100vw - 32px)); background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.dlg::backdrop { background: rgba(10,10,10,.45); }
.dlg form { display: flex; flex-direction: column; max-height: calc(100vh - 40px); }
.dlg header { display: flex; align-items: center; padding: 16px 20px 8px; }
.dlg header h2 { font-size: 17px; font-weight: 650; }
.dlg .x { margin-left: auto; border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--text-3); padding: 2px 8px; border-radius: 6px; }
.dlg .x:hover { background: var(--surface-2); color: var(--text); }
.dlg .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; padding: 8px 20px; overflow-y: auto; }
.dlg .span2 { grid-column: 1 / -1; }
.dlg label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.dlg label small { font-weight: 400; color: var(--text-3); }
.dlg label.check { flex-direction: row; font-weight: 400; font-size: 13px; }
.dlg input:not([type=checkbox]):not([type=range]):not([type=radio]), .dlg select, .dlg textarea { border: 1px solid var(--border); background: var(--bg); border-radius: 8px; padding: 7px 10px; font-size: 14px; font-weight: 400; color: var(--text); width: 100%; }
.dlg textarea { resize: vertical; }
.dlg input[type=range] { width: 100%; accent-color: var(--accent); }
.dlg output { font-weight: 400; color: var(--text-3); }
.dlg footer { display: flex; gap: 8px; padding: 14px 20px 18px; border-top: 1px solid var(--border); margin-top: 8px; }
.dlg .grow { flex: 1; }
.dlg .hint { margin: 0 20px 8px; color: var(--text-2); font-size: 13px; }
.dlg .hint.small { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.dlg .meta { margin: 4px 20px 0; font-size: 12px; color: var(--text-3); }
.dlg .status { margin: 6px 20px 0; font-size: 13px; min-height: 1em; }
.dlg .status.ok { color: var(--s-done); } .dlg .status.err { color: var(--danger); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); cursor: pointer; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--text); }
#importBody { padding: 4px 20px; overflow-y: auto; }
#importBody table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0; }
#importBody td, #importBody th { padding: 5px 6px; border-bottom: 1px solid var(--border); text-align: left; }
#importBody select { border: 1px solid var(--border); background: var(--bg); border-radius: 6px; padding: 3px 6px; }

/* ---------- tooltip / toast ---------- */
#tooltip { position: fixed; z-index: 100; pointer-events: none; background: var(--text); color: var(--surface); font-size: 12px; padding: 6px 9px; border-radius: 6px; max-width: 280px; box-shadow: var(--shadow); white-space: pre-line; }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--surface); padding: 10px 16px; border-radius: 8px; z-index: 100; font-size: 13px; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .ov-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .topbar { padding: 10px 16px; gap: 10px; }
  .tabs { order: 3; width: 100%; overflow-x: auto; }
  .tabs button { flex: 1; padding: 6px 8px; }
  .actions { margin-left: auto; }
  .actions .btn:not(.primary):not(.icon) { display: none; }
  .sync .label { display: none; }
  .filters { position: static; padding: 10px 16px; }
  .filters input[type=search] { max-width: none; flex-basis: 100%; }
  .filters select { flex: 1 1 calc(50% - 4px); min-width: 0; }
  main { padding: 16px; }
  .board { grid-template-columns: repeat(4, minmax(250px, 85vw)); scroll-snap-type: x mandatory; }
  .col { scroll-snap-align: start; }
  .dlg .grid { grid-template-columns: 1fr; }
  .g-head, .g-row, .g-group { grid-template-columns: 150px 1fr; }
  .cal .day { min-height: 70px; }
  .cal .ev { font-size: 10px; padding: 1px 3px; }
}

/* ================= v2 additions ================= */
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { white-space: nowrap; }
.bell { position: relative; display: inline-grid; place-items: center; color: var(--text-2); }
.bell.has { color: var(--text); }
.bell .badge { position: absolute; top: -5px; right: -6px; background: var(--s-block); color: #fff; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--surface); }
.popover { width: min(380px, calc(100vw - 24px)); max-height: 70vh; overflow-y: auto; padding: 0; }
.popover .bhead { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); }
.popover .bgrp { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); padding: 10px 14px 4px; }
.popover .bitem { padding: 7px 14px; cursor: pointer; border-top: 1px solid var(--border); }
.popover .bitem:hover { background: var(--surface-2); }
.popover .bitem .t { font-weight: 500; font-size: 13px; }
.popover .bitem .s { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; margin-top: 2px; }
.popover .bitem .s .link { margin-left: auto; font-size: 12px; }
.popover .bfoot { padding: 10px 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-2); }
.popover .link, .menu .link { display: inline; width: auto; padding: 2px 4px; }

.small { font-size: 12px; }
.r { text-align: right; }
.c { text-align: center; }
.ok { color: var(--s-done); }
.link.danger { color: var(--danger); }
.sel-sm { border: 1px solid var(--border); background: var(--surface); border-radius: 7px; padding: 4px 8px; font-size: 13px; }
.metas { display: inline-flex; gap: 8px; flex-wrap: wrap; margin-left: 6px; }
.tcard .metas { margin-left: 0; }
.mi { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.parent-line { font-size: 11.5px; color: var(--text-3); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .seg.solo { flex: none; background: var(--c1); border-radius: 0 4px 4px 0; }
.li.nohover { cursor: default; }
.kpis.small { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.kpi.static { cursor: default; }
.kpi.static:hover { border-color: var(--border); }
.kpi .v.overdue { color: var(--danger); }
.progress.thin { height: 5px; }
.progress.bad > span { background: var(--s-block); }

/* dialogs */
.dlg.wide { width: min(780px, calc(100vw - 32px)); }
.dlg.xwide { width: min(1000px, calc(100vw - 32px)); }
.dlg .crumb { color: var(--text-3); font-size: 13px; margin-left: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40%; }
.dtabs { display: flex; gap: 2px; padding: 0 20px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.dtabs button { border: 0; background: none; padding: 9px 12px; cursor: pointer; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-weight: 500; }
.dtabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.dtabs .cnt { font-size: 11px; color: var(--text-3); margin-left: 3px; }
.dpanes { overflow-y: auto; min-height: 340px; }
.dpane:not(.grid) { padding: 12px 20px; }
.dpane h4 { margin: 4px 0 8px; font-size: 13px; }
.dpane h4 small { font-weight: 400; color: var(--text-3); margin-left: 6px; }
.dlg .grid.g3 { grid-template-columns: repeat(3, 1fr); padding: 0 0 8px; }
.dlg .hint { margin-left: 0; margin-right: 0; }
.dlg .dpane .hint { margin: 6px 0; }
.checklist { list-style: none; margin: 0 0 8px; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--border); }
.checklist li.none { border: 0; }
.checklist .grip { cursor: grab; color: var(--text-3); font-size: 11px; letter-spacing: -2px; }
.checklist input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }
.dlg .checklist .cl-text { border: 1px solid transparent; background: transparent; padding: 4px 6px; flex: 1; }
.dlg .checklist .cl-text:hover, .dlg .checklist .cl-text:focus { border-color: var(--border); background: var(--bg); }
.checklist .cl-text.done { text-decoration: line-through; color: var(--text-3); }
.inline-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.dlg .inline-add input, .dlg .inline-add select, .inline-add input, .inline-add select { border: 1px solid var(--border); background: var(--bg); border-radius: 8px; padding: 6px 9px; font-size: 13px; color: var(--text); }
.inline-add #checkNew { flex: 1; min-width: 200px; }
.log-add #logNote { flex: 1; min-width: 140px; }
.log-add #logHours { width: 90px; }
.alloc-add #alPct { width: 80px; } .alloc-add #alRate { width: 130px; }
.sublist { margin-bottom: 8px; }
.subrow { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; padding: 6px 4px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 13px; }
.subrow:hover { background: var(--surface-2); }
.subrow .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fin { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 14px; }
.fin > div { background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }
.fin b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.fin span { font-size: 11.5px; color: var(--text-3); }
table.mini { border-collapse: collapse; font-size: 13px; }
table.mini.wide { width: 100%; }
table.mini th { text-align: left; font-size: 11.5px; color: var(--text-3); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.mini td { padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.mini th.r, table.mini td.r { text-align: right; font-variant-numeric: tabular-nums; }
table.mini td.none { color: var(--text-3); }
table.mini tr.excluded td { color: var(--text-3); text-decoration: line-through; }
table.mini tr.excluded td:last-child { text-decoration: none; }
table.mini.edit input, table.mini.edit select { width: 100%; border: 1px solid var(--border); background: var(--bg); border-radius: 6px; padding: 5px 7px; font-size: 13px; color: var(--text); }
table.mini.edit input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }
.w70 { width: 70px !important; } .w90 { width: 96px !important; }
.cellin { border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 3px 6px; font-size: 13px; color: var(--text); text-align: inherit; }
.cellin:hover, .cellin:focus { border-color: var(--border); background: var(--surface); }
td.r .cellin { text-align: right; }
.weekdays { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; }
.wd { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 5px; border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; font-weight: 500 !important; font-size: 13px !important; cursor: pointer; color: var(--text) !important; }
.wd input { accent-color: var(--accent); }
.notif { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; line-height: 1.7; font-weight: 400; color: var(--text); font-size: 13px; }

/* workspace calendars */
.calpane { display: grid; grid-template-columns: 230px 1fr; gap: 16px; }
.callist { display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--border); padding-right: 12px; }
.calitem { text-align: left; border: 1px solid transparent; background: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; font-weight: 500; }
.calitem:hover { background: var(--surface-2); }
.calitem.sel { background: var(--accent-soft); border-color: var(--accent); }
.caladd { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; align-items: flex-start; }
.yearnav { display: flex; align-items: center; gap: 10px; margin: 10px 0 6px; }
.caldetail details { margin-top: 10px; }
.caldetail summary { cursor: pointer; color: var(--accent-ink); font-size: 13px; }
.caldetail textarea { width: 100%; border: 1px solid var(--border); background: var(--bg); border-radius: 8px; padding: 7px 10px; font: 13px/1.5 ui-monospace, Menlo, monospace; color: var(--text); margin-bottom: 6px; }

/* timeline holidays */
.g-hol { position: absolute; top: 0; bottom: 0; background: var(--warn); opacity: .13; }
.cal .day.hol { background: color-mix(in srgb, var(--warn) 10%, var(--surface)); }
.cal .day.wkend:not(.hol):not(.other) { background: color-mix(in srgb, var(--surface-2) 60%, var(--surface)); }
.cal .holname { font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }

/* timesheet */
table.ts { width: 100%; border-collapse: collapse; font-size: 13px; }
table.ts th, table.ts td { border-bottom: 1px solid var(--border); padding: 6px 6px; }
table.ts th { font-size: 12px; color: var(--text-2); font-weight: 600; line-height: 1.3; }
table.ts th span { font-weight: 400; color: var(--text-3); }
table.ts th .holtag { font-size: 10.5px; color: var(--warn); }
table.ts .tt { text-align: left; min-width: 240px; }
table.ts .tt .t { font-weight: 500; cursor: pointer; }
table.ts .tt .t:hover { color: var(--accent-ink); }
table.ts .tt .s { display: flex; gap: 8px; align-items: center; margin-top: 2px; font-size: 12px; flex-wrap: wrap; }
table.ts .c { width: 76px; text-align: center; }
table.ts .off { background: var(--surface-2); }
table.ts .is-today { box-shadow: inset 0 -2px 0 var(--accent); }
table.ts .tot { font-weight: 600; font-variant-numeric: tabular-nums; }
table.ts tfoot td { font-weight: 600; font-variant-numeric: tabular-nums; border-bottom: 0; }
table.ts tfoot td.over { color: var(--danger); }
table.ts tfoot td.full { color: var(--s-done); }
.tsin { width: 60px; border: 1px solid var(--border); background: var(--surface); border-radius: 6px; padding: 5px 4px; text-align: center; font-variant-numeric: tabular-nums; color: var(--text); }
.off .tsin { background: transparent; }
.tsin:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 2px var(--accent-soft); }
.multi { display: inline-block; padding: 5px 8px; border-radius: 6px; border: 1px dashed var(--border); cursor: pointer; }

/* resources heatmap */
table.heat { border-collapse: separate; border-spacing: 2px; width: 100%; font-size: 12px; padding: 6px; }
table.heat th { font-weight: 600; color: var(--text-3); font-size: 11.5px; padding: 6px 4px; white-space: nowrap; }
table.heat th.is-today { color: var(--accent-ink); }
table.heat th.who { text-align: left; min-width: 200px; background: var(--surface); position: sticky; left: 0; z-index: 1; }
table.heat th.who .t { color: var(--text); font-size: 13px; }
table.heat th.who .s { font-weight: 400; font-size: 11.5px; white-space: normal; }
td.hm { text-align: center; height: 38px; min-width: 52px; border-radius: 5px; font-variant-numeric: tabular-nums; font-weight: 600; background: var(--surface-2); color: var(--text-2); cursor: default; }
td.hm.s1 { background: #cde2fb; color: #0d366b; } td.hm.s2 { background: #9ec5f4; color: #0d366b; }
td.hm.s3 { background: #5598e7; color: #fff; } td.hm.s4 { background: #256abf; color: #fff; }
td.hm.over { background: #d03b3b; color: #fff; }
td.hm.past { opacity: .72; }
td.hm.has-hol { box-shadow: inset 0 -3px 0 var(--warn); }
.hm-legend { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.hm-legend .sw { display: inline-grid; place-items: center; width: 16px; height: 12px; border-radius: 3px; margin-left: 6px; color: #fff; font-size: 9px; }
.hm-legend .sw.s1 { background: #cde2fb; } .hm-legend .sw.s2 { background: #9ec5f4; } .hm-legend .sw.s3 { background: #5598e7; } .hm-legend .sw.s4 { background: #256abf; } .hm-legend .sw.over { background: #d03b3b; }
:root[data-theme="dark"] td.hm.s1, :root[data-theme="dark"] .hm-legend .sw.s1 { background: #184f95; color: #fff; }
:root[data-theme="dark"] td.hm.s2, :root[data-theme="dark"] .hm-legend .sw.s2 { background: #256abf; color: #fff; }
:root[data-theme="dark"] td.hm.s3, :root[data-theme="dark"] .hm-legend .sw.s3 { background: #5598e7; color: #0b0b0b; }
:root[data-theme="dark"] td.hm.s4, :root[data-theme="dark"] .hm-legend .sw.s4 { background: #9ec5f4; color: #0b0b0b; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) td.hm.s1, :root:not([data-theme="light"]) .hm-legend .sw.s1 { background: #184f95; color: #fff; }
  :root:not([data-theme="light"]) td.hm.s2, :root:not([data-theme="light"]) .hm-legend .sw.s2 { background: #256abf; color: #fff; }
  :root:not([data-theme="light"]) td.hm.s3, :root:not([data-theme="light"]) .hm-legend .sw.s3 { background: #5598e7; color: #0b0b0b; }
  :root:not([data-theme="light"]) td.hm.s4, :root:not([data-theme="light"]) .hm-legend .sw.s4 { background: #9ec5f4; color: #0b0b0b; }
}

/* budget */
table.sum tbody tr { cursor: pointer; }
table.sum tbody tr:hover { background: var(--surface-2); }
table.sum tbody tr.sel { background: var(--accent-soft); }
.burn { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 12px; color: var(--text-2); }
.bud-head { display: flex; align-items: center; gap: 12px; margin: 22px 0 12px; }
.bud-head h2 { font-size: 18px; display: flex; gap: 10px; align-items: center; }
.bud-head .pill { font-size: 15px; padding: 3px 12px; }
table.mini .t[data-edit-task] { cursor: pointer; font-weight: 500; }
table.mini .t[data-edit-task]:hover { color: var(--accent-ink); }
.chart svg { display: block; max-width: 100%; }
.chart .gl { stroke: var(--border); stroke-width: 1; }
.chart .ax { fill: var(--text-3); font-size: 11px; font-family: var(--font); }
.chart .bl { stroke: var(--danger); stroke-width: 1.5; stroke-dasharray: 6 4; }
.chart .pl { stroke: var(--text-3); stroke-width: 2; fill: none; stroke-dasharray: 4 4; }
.chart .al { stroke: var(--c1); stroke-width: 2; fill: none; stroke-linejoin: round; }
.chart .ad { fill: var(--c1); stroke: var(--surface); stroke-width: 2; }
.chart .xh { stroke: var(--text-3); stroke-width: 1; }
.legend i.dash { width: 14px; height: 0; border-top: 2px dashed; border-radius: 0; background: none !important; }

@media (max-width: 760px) {
  .calpane { grid-template-columns: 1fr; }
  .callist { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
  .fin { grid-template-columns: repeat(2, 1fr); }
  .dlg .grid.g3 { grid-template-columns: 1fr 1fr; }
  table.heat th.who { min-width: 130px; }
  .actions .bell { display: inline-grid !important; }
}
[hidden] { display: none !important; }
.dlg .inline-add input:not([type=checkbox]), .dlg .inline-add select { width: auto; }
.dlg .inline-add #checkNew, .dlg .log-add #logNote { flex: 1; }
.dlg table.mini { width: 100%; }
.tfoot { flex-wrap: wrap; gap: 8px; }
.tfoot select { max-width: 100%; }
.tl-bar > * { min-width: 0; }

/* ================= v3 additions ================= */
body.member .admin-only { display: none !important; }
body.server-mode .token-only { display: none !important; }
.who-me { font-size: 12.5px; color: var(--text-2); background: var(--surface-2); border-radius: 999px; padding: 5px 11px; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.tabcnt { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--s-block); color: #fff; font-size: 11px; font-weight: 700; line-height: 17px; margin-left: 3px; }
.loc { display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; padding: 0 6px; border-radius: 4px; vertical-align: 1px; }
.loc.on { background: color-mix(in srgb, var(--c3) 18%, var(--surface)); color: var(--text-2); }
.loc.off { background: color-mix(in srgb, var(--c7) 18%, var(--surface)); color: var(--text-2); }
.kind { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.kind.blk { background: color-mix(in srgb, var(--s-block) 14%, var(--surface)); color: var(--danger); }
.kind.dep { background: color-mix(in srgb, var(--c1) 14%, var(--surface)); color: var(--accent-ink); }
.grp-h { font-size: 14px; margin: 18px 0 10px; display: flex; gap: 8px; align-items: center; }
.standups { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.sucard { padding: 14px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; }
.sucard:hover { box-shadow: var(--shadow); border-color: var(--accent); }
.sucard.is-off { opacity: .75; }
.sucard .suh { display: flex; align-items: center; gap: 10px; }
.sucard .suh .avatar { width: 30px; height: 30px; font-size: 11px; }
.sucard .suh .t { font-weight: 600; }
.sucard .sub b { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); }
.sucard .sub p { margin: 2px 0 8px; white-space: pre-wrap; font-size: 13px; }
.sucard .suiss { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; border-top: 1px solid var(--border); padding-top: 8px; }
.sucard .suiss .resolved { opacity: .6; text-decoration: line-through; }
.sucard .suf { font-size: 12px; color: var(--text-3); margin-top: auto; }
.day-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.day-grid > * { min-width: 0; }
table.mini.day td { vertical-align: middle; }
table.mini.day .t { font-weight: 500; cursor: pointer; }
table.mini.day .t:hover { color: var(--accent-ink); }
table.mini.day .s { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; margin-top: 2px; }
table.mini.day tfoot td { border-bottom: 0; font-weight: 600; }
.wide-in { width: 100%; min-width: 160px; text-align: left !important; border-color: var(--border) !important; background: var(--surface) !important; }
.fld { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 12px; }
.fld > span { display: flex; justify-content: space-between; align-items: center; }
.fld textarea { border: 1px solid var(--border); background: var(--bg); border-radius: 8px; padding: 8px 10px; font: 14px/1.45 var(--font); color: var(--text); resize: vertical; font-weight: 400; }
.fld textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 2px var(--accent-soft); }
.row-end { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.banner { background: color-mix(in srgb, var(--warn) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 40%, var(--border)); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-weight: 500; }
.isslist { display: flex; flex-direction: column; }
.iss { padding: 8px 0; border-bottom: 1px solid var(--border); }
.iss .t { font-weight: 500; font-size: 13.5px; display: flex; gap: 8px; align-items: center; }
.iss .s { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12px; margin-top: 3px; }
.iss.resolved { opacity: .6; }
.lnk { cursor: pointer; } .lnk:hover { color: var(--accent-ink); text-decoration: underline; }
.issadd { display: grid; grid-template-columns: 120px 1fr; gap: 6px; margin-top: 10px; }
.issadd #niTitle { grid-column: 2; }
.issadd #niTask, .issadd #niWait { grid-column: span 1; }
.issadd input, .issadd select { border: 1px solid var(--border); background: var(--bg); border-radius: 8px; padding: 6px 9px; font-size: 13px; color: var(--text); min-width: 0; }
.issadd #niAdd { justify-self: start; }
.iss-charts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.iss-charts > * { min-width: 0; }
.tl-bar.pad { padding: 12px 14px 0; }
table.issues td.title { min-width: 240px; max-width: 380px; }
table.issues tr.resolved td { color: var(--text-3); }
table.issues tr.resolved td.title b { text-decoration: line-through; font-weight: 500; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
table.heat tr.grp th { text-align: left; font-size: 12px; color: var(--text-2); padding: 10px 4px 2px; font-weight: 700; }
table.mini tr.tot td { background: var(--surface-2); }
table.mini tr.past td { color: var(--text-3); }
#timeOffCard .inline-add input[type=date] { width: 150px; }
#timeOffCard .inline-add #toNote { flex: 1; min-width: 120px; }
@media (max-width: 1100px) { .day-grid, .iss-charts { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .who-me { display: none; } .issadd { grid-template-columns: 1fr; } .issadd #niTitle { grid-column: 1; } }
/* v3 layout fixes */
@media (min-width: 761px) {
  .topbar { flex-wrap: nowrap; }
  .tabs { flex: 0 1 auto; min-width: 0; }
  .tabs button { padding: 6px 11px; }
  .actions { flex: none; }
}
@media (max-width: 1280px) and (min-width: 761px) { .who-me { display: none; } .brand h1 { font-size: 15px; } }
body[data-view="daily"] .filters, body[data-view="issues"] .filters, body[data-view="timesheet"] .filters,
body[data-view="resources"] .filters, body[data-view="budget"] .filters { display: none; }
.dlg.xwide { width: min(1180px, calc(100vw - 32px)); }
table.mini.edit select { min-width: 104px; }
table.mini.edit td:first-child input { min-width: 130px; }
table.mini.edit input[type=email] { min-width: 170px; }
.brand { flex: none; } .brand h1 { white-space: nowrap; }
/* environment badge */
.env-badge { font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 3px 9px; border-radius: 6px; white-space: nowrap; cursor: help; }
.env-badge.dev { background: #eda100; color: #1a1400; }
.env-badge.danger { background: #d03b3b; color: #fff; animation: pulse 1.6s infinite; }
body.env-dev { box-shadow: inset 0 4px 0 #eda100; }
body.env-danger { box-shadow: inset 0 4px 0 #d03b3b; }
body.env-dev .topbar, body.env-danger .topbar { border-top: 4px solid transparent; }
body.env-dev .topbar { border-top-color: #eda100; }
body.env-danger .topbar { border-top-color: #d03b3b; }
