:root {
  --wine: #7f1c39;
  --wine2: #5f122a;
  --rose: #bd6885;
  --dusty: #b98392;
  --blush: #dbacbc;
  --line: rgba(127, 28, 57, .14);
  --text: #35242c;
  --muted: #77666f;
  --bg: #fbf8f9;
  --panel: #fff;
  --good: #48b99f;
  --warn: #b57921;
  --bad: #c94654;
  --blue: #6577bd;
  --gray: #8a96a3;
  --shadow: 0 12px 34px rgba(78, 38, 54, .09);
  --radius: 18px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 1180px;
  color: var(--text);
  background: linear-gradient(150deg, #fff 0%, #fbf7f9 52%, #f6f1f3 100%);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 230px;
  display: flex;
  flex-direction: column;
  padding: 18px 13px 14px;
  border-right: 1px solid var(--line);
  background: #fff;
  box-shadow: 8px 0 24px rgba(78, 38, 54, .05);
  transition: width .2s ease, padding .2s ease;
}
.sidebar-toggle {
  position: absolute;
  top: 20px;
  right: -13px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 0;
  background: #fff;
  color: var(--wine);
  box-shadow: 0 4px 12px rgba(78, 38, 54, .12);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.sidebar-brand { height: 48px; display: flex; align-items: center; gap: 8px; overflow: hidden; }
.sidebar-brand .brand-logo { max-width: 92px; height: 30px; object-fit: contain; }
.sidebar-brand .office-logo { max-width: 92px; height: 29px; }
.sidebar-title { margin: 9px 7px 18px; color: var(--text); font-size: 15px; font-weight: 700; }
.sidebar-workspace {
  flex: 0 0 auto;
  margin-bottom: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.sidebar-workspace .tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin: 0 0 9px;
  padding: 3px;
  border-radius: 7px;
  background: #f7f1f3;
}
.sidebar-workspace .tab {
  min-width: 0;
  padding: 7px 3px;
  border-radius: 5px;
  font-size: 11px;
}
.sidebar-workspace .tab.active {
  background: #fff;
  box-shadow: 0 1px 5px rgba(78, 38, 54, .09);
}
.sidebar-workspace .filters {
  grid-template-columns: minmax(0, 1.35fr) minmax(68px, .65fr);
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.sidebar-workspace .data-field { grid-column: 1 / -1; }
.sidebar-workspace .field label { margin: 0 0 4px 2px; font-size: 9px; }
.sidebar-workspace .field input,
.sidebar-workspace .field select,
.sidebar-workspace .field-value {
  min-width: 0;
  height: 32px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 10px;
}
.sidebar-workspace .field-value { gap: 6px; background: #fbfdfc; }
.online-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--good); }
.sidebar-workspace .kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin: 8px 0 0;
}
.sidebar-workspace .kpi {
  min-width: 0;
  padding: 7px 4px;
  border-radius: 6px;
  box-shadow: none;
  text-align: center;
}
.sidebar-workspace .kpi:before { top: 7px; bottom: 7px; width: 2px; }
.sidebar-workspace .kpi-label { font-size: 8px; white-space: nowrap; }
.sidebar-workspace .kpi-value { margin: 3px 0 0; font-size: 18px; }
.sidebar-workspace .kpi-note { display: none; }
.dimension-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 5px; }
.dimension-stats .dimension-title { grid-column: 1 / -1; color: var(--gray); font-size: 9px; }
.dimension-stats span:not(.dimension-title) { display: grid; gap: 1px; padding: 5px 2px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: #fff; text-align: center; font-size: 8px; }
.dimension-stats b { color: var(--wine); font-size: 14px; }
.side-nav { min-height: 0; overflow-y: auto; display: grid; gap: 3px; }
.side-section-label { margin: 16px 9px 6px; color: var(--gray); font-size: 10px; }
.side-categories { display: grid; gap: 3px; }
#workspaceSideNav { display: grid; gap: 3px; }
.side-topic-list { display: grid; gap: 4px; }
.side-topic-card { width: 100%; min-width: 0; display: grid; grid-template-columns: 5px minmax(0, 1fr); gap: 8px; border: 0; border-radius: 7px; padding: 7px 9px; color: var(--text); background: transparent; text-align: left; cursor: pointer; }
.side-topic-card:hover { background: #faf5f7; }
.side-topic-card > i { align-self: stretch; border-radius: 3px; }
.side-topic-card span { min-width: 0; }
.side-topic-card b, .side-topic-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-topic-card b { font-size: 10px; }
.side-topic-card small { margin-top: 3px; color: var(--gray); font-size: 8px; }
.side-empty { padding: 6px 10px; color: var(--gray); font-size: 9px; }
.side-nav-item {
  width: 100%;
  min-height: 38px;
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 7px;
  padding: 7px 10px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}
.side-nav-item:hover { color: var(--text); background: #faf5f7; }
.side-nav-item.active { color: var(--wine); background: #f5e7ec; font-weight: 700; }
.side-nav-item b { min-width: 20px; color: var(--gray); font-size: 10px; text-align: right; }
.side-category-label { min-width: 0; display: grid; gap: 2px; }
.side-category-label > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-category-label small { overflow: hidden; color: var(--gray); font-size: 9px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.side-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dusty); }
.side-dot.all { background: var(--wine); }
.side-icon { width: 18px; color: var(--dusty); font-size: 13px; text-align: center; }
.sidebar-foot { margin-top: auto; padding: 13px 9px 2px; color: var(--muted); font-size: 10px; border-top: 1px solid var(--line); }
.sidebar-foot span { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--good); }
.main-shell { min-height: 100vh; margin-left: 230px; padding: 20px 24px 32px; transition: margin-left .2s ease, margin-right .2s ease; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.page-title-line { display: flex; align-items: baseline; gap: 9px; }
#workspaceTitleDivider { color: var(--dusty); font-weight: 400; }
.series-owner-badge { padding: 4px 7px; border-radius: 5px; background: #f5e7ec; color: var(--wine); font-size: 10px; font-weight: 500; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand-logo { height: 42px; width: auto; display: block; object-fit: contain; }
.office-logo { height: 40px; }
h1 { margin: 0; font-size: 22px; letter-spacing: .04em; }
h2 { margin: 0; font-size: 16px; }
.subtitle, p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.muted { color: var(--muted); font-size: 12px; }
.actions, .tabs { display: flex; gap: 8px; align-items: center; }
.btn {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--text);
  padding: 10px 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
}
.btn:hover { background: #faf0f4; border-color: rgba(127, 28, 57, .3); transform: translateY(-1px); }
.btn.primary { border: 0; color: #fff; background: linear-gradient(135deg, var(--rose), var(--wine)); }
.btn.compact { min-height: 30px; border-radius: 7px; padding: 6px 10px; font-size: 11px; }
.btn:disabled { cursor: not-allowed; opacity: .42; transform: none; }
.status-pill {
  font-size: 12px;
  padding: 8px 11px;
  border-radius: 999px;
  background: #edf9f5;
  color: #287d69;
  border: 1px solid rgba(72, 185, 159, .28);
}
.filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(127, 28, 57, .12);
  border-radius: var(--radius);
  padding: 13px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.field label { display: block; color: var(--muted); font-size: 11px; margin: 0 0 6px 3px; }
.field input, .field select, .field-value {
  width: 100%;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(127, 28, 57, .15);
  background: #fff;
  color: var(--text);
  padding: 0 10px;
  display: flex;
  align-items: center;
  font-size: 12px;
}
.tabs { margin-bottom: 14px; }
.tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
}
.tab.active { background: #f5e7ec; color: var(--wine); box-shadow: inset 0 0 0 1px rgba(127, 28, 57, .12); }
.view { display: none; }
.view.active { display: block; }
.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.kpi {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #fff, #fbf7f9);
  border: 1px solid rgba(127, 28, 57, .1);
  border-radius: 16px;
  padding: 17px 18px 17px 24px;
  box-shadow: var(--shadow);
}
.kpi:before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--rose), var(--wine));
}
.kpi:after {
  display: none;
}
.kpi.warn:before { background: linear-gradient(180deg, #e9c074, #b57921); }
.kpi.good:before { background: linear-gradient(180deg, #5fcfb6, #258873); }
.kpi.bad:before { background: linear-gradient(180deg, #ef8d97, #c94654); }
.kpi-label { position: relative; z-index: 1; font-size: 12px; color: var(--muted); }
.kpi-value { position: relative; z-index: 1; font-size: 30px; font-weight: 700; margin: 8px 0 4px; line-height: 1.04; font-variant-numeric: tabular-nums; }
.kpi-note { position: relative; z-index: 1; font-size: 11px; color: var(--gray); }
.kpi.warn .kpi-value { color: #b57921; }
.kpi.good .kpi-value { color: #258873; }
.kpi.bad .kpi-value { color: #c94654; }
.panel {
  background: linear-gradient(150deg, #fff, #fcf9fa);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 15px;
  margin-bottom: 12px;
}
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.create-panel form, #personForm { display: grid; grid-template-columns: 1fr 170px 150px auto; gap: 10px; }
#personForm { grid-template-columns: 1fr 1fr auto; align-content: start; }
#personForm h2 { grid-column: 1 / -1; }
input, select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  color: var(--text);
  background: #fff;
  font: inherit;
}
.toolbox {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 12px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: -8px 0 24px rgba(78, 38, 54, .06);
}
.resource-sidebar {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 18;
  width: 260px;
  border-width: 0 0 0 1px;
  transition: width .2s ease, padding .2s ease;
}
.resource-sidebar-toggle {
  position: absolute;
  top: 20px;
  left: -13px;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 0;
  color: var(--wine);
  background: #fff;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(78, 38, 54, .1);
}
.resource-sidebar-title { padding: 2px 4px 4px; color: var(--text); font-size: 15px; font-weight: 700; }
.resource-collapsed-actions { display: none; gap: 8px; }
.resource-collapsed-actions button {
  width: 40px;
  min-height: 47px;
  display: grid;
  place-items: center;
  gap: 1px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 4px 2px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.resource-collapsed-actions button:hover { border-color: var(--line); color: var(--wine); background: #f7eaef; }
.resource-collapsed-actions b { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--wine); font-size: 11px; }
.resource-collapsed-actions span { font-size: 9px; }
.schedule-view-active .main-shell { margin-right: 260px; }
.schedule-view-active.resource-sidebar-collapsed .main-shell { margin-right: 58px; }
.resource-sidebar-collapsed .resource-sidebar { width: 58px; padding: 58px 8px 12px; }
.resource-sidebar-collapsed .resource-sidebar-title,
.resource-sidebar-collapsed .resource-sidebar .toolbox-tabs,
.resource-sidebar-collapsed .resource-sidebar .tool-panels { display: none; }
.resource-sidebar-collapsed .resource-collapsed-actions { display: grid; }
.toolbox-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.toolbox-tabs button {
  height: 31px;
  border: 0;
  border-radius: 5px;
  padding: 0 9px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  white-space: nowrap;
}
.toolbox-tabs button.active { color: var(--wine); background: #f5e7ec; font-weight: 700; }
.toolbox-tabs span { margin-left: 3px; color: var(--gray); font-size: 9px; }
.tool-panels { min-width: 0; flex: 1; overflow: hidden; }
.tool-group {
  display: none;
  min-width: 0;
}
.tool-group.active { display: block; height: 100%; }
.chip-pool { display: flex; align-content: flex-start; flex-wrap: wrap; gap: 7px; max-height: calc(100vh - 105px); overflow-x: hidden; overflow-y: auto; padding: 4px 3px 12px; }
.chip-pool::-webkit-scrollbar { width: 5px; }
.chip-pool::-webkit-scrollbar-track { border-radius: 3px; background: #f2e8eb; }
.chip-pool::-webkit-scrollbar-thumb { border-radius: 3px; background: #b98392; }
.chip {
  flex: 0 0 auto;
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 11px;
  white-space: nowrap;
  color: #fff;
  background: var(--wine);
  cursor: grab;
  user-select: none;
  box-shadow: 0 7px 16px rgba(78, 38, 54, .12);
}
.chip:active { cursor: grabbing; }
.action-chip { gap: 5px; padding-right: 4px; }
.chip-delete, .icon-delete {
  width: 18px;
  height: 18px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
  color: currentColor;
  background: rgba(255, 255, 255, .22);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.chip-delete:hover { background: rgba(255, 255, 255, .4); }
.icon-delete { color: var(--muted); background: transparent; }
.icon-delete:hover { color: var(--bad); background: rgba(201, 70, 84, .1); }
.chip.status { background: var(--blue); }
.chip.prepare { background: var(--gray); }
.chip.make { background: var(--warn); }
.chip.review { background: var(--blue); }
.chip.publish { background: var(--wine); }
.chip.overdue { background: var(--bad); }
.chip.manual { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(127, 28, 57, .2); }
.chip.selected { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(127, 28, 57, .36); }

.schedule-main { margin-bottom: 12px; }
.schedule-main .panel-head { padding: 2px 2px 0; }
.create-disclosure summary { list-style: none; }
.create-disclosure summary::-webkit-details-marker { display: none; }
.create-disclosure[open] summary { background: var(--wine2); }
.sidebar-create { margin-top: 8px; }
.sidebar-create summary { width: 100%; min-height: 32px; padding: 7px 10px; font-size: 11px; }
.sidebar-create form {
  display: grid;
  gap: 6px;
  margin-top: 7px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #faf7f8;
}
.sidebar-create input, .sidebar-create select, .sidebar-create button { width: 100%; height: 32px; font-size: 10px; }

body.sidebar-collapsed .sidebar { width: 64px; padding-right: 8px; padding-left: 8px; }
body.sidebar-collapsed .main-shell { margin-left: 64px; }
body.sidebar-collapsed .sidebar-title,
body.sidebar-collapsed .sidebar-workspace,
body.sidebar-collapsed .side-section-label,
body.sidebar-collapsed .sidebar-brand .office-logo { display: none !important; }
body.sidebar-collapsed .sidebar-brand { justify-content: center; }
body.sidebar-collapsed .sidebar-brand .brand-logo { width: 42px; max-width: 42px; object-fit: contain; }
body.sidebar-collapsed .side-nav { justify-items: center; margin-top: 12px; }
body.sidebar-collapsed .side-categories { justify-items: center; }
body.sidebar-collapsed .side-nav-item {
  width: 40px;
  grid-template-columns: 18px;
  justify-content: center;
  gap: 0;
  padding: 7px;
  font-size: 0;
}
body.sidebar-collapsed .side-nav-item > span:nth-child(2),
body.sidebar-collapsed .side-nav-item b { display: none; }
body.sidebar-collapsed .side-nav-item .side-icon { font-size: 14px; }
body.sidebar-collapsed .sidebar-foot { padding-right: 0; padding-left: 0; font-size: 0; text-align: center; }
body.sidebar-collapsed .sidebar-foot span { margin-right: 0; }
.schedule-horizontal-nav {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  margin-bottom: 5px;
  padding: 2px 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 4px 12px rgba(78, 38, 54, .07);
}
.schedule-horizontal-nav button {
  width: 28px;
  height: 26px;
  border: 0;
  border-radius: 5px;
  background: #f5e7ec;
  color: var(--wine);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.schedule-horizontal-nav button:hover { background: #ead4dc; }
.schedule-top-scroll { height: 18px; overflow-x: scroll; overflow-y: hidden; }
.schedule-top-scroll > div { height: 1px; }
.schedule-top-scroll::-webkit-scrollbar { height: 10px; }
.schedule-top-scroll::-webkit-scrollbar-track { border-radius: 5px; background: #f2e8eb; }
.schedule-top-scroll::-webkit-scrollbar-thumb { border-radius: 5px; background: #b98392; }
.schedule {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.schedule-grid { min-width: max-content; }
.schedule-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 116px;
  border-bottom: 1px solid rgba(127, 28, 57, .1);
}
.schedule-row.head { min-height: 54px; position: sticky; top: 0; z-index: 5; }
.schedule-item {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 10px 12px;
}
.schedule-row.head .schedule-item, .days { background: #f3e5ea; color: var(--wine); font-weight: 700; }
.schedule-item.dropover { background: rgba(72, 185, 159, .1); box-shadow: inset 0 0 0 2px rgba(72, 185, 159, .28); }
.schedule-item-title { min-width: 0; font-size: 13px; line-height: 1.35; }
.schedule-title-theme,
.schedule-title-detail { display: block; overflow-wrap: anywhere; }
.schedule-title-theme { color: var(--wine); font-size: 11px; font-weight: 700; }
.schedule-title-detail { margin-top: 2px; color: var(--text); font-size: 13px; font-weight: 700; }
.item-link {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.item-link:hover { color: var(--wine); text-decoration: underline; }
.schedule-item-head, .kanban-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.schedule-item-meta { min-height: 25px; display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 5px; font-size: 11px; color: var(--muted); }
.schedule-archive-button {
  flex: none;
  height: 24px;
  border: 1px solid rgba(72, 185, 159, .35);
  border-radius: 6px;
  padding: 0 8px;
  color: #237562;
  background: #edf9f5;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.schedule-archive-button:hover { border-color: #48b99f; background: #dcf4ed; }
.project-people { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.days { height: 54px; display: flex; }
.day {
  width: 80px;
  height: 54px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(127, 28, 57, .1);
  font-size: 11px;
}
.day small { font-size: 10px; color: var(--rose); }
.day.month-start { position: relative; box-shadow: inset 3px 0 0 var(--wine); background: #ead4dc; }
.day.month-start b { margin-top: 10px; }
.month-label {
  position: absolute;
  top: 3px;
  left: 7px;
  color: var(--wine);
  font-size: 11px;
  font-weight: 800;
}
.cells { display: flex; background: linear-gradient(90deg, rgba(127, 28, 57, .055) 1px, transparent 1px) 0 0 / 80px 100%; }
.cell {
  width: 80px;
  min-height: 116px;
  flex: none;
  border-right: 1px solid rgba(127, 28, 57, .06);
  padding: 7px 4px;
  overflow: auto;
}
.cell.today { background: rgba(127, 28, 57, .04); }
.cell[data-date$="-01"] { box-shadow: inset 2px 0 0 rgba(127, 28, 57, .18); }
.cell.dropover { background: rgba(72, 185, 159, .12); box-shadow: inset 0 0 0 2px rgba(72, 185, 159, .35); }
.cell-tags { display: flex; flex-wrap: wrap; gap: 4px; align-content: flex-start; }

.kanban { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 12px; padding-bottom: 8px; }
.kanban-col { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; min-height: 240px; }
.kanban-col h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; color: var(--text); font-size: 14px; }
.kanban-col h3 i, .category-preview i { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--category-color); }
.kanban-col h3 span { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 400; }
.kanban-owner { margin: -4px 0 10px 16px; color: var(--muted); font-size: 10px; }
.kanban-card { border: 1px solid var(--line); border-left: 3px solid var(--category-color); border-radius: 8px; padding: 10px; margin-bottom: 8px; background: #fff; }
.kanban-dimensions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin: 7px 0 9px; }
.kanban-dimensions span { padding: 4px 2px; border-radius: 5px; color: var(--muted); background: #f7f2f4; text-align: center; font-size: 8px; }
.category-time-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px; margin: 8px 0 5px; }
.category-time-controls input { min-width: 0; width: 100%; height: 30px; font-size: 10px; }
.category-time-controls button { border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; color: var(--muted); background: #fff; cursor: pointer; font-size: 9px; }
.category-timeline { display: flex; gap: 4px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: thin; }
.category-timeline button { flex: none; min-height: 25px; border: 1px solid var(--line); border-radius: 5px; padding: 3px 6px; color: var(--muted); background: #fff; cursor: pointer; font-size: 8px; }
.category-timeline button:hover, .category-timeline button.active { color: #fff; border-color: var(--category-color); background: var(--category-color); }
.category-timeline > span { color: var(--gray); font-size: 9px; }
.kanban-card b { display: block; font-size: 13px; }
.kanban-card-head b { min-width: 0; }
.kanban-title { min-width: 0; font-size: 13px; font-weight: 700; line-height: 1.35; }
.kanban-card span { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; }
.kanban-card small { display: block; color: var(--gray); font-size: 10px; margin-top: 5px; }
.kanban-record-list { max-height: 520px; display: grid; gap: 6px; overflow-y: auto; padding-right: 4px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(127, 28, 57, .3) transparent; }
.kanban-record-list::-webkit-scrollbar { width: 6px; }
.kanban-record-list::-webkit-scrollbar-track { background: transparent; }
.kanban-record-list::-webkit-scrollbar-thumb { border-radius: 6px; background: rgba(127, 28, 57, .28); }
.kanban-record-list::-webkit-scrollbar-thumb:hover { background: rgba(127, 28, 57, .44); }
.kanban-card.archived { border-left-color: #8a96a3; background: #fbfbfc; }
.kanban-card.active { background: #fffdf7; }
.record-state { flex: none; margin: 0 !important; color: var(--wine) !important; font-size: 9px !important; }
.record-deliverables { display: grid; gap: 5px; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line); list-style: none; }
.record-deliverables li { min-width: 0; padding-left: 8px; border-left: 2px solid var(--category-color); }
.record-deliverables b { overflow-wrap: anywhere; font-size: 10px; font-weight: 600; line-height: 1.4; }
.record-deliverables small { margin-top: 1px; font-size: 8px; }
.record-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.record-toolbar h2 { margin: 0 0 4px; font-size: 16px; }
.record-toolbar p { margin: 0; color: var(--muted); font-size: 11px; }
.record-toolbar label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; }
.record-toolbar select { min-width: 130px; }
.record-create { padding: 10px 12px; }
.record-create > summary { width: fit-content; list-style: none; }
.record-create > summary::-webkit-details-marker { display: none; }
.cycle-record-form { display: grid; grid-template-columns: 1.4fr 150px 160px 1fr auto; gap: 9px; align-items: start; margin-top: 10px; }
.cycle-people-field { grid-column: 1 / -2; display: grid; gap: 6px; }
.cycle-people-field > span { color: var(--muted); font-size: 10px; }
.cycle-people-options { display: flex; flex-wrap: wrap; gap: 5px; }
.cycle-people-options label { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; font-size: 10px; }
.cycle-people-options input { width: 14px; height: 14px; accent-color: var(--wine); }
.topic-board { display: grid; gap: 12px; max-height: calc(100vh - 300px); min-height: 320px; overflow-y: auto; padding-right: 7px; scrollbar-gutter: stable; }
.topic-board::-webkit-scrollbar { width: 8px; }
.topic-board::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 8px; background: #cdbdc3; background-clip: padding-box; }
.topic-board::-webkit-scrollbar-track { background: transparent; }
.topic-section .panel-head > b { color: var(--wine); font-size: 20px; }
.topic-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.idea-form { display: grid; grid-template-columns: 1.2fr 180px 150px 1fr auto; gap: 9px; }
.topic-card {
  min-height: 210px;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--category-color);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: .2s;
}
.topic-card:hover { border-color: rgba(127, 28, 57, .28); box-shadow: 0 10px 25px rgba(78, 38, 54, .09); transform: translateY(-1px); }
.topic-card.idea-card { border-style: dashed; background: #fdfbfc; }
.idea-badge { padding: 5px 8px; border-radius: 6px; color: #8a6630; background: #f7eedc; font-size: 10px; }
.idea-note { min-height: 36px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.topic-card-foot em.idea-status { color: #8a6630; }
.topic-card-head, .topic-title-row, .topic-card-foot, .detail-summary, .detail-progress-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topic-category { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.topic-category i { width: 8px; height: 8px; border-radius: 50%; background: var(--category-color); }
.topic-date { color: var(--text); font-size: 14px; font-weight: 700; text-align: right; }
.topic-date small { display: block; color: var(--muted); font-size: 9px; font-weight: 400; margin-bottom: 2px; }
.topic-title-row { align-items: flex-start; margin: 16px 0 14px; }
.topic-title-row h3 { margin: 0; font-size: 17px; line-height: 1.4; }
.topic-progress { height: 7px; flex: 1; overflow: hidden; border-radius: 4px; background: #f1e8eb; }
.topic-progress span { display: block; height: 100%; border-radius: inherit; background: var(--category-color, var(--wine)); transition: width .25s; }
.topic-progress-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; font-size: 11px; color: var(--muted); }
.topic-progress-meta b { color: var(--text); }
.topic-card-foot { align-items: flex-end; margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.topic-card-foot em { color: var(--bad); font-style: normal; }
.topic-card-foot em.ok { color: #258873; }

body.modal-open { overflow: hidden; }
[hidden] { display: none !important; }
.detail-modal { position: fixed; inset: 0; z-index: 50; }
.detail-backdrop { position: absolute; inset: 0; background: rgba(48, 30, 38, .35); }
.detail-sheet {
  position: absolute;
  top: 18px;
  right: 18px;
  bottom: 18px;
  width: min(980px, calc(100vw - 36px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 0 24px 70px rgba(48, 30, 38, .24);
}
.detail-close {
  position: sticky;
  float: right;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  font-size: 22px;
}
.detail-close:hover { color: var(--bad); }
.detail-header { padding: 24px 66px 20px 24px; border-bottom: 1px solid var(--line); background: #fff; }
.detail-header-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.detail-header h2 { margin: 10px 0 13px; font-size: 23px; }
.detail-summary { justify-content: flex-start; flex-wrap: wrap; color: var(--muted); font-size: 11px; }
.detail-summary span { padding-right: 16px; border-right: 1px solid var(--line); }
.detail-summary b { margin-left: 4px; color: var(--text); }
.detail-progress-row { margin-top: 16px; }
.detail-progress-row > b { width: 42px; text-align: right; font-size: 12px; }
.detail-warning { margin-top: 14px; padding: 10px 12px; border-left: 3px solid var(--bad); background: rgba(201, 70, 84, .08); color: #9e3340; font-size: 11px; }
.detail-body { display: grid; gap: 12px; padding: 12px; }
.detail-section { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.detail-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.detail-section-head h3 { margin: 0; font-size: 14px; }
.detail-section-head span { color: var(--muted); font-size: 10px; }
.detail-form { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 10px; }
.detail-form label > span { display: block; margin: 0 0 5px 2px; color: var(--muted); font-size: 10px; }
.detail-form input, .detail-form select { width: 100%; }
.detail-notes { grid-column: 1 / -1; }
.idea-cycle { grid-column: 1 / 3; }
.detail-notes textarea { width: 100%; min-height: 86px; resize: vertical; border: 1px solid var(--line); border-radius: 10px; padding: 10px; color: var(--text); font: inherit; }
.idea-detail-form .detail-notes textarea { min-height: 78px; }
.detail-form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.detail-form-actions.split-actions { justify-content: space-between; align-items: center; }
.detail-form-actions.split-actions > div { display: flex; gap: 8px; }
.idea-detail-header p { margin-top: 0; }
.idea-link-note { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 15px 16px; border: 1px solid rgba(181, 121, 33, .22); border-radius: 8px; color: #7a5c2d; background: #fbf6eb; font-size: 11px; line-height: 1.6; }
.focus-flash { animation: focus-flash 1.8s ease; }
@keyframes focus-flash {
  0%, 30% { box-shadow: 0 0 0 4px rgba(127, 28, 57, .28), 0 12px 28px rgba(78, 38, 54, .14); }
  100% { box-shadow: none; }
}
.preparation-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 10px; }
.deliverable-add-form, .deliverable-row { display: grid; grid-template-columns: minmax(180px, 1.5fr) 100px 100px minmax(120px, 1fr) auto; gap: 8px; align-items: center; }
.deliverable-add-form { margin-bottom: 10px; }
.deliverable-row { grid-template-columns: minmax(180px, 1.5fr) 100px 100px minmax(120px, 1fr) auto 28px; padding: 7px 0; border-top: 1px solid var(--line); }
.deliverable-row input, .deliverable-row select, .deliverable-add-form input, .deliverable-add-form select { width: 100%; }
.detail-task-list, .detail-node-list { display: grid; }
.detail-task, .detail-node { min-height: 42px; display: grid; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); font-size: 12px; }
.detail-task { grid-template-columns: 18px 1fr 24px; }
.detail-node { grid-template-columns: 18px 1fr 145px; }
.detail-node { grid-template-columns: 18px minmax(120px, 1fr) 145px 145px; }
.detail-node select, .detail-node input[type="date"] { width: 100%; height: 32px; font-size: 11px; }
.detail-action-group { display: flex; gap: 8px; }

.record-list { display: grid; gap: 8px; }
.record-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: 4px minmax(220px, 1fr) 110px 90px auto;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.record-row > i { align-self: stretch; border-radius: 3px; background: var(--category-color); }
.record-main b { display: block; font-size: 13px; }
.record-main span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.record-date { font-size: 11px; }
.record-date small { display: block; margin-bottom: 3px; color: var(--muted); font-size: 9px; }
.record-status, .archived-mark { color: var(--muted); font-size: 11px; }

.people-board-toolbar { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.people-board-panel { overflow: auto; }
.people-board-toolbar label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; }
.people-board-toolbar select, .people-board-toolbar input { min-width: 140px; }

.annual-plan-panel { display: grid; gap: 14px; }
.annual-month-tabs {
  display: grid;
  grid-template-columns: repeat(12, minmax(48px, 1fr));
  gap: 6px;
}
.annual-month-tabs .btn {
  min-width: 0;
  padding: 9px 5px;
  border-radius: 8px;
  font-size: 11px;
}
.annual-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.annual-metric {
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.annual-metric span,
.annual-metric small { display: block; color: var(--muted); font-size: 10px; }
.annual-metric strong { display: block; margin: 5px 0 3px; color: var(--wine); font-size: 24px; }
.annual-plan-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(260px, .9fr);
  gap: 14px;
  align-items: start;
}
.annual-task-panel,
.annual-load-panel,
.annual-team-panel { min-width: 0; }
.annual-task-head,
.annual-task-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(85px, .75fr) minmax(190px, 1.8fr) minmax(95px, .85fr) 54px;
  gap: 10px;
  align-items: start;
}
.annual-task-head {
  padding: 0 0 7px;
  color: var(--gray);
  font-size: 9px;
}
.annual-task-row {
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.annual-task-row > b { color: var(--text); font-size: 12px; }
.annual-task-row small { display: block; margin-top: 3px; color: var(--gray); }
.annual-task-row .annual-output { color: var(--wine); font-weight: 700; text-align: right; }
.annual-person-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.annual-person-chip {
  padding: 3px 6px;
  border-radius: 5px;
  background: #f7eff2;
  color: var(--text);
  font-size: 9px;
}
.annual-selected-person {
  min-height: 76px;
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 10px;
  background: #faf5f7;
}
.annual-selected-person b { display: block; margin-bottom: 6px; color: var(--wine); font-size: 13px; }
.annual-selected-person span { color: var(--muted); font-size: 10px; line-height: 1.6; }
.annual-people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.annual-person-button {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 3px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 10px;
}
.annual-person-button:hover,
.annual-person-button.active { border-color: var(--rose); background: #f8eaf0; color: var(--wine); }
.annual-person-button.at-limit { box-shadow: inset 0 -3px 0 var(--warn); }
.annual-team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; }
.annual-team-card { min-width: 0; padding-top: 9px; border-top: 2px solid var(--line); }
.annual-team-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.annual-team-head b { font-size: 12px; }
.annual-team-head span { color: var(--muted); font-size: 10px; }

@media (max-width: 1380px) {
  .annual-month-tabs { grid-template-columns: repeat(6, minmax(48px, 1fr)); }
  .annual-plan-layout { grid-template-columns: 1fr; }
  .annual-team-grid { grid-template-columns: 1fr; }
}
.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #f8f4f6; }
.segmented button { min-width: 74px; height: 31px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; }
.segmented button.active { color: var(--wine); background: #fff; box-shadow: 0 2px 7px rgba(78, 38, 54, .08); }
.board-meta { margin-bottom: 10px; color: var(--muted); font-size: 11px; }
.people-summary-table { min-width: 980px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.people-summary-head, .people-summary-row { display: grid; grid-template-columns: 150px 80px 80px 80px 80px 90px minmax(240px, 1fr); align-items: center; }
.people-summary-head { min-height: 38px; color: var(--muted); background: #f5e7ec; font-size: 10px; }
.people-summary-head > *, .people-summary-row > * { padding: 8px 10px; }
.people-summary-row { min-height: 64px; border-top: 1px solid var(--line); background: #fff; }
.people-summary-row strong { color: var(--wine); text-align: center; font-size: 16px; }
.people-summary-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.people-project-list { display: flex; flex-wrap: wrap; gap: 5px; }
.people-project-list button { padding: 4px 6px; border-radius: 5px; color: var(--wine); background: #faf1f4; font-size: 10px; text-decoration: none; }
.people-project-list span { color: var(--muted); font-size: 10px; }
.people-timeline { max-height: 650px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.people-time-row { display: grid; min-width: max-content; min-height: 68px; border-bottom: 1px solid var(--line); }
.people-time-row > div { min-width: 0; padding: 7px 5px; border-right: 1px solid rgba(127, 28, 57, .08); }
.people-time-head { position: sticky; top: 0; z-index: 4; min-height: 40px; color: var(--muted); background: #f5e7ec; font-size: 10px; text-align: center; }
.people-time-head > div:first-child, .people-time-person { position: sticky; left: 0; z-index: 3; background: #fff; }
.people-time-head > div:first-child { z-index: 5; background: #f5e7ec; text-align: left; }
.people-time-person { padding: 12px !important; }
.people-time-person b { display: block; font-size: 12px; }
.people-time-person span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.people-time-cell { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 3px; }
.time-event { max-width: 100%; overflow: hidden; border: 0; border-radius: 5px; padding: 4px 5px; color: #fff; background: var(--blue); text-overflow: ellipsis; white-space: nowrap; cursor: pointer; font-size: 9px; }
.time-event.project { background: var(--wine); }
.detail-task:last-child, .detail-node:last-child { border-bottom: 0; }
.detail-task input[type="checkbox"], .detail-node input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--wine); }
.detail-task.done span, .detail-node.done span { color: var(--muted); text-decoration: line-through; }
.detail-node.overdue { color: var(--bad); }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.settings-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.people-list { display: grid; gap: 7px; max-height: 300px; overflow: auto; padding-right: 3px; }
.person-row {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 9px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.person-summary { min-width: 0; }
.person-summary b { display: block; font-size: 13px; }
.person-summary span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.btn.danger-text { color: var(--bad); padding: 7px 10px; }
.btn.danger-text:hover { background: rgba(201, 70, 84, .08); border-color: rgba(201, 70, 84, .24); }
.empty-message { padding: 14px 0; }
.category-list { display: grid; gap: 8px; margin-bottom: 12px; }
.category-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 44px minmax(150px, 1fr) minmax(110px, auto) auto auto;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.category-row input[type="color"], .category-add-form input[type="color"] { width: 44px; padding: 3px; }
.category-preview { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; font-size: 12px; }
.category-add-form { display: grid; grid-template-columns: minmax(180px, 1fr) 44px minmax(160px, 1fr) auto; gap: 8px; max-width: 760px; }
.label-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.setting-title { color: var(--wine); font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.label-list { display: grid; gap: 8px; margin-bottom: 12px; max-height: 420px; overflow: auto; padding-right: 3px; }
.label-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 44px minmax(64px, auto) auto auto;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.label-row input[type="color"],
.label-add-form input[type="color"] {
  width: 44px;
  padding: 3px;
}
.preview-chip { cursor: default; min-width: 58px; }
.label-add-form { display: grid; grid-template-columns: 1fr 44px auto; gap: 8px; }
.form-message {
  min-height: 18px;
  margin-top: 7px;
  font-size: 12px;
  color: var(--muted);
}
.form-message.ok { color: #258873; }
.form-message.error { color: #c94654; }
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 12px 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: .2s;
}
.toast.show { opacity: 1; transform: none; }
.app-boot-status {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 1000;
  max-width: min(620px, calc(100vw - 32px));
  transform: translateX(-50%);
  padding: 10px 16px;
  border: 1px solid #dccdd2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(48, 30, 38, .14);
  color: #6c4b58;
  font-size: 13px;
}
.app-boot-status.error {
  border-color: #d9a5ad;
  background: #fff3f4;
  color: #a02d42;
}
.login-gate { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, #f6f3f4, #e9edf2); }
.login-gate[hidden] { display: none; }
.login-card { width: min(380px, 100%); display: grid; gap: 14px; padding: 30px; border: 1px solid #ded5d9; border-radius: 18px; background: #fff; box-shadow: 0 22px 60px rgba(38, 24, 30, .16); }
.login-card h1 { margin: 8px 0 0; font-size: 24px; }
.login-card p { margin: -6px 0 4px; color: var(--muted); }
.login-card label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.login-card input { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.login-brand { display: flex; align-items: center; gap: 14px; }
.login-brand img { width: 104px; object-fit: contain; }
.login-brand div { display: grid; gap: 2px; }
.login-brand span { color: var(--muted); font-size: 12px; }
.login-error { min-height: 18px; color: #b2374c; font-size: 12px; }
.current-user { color: var(--muted); font-size: 12px; white-space: nowrap; }
body[data-role="viewer"] form, body[data-role="viewer"] .create-disclosure, body[data-role="viewer"] [data-edit], body[data-role="viewer"] #undoBtn { display: none !important; }

.today-task-module { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; height: 54px; }
.today-task-heading { min-width: 90px; display: flex; flex-direction: column; }
.today-task-heading span { color: var(--muted); font-size: 11px; }
.today-task-list { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; }
.today-task { display: flex; align-items: stretch; min-width: 170px; max-width: 230px; border: 1px solid var(--line); border-left: 3px solid #7d8a98; border-radius: 8px; background: #fff; }
.today-task.overdue { border-left-color: #c94654; }
.today-task.today { border-left-color: #258873; }
.today-task > button:first-child { min-width: 0; padding: 6px 8px; border: 0; background: none; text-align: left; cursor: pointer; }
.today-task b, .today-task span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.today-task span { color: var(--muted); margin-top: 2px; }
.today-remind { border: 0; border-left: 1px solid var(--line); background: #f8f9fa; color: #7a5362; font-size: 11px; cursor: pointer; }
.today-remind.done { color: #258873; }
.today-more { white-space: nowrap; border: 0; background: none; color: #765363; cursor: pointer; }
.item-current-status { margin-top: 6px; }
.person-name-link, .person-settings-name { border: 0; padding: 0; background: none; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.kanban-inline-title { display: flex; min-width: 0; align-items: center; gap: 5px; }
.inline-edit-trigger { border: 0; background: none; color: var(--muted); cursor: pointer; }
.kanban-inline-form { display: flex; gap: 5px; margin: 7px 0; }
.kanban-inline-form input { min-width: 0; flex: 1; }
.kanban-inline-form button { border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.archive-year { padding: 2px 5px; border-radius: 4px; background: #eef0f2; }
.person-settings-row { align-items: flex-start; }
.person-settings-row .person-summary { flex: 1; display: grid; gap: 8px; }
.person-settings-row label { display: grid; gap: 3px; color: var(--muted); font-size: 12px; }
.person-category-grid { display: flex; flex-wrap: wrap; gap: 5px 12px; }
.person-category-grid label { display: flex; flex-direction: row; align-items: center; color: var(--text); }
.person-owned-summary { color: var(--muted); font-size: 12px; }
.person-workload-timeline, .today-full-list { display: grid; gap: 16px; }
.person-workload-month h4 { margin: 0 0 8px; }
.person-workload-month button, .today-full-list button { width: 100%; display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: left; cursor: pointer; }
.person-workload-month time, .today-full-list time { color: var(--muted); font-variant-numeric: tabular-nums; }
.person-workload-month span, .today-full-list span { display: grid; gap: 3px; }
.person-workload-month small, .today-full-list small { color: var(--muted); }
