﻿:root {
  --bg: #0c0e14;
  --panel: #13161f;
  --card: #191d29;
  --card-soft: #212636;
  --line: #2d3448;
  --line-strong: #404a65;
  --text: #edf2ff;
  --text-dim: #a4aec7;
  --text-soft: #717b97;
  --accent: #e8722a;
  --accent-strong: #ff9b57;
  --accent-rgb: 232, 114, 42;
  --cyan: #00bcd4;
  --cyan-rgb: 0, 188, 212;
  --cyan-soft: rgba(0, 188, 212, 0.14);
  --green: #2ecc71;
  --yellow: #f39c12;
  --red: #e65f50;
  --input-bg: #10131b;
  --nav-bg: rgba(19, 22, 31, 0.88);
  --login-bg: rgba(19, 22, 31, 0.94);
  --body-gradient:
    radial-gradient(circle at top right, rgba(232, 114, 42, 0.1), transparent 25%),
    radial-gradient(circle at bottom left, rgba(0, 188, 212, 0.08), transparent 20%),
    linear-gradient(180deg, #0b0d13 0%, #10141c 100%);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --font-display: "Rajdhani", sans-serif;
  --font-body: "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

[data-theme="industrial"] {
  --bg: #0c0e14;
  --panel: #13161f;
  --card: #191d29;
  --card-soft: #212636;
  --line: #2d3448;
  --line-strong: #404a65;
  --text: #edf2ff;
  --text-dim: #a4aec7;
  --text-soft: #717b97;
  --accent: #e8722a;
  --accent-strong: #ff9b57;
  --accent-rgb: 232, 114, 42;
  --cyan: #00bcd4;
  --cyan-rgb: 0, 188, 212;
  --cyan-soft: rgba(0, 188, 212, 0.14);
  --input-bg: #10131b;
  --nav-bg: rgba(19, 22, 31, 0.88);
  --login-bg: rgba(19, 22, 31, 0.94);
  --body-gradient:
    radial-gradient(circle at top right, rgba(232, 114, 42, 0.1), transparent 25%),
    radial-gradient(circle at bottom left, rgba(0, 188, 212, 0.08), transparent 20%),
    linear-gradient(180deg, #0b0d13 0%, #10141c 100%);
}

[data-theme="deep-blue"] {
  --bg: #071120;
  --panel: #0d1a2d;
  --card: #12243a;
  --card-soft: #19304b;
  --line: #294866;
  --line-strong: #3c668b;
  --text: #edf7ff;
  --text-dim: #a9bed6;
  --text-soft: #6f89a6;
  --accent: #2f80ed;
  --accent-strong: #7db7ff;
  --accent-rgb: 47, 128, 237;
  --cyan: #35d2ff;
  --cyan-rgb: 53, 210, 255;
  --cyan-soft: rgba(53, 210, 255, 0.14);
  --input-bg: #091628;
  --nav-bg: rgba(10, 24, 42, 0.9);
  --login-bg: rgba(13, 26, 45, 0.95);
  --body-gradient:
    radial-gradient(circle at top right, rgba(47, 128, 237, 0.18), transparent 28%),
    radial-gradient(circle at bottom left, rgba(53, 210, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #06101e 0%, #0d2035 100%);
}

[data-theme="light-office"] {
  --bg: #eef4f7;
  --panel: #f8fbfd;
  --card: #ffffff;
  --card-soft: #edf4f8;
  --line: #d5e1e8;
  --line-strong: #b8c9d5;
  --text: #122130;
  --text-dim: #53687a;
  --text-soft: #8193a3;
  --accent: #0f9f9a;
  --accent-strong: #087f7b;
  --accent-rgb: 15, 159, 154;
  --cyan: #0daec0;
  --cyan-rgb: 13, 174, 192;
  --cyan-soft: rgba(13, 174, 192, 0.14);
  --input-bg: #ffffff;
  --nav-bg: rgba(248, 251, 253, 0.9);
  --login-bg: rgba(255, 255, 255, 0.96);
  --shadow: 0 22px 58px rgba(42, 73, 95, 0.16);
  --body-gradient:
    radial-gradient(circle at top right, rgba(15, 159, 154, 0.16), transparent 28%),
    radial-gradient(circle at bottom left, rgba(82, 144, 176, 0.14), transparent 22%),
    linear-gradient(180deg, #edf4f7 0%, #f9fbfc 100%);
}

[data-theme="high-contrast"] {
  --bg: #050505;
  --panel: #090909;
  --card: #111111;
  --card-soft: #191919;
  --line: #454545;
  --line-strong: #7a7a7a;
  --text: #ffffff;
  --text-dim: #d6d6d6;
  --text-soft: #a0a0a0;
  --accent: #ffd23f;
  --accent-strong: #ffe57a;
  --accent-rgb: 255, 210, 63;
  --cyan: #18ffff;
  --cyan-rgb: 24, 255, 255;
  --cyan-soft: rgba(24, 255, 255, 0.16);
  --input-bg: #050505;
  --nav-bg: rgba(6, 6, 6, 0.94);
  --login-bg: rgba(10, 10, 10, 0.96);
  --body-gradient:
    radial-gradient(circle at top right, rgba(255, 210, 63, 0.16), transparent 26%),
    radial-gradient(circle at bottom left, rgba(24, 255, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #000000 0%, #111111 100%);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--body-gradient);
  color: var(--text);
  font-family: var(--font-body);
}
body { min-height: 100vh; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  position: relative;
}
.ambient { position: absolute; border-radius: 999px; filter: blur(10px); }
.ambient-a { width: 420px; height: 420px; background: radial-gradient(circle, rgba(var(--accent-rgb), 0.22), transparent 70%); top: -90px; right: -60px; }
.ambient-b { width: 360px; height: 360px; background: radial-gradient(circle, rgba(var(--cyan-rgb), 0.18), transparent 70%); bottom: -50px; left: -40px; }
.login-box {
  position: relative; z-index: 1; width: min(420px, 100%);
  background: var(--login-bg); border: 1px solid var(--line); border-radius: 24px;
  padding: 34px; box-shadow: var(--shadow); backdrop-filter: blur(12px);
}
.login-logo, .empty-panel { text-align: center; }
.logo-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 76px; padding: 10px 18px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ff9f55);
  color: white; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; letter-spacing: 0.12em;
}
.login-logo h1, .nav-brand, .hero-copy h2, .card-header h3, .proj-card-title, .part-row-head, .proc-box-head, .modal-head h3 {
  font-family: var(--font-display);
}
.login-logo h1 { margin: 16px 0 6px; font-size: 2rem; }
.login-logo p { margin: 0; color: var(--text-dim); }
.login-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 22px 0 18px; }
.login-tab, .btn, .status-toggle, .process-chip, .icon-button, .proj-btn, .project-toggle, .action-select, .role-select { transition: 0.2s ease; }
.login-tab {
  border: 1px solid var(--line); background: transparent; color: var(--text-dim);
  border-radius: 999px; padding: 10px 14px;
}
.login-tab.active { background: rgba(var(--accent-rgb), 0.16); border-color: rgba(var(--accent-rgb), 0.45); color: var(--accent-strong); }
.auth-form, .form-group { display: grid; gap: 10px; }
.form-group { margin-bottom: 14px; }
.remember-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -2px 0 2px;
  color: var(--text-dim);
  font-size: 0.84rem;
}
.remember-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
.form-group span, .type-sub p, .search-box span, .select-box span { color: var(--text-dim); font-size: 0.86rem; }
.form-group input, .form-group textarea, .count-input, .search-box input, .select-box select, .form-group select {
  width: 100%; background: var(--input-bg); border: 1px solid var(--line); color: var(--text);
  border-radius: var(--radius-sm); padding: 12px 14px; outline: none;
}
.form-group input:focus, .form-group textarea:focus, .count-input:focus, .search-box input:focus, .select-box select:focus, .form-group select:focus, .action-select:focus, .role-select:focus {
  border-color: rgba(var(--accent-rgb), 0.8); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14);
}
.form-group textarea { min-height: 96px; resize: vertical; }
.project-form-meta-row {
  display: grid;
  grid-template-columns: 132px auto;
  gap: 14px;
  align-items: end;
}
.project-form-meta-row .form-group { margin-bottom: 0; }
.change-code-field {
  display: grid;
  grid-template-columns: auto 102px;
  gap: 10px;
  align-items: center;
  justify-content: start;
}
.change-code-prefix {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(var(--cyan-rgb), 0.2);
  background: rgba(var(--cyan-rgb), 0.08);
  color: var(--text-soft);
  font-family: var(--font-mono);
  white-space: nowrap;
}
.change-code-field input {
  width: 102px;
  min-width: 102px;
}
@media (max-width: 520px) {
  .project-form-meta-row {
    grid-template-columns: 116px auto;
    gap: 12px;
  }
  .change-code-field {
    grid-template-columns: auto 88px;
    gap: 8px;
  }
  .change-code-field input {
    width: 88px;
    min-width: 88px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .change-code-prefix {
    padding: 0 12px;
  }
}
.form-error { min-height: 20px; margin: 0; color: var(--red); font-size: 0.84rem; }
.btn { border: none; border-radius: 999px; padding: 10px 18px; font-weight: 600; }
.btn:hover, .project-toggle:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: white; box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.22); }
.btn-secondary { background: rgba(255, 255, 255, 0.03); color: var(--text-dim); border: 1px solid var(--line); }
.btn-block { width: 100%; }
.btn:disabled, .status-toggle:disabled, .proj-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.main-app { min-height: 100vh; display: flex; flex-direction: column; }
.navbar {
  position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px; background: var(--nav-bg); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px);
}
.brand-lockup, .nav-right, .nav-user, .hero-actions, .workspace-header, .workspace-meta, .proj-card-actions, .project-meta-row, .project-progress-meta, .part-meta-line, .insight-item-head, .team-user-row {
  display: flex; align-items: center;
}
.brand-lockup, .nav-right, .nav-user { gap: 14px; }
.brand-mark { padding: 8px 12px; border-radius: 999px; background: rgba(var(--accent-rgb), 0.16); border: 1px solid rgba(var(--accent-rgb), 0.4); color: var(--accent-strong); font-family: var(--font-display); font-weight: 700; letter-spacing: 0.1em; }
.nav-brand { font-size: 1.4rem; font-weight: 700; }
.nav-subtitle, .nav-user-label { color: var(--text-soft); font-size: 0.78rem; }
.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}
.top-nav-item {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--text-dim);
  background: transparent;
  font-weight: 700;
}
.top-nav-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.top-nav-item.active {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 8px 18px rgba(var(--accent-rgb), 0.18);
}
.install-app-button { border-color: rgba(53, 210, 255, 0.34); color: var(--cyan); }
.nav-user-meta { display: grid; gap: 2px; }
.nav-user-icon, .user-tag { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 700; }
.nav-user-icon { width: 36px; height: 36px; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: white; }
.mobile-header-actions, .mobile-more-panel, .mobile-bottom-nav, .mobile-filter-toggle { display: none; }
.mobile-action {
  border: 1px solid var(--line);
  border-radius: 999px;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-weight: 800;
}
.mobile-action.primary {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  font-size: 1.25rem;
}
.mobile-action:disabled { opacity: 0.45; cursor: not-allowed; }
.mobile-user-brief {
  display: inline-flex;
  align-items: center;
  max-width: 88px;
  padding: 0 10px;
  border: 1px solid rgba(var(--cyan-rgb), 0.2);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-badge, .assign-chip, .scope-chip {
  display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.78rem;
}
.role-badge.manager { color: var(--accent-strong); background: rgba(var(--accent-rgb), 0.12); border-color: rgba(var(--accent-rgb), 0.4); }
.role-badge.operator { color: var(--cyan); background: rgba(var(--cyan-rgb), 0.12); border-color: rgba(var(--cyan-rgb), 0.3); }
.role-badge.viewer { color: #bcc6de; background: rgba(255, 255, 255, 0.04); }
.assign-chip.direct { color: #9df5c1; background: rgba(46, 204, 113, 0.12); border-color: rgba(46, 204, 113, 0.35); }
.assign-chip.inherited { color: #ffe09f; background: rgba(243, 156, 18, 0.14); border-color: rgba(243, 156, 18, 0.32); }
.assign-chip.unassigned { color: var(--text-soft); background: rgba(255, 255, 255, 0.03); }
.scope-chip { color: var(--text-soft); background: rgba(255, 255, 255, 0.03); }
.project-type-chip { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.8rem; font-weight: 700; background: rgba(255,255,255,0.03); }
.project-type-chip.type-new-mold { color: var(--text); }
.project-type-chip.type-modify-mold { color: #ffb168; border-color: rgba(232, 114, 42, 0.45); background: rgba(232, 114, 42, 0.12); }
.project-type-chip.type-repair-mold { color: #ff8f85; border-color: rgba(230, 95, 80, 0.48); background: rgba(230, 95, 80, 0.12); }
.project-type-chip.type-fixture-other { color: #7cefff; border-color: rgba(0, 188, 212, 0.42); background: rgba(0, 188, 212, 0.12); }
.project-code-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 177, 104, 0.26);
  background: rgba(255, 177, 104, 0.08);
  color: #ffd8ad;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-mono);
  white-space: nowrap;
}
.part-code-chip {
  font-family: var(--font-sans);
  font-size: 0.76rem;
}
.project-created-at { display: inline-flex; align-items: center; color: var(--text-dim); font-size: 0.82rem; white-space: nowrap; }

.app-scroll { flex: 1; padding: 28px; }
.app-page { display: none; }
.app-page.active { display: block; }
.toast { position: sticky; top: 86px; z-index: 18; margin: 0 auto 18px; width: fit-content; max-width: min(520px, calc(100vw - 48px)); padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow); }
.hero-panel, .dashboard-card, .workspace-panel, .proj-card { background: color-mix(in srgb, var(--panel) 88%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-panel { padding: 24px 26px; border-radius: var(--radius-lg); margin-bottom: 22px; display: flex; justify-content: space-between; gap: 20px; background: radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.14), transparent 35%), linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0)), color-mix(in srgb, var(--panel) 92%, transparent); }
.eyebrow, .card-kicker { display: inline-flex; margin-bottom: 8px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-dim); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-copy h2 { margin: 0 0 8px; font-size: 2.2rem; line-height: 1; }
.hero-copy p { margin: 0; color: var(--text-dim); max-width: 780px; }
.hero-actions { gap: 10px; align-self: flex-start; }

.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { min-height: 220px; padding: 16px; border-radius: 20px; background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)); border: 1px solid var(--line); }
.stat-card-title { margin-bottom: 14px; color: var(--text-dim); font-size: 0.86rem; text-align: center; }
.stat-metrics {
  min-height: 162px;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  grid-template-areas:
    "today week"
    "period period"
    "total total";
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 188, 212, 0.5);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.1), rgba(0, 188, 212, 0.018));
  box-shadow: inset 0 0 18px rgba(0, 188, 212, 0.05);
  border-collapse: collapse;
}
.stat-metric { display: grid; align-content: center; justify-items: center; gap: 10px; padding: 10px 12px; color: var(--text-soft); text-align: center; }
.stat-metric.total { grid-area: total; min-height: 48px; border-top: 1px solid rgba(0, 188, 212, 0.32); background: rgba(0, 188, 212, 0.035); }
.stat-metric.period { grid-area: period; border-top: 1px solid rgba(0, 188, 212, 0.32); }
.stat-metric.week { grid-area: week; border-left: 1px solid rgba(0, 188, 212, 0.32); }
.stat-metric.today { grid-area: today; background: rgba(117, 228, 162, 0.08); }
.stat-metric-label { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.stat-metric-value { color: var(--text); font-family: var(--font-display); font-size: 1.65rem; line-height: 1; }
.stat-metric.total .stat-metric-value { font-size: 2rem; }
.stat-metric.today .stat-metric-value { color: #9ff4bf; }
.dashboard-period-select { border: 1px solid rgba(0, 188, 212, 0.38); border-radius: 999px; padding: 4px 8px; background: rgba(9, 14, 22, 0.88); color: var(--cyan); font-size: 0.74rem; outline: none; }

.dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.team-card { grid-column: span 3; }
.dashboard-card, .workspace-panel { border-radius: var(--radius-lg); }
.dashboard-card { padding: 18px; min-height: 260px; }
.card-header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.card-header h3 { margin: 4px 0 0; font-size: 1.35rem; }
.header-chip { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--text-dim); font-size: 0.8rem; }
.chart-controls { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.dashboard-mini-select { border: 1px solid rgba(0, 188, 212, 0.34); border-radius: 999px; padding: 6px 10px; background: rgba(9, 14, 22, 0.88); color: var(--cyan); font-size: 0.78rem; outline: none; }

.status-chart, .trend-chart, .insight-list, .distribution-list { display: grid; gap: 12px; }
.status-row { display: grid; gap: 8px; }
.status-row-head, .project-progress-meta, .part-progress-meta, .filters-bar, .type-head, .elec-status-row, .proc-box-head, .proc-item, .project-title-row, .project-title-actions, .part-title-line, .part-tags, .team-user-line {
  display: flex; align-items: center;
}
.status-row-head { gap: 12px; justify-content: flex-start; }
.status-dot { width: 10px; height: 10px; border-radius: 999px; }
.status-dot.not-started { background: #8590ab; }
.status-dot.in-progress { background: var(--yellow); }
.status-dot.completed { background: var(--green); }
.chart-track, .progress-track { width: 100%; height: 10px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; }
.chart-fill, .progress-fill { height: 100%; border-radius: inherit; }
.chart-fill.not-started { background: linear-gradient(90deg, #6d7691, #99a3bb); }
.chart-fill.in-progress { background: linear-gradient(90deg, #c98a16, #f3b847); }
.chart-fill.completed { background: linear-gradient(90deg, #21b25f, #52e28d); }
.pie-wrap { display: grid; grid-template-columns: minmax(120px, 150px) 1fr; align-items: center; gap: 18px; min-height: 170px; }
.pie-chart { width: 142px; height: 142px; filter: drop-shadow(0 0 18px rgba(0,188,212,0.1)); }
.pie-track { fill: none; stroke: #131923; stroke-width: 24; }
.pie-slice { fill: none; stroke-width: 24; stroke-linecap: butt; transform: rotate(-90deg); transform-origin: 70px 70px; }
.pie-chart text { fill: var(--text); font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.pie-legend { display: grid; gap: 9px; }
.pie-legend-item { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 0.82rem; }
.pie-legend-item i { width: 10px; height: 10px; border-radius: 999px; flex: 0 0 auto; }
.pie-legend-item div { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; }
.pie-legend-item strong { color: var(--text); font-weight: 600; }
.pie-legend-item span { color: var(--text-soft); font-size: 0.74rem; }
.trend-chart { grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: end; min-height: 170px; }
.trend-bar-wrap { display: grid; gap: 8px; justify-items: center; }
.trend-bar { width: 100%; max-width: 38px; min-height: 12px; border-radius: 12px 12px 6px 6px; background: linear-gradient(180deg, rgba(0, 188, 212, 0.95), rgba(0, 188, 212, 0.18)); box-shadow: inset 0 -12px 20px rgba(255,255,255,0.08); }
.trend-value { font-family: var(--font-display); font-size: 1rem; }
.trend-label { color: var(--text-soft); font-size: 0.76rem; }

.completed-detail-card { display: flex; flex-direction: column; overflow: hidden; }
.completed-detail-card .card-header { flex: 0 0 auto; }
#statusChart { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.completed-process-list {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(92, 225, 230, 0.28) rgba(255,255,255,0.035);
}
.completed-process-list::-webkit-scrollbar { width: 6px; }
.completed-process-list::-webkit-scrollbar-track { background: rgba(255,255,255,0.035); border-radius: 999px; }
.completed-process-list::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(92, 225, 230, 0.45), rgba(92, 225, 230, 0.16)); border-radius: 999px; }
.completed-process-list::-webkit-scrollbar-thumb:hover { background: rgba(92, 225, 230, 0.5); }
.completed-process-item {
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 13px;
  display: grid;
  grid-template-columns: minmax(150px, 1.25fr) minmax(120px, 0.9fr) auto auto;
  align-items: center;
  gap: 10px;
}
.completed-process-main,
.completed-process-work,
.completed-process-user,
.completed-process-time {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.completed-process-main { color: var(--text); font-weight: 700; font-size: 0.94rem; }
.completed-process-work, .completed-process-user { color: var(--text-dim); font-size: 0.76rem; }
.completed-process-time { color: #8cf2ff; font-family: var(--font-mono); font-size: 0.78rem; }
.completed-process-item .insight-meta { display: contents; }
.completed-process-item .insight-sub { display: contents; }

.dashboard-grid .list-card { display: flex; flex-direction: column; overflow: hidden; }
.dashboard-grid .list-card .card-header { flex: 0 0 auto; }
.dashboard-grid .list-card .insight-list {
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
  gap: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(92, 225, 230, 0.28) rgba(255,255,255,0.035);
}
.dashboard-grid .list-card .insight-list::-webkit-scrollbar { width: 6px; }
.dashboard-grid .list-card .insight-list::-webkit-scrollbar-track { background: rgba(255,255,255,0.035); border-radius: 999px; }
.dashboard-grid .list-card .insight-list::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(92, 225, 230, 0.45), rgba(92, 225, 230, 0.16)); border-radius: 999px; }
.dashboard-grid .list-card .insight-list::-webkit-scrollbar-thumb:hover { background: rgba(92, 225, 230, 0.5); }
.compact-insight-item {
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 13px;
  display: grid;
  grid-template-columns: minmax(150px, 1.25fr) minmax(120px, 0.9fr) auto auto;
  align-items: center;
  gap: 10px;
}
.compact-insight-main,
.compact-insight-sub,
.compact-insight-meta,
.compact-insight-right {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compact-insight-main { color: var(--text); font-weight: 700; font-size: 0.94rem; }
.compact-insight-sub,
.compact-insight-meta { color: var(--text-dim); font-size: 0.76rem; }
.compact-insight-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.compact-insight-right { color: var(--text-dim); font-size: 0.78rem; text-align: right; }
.compact-insight-meta .project-type-chip { padding: 3px 8px; font-size: 0.72rem; }

.insight-item { padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); }
.insight-item.compact-insight-item { padding: 8px 12px; border-radius: 13px; }
.insight-project-link { width: 100%; color: inherit; text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.insight-project-link:hover { border-color: rgba(92, 225, 230, .42); background: rgba(92, 225, 230, .07); transform: translateY(-1px); }
.process-jump-highlight { outline: 2px solid rgba(255, 184, 77, .96); box-shadow: 0 0 0 4px rgba(255, 184, 77, .16), 0 0 24px rgba(255, 184, 77, .24); animation: processJumpPulse 1.8s ease; }
@keyframes processJumpPulse { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-2px); } }
.status-pill { padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(148, 163, 184, .26); background: rgba(148, 163, 184, .12); color: var(--text-soft); }
.status-pill.in-progress { border-color: rgba(245, 158, 11, .4); background: rgba(245, 158, 11, .12); color: #fbd38d; }
.status-pill.not-started { border-color: rgba(148, 163, 184, .26); background: rgba(148, 163, 184, .1); color: var(--text-dim); }
.insight-item-head, .team-user-row { justify-content: space-between; gap: 12px; }
.insight-title, .team-user-name { font-weight: 600; }
.insight-sub, .insight-right, .part-subline, .proj-card-note, .empty-panel p, .project-summary-text, .team-user-sub { color: var(--text-dim); font-size: 0.84rem; }
.insight-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; color: var(--text-dim); font-size: 0.76rem; }
.insight-meta .project-type-chip { padding: 3px 8px; font-size: 0.76rem; }
.insight-right { white-space: nowrap; }
.insight-empty { color: var(--text-soft); padding-top: 8px; }
.team-user-row { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.team-user-row:last-child { border-bottom: none; }
.team-user-line { gap: 10px; flex-wrap: wrap; }
.theme-settings { display: grid; gap: 12px; }
.theme-settings p { margin: 0; color: var(--text-dim); font-size: 0.84rem; line-height: 1.7; }
.report-preview-card { margin-top: 16px; }
.report-preview-grid { display: grid; grid-template-columns: 1.2fr 0.9fr; gap: 14px; }
.report-config-panel { padding: 14px; border: 1px solid rgba(0, 188, 212, 0.24); border-radius: 18px; background: rgba(0, 188, 212, 0.035); }
.report-panel-title { color: var(--text); font-weight: 700; margin-bottom: 12px; }
.report-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.report-field { display: grid; gap: 7px; color: var(--text-dim); font-size: 0.82rem; }
.report-field select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; background: #101722; color: var(--text); outline: none; }
.report-style-list { display: grid; gap: 10px; }
.report-style-card { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,0.025); }
.report-style-card.active { border-color: rgba(0, 188, 212, 0.54); background: rgba(0, 188, 212, 0.08); }
.report-style-card small { grid-column: 2; color: var(--text-soft); }
.report-static-layout { display: grid; gap: 8px; padding: 16px; min-height: 118px; border: 1px solid rgba(0, 188, 212, 0.42); border-radius: 16px; background: linear-gradient(145deg, rgba(0, 188, 212, 0.14), rgba(255,255,255,0.025)); align-content: center; }
.report-static-layout span { color: var(--text); font-weight: 800; }
.report-static-layout small { color: var(--text-soft); line-height: 1.7; }
.report-content-row { margin-top: 14px; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; }
.report-chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.report-chip { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-soft); background: rgba(255,255,255,0.025); font-size: 0.78rem; }
.report-chip.active { color: #8cf2ff; border-color: rgba(0, 188, 212, 0.46); background: rgba(0, 188, 212, 0.08); }
.report-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.operation-log-list { display: grid; gap: 10px; }
.operation-row { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); }
.operation-title { display: flex; align-items: center; gap: 10px; font-weight: 700; flex-wrap: wrap; }
.operation-sub { color: var(--text-dim); font-size: 0.84rem; margin-top: 6px; }
.operation-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.operation-status { color: #ffd1a7; font-size: 0.84rem; white-space: nowrap; }
.operation-status.restored { color: #7cefa6; }
.operation-status.expired { color: var(--text-soft); }
.role-select, .action-select {
  min-width: 132px; background: #121722; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 7px 10px;
}
.action-select.compact { min-width: 110px; padding: 5px 8px; font-size: 0.78rem; }

.workspace-panel { padding: 22px; }
.workspace-sticky-region { border-radius: 22px; }
.workspace-panel.is-sticky-tools .workspace-sticky-region {
  position: sticky;
  top: 76px;
  z-index: 19;
  margin: -10px -10px 18px;
  padding: 10px;
  border: 1px solid rgba(var(--cyan-rgb), 0.22);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(8, 20, 34, 0.96), rgba(8, 20, 34, 0.88)),
    color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}
.sticky-toggle {
  border: 1px solid rgba(var(--cyan-rgb), 0.32);
  color: var(--cyan);
  background: rgba(var(--cyan-rgb), 0.08);
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.sticky-toggle[aria-pressed="true"] {
  color: var(--text);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.96), rgba(var(--cyan-rgb), 0.78));
  border-color: rgba(255, 255, 255, 0.22);
}
.workspace-header { justify-content: space-between; margin-bottom: 18px; gap: 16px; }
.workspace-header h3 { margin: 6px 0 0; font-family: var(--font-display); font-size: 1.5rem; }
.workspace-pending-ticker { flex: 1 1 auto; min-width: 320px; max-width: min(76vw, 1420px); display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid rgba(var(--cyan-rgb), 0.26); border-radius: 18px; background: linear-gradient(90deg, rgba(var(--cyan-rgb), 0.08), rgba(255,255,255,0.025)); overflow: hidden; }
.workspace-pending-title { flex: 0 0 auto; color: var(--cyan); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; white-space: nowrap; }
.workspace-pending-viewport { flex: 1 1 auto; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.workspace-pending-track { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.workspace-pending-ticker.is-scrolling .workspace-pending-track { animation: workspaceTickerScroll 28s linear infinite; }
.workspace-pending-ticker.is-scrolling:hover .workspace-pending-track { animation-play-state: paused; }
.workspace-pending-item { display: inline-flex; align-items: center; gap: 8px; max-width: 360px; border: 1px solid rgba(var(--cyan-rgb), 0.24); border-radius: 999px; padding: 7px 12px; background: rgba(0,0,0,0.18); color: var(--text); cursor: pointer; }
.workspace-pending-item strong, .workspace-pending-item span { overflow: hidden; text-overflow: ellipsis; }
.workspace-pending-item strong { color: #f3f7ff; max-width: 110px; }
.workspace-pending-item span { color: var(--text-dim); max-width: 130px; }
.workspace-pending-item:hover { border-color: rgba(var(--cyan-rgb), 0.55); background: rgba(var(--cyan-rgb), 0.11); }
@keyframes workspaceTickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.filters-bar { gap: 12px; margin-bottom: 18px; flex-wrap: nowrap; align-items: flex-start; }
.mobile-filter-toggle {
  width: 100%;
  margin: 0 0 10px;
  border: 1px solid rgba(var(--cyan-rgb), 0.28);
  border-radius: 14px;
  padding: 11px 14px;
  background: rgba(var(--cyan-rgb), 0.06);
  color: var(--cyan);
  font-weight: 800;
}
.search-box { flex: 1 1 auto; min-width: 260px; display: grid; gap: 8px; }
.select-box { width: 180px; display: grid; gap: 8px; }
.toggle-inline { display: flex; align-items: center; gap: 10px; padding: 34px 12px 0 4px; color: var(--text-dim); }
.toggle-inline input { accent-color: var(--accent); width: 16px; height: 16px; }
.unfinished-toggle { min-width: 150px; }
.project-type-checks { width: auto; display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,0.025); }
.project-type-checks.filter-inline { flex: 0 0 auto; margin-left: auto; }
.project-type-checks legend { padding: 0 6px; color: var(--text-dim); font-size: 0.82rem; }
.project-type-check { display: flex; align-items: center; gap: 6px; min-height: 28px; color: var(--text-dim); font-size: 0.86rem; cursor: pointer; }
.project-type-check input { accent-color: var(--accent); width: 15px; height: 15px; }
.project-type-check .project-type-chip { justify-content: center; text-align: center; white-space: nowrap; }
.empty-state { padding: 32px 0 8px; }
.empty-panel { max-width: 520px; margin: 0 auto; padding: 36px; border-radius: 20px; background: rgba(255,255,255,0.02); border: 1px dashed var(--line-strong); }
.empty-panel h2 { margin: 0 0 8px; font-size: 1.55rem; }

.proj-card {
  position: relative;
  margin: 0 0 28px;
  border-radius: 24px;
  overflow: hidden;
  animation: card-in 0.26s ease;
  border-color: color-mix(in srgb, var(--cyan) 34%, var(--line));
  transition: opacity 0.2s ease, filter 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.proj-card + .proj-card { margin-top: 8px; }
.proj-card.is-related { border-color: color-mix(in srgb, var(--cyan) 42%, var(--line)); }
.proj-card.is-unrelated {
  opacity: 0.58;
  filter: saturate(0.52) brightness(0.82);
  border-color: color-mix(in srgb, var(--text-soft) 28%, var(--line));
}
.proj-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7px;
  background: linear-gradient(90deg, #a855f7 0%, #7c3aed 28%, #c084fc 58%, #22d3ee 100%);
  box-shadow: 0 -8px 24px rgba(124, 58, 237, 0.22);
  z-index: 2;
}
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.proj-card-head {
  position: relative;
  padding: 20px 22px 18px 26px;
  display: grid;
  gap: 14px;
  background:
    radial-gradient(circle at top left, rgba(0, 194, 255, 0.2), transparent 30%),
    linear-gradient(100deg, rgba(12, 88, 132, 0.94), rgba(16, 36, 66, 0.96) 40%, rgba(10, 18, 30, 0.98)),
    color-mix(in srgb, var(--card-soft) 92%, black);
  border-bottom: 1px solid color-mix(in srgb, var(--cyan) 28%, var(--line));
}
.proj-card.is-unrelated .proj-card-head {
  background:
    linear-gradient(100deg, rgba(32, 42, 59, 0.94), rgba(17, 24, 37, 0.97)),
    color-mix(in srgb, var(--card-soft) 90%, black);
  border-bottom-color: rgba(126, 145, 176, 0.14);
}
.proj-card.is-unrelated .project-summary-text,
.proj-card.is-unrelated .project-progress-meta,
.proj-card.is-unrelated .proj-card-note,
.proj-card.is-unrelated .project-collapsed-note {
  color: color-mix(in srgb, var(--text-dim) 84%, #8290a6);
}
.proj-card.is-unrelated::after { opacity: 0.5; }
.proj-card.is-unrelated .progress-fill.project { opacity: 0.56; }
.proj-card.mini-collapsed::after { display: none; }
.project-main-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.proj-card-head.mini-collapsed {
  padding: 8px 18px;
  gap: 0;
  min-height: 56px;
  border-bottom: 0;
}
.mini-collapsed-line {
  grid-template-columns: auto 132px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.proj-card-head.mini-collapsed .project-toggle {
  align-self: center;
}
.project-title-center.mini-collapsed-center {
  justify-items: stretch;
  text-align: left;
  gap: 0;
  width: 100%;
}
.project-title-row.mini-collapsed-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
}
.mini-collapsed-left {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.project-title-row.mini-collapsed-row .proj-card-title {
  width: auto;
  min-width: 0;
  max-width: 100%;
  font-size: 1.18rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}
.mini-collapsed-anchor {
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-title-row.mini-collapsed-row .assignment-controls,
.mini-collapsed-anchor .assignment-controls {
  flex-wrap: nowrap;
}
.mini-collapsed-right {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  white-space: nowrap;
}
.mini-collapsed-right .project-created-at {
  margin-left: auto;
}
.project-mini-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.project-mini-owner {
  color: var(--text-dim);
  font-size: 0.84rem;
  white-space: nowrap;
}
.project-title-center { display: grid; gap: 6px; justify-items: center; text-align: center; min-width: 0; }
.project-title-row { justify-content: center; gap: 10px; flex-wrap: wrap; }
.project-title-row.project-header-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  width: 100%;
  gap: 12px;
}
.project-title-side {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.project-title-side-left { justify-content: flex-end; }
.project-title-side-right { justify-content: flex-start; white-space: nowrap; }
.project-title-anchor {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-title-anchor .proj-card-title {
  max-width: min(420px, 32vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-participants {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 34px;
  padding: 5px 8px;
  gap: 4px;
  border: 1px solid rgba(var(--cyan-rgb), 0.3);
  border-radius: 999px;
  background: rgba(var(--cyan-rgb), 0.08);
  overflow: hidden;
}
.project-participant-tag {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.project-title-actions { gap: 8px; }
.proj-card-title { font-size: 1.4rem; font-weight: 700; }
.project-toggle, .proj-btn, .icon-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.03); color: var(--text); }
.project-toggle { border-radius: 999px; border-color: rgba(0, 188, 212, 0.42); background: rgba(0, 188, 212, 0.08); color: #7cefff; font-size: 1.45rem; line-height: 1; font-family: var(--font-display); }
.project-toggle.collapsed { padding-left: 1px; }
.project-toggle.expanded { padding-top: 1px; }
.project-toggle:hover, .proj-btn:hover, .icon-button:hover { background: var(--card-soft); }
.project-meta-row { justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.project-summary-line { display: grid; gap: 8px; width: 100%; }
.project-summary-text { display: flex; gap: 14px; flex-wrap: wrap; }
.project-progress-meta { gap: 10px; justify-content: flex-start; color: var(--text-dim); font-size: 0.84rem; flex-wrap: wrap; }
.progress-track { height: 12px; }
.progress-fill.project { background: linear-gradient(90deg, var(--accent), #ffb168); }
.progress-fill.part { background: linear-gradient(90deg, #14b3d0, #66e2f3); }
.progress-fill.completed { background: linear-gradient(90deg, #21b25f, #52e28d); box-shadow: 0 0 18px rgba(46, 204, 113, 0.28); }
.project-body {
  margin: 0 14px 16px 20px;
  padding: 10px 12px 6px;
  border-radius: 0 0 18px 18px;
  background:
    linear-gradient(180deg, rgba(9, 22, 36, 0.26), rgba(9, 22, 36, 0.08)),
    color-mix(in srgb, var(--bg) 42%, transparent);
  border: 1px solid rgba(var(--cyan-rgb), 0.1);
  border-top: 0;
}
.project-body, .project-collapsed-note { position: relative; overflow: hidden; }
.project-collapsed-note { margin: 0 14px 16px 20px; padding: 12px 14px; border-radius: 0 0 18px 18px; background: color-mix(in srgb, var(--bg) 32%, transparent); color: var(--text-soft); font-size: 0.84rem; }
.empty-project { padding: 24px 12px 14px; text-align: center; color: var(--text-dim); }
.assignment-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline-assignment { justify-content: center; }
.permission-note { color: var(--text-soft); font-size: 0.8rem; }

.part-row { padding: 14px 6px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.part-row:last-child { border-bottom: none; }
.part-actions {
  display: flex;
  gap: 6px;
}
.part-row-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, 260px);
  gap: 16px;
  padding: 12px 14px;
  align-items: center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(35, 45, 56, 0.96), rgba(18, 25, 34, 0.96));
  border: 1px solid rgba(108, 126, 143, 0.18);
  box-shadow: inset 0 1px 0 rgba(199, 214, 224, 0.05);
}
.part-title-wrap { display: grid; gap: 6px; justify-items: center; text-align: center; min-width: 0; }
.part-title-line, .part-progress-meta, .part-tags { gap: 8px; flex-wrap: wrap; }
.part-title-line { justify-content: center; font-family: var(--font-display); font-size: 1.08rem; }
.part-num { font-family: var(--font-mono); color: #ffd1a7; }
.part-progress { min-width: 0; display: grid; gap: 8px; }
.part-subline { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.part-processes { display: grid; grid-template-columns: minmax(360px, 2.4fr) minmax(240px, 1.35fr) minmax(170px, 1fr); gap: 12px; align-items: stretch; }
.proc-box-wrapper { display: flex; }
.proc-box { width: 100%; height: 100%; background: var(--card); border: 1px solid rgba(0, 188, 212, 0.28); border-radius: 18px; overflow: hidden; }
.cnc-w .proc-box {
  border-color: rgba(149, 118, 255, 0.34);
  box-shadow: inset 0 0 0 1px rgba(149, 118, 255, 0.07);
}
.proc-box-head { justify-content: center; gap: 8px; padding: 10px 14px; background: var(--cyan-soft); border-bottom: 1px solid rgba(0, 188, 212, 0.3); color: #7cefff; font-weight: 700; letter-spacing: 0.08em; flex-wrap: wrap; }
.cnc-w .proc-box-head {
  background: linear-gradient(180deg, rgba(96, 76, 178, 0.96), rgba(53, 36, 112, 0.96));
  border-bottom-color: rgba(180, 156, 255, 0.34);
  color: #efe8ff;
}
.split-w .proc-box-head {
  background: linear-gradient(180deg, rgba(128, 88, 26, 0.92), rgba(84, 53, 14, 0.92));
  border-bottom-color: rgba(255, 193, 92, 0.3);
  color: #ffd58f;
}
.work-w .proc-box-head {
  background: linear-gradient(180deg, rgba(33, 104, 73, 0.92), rgba(18, 66, 47, 0.92));
  border-bottom-color: rgba(82, 226, 141, 0.28);
  color: #9ff4bf;
}
.proc-box-head .action-select { letter-spacing: 0; font-weight: 500; }
.cnc-group-select { min-width: 128px; }
.proc-box-body { padding: 12px; display: flex; flex-wrap: wrap; gap: 8px; min-height: 90px; }
.proc-box-body.cnc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; }
.proc-item { gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 12px; background: rgba(12, 14, 20, 0.92); border: 1px solid var(--line); justify-content: flex-start; min-height: 42px; }
.cnc-grid .proc-item {
  display: grid;
  grid-template-columns: minmax(48px, 1fr) auto;
  grid-template-rows: auto 1fr;
  align-items: start;
  justify-content: stretch;
  min-height: 58px;
  padding: 6px 8px;
}
.cnc-grid .proc-item .proc-label,
.cnc-grid .proc-item .status-toggle,
.cnc-grid .proc-item .placeholder-mark {
  align-self: start;
}
.cnc-grid .proc-item .completed-by {
  grid-column: 1 / -1;
  align-self: end;
  font-size: 0.68rem;
  line-height: 1.15;
}
.proc-placeholder { opacity: 0.42; border-style: dashed; background: rgba(255,255,255,0.02); }
.proc-spacer {
  visibility: hidden;
  pointer-events: none;
  border-color: transparent;
  background: transparent;
}
.placeholder-mark { color: var(--text-soft); font-size: 0.72rem; }
.proc-label { color: var(--text-dim); font-size: 0.88rem; }
.status-toggle { border: 1px solid transparent; border-radius: 999px; padding: 4px 10px; background: transparent; font-size: 0.78rem; font-weight: 700; }
.status-toggle.not-started { background: rgba(109, 118, 145, 0.12); border-color: rgba(109, 118, 145, 0.28); color: #9fa9c3; }
.status-toggle.in-progress { background: rgba(243, 156, 18, 0.14); border-color: rgba(243, 156, 18, 0.35); color: #f8c35f; }
.status-toggle.completed { background: rgba(46, 204, 113, 0.14); border-color: rgba(46, 204, 113, 0.35); color: #71e7a6; }
.completed-by { color: var(--text-soft); font-size: 0.72rem; font-family: var(--font-mono); }
.elec-info { min-height: 170px; display: grid; place-items: center; gap: 10px; padding: 18px 12px; }
.elec-count-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: 100%; align-items: center; }
.elec-count-display { display: grid; gap: 4px; text-align: center; }
.elec-count-label { color: var(--text-soft); font-size: 0.78rem; }
.elec-count-num { font-family: var(--font-mono); color: #77efff; font-size: 2rem; font-weight: 700; text-shadow: 0 0 16px rgba(0, 188, 212, 0.24); }
.elec-status-row { gap: 8px; flex-wrap: wrap; justify-content: center; }
.proc-empty { border-style: dashed; opacity: 0.72; }
.empty-process-body { min-height: 170px; display: grid; place-items: center; color: var(--text-soft); font-size: 0.9rem; }
.user-tag { width: 24px; height: 24px; background: linear-gradient(135deg, var(--green), #1abc9c); color: white; font-size: 0.78rem; box-shadow: 0 6px 14px rgba(46, 204, 113, 0.2); }
.user-tag.proj-tag { width: 28px; height: 28px; }

.modal-overlay { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(6px); padding: 18px; }
.modal { width: min(440px, 100%); max-height: calc(100vh - 36px); background: var(--login-bg); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.modal-wide { width: min(900px, 100%); }
.modal-head, .modal-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.modal-head { border-bottom: 1px solid var(--line); }
.modal-body { padding: 16px 18px; display: grid; gap: 12px; max-height: min(62vh, 560px); overflow-y: auto; }
.modal-footer { border-top: 1px solid var(--line); justify-content: flex-end; gap: 10px; }
.type-selector { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 12px; }
.type-option { display: grid; gap: 8px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,0.02); border: 1px solid var(--line); }
.type-option.active { border-color: rgba(var(--accent-rgb), 0.6); background: rgba(var(--accent-rgb), 0.06); }
.type-head { gap: 10px; justify-content: flex-start; font-weight: 600; }
.type-head input { width: 18px; height: 18px; accent-color: var(--accent); }
.type-sub { display: none; }
.type-option.active .type-sub { display: grid; gap: 10px; }
.process-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.process-chip { border: 1px solid var(--line); background: rgba(255,255,255,0.02); color: var(--text-dim); border-radius: 999px; padding: 6px 12px; }
.process-chip.active { background: rgba(var(--accent-rgb), 0.18); border-color: rgba(var(--accent-rgb), 0.45); color: var(--accent-strong); }
.split-count-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.split-count-grid label { display: grid; gap: 6px; }
.split-count-grid span { color: var(--text-dim); font-size: 0.78rem; }
.split-count-grid input[readonly] { opacity: 0.86; cursor: default; }

@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .team-card { grid-column: span 2; }
}

@media (max-width: 900px) {
  .hero-panel, .navbar, .nav-right, .workspace-header, .part-processes { flex-direction: column; }
  .navbar { align-items: flex-start; gap: 16px; }
  .nav-right { align-items: stretch; width: 100%; }
  .top-nav { width: 100%; justify-content: stretch; }
  .top-nav-item { flex: 1; }
  .hero-actions { width: 100%; }
  .workspace-pending-ticker { width: 100%; min-width: 0; max-width: none; }
  .project-main-line, .part-row-head { grid-template-columns: 1fr; justify-items: center; align-items: center; }
  .part-progress { width: 100%; min-width: 0; }
  .part-processes { grid-template-columns: 1fr; }
  .proc-box-body.cnc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .type-selector { grid-template-columns: 1fr; }
  .report-preview-grid, .report-content-row { grid-template-columns: 1fr; }
  .report-actions { justify-content: flex-start; }
  .operation-row { flex-direction: column; align-items: flex-start; }
  .operation-actions { justify-content: flex-start; }
  .team-card { grid-column: span 1; }
}

@media (max-width: 640px) {
  .app-scroll { padding: 16px; }
  .stats-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .filters-bar { flex-direction: column; align-items: stretch; }
  .filters-bar { flex-wrap: wrap; }
  .select-box, .project-type-checks { width: 100%; }
  .project-type-checks.filter-inline { margin-left: 0; }
  .project-type-checks { flex-direction: column; align-items: stretch; }
  .toggle-inline { padding-top: 4px; }
  .trend-chart { gap: 8px; }
  .report-field-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  html { -webkit-text-size-adjust: 100%; }
  body { min-width: 0; }
  .login-screen { padding: 18px; align-items: stretch; }
  .login-box { width: 100%; padding: 24px 20px; border-radius: 24px; }
  .login-logo h1 { font-size: 2rem; }
  .navbar {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px 14px;
    align-items: center;
  }
  .desktop-only { display: none !important; }
  .nav-left { min-width: 0; }
  .brand-lockup { width: 100%; justify-content: flex-start; gap: 10px; }
  .brand-mark { width: 38px; height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
  .nav-brand { font-size: 1.05rem; }
  .nav-subtitle { display: none; }
  .mobile-header-actions { display: flex; justify-content: flex-end; gap: 8px; }
  .mobile-more-panel {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,0.035);
  }
  .mobile-more-panel:not(.hidden) { display: grid; }
  .nav-user { width: 100%; justify-content: space-between; }
  .app-scroll { padding: 14px 14px 86px; padding-bottom: 86px; }
  .mobile-bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(var(--cyan-rgb), 0.28);
    border-radius: 22px;
    background: color-mix(in srgb, var(--panel) 92%, transparent);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(16px);
  }
  .mobile-nav-item {
    border: 0;
    border-radius: 16px;
    min-height: 48px;
    background: transparent;
    color: var(--text-soft);
    font-weight: 800;
  }
  .mobile-nav-item.active {
    color: white;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.96), rgba(var(--cyan-rgb), 0.82));
    box-shadow: 0 10px 20px rgba(var(--accent-rgb), 0.22);
  }
  .hero-panel { padding: 18px; border-radius: 22px; }
  .hero-copy h2 { font-size: 1.7rem; line-height: 1.15; }
  .hero-copy p { font-size: 0.92rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .dashboard-card { min-height: auto; padding: 16px; }
  .card-header { flex-direction: column; align-items: stretch; gap: 10px; }
  .stats-grid { gap: 12px; }
  .stat-card { min-height: 260px; }
  .stat-metrics { grid-template-columns: 0.9fr 1.1fr; }
  .stat-metric { min-width: 0; }
  .dashboard-grid { gap: 12px; }
  .chart-bars { min-height: 180px; }
  .workspace-panel { padding: 14px; border-radius: 22px; }
  .workspace-header { gap: 12px; align-items: stretch; }
  .workspace-meta { justify-content: space-between; }
  .mobile-filter-toggle { display: block; }
  .filters-bar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(var(--cyan-rgb), 0.18);
    border-radius: 18px;
    background: rgba(var(--cyan-rgb), 0.035);
  }
  .filters-bar.collapsed .select-box,
  .filters-bar.collapsed .project-type-checks,
  .filters-bar.collapsed .toggle-inline {
    display: none;
  }
  .search-box { flex-basis: auto; }
  .select-box, .project-type-checks, .search-box input, .filter-select { min-height: 44px; }
  .proj-card { border-radius: 22px; }
  .proj-card::after { height: 4px; }
  .proj-card-head { padding: 14px; }
  .proj-card-head.mini-collapsed { padding: 8px 14px; min-height: 52px; }
  .project-main-line { gap: 12px; }
  .mini-collapsed-line { grid-template-columns: auto 108px minmax(0, 1fr); gap: 10px; }
  .mini-collapsed-progress { width: 108px; }
    .project-title-center.mini-collapsed-center { text-align: left; width: 100%; }
  .project-title-row.mini-collapsed-row { width: 100%; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; }
  .project-title-row.mini-collapsed-row .proj-card-title { width: auto; text-align: right; font-size: 1.05rem; }
  .project-toggle, .proj-btn, .icon-button {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
  .project-title-row {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }
  .proj-card-title {
    width: 100%;
    text-align: center;
    font-size: 1.25rem;
    overflow-wrap: anywhere;
  }
  .assignment-select { min-width: 112px; max-width: 100%; }
  .project-title-actions {
    width: 100%;
    justify-content: center;
    gap: 10px;
  }
  .project-mini-meta {
    justify-content: flex-start;
    margin-top: 6px;
  }
  .project-meta-row { padding: 0 14px 16px; }
  .project-summary-line { gap: 10px; }
  .project-summary-text { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
  .project-progress-meta, .part-progress-meta {
    justify-content: space-between;
    gap: 8px;
    font-size: 0.78rem;
  }
  .project-body { padding: 12px; }
  .part-row { padding: 14px 0; }
  .part-row-head { gap: 12px; padding: 0 0 12px; }
  .part-actions { order: 3; justify-content: center; width: 100%; }
  .part-title-line { justify-content: center; gap: 8px; }
  .part-num { font-size: 1.1rem; }
  .part-subline { display: flex; justify-content: center; gap: 12px; }
  .part-progress { width: 100%; }
  .part-processes { gap: 12px; }
  .proc-box { border-radius: 18px; }
  .proc-box-head { min-height: 46px; justify-content: center; gap: 8px; }
  .proc-box-body { min-height: auto; }
  .proc-box-body.cnc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cnc-grid .proc-item {
      grid-template-columns: minmax(56px, 1fr) auto;
      min-height: 58px;
    }
  .elec-info, .empty-process-body { min-height: 150px; }
  .modal-overlay {
    align-items: end;
    padding: 10px;
  }
  .modal, .modal-wide {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 22px;
  }
  .modal-head, .modal-footer { padding: 14px; }
  .modal-body {
    padding: 14px;
    max-height: calc(100vh - 160px);
  }
  .modal-footer { display: grid; grid-template-columns: 1fr 1fr; }
  .modal-footer .btn { width: 100%; min-height: 44px; }
  .type-selector { gap: 10px; }
  .type-option { padding: 12px; }
  .process-chip { padding: 8px 12px; min-height: 38px; }
  .report-preview-card { margin-top: 12px; }
  .report-config-panel { padding: 12px; }
  .report-content-row { gap: 12px; }
  .report-chip-list { gap: 8px; }
  .report-actions, .report-actions .btn { width: 100%; }
  .insight-item, .operation-row, .team-user-row { padding: 12px; }
  .insight-item-head { align-items: flex-start; gap: 10px; }
  .insight-right { white-space: nowrap; }
  .toast {
    left: 14px;
    right: 14px;
    bottom: 14px;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .app-scroll { padding: 10px 10px 86px; padding-bottom: 86px; }
  .navbar { padding: 10px; }
  .mobile-user-brief { display: none; }
  .stat-card { min-height: 240px; }
  .stat-metric-value { font-size: 1.45rem; }
  .project-summary-text { grid-template-columns: 1fr; }
  .assignment-select, .filter-select, .report-field select, .report-field input { width: 100%; }
  .project-title-row, .part-title-line, .part-tags { flex-direction: column; }
  .modal-footer { grid-template-columns: 1fr; }
}










.archive-panel { display: grid; gap: 16px; }
.archive-header { margin-bottom: 0; }
.archive-toolbar { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; }
.archive-search-box { flex: 1 1 320px; }
.archive-toolbar-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.archive-ledger-shell { border: 1px solid rgba(var(--cyan-rgb), 0.18); border-radius: 22px; overflow: hidden; background: rgba(4, 11, 20, 0.6); }
.archive-ledger-head-shell { margin-top: 16px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.archive-ledger-body-shell { border-top: none; border-top-left-radius: 0; border-top-right-radius: 0; }
.archive-ledger-head, .archive-row { display: grid; grid-template-columns: 0.55fr 0.7fr 2.95fr; }
.archive-ledger-head { background: rgba(7, 23, 36, 0.96); color: var(--text-dim); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
.archive-ledger-head > span, .archive-cell { padding: 12px 14px; border-right: 1px solid rgba(255,255,255,0.06); }
.archive-ledger-head > span:last-child, .archive-cell:last-child { border-right: none; }
.archive-row { border-top: 1px solid rgba(255,255,255,0.05); min-height: 54px; }
.archive-row-root { background: rgba(9, 22, 36, 0.5); }
.archive-row-project { background: rgba(8, 17, 29, 0.36); }
.archive-row-part { background: rgba(7, 13, 22, 0.24); }
.archive-row-process { background: rgba(4, 9, 15, 0.22); }
.archive-row-empty { background: rgba(7, 13, 22, 0.18); }
.archive-tree-cell, .archive-type-cell, .archive-process-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.archive-node-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archive-root-label, .archive-project-name { font-weight: 700; }
.archive-toggle, .archive-toggle-spacer, .archive-add-btn { width: 28px; height: 28px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.archive-toggle { border: 1px solid rgba(var(--cyan-rgb), 0.24); background: rgba(var(--cyan-rgb), 0.08); color: var(--cyan); cursor: pointer; }
.archive-toggle-spacer { opacity: 0; pointer-events: none; }
.archive-add-btn { margin-left: auto; border: 1px solid rgba(255, 177, 104, 0.28); background: rgba(255, 177, 104, 0.08); color: #ffb168; cursor: pointer; font-weight: 700; }
.archive-count-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; padding: 0 8px; height: 22px; border-radius: 999px; background: rgba(255,255,255,0.05); color: var(--text-dim); font-size: 0.76rem; }
.archive-process-tag { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,0.05); color: var(--text-soft); font-size: 0.82rem; }
.archive-process-tag.status-completed { color: #6bffb0; border: 1px solid rgba(46, 204, 113, 0.28); }
.archive-process-tag.status-in-progress { color: #ffd15b; border: 1px solid rgba(243, 184, 71, 0.28); }
.archive-process-tag.status-not-started { color: #b8c2d9; border: 1px solid rgba(184, 194, 217, 0.18); }
.archive-empty-cell, .archive-empty-state { color: var(--text-dim); }
.archive-empty-state { padding: 18px; }
@media (max-width: 1100px) {
  .archive-ledger-shell { overflow-x: auto; }
  .archive-ledger-head, .archive-row { min-width: 980px; }
}
.archive-ledger-head > span { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.archive-head-with-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.archive-head-part {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.archive-head-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.archive-head-type-strip {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  flex: 1 1 auto;
}
.archive-head-controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}
.archive-head-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: nowrap;
}
.archive-head-toggle input {
  margin: 0;
  accent-color: rgb(var(--cyan-rgb));
}
.archive-head-add { width: 28px; height: 28px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 177, 104, 0.28); background: rgba(255, 177, 104, 0.08); color: #ffb168; cursor: pointer; font-weight: 700; flex: 0 0 auto; }
.archive-ledger-body { display: grid; grid-template-columns: 0.55fr 0.7fr 2.95fr; min-height: 360px; overflow: visible; }
.archive-column { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid rgba(255,255,255,0.06); position: relative; transition: background 0.2s ease, box-shadow 0.2s ease; }
.archive-column:last-child { border-right: none; }
.archive-column.is-active-column { background: rgba(255, 177, 104, 0.025); box-shadow: inset 0 0 0 1px rgba(255, 177, 104, 0.05); }
.archive-column-list { display: grid; gap: 8px; padding: 10px; align-content: start; overflow: visible; }
.archive-column-item { width: 100%; border: 1px solid rgba(var(--cyan-rgb), 0.16); border-radius: 16px; background: rgba(8, 17, 29, 0.32); color: var(--text-soft); padding: 9px 12px; text-align: left; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; cursor: pointer; position: relative; transition: border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease; }
.archive-column-item:hover { border-color: rgba(var(--cyan-rgb), 0.34); background: rgba(var(--cyan-rgb), 0.08); }
.archive-column-item.active {
  border-color: rgba(var(--cyan-rgb), 0.46);
  background: rgba(16, 74, 108, 0.92);
  color: #eefbff;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.16),
    inset 0 0 0 1px rgba(var(--cyan-rgb), 0.14);
  z-index: 2;
}
.archive-column-item.dimmed { opacity: 0.62; filter: saturate(0.78) brightness(0.9); }

.archive-column-item-label { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archive-column-item-aside { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.archive-column-item-meta { color: var(--text-dim); font-size: 0.78rem; transition: color 0.2s ease; white-space: nowrap; }
.archive-column-item.active .archive-column-item-meta { color: rgba(197, 240, 248, 0.88); }
.archive-column-empty { padding: 14px 10px; color: var(--text-dim); }
.archive-column-item.archive-process-item { cursor: default; }
.archive-column-item.archive-process-item:hover { border-color: rgba(var(--cyan-rgb), 0.16); background: rgba(8, 17, 29, 0.32); }
.archive-column-item.status-completed { border-color: rgba(46, 204, 113, 0.24); }
.archive-column-item.status-in-progress { border-color: rgba(243, 184, 71, 0.24); }
.archive-column-item.status-not-started { border-color: rgba(184, 194, 217, 0.16); }
.archive-column-item.archive-type-item.type-new-mold { border-color: rgba(var(--cyan-rgb), 0.24); }
.archive-column-item.archive-type-item.type-modify-mold { border-color: rgba(255, 177, 104, 0.3); }
.archive-column-item.archive-type-item.type-repair-mold { border-color: rgba(255, 112, 112, 0.3); }
.archive-column-item.archive-type-item.type-fixture-other { border-color: rgba(90, 166, 255, 0.3); }
.archive-part-type-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 2px 10px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}
.archive-part-type-strip.in-head {
  padding: 0;
  margin: 0;
  justify-content: flex-end;
  flex-wrap: nowrap;
}
.archive-part-type-strip.in-head .archive-type-pill {
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.74rem;
}
.archive-type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
}
.archive-type-pill em {
  font-style: normal;
  color: inherit;
  opacity: 0.82;
  font-size: 0.76em;
}
.archive-type-pill.active {
  border-color: rgba(var(--cyan-rgb), 0.42);
  background: rgba(16, 74, 108, 0.9);
  color: #eefbff;
  box-shadow: inset 0 0 0 1px rgba(var(--cyan-rgb), 0.12);
}
.archive-type-pill.type-modify-mold.active {
  border-color: rgba(255, 177, 104, 0.46);
  background: rgba(127, 74, 26, 0.92);
  color: #fff2de;
}
.archive-type-pill.type-repair-mold.active {
  border-color: rgba(255, 112, 112, 0.46);
  background: rgba(120, 38, 42, 0.92);
  color: #ffe8e8;
}
.archive-part-items {
  display: grid;
  gap: 8px;
}
.archive-part-card {
  display: grid;
  gap: 10px;
}
.archive-part-collapsed-toggle {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 14px;
  border: 1px solid rgba(var(--cyan-rgb), 0.16);
  border-radius: 16px;
  background: rgba(8, 17, 29, 0.32);
  text-align: left;
}
.archive-part-collapsed-toggle:hover {
  border-color: rgba(var(--cyan-rgb), 0.34);
  background: rgba(var(--cyan-rgb), 0.08);
}
.archive-part-collapsed-progress {
  width: 132px;
}
.archive-part-collapsed-center {
  min-width: 0;
}
.archive-part-collapsed-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
}
.archive-part-collapsed-left {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.archive-part-collapsed-name {
  min-width: 0;
  max-width: 100%;
  font-size: 1.12rem;
  font-weight: 700;
  color: #eefbff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}
.archive-part-collapsed-anchor {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.archive-part-collapsed-owner {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 2px;
}
.archive-part-owner-current {
  background:
    linear-gradient(135deg, rgba(var(--cyan-rgb), 0.055), rgba(var(--accent-rgb), 0.03)),
    rgba(var(--cyan-rgb), 0.02);
  border: 1px solid rgba(var(--cyan-rgb), 0.18);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.015), 0 4px 12px rgba(var(--cyan-rgb), 0.035);
}
.archive-part-owner-current .action-select,
.archive-part-owner-current .archive-part-owner-text {
  border-color: rgba(var(--cyan-rgb), 0.3);
  background: rgba(var(--cyan-rgb), 0.035);
}
.archive-part-collapsed-owner-side {
  position: absolute;
  left: 100%;
  margin-left: 8px;
  display: flex;
  align-items: center;
}
.archive-part-collapsed-row .assignment-controls,
.archive-part-collapsed-anchor .assignment-controls {
  flex-wrap: nowrap;
}
.archive-part-collapsed-right {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  white-space: nowrap;
}
.archive-part-collapsed-right .project-created-at {
  margin-left: auto;
}
.archive-part-owner-text {
  color: var(--text);
  font-size: 0.92rem;
  white-space: nowrap;
}
.archive-part-card.expanded {
  gap: 12px;
  padding: 10px 12px 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(13, 23, 36, 0.96), rgba(9, 18, 31, 0.98));
  border: 1px solid rgba(72, 97, 122, 0.28);
  box-shadow: inset 0 1px 0 rgba(180, 205, 226, 0.04);
}
.archive-part-card.dimmed {
  opacity: 0.62;
  filter: saturate(0.78) brightness(0.9);
}
.archive-part-card-toggle.expanded {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}
.archive-part-expanded-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, 260px);
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--cyan) 28%, var(--line));
  background: rgba(24, 95, 133, 0.96);
  box-shadow: inset 0 1px 0 rgba(130, 224, 255, 0.08);
  text-align: left;
}
.archive-part-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.archive-part-title-wrap {
  justify-items: center;
  text-align: center;
}
.archive-part-title-line,
.archive-part-subline {
  justify-content: center;
}
.archive-part-progress {
  min-width: 0;
}
.archive-part-processes {
  display: grid;
  gap: 10px;
  padding: 0;
}
.archive-part-processes .part-processes {
  grid-template-columns: minmax(320px, 2.2fr) minmax(220px, 1.25fr) minmax(170px, 1fr);
}
.archive-part-processes .proc-box-wrapper {
  min-width: 0;
}
.archive-part-processes .proc-box {
  border-radius: 18px;
}
.archive-part-processes .proc-box-head {
  padding: 8px 12px;
  min-height: 40px;
}
.archive-part-processes .proc-box-body {
  padding: 10px;
  min-height: 74px;
}
.archive-part-processes .cnc-grid .proc-item {
  min-height: 50px;
  padding: 5px 7px;
}
.archive-part-processes .cnc-grid .proc-item .completed-by {
  font-size: 0.64rem;
}
.archive-part-processes .elec-info,
.archive-part-processes .empty-process-body {
  min-height: 138px;
  padding: 14px 10px;
}
.archive-part-processes .elec-count-num {
  font-size: 1.7rem;
}
@media (max-width: 1100px) {
  .archive-ledger-body { min-width: 980px; }
  .archive-part-collapsed-toggle {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 10px;
  }
  .archive-part-collapsed-progress {
    width: 108px;
  }
  .archive-part-collapsed-row {
    gap: 8px;
  }
  .archive-part-expanded-head {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .archive-part-actions {
    justify-content: center;
    width: 100%;
  }
  .archive-part-progress {
    width: 100%;
  }
}




