:root {
  color-scheme: light;
  --bg: #eef2f7;
  --panel: #ffffff;
  --ink: #17202a;
  --muted: #64748b;
  --line: #d8dee7;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --shadow: 0 18px 46px rgba(15, 23, 42, 0.24), 0 3px 10px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 7px;
  min-height: 34px;
  padding: 0 11px;
  cursor: pointer;
}

kbd {
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #f8fafc;
  color: #475569;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 800;
}

a {
  color: var(--accent);
}

button:hover {
  border-color: #9aa8ba;
}

#app {
  position: relative;
  height: 100vh;
}

.loading {
  display: grid;
  min-height: 100vh;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
}

.workspace {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100vh;
  min-width: 0;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 16px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.toolbar > div:first-child {
  min-width: 0;
}

.toolbar h1,
.toolbar p,
.panel-head h2 {
  margin: 0;
}

.toolbar h1 {
  display: -webkit-box;
  overflow: hidden;
  max-width: min(760px, 52vw);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 21px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.project-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 17px;
  color: var(--muted);
  font-size: 11px;
}

.project-breadcrumb button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 18px;
  max-width: 300px;
  overflow: hidden;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-breadcrumb button:hover {
  color: var(--ink);
}

.project-breadcrumb span {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.project-breadcrumb i {
  font-style: normal;
  opacity: 0.55;
}

.toolbar p {
  overflow: hidden;
  max-width: min(860px, 56vw);
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolbar-actions {
  display: grid;
  grid-template-rows: auto auto;
  gap: 5px;
  align-content: center;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
}

.toolbar-primary,
.toolbar-secondary,
.canvas-tools,
.profile-tools,
.task-nav,
.view-nav,
.task-create-nav,
.panel-nav,
.panel-nav > div,
.view-nav > div {
  display: flex;
  align-items: center;
}

.toolbar-primary {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.toolbar-secondary {
  justify-content: space-between;
  min-height: 26px;
  border-top: 1px solid #e2e8f0;
  padding-top: 4px;
}

.canvas-tools,
.profile-tools {
  gap: 5px;
}
.selection-tools{display:flex;align-items:center;gap:4px;border:1px solid #99f6e4;border-radius:7px;padding:2px 4px;background:#f0fdfa;box-shadow:0 2px 7px rgba(13,148,136,.12)}
.selection-tools strong{padding:0 4px;color:#0f766e;font-size:10px}
.selection-tools button{min-height:22px;padding:0 7px;border-color:#99f6e4;background:#fff;color:#0f766e;font-size:10px;font-weight:800}
.selection-tools button.active{border-color:#0d9488;background:#0d9488;color:#fff;box-shadow:0 2px 6px rgba(13,148,136,.24)}
.selection-tools button:last-child{color:#64748b}

.task-nav {
  gap: 4px;
  padding-right: 9px;
  border-right: 2px solid #cbd5e1;
}
.task-create-nav {
  padding-left: 8px;
  border-left: 2px solid #cbd5e1;
}


.panel-nav,
.view-nav {
  overflow: hidden;
  gap: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

.toolbar-group-label {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-right: 1px solid #cbd5e1;
  background: #e2e8f0;
  color: #475569;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.toolbar-actions .panel-button,
.toolbar-actions .view-button {
  position: relative;
  min-height: 30px;
  border: 0;
  border-right: 1px solid #dbe3ec;
  border-radius: 0;
  background: #fff;
  color: #475569;
  box-shadow: none;
}

.toolbar-actions .panel-button:last-child,
.toolbar-actions .view-button:last-child {
  border-right: 0;
}

.toolbar-actions .panel-button:hover,
.toolbar-actions .view-button:hover {
  background: #f1f5f9;
}
.toolbar-actions .panel-button.active,
.toolbar-actions .panel-button.active:hover {
  background: #dbeafe;
  color: #1d4ed8;
  box-shadow: inset 0 -2px #2563eb;
  font-weight: 800;
}


.toolbar-actions .view-button.active {
  z-index: 1;
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 58%, #7c3aed 100%);
  color: #fff;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .32),
    inset 0 -2px rgba(30, 41, 59, .18),
    0 0 0 2px rgba(99, 102, 241, .2),
    0 3px 9px rgba(37, 99, 235, .38);
  font-weight: 900;
  text-shadow: 0 1px 1px rgba(30, 41, 59, .25);
}

.toolbar-actions .view-button.active:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 58%, #6d28d9 100%);
}

.toolbar-actions .view-button.active kbd {
  border-color: rgba(255, 255, 255, .48);
  background: rgba(255, 255, 255, .2);
  color: #fff;
  box-shadow: none;
}

.toolbar-actions button,
.toolbar-actions .toolbar-link {
  min-height: 28px;
  padding: 0 8px;
  font-size: 13px;
}

.toolbar-actions kbd {
  padding: 0 4px;
  font-size: 9px;
}

.toolbar-actions button.active {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}
.toolbar-actions button b{display:inline-grid;min-width:17px;height:17px;place-items:center;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:9px}
.workflow-nav{display:flex;align-items:center;gap:5px;margin-right:5px;padding-right:9px;border-right:2px solid #cbd5e1}
.toolbar-actions .workflow-button{display:inline-flex;align-items:center;gap:6px;min-height:32px;border-width:1px;font-weight:800;box-shadow:0 1px 2px rgba(15,23,42,.06)}
.toolbar-actions .workflow-button.work{border-color:#99f6e4;background:#ecfeff;color:#0f766e}
.toolbar-actions .workflow-button.notifications{border-color:#fde68a;background:#fffbeb;color:#a16207}
.toolbar-actions .workflow-button.work b{background:#ccfbf1;color:#0f766e}
.toolbar-actions .workflow-button.notifications b{background:#fef3c7;color:#b45309}
.toolbar-actions .workflow-button.active{border-width:2px;filter:saturate(1.2);box-shadow:0 0 0 2px rgba(59,130,246,.1)}
.toolbar-actions .workflow-button.notifications b:not(:empty){font-weight:900}
.toolbar-actions .compact-tool{min-height:23px;padding:0 7px;font-size:11px;color:#475569;background:#f8fafc}
.toolbar-actions .compact-tool.active{border-color:#6d5dfc;background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;box-shadow:0 2px 7px rgba(79,70,229,.3)}
.toolbar-actions .compact-tool.active kbd{border-color:rgba(255,255,255,.45);background:rgba(255,255,255,.16);color:#fff}
.toolbar-actions .profile-button{display:inline-flex;align-items:center;gap:6px;min-height:24px;padding:0 8px;border-color:#bfdbfe;background:#eff6ff;color:#1e3a8a;font-size:11px;font-weight:800}
.toolbar-actions .profile-button>span{display:grid;width:18px;height:18px;place-items:center;border-radius:50%;background:#2563eb;color:#fff;font-size:8px}
.toolbar-actions .profile-logout{min-height:24px;padding:0 8px;border-color:#cbd5e1;background:#fff;color:#475569;font-size:11px}
.work-hub{min-height:0;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:14px;padding:18px;background:#f4f7fb}
.work-hub .work-board{overflow:visible;padding:0;background:transparent}
.work-hub .work-list,.work-hub .delegated-list{max-width:none}
.work-hub .work-item,.work-hub .delegated-item{grid-template-columns:1fr}
.work-board{overflow:auto;background:#f4f7fb;padding:22px}.work-board>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.work-board>header strong,.work-board>header span{display:block}.work-board>header strong{font-size:18px}.work-board>header span{margin-top:3px;color:var(--muted);font-size:11px}.work-list,.delegated-list{display:grid;gap:10px;max-width:1050px}.work-item,.delegated-item{display:grid;align-items:center;gap:16px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:14px;box-shadow:0 2px 8px rgba(15,23,42,.06)}.work-item{grid-template-columns:minmax(0,1fr) 280px}.work-main h3{margin:8px 0 4px;font-size:15px}.work-main p{margin:0 0 8px;color:var(--muted);font-size:12px}.work-main small{color:var(--muted)}.work-progress>b{display:block;text-align:right}.work-progress input{width:100%}.work-progress>div{display:flex;justify-content:space-between;align-items:center;gap:8px}.work-progress button{min-height:28px}.work-progress span{color:var(--muted);font-size:10px}.delegated-item{grid-template-columns:minmax(220px,1fr) 190px 110px 110px}.delegated-item>div:first-child strong,.delegated-item>div:first-child span{display:block}.delegated-item>div:first-child span{margin-top:4px;color:var(--muted);font-size:11px}.delegated-progress{display:grid;grid-template-columns:35px 1fr;align-items:center;gap:7px}.delegated-progress progress{width:100%}.assignment-state{font-weight:800}.notifications-palette{width:390px;max-height:calc(100vh - 110px)}.notification-head-actions{display:flex;gap:5px}.notification-head-actions button:first-child{color:#1d4ed8;font-size:11px;font-weight:800}.notification-filters{display:flex;gap:5px;border-bottom:1px solid var(--line);padding:7px 10px;background:#f8fafc}.notification-filters button{display:inline-flex;align-items:center;gap:6px;min-height:27px;padding:0 9px;font-size:11px;font-weight:800}.notification-filters button.active{border-color:#60a5fa;background:#eff6ff;color:#1d4ed8}.notification-filters b{display:grid;min-width:18px;height:18px;place-items:center;border-radius:999px;background:#e2e8f0;font-size:9px}.notification-filters .active b{background:#dbeafe}.notification-list{display:grid;max-height:520px;overflow:auto}.notification-row{display:grid;gap:4px;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:11px 12px;text-align:left}.notification-row.unread{background:#eff6ff;box-shadow:inset 3px 0 #2563eb}.notification-row.read{opacity:.72}.notification-row strong{font-size:12px}.notification-row span{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:10px}.notification-row em{border-radius:999px;padding:2px 6px;background:#e2e8f0;color:#475569;font-size:8px;font-style:normal;font-weight:800}.notification-row.unread em{background:#dbeafe;color:#1d4ed8}.profile-palette{top:92px;right:18px;width:340px}.profile-form,.people-panel form{display:grid;gap:11px;padding:14px}.profile-form label,.people-panel label{display:grid;gap:5px;color:#475569;font-size:11px;font-weight:800}.profile-form input,.people-panel input,.people-panel select{width:100%;min-height:36px;border:1px solid var(--line);border-radius:7px;padding:6px 9px;background:#fff}.people-panel h3{margin:0}.assigned-person{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:9px;border:1px solid var(--line);border-radius:9px;padding:9px}.assigned-person>span{display:grid;width:36px;height:36px;place-items:center;border-radius:9px;background:#dbeafe;color:#1d4ed8;font-weight:900}.assigned-person strong,.assigned-person small{display:block}.assigned-person small{color:var(--muted);margin-top:3px}.owner-progress{margin-bottom:14px;padding:10px;border-radius:8px;background:#f8fafc}.owner-progress label{display:grid;grid-template-columns:1fr auto;gap:7px}.owner-progress input{grid-column:1/-1;width:100%}.owner-progress small{color:var(--muted)}

.work-item.active{border-color:#60a5fa;box-shadow:0 0 0 3px rgba(59,130,246,.14)}
.work-main{display:block;width:100%;border:0;background:transparent;padding:0;text-align:left;color:inherit}
.work-main:hover h3{color:#1d4ed8}
.work-main em{display:block;margin-top:7px;color:#2563eb;font-size:10px;font-style:normal;font-weight:800}
.assigned-inspector{width:390px}
.assigned-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}
.assigned-access-note{display:grid;gap:3px;border-bottom:1px solid var(--line);padding:9px 12px;background:#eff6ff;color:#1e3a8a;font-size:10px}
.assigned-access-note strong{font-size:11px}
.assigned-readonly dl{display:grid;grid-template-columns:105px minmax(0,1fr);gap:0;margin:12px 0;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.assigned-readonly dt,.assigned-readonly dd{margin:0;padding:9px;border-bottom:1px solid var(--line);font-size:11px}
.assigned-readonly dt{background:#f8fafc;color:#526174;font-weight:800}
.assigned-readonly dd{white-space:pre-wrap}
.assigned-readonly dd:last-child{border-bottom:0}
.assignment-overview{display:flex;align-items:center;justify-content:space-between;gap:10px}
.readonly-note{min-height:120px;border:1px solid var(--line);border-radius:8px;padding:10px;background:#f8fafc;font-size:12px}
.assignment-summary{display:grid;gap:9px}
.delegated-item{cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease}
.delegated-item:hover,.delegated-item:focus-visible,.delegated-item.active{border-color:#60a5fa;box-shadow:0 0 0 3px rgba(59,130,246,.12);outline:0}
.delegated-item em{display:block;margin-top:5px;color:#2563eb;font-size:10px;font-style:normal;font-weight:800}
.review-approval{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;margin-bottom:12px;border:1px solid #86efac;border-radius:8px;padding:10px;background:#f0fdf4}
.review-approval strong,.review-approval span{display:block}
.review-approval span{margin-top:3px;color:#47705a;font-size:10px}
.review-approval button{border-color:#16a34a;background:#16a34a;color:#fff;font-weight:800}
.panel-actions .notify-assignee{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8;font-weight:800}
.assignment-timeline{display:grid;gap:0;margin-top:16px;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:#fff}
.timeline-heading{display:flex;align-items:end;justify-content:space-between;gap:8px;padding:10px;background:#f8fafc;border-bottom:1px solid var(--line)}
.timeline-heading h3{margin:0}.timeline-heading span{color:var(--muted);font-size:9px}
.timeline-row{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:8px;padding:9px 10px;border-bottom:1px solid var(--line)}
.timeline-row:last-child{border-bottom:0}.timeline-row i{display:grid;width:21px;height:21px;place-items:center;border-radius:50%;background:#e2e8f0;color:#64748b;font-size:9px;font-style:normal;font-weight:900}
.timeline-row.complete i{background:#dcfce7;color:#15803d}.timeline-row strong,.timeline-row span{display:block}.timeline-row strong{font-size:11px}.timeline-row span{margin-top:2px;color:var(--muted);font-size:9px}.timeline-row>b{color:#475569;font-size:10px}.timeline-row.pending{opacity:.66}

.toolbar-link {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 0 11px;
  color: var(--ink);
  text-decoration: none;
}

.canvas-shell {
  position: relative;
  overflow: hidden;
  background-color: #eef2f7;
  background-image: radial-gradient(#bfd0e4 1px, transparent 1px);
  background-size: 22px 22px;
  cursor: grab;
}

.tree-card-search{position:absolute;top:12px;left:50%;z-index:30;display:grid;grid-template-columns:auto minmax(220px,1fr) auto auto auto;align-items:center;gap:8px;width:min(760px,calc(100% - 32px));border:1px solid #f59e0b;border-radius:10px;padding:7px 9px;background:rgba(255,251,235,.97);box-shadow:0 10px 28px rgba(146,64,14,.2);transform:translateX(-50%);cursor:default}
.tree-card-search>span{display:grid;width:25px;height:25px;place-items:center;border-radius:50%;background:#f59e0b;color:#fff;font-size:17px;font-weight:900}
.tree-card-search input{min-width:0;height:32px;border:1px solid #fcd34d;border-radius:7px;padding:0 10px;background:#fff;color:#172033;font-size:13px;outline:0}.tree-card-search input:focus{border-color:#d97706;box-shadow:0 0 0 3px rgba(245,158,11,.2)}
.tree-card-search strong{color:#92400e;font-size:11px}.tree-card-search small{color:#78716c;font-size:9px}.tree-card-search button{width:27px;height:27px;min-height:0;border-color:#fcd34d;padding:0;background:#fff;color:#92400e;font-size:17px}

.canvas-shell.area-selecting{cursor:crosshair}
.area-fit-marquee{position:absolute;z-index:20;border:2px solid #4f46e5;border-radius:6px;background:rgba(99,102,241,.13);box-shadow:0 0 0 1px rgba(255,255,255,.8) inset,0 4px 16px rgba(79,70,229,.16);pointer-events:none}
.area-fit-marquee.multi-select{border-color:#0d9488;background:rgba(20,184,166,.14);box-shadow:0 0 0 1px rgba(255,255,255,.85) inset,0 4px 16px rgba(13,148,136,.2)}

.canvas {
  position: absolute;
  inset: 0;
  width: 1800px;
  height: 1200px;
  transform-origin: 0 0;
}

.links {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.links > .relation-link {
  fill: none;
  stroke: #7489a3;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.links marker path {
  fill: #7489a3;
  stroke: none;
}

.branch-toggle{display:inline-grid;width:14px;height:14px;min-width:14px;min-height:14px;flex:0 0 14px;place-items:center;border:1px solid var(--branch-color);border-radius:50%;background:#fff;color:var(--branch-color);padding:0;box-shadow:0 1px 2px rgba(15,23,42,.18);cursor:pointer;font-size:10px;font-weight:900;line-height:1}
.branch-toggle:hover{background:#f8fafc;box-shadow:0 0 0 2px rgba(255,255,255,.85),0 2px 4px rgba(15,23,42,.22)}
.branch-toggle.collapsed{background:var(--branch-color);color:#fff}
.card-child-summary{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}

.palette {
  position: fixed;
  z-index: 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  resize: both;
}

.palette-head,
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  cursor: grab;
}

.palette-head strong,
.panel-head h2 {
  display: block;
  font-size: 14px;
}

.palette-head span,
.panel-head span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.parent-palette {
  width: 345px;
  min-width: 260px;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.3), 0 5px 14px rgba(15, 23, 42, 0.16);
  min-height: 180px;
  max-height: calc(100vh - 112px);
}

.projects-palette {
  display: grid;
  grid-template-rows: auto auto minmax(80px, 1fr) auto;
  width: 250px;
  min-width: 220px;
  min-height: 220px;
  max-height: calc(100vh - 112px);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.3), 0 5px 14px rgba(15, 23, 42, 0.16);
}

.new-project-button,
.new-parent-button {
  min-height: 30px;
  padding: 0 9px;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
}

.project-search {
  padding: 8px 9px 5px;
}

.project-search input {
  width: 100%;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
  padding: 0 9px;
  color: var(--ink);
  font-size: 12px;
}

.project-list {
  display: grid;
  align-content: start;
  gap: 4px;
  overflow-y: auto;
  padding: 3px 8px 8px;
}

.project-row-wrap {
  position: relative;
  border-radius: 9px;
}

.project-row-wrap.active {
  background: #eff6ff;
  box-shadow: inset 3px 0 #2563eb;
}

.project-row-wrap.archived {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  opacity: 0.72;
}

.project-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 45px;
  border-color: transparent;
  background: transparent;
  padding: 5px 7px;
  text-align: left;
}

.project-row:hover:not(:disabled) {
  border-color: transparent;
  background: #f1f5f9;
}

.project-row-wrap.active .project-row:hover {
  background: transparent;
}

.project-row:disabled {
  cursor: default;
}

.project-row > span:nth-child(2) {
  min-width: 0;
}

.project-row strong,
.project-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-row strong {
  font-size: 12px;
}

.project-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.project-row b {
  border-radius: 999px;
  background: #e2e8f0;
  padding: 1px 5px;
  color: #475569;
  font-size: 9px;
}

.project-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--project-color) 14%, white);
  color: var(--project-color);
  font-size: 10px;
  font-weight: 900;
}

.restore-project {
  min-height: 26px;
  margin-right: 5px;
  padding: 0 6px;
  font-size: 9px;
}

.project-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.project-panel-footer label,
.project-panel-footer > div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.project-panel-footer input {
  margin: 0;
}

.project-panel-footer button {
  min-height: 27px;
  padding: 0 6px;
  font-size: 9px;
}

.parent-search {
  padding: 8px 10px 0;
}

.parent-search input {
  width: 100%;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
  color: var(--ink);
  padding: 0 9px;
  font-size: 12px;
}

.parent-filters {
  display: flex;
  gap: 12px;
  padding: 7px 11px 0;
  color: #526174;
  font-size: 10px;
  font-weight: 700;
}

.parent-filters label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.parent-filters input {
  margin: 0;
}

.status-form-label {
  margin: 12px 0 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-edit-locked {
  margin: 5px 0 10px;
  color: #64748b;
  font-size: 11px;
}

.parent-list {
  display: grid;
  align-items: start;
  gap: 5px;
  max-height: calc(100vh - 214px);
  overflow: auto;
  padding: 8px 10px 10px;
}

.parent-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto auto auto;
  gap: 6px;
  align-items: center;
  min-height: 28px;
  width: 100%;
  padding: 4px 6px;
  font-size: 12px;
  text-align: left;
}

.parent-row span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.parent-row.active {
  border-color: #5eead4;
  background: #ecfdf5;
}

.parent-row b,
.parent-row small,
.parent-row i,
.created,
.age {
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  padding: 1px 5px;
  font-size: 9px;
  font-weight: 800;
}

.parent-row i {
  border: 1px solid;
  background: #fff;
  font-style: normal;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.card {
  position: absolute;
  width: 220px;
  min-height: 128px;
  max-height: none;
  padding: 12px;
  border: 1px solid var(--card-branch-color, #cfd7e3);
  border-radius: 8px;
  background: white;
  box-shadow: 0 4px 12px var(--card-branch-shadow, rgba(15, 23, 42, .16));
  cursor: move;
  user-select: none;
}

.card.selected {
  z-index: 8;
  border-color: var(--card-branch-color, var(--accent));
  outline: 3px solid #7c3aed;
  outline-offset: 3px;
  box-shadow: 0 0 0 7px rgba(124,58,237,.18), 0 10px 26px var(--card-branch-shadow, rgba(15,23,42,.24));
}

.card.selected::after {
  content: "Selected";
  position: absolute;
  top: -16px;
  left: 10px;
  z-index: 2;
  border-radius: 999px;
  padding: 2px 7px;
  background: linear-gradient(135deg,#4f46e5,#7c3aed);
  color: #fff;
  box-shadow: 0 2px 8px rgba(79,70,229,.38);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1.2;
  pointer-events: none;
  text-transform: uppercase;
}

.card.multi-selected {
  z-index: 6;
  outline: 2px dashed #0f766e;
  outline-offset: 3px;
  background: linear-gradient(135deg, #ffffff, #f0fdfa);
  box-shadow: 0 0 0 3px var(--card-branch-glow, rgba(20, 184, 166, .28)), 0 7px 18px var(--card-branch-shadow, rgba(15, 23, 42, .2));
}

.card.multi-selected.selected {
  z-index: 8;
  outline: 3px solid #7c3aed;
  outline-offset: 3px;
  box-shadow: 0 0 0 7px rgba(124,58,237,.18), 0 10px 26px var(--card-branch-shadow, rgba(15,23,42,.24));
}

.card.search-match:not(.selected) {
  z-index: 7;
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
  box-shadow: 0 0 0 7px rgba(245,158,11,.2), 0 10px 24px var(--card-branch-shadow, rgba(15,23,42,.2));
}

.card.search-match:not(.selected)::before {
  content: "Match";
  position: absolute;
  top: 10px;
  right: -13px;
  z-index: 3;
  border-radius: 999px;
  padding: 2px 6px;
  background: #f59e0b;
  color: #fff;
  box-shadow: 0 2px 8px rgba(146,64,14,.3);
  font-size: 8px;
  font-weight: 900;
  line-height: 1.2;
  pointer-events: none;
  text-transform: uppercase;
}

.card-top,
.card footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}

.card-dates {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-meta-right {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.assignee-marker {
  display: inline-grid;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  box-shadow: 0 0 0 1px #93c5fd;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: -0.02em;
  cursor: help;
}

.quadrant-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  background-color: #eef2f7;
  background-image: radial-gradient(#bfd0e4 1px, transparent 1px);
  background-size: 22px 22px;
}

.quadrant-controls {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.quadrant-filter {
  display: flex;
  gap: 6px;
  margin-right: auto;
  flex-wrap: wrap;
}

.quadrant-filter button {
  min-height: 30px;
  border-color: color-mix(in srgb, var(--quadrant-color, #94a3b8) 35%, var(--line));
  color: var(--quadrant-color, #475569);
  font-size: 12px;
  font-weight: 800;
}

.quadrant-filter button.active {
  border-color: var(--accent);
  background: #ecfdf5;
  color: var(--accent);
}

.quadrant-search {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: min(360px, 100%);
}

.quadrant-search input {
  width: min(320px, 42vw);
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  padding: 0 12px;
  font-size: 12px;
  box-shadow: 0 6px 18px rgba(21, 31, 44, 0.08);
}

.quadrant-search button {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

.search-count {
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}

.page-size {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  padding: 4px 8px 4px 10px;
  color: #42526a;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(21, 31, 44, 0.08);
}

.page-size select {
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}

.show-closed {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  padding: 6px 10px;
  color: #42526a;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(21, 31, 44, 0.08);
}

.show-closed input {
  width: auto;
}

.show-closed span {
  border-radius: 999px;
  background: #e2e8f0;
  padding: 1px 7px;
  color: #475569;
  font-size: 10px;
}

.quadrant-column {
  min-width: 0;
  width: 100%;
  min-height: 210px;
  height: fit-content;
  border: 1px solid color-mix(in srgb, var(--quadrant-color) 35%, #d8dee7);
  border-top: 5px solid var(--quadrant-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  overflow: auto;
  resize: vertical;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.2), 0 2px 7px rgba(15, 23, 42, 0.12);
}

.quadrant-board.focused {
  grid-template-columns: minmax(0, 1fr);
}

.quadrant-board.focused .quadrant-column {
  justify-self: start;
  width: var(--focused-width, 100%);
  min-width: min(300px, 100%);
}

.quadrant-board.focused .quadrant-list {
  grid-auto-flow: column;
  grid-auto-columns: auto;
  grid-template-columns: repeat(var(--page-columns, 4), minmax(0, 1fr));
  grid-template-rows: repeat(var(--page-rows, 5), minmax(96px, auto));
  justify-content: start;
  overflow-x: hidden;
}

.quadrant-board.focused .quadrant-item {
  width: 100%;
}

.quadrant-column header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.quadrant-column header strong {
  color: var(--quadrant-color);
  font-size: 14px;
}

.quadrant-column header span {
  border-radius: 999px;
  background: #f1f5f9;
  padding: 2px 7px;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}

.quadrant-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  grid-template-rows: repeat(var(--page-rows, 5), minmax(96px, auto));
  align-items: start;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  padding: 10px;
}

.quadrant-board:not(.focused) .quadrant-list {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.quadrant-board:not(.focused) .quadrant-item {
  width: 100%;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.11);
}

.quadrant-board.focused .quadrant-item,
.single-item {
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.11);
}

.quadrant-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 8px 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.quadrant-pager button {
  min-height: 26px;
  padding: 0 8px;
  font-size: 11px;
}

.quadrant-pager button:disabled {
  opacity: 0.45;
  cursor: default;
}

.quadrant-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  cursor: pointer;
}

.calendar-board {
  min-height: 0;
  overflow: auto;
  padding: 22px;
  background-color: #eef2f7;
  background-image: radial-gradient(#bfd0e4 1px, transparent 1px);
  background-size: 22px 22px;
}

.single-board {
  min-height: 0;
  overflow: auto;
  padding: 22px;
  background-color: #eef2f7;
  background-image: radial-gradient(#bfd0e4 1px, transparent 1px);
  background-size: 22px 22px;
}

.single-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 10px 12px;
  box-shadow: 0 8px 22px rgba(21, 31, 44, 0.08);
}

.single-head strong,
.single-head span {
  display: block;
}

.single-head strong {
  font-size: 16px;
}

.single-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.single-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
}

.single-item {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 7px;
  min-height: 136px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  padding: 10px 12px;
  cursor: pointer;
}

.single-item.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}

.single-item > div:first-child {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.single-item .quadrant {
  border: 1px solid;
  border-radius: 999px;
  background: #f8fafc;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 800;
}

.row-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 4px 0 3px;
}

.label-chip {
  display: inline-flex;
  align-items: center;
  max-width: 128px;
  overflow: hidden;
  border: 1px solid;
  border-radius: 999px;
  background: #fff;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.single-item h3 {
  margin: 0 0 3px;
  font-size: 14px;
}

.single-item p {
  display: -webkit-box;
  overflow: hidden;
  max-width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.single-item footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  color: var(--muted);
  font-size: 11px;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 10px 12px;
  box-shadow: 0 8px 22px rgba(21, 31, 44, 0.08);
}

.calendar-head strong {
  display: block;
  font-size: 16px;
}

.calendar-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.calendar-filter-summary {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.calendar-filters {
  display: flex;
  gap: 10px;
  color: #526174;
  font-size: 10px;
  font-weight: 700;
}

.calendar-filters label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.calendar-filters input {
  margin: 0;
}

.calendar-range {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.calendar-range button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.calendar-range button.active {
  border-color: #5eead4;
  background: #ecfdf5;
  color: #0f766e;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  align-items: start;
  gap: 16px;
}

.calendar-day {
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(21, 31, 44, 0.1);
}

.calendar-day header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
}

.calendar-day header strong {
  font-size: 13px;
}

.calendar-day header span {
  border-radius: 999px;
  background: #e2e8f0;
  padding: 2px 7px;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}

.calendar-list {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.calendar-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  cursor: pointer;
}

.calendar-item.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}

.calendar-item time {
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
}

.calendar-item h3 {
  margin: 6px 0 2px;
  font-size: 13px;
}

.calendar-item p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.calendar-item footer {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.calendar-empty {
  grid-column: 1 / -1;
  border: 1px dashed #9aa8ba;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  padding: 18px;
}

.quadrant-item.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}

.quadrant-item h3 {
  margin: 6px 0 2px;
  font-size: 13px;
}

.project-ref {
  overflow: hidden;
  margin-bottom: 3px;
  color: #2563eb;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quadrant-item p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.quadrant-item footer {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.status {
  max-width: 116px;
  overflow: hidden;
  padding: 2px 6px;
  border-radius: 999px;
  color: white;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 11px 0 5px;
  font-size: 16px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.card p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 36px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.chips {
  display: flex;
  min-height: 24px;
  gap: 5px;
  flex-wrap: wrap;
}

.chips span {
  max-width: 100%;
  border: 1px solid;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  overflow-wrap: anywhere;
  white-space: normal;
}

.chips .quadrant {
  background: #f8fafc;
}

.card footer {
  margin-top: 10px;
  color: var(--muted);
}

.card.wireframe-card {
  width: 158px;
  min-height: 36px;
  height: 36px;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px;
  padding: 6px 7px;
  border-color: var(--card-branch-color, #aebbd0);
  border-radius: 6px;
  box-shadow: 0 2px 7px var(--card-branch-shadow, rgba(15, 23, 42, .16));
}

.card.wireframe-card .wireframe-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wireframe-status);
}

.card.wireframe-card h2 {
  display: block;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wireframe-child-count {
  min-width: 15px;
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.card.wireframe-card.selected {
  z-index: 8;
  border-color: var(--card-branch-color, #6d5dfc);
  box-shadow: 0 0 0 7px rgba(124,58,237,.18), 0 4px 11px var(--card-branch-shadow, rgba(15, 23, 42, .18));
}

.card.wireframe-card.selected::after {
  content: "✓";
  top: 50%;
  right: -11px;
  left: auto;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
}

.card.wireframe-card.search-match:not(.selected)::before {
  content: "";
  top: 50%;
  right: auto;
  left: -9px;
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  padding: 0;
  transform: translateY(-50%);
}

.card.wireframe-expanded {
  z-index: 4;
  border-color: var(--card-branch-color, #8b7cf6);
}

.view-hidden-markers {
  display: inline-flex;
  gap: 4px;
  color: #64748b;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}
}

.inspector {
  display: flex;
  flex-direction: column;
  width: min(354px, calc(100vw - 20px));
  min-width: 292px;
  min-height: 180px;
  max-height: calc(100vh - 112px);
  overflow: hidden;
}

.inspector > .panel-head,.inspector > .panel-tabs,.inspector > .view-visibility,.inspector > .assigned-access-note{flex:0 0 auto}
.inspector > .panel-body{min-height:0;flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain}

.panel-actions {
  display: flex;
  gap: 6px;
}

.danger {
  color: #b91c1c;
}

.panel-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fafc, #eef2ff);
}

.view-visibility {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  color: #475569;
  font-size: 10px;
}

.view-visibility > span {
  margin-right: 2px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.view-visibility label {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-weight: 700;
}

.view-visibility input {
  width: auto;
  margin: 0;
}

.view-visibility label.fixed {
  color: #94a3b8;
}

.view-visibility label.fixed input {
  opacity: 0.65;
}

.clipping-panel {
  display: grid;
  gap: 10px;
}

.clipping-paste-callout {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px;
  border: 1px dashed #93c5fd;
  border-radius: 7px;
  background: #f0f9ff;
  color: #475569;
  font-size: 10px;
}

.clipping-paste-callout span {
  margin-left: 3px;
}

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

.clipping-thumbnail {
  min-width: 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  cursor: context-menu;
}

.clipping-thumbnail:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}

.clipping-thumbnail img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  background: #f1f5f9;
  object-fit: cover;
}

.clipping-thumbnail span {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: #475569;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
}

.local-panel {
  display: grid;
  gap: 10px;
}

.local-companion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.local-companion-head button {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 10px;
}

.local-companion-download {
  display: block;
  padding: 7px 9px;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  background: #eff6ff;
  color: #1d4ed8;
  text-align: center;
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
}

.local-companion-downloads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.local-companion-download.mac {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #334155;
}

.local-companion-download:hover {
  border-color: #60a5fa;
  background: #dbeafe;
}

.local-companion-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.local-companion-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
}

.local-companion-status.online {
  color: #047857;
}

.local-companion-status.online i {
  background: #10b981;
}

.local-drop-help {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px dashed #94a3b8;
  border-radius: 7px;
  background: #f8fafc;
  color: #475569;
  text-align: center;
}

.local-drop-help strong {
  font-size: 12px;
}

.local-drop-help span {
  font-size: 10px;
  line-height: 1.4;
}

.local-file-list {
  display: grid;
  gap: 7px;
}

.local-bulk-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #475569;
  font-size: 10px;
  font-weight: 700;
}

.local-bulk-actions label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.local-bulk-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.local-bulk-buttons button {
  min-height: 30px;
  padding: 4px 6px;
  font-size: 9px;
  font-weight: 800;
}

.local-bulk-buttons button:last-child {
  grid-column: 1 / -1;
}

.local-file {
  display: grid;
  grid-template-columns: 16px 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  cursor: context-menu;
}

.local-file > input {
  width: 14px;
  height: 14px;
  margin: 0;
}

.local-file:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.local-file > b {
  border-radius: 5px;
  background: #e2e8f0;
  color: #475569;
  padding: 4px;
  text-align: center;
  font-size: 9px;
}

.local-file div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.local-file strong,
.local-file span,
.local-file small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.local-file strong {
  color: #1f2937;
  font-size: 11px;
}

.local-file span {
  color: #475569;
  font-size: 9px;
  font-weight: 700;
}

.local-file small,
.local-security-note {
  color: var(--muted);
  font-size: 9px;
}

.local-file-menu .menu-note {
  overflow-wrap: anywhere;
}

.panel-tabs button {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 31px;
  padding: 0 4px;
  border-color: #d5deea;
  border-radius: 0;
  background: #fff;
  color: #475569;
  box-shadow: none;
  font-size: 10px;
  font-weight: 700;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.panel-tabs button:not(:nth-child(4n + 1)){border-left-width:0}
.panel-tabs button:nth-child(n + 5){border-top-width:0}
.panel-tabs button:first-child{border-top-left-radius:8px}
.panel-tabs button:nth-child(4){border-top-right-radius:8px}
.panel-tabs button:nth-last-child(4){border-bottom-left-radius:8px}
.panel-tabs button:last-child{border-bottom-right-radius:8px}

.panel-tabs button:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  transform: none;
}

.panel-tabs button.active {
  z-index: 1;
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 52%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgb(79 70 229 / 34%), inset 0 1px 0 rgb(255 255 255 / 28%);
  font-weight: 900;
  text-shadow: 0 1px 1px rgb(30 41 59 / 25%);
}

.panel-tabs button.active kbd {
  border-color: rgb(255 255 255 / 42%);
  background: rgb(255 255 255 / 18%);
  color: #fff;
}

.connector-swatches{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.connector-swatches .connector-swatch{display:block;width:100%;min-height:30px;border:3px solid #fff;border-radius:7px;background:var(--swatch);padding:0;box-shadow:0 0 0 1px #cbd5e1;cursor:pointer}
.connector-swatches .connector-swatch:hover{background:var(--swatch);box-shadow:0 0 0 2px #93c5fd}
.connector-swatches .connector-swatch.active{border-color:#fff;background:var(--swatch);box-shadow:0 0 0 3px #2563eb}
.branch-color-menu{width:250px}
.children-panel{display:grid;gap:12px}
.children-panel h3{margin:2px 0 0;font-size:13px}
.children-panel>p{margin:-7px 0 0;color:var(--muted);font-size:10px;line-height:1.35}
.children-panel-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #bfdbfe;border-radius:9px;background:#eff6ff;padding:10px}
.children-panel-summary>div{display:grid;gap:3px}
.children-panel-summary span{color:#64748b;font-size:10px}
.children-panel-summary button{color:#1d4ed8;font-weight:800}
.children-labeler{display:grid;gap:8px;border:1px solid #ddd6fe;border-radius:9px;background:linear-gradient(145deg,#faf5ff,#eef2ff);padding:10px}
.children-labeler h3{margin:0;color:#4c1d95}
.children-labeler p{margin:3px 0 0;color:#64748b;font-size:9px}
.children-label-controls{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:5px;align-items:center}
.children-label-controls select{min-width:0;height:29px;margin:0;padding:0 6px;font-size:10px}
.children-label-controls button{height:29px;padding:0 7px;font-size:10px;font-weight:900}
.children-label-controls .add{border-color:#86efac;background:#f0fdf4;color:#15803d}
.children-label-controls .remove{border-color:#fecaca;background:#fff1f2;color:#be123c}
.reset-connector-color{justify-self:start;font-size:11px}
.children-list{display:grid;gap:6px;border-top:1px solid var(--line);padding-top:10px}
.children-list>label{display:grid;grid-template-columns:15px 9px minmax(0,1fr) auto;align-items:center;gap:7px;margin:0;border:1px solid var(--line);border-radius:7px;padding:7px 8px 7px calc(8px + min(calc(var(--descendant-depth, 0) * 10px), 60px));background:#fff;color:inherit;font-size:inherit;font-weight:inherit;cursor:pointer}
.children-list>label:not([style*="--descendant-depth:0"]){border-left-color:#a5b4fc}
.children-list>label:hover{border-color:#93c5fd;background:#f8fbff}
.children-list>label.selected{border-color:#818cf8;background:#eef2ff;box-shadow:0 0 0 1px rgba(99,102,241,.12)}
.children-list i{width:9px;height:9px;border-radius:50%}
.children-list strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.children-list small{color:var(--muted);font-size:9px}

.panel-body {
  padding: 12px;
}

.children-selection-head{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:10px}
.children-selection-head>div:first-child{display:grid;gap:2px}
.children-selection-head h3{margin:0}
.children-selection-head span{color:#4f46e5;font-size:9px;font-weight:800}
.children-selection-head>div:last-child{display:flex;gap:4px}
.children-selection-head button{min-height:27px;padding:0 7px;font-size:9px;font-weight:800}

.inspector label {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  color: #42526a;
  font-size: 12px;
  font-weight: 700;
}

.field-group {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.children-list input[type="checkbox"]{width:14px;height:14px;margin:0;accent-color:#4f46e5}
.field-group > span {
  color: #42526a;
  font-size: 12px;
  font-weight: 700;
}

.inspector input,
.inspector textarea,
.inspector select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfe;
  color: var(--ink);
  padding: 9px 10px;
}

.inspector textarea {
  min-height: 76px;
  resize: vertical;
}

.inspector section {
  margin: 0;
}

.inspector h3 {
  margin: 20px 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #526174;
}

.label-search {
  width: 100%;
  height: 34px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
}

.label-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.status-picker,
.quadrant-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.new-label-form,
.new-status-form {
  display: grid;
  grid-template-columns: 1fr 42px auto;
  gap: 8px;
  margin-bottom: 10px;
}

.new-label-form input[type="text"],
.new-status-form input[type="text"] {
  min-width: 0;
}

.new-label-form input[type="color"],
.new-status-form input[type="color"] {
  height: 34px;
  padding: 3px;
}

.inspector .check {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  margin: 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
}

.inspector .label-row {
  justify-content: space-between;
  gap: 6px;
}

.label-row label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin: 0;
  flex: 1;
}

.label-row label b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.label-count {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e2e8f0;
  padding: 1px 6px;
  color: #475569;
}

.label-edit,
.label-delete {
  min-height: 22px;
  padding: 0 6px;
  color: #b91c1c;
  font-size: 10px;
}


.label-edit {
  color: #1d4ed8;
}
.inspector .status-choice,
.inspector .quadrant-choice {
  display: grid;
  grid-template-columns: auto 9px 1fr;
  align-items: center;
  min-height: 46px;
}

.inspector .status-choice {
  grid-template-columns: auto 9px 1fr auto;
  border-color: color-mix(in srgb, var(--status-color) 30%, var(--line));
}

.status-choice.active {
  border-color: var(--status-color);
  background: color-mix(in srgb, var(--status-color) 10%, #fff);
}

.status-choice b {
  min-width: 0;
  overflow: hidden;
  color: var(--status-color);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-choice kbd,
.quadrant-choice kbd {
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 800;
}

.inspector .quadrant-choice {
  border-color: color-mix(in srgb, var(--quadrant-color) 30%, var(--line));
}

.quadrant-choice.active {
  border-color: var(--quadrant-color);
  background: color-mix(in srgb, var(--quadrant-color) 10%, #fff);
}

.quadrant-choice b,
.quadrant-choice small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quadrant-choice b {
  color: var(--quadrant-color);
  font-size: 12px;
}

.quadrant-choice small {
  grid-column: 3;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.check input {
  width: auto;
}

.note-panel {
  gap: 8px;
}

.note-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}

.note-toolbar button {
  min-width: 31px;
  min-height: 29px;
  padding: 3px 7px;
  font-size: 11px;
}

.note-toolbar .note-clipping-button {
  border-color: #7dd3fc;
  background: #f0f9ff;
  color: #0369a1;
  font-weight: 700;
}

.note-color {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  min-height: 29px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 10px;
}

.note-color input {
  width: 22px;
  height: 20px;
  padding: 0;
  border: 0;
}

.note-editor {
  min-height: 230px;
  max-height: 440px;
  overflow: auto;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #1f2937;
  font-size: 13px;
  line-height: 1.55;
  outline: none;
}

.note-editor:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.note-editor:empty::before {
  color: #94a3b8;
  content: attr(data-placeholder);
}

.note-editor p {
  margin: 0 0 0.75em;
}

.note-editor ul,
.note-editor ol {
  margin: 0.5em 0;
  padding-left: 24px;
}

.note-editor blockquote {
  margin: 0.6em 0;
  padding-left: 10px;
  border-left: 3px solid #cbd5e1;
  color: var(--muted);
}

.note-editor img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 8px 0;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.note-save-status {
  color: var(--muted);
  text-align: right;
  font-size: 10px;
}

.reminder-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 9px;
}

.reminder-calendar-actions{display:grid;gap:8px;margin-top:12px;padding:9px;border:1px solid #bfdbfe;border-radius:9px;background:linear-gradient(135deg,#eff6ff,#f8fafc)}
.reminder-calendar-copy{display:grid;gap:2px}.outlook-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.reminder-calendar-actions strong{font-size:11px;color:#172033}.reminder-calendar-actions small{color:#64748b;font-size:9px;line-height:1.3}.reminder-calendar-actions button{padding:6px 8px;font-size:9px;font-weight:800}.reminder-calendar-actions .outlook-calendar-button{border-color:#2563eb;background:#2563eb;color:#fff}.reminder-calendar-actions button:disabled{opacity:.45}
.reminder-adjust-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 7px;
}

.reminder-adjust-actions button {
  min-height: 30px;
  padding: 4px 6px;
  border-color: #a7c5e8;
  background: #f8fbff;
  color: #1d4f91;
  font-size: 10px;
  font-weight: 700;
}

.reminder-adjust-actions button:hover {
  border-color: var(--accent);
  background: #eaf3ff;
}

.reminder-quick-actions button {
  display: grid;
  min-height: 42px;
  align-content: center;
  padding: 5px 8px;
  border-color: #cbd5e1;
  text-align: left;
}

.reminder-quick-actions button:hover,
.reminder-quick-actions button.active {
  border-color: var(--accent);
  background: #eff6ff;
  color: var(--accent);
}

.reminder-quick-actions button.clear {
  min-height: 34px;
  color: #b91c1c;
}

.reminder-quick-actions button span {
  font-size: 11px;
  font-weight: 700;
}

.reminder-quick-actions button small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
}

.check span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dropzone {
  display: grid;
  place-items: center;
  min-height: 84px;
  border: 1px dashed #9aa8ba;
  border-radius: 8px;
  background: #f8fafc;
  color: #526174;
  text-align: center;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease, transform 120ms ease;
}

.dropzone input {
  display: none;
}

.dropzone.dragging {
  border-color: var(--accent);
  background: #eaf3ff;
  color: var(--accent);
  transform: scale(1.01);
}

.dropzone.uploading {
  cursor: progress;
  opacity: 0.7;
  pointer-events: none;
}

.dropzone.uploading span {
  font-size: 0;
}

.dropzone.uploading span::after {
  content: "Uploading…";
  font-size: 13px;
}

.attachments {
  display: grid;
  gap: 8px;
}

.attachment-hint {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.attachment-bulk-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.attachment-bulk-actions label {
  display: flex;
  align-items: center;
  gap: 5px;
}

.attachment-bulk-actions input {
  width: auto;
}

.attachment-bulk-actions button {
  min-height: 30px;
  padding: 0 9px;
}

.attachment-bulk-buttons { grid-column:1/-1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.attachment-bulk-buttons .outlook-mail-button { border-color:#2563eb; background:linear-gradient(135deg,#2563eb,#4f46e5); color:#fff; font-weight:800; box-shadow:0 2px 7px rgba(37,99,235,.24); }

.attachment {
  display: grid;
  grid-template-columns: 18px 42px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  cursor: context-menu;
  user-select: none;
}

.attachment > input {
  width: auto;
  margin: 0;
  cursor: pointer;
}

.attachment:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}

.attachment.unavailable {
  opacity: 0.55;
}

.attachment b {
  overflow: hidden;
  border-radius: 5px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 4px;
  text-align: center;
  text-transform: uppercase;
  font-size: 10px;
}

.attachment span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.empty {
  color: var(--muted);
  font-size: 12px;
}

.compact-empty {
  margin: 4px 2px;
}

.new-parent-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
}

.new-parent-button span {
  font-size: 18px;
  line-height: 1;
}

.context-menu {
  position: fixed;
  z-index: 20;
  display: grid;
  width: 218px;
  gap: 3px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.menu-parent {
  position: relative;
}

.context-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: start;
  min-height: 30px;
  border-color: transparent;
  padding: 0 9px;
  text-align: left;
  font-size: 12px;
}

.context-menu button.danger {
  color: #b91c1c;
}

.context-menu kbd {
  margin-left: auto;
}

.context-menu button:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.context-menu button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.context-menu-title {
  overflow: hidden;
  padding: 5px 9px 7px;
  border-bottom: 1px solid var(--line);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
}

.menu-note {
  padding: 3px 9px 2px;
  color: var(--muted);
  font-size: 10px;
}

.context-submenu {
  position: absolute;
  left: calc(100% - 2px);
  top: 0;
  display: none;
  width: 216px;
  max-height: 260px;
  overflow: auto;
  gap: 3px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.context-menu.flip-x .context-submenu {
  right: calc(100% - 2px);
  left: auto;
}

.menu-parent:hover .context-submenu,
.menu-parent:focus-within .context-submenu {
  display: grid;
}

.menu-check {
  width: 20px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
}

.menu-section-label {
  padding: 5px 9px 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background-color: #eef2f7;
  background-image: radial-gradient(#bfd0e4 1px, transparent 1px);
  background-size: 22px 22px;
}

.auth-card {
  width: min(420px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  padding: 22px;
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.brand-line h1,
.brand-line p {
  margin: 0;
}

.brand-line h1 {
  font-size: 22px;
}

.brand-line p,
.auth-link,
.auth-card li {
  color: var(--muted);
  font-size: 13px;
}

.auth-card form {
  display: grid;
  gap: 12px;
}

.auth-card label {
  display: grid;
  gap: 6px;
  color: #42526a;
  font-size: 12px;
  font-weight: 800;
}

.auth-card input,
.auth-card select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  background: white;
}

.auth-card .primary {
  width: 100%;
}

.auth-link {
  margin: 14px 0 0;
}

.comment-button { display:inline-flex; align-items:center; justify-content:center; gap:3px; min-width:27px; min-height:25px; padding:0 6px; border:1px solid #818cf8; border-radius:999px; background:linear-gradient(135deg,#eef2ff,#e0e7ff); color:#4338ca; box-shadow:0 2px 6px rgba(79,70,229,.24); font-size:13px; line-height:1; }
.comment-button:hover { border-color:#4f46e5; background:linear-gradient(135deg,#e0e7ff,#c7d2fe); color:#312e81; box-shadow:0 3px 9px rgba(79,70,229,.34); transform:translateY(-1px); }
.comment-button:focus-visible { outline:2px solid #7c3aed; outline-offset:2px; }
.comment-button b { min-width:14px; padding:2px 4px; border-radius:999px; background:#4f46e5; color:#fff; font-size:9px; text-align:center; }
.comments-panel { display:grid; grid-template-rows:auto minmax(180px,1fr) auto; gap:10px; min-height:390px; background:#efeae2; }
.comment-task-title { padding:8px 10px; border-radius:7px; background:#fff; font-size:12px; font-weight:800; }
.comment-thread { display:flex; flex-direction:column; gap:8px; overflow:auto; padding:3px; }
.comment-bubble { align-self:flex-start; width:min(92%,330px); border-radius:4px 10px 10px 10px; background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.12); padding:8px 10px; }
.comment-meta { display:flex; justify-content:space-between; gap:10px; color:var(--muted); font-size:10px; }
.comment-bubble p { margin:5px 0 0; font-size:13px; line-height:1.4; overflow-wrap:anywhere; }
.comment-edited { display:block; margin-top:3px; color:#94a3b8; font-size:9px; text-align:right; }
.comment-compose { display:grid; grid-template-columns:1fr auto; gap:7px; align-items:end; }
.comment-compose textarea { width:100%; resize:vertical; border:1px solid var(--line); border-radius:9px; padding:9px; }
.comments-inspector { display:grid; grid-template-rows:auto auto auto minmax(0,1fr); overflow:hidden; }
.comments-inspector .comments-panel { height:100%; min-height:0; overflow:hidden; }
.comments-inspector .comment-thread { min-height:0; overflow-y:auto; overscroll-behavior:contain; }
.labels-inspector { display:grid; grid-template-rows:auto auto auto minmax(0,1fr); overflow:hidden; }
.labels-inspector .labels-panel { display:grid; grid-template-rows:auto minmax(0,1fr); height:100%; min-height:390px; overflow:hidden; }
.labels-inspector .labels-controls { min-width:0; }
.labels-inspector .label-picker {
  grid-template-columns:minmax(0,1fr);
  align-content:start;
  min-height:0;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding-right:3px;
}
.labels-inspector .label-row, .labels-inspector .label-row label, .labels-inspector .label-row label b { white-space:nowrap; }
.help-button{min-height:25px;padding:0 10px;border-color:#8b5cf6;background:linear-gradient(135deg,#7c3aed,#2563eb);color:#fff;font-weight:800;box-shadow:0 3px 9px rgba(99,102,241,.28)}
.settings-button{display:inline-flex;align-items:center;gap:5px;min-height:25px;padding:0 9px;border-color:#94a3b8;background:linear-gradient(135deg,#f8fafc,#e2e8f0);color:#334155;font-weight:800;box-shadow:0 3px 8px rgba(51,65,85,.14)}.settings-button span{display:grid;place-items:center;width:16px;height:16px;border-radius:50%;background:#475569;color:#fff;font-size:10px}.settings-button.active{border-color:#0d9488;background:linear-gradient(135deg,#ccfbf1,#e0f2fe);color:#0f766e}
.settings-palette{display:grid;grid-template-rows:auto minmax(0,1fr);width:min(365px,calc(100vw - 24px));min-width:310px;max-height:calc(100vh - 205px);z-index:10;resize:both}
.settings-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-bottom:1px solid #cbd5e1;background:linear-gradient(135deg,#f8fafc,#ecfeff);cursor:grab}.settings-panel-head span{color:#0f766e;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.settings-panel-head h2{margin:2px 0 0;font-size:16px}
.settings-panel-body{min-height:0;overflow:auto;padding:13px;background:#fff}.settings-panel-body section{display:grid;gap:12px;padding:12px;border:1px solid #bae6fd;border-radius:10px;background:linear-gradient(135deg,#f0fdfa,#eff6ff)}
.settings-section-title{display:flex;gap:9px;align-items:flex-start}.settings-section-title h3{margin:0;font-size:13px}.settings-section-title p{margin:3px 0 0;color:#64748b;font-size:10px;line-height:1.4}.settings-icon{display:grid;place-items:center;flex:0 0 35px;height:35px;border-radius:9px;background:#0f766e;color:#fff;font-size:15px;font-weight:900}
.settings-panel-body label{display:grid;gap:5px;color:#475569;font-size:10px;font-weight:800}.settings-panel-body select{width:100%;height:36px;border:1px solid #94a3b8;border-radius:7px;background:#fff;padding:5px 8px;font-size:12px}.settings-currency-preview{display:grid;grid-template-columns:auto auto 1fr;gap:7px;align-items:center;padding:8px;border-radius:8px;background:#fff}.settings-currency-preview>span{font-size:18px;font-weight:900;color:#047857}.settings-currency-preview>strong{font-size:12px}.settings-currency-preview>small{color:#64748b;font-size:9px;text-align:right}.settings-coming-soon{display:grid;gap:3px;margin-top:12px;padding:10px;border:1px dashed #cbd5e1;border-radius:8px;color:#64748b}.settings-coming-soon strong{font-size:10px}.settings-coming-soon span{font-size:9px;line-height:1.4}
.help-search-wrap{position:relative;z-index:45;width:min(320px,32vw)}
.help-search-input{display:flex;align-items:center;gap:6px;height:28px;padding:2px 4px 2px 8px;border:1px solid #8b5cf6;border-radius:8px;background:#fff;box-shadow:0 3px 12px rgba(99,102,241,.2)}
.help-search-input>span{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#7c3aed;color:#fff;font-size:11px;font-weight:900}
.help-search-input input{min-width:0;flex:1;border:0;outline:0;background:transparent;font-size:12px}
.help-search-input button{width:22px;height:22px;padding:0;border:0;background:transparent;color:#64748b;font-size:18px}
.help-topic-dropdown{position:absolute;top:calc(100% + 6px);right:0;display:grid;width:390px;max-height:min(520px,70vh);overflow:auto;border:1px solid #c4b5fd;border-radius:10px;background:#fff;box-shadow:0 18px 45px rgba(15,23,42,.25);padding:6px}
.help-topic-dropdown>button{display:grid;grid-template-columns:90px minmax(0,1fr);gap:2px 8px;width:100%;padding:9px;border:0;border-bottom:1px solid #eef2ff;border-radius:7px;background:#fff;text-align:left}
.help-topic-dropdown>button:hover,.help-topic-dropdown>button:focus{background:#eef2ff;outline:2px solid #a78bfa}
.help-topic-dropdown span{grid-row:1/3;align-self:start;margin-top:2px;color:#7c3aed;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.help-topic-dropdown strong{font-size:12px;color:#172033}.help-topic-dropdown small{overflow:hidden;color:#64748b;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.help-topic-dropdown>p{margin:8px;color:#64748b;font-size:12px}
.help-palette{display:grid;grid-template-rows:auto minmax(0,1fr);width:min(440px,calc(100vw - 24px));min-width:330px;height:min(620px,calc(100vh - 205px));min-height:380px;z-index:9;resize:both}
.help-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:62px;padding:10px 12px;border-bottom:1px solid #ddd6fe;background:linear-gradient(135deg,#f5f3ff,#eff6ff);cursor:grab}
.help-panel-head span{color:#7c3aed;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.help-panel-head h2{margin:2px 0 0;font-size:16px}.help-panel-head button{align-self:center}
.help-panel-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px;background:linear-gradient(#fff,#fafaff)}
.help-summary{margin:0 0 12px;color:#475569;font-size:13px;line-height:1.45}
.help-graphic{display:flex;align-items:center;justify-content:center;gap:7px;margin-bottom:16px;padding:15px 10px;border:1px solid #c4b5fd;border-radius:11px;background:radial-gradient(circle at 50% 0,#ede9fe,#f8fafc)}
.help-graphic>span{display:grid;place-items:center;gap:5px;min-width:82px;padding:10px 7px;border:1px solid #a5b4fc;border-radius:9px;background:#fff;box-shadow:0 5px 12px rgba(99,102,241,.12);text-align:center}.help-graphic i{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#4f46e5;color:#fff;font-size:11px;font-style:normal;font-weight:900}.help-graphic strong{font-size:11px}.help-graphic>b{color:#7c3aed;font-size:18px}
.help-steps{display:grid;gap:9px;margin:0;padding:0;list-style:none;counter-reset:helpstep}.help-steps li{position:relative;display:grid;gap:2px;padding:10px 10px 10px 42px;border:1px solid #e2e8f0;border-radius:9px;background:#fff;counter-increment:helpstep}.help-steps li:before{content:counter(helpstep);position:absolute;left:10px;top:11px;display:grid;place-items:center;width:22px;height:22px;border-radius:6px;background:#eef2ff;color:#4338ca;font-size:11px;font-weight:900}.help-steps i{color:#172033;font-size:12px;font-style:normal;font-weight:850}.help-steps span{color:#64748b;font-size:11px;line-height:1.4}
.help-tip{display:grid;gap:3px;margin-top:12px;padding:11px;border-left:4px solid #06b6d4;border-radius:7px;background:#ecfeff}.help-tip strong{font-size:11px;color:#0e7490}.help-tip span{font-size:11px;line-height:1.4;color:#155e75}
.help-related{display:flex;flex-wrap:wrap;gap:6px;margin-top:16px;padding-top:12px;border-top:1px solid #e2e8f0}.help-related>strong{width:100%;color:#64748b;font-size:10px;text-transform:uppercase;letter-spacing:.05em}.help-related button{padding:5px 8px;border-color:#c4b5fd;background:#f5f3ff;color:#5b21b6;font-size:10px;font-weight:750}
.money-editor{margin-top:4px;border:1px solid #bfdbfe;border-radius:9px;background:#f8fbff;overflow:hidden}
.money-editor summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;cursor:pointer;list-style:none;background:linear-gradient(135deg,#eff6ff,#f5f3ff)}.money-editor summary::-webkit-details-marker{display:none}.money-editor summary>span:first-child{display:grid;gap:2px}.money-editor summary strong{font-size:12px}.money-editor summary small{color:#64748b;font-size:9px}
.money-task-total,.project-money-totals{display:flex;flex-wrap:wrap;gap:4px}.money-total{display:inline-flex;align-items:center;gap:3px;padding:3px 6px;border:1px solid #93c5fd;border-radius:999px;background:#fff;color:#1e3a8a;font-size:10px;font-weight:800}.money-total b{color:#047857;font-size:12px}.money-total small{color:#64748b;font-size:8px}.money-empty{color:#94a3b8;font-size:9px}
.money-grid{display:grid;gap:6px;padding:9px}.money-grid-head,.money-row{display:grid;grid-template-columns:minmax(150px,1fr) 92px 88px 28px;gap:5px;align-items:center}.money-grid-head{padding:0 4px;color:#64748b;font-size:8px;font-weight:900;text-transform:uppercase}.money-row input,.money-row select{width:100%;min-width:0;height:31px;padding:5px 7px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;font-size:11px}.money-row [data-money-amount]{text-align:right;font-variant-numeric:tabular-nums}.money-row button{width:28px;height:28px;padding:0;border-color:#fecaca;background:#fff;color:#dc2626;font-size:16px}.add-money-row{justify-self:start;padding:6px 9px;border-color:#86efac;background:#f0fdf4;color:#15803d;font-size:10px;font-weight:800}
.project-money-totals{margin-top:3px}.project-money-totals:empty{display:none}.project-row .project-money-totals .money-total{padding:1px 4px;font-size:8px}.project-row .project-money-totals .money-total b{font-size:9px}
.detached-panel{min-width:0;background:#f1f5f9}.detached-panel .app-shell{min-height:100vh}.detached-panel-shell{display:grid;grid-template-rows:auto minmax(0,1fr);gap:7px;height:100vh;padding:8px}.detached-sync-state{display:flex;align-items:center;gap:6px;min-height:25px;border:1px solid #bbf7d0;border-radius:7px;background:#f0fdf4;padding:4px 8px;color:#166534;font-size:10px;font-weight:800}.detached-sync-state i{width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.14)}.detached-panel .palette{position:relative!important;inset:auto!important;width:100%!important;max-width:none!important;height:100%!important;max-height:none!important;resize:none!important;z-index:1}.detached-panel .palette [data-palette-handle]{cursor:default}.detached-panel .inspector{min-width:0}
.panel-actions [data-popout-panel]{border-color:#a5b4fc;background:#eef2ff;color:#4338ca;font-size:10px;font-weight:800}
@media (max-width: 900px) {
  .toolbar {
    padding-left: 18px;
  }

  .parent-palette {
    left: 12px !important;
    width: min(322px, calc(100vw - 24px));
  }

  .projects-palette {
    z-index: 7;
    left: 12px !important;
    width: min(250px, calc(100vw - 24px));
  }
  .work-item,.delegated-item{grid-template-columns:1fr}.notifications-palette,.profile-palette{left:12px!important;right:auto;width:min(360px,calc(100vw - 24px))}
  .toolbar{flex-direction:column;gap:7px}
  .toolbar h1,.toolbar p{max-width:100%}
  .toolbar-primary{justify-content:flex-start}
  .workflow-nav{width:auto;justify-content:flex-start}
  .task-nav{border-right:0;padding-right:0}
  .view-nav{max-width:100%}
  .work-hub{grid-template-columns:1fr}

  .single-list,
  .quadrant-board.focused .quadrant-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quadrant-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .single-list,
  .quadrant-board.focused .quadrant-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .quadrant-board { grid-template-columns: minmax(0, 1fr); }

  .single-board,
  .quadrant-board { padding: 10px; }

.single-item > div { min-width:0; }
.single-filters { display:flex; align-items:center; gap:6px; }
}
.single-filters .show-closed { box-shadow:none; padding:5px 9px; }

/* Customer directory and application administration */
.contacts-button{display:inline-flex;align-items:center;gap:5px;min-height:25px;padding:0 10px;border-color:#c4b5fd;background:linear-gradient(135deg,#f5f3ff,#ede9fe);color:#6d28d9;font-weight:850;box-shadow:0 3px 8px rgba(109,40,217,.13)}
.contacts-button>span{display:grid;place-items:center;width:16px;height:16px;border-radius:50%;background:#7c3aed;color:#fff;font-size:8px}.contacts-button.active{border-color:#7c3aed;background:linear-gradient(135deg,#7c3aed,#4f46e5);color:#fff}
.settings-panel-body{display:grid;gap:12px}.settings-icon.admin{background:#7c3aed}.admin-settings-card button{justify-self:stretch;border-color:#8b5cf6;background:#7c3aed;color:#fff;font-weight:850}
.admin-palette{position:fixed;inset:74px 28px 28px;z-index:80;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;border:1px solid #c4b5fd;border-radius:14px;background:#f8fafc;box-shadow:0 25px 80px rgba(15,23,42,.36)}
.admin-palette>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid #ddd6fe;background:linear-gradient(135deg,#f5f3ff,#eff6ff)}.admin-palette>header span{color:#7c3aed;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.09em}.admin-palette>header h2{margin:2px 0;font-size:21px}.admin-palette>header p{margin:0;color:#64748b;font-size:11px}.admin-palette>header button{align-self:flex-start}
.admin-user-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(390px,1fr));gap:12px;align-content:start;overflow:auto;padding:14px}.admin-user-card{display:grid;gap:12px;border:1px solid #cbd5e1;border-radius:11px;background:#fff;padding:13px;box-shadow:0 4px 13px rgba(15,23,42,.07)}.admin-user-card.inactive{opacity:.68;background:#f8fafc}.admin-user-heading{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:9px;align-items:center}.admin-user-heading>span{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#ede9fe;color:#6d28d9;font-weight:900}.admin-user-heading>div{display:grid}.admin-user-heading strong{font-size:13px}.admin-user-heading small{color:#64748b;font-size:10px}.admin-user-heading>b{padding:3px 7px;border-radius:999px;background:#dcfce7;color:#166534;font-size:9px}.admin-user-card.inactive .admin-user-heading>b{background:#e2e8f0;color:#475569}
.admin-user-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.admin-user-fields label{display:grid;gap:4px;color:#475569;font-size:9px;font-weight:850}.admin-user-fields input{min-width:0;height:33px;border:1px solid #cbd5e1;border-radius:7px;padding:6px 8px}.admin-user-fields label:nth-child(2){grid-column:auto}.admin-permissions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding-top:10px;border-top:1px solid #e2e8f0}.admin-permissions label{display:flex;align-items:center;gap:5px;color:#334155;font-size:10px;font-weight:800}.admin-permissions button{margin-left:auto;border-color:#7c3aed;background:#7c3aed;color:#fff;font-size:10px;font-weight:850}
.contacts-shell{min-height:0;overflow:auto;padding:16px 20px;background-color:#eef2f7;background-image:radial-gradient(#c9d8e8 1px,transparent 1px);background-size:22px 22px}.contacts-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;padding:12px 14px;border:1px solid #ddd6fe;border-radius:11px;background:rgba(255,255,255,.96);box-shadow:0 6px 18px rgba(15,23,42,.08)}.contacts-toolbar h2{margin:0;font-size:18px}.contacts-toolbar p{margin:3px 0 0;color:#64748b;font-size:10px}.contacts-toolbar>div:last-child{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}.contacts-toolbar input{width:min(330px,32vw);height:34px;border:1px solid #cbd5e1;border-radius:8px;padding:6px 10px}.contacts-toolbar button{font-size:10px;font-weight:800}.contacts-toolbar button.primary{border-color:#7c3aed;background:#7c3aed;color:#fff}
.contacts-layout{display:grid;grid-template-columns:minmax(580px,1fr) 300px;gap:14px;align-items:start}.customer-tree{display:grid;gap:10px}.customer-branch{display:grid;grid-template-columns:270px minmax(280px,1fr);gap:45px;align-items:center;min-height:100px;padding:12px;border:1px solid #cbd5e1;border-radius:12px;background:rgba(255,255,255,.95);box-shadow:0 5px 15px rgba(15,23,42,.08)}.customer-branch.selected{border-color:#8b5cf6;box-shadow:0 0 0 2px #ddd6fe,0 8px 19px rgba(76,29,149,.12)}.customer-node{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:9px;align-items:center;width:100%;min-height:70px;padding:10px;border-color:#a78bfa;background:linear-gradient(135deg,#faf5ff,#eef2ff);text-align:left}.customer-node:after{content:"";position:absolute;left:100%;top:50%;width:47px;border-top:2px solid #a78bfa}.customer-node>span{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#7c3aed;color:#fff;font-weight:900}.customer-node>div{display:grid;min-width:0}.customer-node small{color:#7c3aed;font-size:9px;font-weight:900}.customer-node strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.customer-node em{color:#64748b;font-size:9px;font-style:normal}.customer-node>b{padding:3px 6px;border-radius:999px;background:#dcfce7;color:#166534;font-size:8px}.customer-node>b.inactive{background:#e2e8f0;color:#475569}
.contact-children{position:relative;display:grid;gap:7px}.contact-children:before{content:"";position:absolute;right:100%;top:10px;bottom:10px;width:23px;border-left:2px solid #a78bfa}.contact-node{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:start;min-height:64px;border:1px solid #bfdbfe;border-radius:9px;background:#fff;padding:9px}.contact-node:before{content:"";position:absolute;right:100%;top:50%;width:24px;border-top:2px solid #a78bfa}.contact-node>span{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#dbeafe;color:#1d4ed8;font-size:10px;font-weight:900}.contact-node>div{display:grid;gap:2px}.contact-node strong{font-size:11px}.contact-node small{color:#64748b;font-size:9px}.contact-node div div{display:flex;flex-wrap:wrap;gap:4px;margin-top:3px}.contact-node i{padding:2px 5px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:8px;font-style:normal}.contact-node.inactive{opacity:.58}
.customer-summary{position:sticky;top:0;display:grid;gap:8px;border:1px solid #c4b5fd;border-radius:12px;background:#fff;padding:15px;box-shadow:0 9px 25px rgba(15,23,42,.12)}.customer-summary>span{color:#7c3aed;font-size:10px;font-weight:900}.customer-summary h3{margin:0;font-size:18px}.customer-summary>p{margin:0;color:#64748b;font-size:10px}.customer-summary dl{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:4px 0}.customer-summary dl div{padding:8px;border-radius:8px;background:#f5f3ff}.customer-summary dt{color:#64748b;font-size:8px;text-transform:uppercase}.customer-summary dd{margin:2px 0 0;color:#5b21b6;font-size:18px;font-weight:900}.customer-summary h4{margin:5px 0 0;font-size:10px;text-transform:uppercase;color:#64748b}.customer-summary section{display:grid;gap:2px;padding:8px;border-top:1px solid #e2e8f0}.customer-summary section strong{font-size:11px}.customer-summary section small{color:#64748b;font-size:9px}.customer-summary section a{font-size:9px;text-decoration:none}
@media(max-width:1000px){.contacts-layout{grid-template-columns:1fr}.customer-summary{position:relative}.customer-branch{grid-template-columns:240px minmax(250px,1fr)}.admin-palette{inset:70px 12px 12px}.admin-user-list{grid-template-columns:1fr}}
@media(max-width:700px){.contacts-toolbar{align-items:stretch;flex-direction:column}.contacts-toolbar>div:last-child{justify-content:flex-start}.contacts-toolbar input{width:100%}.customer-branch{grid-template-columns:1fr;gap:18px}.customer-node:after{left:30px;top:100%;width:0;height:20px;border-top:0;border-left:2px solid #a78bfa}.contact-children:before{display:none}.contact-node:before{right:auto;left:17px;top:-10px;width:0;height:10px;border-top:0;border-left:2px solid #a78bfa}.admin-user-fields{grid-template-columns:1fr}.admin-palette{inset:8px}}
