@charset "UTF-8";
:root {
  --ink: #25231f;
  --muted: #65594f;
  --accent: #b98764;
  --accent-soft: #ead0b9;
  --glass: rgba(255, 252, 248, 0.46);
  --edge: rgba(255, 255, 255, 0.79);
  --shadow: 0 8px 20px -14px #7d5b4159;
  --radius: 21px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.22, 1.35, 0.42, 1);
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC",
    "Microsoft YaHei", sans-serif;
  color: var(--ink);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 340px;
  min-height: 100vh;
  background: #e8d9ce;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  touch-action: manipulation;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
input,
textarea {
  caret-color: #a97653;
}
input:focus,
textarea:focus {
  outline: none;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #8b5e3d;
  outline-offset: 4px;
}
::selection {
  background: #dbb79799;
  color: #29241f;
}
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-thumb {
  background: #aa8c7459;
  border-radius: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
strong,
b {
  font-weight: 500;
}
svg.icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle;
}
button svg {
  pointer-events: none;
}
.svg-defs {
  position: absolute;
  pointer-events: none;
}
.skip-link {
  position: fixed;
  top: -70px;
  left: 30px;
  background: #fff9f4;
  padding: 14px;
  z-index: 1000;
  border-radius: 12px;
}
.skip-link:focus {
  top: 10px;
}
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 76% -10%, #d6b59d80, transparent 55%),
    radial-gradient(ellipse at 4% 60%, #f8eee6d9, transparent 50%),
    radial-gradient(ellipse at 89% 87%, #d4b7a594, transparent 52%),
    radial-gradient(ellipse at 35% 100%, #edcbb48c, transparent 40%),
    linear-gradient(110deg, #e9d6c8, #ede1d8 55%, #e3ccbc);
  filter: blur(15px);
  transform: scale(1.05);
}
.glass {
  background: var(--glass);
  border: 1px solid var(--edge);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 #fff5;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 26px;
  max-width: 1920px;
  margin: 18px auto 76px;
  padding: 0 24px;
  min-height: calc(100vh - 94px);
}
.sidebar {
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  padding: 28px 12px 12px;
  position: sticky;
  top: 18px;
  height: calc(100vh - 92px);
  min-height: 650px;
  max-height: 1100px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 12px 0;
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: -0.5px;
}
.brand-mark {
  width: 29px;
  height: 29px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  flex-shrink: 0;
}
.brand-mark i {
  border-radius: 8px 8px 2px 8px;
  background: linear-gradient(135deg, #e1c2a6, #bb855e);
}
.brand-mark i:nth-child(2) {
  transform: rotate(90deg);
  opacity: 0.85;
}
.brand-mark i:nth-child(3) {
  transform: rotate(-90deg);
  opacity: 0.8;
}
.brand-mark i:nth-child(4) {
  transform: rotate(180deg);
}
.navigation {
  position: relative;
  margin-top: 37px;
  min-height: 0;
  overflow-y: auto;
  flex: 1;
  margin-bottom: 14px;
}
.nav-liquid {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 47px;
  border: 1px solid #fffffff2;
  border-radius: 24px;
  background: linear-gradient(130deg, #fffdfbdd, #f9f4efbb);
  box-shadow:
    0 6px 13px -6px #8c6a4655,
    inset 0 1px 1px #fff;
  transform-origin: center;
  pointer-events: none;
  will-change: transform, height;
  z-index: 0;
}
.nav-item {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  padding: 0 20px;
  position: relative;
  z-index: 1;
  margin-bottom: 2px;
  font-size: 14px;
  border-radius: 24px;
  transition: color 0.2s;
}
.nav-item svg {
  width: 23px;
  height: 23px;
}
.nav-item[aria-current="page"] {
  font-weight: 500;
}
.nav-item:hover:not([aria-current]) {
  background: #fff4;
}
.nav-badge {
  font-size: 12px;
  margin-left: auto;
  border: 1px solid #fff9;
  background: linear-gradient(#f8e8db, #e9c7ae);
  border-radius: 50%;
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}
.account {
  display: flex;
  text-align: left;
  align-items: center;
  gap: 12px;
  border-radius: 19px;
  padding: 12px 14px;
  margin-top: auto;
  width: 100%;
  background: #fff5;
}
.avatar {
  display: inline-grid;
  place-items: center;
  background: linear-gradient(140deg, #d1a480, #ae7752);
  color: #fff;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  font-size: 17px;
  flex-shrink: 0;
  box-shadow: inset 0 1px 1px #fff5;
}
.account strong {
  display: block;
  font-weight: 500;
  font-size: 15px;
}
.account small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.account-chevron {
  margin-left: auto;
}
.account-chevron svg {
  width: 16px;
}
main {
  min-width: 0;
  padding: 10px 0 14px;
  outline: none;
}
.topbar {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--ink);
}
.slash {
  color: #927763;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.search-trigger,
.assistant-trigger {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 24px;
  font-size: 13px;
  padding: 0 16px;
  white-space: nowrap;
  transition:
    background 0.2s,
    transform 0.2s;
}
.search-trigger {
  min-width: 230px;
  justify-content: flex-start;
}
.search-trigger .icon {
  width: 18px;
  height: 18px;
}
.search-trigger kbd {
  font-size: 11px;
  margin-left: auto;
  color: var(--muted);
  padding-left: 12px;
  font-family: inherit;
}
.assistant-trigger {
  font-weight: 500;
  padding: 0 18px;
}
.assistant-trigger .icon {
  color: var(--accent);
  fill: var(--accent);
  stroke-width: 1;
}
.top-avatar {
  border: 1px solid #fff8;
  width: 34px;
  height: 34px;
  font-size: 14px;
}
.greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 26px 0 19px;
  min-height: 65px;
}
.greeting h1 {
  font-size: clamp(25px, 2.1vw, 30px);
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.3;
}
.greeting p {
  color: #65574e;
  font-size: 13px;
  margin-top: 5px;
}
.filters {
  display: flex;
  gap: 9px;
  align-items: center;
  position: relative;
  z-index: 15;
  flex-shrink: 0;
}
.chip {
  padding: 7px 15px;
  white-space: nowrap;
  font-size: 12px;
  border-radius: 20px;
  min-height: 34px;
}
.chip[aria-pressed="true"] {
  background: #f5decc;
  border-color: #fff;
  color: #754c30;
}
.liquid-filter {
  width: 129px;
  height: 36px;
  position: relative;
  z-index: 10;
}
.filter-toggle {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 22px;
  font-size: 12px;
}
.filter-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.4s var(--spring);
}
.filter-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.liquid-shapes {
  position: absolute;
  inset: 0;
  filter: url(#liquid);
  pointer-events: none;
}
.filter-blob {
  position: absolute;
  width: 129px;
  height: 36px;
  left: 0;
  top: 0;
  border-radius: 24px;
  background: #fffaf4e8;
  box-shadow: inset 0 0 0 1px #fff;
}
.filter-blob:not(.primary) {
  width: 81px;
  left: 24px;
  transform: scale(0.65);
  opacity: 0;
  transition:
    transform 0.65s var(--spring),
    opacity 0.2s,
    top 0.65s var(--spring),
    left 0.65s var(--spring),
    width 0.65s var(--spring);
}
.liquid-filter.open .filter-blob.primary {
  box-shadow: inset 0 1px 0 white;
}
.liquid-filter.open .filter-blob.option-one {
  opacity: 1;
  top: 45px;
  left: -66px;
  width: 264px;
  transform: scale(1);
}
.liquid-filter.open .filter-blob.option-two {
  opacity: 1;
  top: 17px;
  left: 50px;
  width: 30px;
  height: 35px;
  transform: scale(1);
}
.filter-options {
  position: absolute;
  top: 45px;
  left: -66px;
  display: flex;
  gap: 3px;
  width: 264px;
  padding: 1px 4px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-30px) scale(0.65);
  transform-origin: 50% 0;
  transition:
    opacity 0.2s 0.03s,
    transform 0.6s var(--spring);
}
.liquid-filter.open .filter-options {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.filter-options button {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 34px;
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
}
.filter-options button[aria-pressed="true"] {
  background: #e8c8ae99;
  box-shadow: inset 0 1px 1px #fff;
}
.filter-options button:hover {
  background: #ecd2bc99;
}
.filter-count {
  font-size: 10px;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}
.capture {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 13px 10px 16px;
  border-radius: 17px;
  margin-bottom: 18px;
  min-height: 66px;
  transition:
    box-shadow 0.3s,
    border-color 0.3s;
}
.capture:focus-within {
  border-color: #fff;
  box-shadow:
    0 8px 24px -14px #87624270,
    inset 0 0 0 1px #fff9;
}
.capture-plus {
  height: 29px;
  width: 29px;
  border-radius: 50%;
  border: 1px solid #fff9;
  background: #ead0bd6b;
  display: grid;
  place-items: center;
  padding: 0;
  flex-shrink: 0;
  color: #9a6f50;
  align-self: flex-start;
}
.capture-plus svg {
  width: 19px;
}
.capture-input-wrap {
  min-width: 0;
  flex: 1;
}
.capture input {
  background: none;
  border: 0;
  width: 100%;
  padding: 0 0 5px;
  font-size: 14px;
  line-height: 21px;
}
.capture input::placeholder {
  color: #726052;
}
.capture-hint {
  font-size: 10px;
  color: #756355;
  display: flex;
  align-items: center;
  gap: 5px;
}
.capture-hint .icon {
  width: 12px;
  height: 12px;
  color: #a27858;
}
.capture-submit {
  border-radius: 9px;
  width: 34px;
  height: 27px;
  display: grid;
  place-items: center;
  padding: 0;
  align-self: flex-start;
}
.capture-submit .icon {
  width: 17px;
  height: 17px;
}
.dashboard {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 18px;
  align-items: start;
}
.column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.module {
  position: relative;
  border-radius: var(--radius);
  padding: 16px 20px;
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow 0.4s;
  cursor: default;
  --mx: 50%;
  --my: 50%;
  --spot: 0;
}
.module::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    250px circle at var(--mx) var(--my),
    #fff9,
    transparent 65%
  );
  opacity: var(--spot);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.3s;
}
.module::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    180px circle at var(--mx) var(--my),
    white,
    transparent 90%
  );
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  opacity: var(--spot);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s;
}
.module:hover {
  box-shadow: 0 15px 30px -23px #76573d66;
}
.module-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.section-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.section-title > .icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}
.section-title h2 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.35px;
}
.accent-icon {
  color: var(--accent);
  fill: var(--accent);
  stroke-width: 1 !important;
}
.section-caption {
  font-size: 11px;
  color: var(--muted);
  margin-top: 0;
  line-height: 1.5;
}
.expand-button {
  opacity: 0.5;
  display: grid;
  place-items: center;
  padding: 3px;
  border-radius: 7px;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition:
    opacity 0.2s,
    background 0.2s;
}
.expand-button .icon {
  width: 17px;
  height: 17px;
}
.module:hover .expand-button,
.expand-button:focus-visible {
  opacity: 1;
  background: #fff6;
}
.close-module {
  display: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  place-items: center;
  background: #ffffff47;
  flex-shrink: 0;
}
.close-module .icon {
  width: 18px;
}
.briefing {
  min-height: 148px;
  padding-bottom: 16px;
}
.brief-copy {
  font-size: 13px;
  line-height: 1.65;
  padding-left: 34px;
  padding-right: 0;
}
.brief-metrics {
  display: flex;
  padding-left: 34px;
  margin-top: 12px;
  gap: 0;
}
.metric {
  text-align: left;
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  position: relative;
}
.metric:first-child {
  padding-left: 0;
}
.metric:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 5px;
  width: 1px;
  background: #a98d7233;
}
.number-window {
  display: block;
  font-size: 25px;
  font-weight: 400;
  height: 33px;
  line-height: 33px;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.number-window .number-stack {
  display: flex;
  flex-direction: column;
  height: 66px;
  will-change: transform;
}
.number-stack span {
  height: 33px;
  min-height: 33px;
  display: block;
}
.metric > span:last-child {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #695b4f;
}
.metric .icon {
  width: 12px;
  height: 12px;
}
.tasks-module {
  min-height: 235px;
  padding-bottom: 8px;
}
.tasks-module .module-head {
  margin-bottom: 8px;
}
.task-row {
  display: flex;
  align-items: center;
  gap: 11px;
  position: relative;
  min-height: 59px;
  border-bottom: 1px solid #b69e8830;
  padding: 9px 6px;
  border-radius: 0;
  transition:
    background 0.25s,
    opacity 0.25s;
}
.task-row:last-child {
  border-bottom: 0;
}
.task-row:first-child {
  background: #ffffff42;
  border: 1px solid #fff9;
  border-radius: 12px;
  margin: 0 -9px;
  padding-left: 14px;
  padding-right: 14px;
}
.task-row.priority:first-child::before {
  content: "";
  width: 3px;
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 7px;
  border-radius: 3px;
  background: #bd8a67;
}
.task-check {
  padding: 0;
  border: 1.5px solid #76614f;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #fff4;
  transition:
    background 0.25s,
    transform 0.25s;
}
.task-check .icon {
  width: 12px;
  height: 12px;
  opacity: 0;
}
.task-check:hover {
  transform: scale(1.1);
  background: #fff9;
}
.task-row.done .task-check {
  background: #a88767;
  border-color: #a88767;
  color: white;
}
.task-row.done .task-check .icon {
  opacity: 1;
}
.task-row.done .task-title {
  text-decoration: line-through;
  color: #81766d;
}
.task-title {
  font-weight: 400;
  font-size: 13px;
  display: block;
  padding: 0;
  text-align: left;
  line-height: 1.4;
}
.task-info {
  min-width: 0;
  flex: 1;
}
.task-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #786858;
  margin-top: 4px;
}
.task-meta .icon {
  width: 13px;
  height: 13px;
}
.tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #e7c3a67d;
  color: #775038;
  line-height: 1.3;
  white-space: nowrap;
}
.task-time {
  font-size: 11px;
  color: #6e6054;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.empty-state {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.projects-module {
  min-height: 146px;
  padding-top: 13px;
  padding-bottom: 10px;
}
.projects-module .module-head {
  margin-bottom: 8px;
}
.project-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  width: 100%;
  text-align: left;
  border-radius: 9px;
}
.project-icon {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #edcfb4, #dab48e);
  color: #71553a;
  box-shadow: inset 0 1px 0 #fff7;
  flex-shrink: 0;
}
.project-icon.sage {
  background: linear-gradient(140deg, #d4d7b7, #aeb491);
  color: #606747;
}
.project-icon .icon {
  width: 19px;
  height: 19px;
}
.project-name {
  font-size: 14px;
  min-width: 105px;
  font-weight: 400;
}
.project-progress {
  flex: 1;
  min-width: 20px;
  margin-left: 12px;
}
.project-progress small {
  font-size: 10px;
  color: #6a5648;
  display: block;
  margin-bottom: 5px;
}
.progress-track {
  height: 6px;
  background: #ab95824d;
  border-radius: 6px;
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  background: #bd8b66;
  border-radius: 6px;
  transition: width 0.6s var(--ease);
}
.progress-track.sage span {
  background: #9a9d7b;
}
.project-percent {
  font-size: 12px;
  min-width: 33px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.project-row > .icon {
  width: 13px;
  height: 13px;
}
.focus-module {
  color: #fff9f1;
  border: 1px solid #514c43;
  background:
    radial-gradient(ellipse at 20% -20%, #82634387, transparent 63%),
    radial-gradient(ellipse at 94% 102%, #5c473457, transparent 65%), #262522;
  min-height: 251px;
  padding-bottom: 14px;
  box-shadow:
    0 10px 26px -20px #42322366,
    inset 0 1px 0 #ffe4ce29;
}
.focus-module::before {
  background: radial-gradient(
    230px circle at var(--mx) var(--my),
    #e8b38638,
    transparent 65%
  );
}
.focus-module .section-title {
  gap: 10px;
}
.focus-module .section-title h2 {
  font-size: 14px;
  white-space: nowrap;
  letter-spacing: -0.5px;
}
.focus-module .section-caption {
  color: #c7b9aa;
  font-size: 10px;
}
.focus-module .module-head {
  margin-bottom: 0;
}
.focus-module .expand-button {
  position: absolute;
  right: 10px;
  top: 12px;
  opacity: 0;
}
.focus-module:hover .expand-button {
  opacity: 1;
  background: #ffffff14;
}
.timer-ring {
  width: 140px;
  height: 140px;
  position: relative;
  margin: 1px auto 2px;
  display: grid;
  place-items: center;
}
.timer-ring > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.timer-ring circle {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
}
.ring-track {
  stroke: #fff3;
}
.ring-progress {
  stroke: #d7ad8d;
  stroke-dasharray: 439.82;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}
.timer-ring > span {
  font-size: 29px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}
.focus-task {
  text-align: center;
  font-size: 12px;
  margin: 1px 0 10px;
}
.focus-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
}
.focus-start {
  background: linear-gradient(#fffcf7f5, #e8d4c3e6);
  color: #352b23;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 150px;
  border-radius: 22px;
  height: 31px;
  font-size: 12px;
  box-shadow:
    0 4px 9px -6px #000b,
    inset 0 1px 0 white;
}
.focus-start .icon {
  width: 13px;
  height: 13px;
  fill: currentColor;
}
.timer-reset {
  position: absolute;
  left: calc(50% + 84px);
  color: #d9c6b4;
  width: 24px;
  height: 24px;
  padding: 2px;
}
.timer-reset .icon {
  width: 15px;
  height: 15px;
}
.inbox-module {
  padding-top: 13px;
  padding-bottom: 10px;
  min-height: 164px;
}
.inbox-module .module-head {
  margin-bottom: 8px;
}
.inbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 5px;
  border-bottom: 1px solid #c9ae9629;
  width: 100%;
  text-align: left;
  font-size: 12px;
  transition: background 0.2s;
  border-radius: 7px;
}
.inbox-item:first-child {
  background: #ffffff3d;
}
.inbox-item:last-child {
  border-bottom: 0;
}
.inbox-item > .icon {
  width: 17px;
  height: 17px;
}
.inbox-item > span.title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inbox-item .tag {
  font-size: 9px;
  background: #e6c6b351;
  padding: 3px 7px;
}
.text-action {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #715642;
  margin-left: auto;
  margin-top: 8px;
  padding: 2px 0;
}
.text-action .icon {
  width: 14px;
  height: 14px;
}
.library-module {
  min-height: 127px;
  padding-top: 13px;
  padding-bottom: 13px;
}
.library-module .module-head {
  margin-bottom: 11px;
}
.reading-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  padding: 0;
}
.book-cover {
  width: 90px;
  height: 61px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #d3ae91, #eed9c8 70%);
  padding: 7px 9px;
  box-shadow: inset 0 1px 0 #fff7;
  color: #4f3826;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.book-cover > span {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 2px;
}
.book-cover small {
  font-size: 5px;
  letter-spacing: 0.8px;
}
.reading-copy {
  min-width: 0;
  flex: 1;
}
.reading-copy strong {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 400;
}
.reading-copy small {
  font-size: 10px;
  color: #796654;
  display: block;
  margin-top: 2px;
}
.reading-item > .icon {
  width: 14px;
  height: 14px;
}
.expanded-only {
  display: none;
}
.extra-modules {
  display: none;
}
.column > .module:not(.expanded) {
  cursor: zoom-in;
}
.module button,
.module a,
.module input,
.module textarea {
  cursor: auto;
}
.module button,
.module a {
  cursor: pointer;
}
.module input,
.module textarea {
  cursor: text;
}
.module-placeholder {
  border-radius: var(--radius);
  border: 1px solid #ffffff55;
  background: #ffffff16;
  flex-shrink: 0;
}
.module-scrim {
  position: fixed;
  inset: 0;
  background: #d8c5b63d;
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  z-index: 35;
  transition: opacity 0.45s;
}
.module-scrim.active {
  opacity: 1;
  pointer-events: auto;
}
.module-stage {
  position: fixed;
  z-index: 40;
  left: max(270px, calc((100vw - 1872px) / 2 + 250px));
  right: 38px;
  top: 18px;
  bottom: 86px;
  pointer-events: none;
}
.module-stage[hidden],
.thumbnail-strip[hidden] {
  display: none;
}
.module.expanded {
  height: 100%;
  width: 100%;
  overflow: auto;
  cursor: default;
  pointer-events: auto;
  padding: 18px 24px;
  background: rgba(255, 250, 245, 0.84);
  backdrop-filter: blur(35px);
  box-shadow: 0 28px 80px -35px #6c51466b;
  border: 1px solid #fff;
  border-radius: 25px;
  transform: none;
}
.module.expanded .module-head {
  flex-shrink: 0;
  min-height: 32px;
  margin-bottom: 10px;
}
.module.expanded h2 {
  font-size: 20px;
}
.module.expanded .module-head h2 {
  font-size: 19px;
}
.module.expanded .section-title > div {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
.module.expanded .expand-button {
  display: none;
}
.module.expanded .close-module {
  display: grid;
}
.module.expanded .expanded-only {
  display: block;
}
.module.expanded .section-caption {
  margin: 0;
  font-size: 12px;
}
.module.expanded .task-row {
  min-height: 74px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.module.expanded .task-title {
  font-size: 14px;
}
.module.expanded .task-time {
  font-size: 12px;
}
.module.expanded .task-meta {
  font-size: 11px;
}
.module.expanded .inline-form {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.inline-form input {
  background: #fff7;
  border: 1px solid #fff;
  border-radius: 12px;
  padding: 11px 14px;
  min-width: 0;
  flex: 1;
}
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 11px;
  padding: 9px 14px;
  white-space: nowrap;
  font-size: 12px;
}
.small-button .icon {
  width: 16px;
  height: 16px;
}
.small-button.primary {
  background: #c18f6b;
  color: white;
  border: 1px solid #ad7852;
}
.task-footer {
  margin-top: 22px;
  font-size: 12px;
  color: var(--muted);
}
.task-footer span:last-child {
  float: right;
}
.brief-expanded {
  margin: 30px 0 0 34px;
  border-top: 1px solid #b89c822b;
  padding-top: 24px;
}
.brief-expanded h3 {
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 500;
}
.brief-expanded p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  max-width: 60ch;
}
.module.expanded .brief-copy {
  font-size: 16px;
  max-width: 65ch;
}
.module.expanded .brief-metrics {
  margin-top: 30px;
  max-width: 600px;
}
.module.expanded .number-window {
  font-size: 28px;
}
.timeline-row {
  display: flex;
  gap: 24px;
  padding: 18px 0;
  font-size: 13px;
  border-bottom: 1px solid #bda58e26;
}
.timeline-row time {
  color: #815837;
  font-variant-numeric: tabular-nums;
}
.timeline-row p {
  font-size: 12px;
}
.module.expanded .project-row {
  padding: 16px 8px;
}
.module.expanded .project-name {
  font-size: 15px;
  min-width: 140px;
}
.module.expanded .project-progress {
  max-width: 350px;
}
.project-detail {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid #b59d8333;
}
.project-detail h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
}
.project-detail p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}
.project-detail .detail-task {
  padding: 12px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.detail-task .icon {
  width: 17px;
  height: 17px;
  color: #9d805e;
}
.module.expanded.focus-module {
  background:
    radial-gradient(ellipse at 20% -20%, #82634387, transparent 63%), #282622;
  border-color: #6d5f50;
  color: #fff7ed;
  text-align: center;
}
.module.expanded.focus-module .module-head {
  text-align: left;
}
.module.expanded .timer-ring {
  width: 230px;
  height: 230px;
  margin: 20px auto 16px;
}
.module.expanded #timer-time {
  font-size: 40px;
}
.module.expanded .focus-task {
  font-size: 15px;
  margin-bottom: 20px;
}
.module.expanded .focus-start {
  height: 38px;
  min-width: 180px;
  font-size: 14px;
}
.module.expanded .timer-reset {
  left: calc(50% + 105px);
}
.focus-note {
  margin-top: 25px;
}
.focus-note h3 {
  font-size: 16px;
  font-weight: 500;
}
.focus-note p {
  color: #d1c2b0;
  margin-top: 8px;
  font-size: 13px;
}
.duration-options {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.duration-options button {
  padding: 7px 14px;
  border: 1px solid #fff4;
  border-radius: 17px;
  font-size: 12px;
  color: #d9c6b4;
}
.duration-options button[aria-pressed="true"] {
  background: #e7c19b22;
  border-color: #d2a47e;
  color: #ffe2c7;
}
.module.expanded .inbox-item {
  padding: 17px 8px;
  font-size: 15px;
}
.module.expanded .text-action {
  font-size: 13px;
  margin-top: 20px;
}
.inbox-note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 30px;
}
.module.expanded .reading-item {
  max-width: 650px;
}
.module.expanded .book-cover {
  height: 100px;
  width: 130px;
  padding: 14px;
}
.module.expanded .book-cover > span {
  font-size: 20px;
}
.module.expanded .book-cover small {
  font-size: 8px;
}
.module.expanded .reading-copy strong {
  font-size: 15px;
}
.module.expanded .reading-copy small {
  font-size: 12px;
}
.library-content {
  margin-top: 24px;
  border-top: 1px solid #b99c8430;
  padding-top: 24px;
  max-width: 72ch;
}
.library-content h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 20px 0 10px;
}
.library-content p {
  line-height: 1.9;
  font-size: 14px;
  color: #6d5e50;
  margin: 10px 0;
}
.library-content ul {
  line-height: 2;
  color: #6d5e50;
  padding-left: 22px;
}
.library-content .tag {
  display: inline-block;
  margin-right: 6px;
}
.thumbnail-strip {
  position: fixed;
  bottom: 10px;
  left: calc(50% + 105px);
  transform: translateX(-50%);
  z-index: 44;
  border-radius: 24px;
  padding: 5px 8px;
  display: flex;
  gap: 6px;
  max-width: calc(100vw - 290px);
  overflow-x: auto;
  background: #fcf6ef85;
}
.thumb-button {
  width: 68px;
  flex-shrink: 0;
  border-radius: 14px;
  padding: 3px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  position: relative;
  border: 1px solid transparent;
  transition:
    transform 0.3s var(--spring),
    background 0.3s,
    border-color 0.3s;
}
.thumb-button:hover {
  transform: translateY(-4px);
  background: #fff6;
}
.thumb-button[aria-pressed="true"] {
  background: #fff9;
  border-color: #fff;
  box-shadow: 0 4px 10px -5px #8b6b4b3b;
}
.thumb-preview {
  width: 58px;
  height: 30px;
  border: 1px solid #fff9;
  border-radius: 6px;
  background: #fff6;
  padding: 5px;
  display: flex;
  gap: 4px;
  align-items: center;
  overflow: hidden;
}
.thumb-preview > .icon {
  width: 15px;
  height: 15px;
  color: #9d7859;
}
.thumb-lines {
  display: flex;
  gap: 3px;
  flex-direction: column;
  flex: 1;
}
.thumb-lines i {
  height: 3px;
  background: #cdb8a47d;
  border-radius: 2px;
}
.thumb-lines i:nth-child(2) {
  width: 70%;
}
.thumb-preview.dark {
  background: #35312b;
}
.thumb-preview.dark .thumb-lines i {
  background: #baa18d;
}
.thumb-button > span:last-child {
  font-size: 10px;
  color: #715d4c;
  white-space: nowrap;
}
.dock {
  position: fixed;
  bottom: 17px;
  left: 50%;
  transform: translateX(-50%);
  height: 59px;
  padding: 5px 17px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  border-radius: 30px;
  z-index: 30;
  background: #fffbf792;
  transition:
    opacity 0.25s,
    translate 0.4s var(--ease);
  box-shadow:
    0 12px 22px -20px #664a35a8,
    inset 0 1px 0 #fff;
}
.dock-button {
  position: relative;
  width: 47px;
  height: 47px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform-origin: 50% 100%;
  transform: translateY(var(--lift, 0px)) scale(var(--scale, 1));
  transition:
    transform 0.17s ease-out,
    background 0.25s;
  will-change: transform;
  color: #42352a;
}
.dock-button .icon {
  width: 27px;
  height: 27px;
  stroke-width: 1.6;
}
.dock-button[aria-current="page"] {
  background: linear-gradient(#fffcf7, #f1d2b7);
  box-shadow:
    inset 0 0 0 1px #fff,
    0 4px 12px -6px #b08a6880;
}
.dock-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  transform: translateX(-50%) translateY(4px) scale(0.8);
  background: #fffbf4ee;
  padding: 5px 11px;
  white-space: nowrap;
  border: 1px solid #fff;
  border-radius: 16px;
  box-shadow: 0 3px 9px -5px #58463566;
  font-size: 11px;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.16s,
    transform 0.2s;
}
.dock-button:hover .dock-label,
.dock-button:focus-visible .dock-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(0.85);
}
body.has-module .dock {
  opacity: 0;
  pointer-events: none;
  translate: 0 80px;
}
body.has-module .dashboard > .column > .module {
  opacity: 0.04;
  transition: opacity 0.4s;
}
body.has-module .capture {
  opacity: 0.45;
}
body.has-module .sidebar {
  z-index: 42;
}
body.has-module .today-header {
  visibility: hidden;
}
.extra-modules .module {
  min-height: 350px;
}
.board-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  min-height: 240px;
}
.board-column {
  border-radius: 16px;
  background: #dfd1c34d;
  padding: 12px;
  min-width: 0;
  transition: background 0.2s;
}
.board-column.drag-over {
  background: #d8b79a73;
  outline: 1px solid #bc8b68;
}
.board-column h3 {
  font-size: 13px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  margin: 1px 0 15px;
}
.board-column h3 span {
  color: #8a705b;
  font-weight: 400;
}
.board-card {
  background: #fff9;
  border: 1px solid #fffc;
  border-radius: 11px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 5px 10px -9px #765b4280;
  cursor: grab;
}
.board-card:active {
  cursor: grabbing;
}
.board-card p {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.board-card .tag {
  font-size: 9px;
}
.board-card select {
  font-size: 10px;
  background: #fff7;
  border: 1px solid #dbc7b4;
  border-radius: 5px;
  padding: 4px;
  width: 100%;
  margin-top: 10px;
}
.board-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 20px;
}
.docs-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  min-height: calc(100% - 90px);
}
.docs-list button {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  line-height: 1.6;
  padding: 10px;
  border-radius: 9px;
  width: 100%;
  margin-bottom: 5px;
  font-size: 12px;
}
.docs-list button.active {
  background: #fff9;
  box-shadow: 0 2px 4px #a3835710;
}
.docs-list .icon {
  width: 16px;
  height: 16px;
}
.editor {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 8px;
}
.editor label {
  font-size: 11px;
  color: var(--muted);
}
.editor input {
  font-size: 18px;
  font-weight: 500;
  border: 0;
  border-radius: 9px;
  padding: 10px;
  background: #fff7;
  width: 100%;
}
.editor textarea {
  border: 1px solid #fff9;
  resize: vertical;
  background: #fff5;
  border-radius: 12px;
  padding: 15px;
  font-size: 14px;
  line-height: 1.9;
  min-height: 230px;
  flex: 1;
  width: 100%;
}
.editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: var(--muted);
}
.review-cards {
  display: flex;
  gap: 20px;
  padding: 15px 0 25px;
}
.review-cards > div {
  flex: 1;
}
.review-cards strong {
  display: block;
  font-size: 28px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.review-cards small {
  color: var(--muted);
}
.review-label {
  display: block;
  margin: 25px 0 12px;
  font-size: 16px;
  font-weight: 500;
}
#review-note {
  width: 100%;
  height: 140px;
  padding: 14px;
  border: 1px solid #fff;
  border-radius: 13px;
  background: #fff5;
  resize: vertical;
  line-height: 1.8;
}
.save-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 9px;
}
.review-completed {
  font-size: 14px;
  line-height: 2.2;
  color: var(--muted);
}
dialog {
  color: var(--ink);
  border: 1px solid #fff9;
  box-shadow: 0 28px 100px -25px #37271866;
  max-width: calc(100vw - 32px);
  outline: none;
}
dialog::backdrop {
  background: #33271d52;
  backdrop-filter: blur(7px);
}
.command-dialog {
  margin: 15vh auto auto;
  width: 640px;
  border-radius: 23px;
  padding: 0;
  overflow: hidden;
  background: #fbf5edf2;
  backdrop-filter: blur(35px);
}
.command-dialog[open] {
  animation: dialog-in 0.25s var(--ease);
}
.command-input-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 19px 21px;
  border-bottom: 1px solid #b8a38b33;
}
.command-input-row > .icon {
  width: 23px;
  height: 23px;
  color: #94785e;
}
.command-input-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font-size: 16px;
}
.command-input-row input::placeholder {
  color: #887765;
}
.key-button {
  border: 1px solid #d2c3b4;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 11px;
  background: #fff5;
  color: #6d5e50;
}
.command-results {
  padding: 9px;
  max-height: 370px;
  overflow: auto;
  min-height: 90px;
}
.command-result {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 13px;
  text-align: left;
  font-size: 14px;
}
.command-result[aria-selected="true"] {
  background: #fff9;
  border-color: #fff;
  box-shadow: 0 5px 12px -8px #6e4d364a;
}
.command-result > .icon {
  color: #927253;
  width: 19px;
  height: 19px;
}
.command-result > span:first-of-type {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.command-result .result-type {
  font-size: 10px;
  color: #816952;
  background: #e3cfbb59;
  padding: 3px 8px;
  border-radius: 10px;
}
.command-result mark {
  background: #efcaa9b5;
  color: inherit;
  padding: 1px 0;
  border-radius: 3px;
}
.command-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #baa2882b;
  padding: 11px 20px;
  font-size: 10px;
  color: #715e4a;
}
.command-footer kbd {
  font-family: inherit;
  margin: 0 3px;
}
.utility-dialog {
  padding: 24px;
  border-radius: 24px;
  max-height: 85vh;
  width: 560px;
  background: #f9f2eaf5;
}
.utility-dialog[open] {
  animation: dialog-in 0.3s var(--ease);
}
.utility-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.utility-dialog h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
}
.icon-button {
  border-radius: 50%;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  background: #fff5;
  flex-shrink: 0;
}
.icon-button .icon {
  width: 18px;
  height: 18px;
}
.utility-description {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 17px;
}
.organize-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid #c9b49e35;
}
.organize-row input {
  accent-color: #ba8a64;
  margin-top: 5px;
}
.organize-row div {
  flex: 1;
  min-width: 0;
}
.organize-row strong {
  font-size: 13px;
  font-weight: 500;
  display: block;
  overflow-wrap: anywhere;
}
.organize-row small {
  font-size: 11px;
  color: #88715b;
  display: block;
  margin-top: 5px;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}
.settings-row {
  padding: 13px 0;
  border-bottom: 1px solid #c9b49e35;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.settings-row span {
  font-size: 13px;
}
.settings-row small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
  color: var(--muted);
}
.demo-note {
  color: #846b56;
  font-size: 10px;
  background: #e4cfb854;
  padding: 5px 9px;
  border-radius: 10px;
  display: inline-block;
}
.assistant-panel {
  position: fixed;
  right: 20px;
  top: 20px;
  bottom: 20px;
  width: 380px;
  max-width: calc(100vw - 32px);
  border-radius: 26px;
  z-index: 65;
  padding: 22px;
  background: #f9f2eaf2;
  box-shadow: 0 16px 80px -20px #6f4b3a66;
  display: flex;
  flex-direction: column;
  animation: panel-in 0.4s var(--ease);
}
.assistant-panel[hidden] {
  display: none;
}
.assistant-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.assistant-panel > .demo-note {
  align-self: flex-start;
}
.assistant-messages {
  flex: 1;
  overflow: auto;
  padding-top: 20px;
}
.assistant-bubble,
.user-bubble {
  padding: 13px 15px;
  border: 1px solid #fff9;
  background: #fff6;
  border-radius: 17px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.user-bubble {
  background: #e9d2bd72;
  margin-left: 30px;
}
.assistant-suggestions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}
.assistant-suggestions button {
  font-size: 12px;
  color: #795c45;
  border: 1px solid #d3b89c66;
  border-radius: 13px;
  padding: 8px;
  text-align: left;
}
.assistant-panel form {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fff9;
  border: 1px solid #fff;
  border-radius: 15px;
  padding: 8px;
  margin-top: 12px;
}
.assistant-panel input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: none;
  font-size: 12px;
  padding: 5px;
}
.preview-actions {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}
.preview-actions button {
  font-size: 11px;
  padding: 6px 10px;
  border: 1px solid #c8a382;
  border-radius: 9px;
  background: #f7e9dc;
}
.toast {
  position: fixed;
  bottom: 97px;
  left: 50%;
  transform: translate(-50%, 15px);
  border-radius: 16px;
  padding: 11px 17px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100vw - 36px);
  background: #fffbf4ed;
  box-shadow: 0 8px 30px -12px #8363485e;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s,
    transform 0.4s var(--ease);
  font-size: 12px;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.toast button {
  color: #97633c;
  font-size: 12px;
  white-space: nowrap;
  padding: 3px 0;
  border-bottom: 1px solid #b7865c;
}
.toast [hidden] {
  display: none;
}
body.has-module .toast {
  bottom: 116px;
}
.search-trigger:hover,
.assistant-trigger:hover,
.small-button:hover,
.chip:hover,
.capture-submit:hover {
  background: #fff9;
}
.focus-start:hover {
  background: #fff9ee;
  transform: translateY(-1px);
}
.account:hover {
  background: #ffffff76;
}
.reading-item:hover .reading-copy strong,
.project-row:hover .project-name {
  text-decoration: underline;
  text-decoration-color: #b68e6b;
  text-underline-offset: 4px;
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateX(35px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes celebrate {
  0% {
    transform: scale(0.8);
  }
  45% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
.task-row.just-completed .task-check {
  animation: celebrate 0.4s var(--spring);
}
@media (min-width: 1600px) {
  .workspace {
    grid-template-columns: 244px minmax(0, 1fr);
    gap: 28px;
    padding: 0 26px;
  }
  .sidebar {
    padding-top: 31px;
  }
  .brand {
    font-size: 18px;
  }
  .navigation {
    margin-top: 40px;
  }
  .nav-item {
    height: 56px;
    font-size: 15px;
  }
  .nav-liquid {
    height: 53px;
  }
  .greeting {
    margin-top: 30px;
    margin-bottom: 22px;
  }
  .capture {
    min-height: 74px;
    margin-bottom: 20px;
  }
  .dashboard {
    gap: 20px;
  }
  .module {
    padding: 19px 23px;
  }
  .section-title h2 {
    font-size: 17px;
  }
  .briefing {
    min-height: 166px;
  }
  .brief-copy {
    font-size: 14px;
  }
  .brief-metrics {
    margin-top: 15px;
  }
  .tasks-module {
    min-height: 266px;
  }
  .task-row {
    min-height: 66px;
  }
  .task-title {
    font-size: 14px;
  }
  .projects-module {
    min-height: 161px;
  }
  .focus-module {
    min-height: 282px;
  }
  .focus-module .section-title h2 {
    font-size: 15px;
  }
  .timer-ring {
    width: 157px;
    height: 157px;
  }
  .inbox-module {
    min-height: 182px;
  }
  .library-module {
    min-height: 139px;
  }
  .module-stage {
    left: max(302px, calc((100vw - 1872px) / 2 + 278px));
  }
  .thumbnail-strip {
    left: calc(50% + 123px);
  }
}
@media (max-width: 1200px) {
  .workspace {
    grid-template-columns: 185px minmax(0, 1fr);
    gap: 20px;
    padding: 0 18px;
  }
  .brand {
    font-size: 16px;
    gap: 9px;
    padding-left: 9px;
  }
  .brand-mark {
    width: 26px;
    height: 26px;
  }
  .nav-item {
    padding-left: 15px;
    gap: 12px;
    font-size: 14px;
  }
  .sidebar {
    padding-left: 10px;
    padding-right: 10px;
  }
  .top-actions {
    gap: 9px;
  }
  .search-trigger {
    min-width: 180px;
    padding: 0 12px;
  }
  .module {
    padding-left: 15px;
    padding-right: 15px;
  }
  .section-title {
    gap: 9px;
  }
  .section-title h2 {
    font-size: 16px;
  }
  .brief-copy,
  .brief-metrics {
    padding-left: 29px;
  }
  .brief-copy {
    font-size: 12px;
  }
  .task-title {
    font-size: 12px;
  }
  .project-name {
    min-width: 85px;
    font-size: 12px;
  }
  .project-progress {
    margin-left: 2px;
  }
  .project-icon {
    width: 27px;
    height: 27px;
  }
  .project-row {
    gap: 8px;
  }
  .focus-module .section-title h2 {
    font-size: 13px;
    letter-spacing: 0;
  }
  .focus-module .section-title {
    gap: 7px;
  }
  .focus-module .section-title > .icon {
    width: 18px;
    height: 18px;
  }
  .greeting {
    gap: 10px;
  }
  .filters {
    gap: 5px;
  }
  .chip {
    padding: 7px 10px;
  }
  .book-cover {
    width: 70px;
  }
  .reading-item {
    gap: 10px;
  }
  .inbox-item .tag {
    display: none;
  }
  .module-stage {
    left: 224px;
    right: 24px;
  }
  .thumbnail-strip {
    left: calc(50% + 90px);
    max-width: calc(100vw - 230px);
  }
  .board-columns {
    gap: 9px;
  }
  .board-column {
    padding: 9px;
  }
}
@media (max-width: 950px) {
  .workspace {
    grid-template-columns: 185px minmax(0, 1fr);
    gap: 18px;
    padding: 0 16px;
  }
  .sidebar {
    padding: 25px 8px 10px;
  }
  .brand {
    padding: 0;
  }
  .brand-mark {
    width: 31px;
    height: 31px;
  }
  .navigation {
    width: 100%;
    margin-top: 35px;
  }
  .nav-item {
    height: 48px;
  }
  .nav-liquid {
    height: 46px;
  }
  .account {
    padding: 10px;
    border-radius: 18px;
  }
  .account .avatar {
    width: 31px;
    height: 31px;
    font-size: 14px;
  }
  .topbar {
    height: 35px;
  }
  .search-trigger {
    min-width: 36px;
    padding: 0 10px;
  }
  .search-trigger > span:not(:first-child),
  .search-trigger kbd {
    display: none;
  }
  .assistant-trigger {
    font-size: 12px;
    padding: 0 12px;
  }
  .dashboard {
    grid-template-columns: 1.35fr 1fr;
    gap: 12px;
  }
  .greeting h1 {
    font-size: 27px;
  }
  .greeting p {
    font-size: 11px;
  }
  .module-stage {
    left: 220px;
    right: 18px;
  }
  .thumbnail-strip {
    left: calc(50% + 95px);
    max-width: calc(100vw - 230px);
  }
  .module.expanded .project-name {
    min-width: 110px;
  }
  .board-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .docs-layout {
    grid-template-columns: 145px 1fr;
  }
  .focus-module .section-title h2 {
    font-size: 12px;
  }
  .project-percent {
    font-size: 11px;
    min-width: 26px;
  }
}
@media (max-width: 720px) {
  .workspace {
    display: block;
    padding: 0 16px;
    margin: 8px 0 92px;
    min-height: auto;
  }
  .sidebar {
    position: relative;
    top: auto;
    min-height: 0;
    height: auto;
    padding: 12px 14px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
  }
  .brand {
    gap: 10px;
  }
  .brand > span:last-child {
    display: block;
    font-size: 16px;
  }
  .brand-mark {
    width: 27px;
    height: 27px;
  }
  .sidebar .navigation {
    margin: 0;
    width: auto;
    display: none;
  }
  .sidebar .account {
    width: auto;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
  }
  .sidebar .account > span:nth-child(2) {
    display: block;
  }
  .sidebar .account strong {
    font-size: 12px;
  }
  .sidebar .account small {
    font-size: 9px;
  }
  .sidebar .account .avatar {
    width: 29px;
    height: 29px;
    font-size: 12px;
  }
  .sidebar .account .account-chevron {
    display: none;
  }
  main {
    padding-top: 17px;
  }
  .breadcrumb {
    font-size: 11px;
  }
  .topbar {
    height: 30px;
  }
  .top-actions {
    gap: 7px;
  }
  .top-avatar {
    display: none;
  }
  .search-trigger,
  .assistant-trigger {
    height: 32px;
  }
  .assistant-trigger {
    font-size: 11px;
    padding: 0 10px;
  }
  .assistant-trigger .icon {
    width: 16px;
    height: 16px;
  }
  .greeting {
    margin-top: 20px;
    margin-bottom: 15px;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .greeting h1 {
    font-size: 27px;
  }
  .greeting p {
    font-size: 11px;
    line-height: 1.6;
  }
  .filters {
    align-self: flex-start;
    gap: 8px;
  }
  .chip {
    font-size: 11px;
    min-height: 32px;
  }
  .liquid-filter {
    height: 32px;
    width: 118px;
  }
  .filter-toggle {
    height: 32px;
    font-size: 11px;
  }
  .filter-blob {
    width: 118px;
    height: 32px;
  }
  .filter-options {
    left: 0;
    top: 42px;
  }
  .liquid-filter.open .filter-blob.option-one {
    left: 0;
    top: 42px;
  }
  .liquid-filter.open .filter-blob.option-two {
    left: 50px;
  }
  .capture {
    margin-bottom: 15px;
    padding: 11px 10px;
    gap: 9px;
    min-height: 64px;
  }
  .capture input {
    font-size: 12px;
  }
  .capture-plus {
    width: 25px;
    height: 25px;
  }
  .capture-hint {
    font-size: 9px;
  }
  .dashboard {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .column {
    width: 100%;
    gap: 14px;
  }
  .module {
    padding: 17px 18px;
    border-radius: 20px;
  }
  .section-title h2 {
    font-size: 15px;
  }
  .section-title {
    gap: 11px;
  }
  .brief-copy {
    font-size: 12px;
    padding-left: 32px;
  }
  .brief-metrics {
    padding-left: 32px;
  }
  .briefing {
    min-height: 163px;
  }
  .tasks-module {
    min-height: 248px;
  }
  .task-title {
    font-size: 13px;
  }
  .task-row {
    min-height: 65px;
  }
  .projects-module {
    min-height: 156px;
  }
  .project-name {
    min-width: 100px;
    font-size: 13px;
  }
  .project-icon {
    width: 31px;
    height: 31px;
  }
  .project-progress {
    margin-left: 3px;
  }
  .focus-module {
    min-height: 279px;
  }
  .focus-module .section-title h2 {
    font-size: 15px;
    white-space: normal;
  }
  .focus-module .section-title > .icon {
    width: 22px;
    height: 22px;
  }
  .timer-ring {
    width: 150px;
    height: 150px;
    margin: 6px auto;
  }
  .focus-task {
    font-size: 13px;
  }
  .inbox-module {
    min-height: 171px;
  }
  .inbox-item .tag {
    display: inline-block;
  }
  .library-module {
    min-height: 142px;
  }
  .book-cover {
    width: 90px;
    height: 65px;
  }
  .reading-copy strong {
    font-size: 13px;
  }
  .reading-copy small {
    font-size: 11px;
  }
  .dock {
    bottom: 14px;
    height: 56px;
    gap: 2px;
    padding: 5px 9px;
    max-width: calc(100vw - 22px);
  }
  .dock-button {
    width: 44px;
    height: 44px;
  }
  .dock-button .icon {
    width: 24px;
    height: 24px;
  }
  .dock-label {
    display: none;
  }
  .module-stage {
    left: 12px;
    right: 12px;
    top: 8px;
    bottom: 78px;
  }
  .module.expanded {
    padding: 16px;
    border-radius: 23px;
  }
  .module.expanded h2,
  .module.expanded .module-head h2 {
    font-size: 18px;
  }
  .module.expanded .task-title {
    font-size: 14px;
  }
  .module.expanded .task-row {
    min-height: 80px;
  }
  .module.expanded .task-meta {
    font-size: 10px;
    flex-wrap: wrap;
  }
  .module.expanded .task-time {
    font-size: 10px;
  }
  .module.expanded .section-title {
    gap: 9px;
  }
  .module.expanded .inline-form {
    flex-direction: column;
    gap: 9px;
  }
  .module.expanded .inline-form button {
    align-self: flex-end;
  }
  .task-footer span:last-child {
    float: none;
    display: block;
    margin-top: 8px;
  }
  .module.expanded .brief-copy {
    font-size: 14px;
    padding-left: 0;
  }
  .module.expanded .brief-metrics {
    padding-left: 0;
  }
  .brief-expanded {
    margin-left: 0;
  }
  .brief-expanded h3 {
    font-size: 18px;
  }
  .brief-expanded p {
    font-size: 13px;
  }
  .module.expanded .project-name {
    font-size: 13px;
    min-width: 90px;
  }
  .module.expanded .project-progress {
    margin-left: 0;
  }
  .module.expanded .project-row {
    gap: 7px;
    padding: 14px 0;
  }
  .module.expanded .timer-ring {
    width: 200px;
    height: 200px;
    margin-top: 30px;
  }
  .focus-note p {
    line-height: 1.8;
    font-size: 12px;
  }
  .module.expanded .focus-task {
    font-size: 15px;
  }
  .thumbnail-strip {
    bottom: 8px;
    left: 12px;
    right: 12px;
    transform: none;
    max-width: none;
    padding: 4px 5px;
    gap: 3px;
    border-radius: 20px;
  }
  .thumb-button > span:last-child {
    font-size: 9px;
  }
  body.has-module .sidebar {
    z-index: auto;
  }
  .command-dialog {
    margin-top: 12vh;
    border-radius: 20px;
  }
  .command-input-row {
    padding: 15px;
    gap: 10px;
  }
  .command-input-row input {
    font-size: 13px;
  }
  .command-footer {
    font-size: 9px;
    padding: 12px;
  }
  .command-result {
    font-size: 13px;
    padding: 12px 10px;
  }
  .utility-dialog {
    padding: 20px;
  }
  .utility-dialog h2 {
    font-size: 18px;
  }
  .assistant-panel {
    inset: 12px;
    width: auto;
    max-width: none;
  }
  .module.expanded .docs-layout {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .docs-list {
    display: flex;
    overflow: auto;
    flex-shrink: 0;
  }
  .docs-list button {
    white-space: nowrap;
    width: auto;
    flex-shrink: 0;
  }
  .editor input {
    font-size: 17px;
  }
  .editor textarea {
    min-height: 270px;
    font-size: 13px;
  }
  .board-columns {
    gap: 9px;
  }
  .board-column h3 {
    font-size: 12px;
  }
  .board-card {
    padding: 10px;
  }
  .board-card p {
    font-size: 12px;
  }
  .board-hint {
    line-height: 1.8;
  }
  .review-cards {
    gap: 12px;
  }
  .review-cards strong {
    font-size: 25px;
  }
  .review-cards small {
    font-size: 10px;
  }
  .module.expanded .inbox-item {
    font-size: 13px;
  }
  .module.expanded .inbox-item .tag {
    font-size: 8px;
  }
  .module.expanded .reading-copy strong {
    font-size: 14px;
  }
  .module.expanded .book-cover {
    width: 95px;
    height: 90px;
  }
  .module.expanded .book-cover > span {
    font-size: 16px;
  }
  .toast {
    bottom: 87px;
    font-size: 11px;
    width: max-content;
    max-width: calc(100vw - 30px);
  }
}
.thumb-preview {
  position: relative;
  width: 52px;
  height: 28px;
  padding: 0;
  display: block;
}
.thumb-preview .miniature {
  position: absolute;
  left: 0;
  top: 0;
  width: 320px;
  height: 200px;
  min-height: 200px;
  transform: scale(0.16) !important;
  transform-origin: 0 0;
  padding: 14px !important;
  overflow: hidden;
  border-radius: 18px;
  pointer-events: none;
  opacity: 1 !important;
  box-shadow: none;
}
.thumb-preview .miniature .module-head {
  margin-bottom: 8px;
}
.thumb-preview .miniature h2 {
  font-size: 16px;
}
.thumb-preview .miniature .timer-ring {
  width: 110px;
  height: 110px;
}
.thumb-preview .miniature .project-name {
  min-width: 90px;
}
.thumb-preview .miniature .task-row {
  min-height: 48px;
}
.thumb-preview .miniature .focus-task {
  font-size: 11px;
}
.thumb-preview .miniature .focus-actions {
  display: none;
}
.thumb-preview .miniature .board-columns {
  gap: 4px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.thumb-preview .miniature .board-column {
  padding: 4px;
}
.thumb-preview .miniature .board-card {
  padding: 5px;
}
.avatar {
  color: #24190f;
}
.tag,
.task-meta,
.capture-hint,
.project-progress small,
.reading-copy small,
.filter-count,
.inbox-item .tag,
.demo-note,
.thumb-button > span:last-child,
.command-footer,
.command-result .result-type,
.editor label,
.editor-footer,
.save-hint,
.board-hint {
  font-size: 11px;
}
.book-cover small {
  display: none;
}
.focus-module .section-caption {
  font-size: 11px;
}
.focus-start {
  background: linear-gradient(#fffaf5, #ebd9c8);
}
.small-button.primary {
  background: #966746;
  border-color: #855a3a;
}
.toast button {
  color: #805132;
}
.command-input-row input::placeholder {
  color: #76624f;
}
.duration-options button {
  min-height: 32px;
}
.capture-hint {
  line-height: 1.4;
}
.module .miniature * {
  font-size: inherit;
}
.progress-track {
  display: block;
}
@media (max-width: 720px) {
  .capture-hint,
  .sidebar .account small,
  .reading-copy small,
  .task-meta,
  .inbox-item .tag,
  .command-footer,
  .command-result .result-type,
  .thumb-button > span:last-child,
  .filter-toggle,
  .chip,
  .filter-count {
    font-size: 11px;
  }
  .thumb-preview {
    width: 46px;
    height: 24px;
  }
  .module.expanded .inbox-item .tag,
  .module.expanded .task-meta {
    font-size: 11px;
  }
  .task-row .tag {
    font-size: 10px;
  }
  .editor-footer {
    flex-wrap: wrap;
  }
  .section-caption {
    font-size: 12px;
  }
}
.liquid-filter.open .filter-blob.option-one {
  left: -66px;
  top: 45px;
  width: 82px;
  height: 36px;
}
.liquid-filter.open .filter-blob.option-two {
  left: 25px;
  top: 45px;
  width: 82px;
  height: 36px;
}
.liquid-filter.open .filter-blob.option-three {
  opacity: 1;
  left: 116px;
  top: 45px;
  width: 82px;
  height: 36px;
  transform: scale(1);
}
.filter-bridge {
  position: absolute;
  background: #fffaf4e8;
  border-radius: 20px;
  width: 23px;
  height: 40px;
  left: 53px;
  top: 12px;
  opacity: 0;
  transform: scale(0.3);
  transition:
    opacity 0.3s,
    transform 0.6s var(--spring);
}
.liquid-filter.open .filter-bridge {
  opacity: 1;
  transform: scale(1);
}
.filter-options {
  gap: 9px;
  width: 264px;
  padding: 1px 0;
}
.filter-options button {
  flex-shrink: 0;
  width: 82px;
}
@media (max-width: 720px) {
  .liquid-filter.open .filter-blob.option-one {
    left: 0;
    top: 42px;
  }
  .liquid-filter.open .filter-blob.option-two {
    left: 91px;
    top: 42px;
  }
  .liquid-filter.open .filter-blob.option-three {
    left: 182px;
    top: 42px;
  }
  .liquid-filter .filter-bridge {
    left: 52px;
    width: 25px;
    height: 34px;
    top: 15px;
    transform-origin: 0 0;
  }
  .liquid-filter.open .filter-bridge {
    transform: rotate(-36deg) scale(1.15);
  }
}
@media (min-width: 721px) and (max-height: 920px) {
  .greeting {
    margin-top: 18px;
    margin-bottom: 14px;
    min-height: 59px;
  }
  .capture {
    min-height: 62px;
    margin-bottom: 15px;
    padding-top: 9px;
    padding-bottom: 9px;
  }
  .module:not(.expanded):not(.miniature) {
    padding-top: 13px;
    padding-bottom: 11px;
  }
  .tasks-module {
    min-height: 223px;
  }
  .task-row {
    min-height: 55px;
  }
  .focus-module {
    min-height: 242px;
  }
  .focus-module:not(.expanded) .timer-ring {
    width: 126px;
    height: 126px;
  }
  .inbox-module {
    min-height: 158px;
  }
  .library-module {
    min-height: 123px;
  }
  .projects-module {
    min-height: 141px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .module,
  .dock-button {
    transform: none !important;
  }
  .module::before,
  .module::after {
    transition: none;
  }
  .nav-liquid {
    will-change: auto;
  }
}

/* Independent accounts and team collaboration use the existing glass palette. */
[hidden] {
  display: none !important;
}
.startup-status { display: none; position: fixed; inset: 0; place-content: center; color: #70523d; font-size: 13px; }
.auth-loading.auth-checking .startup-status { display: grid; }
.auth-checking .auth-screen { visibility: hidden; }
.auth-loading .workspace,
.auth-loading #dock,
.auth-loading #module-stage,
.auth-loading #thumbnail-strip,
.auth-loading .skip-link,
.auth-loading #module-scrim {
  display: none !important;
}
.auth-screen {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px 20px;
}
.auth-card {
  width: min(440px, 100%);
  padding: 38px;
  border-radius: 30px;
  box-shadow: 0 24px 75px #86634c20;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 40px;
}
.auth-brand .brand-mark {
  width: 30px;
  height: 30px;
}
.auth-card .eyebrow {
  font-size: 10px;
  letter-spacing: 0.17em;
  color: #977760;
}
.auth-card h1 {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.4;
}
#auth-description {
  font-size: 13px;
  color: #7e726b;
  line-height: 1.8;
  margin: 12px 0 26px;
}
#auth-form,
.collab-form {
  display: grid;
  gap: 16px;
}
#auth-form label,
.collab-form label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: #74645b;
}
#auth-form input,
.collab-form input,
.collab-form textarea,
.collab-form select,
.invite-link,
.recovery-key {
  width: 100%;
  border: 1px solid #ffffffd9;
  background: #fff8;
  border-radius: 12px;
  padding: 11px 13px;
  font: inherit;
  font-size: 13px;
  color: #443b35;
  min-width: 0;
}
#auth-form input {
  height: 45px;
}
.auth-submit {
  min-height: 45px;
  border-radius: 14px;
  border: 1px solid #b5846380;
  font-size: 14px;
  cursor: pointer;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  gap: 16px;
}
.auth-links button,
.quiet-button {
  background: transparent;
  border: 0;
  color: #8e654b;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  padding: 5px 0;
}
.auth-footnote {
  font-size: 11px;
  color: #8c7b71;
  margin-top: 32px;
  text-align: center;
}
.form-error {
  color: #9d3c31;
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}
.form-error:empty {
  display: none;
}
.space-select {
  display: grid;
  gap: 5px;
  margin: 3px 14px 17px;
}
.space-select > .space-caption {
  font-size: 10px;
  color: #8d7b6f;
  padding-left: 8px;
}
.space-select > .space-icon { display: none; }
.space-select select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #ffffffad;
  background: #fff5;
  padding: 9px 7px;
  font: inherit;
  font-size: 12px;
  color: #685347;
  cursor: pointer;
}
.sidebar-header { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; }
.sidebar-header .brand { flex: 1; min-width: 0; gap: 8px; padding: 4px 0; font-size: 15px; }
#sidebar-toggle { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; color: #70523d; }
#sidebar-toggle:hover { background: #fff7; }
#sidebar-toggle .icon { width: 19px; height: 19px; }
.sidebar-collapsed #sidebar-toggle .icon { transform: scaleX(-1); }
#sidebar-tooltip { position: fixed; z-index: 70; transform: translateY(-50%); padding: 7px 12px; border: 1px solid #fff; border-radius: 12px; background: #fff9f2f5; color: #49392d; font-size: 12px; box-shadow: 0 5px 14px -8px #70523d70; pointer-events: none; white-space: nowrap; }
@media (min-width: 721px) {
  .sidebar-header .brand { max-width: 160px; overflow: hidden; }
  .nav-item { overflow: hidden; }
  .nav-item svg { flex-shrink: 0; }
  .nav-text, .account > span:nth-child(2) { max-width: 150px; overflow: hidden; white-space: nowrap; }
  .space-select { position: relative; width: calc(100% - 28px); }
  .space-select .space-caption { max-height: 14px; overflow: hidden; white-space: nowrap; }
  .space-select select { height: 38px; }
  .space-select > .space-icon { display: block; position: absolute; width: 20px; height: 20px; left: 12px; bottom: 12px; pointer-events: none; color: #70523d; opacity: 0; }
  .module-stage { left: var(--content-left); }
  .thumbnail-strip { left: var(--content-center); max-width: calc(100vw - var(--content-left) - 38px); }
  .sidebar-animating { --sidebar-duration: 320ms; --sidebar-ease: cubic-bezier(0.22, 1, 0.36, 1); }
  .sidebar-animating .workspace { transition: grid-template-columns var(--sidebar-duration) var(--sidebar-ease); }
  .sidebar-animating :is(.sidebar, .sidebar-header, .brand, .navigation, .nav-item, .nav-text, .account, .account > span, .avatar, .space-select, .space-select > *, #sidebar-toggle .icon) {
    transition-property: padding, margin, gap, height, width, max-width, max-height, flex-grow, opacity, transform, color;
    transition-duration: var(--sidebar-duration);
    transition-timing-function: var(--sidebar-ease);
  }
  body.sidebar-collapsed .workspace { grid-template-columns: 76px minmax(0, 1fr); }
  .sidebar-collapsed .sidebar { padding: 16px 8px 10px; }
  .sidebar-collapsed .sidebar-header { gap: 0; }
  .sidebar-collapsed .sidebar-header .brand { flex-grow: 0; max-width: 0; opacity: 0; }
  .sidebar-collapsed .navigation { width: 100%; margin-top: 16px; }
  .sidebar-collapsed .nav-item { height: 44px; padding: 0 17px; gap: 0; }
  .sidebar-collapsed .nav-text, .sidebar-collapsed .account > span:nth-child(2) { max-width: 0; opacity: 0; }
  .sidebar-collapsed .nav-badge { display: none; }
  .sidebar-collapsed .account { padding: 7px; gap: 0; border-radius: 17px; }
  .sidebar-collapsed .account .account-chevron { display: none; }
  .sidebar-collapsed .account .avatar { width: 32px; height: 32px; font-size: 14px; }
  .sidebar-collapsed .space-select { width: calc(100% - 14px); margin: 10px 7px 0; gap: 0; }
  .sidebar-collapsed .space-caption { max-height: 0; opacity: 0; }
  .sidebar-collapsed .space-select > .space-icon { opacity: 1; }
  .sidebar-collapsed .space-select select { height: 44px; color: transparent; appearance: none; }
  .sidebar-collapsed .space-select option { color: #49392d; }
}
@media (721px <= width <= 1200px) {
  .sidebar-header .brand { gap: 6px; font-size: 14px; }
}
@media (max-width: 720px) {
  #sidebar-toggle { display: none; }
  .sidebar-header { width: auto; }
}
.collab-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 16px;
  min-height: 32px;
}
#space-badge {
  font-size: 11px;
  color: #8c6954;
  border: 1px solid #fff9;
  border-radius: 20px;
  padding: 6px 12px;
  background: #fff3;
}
.sync-status {
  color: #81766b;
  font-size: 10px;
  margin-left: auto;
}
.sync-status.has-error {
  color: #a24536;
}
.collab-bar .small-button {
  font-size: 11px;
  padding: 7px 11px;
}
.sync-warning {
  padding: 14px 18px;
  background: #fff4dfbb;
  border: 1px solid #fff;
  border-radius: 16px;
  font-size: 12px;
  color: #8c553c;
  margin: 10px 0;
}
.sync-warning > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.team-mode [data-module="inbox"],
.team-mode [data-module="library"],
.team-mode [data-module="docs"],
.team-mode [data-module="review"],
.team-mode [data-nav="inbox"],
.team-mode [data-nav="library"],
.team-mode [data-nav="docs"],
.team-mode [data-nav="review"],
.team-mode [data-dock="inbox"],
.team-mode [data-dock="library"],
.team-mode [data-dock="docs"],
.team-mode [data-nav="bookmarks"],
.team-mode [data-dock="bookmarks"],
.team-mode [data-thumb="bookmarks"],
.team-mode [data-module="bookmarks"],
.team-mode #capture-form,
.team-mode [data-thumb="inbox"],
.team-mode [data-thumb="library"],
.team-mode [data-thumb="docs"],
.team-mode [data-thumb="review"] {
  display: none !important;
}
.team-mode #task-form {
  display: flex;
}
.team-mode [data-module="board"] {
  display: block;
}
.team-task-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.team-task-link:hover {
  color: #9b6a48;
}
.task-time small {
  display: block;
  font-size: 10px;
  color: #a18470;
  margin-bottom: 3px;
}
.assignee-label {
  display: block;
  font-size: 11px;
  color: #8c7667;
  margin: 3px 0 10px;
}
.team-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  border-radius: 14px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.team-choice span {
  flex: 1;
}
.team-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.member-list {
  margin-bottom: 20px;
}
.member-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #b89d8620;
}
.member-row > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.member-row strong {
  display: block;
  font-weight: 500;
  font-size: 13px;
}
.member-row small {
  display: block;
  color: #928173;
  font-size: 11px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.member-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #d8baa344;
  color: #9b7053;
  font-size: 12px;
  flex-shrink: 0;
}
.subheading {
  font-size: 13px;
  font-weight: 500;
  margin: 24px 0 10px;
}
.activity-list > div {
  padding: 10px 0;
  border-bottom: 1px solid #b89d8620;
  font-size: 12px;
}
.activity-list small {
  display: block;
  color: #927d6d;
  margin-top: 4px;
  font-size: 11px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ai-settings-hint { margin: 0; color: #705747; font-size: 12px; line-height: 1.7; }
.ai-settings label > .ai-settings-hint { font-weight: 400; }
.ai-settings input[type="checkbox"] { accent-color: #966746; }
.ai-settings-advanced { border-top: 1px solid #bfa48f55; padding-top: 4px; }
.ai-settings-advanced summary { min-height: 44px; display: list-item; align-content: center; cursor: pointer; color: #594333; font-size: 13px; }
.ai-settings-advanced .form-grid { margin: 8px 0 12px; }
.ai-settings-advanced > label { margin-top: 12px; }
.ai-settings input[readonly] { color: #705747; background: #d9c7b522; }
.ai-settings-message { margin: 0; min-height: 20px; color: #52633d; font-size: 12px; line-height: 1.7; }
.ai-settings-actions { margin-top: 4px; }
@media (max-width: 480px) {
  .ai-settings .form-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .ai-settings-actions { flex-wrap: wrap; gap: 8px; }
  .ai-settings-actions button { min-height: 40px; }
}
.collab-form textarea {
  min-height: 86px;
  resize: vertical;
}
.collab-form .checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.collab-form .checkbox-label input {
  width: auto;
}
.comments-list article {
  padding: 14px 0;
  border-bottom: 1px solid #b89d8620;
}
.comments-list article > div {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.comments-list strong {
  font-size: 12px;
  font-weight: 500;
}
.comments-list time {
  font-size: 10px;
  color: #998676;
}
.comments-list article p {
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 8px 0 0;
}
.recovery-key {
  height: 96px;
  overflow-wrap: anywhere;
  resize: none;
  font-family: monospace;
}
#invite-result {
  margin-top: 14px;
}
#invite-result button {
  margin-top: 10px;
}
@media (max-width: 760px) {
  .space-select {
    margin: 4px 4px 14px;
  }
  .space-select > span {
    display: none;
  }
  .space-select select {
    font-size: 10px;
    padding: 8px 2px;
  }
  .collab-bar {
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 0;
  }
  .sync-status {
    order: 3;
    width: 100%;
    margin: 0 0 2px;
  }
  #team-manage {
    margin-left: auto;
  }
  #space-badge {
    font-size: 10px;
    padding: 5px 8px;
  }
  .auth-card {
    padding: 28px;
  }
  .auth-card h1 {
    font-size: 23px;
  }
}
#page-title {
  overflow-wrap: anywhere;
}
.account > span:nth-child(2) {
  min-width: 0;
}
.account small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 130px;
}
@media (max-width: 760px) {
  .account small {
    max-width: 70px;
  }
}

/* Login: a single warm glass-orbit scene, kept separate from the operating UI. */
.auth-screen {
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 440px);
  gap: clamp(30px, 6vw, 100px);
  max-width: 1360px;
  margin: auto;
  padding: 48px 64px;
}
.auth-showcase {
  min-width: 0;
  align-self: center;
}
.auth-art {
  --art-opacity: 0.65;
  opacity: var(--art-opacity);
  position: relative;
  height: 460px;
  isolation: isolate;
  --light-x: 50%;
  --light-y: 50%;
}
#auth-dust {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.auth-caustic {
  position: absolute;
  inset: 4% -6%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at var(--light-x) var(--light-y),
    #fffaf0c4 0%,
    #f8e8d46b 28%,
    transparent 65%
  );
  filter: blur(16px);
}
.orbit-scene {
  position: absolute;
  width: 420px;
  height: 420px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) perspective(900px)
    rotateX(var(--orbit-x, 0deg)) rotateY(var(--orbit-y, 0deg));
  transform-style: preserve-3d;
}
.orbit-halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid #b98c6540;
  transform: rotateX(64deg);
  box-shadow: 0 30px 35px -24px #aa7b4c60;
}
.glass-orbit {
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  background: conic-gradient(
    from 30deg,
    #fffdf9f5,
    #d7b28c85 24%,
    #fff9ea 39%,
    #b67f4e70 60%,
    #f5ddbf90 75%,
    #fffdf5f5
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 25px),
    #000 calc(100% - 24px)
  );
  box-shadow: inset 3px 5px 12px #fff;
}
.orbit-one {
  transform: rotateX(58deg) rotateZ(-25deg);
  animation: orbit-rotate-one 24s linear infinite;
}
.orbit-two {
  inset: 14%;
  background: conic-gradient(
    from 190deg,
    #fdf9f0,
    #c89e7970,
    #fffcebe6,
    #bf926674,
    #fffdf6
  );
  transform: rotateY(61deg) rotateZ(34deg);
  animation: orbit-rotate-two 30s linear infinite;
}
.orbit-three {
  inset: 21%;
  transform: rotateX(-42deg) rotateY(44deg);
  animation: orbit-rotate-three 28s linear infinite;
}
.orbit-core {
  position: absolute;
  inset: 34%;
  border: 1px solid #fffaf0c9;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 29% 23%, #fffefa 0%, #fff8e9b3 14%, transparent 47%),
    radial-gradient(ellipse at 72% 79%, #c48a5a80, #e8bd9166 35%, transparent 69%),
    radial-gradient(circle at 48% 44%, #fff9edb0, #e4bf9966 70%, #fffaf0d9 100%);
  backdrop-filter: blur(10px);
  box-shadow:
    0 22px 40px -12px #9b704545,
    inset 3px 4px 10px #fffdf7,
    inset -5px -7px 14px #ba85523d;
  transform: translateZ(35px);
}
.orbit-core::before {
  content: "";
  position: absolute;
  inset: 12% 19% 47% 15%;
  border-radius: 50%;
  border-top: 2px solid #fffefaeb;
  background: linear-gradient(180deg, #fffdf480, transparent 85%);
  transform: rotate(-32deg);
}
.orbit-core::after {
  content: "";
  position: absolute;
  inset: 48% 12% 15% 31%;
  border-radius: 50%;
  border-bottom: 1px solid #fff7e6c9;
  transform: rotate(-36deg);
}
.orbit-node {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 25%,
    #fffdf6 0%,
    #e9c6a3 40%,
    #b9875966 100%
  );
  border: 1px solid #fff9;
  box-shadow: 0 8px 16px #a8794733;
}
.node-one {
  left: 12%;
  top: 29%;
  animation: orbit-float 9s ease-in-out infinite;
}
.node-two {
  right: 11%;
  bottom: 25%;
  width: 25px;
  height: 25px;
  animation: orbit-float 10s ease-in-out -3s infinite;
}
.node-three {
  left: 31%;
  bottom: 8%;
  width: 11px;
  height: 11px;
  animation: orbit-float 8s ease-in-out -5s infinite;
}
.orbit-word {
  position: absolute;
  background: #fff6;
  border: 1px solid #fff9;
  border-radius: 18px;
  padding: 9px 18px;
  font-size: 12px;
  color: #725443;
  backdrop-filter: blur(12px);
  box-shadow: 0 9px 22px -15px #805a3c50;
}
.word-one {
  left: 7%;
  top: 19%;
}
.word-two {
  right: 5%;
  top: 45%;
}
.word-three {
  left: 17%;
  bottom: 15%;
}
.auth-intro {
  padding: 0 26px 12px;
}
.auth-intro h2 {
  font-size: 22px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  font-weight: 400;
  color: #5c4436;
  margin: 0 0 16px;
}
.auth-intro p {
  color: #6e5646;
  font-size: 13px;
  line-height: 1.85;
  max-width: 34em;
}
.auth-screen .auth-card {
  width: 100%;
  padding: 38px;
  box-shadow: 0 30px 85px -35px #79553d45;
  backdrop-filter: blur(28px);
  background: linear-gradient(145deg, #fffaf07a, #fff9f04d);
}
.auth-screen .auth-brand {
  margin-bottom: 32px;
}
.auth-screen .auth-submit {
  background: #a17150;
  color: #fffaf4;
  border-color: #a17150;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.auth-screen .auth-submit:hover {
  background: #8c5d40;
  box-shadow: 0 9px 18px -12px #74503480;
}
.auth-screen .auth-submit:disabled {
  opacity: 0.55;
  cursor: wait;
}
.auth-screen input::placeholder {
  color: #8a7566;
}
.auth-screen .auth-footnote {
  color: #79675b;
}
.auth-screen.motion-paused .glass-orbit,
.auth-screen.motion-paused .orbit-node {
  animation-play-state: paused;
}
@keyframes orbit-rotate-one {
  from {
    transform: rotateX(58deg) rotateZ(-25deg);
  }
  to {
    transform: rotateX(58deg) rotateZ(335deg);
  }
}
@keyframes orbit-rotate-two {
  from {
    transform: rotateY(61deg) rotateZ(34deg);
  }
  to {
    transform: rotateY(61deg) rotateZ(-326deg);
  }
}
@keyframes orbit-rotate-three {
  from {
    transform: rotateX(-42deg) rotateY(44deg) rotateZ(0);
  }
  to {
    transform: rotateX(-42deg) rotateY(44deg) rotateZ(360deg);
  }
}
@keyframes orbit-float {
  50% {
    transform: translateY(-14px) translateX(6px);
  }
}

/* The richer work surfaces use compact controls and real task content. */
.work-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ffffffc9;
  border-radius: 12px;
  background: #fff5;
  padding: 0 11px;
  min-width: 140px;
}
.work-search input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 10px 0;
  font: inherit;
  font-size: 12px;
  color: #4f4036;
  outline: 0;
}
.work-search:focus-within {
  outline: 2px solid #b3866680;
  outline-offset: 2px;
}
.work-search .icon {
  width: 16px;
  height: 16px;
  color: #8c7260;
  flex-shrink: 0;
}
.work-search input::placeholder {
  color: #77604e;
}
.board-tools {
  margin-bottom: 20px;
}
#board-columns.has-lanes {
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
}
.board-lane + .board-lane { margin-top: 22px; }
.lane-header { margin-bottom: 8px; }
.lane-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 3px;
  background: transparent;
  border: 0;
  color: #4c3b2f;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}
.lane-toggle span { overflow-wrap: anywhere; }
.lane-toggle small { color: #705947; white-space: nowrap; font-size: 12px; }
.lane-toggle .icon { width: 14px; height: 14px; flex-shrink: 0; }
.lane-toggle[aria-expanded="true"] .icon { transform: rotate(90deg); }
.lane-toggle:hover { color: #8c5937; }
.board-lane-columns { display: flex; gap: 12px; overflow-x: auto; height: clamp(220px, 42vh, 360px); padding-bottom: 10px; }
#board-columns .board-lane-columns .board-column { flex: 1 0 235px; min-height: 0; }
#board-quadrants {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  overflow-y: auto;
  min-height: 200px;
  flex: 1;
  padding: 2px;
}
.quadrant-cell { background: #d4c6b62b; border-radius: 16px; padding: 16px; min-width: 0; }
.quadrant-cell > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.quadrant-cell h3 { font-size: 14px; font-weight: 500; margin: 0; color: #4c3b2f; }
.quadrant-cell h3 span { margin-left: 10px; font-weight: 400; font-variant-numeric: tabular-nums; }
.quadrant-cell header p { color: #705947; font-size: 12px; margin: 5px 0 0; }
.quadrant-cell[data-color="rose"] { background: #bc7f7914; }
.quadrant-cell[data-color="sage"] { background: #85947c14; }
.quadrant-cell[data-color="clay"] { background: #bd8b6517; }
.quadrant-tasks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 10px; align-items: start; }
.quadrant-tasks .board-card { margin: 0; min-width: 0; }
.quadrant-cell.drag-over { outline: 2px solid #ad7954; outline-offset: -2px; }
.task-tags .importance-tag { background: #e1e6dc; color: #4b5844; }
.task-tags .urgency-tag { background: #eedbd6; color: #7b433b; }
.task-deadline.is-due-soon { color: #855327; }
.task-classification { border: 1px solid #d6c4b8; border-radius: 12px; padding: 12px; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.task-classification legend { color: #5e4838; font-size: 13px; padding: 0 5px; }
.task-classification small { flex-basis: 100%; color: #705947; font-size: 12px; }
.task-classification input { accent-color: #a47756; }
.task-draft-status { color: #705947; font-size: 12px; margin: 0; line-height: 1.6; }
@media (max-width: 700px) {
  #board-quadrants { grid-template-columns: 1fr; gap: 14px; }
  .quadrant-cell { padding: 12px; }
  .quadrant-tasks { grid-template-columns: 1fr; }
  #board-columns .board-lane-columns .board-column { flex: 0 0 255px; }
  .board-lane + .board-lane { margin-top: 16px; }
  #board-settings-button .board-settings-label { display: none; }
  #board-settings-button { width: 30px; padding-inline: 6px; }
}
.board-tools-primary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.board-tools-primary .work-search {
  flex: 1;
  max-width: 390px;
  margin-right: auto;
}
.view-switch {
  display: inline-flex;
  background: #d9c4b345;
  border: 1px solid #fff9;
  padding: 3px;
  border-radius: 11px;
}
.view-switch button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #705947;
  display: flex;
  align-items: center;
  gap: 5px;
  font: inherit;
  font-size: 11px;
  padding: 7px 10px;
  cursor: pointer;
}
.view-switch button[aria-pressed="true"] {
  background: #fff9;
  color: #62452f;
  box-shadow: 0 3px 8px -5px #65432f44;
}
.view-switch .icon {
  width: 14px;
  height: 14px;
}
.board-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.board-filters select,
.projects-tools select,
.task-table select {
  border: 1px solid #fff9;
  background: #fff5;
  border-radius: 9px;
  padding: 7px 9px;
  max-width: 180px;
  font: inherit;
  font-size: 11px;
  color: #725e4e;
}
.archive-filter {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #796557;
  margin-left: 2px;
}
.archive-filter input {
  accent-color: #a47756;
}
#board-result-count {
  margin-left: auto;
  color: #75604f;
  font-size: 11px;
}
[data-module="board"].expanded {
  display: flex;
  flex-direction: column;
}
[data-module="board"].expanded .board-tools { margin-bottom: 12px; }
[data-module="board"].expanded .board-filters { margin-top: 10px; }
[data-module="board"].expanded .board-hint { margin-top: 8px; }
#board-columns {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  align-items: stretch;
  min-height: 180px;
  padding: 2px 2px 8px;
  flex: 1;
}
#board-columns .board-column {
  flex: 1 0 235px;
  border: 0;
  background: #d4c6b633;
  border-radius: 16px;
  padding: 13px;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.board-card-stack { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 4px 3px 20px; }
.board-card-stack .column-empty { margin: 12px 0; }
.kanban-head, .board-quick-add, .wip-notice { flex-shrink: 0; }
.kanban-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.kanban-head h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 12px;
  flex: 1;
  justify-content: flex-start;
  white-space: nowrap;
}
.kanban-head h3 span {
  margin-left: auto;
  font-size: 11px;
}
.kanban-head .icon-button {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
}
.kanban-head .icon-button .icon {
  width: 15px;
  height: 15px;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #bc9c80;
  flex-shrink: 0;
}
[data-color="clay"] .status-dot {
  background: #b57d58;
}
[data-color="rose"] .status-dot {
  background: #b28784;
}
[data-color="sage"] .status-dot {
  background: #839180;
}
[data-color="slate"] .status-dot {
  background: #7d8b99;
}
#board-columns .rich-task {
  padding: 0;
  margin: 0;
  height: 48px;
  background: transparent;
  box-shadow: none;
  border: 0;
  position: relative;
}
#board-columns .task-card-face {
  position: absolute; inset: 0 0 auto;
  display: flex; flex-direction: column;
  min-height: 64px; max-height: 64px; overflow: hidden;
  padding: 13px; border: 1px solid #fff; border-radius: 13px;
  background: #fcf6ef; box-shadow: 0 5px 12px -10px #795c4270;
  transform: translateY(0);
  transition: max-height 180ms cubic-bezier(.22,1,.36,1), transform 180ms cubic-bezier(.22,1,.36,1), box-shadow 180ms;
}
#board-columns .task-card-title { order: -1; flex-shrink: 0; min-height: 32px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#board-columns .task-card-face > :not(.task-card-title) { flex-shrink: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 120ms; }
#board-columns:not(.is-dragging) .rich-task:is(:hover, :has(:focus-visible), :has(.card-status:focus)) { z-index: 20; }
#board-columns:not(.is-dragging) .rich-task:is(:hover, :has(:focus-visible), :has(.card-status:focus)) .task-card-face {
  max-height: var(--peek-height, 320px); overflow-y: auto; overscroll-behavior: contain;
  transform: translateY(var(--peek-offset, -4px));
  box-shadow: 0 14px 25px -13px #795c4270;
}
#board-columns:not(.is-dragging) .rich-task:is(:hover, :has(:focus-visible), :has(.card-status:focus)) .task-card-title { white-space: normal; overflow: visible; }
#board-columns:not(.is-dragging) .rich-task:is(:hover, :has(:focus-visible), :has(.card-status:focus)) .task-card-face > :not(.task-card-title) { opacity: 1; visibility: visible; pointer-events: auto; }
#board-columns .task-card-face .card-topline { margin: 8px 0 0; }
#board-columns .task-card-face .task-description { display: block; -webkit-line-clamp: unset; }
#board-columns.is-dragging .task-card-face { transition: none; }
@media (pointer: coarse) {
  #board-columns .rich-task { height: 56px; }
  #board-columns .task-card-face { padding: 8px 13px; }
  #board-columns .task-card-title { min-height: 44px; }
}
.rich-task.drop-before {
  outline: 2px solid #ba8c68;
  outline-offset: 3px;
}
.rich-task.is-done .task-card-title {
  color: #857666;
}
.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-bottom: 9px;
}
.card-project {
  font-size: 11px;
  color: #77614e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.priority-tag {
  color: #95603f;
  background: #e5c6a854;
  border-radius: 5px;
  font-size: 11px;
  padding: 3px 5px;
  white-space: nowrap;
}
.task-card-title {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: #483b32;
  line-height: 1.65;
  text-align: left;
  cursor: pointer;
  font-weight: 500;
  width: 100%;
  overflow-wrap: anywhere;
}
.task-card-title:hover {
  color: #a36e47;
}
.rich-task .task-description {
  color: #736153;
  font-size: 12px;
  line-height: 1.7;
  margin: 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.task-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin: 9px 0 6px;
}
.task-tags:empty {
  display: none;
}
.task-tags span {
  padding: 3px 6px;
  background: #e6ddd066;
  border-radius: 5px;
  color: #7b6a5a;
  font-size: 11px;
}
.checklist-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 11px;
  color: #82725f;
  font-size: 11px;
}
.checklist-progress > span {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.checklist-progress .icon {
  width: 13px;
  height: 13px;
}
.checklist-progress > div {
  flex: 1;
  background: #e3d8cb;
  height: 3px;
  border-radius: 2px;
}
.checklist-progress i {
  display: block;
  background: #b39679;
  height: 100%;
  border-radius: 2px;
}
.rich-task footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: 15px;
}
.task-deadline {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #8a7766;
}
.task-deadline .icon {
  width: 12px;
  height: 12px;
}
.is-overdue {
  color: #a35240 !important;
}
.task-person {
  display: grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  max-width: 48px;
  padding: 0 4px;
  border: 1px solid #fff;
  background: #d2b79e4d;
  border-radius: 50%;
  font-size: 11px;
  color: #8c694f;
}
.rich-task .card-status {
  margin-top: 10px;
  width: 100%;
  padding: 5px 6px;
  border: 1px solid #d9c6b544;
  border-radius: 6px;
  font: inherit;
  font-size: 11px;
  color: #816d5a;
}
.column-empty {
  color: #8c7967;
  font-size: 11px;
  text-align: center;
  padding: 35px 0;
}
.board-quick-add {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 8px 0;
}
.board-quick-add input {
  border: 1px solid transparent;
  background: transparent;
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 11px;
  color: #715c4a;
  padding: 9px 5px;
  border-radius: 7px;
}
.board-quick-add input:focus {
  background: #fff8;
  border-color: #fff;
  outline: 1px solid #b68e6c;
}
.board-quick-add input::placeholder {
  color: #866f5b;
}
.board-quick-add .icon-button {
  width: 24px;
  height: 24px;
}
.board-quick-add .icon {
  width: 13px;
  height: 13px;
}
.wip-notice {
  color: #9a6745;
  font-size: 11px;
  margin: 10px 0 0;
}
#board-columns .at-limit {
  background: #d7bc9a26;
}
.board-hint {
  font-size: 11px;
  color: #897463;
  margin: 12px 0 0;
}
.task-table-wrap {
  overflow: auto;
  max-width: 100%;
  border-radius: 12px;
  background: #fff4;
}
.task-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
  font-size: 12px;
}
.task-table th {
  font-size: 11px;
  font-weight: 500;
  color: #8b7564;
  background: #e6d4bd44;
  padding: 12px 14px;
}
.task-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #dbcbb63d;
  color: #6b5949;
}
.task-table-title {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: #4e4036;
  max-width: 380px;
  text-align: left;
  white-space: normal;
  cursor: pointer;
  line-height: 1.6;
}
.priority-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b17850;
  margin-right: 7px;
  vertical-align: middle;
}
.subtask-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.subtask-heading h3 {
  font-size: 13px;
  font-weight: 500;
  margin: 0;
}
.subtask-heading span {
  font-size: 11px;
  color: #8a7766;
}
.subtask-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.collab-form .subtask-row input[type="checkbox"],
.collab-form .milestone-editor-row input[type="checkbox"] {
  width: 15px;
  flex: 0 0 15px;
  accent-color: #a77b57;
}
.subtask-row input[type="text"] {
  flex: 1;
  padding: 9px 10px;
}
.subtask-row .icon-button,
.milestone-editor-row .icon-button {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}
.subtask-row .icon,
.milestone-editor-row .icon {
  width: 14px;
  height: 14px;
}
.subtask-add {
  display: flex;
  gap: 8px;
}
.subtask-add input {
  flex: 1;
}
.subtask-add button {
  flex-shrink: 0;
}
.task-conversation {
  margin-top: 25px;
  padding-top: 4px;
  border-top: 1px solid #d8c5b455;
}
.column-editor-head {
  display: grid;
  grid-template-columns: 1fr 72px 155px;
  gap: 8px;
  font-size: 11px;
  color: #826b58;
  margin-bottom: 5px;
}
.column-editor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px 80px 65px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.column-editor-row input,
.column-editor-row select {
  padding: 8px;
  font-size: 12px;
}
.column-row-actions {
  display: flex;
  align-items: center;
}
.column-row-actions .icon-button {
  width: 21px;
  height: 25px;
}
.column-row-actions .icon {
  width: 13px;
  height: 13px;
}
[data-column-up] .icon {
  transform: rotate(-90deg);
}
[data-column-down] .icon {
  transform: rotate(90deg);
}

/* Project portfolio and detail share the same module, preserving in-place expansion. */
.projects-tools {
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
}
.projects-module.expanded .projects-tools {
  display: flex;
}
.projects-tools .work-search {
  flex: 1;
}
.projects-tools .small-button {
  flex-shrink: 0;
}
.project-workspace {
  min-width: 0;
}
.projects-module.expanded .project-workspace {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 28px;
}
.projects-module.expanded #project-list {
  border-right: 1px solid #cdb49b44;
  padding-right: 16px;
}
.portfolio-row {
  text-align: left;
}
.portfolio-row .project-name strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}
.portfolio-row .project-name small {
  display: block;
  font-size: 11px;
  color: #8b7662;
  line-height: 1.7;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 28ch;
}
.portfolio-row .project-icon {
  width: 32px;
  height: 32px;
}
.portfolio-row .project-icon .icon {
  width: 17px;
  height: 17px;
}
.health-badge {
  display: inline-flex;
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 11px;
  white-space: nowrap;
  color: #7b6a57;
  background: #d7c5ae44;
}
.health-badge[data-color="sage"] {
  color: #5b705d;
  background: #b5c0ac3d;
}
.health-badge[data-color="rose"] {
  color: #945d53;
  background: #d6aaa438;
}
.health-badge[data-color="clay"] {
  color: #956441;
  background: #dbb58c3b;
}
.health-badge[data-color="slate"] {
  color: #647480;
  background: #a6b7c12b;
}
.project-create-link {
  font-size: 11px;
  padding: 12px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.project-create-link .icon {
  width: 14px;
  height: 14px;
}
.projects-module.expanded .portfolio-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  padding: 14px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
  min-height: 0;
  background: transparent;
}
.projects-module.expanded .portfolio-row.selected {
  background: #fff8;
}
.projects-module.expanded .portfolio-row .project-name {
  font-size: 13px;
  min-width: 0;
}
.projects-module.expanded .portfolio-row .project-name small {
  max-width: 22ch;
}
.projects-module.expanded .portfolio-row .project-progress {
  grid-column: 2;
  width: 100%;
}
.projects-module.expanded .portfolio-row .project-progress small {
  font-size: 11px;
  margin: 0 0 5px;
}
.projects-module.expanded .portfolio-row .health-badge {
  grid-column: 2;
  justify-self: start;
  font-size: 11px;
}
.projects-module.expanded .project-detail {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.project-detail-head {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}
.project-detail-head > div:first-child {
  flex: 1;
  min-width: 0;
}
.project-detail .project-detail-head h3 {
  font-size: 22px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 10px 0 8px;
  overflow-wrap: anywhere;
}
.project-detail .project-detail-head p {
  margin: 0;
  color: #7c6653;
  font-size: 12px;
  line-height: 1.8;
}
.project-head-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.project-head-actions button {
  font-size: 11px;
  white-space: nowrap;
  padding: 8px 10px;
}
.project-head-actions .icon {
  width: 13px;
  height: 13px;
}
.project-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin: 26px 0 22px;
  padding: 0 0 22px;
  border-bottom: 1px solid #cdb49b44;
}
.project-summary > div {
  min-width: 0;
}
.project-summary > div > span {
  font-size: 11px;
  color: #88725f;
  display: block;
  margin-bottom: 8px;
}
.project-summary strong {
  display: block;
  font-size: 24px;
  font-weight: 400;
  color: #654d3a;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.project-summary strong small {
  font-size: 12px;
  font-weight: 400;
  color: #75604f;
}
.project-summary > div > small {
  font-size: 11px;
  color: #75604f;
  display: block;
  line-height: 1.7;
}
.project-summary strong.summary-person,
.project-summary strong.summary-date {
  font-size: 14px;
  margin: 13px 0 12px;
  overflow-wrap: anywhere;
}
.project-attention {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #e1c8a52e;
  border-radius: 10px;
  font-size: 11px;
  color: #926342;
  margin-bottom: 18px;
}
.project-attention > .icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.project-attention span {
  flex: 1;
}
.project-attention .quiet-button {
  font-size: 11px;
  white-space: nowrap;
}
.project-section-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid #cdb49b44;
  margin-bottom: 22px;
}
.project-section-tabs button {
  padding: 0 0 12px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12px;
  color: #75604f;
  cursor: pointer;
  position: relative;
}
.project-section-tabs button[aria-pressed="true"] {
  color: #62442e;
  font-weight: 500;
}
.project-section-tabs button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #b88b66;
  border-radius: 2px;
}
.project-section-tabs span {
  margin-left: 5px;
  font-size: 11px;
}
.project-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 25px 0 12px;
}
.project-section-heading:first-child {
  margin-top: 0;
}
.project-section-heading h4 {
  font-size: 12px;
  font-weight: 500;
  margin: 0;
  color: #614c3c;
}
.project-section-heading button {
  font-size: 11px;
}
.project-detail .section-empty {
  font-size: 11px;
  color: #8c7965;
  line-height: 1.8;
  padding: 8px 0;
}
.milestone-timeline {
  position: relative;
}
.milestone {
  display: flex;
  gap: 12px;
  position: relative;
  padding: 0 0 20px;
  align-items: flex-start;
}
.milestone:not(:last-child)::after {
  content: "";
  width: 1px;
  position: absolute;
  left: 7px;
  top: 20px;
  bottom: 3px;
  background: #cdb69c6b;
}
.milestone input {
  accent-color: #a17e5c;
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  cursor: pointer;
  flex-shrink: 0;
}
.milestone strong {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: #624e3d;
}
.milestone.complete strong {
  color: #62735d;
}
.milestone small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #75604f;
}
.project-detail .project-description {
  font-size: 12px;
  white-space: pre-wrap;
  color: #796553;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.project-links a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid #cdb49b33;
  color: #8b6545;
  font-size: 12px;
  text-decoration: none;
}
.project-links a:hover {
  color: #64482d;
}
.project-links .icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.project-links span {
  flex: 1;
  overflow-wrap: anywhere;
}
.project-task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #cdb49b33;
  background: none;
  padding: 13px 0;
  text-align: left;
  color: #6b5745;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.project-task-row .icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.project-task-row > span {
  flex: 1;
  line-height: 1.6;
}
.project-task-row small {
  font-size: 11px;
  white-space: nowrap;
}
.project-update-form label {
  font-size: 11px;
  color: #7c6652;
  display: block;
  margin-bottom: 8px;
}
.project-update-form textarea {
  width: 100%;
  min-height: 90px;
  border: 1px solid #fff;
  background: #fff6;
  border-radius: 12px;
  resize: vertical;
  padding: 12px;
  font: inherit;
  font-size: 12px;
  line-height: 1.8;
  color: #66513f;
}
.project-update-form button {
  margin-top: 10px;
}
.project-updates {
  margin-top: 25px;
}
.project-updates article {
  padding: 16px 0;
  border-bottom: 1px solid #cdb49b33;
}
.project-updates article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.project-updates strong {
  font-size: 11px;
  font-weight: 500;
  color: #705641;
}
.project-updates time {
  font-size: 11px;
  color: #75604f;
}
.project-updates p {
  font-size: 12px;
  white-space: pre-wrap;
  line-height: 1.8;
  overflow-wrap: anywhere;
  color: #725c48;
}
.project-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 300px;
  padding: 30px;
}
.project-empty > span {
  color: #bd9675;
}
.project-empty .icon {
  width: 35px;
  height: 35px;
}
.project-empty h3 {
  font-size: 19px;
  font-weight: 500;
  margin: 20px 0 10px;
}
.project-empty p {
  max-width: 35ch;
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.milestone-editor-row {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr) 130px 25px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.milestone-editor-row input {
  padding: 9px;
}
.project-report {
  width: 100%;
  min-height: 350px;
  max-height: 55vh;
  padding: 15px;
  border: 1px solid #fff;
  background: #fff7;
  border-radius: 12px;
  font: inherit;
  font-size: 13px;
  line-height: 1.8;
  color: #65513f;
  resize: vertical;
}
@media (max-width: 1100px) {
  .auth-screen {
    padding: 40px;
    gap: 35px;
    grid-template-columns: minmax(0, 1fr) 390px;
  }
  .orbit-scene {
    width: 350px;
    height: 350px;
  }
  .auth-art {
    height: 380px;
  }
  .auth-intro {
    padding: 0 10px;
  }
  .auth-intro h2 {
    font-size: 20px;
  }
  .projects-module.expanded .project-workspace {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 18px;
  }
  .project-detail-head {
    flex-direction: column;
    gap: 14px;
  }
  .project-head-actions {
    flex-direction: row;
  }
  .projects-module.expanded .portfolio-row .project-name small {
    max-width: 16ch;
  }
}
@media (max-width: 760px) {
  .auth-screen {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 22px 20px 36px;
    min-height: 100svh;
  }
  .auth-showcase {
    width: 100%;
    max-width: 440px;
  }
  .auth-art {
    height: 220px;
  }
  .orbit-scene {
    width: 240px;
    height: 240px;
  }
  .glass-orbit {
    mask: radial-gradient(
      farthest-side,
      transparent calc(100% - 16px),
      #000 calc(100% - 15px)
    );
  }
  .orbit-word {
    font-size: 11px;
    padding: 6px 12px;
  }
  .word-one {
    top: 15%;
    left: 11%;
  }
  .word-two {
    right: 11%;
  }
  .word-three {
    bottom: 9%;
    left: 20%;
  }
  .auth-intro {
    text-align: center;
    padding: 0;
  }
  .auth-intro h2 {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 8px;
  }
  .auth-intro h2 br {
    display: none;
  }
  .auth-intro p {
    font-size: 11px;
    margin: 0 auto;
  }
  .auth-screen .auth-card {
    max-width: 440px;
    padding: 26px;
  }
  .auth-screen .auth-brand {
    margin-bottom: 22px;
  }
  #board-columns .board-column {
    flex: 0 0 265px;
  }
  .board-tools-primary .work-search {
    flex-basis: 100%;
    max-width: none;
  }
  .board-tools-primary {
    gap: 7px;
  }
  .board-tools-primary .small-button {
    font-size: 11px;
    padding: 8px;
  }
  .board-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 3px 1px 8px;
  }
  .board-filters select {
    flex-shrink: 0;
    width: 115px;
    font-size: 11px;
  }
  .archive-filter {
    flex-shrink: 0;
  }
  .board-filters > button {
    flex-shrink: 0;
  }
  .board-filters #board-result-count {
    display: none;
  }
  .view-switch button {
    padding: 6px 8px;
  }
  #board-columns {
    min-height: 180px;
  }
  .board-hint {
    line-height: 1.6;
  }
  .task-table td {
    padding: 11px 10px;
  }
  .work-search input {
    font-size: 12px;
  }
  .projects-module.expanded .projects-tools {
    flex-wrap: wrap;
    gap: 8px;
  }
  .projects-tools .work-search {
    flex-basis: 100%;
  }
  .projects-tools select {
    flex: 1;
  }
  .projects-module.expanded .project-workspace {
    display: block;
  }
  .projects-module.expanded #project-list {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 0 0 15px;
    margin-bottom: 20px;
    border-right: 0;
    border-bottom: 1px solid #cdb49b44;
  }
  .projects-module.expanded .portfolio-row {
    flex: 0 0 200px;
    margin: 0;
    padding: 10px;
  }
  .projects-module.expanded .portfolio-row .project-progress,
  .projects-module.expanded .portfolio-row .health-badge {
    display: none;
  }
  .projects-module.expanded .portfolio-row .project-name small {
    max-width: 17ch;
  }
  .project-detail .project-detail-head h3 {
    font-size: 20px;
  }
  .project-summary {
    gap: 12px;
    margin-top: 22px;
  }
  .project-summary strong.summary-person,
  .project-summary strong.summary-date {
    font-size: 12px;
  }
  .project-summary strong {
    font-size: 22px;
  }
  .project-section-tabs {
    gap: 18px;
  }
  .project-section-tabs button {
    font-size: 11px;
  }
  .project-task-row {
    flex-wrap: wrap;
  }
  .project-task-row small:last-child {
    display: none;
  }
  .column-editor-row {
    grid-template-columns: minmax(0, 1fr) 54px 65px;
  }
  .column-row-actions {
    grid-column: 1/-1;
    justify-content: flex-end;
    margin-top: -5px;
  }
  .column-editor-head {
    grid-template-columns: 1fr 54px 65px;
    font-size: 11px;
  }
  .milestone-editor-row {
    grid-template-columns: 15px minmax(0, 1fr) 25px;
  }
  .milestone-editor-row [type="date"] {
    grid-column: 2;
    font-size: 12px;
  }
  .milestone-editor-row button {
    grid-column: 3;
    grid-row: 1;
  }
  .subtask-add {
    gap: 5px;
  }
  .subtask-add button {
    padding: 8px;
    font-size: 11px;
  }
  .project-attention {
    flex-wrap: wrap;
  }
  .portfolio-row .health-badge {
    display: none;
  }
  .portfolio-row .project-name small {
    max-width: 20ch;
  }
}
@media (prefers-reduced-motion: reduce) {
  .glass-orbit,
  .orbit-node {
    animation: none !important;
  }
  .orbit-scene {
    transform: translate(-50%, -50%);
  }
}

/* Keep essential status copy legible at the compact scale. */
#space-badge,
#sync-status {
  font-size: 11px;
}
.board-tools-primary .small-button {
  font-size: 12px;
}

/* Private content tools extend the existing compact glass workspace. */
.content-tools {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}
.content-tools .work-search {
  flex: 1;
  min-width: 180px;
}
.content-tools select,
.bookmark-toolbar select,
.document-meta select,
.document-meta input {
  border: 1px solid var(--edge);
  background: #fff7;
  border-radius: 9px;
  padding: 9px 10px;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  min-width: 0;
}
.content-tools .small-button {
  font-size: 12px;
}
.content-tools select {
  max-width: 180px;
}
.content-meta {
  color: #75614f;
  font-size: 11px;
  line-height: 1.8;
}
.content-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.content-actions button {
  font-size: 12px;
}
.content-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}
.content-tags span {
  border-radius: 5px;
  padding: 4px 7px;
  background: #b99b7e18;
  color: #725a46;
  font-size: 11px;
}
.capture-row {
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid #c6ac9633;
}
.capture-row > input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.capture-row .inbox-item {
  flex: 1;
  border: 0;
  min-width: 0;
}
.capture-copy {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.capture-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.capture-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: #75614f;
  margin-top: 5px;
}
.inbox-module.expanded .capture-row {
  padding: 7px 0;
}
.inbox-module.expanded .inbox-list {
  margin-bottom: 20px;
}
.organize-items {
  max-height: 55vh;
  overflow: auto;
  padding-right: 5px;
}
.organize-entry {
  border-bottom: 1px solid #c6ac9644;
  padding: 17px 0;
}
.organize-entry:first-child {
  padding-top: 0;
}
.organize-entry .checkbox-label {
  align-items: flex-start;
  line-height: 1.7;
  margin-bottom: 12px;
}
.organize-entry .checkbox-label input {
  margin-top: 4px;
}
.organize-entry .form-grid label {
  font-size: 11px;
}
.library-module.expanded .reading-item {
  display: none;
}
.library-module.expanded .library-content {
  margin-top: 0;
}
.knowledge-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  min-height: 420px;
}
.knowledge-list {
  border-right: 1px solid #c6ac9644;
  padding-right: 16px;
}
.knowledge-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 0;
  background: none;
  padding: 13px 10px;
  margin-bottom: 5px;
  border-radius: 10px;
  width: 100%;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}
.knowledge-row.active {
  background: #fff8;
}
.knowledge-row:hover {
  background: #fff5;
}
.knowledge-row > .icon {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  flex-shrink: 0;
  color: #8a654b;
}
.knowledge-row > span {
  min-width: 0;
}
.knowledge-row strong {
  display: block;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.knowledge-row small {
  display: block;
  font-size: 11px;
  line-height: 1.6;
  color: #75614f;
  margin-top: 6px;
}
.resource-detail {
  min-width: 0;
}
.resource-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.resource-heading > div {
  min-width: 0;
}
.resource-heading > button {
  flex-shrink: 0;
}
.resource-heading h3 {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.5;
  margin: 9px 0 0;
  overflow-wrap: anywhere;
}
.resource-detail h4 {
  font-size: 13px;
  font-weight: 500;
  margin: 24px 0 12px;
}
.source-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #80583a;
  font-size: 12px;
  text-decoration: none;
}
.source-link .icon {
  width: 15px;
  height: 15px;
}
.resource-notes p,
.readable-content {
  font-size: 13px;
  line-height: 1.9;
  color: #594b40;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.resource-notes {
  border-bottom: 1px solid #c6ac9644;
  padding-bottom: 10px;
}
.resource-original {
  margin-top: 26px;
}
.resource-original .project-section-heading h4 {
  margin: 0;
}
.readable-content {
  max-height: 420px;
  overflow: auto;
  padding-right: 10px;
}
.annotation-section {
  border-top: 1px solid #c6ac9644;
  margin-top: 26px;
}
.annotation-section h4 span {
  font-size: 11px;
  margin-left: 5px;
}
.annotation-section textarea {
  min-height: 65px;
}
.annotations article {
  padding: 18px 0;
  border-bottom: 1px solid #c6ac9633;
}
.annotations blockquote {
  margin: 0 0 10px;
  border-left: 1px solid #a78464;
  padding-left: 13px;
  color: #6b594a;
  font-size: 13px;
  white-space: pre-wrap;
  line-height: 1.8;
}
.annotations p {
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.annotations article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.annotations time {
  font-size: 11px;
  color: #75614f;
}
.content-empty {
  padding: 40px 16px;
}
.content-empty h3 {
  font-size: 19px;
  font-weight: 500;
}
.content-empty p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin: 14px 0 24px;
}
.module.expanded .bookmark-toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 4px 0 12px; }
.bookmark-toolbar select { max-width: min(180px, 100%); }
.bookmark-group { max-width: 760px; margin: 16px 0 22px; }
.bookmark-group h3 { margin: 0 0 4px; color: #66503f; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.bookmark-list { max-width: 760px; margin: 0; padding: 0; list-style: none; }
.bookmark-row { display: flex; gap: 8px; align-items: center; border-bottom: 1px solid #c4a78a45; }
.bookmark-link { flex: 1; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 10px; color: inherit; text-decoration: none; border-radius: 10px; }
.bookmark-link:hover { background: #fff8; }
.bookmark-link:focus-visible { outline-offset: -2px; }
.bookmark-link .icon { width: 17px; height: 17px; color: #795a43; }
.bookmark-link :is(strong, small) { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bookmark-link strong { font-size: 14px; font-weight: 500; }
.bookmark-link small { margin-top: 3px; font-size: 12px; color: #705747; }
.bookmark-row > button { min-height: 36px; flex: none; }
#bookmark-editor input::placeholder { color: #74645b; opacity: 1; }
[data-module="bookmarks"] .content-empty { padding-inline: 0; }
[data-module="bookmarks"] .content-empty h3 { font-size: 15px; }
[data-module="docs"].expanded .docs-layout {
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
}
.docs-list {
  border-right: 1px solid #c6ac9644;
  padding-right: 15px;
}
.docs-list button {
  align-items: flex-start;
  margin-bottom: 6px;
  border-radius: 10px;
}
.docs-list button > span {
  min-width: 0;
}
.docs-list button strong {
  font-size: 13px;
  font-weight: 400;
  display: block;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.docs-list button small {
  display: block;
  font-size: 11px;
  color: #75614f;
  margin-top: 4px;
  line-height: 1.6;
}
.docs-list .icon {
  flex-shrink: 0;
  margin-top: 4px;
}
.editor {
  min-width: 0;
}
[data-module="docs"].expanded { scroll-padding-top: 56px; }
[data-module="docs"].expanded .module-head {
  position: sticky;
  top: 0;
  z-index: 3;
  align-items: center;
  padding: 4px 8px;
  margin-inline: -8px;
  border-radius: 12px;
  background: #faf3ecee;
  backdrop-filter: blur(12px);
}
.doc-head-actions,
.doc-edit-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.doc-edit-meta {
  flex: 1 1 330px;
  flex-wrap: wrap;
}
.editor #doc-heading {
  margin: 0 0 7px;
  font-size: 21px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
#doc-heading:hover { cursor: text; }
#doc-summary {
  margin: 0 0 13px;
  color: #75614f;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.editor:has(#doc-heading:not([hidden])) .document-meta {
  padding-bottom: 8px;
}
.editor #doc-title {
  font-size: 21px;
  font-weight: 500;
  border: 0;
  background: transparent;
  padding: 0 0 13px;
  line-height: 1.5;
  border-radius: 0;
  margin: 0;
  width: 100%;
}
.document-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding-bottom: 18px;
}
.document-meta select {
  max-width: 200px;
}
.document-meta input {
  flex: 1;
  min-width: 130px;
}
.document-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border-block: 1px solid #c6ac9644;
  padding: 10px 0;
  margin-bottom: 16px;
}
.document-toolbar .view-switch {
  margin-right: auto;
}
.document-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  min-height: 350px;
}
.document-body[data-view="split"]:has(#doc-content:not([hidden])) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.document-body[data-view="read"] #doc-preview {
  min-height: 250px;
}
.document-body[data-view="read"] #doc-preview:not(:has(.content-empty)) { cursor: text; }
.doc-body-empty { color: #75614f; }
.document-body #doc-editor-host { min-width: 0; }
.document-body #doc-content {
  border: 0;
  background: #fff4;
  border-radius: 10px;
  min-height: 400px;
  height: 50vh;
  max-height: 700px;
  resize: vertical;
  padding: 16px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.85;
  color: #53483e;
  margin: 0;
}
.markdown-body {
  color: #493f36;
  line-height: 1.85;
  font-size: 13px;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 0 4px;
  max-width: 75ch;
}
.markdown-body h1 {
  font-size: 22px;
  line-height: 1.5;
  font-weight: 500;
  margin: 0 0 22px;
}
.markdown-body h2 {
  font-size: 17px;
  font-weight: 500;
  margin: 28px 0 13px;
}
.markdown-body h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 23px 0 10px;
}
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  font-size: 13px;
  font-weight: 500;
  margin: 20px 0 9px;
}
.markdown-body p {
  margin: 0 0 15px;
}
.markdown-body strong {
  font-weight: 600;
}
.markdown-body a,
.wiki-link {
  color: #805637;
  text-underline-offset: 3px;
}
.wiki-link {
  border: 0;
  border-bottom: 1px solid #ae826252;
  padding: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.missing-link {
  color: #8d6c58;
  border-bottom: 1px dashed #ad8b6f;
}
.markdown-body code {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  background: #b899781a;
  padding: 2px 4px;
  border-radius: 4px;
}
.markdown-body pre {
  overflow: auto;
  padding: 15px;
  border-radius: 9px;
  background: #f0e7de;
  white-space: pre;
}
.markdown-body pre code {
  padding: 0;
  background: none;
}
.markdown-body blockquote {
  border-left: 1px solid #b39172;
  margin: 16px 0;
  padding-left: 15px;
  color: #75614f;
}
.markdown-body ul,
.markdown-body ol {
  padding-left: 22px;
  margin: 12px 0;
}
.markdown-body li {
  margin: 6px 0;
}
.markdown-check {
  list-style: none;
  display: flex;
  gap: 7px;
  align-items: flex-start;
  margin-left: -20px !important;
}
.markdown-check > span:first-child {
  flex: none;
}
.markdown-check-text {
  min-width: 0;
  overflow-wrap: anywhere;
}
.markdown-check .icon {
  width: 14px;
  height: 14px;
  margin-top: 5px;
}
.markdown-body hr {
  border: 0;
  border-top: 1px solid #c6ac9644;
  margin: 22px 0;
}
.document-connections {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 15px 0;
  border-top: 1px solid #c6ac9644;
  font-size: 11px;
  color: #75614f;
}
.document-connections .quiet-button {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.document-connections .icon {
  width: 14px;
  height: 14px;
}
.editor-footer {
  gap: 12px;
  flex-wrap: wrap;
}
.editor-footer #doc-word-count {
  margin-left: auto;
  color: #75614f;
  font-size: 11px;
}
.editor-footer button {
  font-size: 11px;
}
.template-options button {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 14px;
  border: 0;
  border-bottom: 1px solid #c6ac9644;
  background: transparent;
  text-align: left;
  padding: 19px 5px;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.template-options button:hover {
  background: #fff5;
}
.template-options span {
  flex: 1;
}
.template-options strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}
.template-options small {
  color: var(--muted);
  font-size: 12px;
}
.template-options .icon {
  width: 19px;
  height: 19px;
}
.version-list details {
  padding: 15px 0;
  border-bottom: 1px solid #c6ac9644;
}
.version-list summary {
  font-size: 12px;
  cursor: pointer;
  line-height: 1.8;
}
.version-list summary small {
  color: var(--muted);
  margin-left: 10px;
}
.version-list pre {
  white-space: pre-wrap;
  font: inherit;
  font-size: 12px;
  line-height: 1.8;
  max-height: 260px;
  overflow: auto;
  padding: 15px;
  background: #fff5;
  border-radius: 10px;
}
.extracted-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 130px;
  align-items: center;
  gap: 9px;
  margin: 10px 0;
}
.extracted-row > input[type="checkbox"] {
  padding: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
.extracted-row > input {
  font-size: 12px;
}
.extracted-tasks {
  max-height: 50vh;
  overflow: auto;
  padding-right: 5px;
}
.review-tools > strong {
  font-weight: 500;
  font-size: 13px;
}
.review-tools #review-export {
  margin-left: auto;
}
.review-tools #review-prev .icon {
  transform: rotate(180deg);
}
[data-module="review"] .review-cards {
  grid-template-columns: repeat(4, 1fr);
}
.review-columns {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 35px;
  margin: 28px 0 32px;
}
.review-columns h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 16px;
}
.review-task {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 0;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #c6ac9633;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: #57483c;
  font: inherit;
  font-size: 12px;
}
.review-task > .icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.review-task span {
  flex: 1;
  min-width: 0;
  line-height: 1.7;
}
.review-task small {
  display: block;
  color: #75614f;
  font-size: 11px;
}
.review-task time {
  color: #75614f;
  white-space: nowrap;
  font-size: 11px;
}
.project-distribution {
  margin-top: 24px;
}
.project-distribution > div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  margin: 13px 0;
}
.project-distribution > div > span {
  width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-distribution > div > div {
  flex: 1;
  height: 5px;
  background: #c6ac962e;
  border-radius: 4px;
}
.project-distribution i {
  display: block;
  height: 100%;
  background: #b48d6d;
  border-radius: 4px;
}
.project-distribution b {
  font-weight: 400;
}
#review-note,
#review-plan {
  width: 100%;
  min-height: 115px;
  resize: vertical;
  background: #fff5;
  border: 1px solid var(--edge);
  border-radius: 12px;
  font: inherit;
  font-size: 13px;
  line-height: 1.85;
  padding: 15px;
  color: var(--ink);
  margin: 0 0 20px;
}
.review-label {
  margin-top: 20px;
  font-size: 13px;
}
#review-legacy {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
}
#review-legacy summary {
  cursor: pointer;
}
#review-legacy p {
  white-space: pre-wrap;
  line-height: 1.8;
}
.command-copy {
  display: block;
  min-width: 0;
  flex: 1;
}
.command-copy small {
  display: block;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
  margin-top: 5px;
}
@media (max-width: 1100px) {
  .knowledge-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 20px;
  }
  [data-module="docs"].expanded .docs-layout {
    grid-template-columns: 175px minmax(0, 1fr);
    gap: 18px;
  }
  .document-body[data-view="split"]:has(#doc-content:not([hidden])) {
    grid-template-columns: minmax(0, 1fr);
  }
  .document-body[data-view="split"] #doc-content {
    height: 260px;
    min-height: 260px;
  }
  .document-body[data-view="split"] #doc-preview {
    padding-top: 20px;
    border-top: 1px solid #c6ac9644;
  }
}
@media (max-width: 760px) {
  .content-tools {
    gap: 8px;
  }
  .content-tools .work-search {
    flex-basis: 100%;
  }
  .content-tools select {
    flex: 1;
    max-width: none;
  }
  .content-tools .small-button {
    font-size: 12px;
    padding: 9px 11px;
  }
  .knowledge-layout {
    display: block;
  }
  .knowledge-list {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    border-right: 0;
    border-bottom: 1px solid #c6ac9644;
    padding: 0 0 14px;
    margin-bottom: 20px;
  }
  .knowledge-row {
    flex: 0 0 210px;
    margin: 0;
  }
  .knowledge-row strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .resource-heading h3 {
    font-size: 19px;
  }
  .resource-heading {
    gap: 10px;
  }
  .content-actions {
    gap: 7px;
  }
  .resource-detail h4 {
    margin-top: 20px;
  }
  .readable-content {
    max-height: 350px;
  }
  [data-module="docs"].expanded .docs-layout {
    display: block;
  }
  .docs-list {
    border-right: 0;
    border-bottom: 1px solid #c6ac9644;
    padding: 0 0 15px;
    margin-bottom: 20px;
  }
  .docs-list button {
    min-width: 170px;
    max-width: 230px;
    padding: 10px;
    flex: 0 0 auto;
  }
  .editor #doc-title {
    font-size: 20px;
  }
  .document-meta {
    gap: 7px;
  }
  .document-meta select {
    flex: 1;
    max-width: none;
  }
  .document-meta input {
    flex-basis: 100%;
    order: 1;
  }
  .document-toolbar {
    gap: 5px;
  }
  .document-toolbar .view-switch {
    margin-right: 5px;
  }
  .document-body {
    min-height: 300px;
  }
  .document-body #doc-content {
    min-height: 320px;
    padding: 13px;
  }
  .markdown-body {
    font-size: 13px;
  }
  .markdown-body h1 {
    font-size: 20px;
  }
  .editor-footer #doc-word-count {
    margin-left: 0;
  }
  .editor-footer button {
    margin-left: auto;
  }
  .review-columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  [data-module="review"] .review-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .review-tools {
    gap: 5px;
  }
  .review-tools > strong {
    font-size: 12px;
  }
  .review-tools #review-export {
    margin-left: 0;
  }
  .extracted-row {
    grid-template-columns: 16px minmax(0, 1fr);
  }
  .extracted-row [type="date"] {
    grid-column: 2;
  }
  .capture-row {
    gap: 7px;
  }
  .capture-row .inbox-item {
    padding: 10px 0;
    gap: 8px;
  }
}

.library-module.expanded .library-content {
  max-width: none;
  width: 100%;
  border-top: 0;
  padding-top: 0;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap !important;
  border: 0 !important;
}
[data-module="docs"].expanded,
[data-module="library"].expanded {
  overflow-anchor: none;
}

.module.expanded .content-tools {
  display: flex;
}
[data-module="review"] .review-cards {
  display: grid;
  gap: 20px;
}
[data-module="review"] .review-cards small,
.module.expanded .capture-row .tag {
  font-size: 11px;
}

/* Action center extends the approved glass surfaces with compact working rows. */
.assistant-panel { width: 540px; padding: 24px; }
.assistant-panel h2 { font-size: 18px; font-weight: 500; }
.action-scope { margin: 0 0 18px; font-size: 12px; color: #735949; }
.action-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 4px; border-radius: 15px; background: #ddc4b452; }
.action-tabs button { padding: 10px 4px; border-radius: 11px; font-size: 12px; color: #604b3e; transition: background .18s, box-shadow .18s; }
.action-tabs button[aria-pressed="true"] { background: #fffdf5; color: #382c25; box-shadow: 0 3px 8px #78513a12; }
.action-tabs button:hover { background: #fff9; }
.assistant-messages { padding: 24px 2px 6px; min-height: 0; overscroll-behavior: contain; }
.assistant-panel form[hidden], .plan-choice[hidden], .daily-plan-strip[hidden] { display: none; }
.action-heading { margin: 0 0 24px; }
.action-heading h3, .action-empty h3 { font-size: 16px; font-weight: 500; margin: 0 0 9px; }
.action-heading p, .action-empty p, .risk-list p, .evidence-list p { font-size: 12px; line-height: 1.8; color: #705747; margin: 0; overflow-wrap: anywhere; }
.action-empty { padding: 35px 16px; text-align: center; }
.action-empty > .icon { width: 26px; height: 26px; color: #876348; margin: 0 auto 18px; }
.action-empty button { margin-top: 18px; }
.action-hint, .action-footer small { font-size: 12px; line-height: 1.7; color: #705747; }
.action-loading { padding: 40px 10px; color: #705747; font-size: 13px; }
.action-error { padding: 12px; background: #f1dfd6; color: #813f33; font-size: 12px; line-height: 1.8; border-radius: 12px; margin-bottom: 18px; }
.action-error button { display: block; color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.plan-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.plan-controls label { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.assistant-panel input[type="number"] { width: 64px; flex: none; border: 1px solid #cbb4a3; border-radius: 8px; padding: 8px 5px; background: #fff8; font-size: 13px; font-variant-numeric: tabular-nums; }
.assistant-panel input[type="checkbox"] { width: 16px; height: 16px; flex: none; accent-color: #936443; }
.plan-budget { font-size: 12px; margin-bottom: 20px; font-variant-numeric: tabular-nums; color: #705747; }
.plan-budget div { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.plan-budget strong, .plan-summary strong { font-weight: 500; color: #443328; }
.plan-budget progress { appearance: none; display: block; width: 100%; height: 6px; border: 0; border-radius: 8px; background: #d9c4b5; overflow: hidden; }
.plan-budget progress::-webkit-progress-bar { background: #dfcfc2; }
.plan-budget progress::-webkit-progress-value { background: #af7e5a; border-radius: 8px; transition: width .2s; }
.plan-budget.over-budget { color: #903d2d; }
.over-budget progress::-webkit-progress-value { background: #a15c4d; }
.plan-filter { display: flex; align-items: center; gap: 14px; font-size: 12px; color: #705747; margin: 0 0 8px; }
.plan-filter input { background: #fff8; border: 1px solid #d5bfae; border-radius: 10px; padding: 9px; }
.plan-choice { display: flex; gap: 12px; align-items: center; padding: 15px 0; border-bottom: 1px solid #c6aa9438; }
.plan-choice > label:first-child { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; cursor: pointer; }
.plan-choice strong, .plan-line strong { display: block; font-size: 13px; font-weight: 400; line-height: 1.65; overflow-wrap: anywhere; }
.plan-choice small, .plan-line small { display: block; margin-top: 5px; font-size: 11px; line-height: 1.6; color: #785c49; }
.estimate { display: flex; gap: 5px; align-items: center; color: #705747; font-size: 11px; flex: none; }
.estimate input:disabled { opacity: .48; }
.action-footer { position: sticky; bottom: -6px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 17px 0 6px; margin-top: 18px; background: #f9f2ea; }
.plan-summary { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 16px 0; border-bottom: 1px solid #c6aa9438; }
.plan-list, .risk-list, .evidence-list, .action-history { margin: 0; padding: 0; list-style: none; }
.plan-line { display: flex; gap: 12px; align-items: center; padding: 18px 0; border-bottom: 1px solid #c6aa9438; }
.plan-line > div { flex: 1; min-width: 0; }
.plan-order { color: #8d6d56; font-size: 12px; font-variant-numeric: tabular-nums; }
.plan-minutes { font-size: 11px; color: #705747; white-space: nowrap; }
.saved-plan { margin-bottom: 20px; font-size: 12px; }
.saved-plan summary { cursor: pointer; padding: 12px 0; color: #705747; }
.risk-list li, .evidence-list li { padding: 20px 0; border-bottom: 1px solid #c6aa9438; }
.risk-list li:first-child, .evidence-list li:first-child { padding-top: 0; }
.risk-kind, .source-type { font-size: 11px; color: #785c49; display: inline-block; margin-bottom: 7px; }
.risk-kind[data-color="rose"] { color: #943e32; }
.source-title { display: flex; align-items: center; gap: 10px; text-align: left; font-size: 14px; font-weight: 400; line-height: 1.65; width: 100%; margin-bottom: 8px; color: #342921; overflow-wrap: anywhere; }
.source-title .icon { width: 15px; height: 15px; flex: none; margin-left: auto; color: #886348; }
.source-title:hover { color: #8b5731; }
.evidence-list mark { background: #edc6a6; color: #3c2b21; border-radius: 3px; padding: 0 1px; }
.action-history { margin-top: 20px; }
.action-history li { display: flex; gap: 10px; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid #c6aa9438; font-size: 12px; }
.action-history strong { font-weight: 400; color: #705747; }
.action-history time { color: #705747; font-variant-numeric: tabular-nums; }
.daily-plan-strip { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 15px 20px; margin-bottom: 20px; border-radius: 20px; }
.daily-plan-strip > div { display: flex; gap: 12px; align-items: center; }
.daily-plan-strip strong { display: block; font-weight: 500; font-size: 13px; }
.daily-plan-strip small { display: block; font-size: 11px; color: #705747; margin-top: 5px; }
.daily-plan-strip > div > .icon { width: 22px; color: #916549; }
@media (max-width: 600px) {
  .assistant-panel { inset: 10px; width: auto; max-width: none; padding: 18px 14px; border-radius: 22px; }
  .action-scope { font-size: 11px; margin-bottom: 14px; }
  .action-tabs button { font-size: 11px; padding: 11px 2px; }
  .plan-controls { gap: 6px; }
  .plan-controls label { gap: 5px; font-size: 11px; }
  .plan-controls button { font-size: 11px; padding: 6px; }
  .plan-choice { gap: 8px; }
  .plan-choice > label:first-child { gap: 8px; }
  .estimate { gap: 4px; }
  .estimate input[type="number"] { width: 48px; }
  .daily-plan-strip { align-items: flex-start; flex-direction: column; padding: 14px; }
  .daily-plan-actions { align-self: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  .action-tabs button, .plan-budget progress::-webkit-progress-value { transition: none; }
}

/* Developer desk reuses private document and resource records. */
.team-mode [data-nav="dev"], .team-mode [data-module="dev"], .team-mode [data-thumb="dev"] { display: none !important; }
[data-module="dev"] h2 { font-size: 21px; font-weight: 500; }
.desk-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
.desk-tabs { display: flex; gap: 4px; background: #d7bcaa45; border-radius: 14px; padding: 4px; }
.desk-tabs button { padding: 10px 18px; color: #6c5140; border-radius: 11px; font-size: 13px; }
.desk-tabs button[aria-pressed="true"] { background: #fffaf3; color: #382c24; box-shadow: 0 3px 9px #78513a12; }
.desk-tabs button:hover { background: #fff9; }
.desk-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.desk-filters { padding-bottom: 18px; border-bottom: 1px solid #bfa48f45; }
.desk-filters > input[type="date"] { padding: 9px 10px; border: 1px solid #c9b09c; border-radius: 10px; background: #fff6; font-size: 12px; color: #5f4838; }
.desk-filters [hidden] { display: none; }
.desk-workspace { display: grid; grid-template-columns: minmax(220px, .85fr) minmax(0, 2fr); gap: 30px; min-height: 480px; margin-top: 12px; }
.desk-list { border-right: 1px solid #bfa48f45; padding-right: 22px; min-width: 0; }
.desk-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 18px; font-size: 12px; color: #6d5141; }
.desk-record { display: block; width: 100%; text-align: left; padding: 16px 14px; margin-bottom: 6px; border-radius: 13px; }
.desk-record:hover { background: #fff5; }
.desk-record.selected { background: #fff9; }
.desk-record small, .desk-record span { display: block; color: #725542; font-size: 11px; line-height: 1.65; }
.desk-record strong { display: block; font-size: 14px; font-weight: 400; line-height: 1.6; margin: 6px 0; overflow-wrap: anywhere; }
.desk-detail { min-width: 0; padding-top: 12px; }
.desk-log-entry + .desk-log-entry { padding-top: 28px; margin-top: 32px; border-top: 1px solid #bfa48f66; }
.desk-detail .desk-log-more { margin-top: 28px; overflow-anchor: none; }
.desk-log-more + .desk-log-entry { margin-top: 18px; }
.desk-log-workspace mark { background: #efd0ac; color: #49301f; border-radius: 3px; }
.desk-log-workspace mark.desk-current-match { background: #965731; color: #fffaf5; }
.desk-search-reader { min-width: 0; }
.desk-match-bar {
  position: sticky;
  top: 6px;
  z-index: 2;
  min-height: 38px;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}
.desk-match-controls {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid #fff;
  border-radius: 12px;
  background: #fcf1e5;
  box-shadow: 0 3px 10px #6c51401a;
  pointer-events: auto;
}
.desk-match-controls [hidden] { display: none; }
.desk-match-count { padding-inline: 7px; font-size: 12px; font-variant-numeric: tabular-nums; color: #6c5140; }
.desk-match-controls .icon-button { border-radius: 8px; color: #6c5140; }
.desk-match-controls .icon-button:hover:enabled { background: #fff; }
.desk-match-controls .icon-button:disabled { opacity: .38; cursor: default; }
.desk-match-controls [data-desk="previous-match"] .icon { transform: rotate(180deg); }
@media (min-width: 601px) {
  .desk-log-workspace .desk-list {
    position: sticky;
    top: 0;
    align-self: start;
    max-height: min(68dvh, 700px);
    overflow: auto;
    scrollbar-gutter: stable;
  }
}
.desk-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 20px; }
.desk-detail-head h3, .handoff-layout h3 { font-size: 19px; font-weight: 500; line-height: 1.6; margin: 0 0 7px; overflow-wrap: anywhere; }
.desk-detail-head p { font-size: 12px; color: #715340; line-height: 1.7; margin: 0; }
.desk-detail-head > button { white-space: nowrap; }
.desk-detail-head.desk-log-head { flex-wrap: nowrap; gap: 12px; }
.desk-log-head > div:first-child { min-width: 0; flex: 1; }
.desk-log-actions { display: flex; flex-shrink: 0; align-items: center; gap: 5px; }
.desk-log-actions .icon-button { border-radius: 8px; color: #6c5140; }
.desk-log-actions .icon-button .icon { width: 16px; height: 16px; }
.desk-log-actions .icon-button:hover { background: #fff9; }
.desk-meta { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 0 0 14px; font-size: 12px; overflow-wrap: anywhere; }
.desk-log-entry .desk-meta:empty { display: none; }
.desk-log-entry .desk-prose { cursor: text; }
.desk-log-editing .desk-log-head {
  position: sticky;
  top: 0;
  z-index: 3;
  align-items: center;
  padding: 6px 0;
  margin: 0;
  border-radius: 12px;
  background: #faf3ecee;
  backdrop-filter: blur(12px);
}
.desk-log-editing .desk-log-actions .primary { background: #8d5b3d; color: #fffaf5; }
.desk-log-editing .desk-log-actions .primary:hover { background: #75492f; }
.desk-log-edit-options { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.desk-log-edit-options details[open] { flex-basis: 100%; }
.devlog-meta > .collab-form { margin-block: 10px; }
#desk-content:has(.desk-log-editing) .desk-match-bar { visibility: hidden; }
.desk-meta span { display: inline-flex; flex-wrap: wrap; gap: 8px; color: #4a382d; }
.desk-meta small { color: #725542; font-size: inherit; }
.desk-prose { margin-top: 26px; padding: 0; background: none; }
.desk-prose h2 { font-size: 17px; margin-top: 26px; }
.desk-prose p, .desk-prose li { font-size: 13px; line-height: 1.85; }
.desk-related { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin-top: 30px; padding-top: 18px; border-top: 1px solid #bfa48f45; }
.desk-related h4, .learning-section h4 { font-size: 13px; font-weight: 500; margin: 0 0 12px; }
.desk-related button { text-align: left; overflow-wrap: anywhere; }
.desk-welcome { max-width: 440px; padding: 65px 20px; margin: 0 auto; text-align: center; }
.desk-welcome > .icon { width: 28px; height: 28px; color: #926748; margin-bottom: 20px; }
.desk-welcome h3 { font-size: 19px; font-weight: 500; line-height: 1.6; }
.desk-welcome p, .desk-empty { font-size: 13px; color: #715340; line-height: 1.9; }
.desk-welcome button { margin-top: 20px; }
.desk-empty { padding: 24px 12px; }
.desk-help { font-size: 12px; line-height: 1.85; color: #715340; margin: 8px 0 14px; }
.devlog-body { min-height: 310px; line-height: 1.8; }
#utility-dialog:has(#devlog-editor) { width: min(680px, calc(100vw - 24px)); }
#devlog-editor { grid-template-columns: minmax(0, 1fr); }
.devlog-meta summary { color: #634a39; font-size: 13px; cursor: pointer; }
.devlog-meta > .form-grid { margin-top: 10px; }
.devlog-versions > .quiet-button { margin-top: 8px; }
.log-body-field { min-width: 0; }
.log-body-field > #log-body-label { color: #74645b; font-size: 12px; margin-bottom: 8px; }
.log-editor-modes, .log-editor-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.log-editor-modes { margin-bottom: 8px; }
.log-editor-toolbar { padding: 7px; border: 1px solid #fff; border-bottom: 0; border-radius: 12px 12px 0 0; background: #ecdfd3; }
.log-editor-toolbar button, .log-editor-modes button { min-height: 36px; border-radius: 8px; width: auto; padding: 5px 9px; font-size: 12px; color: #634a39; }
.log-editor-modes button[aria-pressed="true"], .log-editor-toolbar button[aria-pressed="true"] { background: #fff9f3; }
.log-editor-toolbar button:hover, .log-editor-modes button:hover { background: #fff8; }
.doc-format-group { display: flex; align-items: center; gap: 2px; }
.doc-format-group:not(:last-child) { border-right: 1px solid #b9987f50; padding-right: 5px; }
[data-module="docs"] .doc-icon-button,
#devlog-editor .doc-icon-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
}
[data-module="docs"] .doc-icon-button .icon,
#devlog-editor .doc-icon-button .icon { width: 17px; height: 17px; }
.doc-icon-button:focus-visible { outline: 2px solid #95613d; outline-offset: 2px; }
.document-meta .doc-icon-button[aria-pressed="true"] { background: #ecdfd3; }
@media (pointer: coarse) {
  [data-module="docs"] .doc-icon-button,
  #devlog-editor .doc-icon-button {
    width: 42px;
    height: 42px;
    min-height: 42px;
  }
}
.doc-table-tools {
  position: sticky;
  top: 46px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px 7px;
  border-inline: 1px solid #fff;
  background: #f7ebe1;
}
.doc-table-tools button {
  border-radius: 7px;
  color: #634a39;
}
.doc-table-tools button:hover:not(:disabled) { background: #fff9f3; }
.doc-table-tools button:disabled { opacity: .45; }
[data-module="docs"].expanded:has(#doc-editor-host:not([hidden]) .doc-table-tools:not([hidden])) {
  scroll-padding-top: 100px;
}
.log-image-status {
  margin: 0;
  padding: 6px 12px;
  color: #634a39;
  background: #f7ebe1;
  font-size: 12px;
}
.log-image-status:empty { display: none; }
.markdown-body .markdown-table {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-block: 12px;
  overflow-x: auto;
  border-collapse: collapse;
}
.markdown-table :is(th, td) {
  min-width: 76px;
  padding: 7px 12px;
  border: 1px solid #d5bda8;
  text-align: left;
  vertical-align: top;
}
.markdown-table th { font-weight: 600; background: #ecdfd3; }
.markdown-table td { background: #fffaf5; }
.markdown-table [data-align="right"] { text-align: right; }
.markdown-table [data-align="center"] { text-align: center; }
.markdown-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  vertical-align: middle;
}
.markdown-table img { max-width: min(240px, 100%); }
.doc-image-zoom {
  position: relative;
  display: inline-block;
  max-width: 100%;
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 8px;
  line-height: 0;
  cursor: zoom-in;
}
.doc-image-zoom img { display: block; }
.doc-image-zoom-icon {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #35271ed9;
  color: #fff9f3;
  pointer-events: none;
}
.doc-image-zoom-icon .icon { width: 14px; height: 14px; }
.doc-image-zoom:is(:hover, :focus-visible) .doc-image-zoom-icon { background: #3b291e; }
#utility-dialog:has(.doc-image-full) {
  width: max-content;
  max-width: min(1280px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 12px 16px 16px;
}
#utility-dialog:has(.doc-image-full) > header { margin-bottom: 8px; }
#utility-dialog:has(.doc-image-full) h2 { font-size: 15px; font-weight: 500; }
#utility-dialog:has(.doc-image-full)::backdrop { background: #302218b5; }
.doc-image-full {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 100px);
  margin: auto;
  object-fit: contain;
  border-radius: 8px;
}
.log-body-field { position: relative; }
.log-rich-body img { cursor: pointer; }
.log-rich-body img:hover { outline: 1px solid #95613d; outline-offset: 1px; }
.doc-image-controls {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  border-radius: 8px;
  outline: 2px solid #95613d;
  outline-offset: 1px;
}
.doc-image-controls :is(button, [role="slider"]) { pointer-events: auto; }
.doc-image-delete {
  position: absolute;
  top: -14px;
  right: 0;
  min-height: 30px;
  padding-inline: 8px;
  border: 1px solid #d8b8a0;
  border-radius: 8px;
  background: #fff9f3;
  color: #733d28;
  white-space: nowrap;
  font-size: 12px;
}
.doc-image-delete:hover { background: #f6e5da; }
.doc-image-resize {
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  touch-action: none;
  cursor: nwse-resize;
}
.doc-image-resize::after {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid #fff9f3;
  border-radius: 4px;
  background: #95613d;
}
[data-log-format="redo"] .icon { transform: scaleX(-1); }
.doc-link-editor {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  background: #f8ede4;
  border: 1px solid #fff;
}
.doc-link-editor label { flex: 1 1 125px; color: #634a39; font-size: 12px; }
.doc-link-editor label:nth-child(2) { flex-basis: 190px; }
.doc-link-editor input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid #c9b09c;
  border-radius: 8px;
  background: #fff9f4;
  color: inherit;
  font: inherit;
}
.log-rich-body { min-height: 270px; max-width: none; background: #fff9f4; border: 1px solid #fff; border-radius: 0 0 12px 12px; padding: 14px 16px; }
#doc-rich-body { min-height: max(300px, 45vh); }
.log-rich-body > :first-child { margin-top: 0; }
.log-rich-body > :last-child { margin-bottom: 0; }
.log-rich-body li:has(> .log-task-box) { list-style: none; }
.log-task-box { display: inline-block; margin: 0 7px 0 -21px; }
.log-rich-body .log-task-box input { width: 15px; height: 15px; margin: 0; padding: 0; vertical-align: -2px; accent-color: #946440; cursor: pointer; }
#devlog-editor textarea.devlog-body { display: block; resize: vertical; }
.desk-parse-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #715340; font-size: 12px; }
.learning-phase { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; font-size: 12px; color: #715340; }
.learning-phase label { display: flex; align-items: center; gap: 12px; }
.learning-phase select { padding: 8px 12px; background: #fff8; border: 1px solid #c9b09c; border-radius: 10px; color: #513c2e; font-size: 12px; }
.learning-section { margin: 26px 0; }
.learning-section p { white-space: pre-wrap; overflow-wrap: anywhere; color: #574132; font-size: 13px; line-height: 1.85; margin: 0; }
.learning-original { max-height: 340px; overflow: auto; padding-right: 12px; }
.log-import-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) 140px; gap: 12px; align-items: center; border-bottom: 1px solid #c9b09c55; padding: 16px 0; }
.log-import-row details { grid-column: 2 / -1; font-size: 12px; color: #715340; }
.log-import-row pre { max-height: 180px; overflow: auto; white-space: pre-wrap; font: inherit; }
.handoff-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; margin-top: 26px; }
.handoff-input, .handoff-output { min-width: 0; }
.handoff-input > label, .handoff-input .form-grid label { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; font-size: 12px; color: #5f4737; }
.handoff-input textarea, #handoff-preview { padding: 12px; border: 1px solid #c9b09c; border-radius: 12px; background: #fff7; color: #392d24; width: 100%; font: inherit; font-size: 13px; line-height: 1.7; resize: vertical; min-height: 100px; }
.handoff-choices { border: 0; padding: 12px 0 18px; margin: 18px 0 0; border-bottom: 1px solid #bfa48f45; max-height: 210px; overflow: auto; }
.handoff-choices legend { font-size: 13px; font-weight: 500; padding: 0; }
.handoff-choices label { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 12px; line-height: 1.7; }
.handoff-choices label span { overflow-wrap: anywhere; }
.handoff-choices input { margin-top: 3px; accent-color: #946644; }
.handoff-choices p { font-size: 12px; color: #715340; }
#handoff-preview { min-height: 540px; margin: 10px 0; font-size: 12px; }
#handoff-size { font-size: 11px; color: #715340; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .desk-topline { align-items: flex-start; flex-direction: column; }
  .desk-workspace { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
  .desk-list { padding-right: 14px; }
  .handoff-layout { gap: 20px; }
}
@media (max-width: 600px) {
  .desk-tabs { width: 100%; }
  .desk-tabs button { flex: 1; padding: 10px 8px; font-size: 12px; }
  .desk-topline { gap: 14px; }
  .desk-actions { width: 100%; }
  .desk-actions > button { flex: 1; }
  .desk-filters { gap: 8px; }
  .desk-filters .work-search { flex-basis: 100%; }
  .desk-filters > select, .desk-filters > input[type="date"] { max-width: 100%; flex: 1; min-width: 0; }
  .desk-workspace { display: flex; flex-direction: column; gap: 20px; }
  .desk-list { border-right: 0; border-bottom: 1px solid #bfa48f45; padding-right: 0; padding-bottom: 12px; max-height: 260px; overflow: auto; }
  .desk-list-heading { margin-bottom: 10px; }
  .desk-record { padding: 10px 12px; }
  .desk-detail-head { flex-wrap: wrap; gap: 12px; }
  .desk-detail-head h3, .handoff-layout h3 { font-size: 18px; }
  .desk-welcome { padding: 25px 10px; }
  .learning-phase { flex-wrap: wrap; }
  .handoff-layout { grid-template-columns: 1fr; }
  #handoff-preview { min-height: 340px; }
  .log-import-row { grid-template-columns: 20px minmax(0, 1fr); }
  .log-import-row > label:last-of-type { grid-column: 2; }
}

/* News and saved opportunities use the existing compact reading surface. */
.opportunity-toolbar {display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:8px 0 20px}
.opportunity-status {font-size:12px;color:var(--muted,#79675b);line-height:1.8;margin:14px 0}
.opportunity-status span {display:block}
.news-list {display:grid;gap:0}
.news-row {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:22px;padding:22px 0;border-bottom:1px solid #c99e7b30}
.news-row h3 {font-size:16px;font-weight:500;line-height:1.6;margin:7px 0;overflow-wrap:anywhere}
.news-row h3 a {color:inherit;text-decoration:none}
.news-row h3 a:hover {text-decoration:underline;text-underline-offset:4px}
.news-row p {font-size:13px;line-height:1.9;max-width:80ch;margin:0;white-space:normal;overflow-wrap:anywhere}
.news-row>.content-actions {align-content:start;justify-content:flex-end;max-width:150px}
#opportunity-form textarea {min-height:70px}
.team-mode [data-nav="opportunities"],.team-mode [data-module="opportunities"] {display:none!important}
@media(max-width:760px){.news-row{grid-template-columns:1fr;gap:12px;padding:18px 0}.news-row>.content-actions{max-width:none;justify-content:flex-start}.opportunity-toolbar .desk-tabs{width:100%}.opportunity-toolbar .content-actions{margin:0}.news-row h3{font-size:15px}#reminders-button{font-size:12px;padding:8px}}

.team-mode [data-thumb="opportunities"]{display:none!important}
.news-row .lead-suggestion{margin-top:14px;color:#70513b;font-size:13px;line-height:1.8}.lead-suggestion strong{font-weight:500}

/* Task files and history share the existing task detail hierarchy. */
.task-extras{display:grid;gap:26px;margin-top:28px;padding-top:24px;border-top:1px solid #c99e7b30}
.task-attachment-section h3,.task-history>summary{font-size:15px;font-weight:500;color:#443b35}
.attachment-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 0;border-bottom:1px solid #c99e7b24}
.attachment-row>div:first-child{min-width:0}.attachment-row strong{display:block;font-size:13px;font-weight:400;overflow-wrap:anywhere}.attachment-row small{display:block;margin-top:4px}
.attachment-row .content-actions{margin:0;gap:10px;flex-shrink:0}
.attachment-retry-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:12px;margin:10px 0;overflow-wrap:anywhere}
.attachment-preview{margin-top:15px;padding:14px;border:1px solid #fff9;border-radius:14px;background:#fff4}
.task-attachment-section label:focus-within{outline:2px solid #946440;outline-offset:3px}
.task-history>summary{cursor:pointer;padding:6px 0}.task-history-content{margin-top:16px}.task-history-list{list-style:none;padding:0;margin:0}
.task-history-list>li{padding:14px 0;border-bottom:1px solid #c99e7b24}.task-history-heading{display:flex;gap:6px 10px;flex-wrap:wrap;font-size:12px;line-height:1.8}.task-history-heading strong{font-weight:500}.task-history-heading time{color:#79675b;margin-left:auto;font-size:11px}
.task-history-change>summary{font-size:12px;color:#805b40;cursor:pointer;margin-top:9px}.history-field h4{font-size:12px;font-weight:500;margin:14px 0 8px}.history-values{display:grid;grid-template-columns:1fr 1fr;gap:10px}.history-values>div{min-width:0;background:#fff4;border-radius:10px;padding:10px}.history-values small{color:#79675b;font-size:11px}.history-values pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:220px;overflow:auto;font:inherit;font-size:12px;line-height:1.8;margin:6px 0 0}
.task-live-notice{padding:10px 12px;background:#e4c6ac38;border-radius:10px;font-size:12px;color:#70513b;line-height:1.8}
@media(max-width:760px){.attachment-row{align-items:flex-start;flex-direction:column;gap:8px}.attachment-row .content-actions{justify-content:flex-start}.history-values{grid-template-columns:1fr}.task-history-heading time{margin-left:0;flex-basis:100%}.task-extras{gap:20px}}
@media(max-width:760px){.task-extras button,.task-extras label.small-button{min-height:44px;min-width:44px}.task-extras summary{min-height:44px;align-content:center}.attachment-row .content-actions{gap:12px}}

/* Today: one header, one toolbar, then the work itself. */
.today-header { margin-bottom: 16px; }
.today-header .topbar { height: auto; min-height: 40px; gap: 16px; }
.today-header .greeting {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: baseline;
  gap: 4px 16px;
  min-width: 0;
  min-height: 0;
  margin: 0;
}
.today-header #page-title { font-size: 24px; line-height: 1.4; font-weight: 500; }
.today-header #page-subtitle { margin: 0; font-size: 12px; white-space: nowrap; }
.today-header .breadcrumb, .today-header .top-avatar { display: none; }
.today-header .top-actions { flex-shrink: 0; gap: 8px; }
.today-header .search-trigger { min-width: 180px; }
.today-header .collab-bar { flex-wrap: wrap; gap: 8px 12px; margin: 4px 0 0; min-height: 32px; }
.today-header #space-badge { padding: 0; border: 0; background: none; color: #6c5544; font-size: 12px; }
.today-header .sync-status { color: #6c5544; font-size: 11px; }
.today-header .sync-status.has-error { color: #a24536; }
.today-header #team-manage { min-height: 32px; font-size: 12px; }
.today-tools { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.today-tools .capture { flex: 1; min-width: 0; min-height: 48px; margin: 0; padding: 6px 8px; gap: 8px; }
.today-tools .capture-plus, .today-tools .capture-submit { width: 36px; height: 36px; align-self: center; }
.today-tools .capture input { padding: 0; font-size: 13px; }
.today-tools .filters { flex-wrap: wrap; }
.daily-plan-strip { min-height: 40px; margin: -4px 0 16px; padding: 0; gap: 12px; border-radius: 0; }
.daily-plan-strip .daily-plan-summary { min-width: 0; gap: 8px; }
.daily-plan-summary > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.daily-plan-summary strong { font-size: 13px; }
.daily-plan-summary small { margin: 0; font-size: 12px; }
.daily-plan-summary > .icon { flex-shrink: 0; width: 18px; height: 18px; }
.daily-plan-actions { flex-shrink: 0; gap: 8px; }
.daily-plan-actions button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; white-space: nowrap; }
.daily-plan-actions .icon { width: 14px; height: 14px; }
@media (max-width: 1100px) {
  .today-header .search-trigger { min-width: 36px; padding: 0 10px; }
  .today-header .search-trigger > span:not(:first-child), .today-header .search-trigger kbd { display: none; }
}
@media (max-width: 720px) {
  .today-header { margin-bottom: 12px; }
  .today-header .topbar { align-items: flex-start; gap: 12px; }
  .today-header .greeting { flex-direction: column; gap: 2px; }
  .today-header #page-title { font-size: 22px; }
  .today-header .top-actions { gap: 8px; }
  .today-header .search-trigger, .today-header .assistant-trigger { height: 40px; }
  .today-header .collab-bar { margin-top: 8px; gap: 8px; }
  .today-header #team-manage { margin-left: auto; min-height: 36px; }
  .today-header .sync-status:not(.has-error) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .today-header .sync-status.has-error { flex-basis: 100%; margin: 0; }
  .today-tools { flex-direction: column; align-items: stretch; gap: 8px; margin-bottom: 12px; }
  .today-tools .capture { flex: none; min-height: 52px; }
  .today-tools .capture-plus, .today-tools .capture-submit { width: 40px; height: 40px; }
  .today-tools .filters { align-self: flex-start; min-height: 40px; gap: 8px; }
  .today-tools .chip, .today-tools .filter-toggle { min-height: 40px; font-size: 12px; }
  .today-tools .liquid-filter { height: 40px; }
  .today-tools .filter-blob { height: 40px; }
  .daily-plan-strip { flex-direction: row; align-items: center; margin: 0 0 12px; padding: 0; gap: 8px; }
  .daily-plan-summary > span { flex-direction: column; gap: 2px; }
  .daily-plan-summary small { font-size: 11px; }
  .daily-plan-actions { align-self: center; gap: 4px; }
  .daily-plan-actions button { min-width: 40px; min-height: 40px; padding: 8px; }
  .daily-plan-actions [data-plan-focus] > span { display: none; }
}

/* Mind maps reuse the workbench's glass surface and compact controls. */
[data-module="mindmaps"].expanded { display: flex; flex-direction: column; overflow: hidden; }
.mm-shell { flex: 1; min-height: 0; display: grid; grid-template-columns: 196px minmax(0,1fr); gap: 20px; }
.mm-library { display: flex; flex-direction: column; gap: 12px; min-height: 0; border-right: 1px solid #cbb29b55; padding-right: 16px; }
.mm-library-head, .mm-inspector-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mm-library-head select { flex: 1; min-width: 0; }
.mm-shell select { min-height: 36px; background: #fffcf775; border: 1px solid #fff; border-radius: 10px; font-size: 12px; padding: 6px 8px; max-width: 100%; }
.mm-search { width: 100%; min-height: 36px; }
.mm-search input { min-width: 0; width: 100%; font-size: 12px; }
.mm-list { flex: 1; min-height: 0; overflow: auto; }
.mm-list-item { display: flex; align-items: flex-start; gap: 8px; width: 100%; padding: 12px 8px; border-radius: 12px; text-align: left; }
.mm-list-item:hover { background: #fff7; }
.mm-list-item[aria-pressed="true"] { background: #fffaf2c9; box-shadow: inset 0 0 0 1px #fff; }
.mm-list-item > .icon { width: 17px; height: 17px; margin-top: 2px; color: #926a4b; }
.mm-list-item > span { min-width: 0; }
.mm-list-item strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 13px; font-weight: 400; line-height: 1.6; overflow-wrap: anywhere; }
.mm-list-item small { display: block; margin-top: 4px; color: #735e4f; font-size: 11px; }
.mm-list-empty { padding: 16px 8px; color: #705747; font-size: 12px; line-height: 1.8; }
.mm-create { display: grid; gap: 8px; }
.mm-create button.primary { display: flex; align-items: center; justify-content: center; gap: 6px; }
.mm-create button .icon { width: 16px; height: 16px; }
.mm-workspace { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.mm-toolbar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.mm-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.mm-tools .small-button { padding: 8px 10px; }
.mm-shell .icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 8px; border-radius: 10px; }
.mm-shell .icon-button:hover { background: #fff9; }
.mm-shell .icon-button .icon { width: 17px; height: 17px; }
.mm-shell .quiet-button { color: #755039; }
.mm-shell .mm-mobile-import { display: none; }
.mm-redo-icon { transform: scaleX(-1); }
.mm-canvas-row { flex: 1; min-width: 0; min-height: 0; display: flex; gap: 12px; }
.mm-viewport { position: relative; flex: 1; min-width: 0; min-height: 240px; overflow: hidden; background: #fffaf34d; border: 1px solid #fff; border-radius: 16px; touch-action: none; outline-offset: -4px; }
.mm-viewport.is-panning { cursor: grabbing; }
.mm-world { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; pointer-events: none; }
.mm-links { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.mm-links path { fill: none; stroke-width: 1.6; opacity: .75; }
.mm-node-wrap { position: absolute; height: 66px; pointer-events: auto; }
.mm-node { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 100%; padding: 10px 16px; text-align: center; color: #42372f; background: #fffaf4f2; border: 1px solid #cbb29ba8; border-radius: 12px; font-size: 14px; line-height: 1.55; user-select: none; touch-action: none; }
.mm-node > span:first-child { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.mm-node:hover { background: #fffdfa; border-color: #a77b58; }
.mm-node.is-selected { outline: 2px solid #a37551; outline-offset: 2px; }
.mm-root .mm-node { background: #e8cdb5; border-color: #b78b66; font-size: 16px; font-weight: 500; }
.mm-node .mm-note-mark { display: inline-flex; flex-shrink: 0; color: #89674f; }
.mm-note-mark .icon { width: 14px; height: 14px; }
.mm-branch-toggle { position: absolute; width: 28px; height: 28px; top: 19px; right: -35px; display: grid; place-items: center; border: 1px solid #c8ab92; border-radius: 50%; color: #765338; background: #faf0e6; font-size: 12px; }
.mm-branch-toggle.is-left { right: auto; left: -35px; }
.mm-node-wrap.mm-dragging { z-index: 5; opacity: .7; pointer-events: none; }
.mm-node-wrap.mm-dragging * { pointer-events: none; }
.mm-drop-target .mm-node { outline: 3px solid #758c75; outline-offset: 3px; background: #edf1e8; }
.mm-empty { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; color: #735946; }
.mm-empty > .icon { width: 32px; height: 32px; }
.mm-empty h3 { font-size: 16px; font-weight: 400; }
.mm-empty p { font-size: 13px; }
.mm-zoom { position: absolute; bottom: 12px; left: 12px; display: flex; align-items: center; gap: 2px; border: 1px solid #fff; background: #fffaf2ed; padding: 3px; border-radius: 12px; }
.mm-zoom #mm-scale { min-width: 44px; min-height: 36px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; border-radius: 8px; }
.mm-zoom #mm-scale:hover { background: #ead0b955; }
.mm-zoom .small-button { font-size: 12px; }
.mm-inspector { width: 220px; flex-shrink: 0; overflow-y: auto; padding: 0 2px; }
.mm-inspector h3 { font-size: 14px; font-weight: 500; }
.mm-inspector label { display: grid; gap: 8px; margin-top: 16px; font-size: 12px; color: #715643; }
.mm-inspector textarea { resize: vertical; width: 100%; min-height: 70px; border: 1px solid #fff; border-radius: 10px; background: #fff9; padding: 10px; font-size: 13px; line-height: 1.7; }
.mm-help { font-size: 12px; line-height: 1.8; color: #735e4f; margin-top: 16px; }
.mm-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; color: #705747; font-size: 11px; min-height: 20px; }
.mm-key-hint { margin-left: auto; }
.mm-message { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 12px; border-radius: 10px; background: #eed6c8; color: #79422d; font-size: 12px; line-height: 1.8; }
.mm-message .quiet-button { color: #6e3e29; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1100px) {
  .mm-shell { grid-template-columns: 164px minmax(0,1fr); gap: 12px; }
  .mm-inspector { width: 180px; }
  .mm-key-hint { display: none; }
}
@media (max-width: 760px) {
  .mm-shell { grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(0,1fr); gap: 12px; }
  .mm-library { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; padding: 0 0 10px; border: 0; border-bottom: 1px solid #cbb29b55; max-height: 164px; }
  .mm-library-head { grid-column: 1; grid-row: 1; }
  .mm-search { grid-column: 1; grid-row: 2; }
  .mm-create { grid-column: 2; grid-row: 1 / 3; grid-template-columns: auto; gap: 4px; }
  .mm-create .quiet-button { display: none; }
  .mm-create button.primary { padding: 8px; }
  .mm-list { display: flex; gap: 4px; grid-column: 1 / -1; min-height: 44px; max-height: 54px; overflow-x: auto; }
  .mm-list-item { flex-shrink: 0; width: 150px; padding: 8px; align-items: center; }
  .mm-list-item strong { -webkit-line-clamp: 1; }
  .mm-list-item small { display: none; }
  .mm-list-empty { padding: 8px; }
  .mm-toolbar { gap: 4px; }
  .mm-shell .icon-button { width: 40px; height: 40px; }
  .mm-shell .mm-mobile-import { display: inline-grid; }
  .mm-zoom #mm-scale { min-height: 40px; }
  .mm-tools { gap: 2px; }
  .mm-tools > .small-button { padding: 8px; min-height: 40px; }
  .mm-tools select { min-height: 40px; }
  .mm-tools [data-mm="archive"] { margin-left: auto; min-height: 40px; }
  .mm-canvas-row { position: relative; }
  .mm-viewport { min-height: 180px; }
  .mm-inspector { position: absolute; inset: auto 0 0; width: auto; max-height: 65%; z-index: 8; background: #fcf4ecfa; border: 1px solid #fff; border-radius: 16px; padding: 12px 16px; box-shadow: 0 -8px 28px -20px #76573d88; }
  .mm-inspector label { margin-top: 8px; }
  .mm-inspector textarea { min-height: 52px; }
  .mm-inspector #mm-node-note { height: 90px; }
  .mm-zoom { left: 8px; bottom: 8px; padding: 0; }
  .mm-zoom .small-button { padding: 8px 6px; }
  .mm-footer { min-height: 16px; font-size: 11px; }
}

/* Mind-map editing tools keep secondary actions out of the canvas. */
.mm-viewbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.mm-view-tabs { display: flex; padding: 3px; background: #dcc9b750; border-radius: 10px; }
.mm-view-tabs button { padding: 6px 12px; border-radius: 8px; font-size: 12px; }
.mm-view-tabs button[aria-pressed="true"] { background: #fffbf5; color: #69472e; }
.mm-viewbar > [aria-pressed="true"] { background: #ead0b9; color: #69472e; }
.mm-find { display: flex; align-items: center; gap: 2px; margin-left: auto; min-width: 170px; flex: 1; max-width: 350px; }
.mm-find label { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; }
.mm-find label > .icon { width: 16px; height: 16px; color: #79604c; }
.mm-find input { min-width: 0; width: 100%; border: 0; padding: 8px 0; font-size: 12px; background: transparent; }
.mm-find #mm-find-count { font-size: 11px; color: #705747; white-space: nowrap; }
.mm-find [data-mm="find-prev"] .icon { transform: rotate(180deg); }
.mm-more { position: relative; }
.mm-more > button > .icon { width: 14px; height: 14px; }
.mm-menu[popover]:not(:popover-open) { display: none; }
.mm-menu:popover-open { display: grid; }
.mm-menu { position: fixed; inset: auto; margin: 0; padding: 6px; width: 190px; max-height: 50vh; overflow: auto; border: 1px solid #fff; border-radius: 12px; background: #fff9f1f7; color: #49392d; box-shadow: 0 16px 32px -18px #6a4b3577; z-index: 80; }
.mm-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; font-size: 12px; border-radius: 7px; min-height: 36px; }
.mm-menu button:hover, .mm-menu button:focus-visible { background: #ead6c4; }
.mm-context { max-height: min(55vh,340px); }
.mm-selection-box { position: absolute; z-index: 6; border: 1px solid #9c6e4c; background: #bc8d6840; pointer-events: none; border-radius: 3px; }
.mm-node-wrap .mm-node { background: var(--mm-fill); border-color: var(--mm-stroke); border-radius: var(--mm-radius); font-weight: var(--mm-weight); }
.mm-node-wrap .mm-node.is-match { box-shadow: 0 0 0 3px #d4ac7d80; }
.mm-node mark { background: #e8c6a0; color: #433124; }
.mm-progress { position: absolute; right: 9px; top: -9px; padding: 2px 6px; background: #f5e6d7; color: #725136; border: 1px solid #d7bba3; border-radius: 6px; font-size: 10px; pointer-events: none; }
.mm-progress[data-marker="done"] { color: #40593f; background: #e5eddc; border-color: #afbea3; }
.mm-node-link { position: absolute; right: 5px; bottom: 3px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; color: #79512f; background: #fff8; }
.mm-node-link > .icon { width: 13px; height: 13px; }
.mm-node-wrap:has(.mm-node-link) .mm-node { padding-right: 29px; }
.mm-branch-toggle.is-down { top: auto; right: auto; left: calc(50% - 14px); bottom: -35px; }
.mm-format { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; margin-top: 8px; }
.mm-format .mm-bold { display: flex; align-items: center; gap: 8px; }
.mm-format select { width: 100%; }
.mm-inspector input[type="url"] { width: 100%; min-width: 0; border: 1px solid #fff; background: #fff9; border-radius: 10px; padding: 9px; font-size: 12px; }
.mm-inspector input[type="checkbox"] { accent-color: #966746; }
.mm-outline { flex: 1; min-width: 0; min-height: 180px; overflow: auto; padding: 12px; background: #fffaf34d; border: 1px solid #fff; border-radius: 16px; }
.mm-outline-row { display: flex; align-items: center; gap: 4px; margin-left: calc(var(--depth)*20px); min-width: 190px; border-bottom: 1px solid #d9bfa744; padding: 5px 4px; border-radius: 8px; }
.mm-outline-row.is-selected { background: #e7cdb367; }
.mm-outline-row input { flex: 1; min-width: 100px; border: 0; padding: 8px 2px; background: transparent; font-size: 13px; line-height: 1.7; }
.mm-outline-spacer { width: 36px; flex-shrink: 0; }
.mm-outline-row [aria-expanded="false"] > .icon { transform: rotate(-90deg); }
.mm-focus .mm-shell { grid-template-columns: minmax(0,1fr); }
.mm-focus .mm-library { display: none; }
.mm-import-preview { font-size: 13px; color: #5e4939; }
@media (max-width: 760px) {
  .mm-viewbar { gap: 4px 6px; }
  .mm-view-tabs button { padding: 7px 10px; min-height: 36px; }
  .mm-viewbar > select { max-width: 104px; }
  .mm-viewbar > .small-button { min-height: 40px; padding: 6px 10px; }
  .mm-find { max-width: none; flex-basis: 100%; margin-left: 0; min-height: 32px; }
  .mm-find input { padding: 5px 0; }
  .mm-find .icon-button { width: 32px; height: 32px; padding: 4px; }
  .mm-menu button { min-height: 40px; }
  .mm-outline { padding: 8px; }
  .mm-outline-row { margin-left: calc(var(--depth)*16px); }
  .mm-outline-row .icon-button { width: 32px; height: 36px; }
  .mm-outline-spacer { width: 32px; }
  .mm-format { margin-bottom: 10px; }
  .mm-focus .mm-shell { grid-template-rows: minmax(0,1fr); }
}
@media (max-width: 760px) and (max-height: 740px) {
  [data-module="mindmaps"].expanded { overflow-y: auto; }
  .mm-shell { flex: none; }
  .mm-workspace { min-height: 440px; }
}

/* Flowcharts share the mind-map library and compact controls; graph geometry stays SVG. */
[data-module="flowcharts"].expanded { display: flex; flex-direction: column; overflow: hidden; }
.fc-titlebar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; min-height: 32px; }
.fc-titlebar > input { flex: 1; min-width: 100px; width: 100%; padding: 6px 8px; font-size: 14px; border: 1px solid transparent; border-radius: 8px; background: transparent; }
.fc-titlebar > input:hover, .fc-titlebar > input:focus { background: #fffcf780; border-color: #fff; }
#fc-connect-hint { color: #70513c; font-size: 12px; }
.fc-toolbar .icon { width: 16px; height: 16px; }
.fc-shell [data-fc="add"], .fc-shell [data-fc="connect"] { display: inline-flex; align-items: center; gap: 5px; }
.fc-shell [aria-pressed="true"][data-fc="connect"] { background: #e6ccb6; color: #5d3d26; }
.fc-viewport { position: relative; flex: 1; min-width: 0; min-height: 240px; overflow: hidden; background: #fffaf34d; border: 1px solid #fff; border-radius: 16px; touch-action: none; outline-offset: -4px; }
#fc-svg { display: block; width: 100%; height: 100%; position: absolute; inset: 0; touch-action: none; }
.fc-node { cursor: grab; outline: none; }
.fc-node.is-selected .fc-shape { stroke: #805735; stroke-width: 2.5; }
.fc-node:focus-visible .fc-shape { stroke: #5c4635; stroke-width: 3; stroke-dasharray: 4 2; }
.fc-node:hover .fc-shape { filter: brightness(1.025); stroke: #886143; }
.fc-node text { user-select: none; pointer-events: none; font-family: inherit; }
.fc-port { fill: #fffaf4; stroke: #805735; stroke-width: 1.5; cursor: crosshair; opacity: 0; }
.fc-port-hit { fill: transparent; cursor: crosshair; }
.fc-node:hover .fc-port, .fc-node.is-selected .fc-port, .fc-node:focus-within .fc-port, .fc-connecting .fc-port { opacity: 1; }
.fc-port-hit:hover + .fc-port { fill: #d4aa87; }
.fc-node.is-target .fc-shape { stroke: #66805e; stroke-width: 3; }
.fc-edge { cursor: pointer; outline: none; }
.fc-edge-line { fill: none; stroke: #98704f; stroke-width: 1.6; marker-end: url(#fc-arrow); pointer-events: none; }
.fc-edge-hit { fill: none; stroke: transparent; stroke-width: 18; }
.fc-edge.is-selected .fc-edge-line, .fc-edge:focus-visible .fc-edge-line { stroke: #5f452f; stroke-width: 2.8; }
.fc-edge text { fill: #664a36; font-size: 12px; paint-order: stroke; stroke: #f9f0e6; stroke-width: 5; stroke-linejoin: round; }
.fc-preview { fill: none; stroke: #966d4c; stroke-width: 2; stroke-dasharray: 6 4; pointer-events: none; }
#fc-scale { min-width: 44px; min-height: 36px; font-size: 12px; font-variant-numeric: tabular-nums; border-radius: 8px; }
.fc-viewport.is-panning { cursor: grabbing; }
.fc-viewport.is-linking { cursor: crosshair; }
.fc-inspector input { width: 100%; min-height: 36px; padding: 8px; background: #fffcf7b0; border: 1px solid #fff; border-radius: 8px; font-size: 13px; }
.fc-inspector select { width: 100%; }
.fc-empty-error { max-width: 280px; text-align: center; font-size: 13px; line-height: 1.8; }
@media (max-width: 760px) {
  [data-module="flowcharts"].expanded { overflow-y: auto; }
  .fc-shell { flex: none; min-height: calc(100% - 46px); }
  .fc-workspace { min-height: 410px; }
  .fc-canvas-row { flex-direction: column; }
  .fc-inspector { position: static; inset: auto; width: 100%; max-height: 340px; flex: none; padding: 12px; }
  .fc-titlebar { gap: 4px; }
  .fc-viewport { flex: 1 0 240px; }
  #fc-connect-hint:empty { display: none; }
}

.fc-inspector .mm-inspector-head { position: sticky; top: 0; z-index: 1; background: #fcf4ec; padding-bottom: 6px; }

.fc-arrangebar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; }
.fc-tool-group { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.fc-arrangebar .small-button { min-height: 36px; padding: 6px 9px; }
.fc-arrangebar select { max-width: 120px; }
.fc-arrangebar [aria-pressed="true"] { background: #e6ccb6; color: #5d3d26; }
#fc-selection-status { font-size: 11px; color: #70513c; white-space: nowrap; }
.fc-viewport.is-selecting { cursor: crosshair; }
#fc-selection-box { pointer-events: none; z-index: 2; }
@media (max-width: 760px) {
  .fc-arrangebar { gap: 4px 10px; }
  .fc-arrangebar .small-button, .fc-arrangebar select { min-height: 40px; }
  .fc-workspace { min-height: 510px; }
}

/* Icon controls use the existing stroke system; native popovers escape the canvas. */
.fc-icon-toolbar { align-items: center; }
.fc-icon-toolbar .mm-tools, .fc-arrangebar .fc-tool-group { gap: 4px; }
.fc-arrangebar { column-gap: 12px; }
.fc-icon-toolbar .icon-button, .fc-arrangebar .icon-button { flex: 0 0 36px; border-radius: 10px; }
.fc-icon-toolbar [aria-pressed="true"] { background: #e6ccb6; color: #5d3d26; }
.fc-icon-toolbar .icon-button .icon, .fc-arrangebar .icon-button .icon { width: 19px; height: 19px; pointer-events: none; }
.fc-palette { position: fixed; inset: auto; margin: 0; width: 230px; max-width: calc(100vw - 24px); max-height: min(70vh,390px); overflow: auto; padding: 10px; background: #fcf5edfa; color: #493b30; border: 1px solid #fff; border-radius: 16px; box-shadow: 0 12px 36px -12px #73543b55; backdrop-filter: blur(24px); }
.fc-palette:popover-open { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; }
.fc-palette button { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; min-height: 72px; padding: 10px 6px; border-radius: 10px; font-size: 12px; line-height: 1.4; color: #5a4534; }
.fc-palette button .icon { width: 28px; height: 28px; }
.fc-palette button:hover:not(:disabled), .fc-palette button:focus-visible, .fc-palette button[aria-checked="true"] { background: #ead4bf85; }
.fc-palette button:disabled { opacity: .4; }
.fc-palette-align { width: 300px; }
.fc-palette-align:popover-open { grid-template-columns: repeat(3,minmax(0,1fr)); }
.fc-palette-export { width: 190px; }
.fc-palette-export:popover-open { grid-template-columns: minmax(0,1fr); }
.fc-palette-export button { flex-direction: row; justify-content: flex-start; min-height: 44px; padding: 8px 10px; gap: 10px; }
.fc-palette-export button .icon { width: 20px; height: 20px; }
.fc-tooltip { position: fixed; inset: auto; margin: 0; max-width: min(250px,calc(100vw - 16px)); padding: 7px 10px; background: #493b30; color: #fffaf4; border: 0; border-radius: 8px; font-size: 12px; line-height: 1.5; pointer-events: none; box-shadow: 0 6px 16px -6px #493b3070; }
@media (max-width: 760px) {
  .fc-icon-toolbar .icon-button, .fc-arrangebar .icon-button { flex-basis: 40px; }
  .fc-arrangebar { gap: 4px 8px; }
}

.fc-palette { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; }
.fc-palette-align { grid-template-columns: repeat(3,minmax(0,1fr)); }
.fc-palette-export { grid-template-columns: minmax(0,1fr); }

.fc-palette-node { width: 350px; grid-template-columns: minmax(0,1fr); }
.fc-palette-node:popover-open { display: block; }
.fc-node-tabs { display: flex; gap: 4px; padding: 2px; border-radius: 10px; background: #e7d5c350; }
.fc-node-tabs button { flex: 1; min-height: 36px; padding: 6px 10px; font-size: 12px; }
.fc-node-tabs button[aria-selected="true"] { background: #fffaf4; color: #5d3d26; }
.fc-node-shapes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; margin-top: 8px; }
.fc-node-shapes button { min-width: 0; }

.fc-node.is-selected .fc-detail { stroke: #805735; }
