/* Supremium Planner - page specific parts on top of base.css (Supremium Glossy) */
.pill.todo { --c: var(--silver); } .pill.doing { --c: var(--blue); } .pill.review { --c: var(--yellow); } .pill.done { --c: var(--green); }
.pill.planned { --c: var(--silver); } .pill.active { --c: var(--blue); } .pill.on_hold { --c: var(--yellow); }
.pill.low { --c: var(--grey); } .pill.medium { --c: var(--gold); } .pill.high { --c: var(--orange); } .pill.urgent { --c: var(--red); }
.pill.small { height: 20px; padding: 0 8px; font-size: 11px; gap: 5px; }
.pill.small::before { width: 5px; height: 5px; }

.av { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-size: 11px; font-weight: 600; color: var(--gold-top);
  background: var(--raised); box-shadow: 0 0 0 1.5px rgba(212,178,106,0.7), 0 4px 10px rgba(0,0,0,0.45); }
.av.none { color: var(--text-3); box-shadow: 0 0 0 1px rgba(134,134,139,0.4); }
.tag { --c: var(--gold); display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 85%, #fff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tag::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--c); box-shadow: 0 0 6px var(--c); }

/* ---------- hero bodies */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.flow .seg { --c: var(--gold); position: relative; padding: 14px 16px 14px; border-radius: 14px; background: rgba(8,7,5,0.45); border: 1px solid color-mix(in srgb, var(--c) 26%, transparent); box-shadow: inset 0 1px 0 rgba(255,240,200,0.05); }
.flow .seg .k { font-size: 12px; color: var(--text-2); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.flow .seg .k i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.flow .seg .big { font-size: clamp(28px, 3vw, 42px); margin-top: 2px; }
.flow .seg .track { margin-top: 10px; height: 5px; border-radius: 5px; background: rgba(255,255,255,0.06); overflow: hidden; }
.flow .seg .track i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 40%, transparent), var(--c)); box-shadow: 0 0 6px var(--c); transform-origin: left; animation: growx 1s var(--ease) calc(var(--i, 0) * 90ms + 150ms) both; }
.flow .seg.todo { --c: var(--silver); } .flow .seg.doing { --c: var(--blue); } .flow .seg.review { --c: var(--yellow); } .flow .seg.done { --c: var(--green); }
.hero-facts { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 18px; font-size: 13px; color: var(--text-2); }
.hero-facts b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; margin-right: 6px; }
.hero-facts .bad b { color: var(--red); } .hero-facts .warn b { color: var(--yellow); }
.span-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 34px; align-items: center; }
.span-hero .big { font-size: clamp(40px, 4.6vw, 58px); }
.span-hero .cap { font-size: 13px; color: var(--text-3); }
.areas-strip { display: grid; gap: 9px; }
.areas-strip .ar { --c: var(--gold); display: grid; grid-template-columns: 140px minmax(0, 1fr) 70px; gap: 14px; align-items: center; font-size: 13px; color: var(--text-2); }
.areas-strip .ar .track { height: 8px; border-radius: 8px; background: rgba(255,255,255,0.05); overflow: hidden; }
.areas-strip .ar .track i { display: block; height: 100%; min-width: 3px; border-radius: 8px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 40%, transparent), var(--c)); box-shadow: 0 0 7px -2px var(--c); transform-origin: left; animation: growx 0.9s var(--ease) calc(var(--i, 0) * 70ms + 150ms) both; }
.areas-strip .ar span:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }

/* ---------- filters */
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.filters select { width: auto; max-width: 100%; height: 38px; font-size: 13px; }
.filters .search { min-width: 200px; max-width: 320px; }
.filters .search input { height: 38px; }
.filters .search .ic { top: 11px; }

/* ---------- kanban */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 16px; align-items: start; overflow-x: auto; padding-bottom: 6px; }
.kcol { --c: var(--gold); display: flex; flex-direction: column; min-height: 200px; padding: 12px; border-radius: 16px; background: var(--sunken); border: 1px solid rgba(222,196,132,0.10); box-shadow: var(--shadow-sunken); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.kcol.todo { --c: var(--silver); } .kcol.doing { --c: var(--blue); } .kcol.review { --c: var(--yellow); } .kcol.done { --c: var(--green); }
.kcol.over { border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: var(--shadow-sunken), 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent), 0 0 30px -10px var(--c); }
.khead { display: flex; align-items: center; gap: 9px; padding: 4px 4px 12px; }
.khead h3 { font-size: 14px; letter-spacing: -0.01em; }
.khead .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.khead .n { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.khead .btn { margin-left: auto; }
.kbody { display: grid; gap: 10px; min-height: 60px; align-content: start; flex: 1; }
.kempty { padding: 18px 8px; text-align: center; font-size: 12px; color: var(--text-3); border: 1px dashed rgba(222,196,132,0.14); border-radius: 12px; }
.tcard { --c: var(--gold); position: relative; padding: 13px 14px 12px; border-radius: 13px; cursor: grab; border: 1px solid var(--line);
  background: linear-gradient(180deg, #2c2819 0%, var(--raised) 40%, #1c1a12 100%); box-shadow: var(--shadow-tile);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), opacity .2s; }
.tcard:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 50%, transparent); box-shadow: var(--shadow-tile), 0 16px 36px -18px color-mix(in srgb, var(--c) 40%, transparent); }
.tcard.dragging { opacity: 0.35; }
.tcard .tt { font-weight: 600; font-size: 14px; letter-spacing: -0.01em; line-height: 1.35; margin: 6px 0 10px; overflow-wrap: anywhere; }
.tcard .proj { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.tcard .foot { display: flex; align-items: center; gap: 8px; }
.tcard .due { font-size: 12px; color: var(--text-2); display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.tcard .due .ic { width: 13px; height: 13px; }
.tcard .due.over { color: var(--red); } .tcard .due.soon { color: var(--yellow); }
.tcard .cm { font-size: 12px; color: var(--text-3); display: inline-flex; align-items: center; gap: 4px; }
.tcard .cm .ic { width: 13px; height: 13px; }
.tcard .foot .av { margin-left: auto; }
.tcard.is-done .tt { color: var(--text-2); }
.drop-mark { height: 3px; border-radius: 3px; background: var(--c); box-shadow: 0 0 10px var(--c); margin: -6px 0; }

/* ---------- timeline */
.gantt { --label: 290px; --row: 40px; position: relative; overflow: hidden; }
.g-scroll { overflow-x: auto; overflow-y: visible; position: relative; }
.g-inner { position: relative; min-width: 100%; }
.g-head { position: sticky; top: 0; z-index: 3; display: flex; height: 52px; border-bottom: 1px solid rgba(222,196,132,0.12); background: rgba(16,14,9,0.96); }
.g-head .corner { position: sticky; left: 0; z-index: 4; width: var(--label); flex: none; display: flex; align-items: center; padding: 0 16px; font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; background: #100e09; border-right: 1px solid rgba(222,196,132,0.12); }
.g-scale { position: relative; flex: none; }
.g-scale .m { position: absolute; top: 0; height: 26px; padding: 6px 8px 0; font-size: 11px; font-weight: 600; color: var(--gold-hi); letter-spacing: 0.04em; text-transform: uppercase; border-left: 1px solid rgba(222,196,132,0.16); white-space: nowrap; overflow: hidden; }
.g-scale .w { position: absolute; top: 26px; height: 26px; padding: 5px 6px 0; font-size: 11px; color: var(--text-3); border-left: 1px solid rgba(222,196,132,0.07); white-space: nowrap; font-variant-numeric: tabular-nums; }
.g-row { display: flex; height: var(--row); border-bottom: 1px solid rgba(222,196,132,0.06); }
.g-row:hover { background: rgba(236,212,154,0.035); }
.g-label { position: sticky; left: 0; z-index: 2; width: var(--label); flex: none; display: flex; align-items: center; gap: 9px; padding: 0 12px 0 16px; background: #100e09; border-right: 1px solid rgba(222,196,132,0.12); min-width: 0; cursor: pointer; }
.g-label .nm { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.g-label .tog { width: 22px; height: 22px; flex: none; border: 0; padding: 0; border-radius: 6px; background: transparent; color: var(--gold); cursor: pointer; display: grid; place-items: center; transition: transform .25s var(--ease); }
.g-label .tog.open { transform: rotate(90deg); }
.g-label .tog .ic { width: 14px; height: 14px; }
.g-label .av { width: 22px; height: 22px; font-size: 10px; margin-left: auto; }
.g-row.area { height: 36px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 9%, transparent), transparent 60%); }
.g-row.area .g-label { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 12%, #100e09), #100e09); cursor: default; }
.g-row.project .nm { font-weight: 600; }
.g-row.task .g-label { padding-left: 46px; }
.g-row.task .nm { color: var(--text-2); }
.g-row.task.is-done .nm { color: var(--text-3); text-decoration: line-through; text-decoration-color: rgba(134,134,139,0.5); }
.g-track { position: relative; flex: none; }
.g-grid { position: absolute; top: 52px; bottom: 0; pointer-events: none; z-index: 0; }
.g-grid i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(222,196,132,0.05); }
.g-grid i.m { background: rgba(222,196,132,0.12); }
.g-grid b { position: absolute; top: 0; bottom: 0; background: rgba(255,255,255,0.018); }
.g-today { position: absolute; top: 52px; bottom: 0; width: 2px; margin-left: -1px; z-index: 1; pointer-events: none; background: linear-gradient(180deg, var(--gold-hi), rgba(236,212,154,0.15)); box-shadow: 0 0 10px rgba(236,212,154,0.6); }
.g-today::before { content: "Today"; position: absolute; top: 3px; left: 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #1a1508; padding: 1px 6px; border-radius: 6px; background: linear-gradient(180deg, var(--gold-top), var(--gold)); }
.bar { --c: var(--gold); position: absolute; top: 9px; height: 22px; border-radius: 7px; cursor: grab; touch-action: none; overflow: hidden; z-index: 1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 42%, #15130d), color-mix(in srgb, var(--c) 22%, #0d0c09)); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 6px 16px -8px color-mix(in srgb, var(--c) 70%, transparent);
  transform-origin: left; animation: growx 0.8s var(--ease) calc(var(--i, 0) * 25ms) both; }
.bar:hover { border-color: var(--c); box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 0 18px -4px var(--c); }
.bar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 55%, transparent), var(--c)); opacity: 0.75; }
.bar .lb { position: relative; display: block; padding: 0 9px; line-height: 20px; font-size: 11px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0,0,0,0.6); pointer-events: none; }
.bar .grip { position: absolute; top: 0; bottom: 0; width: 8px; cursor: ew-resize; z-index: 2; }
.bar .grip.l { left: 0; } .bar .grip.r { right: 0; }
.bar.task { top: 12px; height: 16px; border-radius: 5px; opacity: 0.92; }
.bar.task .lb { line-height: 14px; font-size: 11px; font-weight: 500; }
.bar.task.is-done { filter: saturate(0.35); opacity: 0.6; }
.bar.milestone { width: 14px !important; height: 14px; top: 13px; margin-left: -7px; border-radius: 3px; transform: rotate(45deg); animation: pop 0.5s var(--ease) both; padding: 0; }
.bar.milestone .lb, .bar.milestone .grip { display: none; }
.bar.dragging { cursor: grabbing; z-index: 5; box-shadow: 0 0 0 1px var(--c), 0 0 26px -4px var(--c); animation: none; }
.bar.over-due { border-color: var(--red); }
.nodate { position: absolute; top: 11px; font-size: 11px; color: var(--text-3); padding: 1px 8px; border: 1px dashed rgba(134,134,139,0.4); border-radius: 6px; white-space: nowrap; cursor: pointer; }
.drag-tip { position: fixed; z-index: 95; pointer-events: none; padding: 5px 10px; border-radius: 9px; font-size: 12px; font-weight: 600; color: var(--gold-top); background: rgba(25,23,16,0.95); border: 1px solid var(--line-strong); font-variant-numeric: tabular-nums; }

/* ---------- drawer content */
.drawer-head .tag { margin-bottom: 8px; }
.title-input { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; height: 48px; }
.comments { display: grid; gap: 12px; }
.cmt { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; }
.cmt .who { font-size: 12px; color: var(--text-2); display: flex; gap: 8px; align-items: baseline; }
.cmt .who b { color: var(--text); font-weight: 600; }
.cmt .who .x { margin-left: auto; border: 0; background: none; color: var(--text-3); cursor: pointer; font-size: 12px; padding: 0; }
.cmt .who .x:hover { color: var(--red); }
.cmt .txt { margin-top: 3px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; padding: 10px 12px; border-radius: 4px 12px 12px 12px; background: var(--raised); border: 1px solid var(--line); }
.cmt-form { display: grid; gap: 8px; margin-top: 14px; }
.cmt-form textarea { min-height: 64px; }
.task-mini { display: grid; gap: 6px; }
.task-mini .item { grid-template-columns: minmax(0, 1fr) auto auto; padding: 9px 12px; gap: 10px; }
.progress-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 12px; color: var(--text-3); margin-top: 12px; }
.progress-line .track { height: 6px; border-radius: 6px; background: rgba(255,255,255,0.06); overflow: hidden; }
.progress-line .track i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, rgba(76,207,138,0.4), var(--green)); box-shadow: 0 0 6px var(--green); }

/* ---------- settings */
.facts { display: flex; gap: 44px; flex-wrap: wrap; }
.fact .v { font-size: clamp(30px, 3vw, 42px); line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff 25%, var(--gold) 135%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact .k { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.item.usr { grid-template-columns: 38px minmax(0, 1fr) 150px auto; }
.item.area-row { grid-template-columns: 38px minmax(0, 1fr) 150px 90px auto; }
.swatch { width: 38px; height: 38px; border-radius: 11px; background: color-mix(in srgb, var(--c) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 0 14px -6px var(--c); display: grid; place-items: center; }
.swatch::after { content: ""; width: 10px; height: 10px; border-radius: 2px; transform: rotate(45deg); background: var(--c); box-shadow: 0 0 8px var(--c); }

/* area colours: after the components, so they win over each component's default */
.c-gold { --c: var(--gold); } .c-blue { --c: var(--blue); } .c-green { --c: var(--green); } .c-purple { --c: var(--purple); }
.c-teal { --c: var(--teal); } .c-orange { --c: var(--orange); } .c-red { --c: var(--red); } .c-silver { --c: var(--silver); }

/* ---------- responsive */
@media (max-width: 1180px) { .cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1068px) {
  .topbar .nav { display: none; }
  .brand span:last-child { display: none; }
  .tabbar {
    position: fixed; z-index: 30; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(420px, calc(100vw - 24px)); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; padding: 6px; border-radius: 22px;
    background: rgba(16,14,9,0.72); -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3); border: 1px solid var(--line-strong); box-shadow: inset 0 1px 0 rgba(255,240,200,0.08), 0 24px 48px -16px #000, 0 0 40px -18px rgba(212,178,106,0.3);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 7px; border-radius: 16px; font-size: 11px; font-weight: 500; color: var(--text-2); }
  .tabbar a .ic { width: 18px; height: 18px; }
  .tabbar a.active { color: #1a1508; font-weight: 600; background: linear-gradient(180deg, var(--gold-top), var(--gold)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 0 20px -4px rgba(212,178,106,0.48); }
  main { padding-bottom: 130px; }
}
@media (max-width: 900px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .span-hero { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .hero { padding: 24px 20px 26px; }
  .card { padding: 18px; }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .kanban { grid-template-columns: repeat(4, minmax(78vw, 1fr)); scroll-snap-type: x mandatory; }
  .kcol { scroll-snap-align: start; }
  .gantt { --label: 170px; }
  .g-row.task .g-label { padding-left: 30px; }
  .badge { display: none; }
  .drawer { top: 0; right: 0; bottom: 0; width: 100vw; border-radius: 0; }
  .item.usr, .item.area-row { grid-template-columns: 38px minmax(0, 1fr); }
  .item.usr > :nth-child(n+3), .item.area-row > :nth-child(n+3) { grid-column: 1 / -1; }
  .areas-strip .ar { grid-template-columns: 100px minmax(0, 1fr) 50px; }
  .filters { flex: 1 1 100%; }
  .filters .search { max-width: none; min-width: 0; flex: 1 1 100%; }
  .filters select { flex: 1 1 40%; }
}
