:root {
  --font-sans: "Outfit", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --text-headline-medium: 28px;
  --text-title-large: 22px;
  --text-title-medium: 16px;
  --text-title-small: 14px;
  --text-body-medium: 13px;
  --text-body-small: 11px;
  --text-label-large: 13px;
  --text-label-medium: 11px;
  --text-label-small: 10px;
  --primary: #0b5fff;
  --brand: oklch(0.642 0.1691 38.58);
  --navy: #002060;
  --ink: oklch(0.3211 0 0);
  --muted: oklch(0.551 0.0234 264.36);
  --line: oklch(0.8452 0 0);
  --bg: oklch(0.9383 0.0042 236.5);
  --sidebar: oklch(0.903 0.0046 258.33);
  --card: #fff;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.04);
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: var(--text-body-medium);
  line-height: 20px;
  letter-spacing: 0.01em;
  font-feature-settings: "tnum";
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }

.app { height: 100vh; display: flex; background: var(--bg); }
.content { min-width: 0; flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.scroll { flex: 1; overflow: auto; display: flex; flex-direction: column; min-height: 0; }
.sidebar {
  width: 256px;
  flex: none;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card);
  border-right: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.sidebar.is-collapsed { width: 80px; }
.brand { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--line); }
.sidebar.is-collapsed .brand { justify-content: center; padding: 0; }
.brand .word { height: 32px; max-width: 140px; object-fit: contain; }
.brand .mark { width: 32px; height: 32px; object-fit: contain; }
.sidebar.is-collapsed .word, .sidebar.is-collapsed .account-text, .sidebar.is-collapsed .side-label, .sidebar.is-collapsed .navitem span { display: none; }
.sidebar.is-collapsed .nav-toggle {
  position: absolute;
  right: -16px;
  top: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  z-index: 2;
}
.sidebar.is-collapsed .account { flex-direction: column; gap: 8px; padding: 8px 0; }
.nav-toggle {
  width: 32px; height: 32px; border: 0; background: transparent; color: var(--muted); border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.nav-toggle:hover { background: oklch(0.9119 0.0222 243.82); color: var(--ink); }
.nav-toggle svg, .navitem svg, .account .iconbtn svg { width: 16px; height: 16px; }
.sidebar nav { flex: 1; overflow: auto; padding: 16px 12px; }
.side-label {
  margin: 8px 12px 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.navitem {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}
.navitem:hover { background: oklch(0.9846 0.0017 247.84); color: var(--ink); }
.navitem.on { background: color-mix(in oklch, var(--brand) 12%, white); color: var(--brand); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); }
.navitem.on svg { color: var(--brand); }
.sidebar.is-collapsed .navitem { justify-content: center; width: 40px; height: 40px; margin: 4px auto; padding: 0; }
.account {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px;
  padding: 8px;
  border-radius: 12px;
}
.account-text { min-width: 0; flex: 1; }
.account-text b { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-text small { display: block; margin-top: 2px; font-size: 12px; }
.brand-avatar { background: var(--brand); color: #fff; }
.sidebar.is-collapsed .account { justify-content: center; }
.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  flex: none;
}
.nav-toggle.mobile { display: none; }
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: var(--text-body-medium); font-weight: 500; }
.crumbs b { color: var(--ink); font-weight: 500; }
.crumbs .sep { opacity: 0.4; }

.stage { position: relative; }
.hero-bg {
  position: absolute;
  inset: 0 0 auto;
  height: 240px;
  background: url("/weekly/hero-solar.svg") center 30% / cover no-repeat;
  opacity: 0.8;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 15%, transparent 100%);
}
.wrap {
  position: relative;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 20px 24px 48px;
}
.wrap.soft { background: linear-gradient(160deg, #eef5fb 0%, #f5f7fb 45%, #f8fafc 100%); min-height: calc(100vh - 64px); }
.wrap.narrow,
.wrap.form {
  max-width: none;
  width: 100%;
  padding-bottom: 120px;
}
.wrap.form.mine-wrap {
  max-width: none;
  width: 100%;
  padding: 16px 20px 120px;
}

.hero, .hero.plain { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; margin-bottom: 24px; }
.hero > div:first-child { min-width: min(100%, 280px); flex: 1 1 280px; }
.weekrow { margin-left: auto; flex: none; max-width: 100%; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.kicker svg { width: 16px; height: 16px; }
h1, h2, h3, .kpi-value, .stat b, .seg b, .member b { font-family: var(--font-sans); }
h1 { margin-top: 8px; font-size: var(--text-headline-medium); line-height: 36px; font-weight: 400; letter-spacing: 0; color: var(--ink); }
h2 { font-size: var(--text-title-medium); line-height: 24px; font-weight: 500; letter-spacing: 0.15px; }
h3 { font-size: var(--text-title-large); line-height: 28px; font-weight: 500; }
.lead { margin-top: 8px; color: var(--muted); max-width: 560px; font-size: var(--text-body-medium); line-height: 20px; letter-spacing: 0.25px; }
.eyebrow { font-size: var(--text-label-small); font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); }
.eyebrow.on-navy { color: rgba(255, 255, 255, 0.75); background: none; height: auto; padding: 0; letter-spacing: 0.08em; }
.hint, small { color: var(--muted); font-size: 12px; }

.weekrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.weekbox { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 6px; box-shadow: var(--shadow); }
.weekbox button, .iconbtn {
  width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
}
.weekbox button:hover, .iconbtn:hover { background: #f1f5f9; }
.weekbox svg, .iconbtn svg, .go svg, .backlink svg, .solid svg, .outline svg, .quiet svg { width: 18px; height: 18px; }
.weekmid { display: flex; align-items: center; gap: 8px; min-width: 200px; padding: 0 4px; }
.cal { width: 36px; height: 36px; border-radius: 12px; background: #eff6ff; color: var(--primary); display: inline-flex; align-items: center; justify-content: center; }
.cal svg { width: 18px; height: 18px; }
.weeklabel { font-weight: 600; margin-top: 4px; }
.today { height: 44px; border-radius: 16px; border: 2px solid rgba(11, 95, 255, 0.4); background: #fff; color: var(--primary); font-weight: 700; padding: 0 16px; }
.today:hover { background: #eff6ff; }
.nowpill { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 12px; background: #d1fae5; color: #059669; font-size: 13px; font-weight: 650; }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi, .stat, .sheet, .seg, .member-card, .panel, .side, .auth-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.kpi { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; overflow: hidden; }
.kpi-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kpi-icon { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.kpi-icon svg { width: 14px; height: 14px; }
.kpi-icon.green { background: #d1fae5; color: #10b981; }
.kpi-icon.orange { background: #fef3c7; color: #f59e0b; }
.kpi-icon.rose { background: #fee2e2; color: #ef4444; }
.kpi-icon.blue { background: #dbeafe; color: var(--primary); }
.kpi-copy { min-width: 0; }
.kpi-copy .eyebrow { line-height: 14px; }
.kpi-value { margin-top: 2px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi-copy .hint { margin-top: 2px; font-size: 11px; line-height: 14px; }
.kpi-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 10px; font-weight: 500; letter-spacing: 0.02em; line-height: 16px; flex: none; white-space: nowrap; }
.kpi-chip.up { background: #d1fae5; color: #059669; }
.kpi-chip.down { background: #fee2e2; color: #ef4444; }
.kpi-chip.neutral { background: #f1f5f9; color: var(--muted); }
.meter { height: 4px; border-radius: 99px; background: #f1f5f9; overflow: hidden; margin-top: auto; }
.meter i { display: block; height: 100%; max-width: 100%; border-radius: 99px; transition: width 0.25s ease; }
.meter i.green { background: #10b981; }
.meter i.blue { background: #3b82f6; }
.meter i.rose { background: #ef4444; }
.meter.submit-meter { height: 6px; margin: 2px 0 4px; }
.filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.pills, .filter-end, .rowgap { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pills > .pill, .pills.dark button {
  height: 40px; border-radius: 99px; border: 1px solid #bfdbfe; background: #eff6ff; color: var(--primary); padding: 0 16px; font-weight: 500; font-size: 13px;
}
.pills > .pill.on { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 6px 16px rgba(11, 95, 255, 0.28); }
.pills.dark button { border-radius: 12px; border: 0; background: #f1f5f9; color: #475569; }
.pills.dark button.on { background: #0b2b5c; color: #fff; }
.filter-end select, .side select, .side input, .block input, .block select, .block textarea, .planrow input, .taskedit input, .unlock input {
  height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 0 12px;
}
.block textarea { height: auto; padding: 10px 12px; width: 100%; }
.viewswitch { display: inline-flex; height: 44px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.viewswitch button { width: 36px; border: 0; background: transparent; color: var(--muted); border-radius: 8px; }
.viewswitch button.on { background: var(--primary); color: #fff; }
.viewswitch svg { width: 16px; height: 16px; }

.group { margin-bottom: 28px; }
.group h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 12px; }
.group h2 em { font-style: normal; color: var(--muted); font-weight: 500; }
.mini { width: 32px; height: 32px; border-radius: 12px; background: #eff6ff; color: var(--primary); display: inline-flex; align-items: center; justify-content: center; }
.mini svg { width: 16px; height: 16px; }
.seg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 1200px) {
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .seg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}
.seg-list { display: grid; gap: 12px; }
.seg { width: 100%; text-align: left; padding: 14px; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.seg:hover { border-color: #93c5fd; box-shadow: 0 8px 20px rgba(11, 95, 255, 0.08); }
.seg.list { min-height: 0; flex-direction: row; align-items: center; }
.seg.compact { min-height: 0; }
.seg.on { border-color: var(--primary); }
.seg-thumb, .seg img.seg-thumb {
  width: 40px; height: 40px; border-radius: 99px; object-fit: cover; background: #e2e8f0; flex: none;
}
.seg b, .member b, .person b { display: block; font-size: 15px; font-weight: 700; }
.seg small, .member small, .person small { display: block; margin-top: 2px; }
.seg-head, .seg-foot, .member-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.seg-foot { margin-top: 2px; align-items: center; }
.grow { min-width: 0; flex: 1; }
.grow b, .grow small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dots { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.dot-item { display: inline-flex; align-items: center; gap: 5px; }
.dot-item em { font-style: normal; font-weight: 700; color: var(--ink); }
.dots i, .counts i, .dist-legend i, .dot, .task-legend i {
  width: 8px; height: 8px; border-radius: 99px; display: inline-block; flex: none;
}
.g, .dot.finish { background: #10b981; }
.b, .dot.on_progress { background: #3b82f6; }
.o, .dot.pending { background: #f59e0b; }
.n, .dot.cancel { background: #94a3b8; }
.go { width: 32px; height: 32px; border-radius: 99px; border: 1px solid #bfdbfe; color: var(--primary); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.seg:hover .go { background: var(--primary); color: #fff; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 650; }
.badge.slate { background: #f1f5f9; color: var(--muted); }
.badge.rose { background: #ffebee; color: #ef4444; }
.badge.amber { background: #fef3c7; color: #d97706; }
.badge.blue { background: #eff6ff; color: var(--primary); }
.bar {
  display: flex; flex-direction: row; align-items: stretch;
  height: 6px; min-height: 6px; max-height: 6px;
  border-radius: 99px; overflow: hidden;
  background: #e2e8f0; width: 100%; flex: 0 0 6px;
}
.bar-note {
  margin: 0; font-size: 10px; font-weight: 600; color: #94a3b8; line-height: 1.2; flex: none;
}
.bar-seg {
  display: block; height: 6px; min-height: 6px; max-height: 6px; min-width: 0;
  padding: 0; margin: 0; border: 0; line-height: 0; font-size: 0; flex-shrink: 0;
}
.badge-row { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.task-legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; box-shadow: var(--shadow);
  font-size: 12px; font-weight: 650; color: var(--ink);
}
.task-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--muted); }

.stat5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
  align-items: start;
}
.stat {
  padding: 10px 12px;
  border-radius: 12px;
  min-height: 0;
  height: auto;
  align-self: start;
}
.stat p {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 14px;
  margin: 0;
}
.stat b {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  font-weight: 800;
  line-height: 24px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  line-height: 14px;
}
.stat.dist {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat.dist b { margin-top: 2px; }
.stat.dist .bar { height: 6px; margin: 0; }
.dist-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 14px;
}
.dist-legend i {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  display: inline-block;
  margin-right: 4px;
  vertical-align: middle;
}
.toolbar { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow); margin-bottom: 20px; }
.toolbar select { margin-left: auto; }
.member-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.member-card { width: 100%; text-align: left; padding: 0; border: 0; background: transparent; }
.member { display: block; background: #fff; border: 1px solid #fff; border-radius: 16px; padding: 20px; box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05); }
.member-card:hover .member { transform: translateY(-2px); }
.member-card.dim { opacity: 0.75; }
.counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.counts span { display: flex; flex-direction: column; }
.counts b { font-size: 13px; }
.counts small { padding-left: 14px; }
.ring { position: relative; flex: none; }
.ring span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.avatar { width: 32px; height: 32px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.avatar.lg { width: 48px; height: 48px; font-size: 13px; }
.avatar.sky { background: #e0f2fe; color: #0369a1; }
.avatar.emerald { background: #d1fae5; color: #047857; }
.avatar.violet { background: #ede9fe; color: #6d28d9; }
.avatar.amber { background: #fef3c7; color: #b45309; }
.avatar.rose { background: #ffe4e6; color: #be123c; }
.avatar.teal { background: #ccfbf1; color: #0f766e; }
.avatar.indigo { background: #e0e7ff; color: #4338ca; }
.sky { background: #e0f2fe; color: #0369a1; }
.emerald { background: #d1fae5; color: #047857; }
.violet { background: #ede9fe; color: #6d28d9; }
.amber { background: #fef3c7; color: #92400e; }
.rose { background: #ffe4e6; color: #be123c; }
.teal { background: #ccfbf1; color: #0f766e; }
.indigo { background: #e0e7ff; color: #3730a3; }
.cheer { margin-top: 20px; border-radius: 16px; padding: 20px 24px; background: linear-gradient(105deg, #eef6ff, #fff 55%, #dce9fb); color: #0b2b5c; font-weight: 650; }

.backlink { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--muted); padding: 0; margin-bottom: 16px; }
.backlink:hover { color: #1f5fa6; }
.panel { padding: 24px; margin-bottom: 16px; }
.between { display: flex; justify-content: flex-end; }
.navy { background: var(--navy); color: #fff; border-radius: 28px; padding: 24px; display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 20px; }
.navy h1 { color: #fff; }
.ghost { background: rgba(255, 255, 255, 0.15); border-radius: 8px; padding: 4px 8px; font-size: 12px; font-weight: 650; }
.ghost.hot { background: #ef8924; }
.unlock { display: flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 12px; }
.unlock input { min-width: 220px; }
.light, .solid, .outline, .quiet {
  height: 40px; border-radius: 12px; padding: 0 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent;
}
.light { background: #fff; color: var(--navy); }
.solid { background: #1f5fa6; color: #fff; }
.solid:hover { background: #1a5090; }
.outline { background: #fff; border-color: var(--line); color: var(--ink); }
.outline.blue { color: #1f5fa6; border-color: rgba(31, 95, 166, 0.3); }
.quiet { background: #f1f5f9; color: var(--ink); }
.sectionhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sectionhead h2 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sheet {
  overflow: hidden;
  margin-bottom: 28px;
  border-radius: 20px;
  border: 1px solid #d7e0ea;
  border-left: 5px solid #0046ad;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.07);
  background: #fff;
}
.sheet.prio-low { border-left-color: #64748b; }
.sheet.prio-medium { border-left-color: #0046ad; }
.sheet.prio-high { border-left-color: #a16207; }
.sheet.prio-very_high { border-left-color: #dc2626; }
.sheet header, .edithead {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
  padding: 16px 20px 18px; border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
  flex-wrap: wrap;
}
.project-jump {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 10px 12px;
  background: rgba(244, 247, 250, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.jump-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.jump-chip.on { border-color: #93c5fd; background: #eff6ff; color: #0046ad; }
.jump-chip:hover { border-color: #93c5fd; color: #0046ad; }
.project-index-row {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.sheet-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 0;
  color: #0046ad;
  font: inherit;
}
.sheet-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}
.sheet.is-collapsed .sheet-toggle svg { transform: rotate(-90deg); }
.project-index {
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: #0046ad;
}
.project-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-right: auto;
}
.sheet-del { margin-left: auto; }
.project-summary {
  flex: 0 0 100%;
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.sheet h3 { margin-top: 0; font-size: 13px; font-weight: 800; letter-spacing: 0.02em; color: var(--navy); }
.section-label { display: flex; flex-direction: column; gap: 2px; }
.section-label .hint { margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split section { padding: 24px; }
.split section + section { border-left: 1px solid #eef2f6; }
.taskline { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #eef2f6; background: #f8fafc; border-radius: 16px; padding: 12px 14px; margin-top: 10px; }
.taskline span { flex: 1; }
.taskline em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); }
.taskline.plan { background: #f3f8ff; }
.remark { margin-top: 12px; font-size: 13px; }
.prio { border-radius: 6px; border: 1px solid; padding: 2px 8px; font-size: 11px; font-weight: 700; }
.prio.low { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.prio.medium { background: #f0f9ff; color: #0369a1; border-color: #bae6fd; }
.prio.high { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.prio.very_high { background: #fff1f2; color: #be123c; border-color: #fecdd3; }

.edithead { align-items: start; background: #f8fafc; }
.edithead input, .edithead select, .block input, .block select, .block textarea, .taskedit textarea, .planrow textarea {
  width: 100%; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 14px; color: var(--ink); line-height: 1.45;
}
.edithead label, .block { display: flex; flex-direction: column; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.edithead .grow { min-width: 0; flex: 1; }
.prio-field { width: 140px; flex: none; }
.edithead-action {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: none;
  align-items: center;
}
.edithead-spacer {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  visibility: hidden;
  user-select: none;
  pointer-events: none;
}
.edithead-action .iconbtn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  color: #64748b;
  border-radius: 10px;
}
.edithead-action .iconbtn:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}
.edithead input,
.edithead select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 8px 12px;
}
.field-label { display: flex; align-items: center; gap: 8px; }
.field-label em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px; color: var(--muted); }
.field-label em.need { color: #b45309; }
.project-notes { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.project-notes li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; color: var(--ink); font-size: 12px; line-height: 16px; }
.pad { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.pad h3 { color: var(--navy); font-size: 13px; }
.task-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: #eef2f7;
  border: 1px solid #e2e8f0;
}
.task-stack-scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(420px, 52vh);
  overflow-y: auto;
  padding-right: 2px;
  overscroll-behavior: contain;
}
.task-stack-scroll::-webkit-scrollbar { width: 8px; }
.task-stack-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 99px;
}
.plan-scroll {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(220px, 30vh);
  overflow-y: auto;
}
.taskedit, .dashed, .empty, .notice { border-radius: 14px; }
.taskedit {
  border: 1px solid #cbd5e1;
  border-left: 3px solid #94a3b8;
  background: #fff;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.taskedit.is-finish { border-left-color: #2d7055; }
.taskedit.is-on_progress { border-left-color: #05a7e1; }
.taskedit.is-pending { border-left-color: #ef8924; }
.taskedit.is-cancel { border-left-color: #8a8a8a; }
.task-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.task-index {
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: #475569; background: #f1f5f9; border: 1px solid #e2e8f0;
  border-radius: 6px; padding: 2px 7px;
}
.task-title { font-weight: 650; font-size: 14px; color: var(--ink); }
.taskedit p, .planrow p { font-weight: 500; white-space: pre-line; line-height: 1.45; text-transform: none; letter-spacing: 0; }
.taskedit textarea, .planrow textarea { border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 10px 12px; resize: vertical; }
.add-in-stack { width: 100%; justify-content: center; background: #fff; border-style: dashed; }
.statuses { display: flex; flex-wrap: wrap; gap: 6px; }
.status-btn { border: 1px solid transparent; background: #fff; color: var(--muted); border-radius: 8px; padding: 6px 12px; min-height: 32px; font-size: 12px; font-weight: 600; }
.status-btn.on[data-status="finish"] { background: #2d7055; color: #fff; }
.status-btn.on[data-status="on_progress"] { background: #05a7e1; color: #fff; }
.status-btn.on[data-status="pending"] { background: #ef8924; color: #fff; }
.status-btn.on[data-status="cancel"] { background: #8a8a8a; color: #fff; }
.carry { width: fit-content; border-radius: 8px; border: 1px solid; padding: 4px 8px; font-size: 11px; font-weight: 650; }
.carry.rose { color: #be123c; background: #fff1f2; border-color: #fecdd3; }
.carry.amber { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.textbtn { border: 0; background: transparent; color: var(--muted); padding: 0; font-size: 12px; font-weight: 650; text-align: left; }
.planbox {
  border: 1px solid rgba(0, 70, 173, 0.22);
  background: #f3f8ff;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.planrow { display: flex; gap: 8px; align-items: flex-start; }
.plan-index {
  flex: none;
  width: 22px; height: 22px; margin-top: 9px;
  border-radius: 99px; background: #dbeafe; color: #0046ad;
  font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.planrow textarea, .planrow p { flex: 1; }
.steps { display: flex; gap: 8px; margin: 12px 0; }
.steps span { background: #f1f5f9; border-radius: 12px; padding: 6px 10px; font-size: 12px; font-weight: 650; color: var(--muted); }
.tag { border-radius: 8px; padding: 4px 8px; font-size: 12px; font-weight: 700; border: 1px solid var(--line); }
.tag.ok { background: rgba(45, 112, 85, 0.1); color: #2d7055; border-color: rgba(45, 112, 85, 0.3); }
.tag.draft { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.tag.late { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.mini-stats div { background: #f8fafc; border-radius: 16px; padding: 10px 12px; }
.mini-stats p { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.mini-stats b { display: block; font-size: 18px; color: var(--navy); }
.dashed, .empty { border: 1px dashed var(--line); padding: 24px; text-align: center; color: var(--muted); background: #f8fafc; }
.dashed.slim { padding: 10px 12px; text-align: left; border-radius: 12px; }
.notice { padding: 12px 16px; margin-bottom: 12px; }
.notice.bad { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.notice.good { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.loading { padding: 80px 0; text-align: center; color: var(--muted); }
.autosave { color: var(--muted); font-size: 11px; font-weight: 500; white-space: nowrap; }
.draft-list { display: grid; gap: 12px; }
.dock {
  position: sticky;
  bottom: 0;
  z-index: 24;
  margin-top: auto;
  flex: none;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 28px rgba(15, 23, 42, 0.07);
  padding: 12px 24px calc(12px + env(safe-area-inset-bottom, 0px));
}
.dock > div {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
}
.dock-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.dock .outline,
.dock .quiet,
.dock .solid {
  height: 40px;
  min-height: 40px;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  flex: none;
}
.dock .outline {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.dock .outline:hover {
  border-color: #93c5fd;
  color: #0046ad;
  background: #f8fbff;
}
.dock .quiet {
  background: transparent;
  border: 1px solid transparent;
  color: #475569;
}
.dock .quiet:hover {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.dock .solid {
  background: #0046ad;
  border-color: #0046ad;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 70, 173, 0.28);
}
.dock .solid:hover { background: #00368a; border-color: #00368a; }
.dock .solid:disabled,
.dock .outline:disabled,
.dock .quiet:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

.admin-grid { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 16px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.legend { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.legend span { color: var(--muted); font-size: 12px; }
.people { display: flex; flex-direction: column; max-height: 70vh; overflow: auto; }
.searchbox { display: flex; flex-direction: column; gap: 6px; min-width: 220px; }
.searchbox.grow { flex: 1; min-width: 180px; }
.searchbox input { min-width: 0; width: 100%; }
.empty.slim { padding: 16px; }
.person { display: flex; justify-content: space-between; gap: 12px; width: 100%; text-align: left; border: 0; background: transparent; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.person.on b { color: var(--primary); }
.person em { font-style: normal; font-size: 12px; color: var(--muted); }
.side { padding: 20px; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 80px; }
.side h2 { font-size: 18px; }
.member-lines div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; }
.member-lines button { border: 0; background: transparent; color: #b91c1c; font-size: 12px; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.field > span { display: block; }
.field input, .field select {
  width: 100%; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 14px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 10px 12px; min-height: 42px;
}
.field small { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px; color: var(--muted); line-height: 1.4; }

.wrap.emp-wrap {
  max-width: none;
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.emp-wrap { max-width: none; width: 100%; display: flex; flex-direction: column; gap: 16px; }
.emp-head {
  display: flex; flex-direction: column; gap: 14px; align-items: stretch;
}
.emp-head h1 { font-family: var(--font-sans); font-size: 28px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; }
.emp-head .lead { margin-top: 6px; max-width: 520px; color: color-mix(in oklab, var(--muted) 70%, transparent); }
.emp-head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.emp-select {
  height: 40px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  padding: 0 12px; font-size: 12px; font-weight: 600; color: var(--ink); min-width: 140px;
}
.emp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.emp-stat {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px;
  box-shadow: var(--shadow); transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.emp-stat:hover { box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08); border-color: color-mix(in oklab, var(--primary) 25%, var(--line)); }
.emp-stat p {
  margin: 0 0 8px; font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: color-mix(in oklab, var(--muted) 55%, transparent);
}
.emp-stat > div { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.emp-stat b { font-family: var(--font-sans); font-size: 24px; font-weight: 800; color: var(--ink); line-height: 1; }
.mini-badge {
  display: inline-flex; align-items: center; border-radius: 6px; padding: 2px 6px;
  font-size: 9px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}
.mini-badge.blue { background: color-mix(in oklab, var(--primary) 12%, #fff); color: var(--primary); }
.mini-badge.green { background: #ecfdf5; color: #047857; }
.mini-badge.amber { background: #fffbeb; color: #b45309; }
.emp-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.emp-search {
  flex: 1 1 320px; min-width: 220px; max-width: 720px; height: 42px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; padding: 0 14px; font-size: 13px; font-weight: 500; box-shadow: var(--shadow);
}
.emp-search:focus { outline: none; border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(11, 95, 255, 0.12); }
.emp-bulk {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-left: auto;
  padding: 6px 10px; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa;
  font-size: 12px; font-weight: 650; color: #9a3412;
}
.emp-bulk .solid.danger { min-height: 36px; padding: 0 12px; font-size: 12px; }
.emp-bulk .textbtn { color: #9a3412; }
.emp-check { width: 44px; text-align: center; vertical-align: middle; }
.emp-check input {
  width: 16px; height: 16px; margin: 0; accent-color: var(--primary); cursor: pointer;
}
.emp-check input:disabled { opacity: 0.35; cursor: not-allowed; }
.emp-table tbody tr.is-selected { background: #eff6ff; }
.emp-table tbody tr.is-selected:hover { background: #dbeafe; }
.emp-table-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow);
}
.emp-table-card.has-menu { overflow: visible; }
.emp-table-scroll { overflow-x: auto; }
.emp-table-card.has-menu .emp-table-scroll { overflow: visible; }
.emp-table { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 960px; }
.emp-table th {
  text-align: left; padding: 12px 16px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: color-mix(in oklab, var(--muted) 70%, transparent);
  background: color-mix(in oklab, var(--bg) 70%, #fff); border-bottom: 1px solid var(--line);
}
.emp-table td {
  padding: 14px 16px; border-bottom: 1px solid #eef2f6; vertical-align: middle; font-size: 13px;
}
.emp-table th:nth-child(1),
.emp-table td:nth-child(1) { width: 44px; padding-left: 12px; padding-right: 8px; }
.emp-table th:nth-child(2),
.emp-table td:nth-child(2) { width: 22%; }
.emp-table th:nth-child(3),
.emp-table td:nth-child(3) { width: 18%; }
.emp-table th:nth-child(4),
.emp-table td:nth-child(4) { width: 72px; }
.emp-table th:nth-child(5),
.emp-table td:nth-child(5) { width: auto; }
.emp-table th:nth-child(6),
.emp-table td:nth-child(6) { width: 140px; }
.emp-table th:nth-child(7),
.emp-table td:nth-child(7) { width: 56px; padding-right: 12px; }
.emp-table tbody tr:hover { background: color-mix(in oklab, var(--bg) 45%, #fff); }
.emp-table tbody tr:last-child td { border-bottom: 0; }
.emp-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.emp-name > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.emp-name b { font-size: 13px; font-weight: 650; color: var(--ink); line-height: 1.25; }
.emp-name small { color: var(--muted); font-size: 11px; }
.emp-mail { display: block; font-size: 12px; font-weight: 650; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.emp-sub { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.emp-table td:nth-child(5) .stream-pills { flex-wrap: wrap; }
.emp-empty { text-align: center; padding: 48px 16px !important; color: var(--muted); font-weight: 600; }
.ghost-btn {
  border: 0; background: transparent; color: var(--muted); border-radius: 8px;
  padding: 6px 10px; font-size: 12px; font-weight: 650; flex: none;
}
.ghost-btn:hover { background: #f1f5f9; color: var(--ink); }
.ghost-btn.danger { color: #b91c1c; }
.ghost-btn.danger:hover { background: #fef2f2; }

.ms-layout {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 16px; align-items: start;
}
.ms-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px;
}
.ms-card {
  display: flex; flex-direction: column; gap: 6px; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px;
  box-shadow: var(--shadow); transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.ms-card:hover { border-color: #93c5fd; box-shadow: 0 8px 20px rgba(11, 95, 255, 0.08); }
.ms-card.on {
  border-color: #0046ad;
  box-shadow: 0 4px 16px rgba(0, 70, 173, 0.2), 0 0 0 3px rgba(0, 70, 173, 0.18);
  transform: translateY(-1px);
}
.ms-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.ms-card b { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.ms-card > small { color: var(--muted); font-size: 11px; font-weight: 600; }
.ms-card-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.ms-meta-count { font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: 0.02em; }
.ms-pane {
  position: sticky; top: 80px; background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 14px;
}
.ms-pane-head { display: flex; gap: 12px; align-items: flex-start; }
.ms-pane-head h2 { font-family: var(--font-sans); font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.25; }
.ms-pane-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
}
.ms-pane-stats div {
  background: #f8fafc; border: 1px solid #eef2f6; border-radius: 12px; padding: 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.ms-pane-stats b { font-size: 14px; font-weight: 800; color: var(--ink); }
.ms-pane-stats span { font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ms-pane-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-pane-actions .solid, .ms-pane-actions .outline { min-height: 40px; }
.ms-members {
  border: 1px solid #eef2f6; border-radius: 14px; background: #f8fafc; padding: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.ms-members-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.ms-members-head b { color: var(--navy); }
.ms-members-head span { color: var(--muted); font-weight: 700; }
.ms-members-list { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow: auto; }
.ms-member {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  background: #fff; border: 1px solid #eef2f6; border-radius: 12px; padding: 8px 10px;
}
.ms-member-copy { min-width: 0; }
.ms-member-copy b { display: block; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-member-copy small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }

.emp-actions { width: 52px; text-align: right; }
.emp-menu { position: relative; display: inline-flex; justify-content: flex-end; }
.emp-menu-btn {
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: color-mix(in oklab, var(--muted) 80%, transparent);
  display: inline-flex; align-items: center; justify-content: center;
}
.emp-menu-btn svg { width: 16px; height: 16px; }
.emp-menu-btn:hover, .emp-menu.open .emp-menu-btn { background: #f1f5f9; color: var(--ink); }
.emp-menu-pop {
  display: none; position: absolute; right: 0; top: calc(100% + 4px); z-index: 20;
  min-width: 176px; padding: 6px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}
.emp-menu.up .emp-menu-pop { top: auto; bottom: calc(100% + 4px); }
.emp-menu.open .emp-menu-pop { display: flex; flex-direction: column; gap: 2px; }
.emp-menu-pop button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  border: 0; background: transparent; border-radius: 8px; padding: 8px 10px;
  font-size: 12px; font-weight: 650; color: var(--ink); white-space: nowrap;
}
.emp-menu-pop button svg { width: 14px; height: 14px; color: var(--muted); flex: none; }
.emp-menu-pop button:hover { background: #f8fafc; }
.emp-menu-pop button.danger { color: #b91c1c; }
.emp-menu-pop button.danger svg { color: #b91c1c; }
.emp-menu-pop button.danger:hover { background: #fef2f2; }
.level-pill {
  display: inline-flex; align-items: center; background: #f1f5f9; color: var(--ink);
  border-radius: 6px; padding: 2px 8px; font-size: 11px; font-weight: 700;
}
.stream-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.stream-pill {
  display: inline-flex; align-items: center; border-radius: 6px; padding: 2px 8px;
  background: color-mix(in oklab, var(--primary) 10%, #fff); color: var(--primary);
  font-size: 10px; font-weight: 700;
}
.stream-pill.more { background: #f1f5f9; color: var(--muted); }
.muted-italic { color: color-mix(in oklab, var(--muted) 55%, transparent); font-size: 12px; font-style: italic; }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; padding: 4px 10px;
  font-size: 11px; font-weight: 700; margin-right: 4px;
}
.status-pill i { width: 6px; height: 6px; border-radius: 99px; }
.status-pill.on { background: #d1fae5; color: #047857; }
.status-pill.on i { background: #10b981; }
.status-pill.off { background: #fee2e2; color: #b91c1c; }
.status-pill.off i { background: #ef4444; }
.status-pill.warn { background: #fef3c7; color: #b45309; }
.emp-pager {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 4px 2px 0;
}
.emp-pager-meta {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.emp-pager-meta b { color: var(--ink); }
.emp-pager-meta label { display: inline-flex; align-items: center; gap: 6px; }
.emp-pager-meta select {
  height: 32px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  padding: 0 8px; font-size: 11px; font-weight: 700;
}
.emp-pager-nav { display: flex; align-items: center; gap: 8px; }
.emp-pager-nav span {
  min-width: 50px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 0 14px;
  font-size: 12px; font-weight: 800; box-shadow: var(--shadow);
}
.outline.icon-only { width: 40px; height: 40px; padding: 0; border-radius: 12px; box-shadow: var(--shadow); }
.outline.danger { color: #b91c1c; border-color: #fecaca; background: #fff; }
.outline.danger:hover { background: #fef2f2; border-color: #fca5a5; }
.solid.danger { background: #dc2626; }
.solid.danger:hover { background: #b91c1c; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(4px);
}
.modal-card {
  width: min(480px, 100%); max-height: min(90vh, 720px); overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 28px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22); display: flex; flex-direction: column;
}
.modal-card.slim { width: min(400px, 100%); }
.modal-head {
  display: flex; gap: 12px; align-items: flex-start; justify-content: space-between;
  padding: 24px 28px 16px; background: color-mix(in oklab, var(--bg) 55%, #fff); border-bottom: 1px solid #eef2f6;
}
.modal-head h2 { font-family: var(--font-sans); font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.modal-head p { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.modal-body { padding: 24px 28px; display: flex; flex-direction: column; gap: 14px; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 8px; padding: 16px 28px 24px; border-top: 1px solid #eef2f6;
}
.stream-box {
  border: 1px solid #eef2f6; border-radius: 14px; background: #f8fafc; padding: 12px; display: flex; flex-direction: column; gap: 8px;
}
.field-label-plain {
  margin: 0; font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.seg-chip-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-chip {
  border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px;
  padding: 6px 12px; font-size: 12px; font-weight: 650;
}
.seg-chip.on { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.seg-group { margin-bottom: 12px; }
.seg-group .side-label { margin: 0 0 8px; }
.member-lines small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.textbtn.center { width: 100%; text-align: center; justify-content: center; }

.auth-screen {
  position: relative; min-height: 100vh; overflow: hidden;
  background: #061428;
  color: #e8eef8;
}
.auth-bg { position: absolute; inset: 0; pointer-events: none; }
.auth-grid {
  position: absolute; inset: 0; opacity: 0.35;
  background-image:
    linear-gradient(rgba(91, 156, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 156, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
}
.auth-orb {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55;
  animation: auth-float 12s ease-in-out infinite alternate;
}
.auth-orb-a {
  width: 420px; height: 420px; top: -80px; left: -60px;
  background: radial-gradient(circle, rgba(11, 95, 255, 0.55), transparent 70%);
}
.auth-orb-b {
  width: 360px; height: 360px; right: -40px; bottom: -80px;
  background: radial-gradient(circle, rgba(0, 196, 180, 0.28), transparent 70%);
  animation-delay: -4s;
}
@keyframes auth-float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(24px, 18px, 0) scale(1.08); }
}
.auth-frame {
  position: relative; z-index: 1; min-height: 100vh;
  display: grid; grid-template-rows: auto 1fr auto;
  align-items: center; justify-items: center;
  padding: 28px 20px; gap: 24px;
}
.auth-top {
  width: min(440px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.auth-logo { height: 28px; width: auto; filter: brightness(0) invert(1); opacity: 0.95; }
.auth-live {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: rgba(232, 238, 248, 0.72);
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid rgba(125, 180, 255, 0.22); background: rgba(8, 28, 58, 0.55);
  backdrop-filter: blur(10px);
}
.auth-live i {
  width: 7px; height: 7px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18); animation: auth-pulse 1.8s ease-in-out infinite;
}
@keyframes auth-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.auth-card {
  width: min(440px, 100%);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 14px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(14, 36, 72, 0.88), rgba(8, 24, 52, 0.92));
  border: 1px solid rgba(125, 180, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 24px 60px rgba(0, 10, 30, 0.45),
    0 0 80px rgba(11, 95, 255, 0.12);
  backdrop-filter: blur(18px);
}
.auth-card-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.auth-eyebrow {
  margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: #7db4ff;
}
.auth-card h1 {
  margin: 0; font-family: var(--font-sans); font-size: clamp(26px, 4vw, 32px);
  font-weight: 700; line-height: 1.15; color: #f4f8ff;
}
.auth-card .lead { color: rgba(232, 238, 248, 0.68); font-size: 13px; line-height: 1.5; }
.auth-card .field { color: rgba(232, 238, 248, 0.55); }
.auth-card .field input {
  background: rgba(4, 14, 32, 0.65); border-color: rgba(125, 180, 255, 0.22); color: #f4f8ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.auth-card .field input::placeholder { color: rgba(232, 238, 248, 0.35); }
.auth-card .field input:focus {
  outline: none; border-color: rgba(91, 156, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(11, 95, 255, 0.22);
}
.auth-card .notice.bad {
  background: rgba(185, 28, 28, 0.18); color: #fecaca; border-color: rgba(248, 113, 113, 0.35);
}
.auth-card .notice.good {
  background: rgba(4, 120, 87, 0.18); color: #a7f3d0; border-color: rgba(52, 211, 153, 0.35);
}
.auth-submit {
  margin-top: 4px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, #1a6dff, #0b5fff 55%, #0046ad);
  box-shadow: 0 10px 28px rgba(11, 95, 255, 0.35);
  gap: 8px;
}
.auth-submit:hover { filter: brightness(1.06); }
.auth-submit svg { width: 18px; height: 18px; }
.auth-userpill {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px;
  background: rgba(4, 14, 32, 0.55); border: 1px solid rgba(125, 180, 255, 0.18);
}
.auth-userpill b { display: block; font-size: 14px; color: #f4f8ff; }
.auth-userpill small { display: block; color: rgba(232, 238, 248, 0.55); font-size: 12px; }
.auth-card .textbtn { color: rgba(232, 238, 248, 0.55); }
.auth-card .textbtn:hover { color: #7db4ff; }
.auth-foot {
  width: min(440px, 100%); text-align: center;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(232, 238, 248, 0.4);
}
.solid.wide { width: 100%; justify-content: center; height: 44px; }

.mine-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(480px, 1.25fr);
  gap: 20px;
  align-items: start;
  min-height: 480px;
}
.mine-wrap .panel.mine-top { max-width: none; }
.dock.mine-dock > div {
  max-width: none;
  width: 100%;
  padding: 0 8px;
}
.mine-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 200px);
}
.mine-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f6;
  flex: none;
}
.mine-list-head h2 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.35px;
  color: #1e293b;
}
.mine-list-head .hint { display: block; margin-top: 2px; }
.mine-search {
  width: min(220px, 42%);
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
}
.mine-search:focus {
  outline: none;
  border-color: #93c5fd;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 70, 173, 0.12);
}
.mine-list-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  overflow: auto;
  flex: 1;
  min-height: 0;
}
.mine-card {
  width: 100%;
  text-align: left;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #64748b;
  border-radius: 10px;
  background: #fff;
  padding: 8px 10px;
  box-shadow: none;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) minmax(64px, 88px) 36px 20px;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.mine-card.prio-medium { border-left-color: #0046ad; }
.mine-card.prio-high { border-left-color: #a16207; }
.mine-card.prio-very_high { border-left-color: #dc2626; }
.mine-card.prio-low { border-left-color: #64748b; }
.mine-card:hover { border-color: #cbd5e1; background: #f8fafc; }
.mine-card.on {
  border-color: #0046ad;
  background: #f8fbff;
  box-shadow: 0 2px 10px rgba(0, 70, 173, 0.12);
  outline: 1px solid rgba(0, 70, 173, 0.25);
}
.mine-card-idx {
  flex: none;
  width: 22px; height: 22px; border-radius: 6px;
  background: #eff6ff; color: #0046ad;
  font-size: 10px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.mine-card-copy { min-width: 0; }
.mine-card-copy strong {
  display: block;
  font-size: 12px; font-weight: 700; line-height: 16px; color: #1e293b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mine-card.on .mine-card-copy strong { color: #0046ad; }
.mine-card-copy span {
  display: block; margin-top: 1px;
  font-size: 10px; font-weight: 500; line-height: 14px; color: #64748b;
}
.mine-card-progress { min-width: 0; }
.mine-card-progress .bar { height: 6px; border-radius: 99px; }
.mine-card-progress .bar-note { font-size: 9px; margin: 0; }
.mine-card-pct {
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #475569;
  text-align: right;
}
.mine-card.on .mine-card-pct { color: #0046ad; }
.mine-card-go {
  flex: none; width: 18px; height: 18px; color: #94a3b8;
  display: inline-flex; align-items: center; justify-content: center;
}
.mine-card.on .mine-card-go { color: #0046ad; }
.mine-card-go svg { width: 14px; height: 14px; }
.mchip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; line-height: 15px;
  padding: 2px 6px; border-radius: 4px; border: 1px solid;
}
.mchip i { width: 6px; height: 6px; border-radius: 99px; display: inline-block; }
.mchip.ok { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.mchip.ok i { background: #10b981; }
.mchip.prog { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.mchip.prog i { background: #3b82f6; }
.mchip.pend { background: #fffbeb; color: #a16207; border-color: #fef08a; }
.mchip.pend i { background: #eab308; }

.mine-drawer {
  position: sticky;
  top: 12px;
  width: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  min-height: 480px;
  max-height: calc(100vh - 112px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mine-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #eef2f6;
  background: #f8fafc;
}
.mine-drawer-head h2 {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 24px;
  color: #1e293b;
}
.mine-drawer-close { display: none; }
.mine-drawer-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: auto;
}
.mine-drawer-empty { padding: 28px 20px; }
.mine-drawer-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 12px;
}
.mine-section { display: flex; flex-direction: column; gap: 10px; }
.mine-task-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(360px, 42vh);
  overflow: auto;
  padding: 2px;
}
.mine-task {
  border: 1px solid #e2e8f0;
  border-left: 3px solid #94a3b8;
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mine-task.is-finish { border-left-color: #2d7055; }
.mine-task.is-on_progress { border-left-color: #05a7e1; }
.mine-task.is-pending { border-left-color: #ef8924; }
.mine-task.is-cancel { border-left-color: #8a8a8a; }
.mine-task-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.mine-task-row .task-index { flex: none; }
.mine-task-row .task-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}
.mine-task-input {
  flex: 1;
  min-width: 0;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  background: transparent;
}
.mine-task-input:hover { border-color: #e2e8f0; background: #f8fafc; }
.mine-task-input:focus {
  outline: none;
  border-color: #93c5fd;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(11, 95, 255, 0.12);
}
.mine-task-del {
  flex: none;
  width: 28px;
  height: 28px;
  color: #94a3b8;
}
.mine-task-del:hover { color: #b91c1c; background: #fef2f2; }
.mine-task-note { min-width: 0; }
.mine-task-note .carry { display: inline-flex; }
.statuses.compact .status-btn {
  padding: 4px 8px;
  min-height: 28px;
  font-size: 11px;
}
.outline.danger-outline {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fff;
  justify-content: center;
}
.outline.danger-outline:hover { background: #fef2f2; }

@media (max-width: 1100px) {
  .stat5, .member-grid { grid-template-columns: repeat(2, 1fr); }
  .stat.dist { grid-column: span 2; }
  .admin-grid, .split, .ms-layout { grid-template-columns: 1fr; }
  .split section + section { border-left: 0; border-top: 1px solid #eef2f6; }
  .emp-stats { grid-template-columns: 1fr; }
  .modal-grid { grid-template-columns: 1fr; }
  .ms-pane { position: static; }
  .mine-workspace { grid-template-columns: 1fr; }
  .mine-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    top: 0;
    width: min(560px, 100%);
    max-height: none;
    height: 100%;
    border-radius: 0;
    z-index: 40;
    transform: translateX(105%);
    transition: transform 0.2s ease;
  }
  .mine-workspace.drawer-open .mine-drawer,
  .mine-drawer.open { transform: none; }
  .mine-drawer-close { display: inline-flex; }
  .mine-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(15, 23, 42, 0.35);
    z-index: 35;
  }
  .mine-workspace.drawer-open .mine-backdrop { display: block; }
}
.mine-backdrop { display: none; }
@media (max-width: 860px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; transform: translateX(-105%); transition: transform 0.2s ease; width: 256px; }
  .app.nav-open .sidebar { transform: none; }
  .sidebar.is-collapsed { width: 256px; }
  .sidebar.is-collapsed .word, .sidebar.is-collapsed .account-text, .sidebar.is-collapsed .side-label, .sidebar.is-collapsed .navitem span, .sidebar.is-collapsed .account .iconbtn { display: initial; }
  .sidebar.is-collapsed .navitem { width: auto; height: auto; margin: 4px 0; padding: 8px 12px; justify-content: flex-start; }
  .sidebar.is-collapsed .nav-toggle { position: static; border: 0; box-shadow: none; border-radius: 8px; background: transparent; }
  .sidebar.is-collapsed .account { flex-direction: row; }
  .nav-toggle.mobile { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .hero, .hero.plain, .navy, .toolbar { flex-direction: column; align-items: stretch; }
  .kpis, .seg-grid, .stat5, .member-grid, .mini-stats { grid-template-columns: 1fr 1fr; }
  .wrap { padding: 16px; }
  .dock { padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .dock > div { flex-wrap: wrap; min-height: 0; }
  .dock-actions { width: 100%; justify-content: flex-end; }
  .emp-head-actions { width: 100%; }
  .emp-select, .emp-search { width: 100%; min-width: 0; }
  .emp-pager { align-items: stretch; }
  .emp-pager-nav { width: 100%; justify-content: space-between; }
  .seg.list .dots, .seg.list .badge { display: none; }
}
