:root {
  --bg: #eef3f8;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --line: #d8e1ea;
  --line-strong: #c9d5e2;
  --ink: #17202c;
  --muted: #647386;
  --primary: #1668dc;
  --primary-dark: #0f4f9f;
  --primary-soft: #e6f0ff;
  --success: #1f8f5f;
  --warning: #b7791f;
  --danger: #c2413b;
  --status-done-text: #15945f;
  --status-done-bg: #def8eb;
  --status-done-border: #c8efd9;
  --status-done-solid: #35c978;
  --status-done-solid-end: #72e99f;
  --status-doing-text: #1767c8;
  --status-doing-bg: #e6f0ff;
  --status-doing-border: #c9ddff;
  --status-doing-solid: #2c76ec;
  --status-doing-solid-end: #4b92fa;
  --status-todo-text: #e58b00;
  --status-todo-bg: #fff8ea;
  --status-todo-border: #f1d28f;
  --status-todo-solid: #f2ad2f;
  --status-todo-solid-end: #f7c45c;
  --status-risk-text: #e14c5a;
  --status-risk-bg: #ffe8ec;
  --status-risk-border: #ffc6cf;
  --status-risk-solid: #ed334e;
  --status-risk-solid-end: #ff5f74;
  --shadow: 0 20px 48px rgba(15, 35, 65, 0.12);
  --shadow-soft: 0 10px 24px rgba(15, 35, 65, 0.07);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #f8fbff 0%, #edf5ff 240px, var(--bg) 520px),
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
}

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #101820;
}

.login-view.is-hidden {
  display: none;
}

.login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.login-card .brand-mark {
  margin-bottom: 4px;
}

.login-card h1 {
  margin-bottom: 8px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 180ms ease;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 72px minmax(0, 1fr);
}

.app-shell.sidebar-collapsed:not(.is-bigscreen) {
  display: grid;
  width: 100%;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 68px 28px 22px;
  overflow-y: auto;
  overflow-x: visible;
  background:
    linear-gradient(180deg, rgba(22, 104, 220, 0.18), transparent 260px),
    #0d1621;
  color: #f7fbff;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, padding 180ms ease;
}

.sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 39px;
  width: 2px;
  height: 100%;
  background: rgba(70, 104, 148, 0.34);
  box-shadow:
    0 0 0 7px rgba(18, 36, 58, 0.28),
    0 0 24px rgba(42, 92, 160, 0.18);
}

.brand-block {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  position: relative;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-block > div {
  min-width: 0;
}

.brand-block h1 {
  font-size: 22px;
  line-height: 1.18;
  white-space: nowrap;
}

.brand-block .eyebrow {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-block .brand-eyebrow {
  overflow: visible;
  max-width: none;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.15;
}

.app-shell.sidebar-collapsed .brand-block {
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
}

.app-shell.sidebar-collapsed .sidebar::after {
  content: none;
}

.app-shell.sidebar-collapsed .sidebar {
  border-right: 1px solid rgba(70, 104, 148, 0.3);
}

.app-shell.sidebar-collapsed .brand-block::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -1px;
  left: 4px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.app-shell.sidebar-collapsed .brand-block > div {
  display: none;
}

.app-shell.sidebar-collapsed .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 9px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #f4bd2a;
  color: #111820;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(244, 189, 42, 0.22);
}

.sidebar-toggle {
  position: static;
  z-index: 12;
  display: grid;
  place-items: center;
  align-content: center;
  flex: 0 0 auto;
  width: 34px;
  min-height: 34px;
  margin-top: 0;
  margin-left: auto;
  padding: 0;
  border-radius: 8px;
  background: #1d2c3d;
  color: #f7fbff;
  font-size: 0;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 8px 16px rgba(7, 14, 24, 0.18);
  transition: background 160ms ease, transform 160ms ease;
}

.sidebar-toggle::before {
  content: "‹";
  display: block;
  font-size: 24px;
  line-height: 1;
}

.sidebar-toggle:hover {
  background: #26384c;
}

.app-shell.sidebar-collapsed .sidebar {
  position: sticky;
  left: auto;
  top: 0;
  z-index: 10;
  width: auto;
  padding: 18px 12px;
  overflow-x: hidden;
  transform: none;
}

.app-shell.sidebar-collapsed .sidebar-toggle {
  width: 42px;
  min-height: 34px;
  margin-top: 0;
  margin-left: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.app-shell.sidebar-collapsed .sidebar-toggle::before {
  content: "›";
}

.eyebrow,
.panel-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar .eyebrow,
.sidebar .panel-label {
  color: #9fb2c3;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-size: 22px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

.side-nav {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.side-nav a {
  position: relative;
  color: #c7d7e8;
  text-decoration: none;
  padding: 13px 14px 13px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}

.app-shell.sidebar-collapsed .side-nav {
  gap: 10px;
  justify-items: center;
  margin-top: 4px;
}

.app-shell.sidebar-collapsed .side-nav a {
  display: grid;
  width: 44px;
  min-height: 48px;
  padding: 0;
  place-items: center;
  font-size: 0;
  border-radius: 10px;
  overflow: visible;
}

.app-shell.sidebar-collapsed .side-nav a::before {
  content: attr(data-short);
  color: inherit;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.app-shell.sidebar-collapsed .side-nav a::after {
  content: attr(title);
  position: absolute;
  left: 54px;
  top: 50%;
  z-index: 30;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #142235;
  color: #f7fbff;
  box-shadow: 0 10px 22px rgba(7, 14, 24, 0.24);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transform: translate(-2px, -50%);
  transition: opacity 140ms ease, transform 140ms ease;
}

.app-shell.sidebar-collapsed .side-nav a:hover::after {
  opacity: 1;
  transform: translate(4px, -50%);
}

.side-nav a.active,
.side-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.side-nav a.active {
  color: #ffffff;
  font-weight: 800;
  box-shadow: inset 3px 0 0 #f4bd2a;
}

.side-panel {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.075);
}

.app-shell.sidebar-collapsed .side-panel {
  display: none;
}

.user-panel {
  margin-bottom: 12px;
}

.user-panel strong {
  font-size: 22px;
}

.user-panel .secondary-btn {
  width: 100%;
  margin-top: 8px;
}

.side-panel strong {
  display: block;
  font-size: 36px;
  margin: 8px 0;
}

.side-panel:not(.user-panel) strong {
  font-size: 32px;
  line-height: 1;
  margin: 6px 0 10px;
}

.side-panel p:last-child {
  margin-bottom: 0;
  color: #b7c6d4;
}

.progress-panel .panel-label {
  margin-bottom: 6px;
}

.progress-panel p:last-child {
  margin-top: 10px;
  line-height: 1.35;
  white-space: normal;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: #44c486;
  transition: width 180ms ease;
}

.app-shell.is-gantt-view:not(.sidebar-collapsed) {
  grid-template-columns: 316px minmax(0, 1fr);
}

.app-shell.is-gantt-view .sidebar {
  padding: 30px 34px 24px 22px;
  background:
    linear-gradient(160deg, rgba(27, 91, 166, 0.28), transparent 42%),
    linear-gradient(180deg, #102846 0%, #0b1d34 52%, #07111e 100%);
}

.app-shell.is-gantt-view .sidebar::after {
  right: 18px;
}

.app-shell.is-gantt-view .brand-block {
  gap: 18px;
  margin-bottom: 34px;
  padding-bottom: 26px;
}

.app-shell.is-gantt-view .brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  font-size: 20px;
}

.app-shell.is-gantt-view .brand-block h1 {
  font-size: 27px;
}

.app-shell.is-gantt-view .brand-eyebrow {
  font-size: 15px;
}

.app-shell.is-gantt-view .side-nav {
  gap: 14px;
  margin-bottom: 34px;
}

.app-shell.is-gantt-view .side-nav a {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 18px 0 56px;
  border-radius: 9px;
  color: #d7e4f4;
  font-size: 20px;
  font-weight: 900;
}

.app-shell.is-gantt-view .side-nav a::before {
  position: absolute;
  left: 18px;
  width: 24px;
  color: #dfeaff;
  font-size: 24px;
  text-align: center;
}

.app-shell.is-gantt-view .side-nav a[href="#pendingTasks"]::before { content: "▣"; }
.app-shell.is-gantt-view .side-nav a[href="#completedTasks"]::before { content: "▢"; }
.app-shell.is-gantt-view .side-nav a[href="#ganttTasks"]::before { content: "▦"; }

.app-shell.is-gantt-view .side-nav a.active {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 4px 0 0 #f6c433;
}

.app-shell.sidebar-collapsed.is-gantt-view .side-nav {
  gap: 10px;
  justify-items: center;
  margin: 4px 0 18px;
}

.app-shell.sidebar-collapsed.is-gantt-view .side-nav a {
  display: grid;
  width: 44px;
  min-height: 48px;
  padding: 0;
  place-items: center;
  border-radius: 10px;
  font-size: 0;
}

.app-shell.sidebar-collapsed.is-gantt-view .side-nav a::before {
  position: static;
  width: auto;
  color: inherit;
  font-size: 21px;
  line-height: 1;
  text-align: center;
}

.app-shell.sidebar-collapsed.is-gantt-view .side-nav a.active {
  box-shadow: inset 3px 0 0 #f4bd2a;
}

.app-shell.is-gantt-view .side-panel {
  margin-right: 12px;
  padding: 20px 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.app-shell.is-gantt-view .user-panel {
  margin-bottom: 16px;
}

.app-shell.is-gantt-view .user-panel strong {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0 12px;
  font-size: 38px;
  line-height: 1;
}

.app-shell.is-gantt-view .user-panel strong::after {
  content: "成员";
  display: inline-flex;
  align-items: center;
  align-self: center;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #b9c9dc;
  font-size: 13px;
  line-height: 1.2;
}

.app-shell.is-gantt-view .user-panel p:not(.panel-label) {
  display: none;
}

.app-shell.is-gantt-view .user-panel .secondary-btn {
  height: 54px;
  margin-top: 20px;
  border-radius: 7px;
  font-size: 18px;
  font-weight: 900;
}

.app-shell.is-gantt-view .side-panel:not(.user-panel):not(.progress-panel) {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.app-shell.is-gantt-view .side-panel:not(.user-panel):not(.progress-panel) strong {
  position: relative;
  display: grid;
  place-items: center;
  width: 136px;
  height: 136px;
  margin: 8px 0 0;
  border-radius: 50%;
  color: #ffffff;
  font-size: 34px;
  background:
    radial-gradient(circle at center, #102846 0 44%, transparent 45%),
    conic-gradient(#4bd283 calc(var(--gantt-rate, 33) * 1%), rgba(255, 255, 255, 0.16) 0);
}

.app-shell.is-gantt-view .side-panel:not(.user-panel):not(.progress-panel) .progress-track {
  display: none;
}

.app-shell.is-gantt-view .side-panel:not(.user-panel):not(.progress-panel) p:last-child {
  color: #d5e0ee;
  font-size: 20px;
}

.app-shell.is-gantt-view .progress-panel {
  display: block;
}

.app-shell.is-gantt-view .progress-panel strong {
  width: auto;
  height: auto;
  margin: 8px 0 10px;
  border-radius: 0;
  background: none;
  color: #ffffff;
  font-size: 32px;
}

.app-shell.is-gantt-view .progress-panel .progress-track {
  display: block;
}

.app-shell.is-gantt-view .progress-panel p:last-child {
  color: #d5e0ee;
  font-size: 15px;
}

.workspace {
  padding: 28px 32px;
  max-width: 1920px;
}

.app-shell.sidebar-collapsed:not(.is-bigscreen) .workspace {
  width: auto;
  max-width: none;
  padding-left: 32px;
}

.app-shell.is-bigscreen {
  grid-template-columns: 336px minmax(0, 1fr);
  background: #050b15;
  overflow-x: hidden;
}

.app-shell.is-bigscreen .sidebar {
  box-sizing: border-box;
  padding-right: 76px;
}

.app-shell.is-bigscreen .sidebar::before {
  content: none;
}

.app-shell.is-bigscreen .sidebar::after {
  right: 39px;
  width: 2px;
  background: rgba(70, 104, 148, 0.38);
  box-shadow:
    0 0 0 8px rgba(18, 36, 58, 0.38),
    0 0 28px rgba(42, 92, 160, 0.2);
}

.app-shell.is-bigscreen .workspace {
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 100vh;
  padding: 0;
  background: #09111d;
  overflow-x: hidden;
}

.app-shell:not(.is-bigscreen) .workspace {
  overflow-x: hidden;
}

.app-shell.is-bigscreen.sidebar-collapsed {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
}

.app-shell.is-bigscreen.sidebar-collapsed .sidebar {
  width: auto;
  padding: 18px 12px;
  overflow-x: hidden;
  transform: none;
}

.app-shell.is-bigscreen.sidebar-collapsed .sidebar-toggle {
  position: static;
  width: 42px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  transform: none;
}

.app-shell.is-bigscreen.sidebar-collapsed .workspace {
  width: 100%;
  max-width: none;
  padding-left: 0;
}

body.public-bigscreen .app-shell.is-bigscreen {
  display: block;
  width: 100vw;
  min-height: 100vh;
  overflow: hidden;
}

body.public-bigscreen .app-shell.is-bigscreen .sidebar {
  display: none;
}

body.public-bigscreen .app-shell.is-bigscreen .workspace {
  display: grid;
  place-items: center;
  width: 100vw;
  min-height: 100vh;
  padding: 0;
  background: #050b15;
  overflow: hidden;
}

.topbar,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 24px 26px;
  margin-bottom: 22px;
  background:
    linear-gradient(135deg, rgba(22, 104, 220, 0.08), rgba(31, 143, 95, 0.04)),
    var(--surface);
}

.topbar h2 {
  font-size: 26px;
}

.topbar-actions,
.form-actions,
.filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.inline-check {
  display: inline-flex;
  grid-auto-flow: column;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: var(--ink);
}

.inline-check input {
  width: 18px;
  min-height: 18px;
}

.admin-key-field {
  width: 170px;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 16px;
  margin-bottom: 16px;
}

.span-all {
  grid-column: 1 / -1;
}

.panel {
  padding: 22px;
  margin-bottom: 20px;
}

#settings {
  gap: 16px;
}

#settings .panel {
  margin-bottom: 0;
}

.is-hidden {
  display: none !important;
}

.role-hidden {
  display: none !important;
}

.task-page-panel {
  scroll-margin-top: 18px;
}

.count-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(28, 111, 210, 0.08);
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.section-title.wrap {
  flex-wrap: wrap;
}

#tasks .section-title.wrap {
  display: grid;
  grid-template-columns: minmax(180px, 300px) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 0;
}

#tasks.panel {
  padding: 18px 22px;
}

#tasks .section-title.wrap > div:first-child {
  min-width: 0;
}

#tasks .section-title.wrap .panel-label {
  margin-bottom: 4px;
}

#tasks .section-title.wrap h3 {
  margin: 0;
}

#tasks .filters {
  justify-self: end;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 9px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 9px 10px;
  border: 1px solid rgba(201, 214, 228, 0.82);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96)),
    var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 24px rgba(18, 36, 60, 0.04);
  overflow: visible;
}

#tasks .task-toolbar-row {
  display: grid;
  gap: 9px;
  align-items: center;
  width: 100%;
}

#tasks .task-toolbar-primary {
  grid-template-columns: minmax(280px, 420px) minmax(130px, 160px) minmax(130px, 160px);
  justify-content: space-between;
}

#tasks .task-toolbar-secondary {
  grid-template-columns: repeat(4, minmax(150px, 1fr)) repeat(2, minmax(160px, 1fr)) minmax(130px, 150px) minmax(150px, 180px);
}

.task-view-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  height: 42px;
  padding: 4px;
  border: 1px solid #dbe6f2;
  border-radius: 10px;
  background: #f3f7fc;
}

#tasks .filters .task-view-btn {
  height: 32px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #667890;
  box-shadow: none;
}

#tasks .filters .task-view-btn.is-active,
#tasks .filters #batchModeBtn.is-active {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(31, 107, 227, 0.22);
}

.filter-field {
  display: grid;
  gap: 4px;
  height: auto !important;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.filter-field input {
  width: 100% !important;
}

.public-link-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.public-link-row input {
  font-weight: 800;
  color: var(--primary-dark);
  background: #f8fbff;
}

.public-link-hint {
  margin: 10px 0 0;
}

#tasks .filters > * {
  min-width: 0;
  height: 42px;
  margin: 0;
}

#tasks .filters > .task-toolbar-row {
  height: auto;
}

#tasks .filters button {
  width: 100%;
  min-width: 0;
  padding: 0 14px;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  line-height: 1;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#tasks .filters input {
  width: auto;
  max-width: 340px;
  min-width: 0;
}

#tasks .filters select {
  width: 100%;
  max-width: none;
  min-width: 0;
}

#tasks .filters input,
#tasks .filters select {
  min-height: 42px;
  border-radius: 10px;
}

#tasks .filters .is-hidden {
  display: none !important;
}

.task-list-shell {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.task-view-panel,
.task-filter-panel,
.batch-action-bar,
.task-page-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(18, 36, 60, 0.045);
}

.task-view-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 86px;
  padding: 20px 28px;
}

.task-view-panel .task-view-switch {
  width: min(100%, 470px);
}

.task-view-panel .task-view-btn {
  height: 32px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #667890;
  box-shadow: none;
  font-weight: 900;
}

.task-view-panel .task-view-btn.is-active {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(31, 107, 227, 0.22);
}

.task-view-panel #quickCreateTaskBtn {
  width: 156px;
  min-height: 48px;
  border-radius: 8px;
}

.task-filter-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px 24px;
  padding: 24px 28px;
}

.task-filter-panel label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #6a7890;
  font-size: 13px;
  font-weight: 850;
}

.task-filter-panel select,
.task-filter-panel input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #dbe5f1;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.task-filter-panel select {
  padding-right: 42px;
}

.task-filter-panel .filter-field {
  height: auto !important;
}

.task-filter-actions {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(132px, 1fr));
  gap: 10px;
  align-self: end;
}

.task-filter-actions button {
  min-height: 48px;
  border-radius: 8px;
  white-space: nowrap;
}

#batchModeBtn.is-active {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(31, 107, 227, 0.22);
}

.select-task-field.is-muted {
  opacity: 0.48;
}

@media (max-width: 1500px) {
  #tasks .section-title.wrap {
    grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  }

  #tasks .filters {
    grid-template-columns: 1fr;
  }

  #tasks .task-toolbar-primary,
  #tasks .task-toolbar-secondary {
    grid-template-columns: repeat(3, minmax(112px, 1fr));
  }

  #tasks .task-view-switch {
    grid-column: span 3;
  }
}

textarea {
  width: 100%;
  min-height: 320px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fbfcfd;
  color: var(--ink);
  line-height: 1.65;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 11px;
  background: #fbfcfd;
  color: var(--ink);
}

select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: rgba(35, 111, 211, 0.7);
  box-shadow: 0 0 0 3px rgba(35, 111, 211, 0.12);
}

.inline-fields {
  display: grid;
  grid-template-columns: minmax(180px, 0.6fr) minmax(180px, 0.7fr) minmax(320px, 1.4fr);
  gap: 12px;
  margin: 14px 0;
}

.input-panel textarea {
  min-height: 360px;
}

.primary-btn,
.secondary-btn,
.text-btn {
  min-height: 38px;
  border-radius: var(--radius);
  padding: 8px 14px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 150ms ease, opacity 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.primary-btn {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(35, 111, 211, 0.22);
}

.secondary-btn {
  background: var(--surface-soft);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(100, 115, 134, 0.06);
}

.danger-btn {
  color: var(--danger);
  background: #fff1f1;
  box-shadow: inset 0 0 0 1px rgba(194, 65, 59, 0.12);
}

.text-btn {
  background: transparent;
  color: var(--primary);
  padding-inline: 6px;
  box-shadow: none;
}

.text-btn.delete-btn,
.remove-user-btn {
  color: var(--danger);
}

.primary-btn:hover,
.secondary-btn:hover,
.text-btn:hover {
  transform: translateY(-1px);
}

.primary-btn:hover {
  background: #1764c6;
}

.secondary-btn:hover {
  background: #e8eef4;
}

.primary-btn:disabled,
.secondary-btn:disabled,
.text-btn:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.draft-list,
.owner-config-list,
.user-config-list {
  display: grid;
  gap: 10px;
}

.draft-card,
.owner-row,
.user-row {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
}

.draft-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.draft-card label:first-child,
.draft-card label:nth-child(2),
.draft-card label.description-field {
  grid-column: 1 / -1;
}

.draft-card textarea {
  min-height: 76px;
}

.draft-actions,
.owner-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(180px, 1.2fr) auto;
  gap: 10px;
  align-items: end;
}

.group-config-grid,
.meeting-group-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
}

.meeting-group-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #ffffff, #f8fbff),
    #fbfcfd;
}

.meeting-group-card h4 {
  margin: 0;
  font-size: 18px;
}

.group-field-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.8fr);
  gap: 12px;
  min-width: 0;
}

.config-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.settings-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.settings-actions-row .hint {
  margin: 0;
}

.member-actions {
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(207, 219, 232, 0.65);
}

#saveUsersBtn {
  min-height: 48px;
  padding: 0 24px;
}

.user-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(170px, 0.75fr) minmax(170px, 0.75fr) minmax(190px, 0.9fr) minmax(170px, 0.75fr) auto;
  gap: 12px;
  align-items: center;
}

.slack-member-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.slack-member-profile.no-avatar {
  padding-left: 0;
}

.slack-member-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  background: #eaf2ff;
  color: var(--primary);
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(28, 111, 210, 0.12);
}

.slack-member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slack-member-profile strong,
.slack-member-profile span,
.slack-member-meta span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slack-member-profile strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.slack-member-profile span,
.slack-member-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.slack-member-meta {
  display: grid;
  gap: 6px;
}

.slack-member-meta .status-pill {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef3f8;
  color: var(--muted);
  border: 1px solid var(--line);
}

.slack-member-meta .status-pill.done {
  background: #eaf8f1;
  color: var(--success);
  border-color: rgba(39, 174, 96, 0.24);
}

.draft-owner-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  overflow: visible;
}

.draft-owner-head {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 12px;
  border-right: 1px solid var(--line);
  background: #eef3f6;
}

.draft-owner-head span {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
}

.draft-owner-input {
  min-height: 36px;
  font-weight: 800;
}

.draft-task-strip {
  display: grid;
  gap: 8px;
  overflow-x: auto;
  padding: 10px;
}

.task-row-head,
.draft-task-item {
  display: grid;
  grid-template-columns: 58px minmax(360px, 1.6fr) 112px 98px 72px 96px 70px 104px minmax(220px, 0.8fr) 48px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 1280px;
  padding: 10px;
}

.task-row-head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.draft-task-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.draft-task-item input,
.draft-task-item select,
.draft-task-item textarea {
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
  font-size: 13px;
}

.draft-task-item textarea {
  width: 100%;
  min-height: 56px;
  resize: vertical;
  line-height: 1.45;
  overflow: auto;
}

.draft-content-input {
  font-weight: 700;
}

.slack-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.slack-config-grid label,
.draft-slack-controls {
  display: grid;
  gap: 8px;
}

.draft-slack-controls {
  font-size: 12px;
}

.draft-slack-controls .inline-check {
  justify-content: flex-start;
}

.draft-weekly-days {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.draft-weekly-days.is-hidden,
.draft-monthly-field.is-hidden {
  display: none;
}

.draft-weekly-days label,
.draft-monthly-field {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-weight: 800;
}

.draft-monthly-field input {
  width: 64px;
}

.owner-board {
  display: grid;
  gap: 18px;
}

.meeting-task-section,
.meeting-draft-section {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(22, 104, 220, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(230, 240, 255, 0.72), rgba(255, 255, 255, 0.96) 160px),
    #ffffff;
  box-shadow: var(--shadow-soft);
}

.meeting-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(22, 104, 220, 0.16), rgba(22, 104, 220, 0.06)),
    #eef6ff;
  border: 1px solid rgba(22, 104, 220, 0.18);
}

.meeting-section-head h4 {
  margin: 0;
  font-size: 25px;
  color: var(--primary-dark);
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.meeting-section-head > span {
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: #fff;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.meeting-title-input {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  color: var(--primary-dark);
  font-size: 22px;
  font-weight: 800;
  background: #fff;
}

.meeting-section-head > div {
  min-width: 0;
  flex: 1;
}

.draft-panel .form-actions {
  margin-top: 14px;
  padding-top: 14px;
}

.draft-panel .empty-state {
  margin-bottom: 0;
}

.meeting-owner-list {
  display: grid;
  gap: 12px;
}

.meeting-status-groups {
  display: grid;
  gap: 14px;
}

.meeting-status-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.meeting-status-group.is-pending {
  border-color: rgba(183, 121, 31, 0.22);
}

.meeting-status-group.is-done {
  border-color: rgba(31, 143, 95, 0.22);
}

.status-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-group-head h5 {
  margin: 0;
  font-size: 16px;
}

.status-group-head span {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.is-pending .status-group-head h5 {
  color: var(--warning);
}

.is-done .status-group-head h5 {
  color: var(--success);
}

.compact-empty {
  padding: 12px;
}

.owner-row-board {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fbff;
  overflow: visible;
  box-shadow: 0 8px 18px rgba(15, 35, 65, 0.04);
}

.owner-row-head {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 12px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, #eef6fb, #e8f1f7);
}

.owner-row-head h4 {
  margin: 0;
  font-size: 18px;
}

.owner-row-head span {
  min-width: 48px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  text-align: center;
  font-weight: 700;
}

.owner-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
}

.owner-task-strip {
  display: grid;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 12px 12px;
}

.saved-task-row-head,
.owner-task-item {
  display: grid;
  grid-template-columns: 46px minmax(320px, 1fr) 82px 54px 82px 92px 56px 142px 72px 54px 184px;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 1290px;
  padding: 9px;
}

.saved-task-row-head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  background: #eef3f8;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  border-radius: var(--radius) var(--radius) 0 0;
}

.owner-task-item {
  border: 1px solid #dfe7ef;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(20, 35, 55, 0.035);
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.owner-task-item:hover {
  border-color: var(--line-strong);
  box-shadow: 0 7px 16px rgba(20, 35, 55, 0.07);
}

.owner-task-item.is-done {
  background: #fbfcfd;
}

.owner-task-item.is-overdue {
  border-color: rgba(225, 76, 90, 0.24);
  background: #fff5f7;
}

.owner-task-item.has-unsaved-status {
  border-color: rgba(28, 111, 210, 0.45);
  box-shadow: 0 0 0 2px rgba(28, 111, 210, 0.08);
}

.task-index {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  min-height: 34px;
}

.task-complete-cell,
.task-status-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
}

.task-complete-cell input {
  width: 18px;
  min-height: 18px;
}

.task-deadline-input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.task-title,
.task-content-input {
  font-weight: 800;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
}

.task-description {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}

.task-content-input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  font: inherit;
  overflow: hidden;
}

.task-content-input:focus {
  outline: 1px solid rgba(28, 111, 210, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.55);
}

.task-content-input {
  resize: vertical;
  min-height: 42px;
}

.task-recurring-pill {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef7ff;
  color: #1c6fd2;
  border: 1px solid rgba(28, 111, 210, 0.16);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.task-content {
  display: block;
  min-width: 0;
  width: 100%;
  max-width: none;
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #fbfdff;
  border: 1px solid var(--line);
}

.task-actions-inline {
  display: grid;
  grid-template-columns: repeat(3, 46px);
  gap: 6px;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding-right: 0;
  white-space: nowrap;
  overflow: visible;
}

.task-actions-inline .task-complete-cell,
.task-actions-inline .text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 100%;
  min-height: 30px;
  margin: 0;
  line-height: 1;
}

.batch-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(28, 111, 210, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, #f2f7ff, #ffffff);
  color: var(--ink);
}

.batch-action-bar > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.batch-action-bar strong {
  color: var(--ink);
}

.batch-action-bar span {
  color: var(--muted);
  font-weight: 800;
}

.batch-action-bar input {
  width: 180px;
  min-height: 38px;
}

.task-list-head {
  margin-bottom: 14px;
}

.task-list-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.task-list-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.task-list-controls label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: var(--muted);
  font-weight: 800;
}

.task-list-controls select {
  width: 140px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
}

.list-view-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faff;
}

.list-view-switch button {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.list-view-switch button.is-active {
  color: var(--primary-dark);
  background: #e8f1ff;
  box-shadow: inset 0 0 0 1px rgba(28, 111, 210, 0.12);
}

.task-table-card {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.task-table-head,
.task-table-row {
  display: grid;
  grid-template-columns: 42px minmax(300px, 1.05fr) minmax(112px, 0.55fr) minmax(98px, 0.45fr) 72px 136px 132px 116px 96px 160px;
  align-items: center;
  min-width: 1264px;
}

.task-table-head {
  min-height: 48px;
  padding: 0 12px;
  color: var(--muted);
  background: #f4f7fb;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 900;
}

.task-table-head > span {
  justify-self: center;
  text-align: center;
}

.task-table-head > span:nth-child(2) {
  justify-self: start;
  padding-left: 16px;
  text-align: left;
}

.task-table-body {
  display: grid;
}

.task-table-row.owner-task-item {
  width: auto;
  min-width: 1264px;
  padding: 12px;
  gap: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.task-table-row.owner-task-item:last-child {
  border-bottom: 0;
}

.task-table-row.owner-task-item:hover {
  background: #fbfdff;
  box-shadow: none;
}

.task-row-check {
  display: flex;
  align-items: center;
  justify-content: center;
}

.task-row-check input {
  width: 18px;
  min-height: 18px;
}

.task-table-row .task-content {
  display: grid;
  gap: 5px;
  align-self: center;
  justify-self: start;
  width: min(360px, 100%);
  max-width: 360px;
  padding: 0 16px 0 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.task-table-row .task-cell,
.task-table-row .task-owner-cell,
.task-table-row .task-deadline-cell,
.task-table-row .task-status-cell,
.task-table-row .task-actions-inline {
  align-self: center;
  justify-self: center;
  text-align: center;
}

.task-table-row .task-content-input {
  display: block;
  width: 100%;
  max-width: 340px;
  min-height: 38px;
  height: 38px;
  max-height: 132px;
  padding: 2px 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  resize: none;
  overflow-x: hidden;
  overflow-y: auto;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.task-note-input {
  display: block;
  width: 100%;
  min-height: 34px;
  max-height: 120px;
  padding: 7px 9px;
  border: 1px solid #dfe8f3;
  border-radius: 8px;
  background: #f8fbff;
  color: #526174;
  resize: none;
  overflow-x: hidden;
  overflow-y: auto;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.task-note-summary {
  position: relative;
  width: min(320px, 100%);
  color: #5f6f84;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  overflow: visible;
}

.task-note-summary > span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-note-summary:hover {
  z-index: 80;
}

.task-note-summary:hover::after {
  content: attr(data-note);
  position: absolute;
  z-index: 120;
  top: calc(100% + 6px);
  left: 0;
  width: min(420px, 72vw);
  max-height: 220px;
  overflow: auto;
  padding: 8px 10px;
  border: 1px solid #b9c7d8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 35, 65, 0.22);
  color: #263348;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.task-note-input:focus {
  outline: 1px solid rgba(28, 111, 210, 0.25);
  background: #fff;
}

.task-table-row .task-content-input:focus {
  outline: 0;
  background: transparent;
  box-shadow: none;
}

.task-owner-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  width: 100%;
  overflow-wrap: anywhere;
}

.owner-avatar {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 0 2px #eef4fb;
}

.owner-avatar-fallback {
  display: inline-grid;
  place-items: center;
  color: var(--primary-dark);
  background: #e6f0ff;
  font-size: 13px;
  font-weight: 900;
}

.task-deadline-cell {
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 100%;
  padding-right: 0;
}

.task-deadline-cell span {
  color: var(--status-risk-text);
  font-size: 12px;
  font-weight: 850;
}

.task-table-row .task-deadline-input {
  height: 28px;
  width: 100%;
  padding: 0 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 14px;
  text-align: center;
}

.task-table-row .task-deadline-input:focus {
  outline: 1px solid rgba(28, 111, 210, 0.25);
  background: #fff;
}

.task-status-pill {
  justify-self: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.task-status-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.task-progress-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.task-status-select.task-status-select {
  width: 74px;
  min-width: 74px;
  min-height: 23px;
  padding: 2px 21px 2px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 9px center;
  background-repeat: no-repeat;
  background-size: 10px 10px;
  font-weight: 900;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  text-align-last: center;
  appearance: none;
}

.task-status-select.task-status-select.done {
  color: var(--status-done-text);
  background-color: var(--status-done-bg);
  border-color: var(--status-done-border);
}

.task-status-select.task-status-select.doing {
  color: var(--status-doing-text);
  background-color: var(--status-doing-bg);
  border-color: var(--status-doing-border);
}

.task-status-select.task-status-select.risk {
  color: var(--status-risk-text);
  background-color: var(--status-risk-bg);
  border-color: var(--status-risk-border);
}

.task-status-select.task-status-select.todo {
  color: var(--status-todo-text);
  background-color: var(--status-todo-bg);
  border-color: var(--status-todo-border);
}

.task-status-select.task-status-select.paused {
  color: var(--status-risk-text);
  background-color: var(--status-risk-bg);
  border-color: var(--status-risk-border);
}

.task-status-select.task-status-select.cancelled {
  color: var(--status-risk-text);
  background-color: var(--status-risk-bg);
  border-color: var(--status-risk-border);
}

select:not(.task-status-select) {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
}

.task-progress-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  min-width: 66px;
  height: 26px;
  padding: 0 7px;
  border: 1px solid #dbe6f3;
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
}

.task-progress-input {
  width: 100%;
  min-height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1d4f91;
  font: inherit;
  text-align: center;
  outline: 0;
  appearance: textfield;
}

.task-progress-input::-webkit-outer-spin-button,
.task-progress-input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.task-status-pill.done {
  color: var(--status-done-text);
  background: var(--status-done-bg);
}

.task-status-pill.doing {
  color: var(--status-doing-text);
  background: var(--status-doing-bg);
}

.task-status-pill.todo {
  color: var(--status-todo-text);
  background: var(--status-todo-bg);
}

.task-status-pill.paused {
  color: var(--status-risk-text);
  background: var(--status-risk-bg);
}

.task-status-pill.cancelled {
  color: var(--status-risk-text);
  background: var(--status-risk-bg);
}

.task-status-pill.risk {
  color: var(--status-risk-text);
  background: var(--status-risk-bg);
}

.task-table-row .task-actions-inline {
  grid-template-columns: repeat(3, 46px);
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.task-table-row .task-complete-cell {
  color: var(--primary);
  font-weight: 850;
}

.task-table-row .save-task-btn {
  display: inline-flex;
  min-width: 44px;
  min-height: 30px;
  padding: 0 6px;
  border-radius: 8px;
  font-size: 12px;
}

.task-table-row .note-task-btn {
  min-width: 44px;
  min-height: 30px;
  padding: 0 6px;
  border-radius: 8px;
  font-size: 12px;
}

.task-table-row.has-unsaved-status .save-task-btn {
  display: inline-flex;
}

.task-table-row .push-task-btn {
  min-width: 44px;
  min-height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 12px;
}

.task-more-btn {
  min-width: 34px;
  min-height: 30px;
  border-radius: 8px;
  color: var(--muted);
  background: #f3f6fa;
  font-size: 12px;
  font-weight: 900;
}

.task-kanban-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  overflow-x: hidden;
  padding-bottom: 6px;
  min-width: 0;
  width: 100%;
}

.kanban-scope-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #cfe0f5;
  border-radius: 8px;
  background: #f4f8ff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.kanban-scope-note strong {
  color: var(--primary-dark);
  font-size: 14px;
}

.task-kanban-column {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faff;
  overflow: hidden;
}

.task-kanban-column-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #eef4fb;
  color: var(--ink);
}

.task-kanban-column-head strong {
  font-size: 15px;
  font-weight: 900;
}

.task-kanban-column-head span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}

.task-kanban-column-body {
  display: grid;
  gap: 8px;
  align-content: start;
  max-height: min(680px, calc(100vh - 380px));
  min-height: 180px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px;
}

.kanban-task-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  padding: 11px 12px;
  border-radius: 8px;
  overflow: visible;
}

.kanban-task-card > * {
  min-width: 0;
}

.kanban-task-top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.kanban-meta-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.kanban-content-input {
  display: block;
  grid-column: 1 / -1;
  justify-self: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 76px;
  max-height: 260px;
  padding: 4px 2px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  resize: none;
  overflow-x: hidden;
  overflow-y: hidden;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.kanban-note-input {
  min-height: 38px;
  max-height: 120px;
  padding: 7px 8px;
  background: #f8fbff;
  font-size: 12px;
  font-weight: 750;
}

.kanban-task-card .task-note-summary {
  width: 100%;
}

.kanban-task-card .task-note-summary > span {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.kanban-task-card .task-note-summary:hover::after {
  display: none;
}

.kanban-content-input:focus {
  outline: 1px solid rgba(28, 111, 210, 0.25);
  background: #fff;
}

.kanban-task-card .task-actions-inline {
  display: grid;
  grid-template-columns: repeat(3, 46px);
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.kanban-task-card .task-actions-inline .text-btn {
  padding-right: 3px;
  padding-left: 3px;
  font-size: 12px;
}

.kanban-status-row {
  align-items: center;
}

.kanban-deadline-hint {
  color: var(--status-risk-text);
  font-weight: 900;
}

.kanban-task-card .save-task-btn {
  display: inline-flex;
}

.kanban-task-card.has-unsaved-status .save-task-btn {
  display: inline-flex;
}

.kanban-empty {
  min-height: 88px;
  display: grid;
  place-items: center;
  border: 1px dashed #d8e3ef;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.7);
}

.kanban-more-hint {
  padding: 10px 12px;
  border: 1px dashed #cfe0f5;
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.select-task-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  color: var(--muted);
  font-size: 13px;
}

.select-task-field input {
  width: 16px;
  min-height: 16px;
}

.task-fields {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.task-cell {
  color: var(--muted);
  font-size: 13px;
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 0;
}

.task-completion-note-input,
.status-select {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 6px 8px;
  font-size: 13px;
  line-height: 1.4;
}

.task-completion-note-input {
  min-height: 38px;
  overflow: hidden;
  resize: vertical;
}

.meeting-type-pill,
.overdue-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.meeting-type-pill {
  color: var(--primary-dark);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px rgba(22, 104, 220, 0.08);
}

.overdue-pill {
  color: var(--danger);
  background: #fff0f0;
}

.status-select {
  appearance: auto;
  color: var(--ink);
  font-weight: 700;
}

.owner-task-item .primary-btn,
.owner-task-item .secondary-btn,
.owner-task-item .text-btn {
  min-height: 34px;
  padding: 5px 7px;
  font-size: 13px;
}

.owner-task-item:not(.task-table-row) .save-task-btn,
.owner-task-item:not(.task-table-row) .push-task-btn {
  flex: 0 0 auto;
  min-width: 46px;
  min-height: 30px;
  padding: 0 4px;
}

.owner-task-item:not(.task-table-row) .push-task-btn {
  min-width: 46px;
}

.owner-task-item > *,
.draft-task-item > * {
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.badge.high {
  color: var(--danger);
  background: #fff0f0;
}

.badge.medium {
  color: var(--warning);
  background: #fff7e6;
}

.badge.low {
  color: var(--success);
  background: #eaf8f1;
}

.badge,
.meeting-type-pill,
.priority-pill,
.status-pill {
  white-space: nowrap;
}

.status-select {
  min-width: 0;
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.empty-state {
  padding: 20px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fbfdff, #f7fafd);
  font-weight: 700;
  line-height: 1.6;
}

.gantt-page-panel {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.gantt-page-hero {
  align-items: center;
  margin-bottom: 16px;
}

.gantt-page-hero .panel-label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.gantt-page-hero h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
}

.gantt-page-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.gantt-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.gantt-hero-actions .count-pill {
  display: none;
}

.gantt-hero-actions .secondary-btn,
.gantt-hero-actions .primary-btn {
  min-width: 88px;
  height: 42px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
}

.gantt-hero-actions .secondary-btn::before {
  content: "↓";
  margin-right: 10px;
  color: #1f6be3;
  font-size: 22px;
  line-height: 1;
}

.gantt-hero-actions .primary-btn::before {
  content: "+";
  margin-right: 10px;
  font-size: 26px;
  line-height: 0;
}

.gantt-board {
  display: grid;
  gap: 14px;
}

.gantt-filter-card,
.gantt-stats-row,
.gantt-chart-card {
  border: 1px solid #dde7f2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(16, 34, 61, 0.06);
}

.gantt-filter-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 16px 18px;
}

.gantt-filter-card label {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.gantt-filter-card label > span {
  color: #62748e;
  font-size: 13px;
  font-weight: 800;
}

.gantt-filter-card select,
.gantt-date-range {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d9e3ef;
  border-radius: 7px;
  background: #fff;
  color: #13233a;
  font-size: 14px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.gantt-date-range {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.gantt-date-range::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 2px solid #6b7f98;
  border-radius: 2px;
  color: #6b7f98;
  font-size: 16px;
  flex: 0 0 auto;
}

.gantt-date-range em {
  color: #253853;
  font-style: normal;
}

.gantt-date-range input {
  min-width: 0;
  width: 128px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #13233a;
  font: inherit;
  font-weight: 800;
}

.gantt-stats-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 16px 18px;
}

.gantt-stat-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 0 16px;
  border-right: 1px solid #e6edf5;
}

.gantt-stat-card:last-child {
  border-right: 0;
}

.gantt-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  position: relative;
  background: #eaf2ff;
}

.gantt-stat-icon::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #1f6be3;
  font-size: 20px;
  font-weight: 950;
}

.gantt-stat-card.total .gantt-stat-icon::after { content: "▣"; }
.gantt-stat-card.personal .gantt-stat-icon { background: #edf5ff; }
.gantt-stat-card.personal .gantt-stat-icon::after { content: "%"; color: #1f6be3; }
.gantt-stat-card.done .gantt-stat-icon { background: var(--status-done-bg); }
.gantt-stat-card.done .gantt-stat-icon::after { content: "✓"; color: var(--status-done-solid); }
.gantt-stat-card.doing .gantt-stat-icon::after { content: "◴"; }
.gantt-stat-card.todo .gantt-stat-icon { background: var(--status-todo-bg); }
.gantt-stat-card.todo .gantt-stat-icon::after { content: "◔"; color: var(--status-todo-text); }
.gantt-stat-card.risk .gantt-stat-icon { background: var(--status-risk-bg); }
.gantt-stat-card.risk .gantt-stat-icon::after { content: "△"; color: var(--status-risk-solid); }

.gantt-stat-card p {
  margin: 0 0 4px;
  color: #6a7b94;
  font-size: 13px;
  font-weight: 800;
}

.gantt-stat-card strong {
  color: #071d3d;
  font-size: 22px;
  line-height: 1;
  font-weight: 950;
}

.gantt-chart-card {
  overflow: hidden;
}

.gantt-legend {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 16px 18px 14px;
  color: #657890;
  font-size: 13px;
  font-weight: 900;
}

.gantt-legend span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.gantt-legend span::before {
  content: "";
  width: 18px;
  height: 10px;
  border-radius: 999px;
  background: #b9c4cf;
}

.gantt-legend .done::before { background: var(--status-done-solid); }
.gantt-legend .doing::before { background: var(--status-doing-solid); }
.gantt-legend .todo::before { background: var(--status-todo-solid); }
.gantt-legend .risk::before { background: var(--status-risk-solid); }

.gantt-table {
  display: grid;
  grid-template-columns: minmax(560px, 0.52fr) minmax(calc(var(--gantt-days, 8) * 54px), 0.48fr);
  border-top: 1px solid #e3eaf2;
  overflow-x: auto;
  overflow-y: hidden;
}

.gantt-left {
  min-width: 0;
  border-right: 1px solid #dfe7f0;
}

.gantt-head-row,
.gantt-task-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.7fr) 58px 80px 54px 74px 60px;
  align-items: center;
}

.gantt-head-row {
  height: 78px;
  background: #f8fafc;
  border-bottom: 1px solid #e3eaf2;
  color: #263852;
  font-size: 13px;
  font-weight: 950;
  text-align: center;
}

.gantt-task-row {
  position: relative;
  height: 88px;
  border-bottom: 1px solid #e7edf4;
  color: #1a2a41;
  font-size: 13px;
  font-weight: 850;
}

.gantt-task-row > * {
  min-width: 0;
  padding: 0 7px;
  text-align: center;
}

.gantt-task-row strong {
  padding-left: 42px;
  text-align: left;
  overflow: hidden;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.gantt-task-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  padding: 0;
}

.gantt-task-icon::before {
  content: "▣";
  font-size: 24px;
  font-weight: 950;
}

.gantt-task-icon.screen::before { color: #1f6be3; }
.gantt-task-icon.mail::before { content: "✉"; color: #7957ff; }
.gantt-task-icon.grid::before { content: "▦"; color: #ff8a00; }
.gantt-task-icon.chart::before { content: "▥"; color: #2fcfad; }
.gantt-task-icon.megaphone::before { content: "◁"; color: #ef4058; }

.gantt-priority,
.gantt-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-width: 42px;
  height: 32px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 950;
}

.gantt-priority.high {
  color: #f43f5e;
  background: #ffe9ee;
}

.gantt-priority.medium {
  color: #e58b00;
  background: #fff1df;
}

.gantt-priority.low {
  color: #14a36b;
  background: #e6f9ef;
}

.gantt-status-pill.done {
  color: var(--status-done-text);
  background: var(--status-done-bg);
}

.gantt-status-pill.doing {
  color: var(--status-doing-text);
  background: var(--status-doing-bg);
}

.gantt-status-pill.todo {
  color: var(--status-todo-text);
  background: var(--status-todo-bg);
}

.gantt-status-pill.risk {
  color: var(--status-risk-text);
  background: var(--status-risk-bg);
}

.gantt-progress {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #14233b;
  font-weight: 950;
}

.gantt-progress em {
  font-style: normal;
  line-height: 1;
}

.gantt-progress::after {
  content: "";
  width: 42px;
  height: 6px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #94a3b8 var(--progress), transparent 0),
    #e5eaf1;
}

.gantt-progress.done::after {
  background:
    linear-gradient(90deg, var(--status-done-solid) var(--progress), transparent 0),
    #e5eaf1;
}

.gantt-progress.doing::after {
  background:
    linear-gradient(90deg, var(--status-doing-solid) var(--progress), transparent 0),
    #e5eaf1;
}

.gantt-progress.todo::after {
  background:
    linear-gradient(90deg, var(--status-todo-solid) var(--progress), transparent 0),
    #e5eaf1;
}

.gantt-progress.risk::after {
  background:
    linear-gradient(90deg, var(--status-risk-solid) var(--progress), transparent 0),
    var(--status-risk-bg);
}

.gantt-timeline {
  min-width: calc(var(--gantt-days, 8) * 54px);
  overflow: hidden;
}

.gantt-month {
  display: grid;
  place-items: center;
  height: 28px;
  color: #071d3d;
  font-size: 15px;
  font-weight: 950;
  border-bottom: 1px solid #e3eaf2;
}

.gantt-day-head {
  display: grid;
  height: 50px;
  border-bottom: 1px solid #e3eaf2;
}

.gantt-day-head > div {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border-right: 1px solid #e4ebf3;
  color: #6f8099;
  font-size: 12px;
  font-weight: 850;
}

.gantt-day-head strong {
  color: #14233b;
  font-size: 13px;
  line-height: 1;
}

.gantt-day-head em {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 11px;
  border-radius: 999px;
  color: #fff;
  background: #4f8df7;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.gantt-day-head .is-today,
.gantt-line-row > .is-today {
  background: rgba(64, 132, 230, 0.09);
}

.gantt-line-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--gantt-columns), minmax(54px, 1fr));
  height: 88px;
  border-bottom: 1px solid #e7edf4;
}

.gantt-line-row > span {
  border-right: 1px dashed #dbe4ee;
}

.gantt-bar {
  position: absolute;
  z-index: 2;
  top: 50%;
  height: 22px;
  min-width: 38px;
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(31, 107, 227, 0.18);
  transform: translateY(-50%);
}

.gantt-bar.done { background: linear-gradient(90deg, var(--status-done-solid), var(--status-done-solid-end)); }
.gantt-bar.doing { background: linear-gradient(90deg, var(--status-doing-solid), var(--status-doing-solid-end)); }
.gantt-bar.todo { background: linear-gradient(90deg, var(--status-todo-solid), var(--status-todo-solid-end)); box-shadow: 0 8px 16px rgba(71, 85, 105, 0.14); }
.gantt-bar.risk { background: linear-gradient(90deg, var(--status-risk-solid), var(--status-risk-solid-end)); box-shadow: 0 8px 16px rgba(237, 51, 78, 0.24); }
.gantt-bar.risk[data-progress="15"] { min-width: 54px; }
.gantt-bar.todo[data-progress="0"] { min-width: 54px; opacity: 0.9; }

.gantt-empty-row {
  display: grid;
  align-items: center;
  min-height: 82px;
  padding: 0 24px;
  color: #70839c;
  font-size: 15px;
  font-weight: 850;
}

.gantt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 24px;
  color: #667890;
  font-size: 16px;
  font-weight: 850;
}

.gantt-pagination,
.task-list-pagination {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.gantt-pagination button,
.gantt-pagination strong,
.gantt-pagination select,
.task-list-pagination button,
.task-list-pagination strong,
.task-list-pagination select {
  height: 42px;
  border: 1px solid #dce6f1;
  border-radius: 8px;
  background: #fff;
  color: #718198;
  font-weight: 900;
  white-space: nowrap;
}

.gantt-pagination button,
.task-list-pagination button {
  width: 42px;
}

.gantt-pagination strong,
.task-list-pagination strong {
  display: grid;
  place-items: center;
  min-width: 64px;
  padding: 0 10px;
  color: #fff;
  background: #1f6be3;
  box-shadow: 0 6px 14px rgba(31, 107, 227, 0.25);
}

.gantt-pagination select,
.task-list-pagination select {
  min-width: 140px;
  padding: 0 14px;
}

.task-list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 4px 0;
  color: #667890;
  font-size: 15px;
  font-weight: 850;
}

@media (max-width: 1500px) {
  .app-shell.is-gantt-view:not(.sidebar-collapsed) {
    grid-template-columns: 292px minmax(0, 1fr);
  }

  .app-shell.is-gantt-view .sidebar {
    padding-right: 30px;
  }

  .gantt-filter-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gantt-stats-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 18px;
  }

  .gantt-stat-card {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding: 0 12px;
  }

  .gantt-stat-icon {
    width: 40px;
    height: 40px;
  }

  .gantt-table {
    grid-template-columns: minmax(440px, 0.46fr) minmax(0, 0.54fr);
  }

  .gantt-head-row,
  .gantt-task-row {
    grid-template-columns: minmax(150px, 1.5fr) 52px 68px 52px 70px 56px;
  }
}

@media (max-width: 1180px) {
  .gantt-page-hero {
    display: grid;
    gap: 16px;
  }

  .gantt-hero-actions {
    justify-content: flex-start;
  }

  .gantt-stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .gantt-stat-card {
    border-right: 0;
  }

  .gantt-chart-card {
    overflow-x: auto;
  }

  .gantt-table {
    min-width: 980px;
  }
}

.bigscreen-page {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 100vh;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 14px 30px 18px;
  border-radius: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(26, 116, 255, 0.2), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(58, 230, 152, 0.12), transparent 26%),
    linear-gradient(135deg, #081426 0%, #07101e 46%, #050b15 100%);
  color: #f8fafc;
}

body.public-bigscreen .bigscreen-page {
  aspect-ratio: 16 / 9;
  width: min(100vw, 177.7778vh);
  height: min(100vh, 56.25vw);
  max-width: 100vw;
  max-height: 100vh;
  min-height: 0;
  padding: clamp(10px, 1.2vh, 14px) clamp(18px, 1.65vw, 30px) clamp(12px, 1.55vh, 18px);
  overflow: hidden;
}

.bigscreen-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
  padding: 0 6px clamp(6px, 0.9vh, 10px) 18px;
  border: 0;
  border-bottom: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.bigscreen-hero > div:first-child {
  position: relative;
  min-width: 0;
}

.bigscreen-hero > div:first-child::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 8px;
  width: 5px;
  height: 58px;
  border-radius: 999px;
  background: #38bdf8;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.75);
}

.bigscreen-hero h3 {
  max-width: 920px;
  margin: 2px 0 0;
  overflow: hidden;
  font-size: clamp(34px, 2.7vw, 52px);
  letter-spacing: 0;
  line-height: 1.02;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bigscreen-hero .panel-label {
  color: #33bdf7;
  font-size: 18px;
  letter-spacing: 0.06em;
}

.bigscreen-clock {
  min-width: 0;
  display: grid;
  justify-items: end;
  gap: 4px;
}

.bigscreen-clock strong {
  display: none;
}

.bigscreen-clock span {
  color: #a9b8ca;
  font-size: 16px;
  font-weight: 800;
}

.bigscreen-board {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto auto minmax(0, auto) minmax(0, 1fr);
  gap: clamp(8px, 1.1vh, 12px);
  width: 100%;
  max-width: 100%;
}

.bigscreen-hero,
.bigscreen-summary,
.bigscreen-panel {
  max-width: 100%;
}

.bigscreen-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  pointer-events: auto;
}

.bigscreen-tabs span {
  color: #d8e6f6;
  font-weight: 800;
}

.bigscreen-tabs button {
  min-width: 108px;
  padding: 9px 22px;
  border: 1px solid rgba(79, 131, 205, 0.28);
  border-radius: 7px;
  background: rgba(21, 37, 60, 0.74);
  color: #b9c8da;
  font-weight: 900;
}

.bigscreen-tabs button.active {
  border-color: rgba(70, 216, 137, 0.62);
  background: rgba(38, 130, 82, 0.28);
  color: #58e38d;
}

.bigscreen-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
  gap: 12px;
}

.bigscreen-summary article,
.bigscreen-panel,
.bigscreen-person-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(42, 75, 115, 0.42), rgba(13, 25, 41, 0.9)),
    rgba(10, 20, 34, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 36px rgba(0, 0, 0, 0.16);
}

.bigscreen-summary article {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 124px;
  padding: 18px 18px;
}

.bigscreen-summary span,
.bigscreen-person-card span {
  color: #a9b8ca;
}

.bigscreen-summary strong {
  font-size: clamp(28px, 3vw, 46px);
  color: #ffffff;
}

.bigscreen-summary small {
  color: #7e91a8;
  font-weight: 800;
}

.bigscreen-metric.is-green strong,
.bigscreen-rate-card strong {
  color: var(--status-done-solid-end);
}

.bigscreen-metric.is-orange strong {
  color: #f59e0b;
}

.bigscreen-metric.is-red strong {
  color: var(--status-risk-solid-end);
}

.bigscreen-metric.is-todo strong {
  color: var(--status-todo-solid-end);
}

.bigscreen-rate-card {
  align-content: center;
  justify-items: center;
}

.bigscreen-rate-card strong {
  font-size: clamp(40px, 4.6vw, 72px);
}

.bigscreen-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px 16px;
  overflow: hidden;
}

.bigscreen-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bigscreen-panel h4 {
  margin: 0;
  font-size: 20px;
}

.bigscreen-legend {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #b4c4d7;
  font-size: 13px;
  font-weight: 800;
}

.bigscreen-legend span::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 8px;
  margin-right: 6px;
  border-radius: 999px;
  background: #64748b;
}

.bigscreen-legend .done::before { background: var(--status-done-solid); }
.bigscreen-legend .doing::before { background: var(--status-doing-solid); }
.bigscreen-legend .todo::before { background: var(--status-todo-solid); }
.bigscreen-legend .risk::before { background: var(--status-risk-solid); }

.bigscreen-gantt-scale {
  display: grid;
  grid-template-columns: 82px 70px repeat(10, minmax(0, 1fr));
  min-width: 0;
  gap: 0;
  color: #b8c7da;
  font-size: 13px;
  font-weight: 800;
}

.bigscreen-gantt-list {
  display: grid;
  min-width: 0;
  border: 1px solid rgba(120, 150, 190, 0.14);
  border-radius: 8px;
  overflow: hidden;
}

.bigscreen-gantt-row {
  display: grid;
  grid-template-columns: 82px 70px minmax(0, 1fr);
  min-width: 0;
  min-height: 40px;
  align-items: center;
  border-bottom: 1px solid rgba(120, 150, 190, 0.12);
}

.bigscreen-gantt-row:last-child {
  border-bottom: 0;
}

.bigscreen-gantt-row strong,
.bigscreen-gantt-row em {
  overflow: hidden;
  padding: 0 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bigscreen-gantt-row em {
  color: #55df8c;
  font-style: normal;
  font-weight: 900;
}

.bigscreen-gantt-track {
  position: relative;
  display: flex;
  align-items: center;
  height: 30px;
  margin-right: 8px;
  min-width: 0;
  overflow: hidden;
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, rgba(96, 130, 172, 0.13) 0, rgba(96, 130, 172, 0.13) 1px, transparent 1px, transparent 10%);
}

.bigscreen-gantt-bar {
  position: relative;
  height: 14px;
  min-width: 10px;
  border-radius: 0;
  background: #64748b;
}

.bigscreen-gantt-bar:first-child {
  border-radius: 999px 0 0 999px;
}

.bigscreen-gantt-bar:last-child {
  border-radius: 0 999px 999px 0;
}

.bigscreen-gantt-bar:only-child {
  border-radius: 999px;
}

.bigscreen-gantt-bar.done { background: linear-gradient(90deg, var(--status-done-solid), var(--status-done-solid-end)); }
.bigscreen-gantt-bar.doing { background: linear-gradient(90deg, var(--status-doing-solid), var(--status-doing-solid-end)); }
.bigscreen-gantt-bar.todo { background: linear-gradient(90deg, var(--status-todo-solid), var(--status-todo-solid-end)); }
.bigscreen-gantt-bar.risk { background: linear-gradient(90deg, var(--status-risk-solid), var(--status-risk-solid-end)); }

.bigscreen-member-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  min-width: 0;
  gap: 12px;
}

.bigscreen-person-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 12px 14px;
}

.bigscreen-person-card header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.avatar-dot {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f6feb, #4ade80);
  color: #fff;
  font-weight: 900;
}

.bigscreen-person-card header strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bigscreen-person-card header b {
  color: #62e78f;
  font-size: 28px;
}

.bigscreen-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.bigscreen-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #30c978, #9af4c2);
}

.bigscreen-person-card footer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  text-align: center;
}

.bigscreen-person-card footer span {
  display: grid;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.bigscreen-person-card footer small {
  color: #92a4ba;
  font-size: 11px;
}

.bigscreen-table-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  max-width: 100%;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}

.bigscreen-task-table {
  min-width: 0;
  overflow: hidden;
  align-content: start;
}

.bigscreen-task-table table {
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  table-layout: fixed;
  border-collapse: collapse;
  color: #dbe8f7;
  font-size: 13px;
}

.bigscreen-task-table th,
.bigscreen-task-table td {
  padding: 8px 9px;
  border-bottom: 1px solid rgba(116, 143, 178, 0.12);
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bigscreen-task-table th:nth-child(1),
.bigscreen-task-table td:nth-child(1) {
  width: 34px;
}

.bigscreen-task-table th:nth-child(2),
.bigscreen-task-table td:nth-child(2) {
  width: 32%;
}

.bigscreen-task-table th:nth-child(3),
.bigscreen-task-table td:nth-child(3),
.bigscreen-task-table th:nth-child(4),
.bigscreen-task-table td:nth-child(4) {
  width: 58px;
}

.bigscreen-task-table th:nth-child(5),
.bigscreen-task-table td:nth-child(5) {
  width: 66px;
}

.bigscreen-task-table th:nth-child(6),
.bigscreen-task-table td:nth-child(6) {
  width: 86px;
}

.bigscreen-task-table th:nth-child(7),
.bigscreen-task-table td:nth-child(7) {
  width: 72px;
}

.bigscreen-task-table th {
  color: #93a7bf;
  font-weight: 900;
}

.bigscreen-task-table .empty-row td {
  height: 92px;
  color: #c7d6e8;
  font-weight: 800;
  white-space: normal;
}

.priority-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

.priority-pill.high {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.priority-pill.mid {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.32);
}

.priority-pill.low {
  background: rgba(34, 197, 94, 0.16);
  color: #74e7a4;
  border: 1px solid rgba(34, 197, 94, 0.32);
}

.status-pill {
  border: 1px solid color-mix(in srgb, var(--status-todo-solid) 36%, transparent);
  background: color-mix(in srgb, var(--status-todo-solid) 18%, transparent);
  color: var(--status-todo-solid-end);
}

.status-pill.doing {
  border-color: color-mix(in srgb, var(--status-doing-solid) 46%, transparent);
  background: color-mix(in srgb, var(--status-doing-solid) 20%, transparent);
  color: var(--status-doing-solid-end);
}

.status-pill.done {
  border-color: color-mix(in srgb, var(--status-done-solid) 36%, transparent);
  background: color-mix(in srgb, var(--status-done-solid) 18%, transparent);
  color: var(--status-done-solid-end);
}

.bigscreen-task-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  border-left: 3px solid rgba(154, 244, 194, 0.78);
}

.bigscreen-task-item.is-overdue {
  border-left-color: var(--status-risk-solid-end);
  background: color-mix(in srgb, var(--status-risk-solid) 12%, transparent);
}

.bigscreen-task-item b {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.bigscreen-task-item span,
.bigscreen-empty,
.bigscreen-more {
  color: #a9b8ca;
  font-size: 12px;
  line-height: 1.35;
}

.bigscreen-more {
  padding: 6px 8px;
  color: #d7e6f8;
  font-weight: 800;
}

.bigscreen-summary {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.bigscreen-summary article {
  position: relative;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon value"
    "icon meta";
  column-gap: 14px;
  min-height: 92px;
  padding: 11px 13px;
  overflow: hidden;
  border-width: 1px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 22px rgba(56, 189, 248, 0.08),
    0 14px 34px rgba(0, 0, 0, 0.18);
}

.bigscreen-summary article::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 35%);
  opacity: 0.45;
}

.bigscreen-summary i {
  grid-area: icon;
  display: grid;
  place-items: center;
  align-self: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #7db8ff;
  background: transparent;
  font-style: normal;
  font-size: 24px;
  font-weight: 900;
  box-shadow: none;
}

.bigscreen-summary i svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: none;
}

.bigscreen-summary article > span {
  grid-area: label;
  align-self: end;
  color: #c8d7eb;
  font-size: 15px;
  font-weight: 900;
}

.bigscreen-summary strong {
  grid-area: value;
  line-height: 1;
  font-size: clamp(30px, 2.45vw, 46px);
}

.bigscreen-summary small {
  grid-area: meta;
}

.bigscreen-metric.is-green {
  border-color: color-mix(in srgb, var(--status-done-solid) 34%, transparent);
  background: linear-gradient(180deg, rgba(36, 119, 72, 0.44), rgba(13, 25, 41, 0.92));
}

.bigscreen-metric.is-green i {
  color: var(--status-done-solid-end);
  background: transparent;
}

.bigscreen-metric.is-orange {
  border-color: rgba(245, 158, 11, 0.34);
  background: linear-gradient(180deg, rgba(132, 82, 18, 0.42), rgba(13, 25, 41, 0.92));
}

.bigscreen-metric.is-orange i {
  color: #fbbf24;
  background: transparent;
}

.bigscreen-metric.is-todo {
  border-color: color-mix(in srgb, var(--status-todo-solid) 34%, transparent);
  background: linear-gradient(180deg, rgba(132, 82, 18, 0.42), rgba(13, 25, 41, 0.92));
}

.bigscreen-metric.is-todo i {
  color: var(--status-todo-solid-end);
  background: transparent;
}

.bigscreen-metric.is-red {
  border-color: color-mix(in srgb, var(--status-risk-solid) 36%, transparent);
  background: linear-gradient(180deg, rgba(120, 38, 44, 0.45), rgba(13, 25, 41, 0.92));
}

.bigscreen-metric.is-red i {
  color: var(--status-risk-solid-end);
  background: transparent;
}

.bigscreen-metric.is-teal strong,
.bigscreen-metric.is-cyan strong {
  color: #53d9e8;
}

.bigscreen-metric.is-teal {
  border-color: rgba(45, 212, 191, 0.34);
  background: linear-gradient(180deg, rgba(16, 105, 116, 0.42), rgba(13, 25, 41, 0.92));
}

.bigscreen-metric.is-teal i,
.bigscreen-metric.is-cyan i {
  color: #38bdf8;
  background: transparent;
}

.bigscreen-ranking-panel h4,
.bigscreen-done-feed h4,
.bigscreen-important-table h4 {
  position: relative;
  padding-left: 14px;
}

.bigscreen-ranking-panel h4::before,
.bigscreen-done-feed h4::before,
.bigscreen-important-table h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  width: 4px;
  height: 1.1em;
  border-radius: 999px;
  background: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.8);
}

.bigscreen-ranking-panel {
  gap: 12px;
  overflow: hidden;
}

.bigscreen-member-strip {
  display: block;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  padding: 2px 0 8px 14px;
  scroll-snap-type: x proximity;
  scrollbar-color: rgba(56, 189, 248, 0.36) rgba(15, 23, 42, 0.42);
}

.bigscreen-member-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(196px, 212px);
  grid-template-columns: none;
  gap: 9px;
  width: max-content;
  min-width: 100%;
}

.bigscreen-member-strip.is-carousel .bigscreen-member-track {
  overflow: visible;
  animation: bigscreenMemberLoop 46s linear infinite;
}

.bigscreen-member-strip.is-carousel::-webkit-scrollbar {
  display: none;
}

.bigscreen-ranking-panel:hover .bigscreen-member-strip.is-carousel .bigscreen-member-track {
  animation-play-state: paused;
}

@keyframes bigscreenMemberLoop {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 4.5px)); }
}

.bigscreen-member-strip::-webkit-scrollbar {
  height: 8px;
}

.bigscreen-member-strip::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.16);
}

.bigscreen-member-strip::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.38);
}

.bigscreen-person-card {
  position: relative;
  min-height: 138px;
  padding: 12px 9px 10px;
  border: 1px solid rgba(34, 137, 214, 0.58);
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(19, 54, 86, 0.72), rgba(9, 23, 40, 0.94)),
    radial-gradient(circle at 15% 0%, rgba(56, 189, 248, 0.16), transparent 38%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(14, 165, 233, 0.08),
    0 16px 28px rgba(0, 0, 0, 0.14);
  scroll-snap-align: start;
}

.rank-corner {
  display: none;
}

.bigscreen-person-card header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding-top: 0;
}

.bigscreen-person-card header > div:not(.avatar-dot) {
  min-width: 0;
}

.bigscreen-person-card header strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #f8fafc;
  font-size: 18px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bigscreen-person-card header span {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  line-height: 1.25;
}

.bigscreen-person-card header b {
  justify-self: end;
  white-space: nowrap;
  font-size: 28px;
  line-height: 1;
}

.bigscreen-person-card .avatar-dot {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(115, 235, 188, 0.68);
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.74), transparent 20%),
    radial-gradient(circle at 50% 55%, rgba(25, 91, 63, 0.8), rgba(17, 126, 91, 0.72) 58%, rgba(45, 212, 191, 0.42));
  backdrop-filter: blur(14px);
  box-shadow:
    0 0 0 2px rgba(74, 222, 128, 0.12),
    0 0 18px rgba(74, 222, 128, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -10px 22px rgba(15, 23, 42, 0.16);
  color: #ffffff;
  font-size: 17px;
  font-weight: 950;
}

.bigscreen-progress {
  display: flex;
  height: 8px;
  margin: 11px 0 10px;
}

.bigscreen-progress span {
  display: block;
  width: auto;
  min-width: 0;
  border-radius: 0;
}

.bigscreen-progress span:first-child {
  border-radius: 999px 0 0 999px;
}

.bigscreen-progress span:last-child {
  border-radius: 0 999px 999px 0;
}

.bigscreen-progress .done { background: linear-gradient(90deg, var(--status-done-solid), var(--status-done-solid-end)); }
.bigscreen-progress .doing { background: linear-gradient(90deg, var(--status-doing-solid), var(--status-doing-solid-end)); }
.bigscreen-progress .todo { background: linear-gradient(90deg, var(--status-todo-solid), var(--status-todo-solid-end)); }

.bigscreen-person-card footer {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.bigscreen-person-card footer span {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 2px;
  color: #f8fafc;
  line-height: 1;
  white-space: nowrap;
}

.bigscreen-person-card footer em {
  color: #ffffff;
  font-style: normal;
  font-size: 21px;
  font-weight: 950;
}

.bigscreen-person-card footer small {
  margin-top: 0;
  color: #a9b8ca;
  font-size: 10px;
  line-height: 1.05;
  white-space: nowrap;
}

.bigscreen-mini-legend { display: none; }

.bigscreen-activity-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.44fr) minmax(0, 0.56fr);
  gap: 14px;
  min-width: 0;
}

.bigscreen-carousel {
  max-height: none;
  overflow: visible;
  mask-image: none;
}

.bigscreen-list-head,
.bigscreen-feed-row {
  display: grid;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.bigscreen-list-head {
  min-height: 36px;
  border-bottom: 1px solid rgba(117, 150, 191, 0.18);
  color: #9fb1c7;
  font-size: 13px;
  font-weight: 900;
}

.bigscreen-done-feed .bigscreen-list-head,
.bigscreen-done-feed .bigscreen-feed-row {
  grid-template-columns: 48px minmax(0, 1fr) 120px;
}

.bigscreen-important-table .bigscreen-list-head,
.bigscreen-important-table .bigscreen-feed-row {
  grid-template-columns: 28px minmax(0, 1.5fr) 66px 78px 72px 90px 92px;
}

.bigscreen-carousel-window {
  height: clamp(210px, 24.5vh, 264px);
  overflow: hidden;
  mask-image: linear-gradient(180deg, #000 0%, #000 88%, transparent 100%);
}

.bigscreen-carousel-track {
  display: grid;
}

.bigscreen-carousel-track.is-carousel {
  animation: bigscreenRowLoop 24s linear infinite;
}

.bigscreen-carousel-track.important-track.is-carousel {
  animation-duration: 31s;
  animation-delay: -8s;
}

.bigscreen-important-table:hover .bigscreen-carousel-track.is-carousel {
  animation-play-state: paused;
}

@keyframes bigscreenRowLoop {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

.bigscreen-feed-row {
  min-height: 46px;
  border-bottom: 1px solid rgba(117, 150, 191, 0.12);
  color: #d8e6f6;
  font-size: 14px;
}

.bigscreen-feed-row strong {
  min-width: 0;
  overflow: hidden;
  color: #dce8f8;
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bigscreen-feed-row span,
.bigscreen-feed-row time {
  min-width: 0;
  color: #b9c9dd;
  font-weight: 800;
  white-space: nowrap;
}

.bigscreen-feed-empty {
  display: grid;
  min-height: 120px;
  align-items: center;
  color: #a9b8ca;
  font-weight: 800;
}

.bigscreen-done-feed .row-index {
  color: var(--status-done-solid-end);
  font-weight: 900;
}

.bigscreen-done-feed .bigscreen-feed-row time {
  text-align: right;
}

.bigscreen-important-table .risk-dot {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
}

.bigscreen-important-table .risk-dot::before {
  content: "!";
  color: #031019;
  font-size: 12px;
  font-weight: 900;
}

.risk-dot.overdue { background: var(--status-risk-solid); }
.risk-dot.today { background: #f59e0b; }
.risk-dot.high { background: #fbbf24; }
.risk-dot.doing { background: var(--status-doing-solid); }
.risk-dot.normal { background: var(--status-todo-solid); }

.status-pill.overdue {
  border-color: color-mix(in srgb, var(--status-risk-solid) 42%, transparent);
  background: color-mix(in srgb, var(--status-risk-solid) 20%, transparent);
  color: var(--status-risk-solid-end);
}

.status-pill.today {
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.status-pill.high {
  border-color: rgba(59, 130, 246, 0.42);
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
}

.status-pill.doing {
  border-color: color-mix(in srgb, var(--status-doing-solid) 46%, transparent);
  background: color-mix(in srgb, var(--status-doing-solid) 22%, transparent);
  color: var(--status-doing-solid-end);
}

.status-pill.normal {
  border-color: color-mix(in srgb, var(--status-todo-solid) 42%, transparent);
  background: color-mix(in srgb, var(--status-todo-solid) 20%, transparent);
  color: var(--status-todo-solid-end);
}

.bigscreen-done-feed th:nth-child(1),
.bigscreen-done-feed td:nth-child(1) {
  width: 42px;
}

.bigscreen-done-feed th:nth-child(2),
.bigscreen-done-feed td:nth-child(2) {
  width: auto;
}

.bigscreen-done-feed th:nth-child(3),
.bigscreen-done-feed td:nth-child(3) {
  width: 112px;
  text-align: right;
}

.bigscreen-important-table th:nth-child(1),
.bigscreen-important-table td:nth-child(1) {
  width: 28px;
}

.bigscreen-important-table th:nth-child(2),
.bigscreen-important-table td:nth-child(2) {
  width: auto;
}

.bigscreen-important-table th:nth-child(3),
.bigscreen-important-table td:nth-child(3),
.bigscreen-important-table th:nth-child(4),
.bigscreen-important-table td:nth-child(4) {
  width: 62px;
}

.bigscreen-important-table th:nth-child(5),
.bigscreen-important-table td:nth-child(5),
.bigscreen-important-table th:nth-child(6),
.bigscreen-important-table td:nth-child(6),
.bigscreen-important-table th:nth-child(7),
.bigscreen-important-table td:nth-child(7) {
  width: 82px;
}

.audit-log-list {
  display: grid;
  gap: 10px;
}

.audit-filters {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(150px, 0.8fr) minmax(220px, 1.2fr) minmax(150px, 0.7fr);
  gap: 10px;
  margin-bottom: 12px;
}

.audit-log-item {
  display: grid;
  grid-template-columns: 120px 110px minmax(0, 1fr) 110px;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
}

.audit-log-item strong {
  color: var(--ink);
}

.audit-log-item span,
.audit-log-item p {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.audit-log-item p {
  overflow: visible;
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.audit-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.hint {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: min(420px, calc(100% - 44px));
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #101820;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 20;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1280px) {
  .task-kanban-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .task-view-panel,
  .task-filter-panel {
    padding: 18px;
  }

  .task-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .task-filter-actions {
    grid-column: 1 / -1;
  }

  #tasks .section-title.wrap {
    grid-template-columns: 1fr;
  }

  #tasks .filters {
    grid-template-columns: 1fr;
  }

  #tasks .task-toolbar-primary,
  #tasks .task-toolbar-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #tasks .task-view-switch {
    grid-column: span 2;
  }

  .saved-task-row-head,
  .task-table-card .task-table-row.owner-task-item {
    min-width: 1450px;
  }
}

@media (max-width: 980px) {
  .app-shell,
  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .app-shell.sidebar-collapsed .sidebar {
    position: static;
    height: auto;
    padding: 18px;
  }

  .app-shell.sidebar-collapsed .brand-block {
    justify-content: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 18px;
  }

  .app-shell.sidebar-collapsed .brand-block > div,
  .app-shell.sidebar-collapsed .side-panel {
    display: block;
  }

  .app-shell.sidebar-collapsed .sidebar-toggle {
    position: static;
    width: auto;
    margin-left: auto;
    padding: 8px 10px;
  }

  .side-nav,
  .app-shell.sidebar-collapsed .side-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .app-shell.sidebar-collapsed .side-nav a {
    display: block;
    min-height: auto;
    padding: 13px 14px 13px 16px;
    font-size: inherit;
  }

  .app-shell.sidebar-collapsed .side-nav a::before {
    content: none;
  }

  .app-shell.sidebar-collapsed .side-nav a::after {
    content: none;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .inline-fields,
  .draft-card {
    grid-template-columns: 1fr;
  }

  .owner-row-board {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .saved-task-row-head,
  .task-table-card .task-table-row.owner-task-item {
    min-width: 1450px;
  }

  .owner-row,
  .user-row,
  .public-link-row,
  .group-config-grid,
  .meeting-group-cards,
  .group-field-row,
  .settings-actions-row,
  .gantt-item,
  .bigscreen-summary,
  .audit-filters {
    grid-template-columns: 1fr;
  }

  .settings-actions-row {
    display: grid;
  }

  .config-actions,
  .member-actions {
    justify-content: stretch;
  }

  .bigscreen-hero {
    display: grid;
  }

  .bigscreen-clock {
    justify-items: start;
  }

  .bigscreen-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bigscreen-grid,
  .bigscreen-task-columns {
    grid-template-columns: 1fr;
  }

  .draft-owner-row {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .draft-task-item {
    min-width: 1020px;
  }

  .owner-task-strip,
  .draft-task-strip {
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  .workspace {
    padding: 14px;
  }

  .task-kanban-board {
    grid-template-columns: 1fr;
  }

  .task-view-panel {
    display: grid;
    grid-template-columns: 1fr;
  }

  .task-view-panel .task-view-switch,
  .task-view-panel #quickCreateTaskBtn {
    width: 100%;
  }

  .task-filter-panel,
  .task-filter-actions {
    grid-template-columns: 1fr;
  }

  .topbar,
  .section-title,
  .owner-row,
  .draft-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .owner-row-board {
    grid-template-columns: 1fr;
  }

  .owner-row-head,
  .draft-owner-head {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .draft-owner-row {
    grid-template-columns: 1fr;
  }

  .side-nav {
    grid-template-columns: 1fr;
  }

  .topbar-actions,
  .form-actions,
  .filters {
    align-items: stretch;
  }

  #tasks .section-title.wrap {
    grid-template-columns: 1fr;
  }

  #tasks .filters {
    grid-template-columns: 1fr;
    justify-content: stretch;
    width: 100%;
    max-width: 100%;
  }

  #tasks .filters > *,
  #tasks .filters input,
  #tasks .filters select,
  #tasks .filters button {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  #tasks .task-toolbar-primary,
  #tasks .task-toolbar-secondary {
    grid-template-columns: 1fr;
  }

  #tasks .task-view-switch {
    grid-column: auto;
  }

  .topbar-actions > *,
  .form-actions > *,
  .filters > * {
    width: 100%;
  }
}

.task-table-card .task-table-row.owner-task-item,
.task-table-card .task-table-head {
  min-width: 1450px;
}
