/* Symbion UX — Notion paper
   white page · warm sidebar · ink text · hairline · 6px controls */

:root {
  --bg: #f4f4f5;
  --bg-soft: #f4f4f5;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --ink: #09090b;
  --ink-2: #18181b;
  --ink-3: #52525b;
  --ink-4: #71717a;
  --line: #ececee;
  --line-strong: #e4e4e7;

  /* Homepage wash: glow #64a7cc, highlight #74c1e6, readable ink #4a7a96. */
  --blue: #64a7cc;
  --blue-bright: #74c1e6;
  --blue-ink: #4a7a96;
  --blue-soft: rgba(100, 167, 204, 0.22);
  --lime: var(--blue);
  --lime-deep: #37352f;
  --lime-ink: #37352f;
  --mint: #f7f6f3;
  --citta: #787774;
  --citta-soft: #f7f6f3;
  --warn: #d9730d;
  --warn-soft: #fbf3db;
  --danger: #e07070;
  --danger-soft: #fdebec;
  --ok: #37352f;
  --ok-soft: #f7f6f3;

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --radius-xl: 8px;
  --radius-pill: 4px;

  --shadow: none;
  --shadow-sm: none;
  --shadow-float: 0 4px 18px rgba(15, 15, 15, 0.08);

  --font: "DM Sans", "Noto Sans SC", "Noto Sans CJK SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI",
    "Helvetica Neue", sans-serif;
  --type-display: 42px;
  --type-h1: 24px;
  --type-h2: 20px;
  --type-h3: 17px;
  --type-label: 15px;
  --type-ui: 14px;
  --type-caption: 12px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --rail: 232px;
  --inbox: 280px;
  --citta-w: 320px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font);
  background: #fff;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  line-height: 1.5;
  padding: 0;
}

.app {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  height: 100%;
  max-width: none;
  margin: 0;
  background: #fff;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}

.rail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1px;
  padding: 10px 8px 12px;
  background: #f7f6f3;
  border-right: 1px solid rgba(55, 53, 47, 0.09);
}
.rail-workspace {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  margin: 2px 4px 10px;
  padding: 0 6px;
}
.brand {
  width: 28px;
  height: 20px;
  border-radius: 0;
  background: none;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0;
  flex-shrink: 0;
}
.rail-ws-name {
  font-size: 14px;
  font-weight: 600;
  color: #37352f;
}
.rail-btn {
  width: auto;
  height: 30px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 8px;
  color: #37352f;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
}
.rail-btn:hover {
  background: rgba(55, 53, 47, 0.06);
  color: #37352f;
}
.rail-btn.is-active {
  background: rgba(55, 53, 47, 0.08);
  color: #37352f;
  box-shadow: none;
}
.rail-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.rail-spacer { flex: 1; }
.rail-user {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  margin: 4px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 14px;
  color: #37352f;
}
.rail-user:hover { background: rgba(55, 53, 47, 0.06); }

button,
input,
textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

.inbox {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 16px 12px;
  background: var(--surface);
  border-radius: 28px;
  box-shadow: 0 10px 28px rgba(40, 36, 56, 0.05);
  overflow: auto;
}
.msg-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 12px;
}
.chat-empty,
.chat-thread {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}
.chat-empty {
  flex: 1;
  justify-content: center;
  padding: 28px;
  background: transparent;
}
.chat-empty h1 {
  font-size: 28px;
  letter-spacing: -0.04em;
}
.chat-empty p {
  margin-top: 8px;
  max-width: 36ch;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
.chat-empty[hidden],
.chat-thread[hidden] {
  display: none;
}
.inbox-head strong {
  display: block;
  margin: 4px 8px 10px;
  font-size: 22px;
  letter-spacing: -0.04em;
}
.inbox-search input {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f4f4f5;
  font-size: 14px;
}
.inbox-label {
  margin: 16px 8px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.inbox-item[hidden] {
  display: none;
}
.inbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 18px;
  text-align: left;
}
.inbox-item.is-on,
.inbox-item:hover {
  background: #f4f4f5;
}
.inbox-item strong,
.inbox-item em {
  display: block;
}
.inbox-item strong {
  font-size: 14px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.inbox-item em {
  margin-top: 2px;
  font-style: normal;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-2);
}
.inbox-av {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #e7f3f8;
  color: #1d4e63;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.inbox-av.t1 { background: #f6eee6; color: #6b4b34; }
.inbox-av.t2 { background: #f8e8ea; color: #7a3e49; border-radius: 50%; }
.inbox-item.is-unread strong { font-weight: 700; }
.inbox-item.is-unread em { color: #18181b; }
.inbox-item:not(.is-unread) em { color: #71717a; }
.inbox-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #09090b;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.chat-view {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 22px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 10px 28px rgba(40, 36, 56, 0.05);
}
.chat-head h1 {
  font-size: 22px;
  letter-spacing: -0.03em;
}
.chat-head p {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-4);
}
.chat-log {
  flex: 1;
  min-height: 0;
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: auto;
}
.chat-log .msg {
  margin-top: 10px;
}
.thread-input {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.thread-input input {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface);
}

.rail-avatar {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #e7f3f8;
  color: #1d4e63;
  font-size: 10px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.shell {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
}
.chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 14px;
  flex: none;
  border-bottom: 1px solid rgba(55, 53, 47, 0.09);
  background: #fff;
}
.shell-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 0;
}
.traffic {
  display: none;
}
.traffic i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}
.traffic .r {
  background: #ff5f57;
}
.traffic .y {
  background: #febc2e;
}
.traffic .g {
  background: #28c840;
}
.chrome-nav {
  display: flex;
  gap: 2px;
}
.chrome-nav button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--ink-3);
  display: grid;
  place-items: center;
}
.chrome-nav button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
}
.chrome-nav button:disabled {
  opacity: 0.35;
}
.chrome-nav svg {
  width: 14px;
  height: 14px;
}
.omnibox {
  flex: 1;
  max-width: none;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  background: transparent;
  border-radius: 4px;
  font-size: 14px;
  color: #787774;
  box-shadow: none;
}
.omnibox:hover { background: rgba(55, 53, 47, 0.06); }
.omnibox input::placeholder { color: #9b9a97; }
.omnibox-go {
  height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #787774;
  flex: none;
}
.omnibox-go:hover { background: rgba(55, 53, 47, 0.08); color: #37352f; }
.chrome-bookmarks {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
}
.chrome-bookmarks button {
  height: 28px;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #787774;
}
.chrome-bookmarks button:hover { background: rgba(55, 53, 47, 0.06); color: #37352f; }
.chrome-bookmarks button.is-on {
  background: rgba(55, 53, 47, 0.08);
  color: #37352f;
}
.browser-doc { max-width: 720px; }
.browser-doc h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.browser-lead {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: #37352f;
}
.browser-url {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.45;
  color: #787774;
  word-break: break-all;
}

/* schedule capsule */
.schedule {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: var(--surface);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.schedule-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
  padding-left: 4px;
}
.schedule-date {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface-2);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.schedule-track {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}
.slot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.slot.is-live {
  background: #e4ebf2;
  color: var(--ink-2);
}
.slot .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(145deg, #c5d4ea, #7f96b8);
  flex-shrink: 0;
}
.slot.is-live .dot {
  background: #8ea3b8;
}

/* main + citta */
.body-row {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
}
body.citta-collapsed .citta-pane {
  display: none;
}
body.citta-collapsed .citta-dock {
  display: flex;
}
body.citta-collapsed .today {
  padding-bottom: 156px;
}
body.citta-collapsed #view-desk.is-active,
body.citta-collapsed #view-symbion.is-active,
body.citta-collapsed #view-chat.is-active,
body.citta-collapsed #view-cosmo.is-active,
body.citta-collapsed #view-browser.is-active {
  height: 100%;
  max-height: none;
  padding-bottom: 0;
}

.main-pane {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.view {
  display: none;
}
.view.is-active {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.page-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
}
.page-bar h1,
.cosmo-wrap .welcome {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.page-bar p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
#view-desk .page-bar {
  align-items: center;
}
#view-desk .page-bar h1 {
  margin: 0;
}
.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.status-card {
  min-height: 112px;
  padding: 16px 18px;
  text-align: left;
  background: var(--surface);
  border-radius: 28px;
  box-shadow: 0 10px 28px rgba(40, 36, 56, 0.05);
}
.status-card span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.status-card strong {
  display: block;
  margin-top: 12px;
  font-size: 16px;
  letter-spacing: -0.03em;
}
.status-card em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 12px;
  color: var(--ink-3);
}
#view-home.is-active,
#view-cosmo.is-active {
  overflow: auto;
}
#view-chat.is-active {
  padding-bottom: 0;
}
.today {
  flex: 1;
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.78fr);
  gap: 12px;
  align-items: stretch;
}
.today-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 100%;
}
.today-notes {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.todo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.todo-list:empty {
  display: none;
}
.todo-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #f4f4f5;
  cursor: pointer;
}
.todo-item input {
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1.5px solid #a1a1aa;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}
.todo-item input:checked {
  border-color: #09090b;
  background: #09090b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2 6.6 11.2 12.5 4.8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.todo-item span {
  font-size: 14px;
  line-height: 1.45;
  color: #18181b;
}
.todo-item:has(input:checked) span {
  color: #71717a;
  text-decoration: line-through;
}
.task-notes-head .task-kicker { margin: 0; white-space: nowrap; flex: none; }
.todo-add {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  color: #787774;
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  background: transparent;
}
.todo-add:hover { background: rgba(55, 53, 47, 0.08); color: #37352f; }
.todo-compose {
  display: flex;
  margin: 8px 0 0;
}
.todo-compose[hidden] { display: none; }
.todo-compose input {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  border-radius: 4px;
  background: transparent;
  font-size: 14px;
  color: #37352f;
  box-shadow: inset 0 -1px 0 rgba(55, 53, 47, 0.16);
}
.todo-compose input::placeholder { color: #9b9a97; }
.today-card {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 18px 20px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 10px 28px rgba(40, 36, 56, 0.05);
}
.today-week {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.agenda {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
  flex: 1;
}
.agenda-item.is-quiet {
  flex: 0 0 auto;
  min-height: 44px;
  padding-top: 10px;
  padding-bottom: 10px;
  background: transparent;
  color: #a1a1aa;
}
.agenda-item.is-quiet time {
  font-weight: 500;
}
.agenda-item.is-quiet:hover {
  background: #f4f4f5;
  color: #52525b;
}
.today-lead {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
.agenda-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  flex: 1;
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f4f4f5;
  text-align: left;
}
.agenda-item.is-today {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(28, 28, 31, 0.1);
}
.agenda-item time {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}
.agenda-item time small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.agenda-item strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.agenda-item em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}
.connect-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.connect-row button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: var(--warn-soft);
  color: #8a4b00;
  font-size: 13px;
}
.connect-row button.is-live {
  background: transparent;
  color: #37352f;
  padding: 2px 8px 2px 0;
  border-radius: 4px;
}
.connect-row button.is-live:hover {
  background: rgba(55, 53, 47, 0.06);
}
.connect-row button.is-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}
.connect-row em {
  font-style: normal;
  font-weight: 500;
}
.connect-row strong { font-weight: 650; }
.today-entries { display: flex; gap: 4px; flex-shrink: 0; }
.citta-present {
  display: flex;
  align-items: center;
  gap: 10px;
}
.citta-present > span:nth-child(2) { flex: 1; min-width: 0; }
.citta-present strong { display: block; font-size: 14px; }
.citta-present em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 14px;
  line-height: 1.35;
  color: #52525b;
}
.citta-called {
  margin-top: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #f4f4f5;
}
.called-label {
  font-size: 14px;
  color: #71717a;
}
.present-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.present-list li { display: flex; align-items: center; gap: 10px; }
.present-list li[hidden] { display: none; }
.present-list li > span:nth-child(2) { flex: 1; min-width: 0; }
.present-list strong { display: block; font-size: 14px; }
.present-list em { display: block; margin-top: 2px; font-style: normal; font-size: 14px; line-height: 1.35; color: #52525b; }
.present-av {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; font-size: 13px; font-weight: 650; flex-shrink: 0;
}
.present-av.citta { background: #09090b; color: #fff; }
.citta-called .present-av { width: 28px; height: 28px; }
.present-recall { display: block; margin-top: 8px; }
.present-recall[hidden] { display: none; }
.nod {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.nod + .nod { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.nod h2 { font-size: 15px; letter-spacing: -0.02em; }
.nod.is-done { opacity: 0.72; }
.nod p { margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.today-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.today-week h1 {
  font-size: 28px;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.today-week .sheet-label,
.today-approve .sheet-label,
.today-people .sheet-label {
  margin-bottom: 4px;
}
.today-head p,
.today-meta,
.today-approve > p,
.today-sign {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
.nod.is-focus {
  margin-left: -8px;
  margin-right: -8px;
  padding: 8px;
  border-radius: 16px;
  background: var(--warn-soft);
}
.today-sign {
  color: var(--ink-2);
  font-weight: 600;
}
.today-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.today-week .tl {
  margin-top: 18px;
}
.today-ledger {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  text-align: left;
}
.today-ledger strong {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  font-size: 14px;
}
.today-ledger em,
.today-ledger > span {
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-3);
}
.today-line {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 16px;
  background: #f4f4f5;
  text-align: left;
}
.today-line strong {
  font-size: 13px;
}
.today-line span {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-3);
}
.today-people .cosmo-row {
  margin-top: auto;
}
.today-people .person,
.today-people .cosmo-row .person {
  margin-top: 0;
  min-height: 36px;
  padding: 6px 10px;
}
.today-people .person strong {
  margin-top: 0;
  font-size: 13px;
}
.task-app {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 280px;
  gap: 12px;
}
.task-side,
.task-stage,
.task-result {
  min-width: 0;
  min-height: 0;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 10px 28px rgba(40, 36, 56, 0.05);
}
.task-side,
.task-result {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  overflow: auto;
}
.task-new {
  height: 40px;
  border-radius: 999px;
  background: #09090b;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.task-search input {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f4f4f5;
  font-size: 13px;
}
.task-kicker {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}
.task-kicker strong {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 999px;
  background: #f4f4f5;
  color: var(--ink-2);
  font-size: 11px;
}
.task-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.task-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  text-align: left;
}
.task-item strong {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.task-item span {
  font-size: 11px;
  color: var(--ink-3);
}
.task-item.is-on,
.task-item:hover {
  background: #f4f4f5;
}
.task-item[hidden] {
  display: none;
}
.task-notes {
  margin-top: auto;
  padding-top: 8px;
}
.task-notes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.task-note-add {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #09090b;
  color: #fff;
  font-size: 16px;
  line-height: 1;
}
.task-stage {
  display: flex;
  flex-direction: column;
  padding: 22px;
}
.task-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 460px);
  margin: 0 auto;
}
.task-empty h1 {
  font-size: 32px;
  letter-spacing: -0.045em;
  line-height: 1.15;
}
.task-empty > p:last-child {
  margin-top: 8px;
  max-width: 36ch;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
}
.task-empty[hidden],
.task-thread[hidden],
.task-result-pane[hidden] {
  display: none;
}
.task-thread {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 12px;
}
.task-bubble {
  max-width: 42ch;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
}
.task-bubble.me {
  align-self: flex-end;
  background: #09090b;
  color: #fff;
}
.task-bubble.ai {
  align-self: flex-start;
  background: #f4f4f5;
}
.task-composer {
  margin-top: 12px;
  padding: 14px 14px 10px;
  border-radius: 22px;
  background: #f4f4f5;
}
.task-composer input {
  width: 100%;
  height: 36px;
  background: transparent;
  font-size: 15px;
}
.task-composer input::placeholder {
  color: var(--ink-4);
}
.task-composer-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.mode-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: #fff;
}
.mode-switch button {
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-3);
}
.mode-switch button.is-on {
  background: #09090b;
  color: #fff;
}
.task-scope {
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 28px;
}
.task-composer-bar button[type="submit"] {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #09090b;
  color: #fff;
  display: grid;
  place-items: center;
}
.task-composer-bar svg {
  width: 14px;
  height: 14px;
}
.task-tabs {
  display: flex;
  gap: 4px;
}
.task-tabs button {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-3);
}
.task-tabs button.is-on {
  background: #09090b;
  color: #fff;
}
.task-result-pane {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.result-card strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.result-card p,
.wb-link em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 12px;
  color: var(--ink-3);
}
.wb-link {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f4f4f5;
  text-align: left;
}
.wb-link span {
  font-size: 11px;
  color: var(--ink-3);
}
.wb-link strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.task-confirm {
  align-self: flex-start;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #09090b;
  color: #fff;
  font-size: 12px;
}
.home-bento {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 12px;
  align-items: start;
}
.home-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.home-col:first-child {
  gap: 36px;
}
.home-col > .stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.sheet {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 10px 28px rgba(40, 36, 56, 0.05);
}
.sheet-label {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
}
.sheet-hero h1 {
  font-size: 28px;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.sheet-hero > p {
  margin-top: 8px;
  max-width: 36ch;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-3);
}
.sheet-hero {
  position: relative;
  padding: 22px 22px 36px;
}
.sheet-hero .home-ask-line {
  position: absolute;
  left: 18px;
  right: 16px;
  bottom: -20px;
  height: 48px;
  margin: 0;
  background: #fff;
  box-shadow: 0 10px 24px rgba(40, 36, 56, 0.08);
}
.sheet-hero .home-ask-line button {
  position: absolute;
  top: 2px;
  right: -30px;
  width: 44px;
  height: 44px;
}
.sheet-week {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 180px;
  padding: 22px;
  text-align: left;
}
.sheet-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}
.sheet-kicker strong {
  font-size: 22px;
  letter-spacing: -0.04em;
}
.sheet-kicker span {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f4f4f5;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}
.sheet-week > p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-3);
}
.day-pills {
  display: flex;
  width: 100%;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
}
.day-pills span {
  flex: 1;
  min-width: 0;
  height: 64px;
  border-radius: 999px;
  background: #f4f4f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--ink-4);
}
.day-pills small {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.day-pills .is-today {
  background: #09090b;
  color: #fff;
}
.day-pills .is-today small {
  color: #fff;
}
.corner-plus {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #09090b;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.room:has(.corner-plus) .room-head {
  padding-right: 52px;
}
.room-head h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--ink);
}
.room-head h2 strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6em;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f4f4f5;
  color: var(--ink-2);
  font-size: 12px;
  vertical-align: 2px;
}
.home-split {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 12px;
  align-items: stretch;
}
.view .home-ask-line {
  width: 100%;
  margin-top: 0;
}
.view .sheet-hero .home-ask-line {
  width: auto;
  right: 22px;
  margin-top: 0;
}
.room-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.room-head .todo-pill {
  margin-top: 0;
}
.cosmo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cosmo-row .person {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0;
}
.bench .desk-board h2 {
  font-size: 15px;
  letter-spacing: -0.02em;
}
.bench .desk-board {
  min-height: 220px;
}
.bench .desk-board[data-desk-panel="kanban"] {
  min-height: 0;
}

/* ——— Home header ——— */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.page-head h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.page-head h1 span {
  color: var(--ink-3);
  font-weight: 500;
}
.page-head .sub {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-3);
  max-width: 42ch;
}
.habitat {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.habitat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.todo-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 600;
}
.todo-pill strong {
  min-width: 1.4em;
  text-align: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f4f4f5;
}
.doors-inline {
  margin-top: 12px;
}
.dash {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}
.dash-side {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: 22px;
  background: #f4f4f5;
}
.dash-side-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dash-side-top h2,
.tl-head h2,
.room h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
}
.dash-side-top button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  font-size: 14px;
}
.dash-side > p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-3);
}
.dash-side .gate {
  background: #fff;
}
.timeline {
  padding: 16px 16px 14px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.tl-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.tl-head p {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-3);
}
.tl {
  display: grid;
  grid-template-columns: 168px repeat(7, minmax(88px, 1fr));
  gap: 8px;
  align-items: stretch;
}
.tl-day {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  line-height: 1.2;
}
.tl-day small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
}
.tl-day.is-today {
  color: var(--ink);
}
.tl-lane {
  display: flex;
  align-items: center;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
  overflow: visible;
}
.tl-row {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: repeat(7, minmax(88px, 1fr));
  gap: 8px;
  height: auto;
}
.tl-row i {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 72px;
  height: auto;
  padding: 4px;
  border-radius: 12px;
  background: #f4f4f5;
  overflow: visible;
  font-style: normal;
}
.tl-row b,
.tl-chip {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-height: 0;
  max-width: none;
  padding: 10px 12px;
  border-radius: 18px;
  background: #fff;
  color: #09090b;
  box-shadow: inset 0 0 0 1px rgba(9, 9, 11, 0.1);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}
.tl-row b small,
.tl-chip small {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: #52525b;
}
.tl-row i.today {
  background: #f4f4f5;
}
.timeline .doors {
  margin-top: 14px;
}
.dash-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.habitat-head h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.1;
}
.habitat-head p {
  margin-top: 8px;
  max-width: 46ch;
  font-size: 14px;
  color: var(--ink-3);
}
.habitat-core {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 12px;
}
.seat {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.seat .role,
.manager-row .role,
.room h2 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.room .room-head h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--ink);
}
.seat strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.seat > p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-3);
  max-width: 36ch;
}
.gate {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
  padding: 12px 14px;
  text-align: left;
  border-radius: 16px;
  background: #f7f8ef;
}
.gate span {
  font-size: 13px;
  font-weight: 700;
}
.gate em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-4);
}
.home-ask-line {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  margin-top: 16px;
  padding: 0 8px 0 16px;
  border-radius: var(--radius-pill);
  background: #fff;
  box-shadow: 0 10px 28px rgba(40, 36, 56, 0.05);
}
.home-ask-line input {
  flex: 1;
  min-width: 0;
  background: transparent;
  font-size: 14px;
}
.home-ask-line input::placeholder {
  color: var(--ink-4);
}
.home-ask-line button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #09090b;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.home-ask-line svg {
  width: 14px;
  height: 14px;
}
.home-note-btn {
  margin-top: 8px;
  height: 28px;
  padding: 0 2px;
  color: var(--ink-4);
  font-size: 12px;
  font-weight: 600;
}
.ring h2 {
  margin: 4px 2px 8px;
  font-size: 13px;
  font-weight: 700;
}
.manager-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.manager-row button {
  min-height: 108px;
  padding: 14px;
  text-align: left;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.manager-row button:hover,
.person:hover,
.doors button:hover,
.gate:hover {
  transform: none;
}
.manager-row strong,
.person strong {
  display: block;
  margin-top: 8px;
  font-size: 14px;
}
.manager-row button > span:last-child,
.person span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-3);
}
.habitat-rooms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.people-room {
  grid-column: 1 / -1;
}
.people-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.people-split .role {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.dm-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-4);
}
.room {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 28px;
  padding: 16px 18px;
  box-shadow: 0 10px 28px rgba(40, 36, 56, 0.05);
}
.room-head p {
  margin: 4px 0 0;
}
.person,
.person.is-off {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  text-align: left;
  border-radius: 14px;
  background: var(--surface-2);
}
.person.is-off {
  color: var(--ink-4);
}
.doors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.doors button {
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 600;
}
.home-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.home-notes:empty {
  display: none;
}
.draft-card {
  margin: 12px 0;
  padding: 14px;
  border-radius: 16px;
  background: #f4f4f5;
}
.draft-card strong {
  font-size: 15px;
  letter-spacing: -0.02em;
}
.draft-card p {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-3);
}
.draft-card .btn-dark,
.draft-card .btn-next,
.draft-card .btn-next:disabled {
  margin-top: 10px;
}
.mail-app {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 0;
  flex: 1;
  min-height: 0;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
.mail-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 10px 10px 10px 0;
  border-right: 1px solid var(--line);
  overflow: auto;
}
.mail-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  background: transparent;
  text-align: left;
}
.mail-row.is-on { background: #f4f4f5; }
.mail-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.mail-row strong { font-size: 14px; font-weight: 650; }
.mail-row time { flex-shrink: 0; font-size: 12px; color: var(--ink-2); }
.mail-subj {
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink);
}
.mail-snip {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-2);
}
.mail-row.is-unread .mail-top strong::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #09090b;
  vertical-align: 1px;
}
.mail-read {
  min-width: 0;
  padding: 16px 8px 8px 22px;
  overflow: auto;
}
.mail-kicker {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.mail-read h3 {
  margin-top: 6px;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.mail-meta {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}
.mail-body {
  margin-top: 18px;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
}
.mail-body p + p { margin-top: 12px; }
.mail-read .today-sign { margin-top: 18px; }
.mail-read .btn-next { margin-top: 14px; }
.mail-sent {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
}
.cal-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  gap: 10px;
  margin-top: 16px;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}
.cal-day {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  height: 100%;
  padding: 14px;
  border-radius: 6px;
  background: #f7f6f3;
}
.cal-day.is-today {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(28, 28, 31, 0.12);
}
.cal-day header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.cal-day header strong { font-size: 15px; }
.cal-day header span { font-size: 13px; color: var(--ink-2); }
.cal-events { display: flex; flex-direction: column; gap: 8px; }
.cal-event {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
}
.cal-day.is-today .cal-event { background: #f4f4f5; }
.cal-event time { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.cal-event strong { font-size: 16px; letter-spacing: -0.02em; }
.cal-event span,
.cal-event em {
  font-size: 14px;
  font-style: normal;
  line-height: 1.45;
  color: var(--ink-2);
}
.cal-empty {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-3);
}
.btn-next {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #09090b;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.btn-next:disabled {
  background: #f4f4f5;
  color: var(--ink-3);
}
.link-quiet {
  height: 34px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
}
.link-quiet:hover {
  color: var(--ink);
}
.tl-chip {
  cursor: pointer;
}
.tl-chip:hover {
  transform: none;
}
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.chip-list span {
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f4f4f5;
  font-size: 12px;
  line-height: 26px;
}
.person-line {
  margin-top: 8px;
}
button.person-line {
  display: block;
  width: 100%;
  text-align: left;
}
button.person-line:hover {
  color: var(--ink);
}
.person-line strong {
  font-weight: 600;
}
.sym-sources {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding: 0;
  list-style: none;
}
.sym-sources li {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f4f4f5;
  font-size: 14px;
  line-height: 1.45;
  color: #18181b;
}
.sym-sources strong {
  display: block;
  margin-bottom: 2px;
}
.sym-rows {
  display: flex;
  flex-direction: column;
}
.sym-fold {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f4f4f5;
}
.sym-fold p {
  font-size: 14px;
  line-height: 1.45;
  color: #52525b;
}
.sym-fold .btn-next {
  margin-top: 12px;
}
.sym-fold[hidden] {
  display: none;
}
.home-note {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 600;
}
.wait {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  flex-shrink: 0;
}
.home-capture {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.home-capture[hidden] {
  display: none;
}
.home-capture input {
  flex: 1;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  font-size: 13px;
}
.home-routes .todo {
  align-items: center;
}
.head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  background: var(--surface);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  min-width: 200px;
}
.search-pill input {
  flex: 1;
  font-size: 13px;
  background: transparent;
  min-width: 0;
}
.search-pill input::placeholder {
  color: var(--ink-4);
}
.search-pill kbd {
  font-size: 11px;
  color: var(--ink-4);
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: inherit;
}
.btn-dark {
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}
.btn-dark:hover {
  background: #f4f4f5;
}
.btn-lime {
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: #09090b;
  color: #fff;
  transition: background 0.15s;
}
.btn-lime:hover {
  background: var(--lime-deep);
}

/* ——— Bento ——— */
.bento {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  grid-template-rows: auto auto auto;
  gap: 12px;
}

@media (max-width: 900px) {
  .habitat-core,
  .habitat-rooms,
  .people-split,
  .manager-row,
  .dash-bottom,
  .status-grid,
  .home-split,
  .home-bento,
  .home-col > .stat-row {
    grid-template-columns: 1fr 1fr;
  }
  .today {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: auto;
  }
  .today > * {
    flex: none;
    min-height: auto;
  }
  .today-card,
  .today-split > .today-card {
    flex: none;
    height: auto;
    overflow: visible;
  }
  .today-split {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .mail-app { grid-template-columns: 1fr; }
  .mail-list { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 0; }
  .mail-read { padding: 16px 0 0; }
  .cal-week { grid-template-columns: 1fr; }
  .task-app {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .task-result {
    grid-column: 1 / -1;
    max-height: 280px;
  }
  .dash,
  .bench {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    overflow: auto;
  }
  .bench .desk-board[data-desk-panel="kanban"] {
    grid-column: auto;
  }
}
@media (max-width: 720px) {
  .habitat-head h1 {
    font-size: 28px;
  }
  .manager-row,
  .habitat-core,
  .habitat-rooms,
  .people-split,
  .lanes,
  .sym-layout,
  .dash,
  .dash-bottom,
  .bench,
  .status-grid,
  .home-split,
  .cosmo-row,
  .home-bento,
  .home-col > .stat-row,
  .today-split,
  .task-app {
    grid-template-columns: 1fr;
  }
  .task-result {
    max-height: none;
  }
  .bench .desk-board[data-desk-panel="kanban"] {
    grid-column: auto;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .app {
    grid-template-columns: 56px minmax(0, 1fr);
    border-radius: 20px;
  }
  body {
    padding: 8px;
  }
  .msg-layout {
    grid-template-columns: 1fr;
  }
  .schedule-track {
    display: none;
  }
  .page-head h1 {
    font-size: 26px;
  }
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.card-lime {
  background: linear-gradient(165deg, #f8fafc 0%, #eef3f7 100%);
  color: var(--ink);
  border: 1px solid rgba(90, 112, 136, 0.12);
  position: relative;
  overflow: hidden;
}
.card-dark {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.card-soft {
  background: var(--surface-2);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.card-head h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.card-head .meta {
  font-size: 12px;
  color: var(--ink-4);
  font-weight: 500;
}
.card-lime .card-head .meta {
  color: var(--ink-3);
}
.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.06);
  display: grid;
  place-items: center;
  color: var(--ink-2);
  transition: background 0.15s;
}
.icon-btn:hover {
  background: rgba(20, 20, 20, 0.1);
}
.card-lime .icon-btn {
  background: rgba(90, 112, 136, 0.08);
  color: var(--lime-ink);
}
.card-dark .icon-btn {
  background: rgba(22, 24, 29, 0.05);
  color: var(--ink-3);
}
.icon-btn svg {
  width: 14px;
  height: 14px;
}

/* Today span */
.card-today {
  grid-row: span 2;
}

.todo {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  text-align: left;
  transition: background 0.15s;
}
.todo:hover {
  background: var(--surface-2);
}
.todo-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  flex-shrink: 0;
  margin-top: 1px;
}
.todo:hover .todo-check {
  border-color: var(--lime-deep);
  background: var(--mint);
}
.todo-body {
  flex: 1;
  min-width: 0;
}
.todo-body .t {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.todo-body .m {
  font-size: 12px;
  color: var(--ink-4);
  margin-top: 2px;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.pill-warn {
  background: var(--warn-soft);
  color: #a86a00;
}
.pill-ok {
  background: #f4f4f5;
  color: #18181b;
}
.pill-mute {
  background: var(--mint);
  color: var(--lime-ink);
}

.todo-add {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink-4);
  text-align: left;
}
.todo-add:hover {
  background: var(--surface-2);
  color: var(--ink-3);
}
.todo-add .plus {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f1f0f4;
  color: var(--lime-ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
}

/* Citta hero card */
.citta-hero .who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.citta-hero .orb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #c9c6d2);
  box-shadow: 0 0 0 3px rgba(126, 148, 172, 0.18);
  position: relative;
}
.citta-hero .orb::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34c759;
  border: 2px solid #f4f8ff;
}
.citta-hero .name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.citta-hero .state {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 2px;
}
.citta-hero .note {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 14px;
  opacity: 0.9;
}
.citta-hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.citta-hero .actions button {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(90, 112, 136, 0.1);
  font-size: 12px;
  font-weight: 600;
  color: var(--lime-ink);
}
.citta-hero .actions button:hover {
  background: rgba(90, 112, 136, 0.16);
}

/* Approve card */
.approve .amount {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 4px 0 8px;
}
.approve .desc {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 14px;
  line-height: 1.45;
}
.preview-card .row,
.approve .row {
  display: flex;
  gap: 8px;
}

/* Week mini */
.week-mini {
  display: flex;
  gap: 6px;
}
.day-pill {
  flex: 1;
  text-align: center;
  padding: 10px 4px;
  border-radius: 14px;
  background: var(--surface-2);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
}
.day-pill strong {
  display: block;
  font-size: 16px;
  color: var(--ink);
  margin-top: 4px;
}
.day-pill.is-today {
  background: var(--mint);
  color: var(--lime);
}
.day-pill.is-today strong {
  color: var(--lime);
}
.day-pill.has-dot strong::after {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
  margin: 4px auto 0;
}
.day-pill.is-today.has-dot strong::after {
  background: var(--lime);
}

/* Entry tiles */
.entries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.entry {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface-2);
  text-align: left;
  transition: background 0.15s;
}
.entry:hover {
  background: var(--mint);
}
.entry .ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--surface);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}
.entry .ico svg {
  width: 15px;
  height: 15px;
}
.entry .label {
  font-size: 13px;
  font-weight: 700;
}
.entry .sub {
  font-size: 11px;
  color: var(--ink-4);
}

.card-dark .spark {
  height: 48px;
  margin-top: 12px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}
.card-dark .spark span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--blue);
  opacity: 1;
}
.card-dark .big {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.card-dark .tag {
  display: inline-flex;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: #f4f4f5;
  color: #18181b;
  font-size: 11px;
  font-weight: 700;
}

/* ——— Citta pane (Clerio-like) ——— */
.citta-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(40, 36, 56, 0.08);
}
body:not(.citta-collapsed) .citta-scrim {
  display: block;
}
.citta-pane {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: min(360px, calc(100vw - 112px));
  height: min(520px, calc(100vh - 80px));
  background: var(--surface);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(40, 36, 56, 0.16);
  overflow: hidden;
}
.citta-mark {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: #09090b;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
}
.citta-pane-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 12px;
}
.citta-collapse {
  margin-left: auto;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: #f4f4f5;
  color: #18181b;
  font-size: 14px;
  font-weight: 600;
}
.citta-pane-head .title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.citta-pane-head .sub {
  margin-top: 2px;
  font-size: 14px;
  color: #52525b;
}
.citta-chat {
  flex: 1;
  overflow: auto;
  margin: 0 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 18px;
  background: #f4f4f5;
}
.bubble {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
}
.bubble.ai {
  background: #fff;
  color: #18181b;
  align-self: flex-start;
}
.bubble.me {
  background: #09090b;
  color: #fff;
  align-self: flex-end;
}
.bubble .file {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px;
  background: var(--surface);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}
.citta-modes {
  display: flex;
  gap: 6px;
  padding: 0 14px 8px;
  flex-wrap: wrap;
}
.mode-chip {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
}
.mode-chip.is-on {
  background: var(--mint);
  color: var(--lime-ink);
}
.citta-input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px 12px;
  padding: 8px 10px 8px 14px;
  background: var(--surface-2);
  border-radius: var(--radius-pill);
}
.citta-input input {
  flex: 1;
  font-size: 14px;
  background: transparent;
  min-width: 0;
}
.citta-input input::placeholder {
  color: #71717a;
}
.citta-input .send {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #09090b;
  color: #fff;
  display: grid;
  place-items: center;
}
.citta-input .send svg {
  width: 14px;
  height: 14px;
}

.citta-dock {
  display: none;
  position: fixed;
  right: 22px;
  bottom: 18px;
  z-index: 50;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: min(340px, calc(100vw - 110px));
  padding: 12px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 10px 28px rgba(40, 36, 56, 0.08);
}
.citta-dock-open {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  text-align: left;
}
.citta-dock-copy { min-width: 0; }
.citta-dock-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.citta-dock-copy em {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
  font-style: normal;
  font-size: 14px;
  line-height: 1.4;
  color: #52525b;
}
.citta-dock-ask {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 4px 4px 4px 14px;
  border-radius: 999px;
  background: #f4f4f5;
}
.citta-dock input {
  flex: 1;
  min-width: 0;
  width: auto;
  padding: 8px 0;
  background: transparent;
  font-size: 14px;
}
.citta-dock input::placeholder { color: #71717a; }
.citta-dock .send {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #09090b;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.citta-dock .send svg { width: 14px; height: 14px; }

/* ——— Desk ——— */
.desk-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
.desk-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 5px;
  background: var(--surface);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.desk-tab {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
}
.desk-tab:hover {
  color: var(--ink);
}
.desk-tab.is-active {
  background: #09090b;
  color: #fff;
}
.desk-nav-split {
  width: 1px;
  height: 16px;
  margin: 0 4px;
  background: var(--line-strong);
  flex-shrink: 0;
}
.desk-stage {
  min-width: 0;
  min-height: 0;
  overflow: auto;
}
.desk-board {
  display: none;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.desk-board.is-on {
  display: block;
}
.bench {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.bench .desk-board {
  display: none;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  border-radius: 28px;
}
.bench .desk-board.is-on {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 100%;
  max-height: none;
}
.bench .tl {
  width: 100%;
  min-width: 860px;
  flex: 0 0 auto;
  grid-template-rows: auto repeat(3, 112px);
}
.bench .tl-row i {
  height: 112px;
  min-height: 112px;
  max-height: 112px;
  justify-content: flex-start;
}
.tl-row b,
.tl-chip {
  flex: 0 0 auto;
  align-self: stretch;
  height: auto;
  min-height: 64px;
}
.bench .desk-board h2 {
  font-size: 20px;
  letter-spacing: -0.03em;
}
.bench #ledger-body {
  width: 100%;
}
.bench .desk-board.is-focus {
  box-shadow: var(--shadow-sm);
}
.home-ask-bar {
  width: 100%;
}
.desk-board h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.desk-board .subhead {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 4px 0 18px;
}
.week {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.day-col {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 12px;
  min-height: 220px;
}
.day-col.is-today {
  background: var(--mint);
  box-shadow: inset 0 0 0 1.5px rgba(110, 132, 156, 0.28);
}
.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  margin-bottom: 8px;
}
.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}
.status-note {
  font-size: 13px;
  color: var(--ink-3);
}
.empty-block,
.preview-card {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 12px;
}
.empty-title,
.preview-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.empty-copy,
.preview-copy {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 14px;
  max-width: 52ch;
}
.preview-kicker {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-4);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.stat-row {
  display: flex;
  gap: 10px;
  margin: 16px 0;
}
.stat {
  flex: 1;
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.stat span {
  display: block;
  font-size: 12px;
  color: var(--ink-4);
}
.stat strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.ledger-form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.ledger-form[hidden] {
  display: none;
}
.ledger-form input,
.thread-input input {
  flex: 1;
  min-width: 140px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  font-size: 13px;
}
.ledger-table {
  margin-top: 8px;
}
.ledger-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.6fr 0.7fr;
  gap: 8px;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.ledger-row.head {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-4);
  letter-spacing: 0.04em;
}
.seg-approve {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: #f1f0f4;
  color: var(--lime-ink);
  font-size: 12px;
  font-weight: 700;
}
.ledger-empty {
  padding: 28px 4px;
  color: var(--ink-4);
  font-size: 13px;
}
.seg {
  display: flex;
  padding: 3px;
  background: var(--surface-2);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}
.seg button {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}
.seg button.is-on {
  background: #09090b;
  color: #fff;
  box-shadow: none;
}
.slot-rest {
  flex: 1;
  min-height: 88px;
  margin-top: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #f4f4f5;
  color: #52525b;
  font-size: 14px;
  line-height: 1.5;
}
.drive-grid[hidden],
.drive-folder[hidden],
#drive-seg[hidden],
#drive-back[hidden] {
  display: none !important;
}
.drive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(160px, 1fr);
  gap: 10px;
  margin-top: 8px;
  flex: 1;
  min-height: 0;
  align-content: stretch;
}
.drive-grid.is-list {
  grid-template-columns: 1fr;
}
.folder {
  text-align: left;
  background: #f4f4f5;
  border-radius: 18px;
  padding: 16px 18px;
  min-height: 88px;
  transition: background 0.15s;
}
.folder:hover {
  background: #ececee;
}
.folder .name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.folder .count {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: #52525b;
}
.drive-grid.is-list .folder {
  min-height: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}
.drive-grid.is-list .folder .count {
  margin-top: 0;
}
.folder-mark {
  width: 28px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(160deg, #f4f4f5, #d4d4d8);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #52525b;
}
.back-link::before {
  content: "←";
}
.file-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.file-row.head {
  color: #71717a;
  font-size: 13px;
  font-weight: 600;
}
.file-row.head strong {
  font-weight: 600;
  color: #71717a;
}
.file-row span {
  color: var(--ink-4);
}
.thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.msg {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.msg strong {
  font-size: 12px;
  color: var(--ink-3);
}
.msg p {
  margin-top: 4px;
  font-size: 14px;
}
.msg.citta-msg {
  background: var(--mint);
}
.inbox-body {
  min-width: 0;
  flex: 1;
}
.inbox-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.inbox-top time {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  color: #a1a1aa;
}
.inbox-item.is-unread time { color: #18181b; }
.inbox-item em {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.inbox-av {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}
.inbox-item.is-on,
.inbox-item:hover {
  background: #f4f4f5;
}
.chat-view {
  padding: 18px 20px;
  background: #fff;
  overflow: hidden;
}
.chat-head {
  display: block;
  min-height: 0;
  padding: 0 0 14px;
  background: transparent;
  border-bottom: none;
  text-align: left;
}
.chat-head h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.chat-head p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}
.chat-log {
  margin: 0;
  padding: 16px;
  border-radius: 18px;
  background: #f4f4f5;
  box-shadow: none;
}
.chat-log .msg-time {
  margin: 4px 0 12px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
}
.chat-log .msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 100%;
  margin-top: 14px;
  padding: 0;
  background: none;
  border-radius: 0;
}
.chat-log .msg.me {
  justify-content: flex-end;
}
.chat-log .msg-av {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #e7f3f8;
  color: #1d4e63;
  font-size: 12px;
  font-weight: 700;
}
.chat-log .msg-av.t1 { background: #f6eee6; color: #6b4b34; }
.chat-log .msg-av.t2 { background: #f8e8ea; color: #7a3e49; border-radius: 50%; }
.chat-log .bubble {
  max-width: min(420px, 72%);
  padding: 12px 14px;
  border-radius: 18px;
  background: #fff;
}
.chat-log .msg.me .bubble {
  background: #09090b;
  color: #fff;
}
.chat-log .bubble strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
}
.chat-log .msg.me .bubble strong {
  color: rgba(255, 255, 255, 0.72);
}
.chat-log .bubble p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.chat-view .thread-input {
  margin: 0;
  padding: 12px 0 0;
  align-items: center;
  background: transparent;
  border-top: none;
}
.chat-view .thread-input input {
  height: 36px;
  border-radius: 999px;
  background: #f4f4f5;
  padding: 0 14px;
  font-size: 14px;
}
.chat-view .thread-input input::placeholder {
  color: #8e8e93;
  opacity: 1;
}
.chat-view .thread-input .btn-dark {
  height: 32px;
  border-radius: 4px;
}
.thread-input {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.member-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.member-row span {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 600;
}
.lab-kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.lab-col {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 12px;
  min-height: 160px;
}
.lab-col h3 {
  font-size: 12px;
  margin-bottom: 10px;
  color: var(--ink-3);
}
@media (max-width: 800px) {
  .drive-grid,
  .lab-kanban {
    grid-template-columns: 1fr 1fr;
  }
  .ledger-row {
    grid-template-columns: 1fr 1fr;
  }
}
.day-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.day-num {
  font-size: 20px;
  font-weight: 700;
  margin: 2px 0 12px;
}
.event {
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--surface);
  margin-bottom: 6px;
  border-left: 3px solid var(--ink);
  font-size: 12px;
}
.event.teaching {
  border-left-color: var(--citta);
}
.event.meet {
  border-left-color: var(--warn);
}
.event .t {
  font-weight: 700;
}
.event .m {
  color: var(--ink-4);
  margin-top: 2px;
  font-size: 11px;
}

@media (max-width: 800px) {
  .week {
    grid-template-columns: 1fr 1fr;
  }
}

/* ——— Cosmo ——— */
.cosmo-wrap {
  flex: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: visible;
  text-align: left;
}
.cosmo-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
}
.cosmo-body[hidden] {
  display: none;
}
.cosmo-dock {
  display: flex;
  width: fit-content;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(40, 36, 56, 0.05);
}
.cosmo-dock button {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #71717a;
}
.cosmo-dock button.is-on {
  background: #f4f4f5;
  color: #09090b;
}
.cosmo-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.cosmo-head h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.cosmo-head h1 em {
  margin-left: 10px;
  font-style: normal;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  color: #71717a;
}
.cosmo-head p {
  margin-top: 6px;
  max-width: 640px;
  font-size: 14px;
  line-height: 1.5;
  color: #52525b;
}
.cosmo-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.cosmo-search {
  width: 280px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(40, 36, 56, 0.05);
}
.cosmo-search input {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  background: transparent;
}
.cosmo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.filters {
  display: flex;
  justify-content: flex-start;
  gap: 4px;
  flex-wrap: wrap;
}
.filter {
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #52525b;
  background: transparent;
}
.filter.is-on {
  background: #fff;
  color: #09090b;
  box-shadow: 0 10px 28px rgba(40, 36, 56, 0.05);
}
.cosmo-quota-line {
  flex-shrink: 0;
  font-size: 14px;
  color: #71717a;
}
.cosmo-quota-line button {
  margin-left: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #18181b;
}
.twins {
  margin: 0;
  text-align: left;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}
.twins[hidden],
.twin[hidden],
.cosmo-empty[hidden] {
  display: none;
}
.cosmo-empty {
  min-height: 120px;
  display: grid;
  place-items: center;
}
.cosmo-empty button {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #09090b;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.twin {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-height: 188px;
  padding: 18px 18px 16px;
  background: #fff;
  border-radius: 20px;
  text-align: left;
  width: 100%;
  box-shadow: 0 10px 28px rgba(40, 36, 56, 0.05);
}
.twin:hover {
  box-shadow: 0 14px 32px rgba(40, 36, 56, 0.1);
}
.twin.is-on {
  box-shadow: 0 0 0 1.5px #09090b, 0 10px 28px rgba(40, 36, 56, 0.05);
}
.cosmo-pick {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 0 0 1.5px #09090b, 0 10px 28px rgba(40, 36, 56, 0.05);
}
.cosmo-pick-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.cosmo-pick-head p,
.cosmo-pick .hint {
  font-size: 14px;
  line-height: 1.45;
  color: #52525b;
}
.cosmo-pick-close {
  flex-shrink: 0;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f4f4f5;
  font-size: 14px;
  font-weight: 600;
  color: #18181b;
}
.cosmo-pick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cosmo-pick-prompts button {
  padding: 10px 14px;
  border-radius: 999px;
  background: #f4f4f5;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  color: #09090b;
}
.cosmo-pick-prompts button:disabled {
  color: #71717a;
}
.twin-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.twin-id {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.twin-av {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e7f3f8;
  color: #1d4e63;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.twin-av.t1 { background: #f6eee6; color: #6b4b34; }
.twin-av.t2 { background: #f8e8ea; color: #7a3e49; }
.twin-av.t3 { background: #e8eef6; color: #314564; }
.twin-av.t4 { background: #f3f0e6; color: #5c5344; }
.twin .name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.twin .meta {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: #52525b;
}
.twin .meta.is-hold {
  color: #71717a;
}
.twin .role {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.45;
  color: #52525b;
}
.twin-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.twin-tags span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f4f4f5;
  font-size: 14px;
  color: #52525b;
}
.skill-page {
  flex: 1;
  min-height: 100%;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 20px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 10px 28px rgba(40, 36, 56, 0.05);
}
.skill-page[hidden] {
  display: none;
}
.skill-back {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  color: #18181b;
}
.skill-hero {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}
.skill-mark {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #f4f4f5;
  color: #09090b;
  font-size: 22px;
  font-weight: 700;
}
.skill-mark.is-ink {
  background: #09090b;
  color: #fff;
}
.skill-hero h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.skill-hero .role {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
  color: #52525b;
}
.skill-hero .by {
  margin-top: 6px;
  font-size: 13px;
  color: #71717a;
}
.skill-use {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: #09090b;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.skill-use:disabled {
  background: #f4f4f5;
  color: #71717a;
}
.skill-disc {
  font-size: 13px;
  line-height: 1.45;
  color: #52525b;
}
.skill-block {
  background: #f4f4f5;
  border-radius: 16px;
  padding: 16px 18px;
}
.skill-block h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}
.skill-block ul {
  list-style: none;
}
.skill-block li {
  font-size: 14px;
  line-height: 1.5;
  padding: 5px 0;
  color: #18181b;
}
.skill-prompts {
  display: grid;
  gap: 8px;
}
.skill-prompts button {
  text-align: left;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  line-height: 1.45;
  color: #09090b;
}
.skill-prompts button:disabled {
  color: #71717a;
}
@media (max-width: 1100px) {
  .twins {
    grid-template-columns: 1fr 1fr;
  }
  .cosmo-head,
  .cosmo-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .cosmo-search {
    width: 100%;
  }
}
@media (max-width: 720px) {
  .twins {
    grid-template-columns: 1fr;
  }
}

.lanes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.lane {
  background: var(--surface);
  border-radius: var(--radius-lg);
  min-height: 160px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.lane h2 {
  font-size: 14px;
  font-weight: 700;
}
.lane p {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-3);
}
.kanban-views {
  margin-top: 12px;
  flex-wrap: wrap;
}
.sym-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 12px;
  flex: 1;
  min-height: 0;
  height: 100%;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  align-items: stretch;
}
.sym-nav,
.sym-stage {
  min-height: 0;
  overflow: auto;
}
.sym-nav {
  height: 100%;
  max-height: none;
  padding: 18px 12px 20px;
  background: #fff;
  border-radius: 28px;
  border-right: none;
  box-shadow: 0 10px 28px rgba(40, 36, 56, 0.05);
}
.sym-nav .role {
  margin: 4px 8px 8px;
}
.sym-split {
  margin-top: 18px !important;
}
.sym-owner,
.sym-tabs button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink-2, #3a3a40);
}
.sym-owner.is-on,
.sym-tabs button.is-on {
  background: #f4f4f5;
  color: #09090b;
  font-weight: 600;
}
.sym-tabs {
  display: grid;
  gap: 2px;
  margin: 4px 0 8px;
  padding-left: 8px;
}
.sym-stage {
  display: flex;
  flex-direction: column;
  padding: 22px 24px 32px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 10px 28px rgba(40, 36, 56, 0.05);
}
.sym-panel {
  display: none;
}
.sym-panel.is-on {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100%;
}
.sym-panel.is-on > .sym-card:last-child {
  flex: 1;
}
.sym-stage h1 {
  font-size: 28px;
  letter-spacing: -0.04em;
}
.sym-stage .subhead,
.sym-card p,
.facts {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}
.sym-card {
  margin-top: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #f4f4f5;
}
.sym-card h2 {
  font-size: 15px;
  margin-bottom: 6px;
}
.sym-card label {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
}
.sym-card select,
.sym-card input[type="search"] {
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e4e2ea;
  background: #fff;
}
.facts {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 12px;
  margin-top: 10px;
}
.facts dt {
  color: var(--ink-4);
}
.facts dd {
  color: var(--ink);
}
.switch-line {
  display: flex !important;
  align-items: center;
  gap: 8px;
  grid-template-columns: none;
}
.unverified {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-4);
}
.disc {
  font-weight: 600;
  color: var(--ink);
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(16px);
  background: #3d7eae;
  color: #f4fbff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
  z-index: 100;
}
.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ——— Notion page ——— */
#view-home.is-active,
#view-desk.is-active,
#view-symbion.is-active,
#view-cosmo.is-active,
#view-browser.is-active {
  padding-top: 28px;
  padding-inline: 48px;
  background: #fff;
}
.page-bar h1,
.today-head h1,
.cosmo-wrap .welcome,
.sheet-hero h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #37352f;
}
.sheet-label,
.today-lead,
.page-bar p {
  color: #787774;
  font-weight: 400;
}
.today-card,
.sheet,
.inbox,
.chat-view,
.desk-board,
.twin,
.sym-card,
.sym-nav,
.sym-panel,
.citta-pane {
  border-radius: 4px;
  box-shadow: none;
  border: 1px solid rgba(55, 53, 47, 0.09);
}
.today-card {
  border: none;
  border-radius: 0;
  padding: 0 4px;
  background: transparent;
  overflow: visible;
  box-shadow: none;
}
.today {
  gap: 40px;
}
.agenda {
  gap: 0;
}
.agenda-item {
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  padding: 8px 8px;
}
.agenda-item:hover {
  background: rgba(55, 53, 47, 0.04);
}
.agenda-item.is-today {
  background: rgba(55, 53, 47, 0.06);
  box-shadow: none;
}
.agenda-item.is-quiet {
  background: transparent;
  color: #9b9a97;
}
.agenda-item.is-quiet:hover {
  background: rgba(55, 53, 47, 0.04);
  color: #37352f;
}
.week-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
  flex: 1;
  min-height: 280px;
  border-top: 1px solid rgba(55, 53, 47, 0.09);
}
.week-day {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
  padding: 8px 6px 12px;
  border-right: 1px solid rgba(55, 53, 47, 0.09);
}
.week-day:last-child { border-right: none; }
.week-day.is-today { background: rgba(55, 53, 47, 0.04); }
.week-day-h {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 4px;
  border-radius: 4px;
  color: #9b9a97;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
}
.week-day:not(:has(.week-event)) .week-day-h { flex: 1; }
.week-day-h i {
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  color: #37352f;
  line-height: 24px;
}
.week-day.is-today .week-day-h i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #37352f;
  color: #fff;
}
.week-day-h:hover { background: rgba(55, 53, 47, 0.06); }
.week-day:not(:has(.week-event)) .week-day-h::after {
  content: "+";
  margin-top: auto;
  font-size: 16px;
  line-height: 1;
  color: #9b9a97;
  opacity: 0;
}
.week-day:not(:has(.week-event)):hover .week-day-h::after { opacity: 1; }
.week-event {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid rgba(55, 53, 47, 0.12);
  background: #fff;
  text-align: left;
}
.week-event time,
.week-event em {
  font-style: normal;
  font-size: 12px;
  line-height: 1.35;
  color: #787774;
}
.week-event strong {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.week-event:hover { background: rgba(55, 53, 47, 0.04); }
.kb {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  margin-top: 8px;
  flex: 1;
}
.kb-col {
  min-width: 0;
  min-height: 280px;
  padding: 12px;
  border-radius: 6px;
  background: #f7f6f3;
}
.kb-col header {
  margin-bottom: 10px;
}
.kb-col h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.kb-col header p {
  margin-top: 2px;
  font-size: 12px;
  color: #9b9a97;
}
.kb-card {
  padding: 12px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid rgba(55, 53, 47, 0.09);
}
.kb-card strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.kb-card time {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #787774;
}
.kb-card p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
  color: #37352f;
}
.citta-called {
  margin-top: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.todo-item {
  border-radius: 4px;
  background: transparent;
  padding: 6px 8px;
}
.todo-item:hover { background: rgba(55, 53, 47, 0.04); }
.todo-item input {
  border-radius: 3px;
  border-color: rgba(55, 53, 47, 0.4);
}
.todo-item input:checked {
  border-color: #37352f;
  background-color: #37352f;
}
.todo-item span { color: #37352f; }
.todo-item:has(input:checked) span { color: #9b9a97; }
.todo-compose input {
  height: 32px;
  border-radius: 4px;
  color: #37352f;
}
.todo-compose input:hover,
.todo-compose input:focus {
  background: rgba(55, 53, 47, 0.04);
}
.btn-next,
.desk-tab.is-active,
.filter.is-on {
  border-radius: 4px;
  background: rgba(55, 53, 47, 0.08);
  color: #37352f;
  box-shadow: none;
  font-weight: 500;
}
.btn-next {
  height: 28px;
  background: #37352f;
  color: #fff;
}
.btn-next:disabled {
  background: rgba(55, 53, 47, 0.08);
  color: #9b9a97;
}
.desk-nav {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  border-bottom: 1px solid rgba(55, 53, 47, 0.09);
  width: 100%;
  gap: 2px;
}
.desk-tab {
  border-radius: 4px 4px 0 0;
  margin-bottom: -1px;
}
.desk-tab.is-active {
  background: transparent;
  color: #37352f;
  box-shadow: inset 0 -2px 0 #37352f;
}
#view-desk .page-bar {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-height: 0;
}
#view-desk .page-bar h1 {
  margin: 0;
  white-space: nowrap;
}
.tl-row i {
  border-radius: 4px;
  background: transparent;
  border: 1px solid rgba(55, 53, 47, 0.06);
}
.tl-row i.today {
  background: rgba(55, 53, 47, 0.04);
  border-color: transparent;
}
.tl-row b,
.tl-chip {
  border-radius: 4px;
  box-shadow: none;
  border: 1px solid rgba(55, 53, 47, 0.16);
  background: #fff;
  color: #37352f;
}
.sym-nav,
.sym-stage {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}
.sym-nav { border-right: 1px solid rgba(55, 53, 47, 0.09); }
.sym-card {
  margin-top: 0;
  padding: 16px 0;
  border: none;
  border-radius: 0;
  background: #fff;
  border-top: 1px solid rgba(55, 53, 47, 0.09);
  box-shadow: none;
}
.sym-panel { border: none; box-shadow: none; background: transparent; }
.filter {
  border-radius: 4px;
  color: #787774;
  font-weight: 500;
}
.filter:hover { background: rgba(55, 53, 47, 0.06); }
.twin {
  border-radius: 4px;
  min-height: 0;
  padding: 14px;
}
.twin:hover { background: rgba(55, 53, 47, 0.03); }
.inbox {
  border-radius: 0;
  border: none;
  border-right: 1px solid rgba(55, 53, 47, 0.09);
  box-shadow: none;
  background: #f7f6f3;
}
.chat-view {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}
.chat-log {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.chat-head h1 {
  font-size: 32px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.inbox-item.is-on,
.inbox-item:hover {
  background: rgba(55, 53, 47, 0.06);
}
.citta-dock {
  border-radius: 8px;
  border: 1px solid rgba(55, 53, 47, 0.12);
  box-shadow: 0 4px 16px rgba(15, 15, 15, 0.08);
  padding: 8px;
}
.citta-dock .citta-mark,
.present-av.citta {
  border-radius: 4px;
  background: #37352f;
}
.toast {
  background: #37352f;
  color: #fff;
  border-radius: 4px;
  font-weight: 500;
}
.link-quiet { font-weight: 500; color: #787774; }
.link-quiet:hover { background: rgba(55, 53, 47, 0.06); border-radius: 4px; color: #37352f; }
}

.home-seg {
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 8px;
  background: #f7f6f3;
  flex: none;
}
.home-seg button {
  height: 28px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #787774;
}
.home-seg button.is-on {
  background: #fff;
  color: #37352f;
  box-shadow: inset 0 0 0 1px rgba(55, 53, 47, 0.09);
}
.work-loop[hidden],
.week-board[hidden],
.edit-stage[hidden],
.edit-grid[hidden],
.edit-sheet[hidden],
.edit-canvas[hidden] {
  display: none !important;
}
.edit-stage {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 280px;
  margin-top: 18px;
}
.edit-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.edit-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 168px;
  padding: 14px;
  border: 1px solid rgba(55, 53, 47, 0.09);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}
.edit-card:hover { background: rgba(55, 53, 47, 0.04); }
.edit-card strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.edit-mark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 64px;
  padding: 12px;
  border-radius: 6px;
  background: #f7f6f3;
}
.edit-mark i {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: rgba(55, 53, 47, 0.18);
}
.edit-mark i:first-child { width: 46%; background: #e07a5f; }
.edit-mark.is-code i:first-child { width: 28%; background: #2f9e44; }
.edit-mark.is-grid {
  background:
    linear-gradient(rgba(55, 53, 47, 0.12) 1px, transparent 1px) 0 0 / 100% 16px,
    linear-gradient(90deg, rgba(55, 53, 47, 0.12) 1px, transparent 1px) 0 0 / 20% 100%,
    #f7f6f3;
}
.edit-mark.is-tex {
  align-items: center;
  font-size: 22px;
  color: #2f9e44;
}
.edit-mark.is-deck i {
  width: 100%;
  height: 8px;
  background: #d6336c;
}
.edit-by {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 12px;
  color: #787774;
}
.edit-badge {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}
.edit-badge.ed { background: #e07a5f; }
.edit-badge.an { background: #4c6ef5; }
.edit-badge.co { background: #2f9e44; }
.edit-badge.de { background: #d6336c; }
.edit-sheet {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
}
.edit-back {
  align-self: flex-start;
  font-size: 13px;
  color: #787774;
}
.edit-back:hover { color: #37352f; }
.edit-sheet h2 {
  font-size: 22px;
  letter-spacing: -0.03em;
}
.edit-sheet header p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
  color: #787774;
}
.edit-canvas textarea,
.edit-table input,
.edit-slides input {
  width: 100%;
  border: 1px solid rgba(55, 53, 47, 0.12);
  border-radius: 4px;
  background: #fff;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #37352f;
}
.edit-canvas textarea {
  min-height: 240px;
  resize: vertical;
}
.edit-table {
  width: 100%;
  border-collapse: collapse;
}
.edit-table th {
  padding: 8px 10px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #787774;
  border-bottom: 1px solid rgba(55, 53, 47, 0.09);
}
.edit-table td { padding: 8px 4px; }
.edit-slides {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.edit-slides label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #787774;
}
.work-loop {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.work-head,
.work-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr) auto;
  column-gap: 20px;
  align-items: center;
}
.work-head {
  padding: 0 8px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #9b9a97;
}
.work-head span:last-child { text-align: right; }
.work-row {
  margin: 0 -8px;
  padding: 16px 8px;
  border-top: 1px solid rgba(55, 53, 47, 0.09);
}
.work-row:hover { background: rgba(55, 53, 47, 0.04); }
.work-main {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.work-main strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.work-main em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 13px;
  line-height: 1.4;
  color: #787774;
}
.work-citta {
  margin: 0;
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #37352f;
}
.work-gate {
  justify-self: end;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: #37352f;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.work-gate:hover { background: #2f2d29; }
.work-gate:disabled {
  height: auto;
  padding: 0;
  background: transparent;
  color: #9b9a97;
  font-weight: 500;
  cursor: default;
}
.work-quiet {
  justify-self: end;
  font-size: 13px;
  color: #9b9a97;
}
.nod.is-focus {
  margin-left: -8px;
  margin-right: -8px;
  padding: 8px;
  border-radius: 6px;
  background: rgba(55, 53, 47, 0.06);
}

/* pages fill the viewport under the chrome */
.bench,
.msg-layout,
.sym-layout {
  height: 100%;
}
.cosmo-wrap {
  flex: 1 0 auto;
  min-height: 100%;
  height: auto;
}
.kb-col {
  min-height: 0;
  height: 100%;
}
.folder {
  height: 100%;
  min-height: 160px;
}
.drive-grid.is-list {
  grid-template-rows: none;
  align-content: start;
}
.drive-grid.is-list .folder {
  height: auto;
  min-height: 0;
}
.drive-folder {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #f7f6f3;
  border-radius: 6px;
  padding: 8px 12px 16px;
}
#ledger-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #f7f6f3;
  border-radius: 6px;
  padding: 4px 8px 12px;
}
.bench .desk-board.is-on {
  padding-bottom: 0;
}
.browser-doc {
  flex: 1;
  min-height: 100%;
}
body.citta-collapsed .chat-view .thread-input {
  padding-right: 300px;
}

/* reading comfort: one CJK scale, no tight tracking */
.main-pane {
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0;
  line-break: strict;
}
.main-pane h1,
.main-pane h2,
.main-pane h3,
.main-pane p,
.main-pane li,
.main-pane button,
.main-pane input,
.main-pane textarea,
.main-pane time,
.main-pane em,
.main-pane span,
.main-pane strong,
.main-pane label {
  letter-spacing: 0;
}
#view-home.is-active,
#view-desk.is-active,
#view-symbion.is-active,
#view-cosmo.is-active,
#view-browser.is-active {
  padding-top: 40px;
  padding-inline: 64px;
}
.page-bar h1,
.today-head h1,
.today-week h1,
.cosmo-head h1,
.chat-head h1,
.sheet-hero h1,
.sym-stage h1,
.browser-doc h1 {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}
.page-bar {
  margin-bottom: 8px;
}
.board-head,
.cosmo-head,
.today-head {
  align-items: center;
  margin-bottom: 4px;
}
.sheet-label,
.subhead,
.page-bar p,
.cosmo-head p,
.work-head,
.work-main em,
.kb-col header p,
.kb-card time,
.kb-card p,
.cal-day header span,
.cal-event span,
.cal-event em,
.connect-row em,
.nod p {
  font-size: 14px;
  line-height: 1.55;
  color: #615e58;
}
.work-head,
.kb-col header p,
.sheet-label {
  font-size: 13px;
  font-weight: 600;
  color: #615e58;
}
.today {
  gap: 56px;
}
.today-side {
  gap: 32px;
}
.connect-row {
  margin-top: 20px;
  gap: 4px 16px;
}
.connect-row button.is-live {
  height: 32px;
  padding: 0 8px;
  font-size: 14px;
}
.work-loop {
  margin-top: 28px;
}
.work-head,
.work-row {
  column-gap: 28px;
}
.work-row {
  padding: 18px 8px;
}
.work-main strong,
.kb-card strong,
.nod h2,
.cal-event strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.work-citta,
.twin p,
.sym-card p,
.mail-body,
.chat-log .bubble p {
  font-size: 15px;
  line-height: 1.6;
}
.kb {
  gap: 16px;
  margin-top: 16px;
}
.kb-col {
  padding: 16px;
}
.kb-card {
  padding: 14px 14px 16px;
}
.kb-card + .kb-card {
  margin-top: 10px;
}
.cal-week {
  gap: 12px;
  margin-top: 20px;
}
.cal-day {
  padding: 16px;
  gap: 12px;
}
.cal-event {
  padding: 10px 12px;
  line-height: 1.5;
}
.cal-event em {
  display: block;
  margin-top: 4px;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.kb-card p,
.work-citta {
  word-break: keep-all;
  overflow-wrap: break-word;
}
.sym-panel.is-on,
.browser-doc,
.mail-body {
  max-width: 68ch;
}
.sym-stage {
  padding: 4px 8px 32px 28px;
}
.sym-card {
  padding: 20px 0;
}
.sym-card h2,
.desk-board h2,
.board-head h2 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.twin {
  padding: 16px 16px 18px;
  gap: 8px;
}
.cosmo-head h1 em {
  font-size: 15px;
  font-weight: 500;
  color: #615e58;
}
.chat-head {
  padding-bottom: 16px;
}
.chat-log .bubble p {
  font-size: 15px;
}
.inbox-item {
  padding-top: 10px;
  padding-bottom: 10px;
}
.nod + .nod {
  margin-top: 16px;
  padding-top: 16px;
}

/* Kimi reading rhythm: body leads, titles stay quiet, long text sits in one column */
.app {
  grid-template-columns: 248px minmax(0, 1fr);
}
.rail {
  padding: 12px 10px 14px;
  gap: 2px;
}
.rail-btn {
  height: 36px;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 500;
}
.rail-user {
  height: 36px;
  border-radius: 8px;
}
.main-pane {
  font-size: 16px;
  line-height: 1.8;
  color: #37352f;
}
.page-bar h1,
.today-head h1,
.today-week h1,
.cosmo-head h1,
.chat-head h1,
.chat-empty h1,
.sheet-hero h1,
.sym-stage h1,
.browser-doc h1,
.inbox-head strong {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.45;
}
.sym-card h2,
.desk-board h2,
.board-head h2,
.browser-doc h2,
.mail-body h2 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: #37352f;
}
.sym-card p,
.mail-body,
.mail-body p,
.browser-doc p,
.browser-doc li,
.work-citta,
.chat-log .bubble p,
.twin p {
  font-size: 16px;
  line-height: 1.8;
  color: #37352f;
}
.sym-card p + p,
.mail-body p + p,
.browser-doc p + p,
.browser-doc li + li {
  margin-top: 10px;
}
.sym-panel.is-on,
.browser-doc,
.mail-read,
.mail-body {
  max-width: 720px;
}
.browser-doc {
  margin-inline: auto;
}
.sym-card {
  margin-top: 8px;
  padding: 8px 0 20px;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid rgba(55, 53, 47, 0.09);
}
.inbox,
.chat-view {
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}
.msg-layout {
  gap: 0;
  background: #fff;
}
.inbox {
  background: #f7f6f3;
  padding: 20px 12px;
}
.inbox-item {
  border-radius: 8px;
  padding: 10px 12px;
}
.inbox-item.is-on,
.inbox-item:hover {
  background: rgba(55, 53, 47, 0.08);
}
.chat-view {
  padding: 28px 40px 20px;
}
.chat-log {
  max-width: 720px;
  width: 100%;
  margin: 0;
  padding: 8px 0 28px;
  border-radius: 0;
  background: transparent;
}
.chat-log .bubble p {
  font-size: 16px;
  line-height: 1.75;
}
.chat-view .thread-input {
  max-width: 720px;
  width: 100%;
  margin: 0;
  padding: 6px 6px 6px 16px;
  border: 1px solid rgba(55, 53, 47, 0.12);
  border-radius: 16px;
  background: #fff;
}
.chat-view .thread-input input {
  height: 44px;
  border-radius: 10px;
  background: transparent;
  font-size: 16px;
}
body.citta-collapsed .chat-view .thread-input {
  padding-right: 8px;
}

/* one page shell: Feishu header + underline tabs + filling body */
.view.is-active {
  gap: 0;
}
#view-home.is-active,
#view-desk.is-active,
#view-chat.is-active,
#view-symbion.is-active,
#view-cosmo.is-active,
#view-browser.is-active {
  padding: 0;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  height: 52px;
  min-height: 52px;
  margin: 0;
  padding: 0 16px 0 20px;
  border-bottom: 1px solid rgba(55, 53, 47, 0.09);
  background: #fff;
  flex-shrink: 0;
}
.page-head h1,
.page-bar.page-head h1,
.today-head h1,
.chat-head h1,
.cosmo-head h1,
.inbox-head strong {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}
.page-tabs,
.home-seg,
.desk-nav,
.cosmo-dock {
  display: flex;
  align-items: stretch;
  height: 52px;
  margin: 0;
  padding: 0;
  gap: 0;
  background: transparent;
  border-radius: 0;
}
.page-tabs button,
.home-seg button,
.desk-tab,
.cosmo-dock button {
  height: 52px;
  padding: 0 12px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #787774;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}
.home-seg button.is-on,
.desk-tab.is-active,
.cosmo-dock button.is-on {
  background: transparent;
  box-shadow: none;
  color: #37352f;
  font-weight: 600;
  border-bottom-color: #37352f;
}
.cosmo-head .page-tabs { margin-right: auto; }
.page-head .cosmo-tools { margin-left: auto; }
.cosmo-head h1 em { font-size: 16px; font-weight: 600; color: #37352f; }
.cosmo-lead {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #615e58;
}
.filter {
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  background: transparent;
  color: #615e58;
  font-size: 13px;
  font-weight: 500;
}
.filter.is-on {
  background: rgba(55, 53, 47, 0.08);
  color: #37352f;
}

#view-home .today {
  flex: 1;
  min-width: 0;
  min-height: 0;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0;
}
.today-week {
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #fff;
}
.connect-row {
  height: 40px;
  margin: 0;
  padding: 0 20px;
  gap: 4px 20px;
  border-bottom: 1px solid rgba(55, 53, 47, 0.09);
  align-items: center;
}
.work-loop { margin: 0; }
.work-head,
.work-row {
  padding-left: 20px;
  padding-right: 16px;
}
.today-side {
  min-height: 0;
  overflow: auto;
  gap: 0;
  border-left: 1px solid rgba(55, 53, 47, 0.09);
  background: #fff;
}
.today-side .today-card {
  margin: 0;
  padding: 16px 16px 12px;
  border: none;
  border-bottom: 1px solid rgba(55, 53, 47, 0.09);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.today-side .citta-called {
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.btn-next,
.work-gate {
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  background: #37352f;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}
.work-gate:disabled {
  height: auto;
  padding: 0;
  background: transparent;
  color: #787774;
}

#view-desk .bench {
  flex: 1;
  min-height: 0;
  padding: 16px 20px 0;
}
#view-desk .page-bar.page-head {
  flex-direction: row;
  align-items: center;
  height: 52px;
  min-height: 52px;
  gap: 8px;
}
#view-desk .desk-nav {
  width: auto;
  height: 52px;
  border-bottom: none;
}
.board-head {
  min-height: 36px;
  margin-bottom: 12px;
}
.board-head h2,
.desk-board h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.msg-layout {
  height: 100%;
  gap: 0;
}
.inbox {
  border-right: 1px solid rgba(55, 53, 47, 0.09);
  background: #fff;
  padding: 0 0 12px;
}
.inbox-head.page-head {
  height: auto;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0 12px 10px;
}
.inbox-head.page-head strong {
  display: flex;
  align-items: center;
  height: 52px;
}
.inbox-search { margin: 0; }
.inbox-search input {
  height: 32px;
  border-radius: 6px;
  background: #f7f6f3;
}
.chat-view {
  padding: 0;
}
.chat-head.page-head p {
  margin: 0 0 0 8px;
  font-size: 13px;
  color: #787774;
}
.chat-log {
  flex: 1;
  max-width: none;
  margin: 0;
  padding: 16px 20px 24px;
}
.chat-view .thread-input {
  max-width: none;
  width: auto;
  margin: 0 16px 16px;
  border-radius: 8px;
  border: 1px solid rgba(55, 53, 47, 0.12);
}
body.citta-collapsed .chat-view .thread-input {
  margin-right: 280px;
  padding-right: 8px;
}

#view-symbion .sym-layout {
  height: 100%;
  gap: 0;
  grid-template-columns: 200px minmax(0, 1fr);
}
.sym-nav {
  height: 100%;
  padding: 12px 8px;
  border-radius: 0;
  background: #f7f6f3;
  border-right: 1px solid rgba(55, 53, 47, 0.09);
  box-shadow: none;
}
.sym-owner,
.sym-tabs button {
  width: 100%;
  height: 32px;
  margin: 0;
  padding: 0 10px;
  border-radius: 6px;
  border-bottom: none;
  background: transparent;
  box-shadow: none;
  color: #37352f;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}
.sym-owner.is-on,
.sym-tabs button.is-on {
  background: rgba(55, 53, 47, 0.08);
  color: #37352f;
  border-bottom-color: transparent;
}
.sym-stage { padding: 0; }
.sym-panel.is-on {
  max-width: none;
  height: 100%;
  padding: 0 32px 40px;
  overflow: auto;
}
.sym-panel.is-on > h1 {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 52px;
  margin: 0 -32px 8px;
  padding: 0 32px;
  background: #fff;
  border-bottom: 1px solid rgba(55, 53, 47, 0.09);
  font-size: 16px;
  font-weight: 600;
}
.sym-panel.is-on > .subhead,
.sym-panel.is-on > .sym-card,
.sym-panel.is-on > #sym-citta,
.sym-panel.is-on > #sym-skill,
.sym-panel.is-on > #sym-loop {
  max-width: 720px;
}

#view-cosmo .cosmo-wrap,
#view-cosmo .cosmo-body {
  height: 100%;
  min-height: 0;
}
#view-cosmo .cosmo-body {
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: 0 24px 32px;
}
#view-cosmo .cosmo-head {
  margin: 0 -24px 16px;
}
.browser-doc {
  padding: 28px 32px 40px;
}

.citta-dock-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.citta-dock-top .citta-dock-open { flex: 1; }
.avatar-switch {
  height: 28px;
  margin-top: 2px;
  padding: 0 8px;
  border-radius: 6px;
  background: #37352f;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.avatar-menu {
  position: absolute;
  right: 8px;
  bottom: calc(100% + 6px);
  z-index: 2;
  min-width: 180px;
  padding: 4px;
  background: #fff;
  border: 1px solid rgba(55, 53, 47, 0.12);
  border-radius: 6px;
}
.avatar-menu button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  text-align: left;
  font-size: 14px;
  color: #37352f;
}
.avatar-menu button.is-on { font-weight: 600; background: rgba(55, 53, 47, 0.08); }
.avatar-menu button:hover { background: rgba(55, 53, 47, 0.06); }
.avatar-menu p {
  margin: 0;
  padding: 8px 10px;
  color: #615e58;
  font-size: 13px;
  line-height: 1.6;
}
.summon-menu {
  position: fixed;
  z-index: 80;
  min-width: 196px;
  padding: 4px;
  background: #fff;
  border: 1px solid rgba(55, 53, 47, 0.12);
  border-radius: 6px;
}
.summon-menu button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  text-align: left;
  font-size: 14px;
  color: #37352f;
}
.summon-menu button:hover { background: rgba(55, 53, 47, 0.06); }
.summon-hint {
  margin: 8px 0 0;
  color: #615e58;
  font-size: 14px;
  line-height: 1.7;
}
.owner-rows { margin-top: 4px; }
.owner-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(55, 53, 47, 0.09);
  font-size: 14px;
  line-height: 1.7;
  color: #37352f;
}
.owner-skill { margin-top: 16px; }
.skill-note {
  margin: 8px 0 0;
  color: #615e58;
  font-size: 14px;
  line-height: 1.7;
}
.cosmo-pick .btn-next { margin: 0 0 8px; }
#view-desk .desk-nav { max-width: 100%; overflow-x: auto; }
[data-desk-panel="mycosmo"] .board-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* One warm paper system. Later rules win over leftover zinc, ice, and saturated badges. */
.inbox,
.chat-view,
.sym-card,
.kb-col,
.kb-card,
.twin,
.twin:hover,
.twin.is-on,
.cosmo-pick,
.draft-card,
.mail-read,
.week-card,
.edit-card {
  border-radius: 8px;
  box-shadow: none;
}
.inbox,
.chat-view {
  border-radius: 0;
  background: #fff;
}
.twin,
.twin:hover,
.twin.is-on,
.cosmo-pick {
  border: 1px solid rgba(55, 53, 47, 0.09);
  background: #fff;
}
.twin:hover { background: rgba(55, 53, 47, 0.04); }
.twin.is-on,
.cosmo-pick {
  box-shadow: inset 0 0 0 1px #37352f;
}

.inbox-av,
.inbox-av.t1,
.inbox-av.t2,
.twin-av,
.twin-av.t1,
.twin-av.t2,
.twin-av.t3,
.twin-av.t4,
.rail-avatar,
.present-av,
.chat-log .msg-av,
.chat-log .msg-av.t1,
.chat-log .msg-av.t2 {
  background: #f1f0ec;
  color: #37352f;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0;
}
.rail-avatar { border-radius: 4px; }
.present-av.citta,
.citta-mark,
.citta-dock .citta-mark {
  background: #37352f;
  color: #fff;
  border-radius: 4px;
}

.edit-badge,
.edit-badge.ed,
.edit-badge.an,
.edit-badge.co,
.edit-badge.de {
  background: rgba(55, 53, 47, 0.08);
  color: #37352f;
  border-radius: 4px;
}
.edit-mark i,
.edit-mark i:first-child,
.edit-mark.is-code i:first-child,
.edit-mark.is-deck i {
  background: rgba(55, 53, 47, 0.22);
}
.edit-mark.is-tex { color: #37352f; }

.pill,
.pill-ok,
.pill-mute,
.pill-warn {
  background: rgba(55, 53, 47, 0.06);
  color: #615e58;
  border-radius: 4px;
  font-weight: 500;
}
.inbox-badge {
  background: #37352f;
  color: #fff;
  border-radius: 4px;
}

.inbox-item em,
.inbox-item.is-unread em,
.inbox-item:not(.is-unread) em,
.inbox-top time,
.inbox-item.is-unread time,
.present-list em,
.called-label {
  color: #615e58;
}
.inbox-item.is-unread strong,
.present-list strong { color: #37352f; }
.inbox-item.is-on,
.inbox-item:hover,
.mail-row.is-on,
.mail-row:hover {
  background: rgba(55, 53, 47, 0.06);
}

.btn-next,
.btn-dark,
.work-gate,
.avatar-switch,
.cosmo-empty button {
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  background: #37352f;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
}
.btn-next:disabled,
.btn-dark:disabled {
  background: transparent;
  color: #9b9a97;
}
.link-quiet,
.edit-back { color: #615e58; }

.inbox-search input,
.thread-input input,
.filter,
.chip,
.tl-chip {
  border-radius: 6px;
  background: rgba(55, 53, 47, 0.06);
  color: #37352f;
}
.chat-log .bubble,
.chat-log .msg.me .bubble,
.bubble,
.bubble.me,
.bubble.ai {
  border-radius: 8px;
  background: #f7f6f3;
  color: #37352f;
  box-shadow: none;
}
.chat-log .msg.me .bubble strong,
.bubble.me { color: #37352f; }

.page-head strong,
.board-head h2,
.twin .name,
.edit-card strong,
.inbox-title {
  letter-spacing: 0;
  color: #37352f;
}
input[type="checkbox"] { accent-color: #37352f; }
.connect-row button.is-live::before { background: #787774; }

/* Notion page rhythm: 32px inset, title above the tabs, rows share one left edge. */
.rail {
  padding: 16px 10px 16px;
  gap: 2px;
}
.rail-workspace {
  height: 36px;
  margin: 4px 6px 18px;
}
.rail-btn,
.rail-user {
  height: 34px;
  border-radius: 6px;
}
.rail-btn svg { display: block; }

#view-home .page-head.today-head,
#view-desk .page-bar.page-head,
#view-cosmo .cosmo-head.page-head {
  height: auto;
  min-height: 0;
  align-items: stretch;
  border-bottom: 1px solid rgba(55, 53, 47, 0.09);
}
#view-home .page-head.today-head {
  flex-direction: column;
  gap: 0;
  padding: 32px 32px 0;
}
#view-home .page-head h1,
#view-cosmo .cosmo-head h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  padding: 0 0 16px;
}
#view-home .home-seg,
#view-desk .desk-nav,
#view-cosmo .cosmo-dock {
  height: 40px;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  border-bottom: none;
  overflow: visible;
}
#view-home .home-seg button,
#view-desk .desk-tab,
#view-cosmo .cosmo-dock button {
  height: 40px;
  padding: 0 12px;
  margin-right: 4px;
}

#view-desk .page-bar.page-head {
  flex-direction: column;
  gap: 8px;
  padding: 28px 32px 0;
}
#view-desk .page-head h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  padding-bottom: 4px;
}
#view-desk .bench {
  padding: 28px 32px 40px;
}
#view-desk .desk-board {
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
.board-head {
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 20px;
}
.board-head .btn-next { margin-top: 2px; }
.subhead {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: #615e58;
}
.kb { gap: 20px; }
.kb-col { padding: 16px 14px 20px; }
.kb-col header { margin-bottom: 14px; }
.kb-card { padding: 14px 14px 16px; }
.kb-card + .kb-card { margin-top: 12px; }
.kb-card strong { letter-spacing: 0; }

[data-desk-panel="mycosmo"] .board-head { gap: 16px; }
.owner-row {
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: baseline;
  column-gap: 24px;
  padding: 16px 0;
}
.owner-row strong {
  color: #787774;
  font-weight: 500;
}
#owner-side { gap: 8px; }

#view-home .today {
  grid-template-columns: minmax(0, 1fr) 360px;
}
#view-home .connect-row {
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 20px 32px 4px;
  gap: 8px 28px;
  border-bottom: none;
}
#view-home .connect-row button.is-live {
  height: 32px;
  padding: 0 8px 0 0;
  gap: 8px;
}
#view-home .work-loop { margin: 8px 0 32px; }
#view-home .work-head,
#view-home .work-row {
  grid-template-columns: minmax(160px, 1.05fr) minmax(180px, 1.3fr) 96px;
  column-gap: 24px;
  align-items: center;
  margin: 0 24px;
  padding: 0 8px;
}
#view-home .work-head {
  padding-top: 12px;
  padding-bottom: 8px;
}
#view-home .work-head span:last-child { text-align: right; }
#view-home .work-row {
  min-height: 68px;
  padding-top: 14px;
  padding-bottom: 14px;
}
#view-home .work-main strong { letter-spacing: 0; }
#view-home .work-gate { justify-self: end; }
#view-home .edit-stage { margin: 24px 32px 40px; }
#view-home .edit-grid { gap: 16px; }
.edit-card {
  gap: 14px;
  padding: 18px;
  min-height: 188px;
}
.edit-card strong { letter-spacing: 0; }

.today-side .today-card {
  padding: 22px 24px 18px;
}
.today-side .present-list {
  gap: 4px;
  margin-top: 12px;
}
.today-side .present-list li {
  min-height: 44px;
  align-items: center;
  gap: 12px;
}
.called-label,
.sheet-label,
.task-kicker {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: #37352f;
}
.today-side .nod,
.today-side .nod.is-focus,
.today-side .nod + .nod {
  margin: 0;
  padding: 14px 0;
  gap: 16px;
  align-items: center;
}
.today-side .nod h2 { letter-spacing: 0; }
.today-side .nod p { margin-top: 4px; }
.today-side .task-notes-head {
  min-height: 32px;
  margin-bottom: 8px;
}
.todo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 4px 0;
}
.todo-item input {
  width: 16px;
  height: 16px;
  margin: 0;
}
.link-quiet {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

#view-cosmo .cosmo-head.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title tools" "tabs tabs";
  align-items: end;
  gap: 4px 16px;
  padding: 28px 32px 0;
}
#view-cosmo .cosmo-head > div:first-child { grid-area: title; }
#view-cosmo .cosmo-tools { grid-area: tools; margin: 0 0 12px; }
#view-cosmo .cosmo-dock { grid-area: tabs; }
#view-cosmo .cosmo-body { gap: 0; padding: 0 0 32px; }
#view-cosmo .cosmo-head { margin: 0; }
#view-cosmo .cosmo-bar {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 32px 0;
}
#view-cosmo .cosmo-lead {
  margin: 0;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.7;
}
#view-cosmo .filters { gap: 8px; }
#view-cosmo .twins {
  gap: 16px;
  padding: 20px 32px 40px;
}
.twin,
.twin:hover,
.twin.is-on,
.cosmo-pick {
  padding: 20px;
  gap: 14px;
}
.twin .name { letter-spacing: 0; font-weight: 600; }

.inbox-head.page-head {
  height: auto;
  padding: 20px 16px 8px;
  border-bottom: none;
  gap: 4px;
}
.inbox-head.page-head strong {
  height: auto;
  padding: 4px 4px 10px;
  font-size: 20px;
  font-weight: 700;
}
.inbox-item {
  width: calc(100% - 16px);
  margin: 2px 8px;
  min-height: 64px;
  padding: 10px 10px;
  gap: 12px;
  align-items: center;
  border-radius: 6px;
}
.inbox-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.chat-head.page-head {
  flex-direction: row;
  align-items: baseline;
  height: auto;
  min-height: 0;
  gap: 12px;
  padding: 20px 32px 12px;
}
.chat-head.page-head h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
}
.chat-head.page-head p { margin: 0; }
.chat-log {
  max-width: none;
  padding: 20px 32px 28px;
}
.chat-log .msg + .msg { margin-top: 16px; }
.chat-view .thread-input { margin: 0 32px 20px; }
body.citta-collapsed .chat-view .thread-input { margin-right: 300px; }

#view-symbion .sym-layout { grid-template-columns: 220px minmax(0, 1fr); }
.sym-nav { padding: 20px 12px 24px; }
.sym-owner,
.sym-tabs button {
  height: 34px;
  margin-bottom: 2px;
}
.sym-stage { padding: 32px 48px 48px 40px; }
.sym-card { padding: 4px 0 28px; }
.sym-card h2 { margin-bottom: 8px; }

.mail-row {
  gap: 6px;
  padding: 14px 12px;
  border-radius: 6px;
}
.ledger-row,
.file-row {
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}
.ledger-row.head,
.file-row.head { padding-bottom: 8px; }

/* Citta float and message threads: one column, name above the sentence. */
.citta-dock {
  width: min(380px, calc(100vw - 40px));
  right: 20px;
  bottom: 20px;
  padding: 14px;
  gap: 12px;
  border-radius: 8px;
  border: 1px solid rgba(55, 53, 47, 0.12);
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 15, 15, 0.1);
}
.citta-dock-open {
  align-items: center;
  gap: 12px;
}
.citta-dock .citta-mark,
.citta-pane .citta-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #37352f;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.citta-dock-copy strong {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}
.citta-dock-copy em {
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  -webkit-line-clamp: unset;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.5;
  color: #787774;
}
.avatar-switch {
  height: 28px;
  margin-top: 0;
  padding: 0 8px;
  border-radius: 6px;
  background: transparent;
  color: #615e58;
  font-size: 13px;
  font-weight: 500;
}
.avatar-switch:hover { background: rgba(55, 53, 47, 0.06); color: #37352f; }
.citta-dock-ask,
.citta-input {
  min-height: 40px;
  margin: 0;
  padding: 4px 4px 4px 12px;
  border: 1px solid rgba(55, 53, 47, 0.16);
  border-radius: 8px;
  background: #fff;
}
.citta-dock input,
.citta-input input {
  font-size: 14px;
  color: #37352f;
}
.citta-dock input::placeholder,
.citta-input input::placeholder { color: #9b9a97; }
.citta-dock .send,
.citta-input .send {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #37352f;
  color: #fff;
}

.citta-pane {
  width: min(400px, calc(100vw - 48px));
  height: min(560px, calc(100vh - 64px));
  right: 20px;
  bottom: 20px;
  border-radius: 8px;
  border: 1px solid rgba(55, 53, 47, 0.12);
  background: #fff;
  box-shadow: 0 12px 40px rgba(15, 15, 15, 0.12);
}
.citta-pane-head {
  gap: 12px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(55, 53, 47, 0.09);
}
.citta-pane-head .title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}
.citta-pane-head .sub {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.5;
  color: #787774;
}
.citta-collapse {
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  background: transparent;
  color: #615e58;
  font-size: 13px;
  font-weight: 500;
}
.citta-collapse:hover { background: rgba(55, 53, 47, 0.06); color: #37352f; }
.citta-chat {
  margin: 0;
  padding: 16px 16px 8px;
  gap: 20px;
  border-radius: 0;
  background: transparent;
}
.citta-chat .bubble,
.citta-chat .bubble.ai,
.citta-chat .bubble.me {
  max-width: 100%;
  align-self: stretch;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #37352f;
  font-size: 15px;
  line-height: 1.7;
}
.citta-chat .bubble .who {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: #787774;
}
.citta-chat .bubble.me .who { color: #37352f; }
.citta-chat .bubble p { margin: 0; }
.citta-input { margin: 8px 16px 16px; }

.chat-log .msg-time {
  margin: 0 0 20px;
  text-align: left;
  font-size: 12px;
  color: #9b9a97;
}
.chat-log .msg,
.chat-log .msg.me {
  justify-content: flex-start;
  align-items: flex-start;
  gap: 12px;
  margin-top: 0;
}
.chat-log .msg + .msg { margin-top: 22px; }
.chat-log .msg-av,
.chat-log .msg-av.t1,
.chat-log .msg-av.t2 {
  width: 32px;
  height: 32px;
  margin-top: 1px;
  border-radius: 6px;
  background: #f1f0ec;
  color: #37352f;
  font-size: 12px;
  font-weight: 600;
}
.chat-log .bubble,
.chat-log .msg.me .bubble {
  flex: 1;
  max-width: none;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #37352f;
  box-shadow: none;
}
.msg-meta {
  display: flex;
  align-items: baseline;
  min-height: 20px;
  margin-bottom: 4px;
}
.msg-meta strong,
.chat-log .bubble strong,
.chat-log .msg.me .bubble strong {
  font-size: 14px;
  font-weight: 600;
  color: #37352f;
}
.chat-log .bubble p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: #37352f;
}
body.citta-collapsed .chat-view .thread-input {
  margin-right: 420px;
}

.chat-log .msg:not(.me) .msg-meta strong {
  color: #787774;
}
.chat-log .msg.me .msg-av {
  background: #37352f;
  color: #fff;
}
.chat-log .msg.me .bubble {
  padding: 8px 12px 10px;
  border-radius: 6px;
  background: #f7f6f3;
}
.chat-log .msg.me .msg-meta strong,
.chat-log .msg.me .bubble p {
  color: #37352f;
}

#view-symbion .sym-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
#view-symbion .sym-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  height: auto;
  min-height: 0;
  padding: 28px 32px 0;
  border-bottom: 1px solid rgba(55, 53, 47, 0.09);
}
#view-symbion .sym-head h1 {
  height: auto;
  margin: 0;
  padding: 0;
  border: none;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  position: static;
}
#view-symbion .sym-kicker {
  margin: 4px 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #787774;
}
#view-symbion .sym-tabs {
  display: flex;
  align-items: stretch;
  width: auto;
  height: 40px;
  margin: 0;
  padding: 0;
  gap: 4px;
}
#view-symbion .sym-tabs button {
  width: auto;
  height: 40px;
  margin: 0 4px 0 0;
  padding: 0 12px;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #787774;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
#view-symbion .sym-tabs button.is-on {
  background: transparent;
  color: #37352f;
  font-weight: 600;
  border-bottom-color: #37352f;
}
#view-symbion .sym-stage {
  flex: 1;
  min-height: 0;
  padding: 0;
  overflow: auto;
}
#view-symbion .sym-panel.is-on {
  display: block;
  max-width: none;
  height: auto;
  min-height: 0;
  padding: 20px 32px 48px;
  overflow: visible;
}
#view-symbion .sym-panel .subhead,
#view-symbion .sym-card,
#view-symbion #sym-citta,
#view-symbion .board-head {
  max-width: 720px;
}
#view-symbion .board-head {
  align-items: flex-start;
  gap: 24px;
}
#view-symbion .board-head .subhead {
  margin: 0;
  flex: 1;
}
#view-symbion button.person-line {
  min-height: 44px;
  margin: 2px 0;
  padding: 10px 8px;
  border-radius: 6px;
}
#view-symbion button.person-line:hover {
  background: rgba(55, 53, 47, 0.06);
}

body:not(.citta-collapsed) .citta-scrim { display: none; }
body:not(.citta-collapsed):not(.citta-free) .shell {
  margin-right: min(400px, max(300px, calc(100vw - 668px)));
}
body.citta-free .shell { margin-right: 0; }

body:not(.citta-collapsed) .citta-pane {
  display: flex;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: min(400px, max(300px, calc(100vw - 668px)));
  height: auto;
  border-radius: 0;
  border: none;
  border-left: 1px solid rgba(55, 53, 47, 0.09);
  background: #fff;
  box-shadow: none;
  z-index: 30;
}
.citta-pane.is-free {
  bottom: auto;
  border-radius: 12px;
  border: 1px solid rgba(55, 53, 47, 0.12);
  box-shadow: 0 16px 48px rgba(15, 15, 15, 0.14);
}
.citta-pane-head { cursor: grab; }
.citta-pane-head:active { cursor: grabbing; }

.citta-chat {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
  margin: 0;
  padding: 20px 18px 12px;
  border-radius: 0;
  background: #fff;
  overflow: auto;
}
.citta-chat .bubble.ai {
  align-self: flex-start;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 2px;
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #37352f;
}
.citta-chat .bubble.ai .mark {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #37352f;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.citta-chat .bubble.ai .who {
  grid-column: 2;
  display: block;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 28px;
  color: #787774;
}
.citta-chat .bubble.ai p {
  grid-column: 2;
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: #37352f;
}
.citta-chat .bubble.me {
  align-self: flex-end;
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px 16px 4px 16px;
  background: #f2f3f5;
  color: #37352f;
}
.citta-chat .bubble.me p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #37352f;
}
.citta-input {
  min-height: 52px;
  margin: 8px 14px 14px;
  padding: 8px 8px 8px 16px;
  border: 1px solid rgba(55, 53, 47, 0.16);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 15, 15, 0.04);
}
.citta-input .send {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #37352f;
  color: #fff;
}

#view-chat .msg-layout {
  height: 100%;
  gap: 0;
  grid-template-columns: 280px minmax(0, 1fr);
}
#view-chat .inbox {
  background: #f7f6f3;
  border-right: 1px solid rgba(55, 53, 47, 0.09);
  box-shadow: none;
}
#view-chat .inbox-head.page-head {
  padding: 20px 16px 8px;
  background: transparent;
}
#view-chat .inbox-head.page-head strong {
  height: auto;
  padding: 4px 4px 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
}
#view-chat .inbox-search input {
  height: 36px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(55, 53, 47, 0.12);
}
#view-chat .inbox-av,
#view-chat .inbox-av.t1,
#view-chat .inbox-av.t2 {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #fff;
  color: #37352f;
  font-size: 12px;
  font-weight: 600;
}
#view-chat .inbox-item {
  width: calc(100% - 16px);
  min-height: 64px;
  margin: 2px 8px;
  padding: 10px;
  border-radius: 8px;
  gap: 12px;
}
#view-chat .inbox-item em,
#view-chat .inbox-item.is-unread em,
#view-chat .inbox-item:not(.is-unread) em {
  color: #787774;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#view-chat .inbox-item.is-on,
#view-chat .inbox-item:hover {
  background: rgba(55, 53, 47, 0.08);
}
#view-chat .inbox-badge {
  background: #37352f;
}
#view-chat .chat-view {
  padding: 0;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
}
#view-chat .chat-head.page-head {
  padding: 18px 28px 12px;
  border-bottom: 1px solid rgba(55, 53, 47, 0.09);
}
#view-chat .chat-head.page-head h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
}
#view-chat .chat-head.page-head p {
  margin: 0 0 0 8px;
  font-size: 13px;
  color: #787774;
}
#view-chat .chat-log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0;
  padding: 24px 28px 12px;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
#view-chat .chat-log .msg-time {
  align-self: center;
  margin: 0;
  font-size: 12px;
  color: #9b9a97;
}
#view-chat .chat-log .msg,
#view-chat .chat-log .msg.me {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  max-width: 100%;
}
#view-chat .chat-log .msg { justify-content: flex-start; }
#view-chat .chat-log .msg.me { justify-content: flex-end; }
#view-chat .chat-log .msg + .msg { margin-top: 0; }
#view-chat .chat-log .msg-av {
  width: 28px;
  height: 28px;
  margin-top: 0;
  border-radius: 8px;
  background: #f1f0ec;
  color: #37352f;
  font-size: 12px;
}
#view-chat .chat-log .msg:not(.me) .bubble {
  flex: 0 1 auto;
  max-width: min(640px, 86%);
  padding: 0;
  border-radius: 0;
  background: transparent;
}
#view-chat .chat-log .msg:not(.me) .msg-meta {
  min-height: 28px;
  margin-bottom: 2px;
}
#view-chat .chat-log .msg:not(.me) .msg-meta strong {
  font-size: 13px;
  font-weight: 600;
  line-height: 28px;
  color: #787774;
}
#view-chat .chat-log .msg:not(.me) .bubble p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: #37352f;
}
#view-chat .chat-log .msg.me .bubble {
  flex: 0 1 auto;
  max-width: min(460px, 78%);
  padding: 10px 14px;
  border-radius: 16px 16px 4px 16px;
  background: #f2f3f5;
}
#view-chat .chat-log .msg.me .bubble p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #37352f;
}
#view-chat .thread-input {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  width: auto;
  max-width: none;
  margin: 8px 20px 16px;
  padding: 8px 8px 8px 16px;
  border: 1px solid rgba(55, 53, 47, 0.16);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 15, 15, 0.04);
}
body.citta-collapsed #view-chat .thread-input {
  margin-right: min(420px, 46vw);
}
#view-chat .thread-input input {
  height: 36px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 15px;
  color: #37352f;
}
#view-chat .thread-input input::placeholder { color: #9b9a97; }
#view-chat .thread-input .send {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #37352f;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
#view-chat .thread-input .send svg {
  width: 14px;
  height: 14px;
}
@media (max-width: 980px) {
  #view-chat .msg-layout {
    grid-template-columns: 1fr;
  }
  body.citta-collapsed #view-chat .chat-thread {
    padding-bottom: 108px;
  }
  body.citta-collapsed #view-chat .thread-input {
    margin-right: 20px;
  }
}

#view-desk .board-head h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
}
#view-desk .kb-new {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -8px 0 16px;
}
#view-desk .kb-new[hidden] { display: none; }
#view-desk .kb-new input {
  height: 36px;
  min-width: 0;
  flex: 1;
  padding: 0 12px;
  border: 1px solid rgba(55, 53, 47, 0.16);
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  color: #37352f;
}
#view-desk .kb {
  gap: 16px;
}
#view-desk .kb-col {
  min-height: 320px;
  padding: 16px;
  border-radius: 8px;
  background: #f7f6f3;
}
#view-desk .kb-col h3 {
  font-size: 14px;
  font-weight: 600;
  color: #37352f;
}
#view-desk .kb-col-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#view-desk .kb-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  padding: 14px 14px 12px;
  border: none;
  border-radius: 6px;
  background: #fff;
  color: #37352f;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
#view-desk .kb-card:hover { background: rgba(55, 53, 47, 0.04); }
#view-desk .kb-card strong {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}
#view-desk .kb-card time {
  margin-top: 6px;
  font-size: 13px;
  color: #787774;
}
#view-desk .kb-card p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #37352f;
}
#view-desk .kb-wait {
  margin-top: 10px;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  color: #615e58;
}
#view-desk .cal-week { gap: 8px; }
#view-desk .cal-day {
  gap: 8px;
  padding: 12px 10px 16px;
  border-radius: 0;
  background: transparent;
  border-top: 1px solid rgba(55, 53, 47, 0.09);
  box-shadow: none;
}
#view-desk .cal-day.is-today {
  border-radius: 8px;
  border-top-color: transparent;
  background: #f7f6f3;
}
#view-desk .cal-day header strong { font-size: 14px; font-weight: 600; }
#view-desk .cal-event {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 6px;
  background: #fff;
  color: #37352f;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(55, 53, 47, 0.09);
}
#view-desk .cal-day.is-today .cal-event { background: #fff; }
#view-desk .cal-event:hover { background: rgba(55, 53, 47, 0.04); }
#view-desk .cal-event time { font-size: 12px; font-weight: 600; color: #787774; }
#view-desk .cal-event strong { font-size: 14px; font-weight: 650; letter-spacing: 0; }
#view-desk .cal-event span,
#view-desk .cal-event em {
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
  color: #615e58;
}
#view-desk .mail-app {
  min-height: 560px;
  margin-top: 4px;
  border: 1px solid rgba(55, 53, 47, 0.09);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
#view-desk .mail-list {
  gap: 2px;
  padding: 8px;
  background: #f7f6f3;
  border-right: 1px solid rgba(55, 53, 47, 0.09);
}
#view-desk .mail-row {
  gap: 2px;
  padding: 10px 12px;
  border-radius: 8px;
}
#view-desk .mail-row.is-on,
#view-desk .mail-row:hover { background: rgba(55, 53, 47, 0.08); }
#view-desk .mail-row strong { font-size: 14px; font-weight: 650; }
#view-desk .mail-subj { font-size: 14px; color: #37352f; }
#view-desk .mail-snip {
  color: #787774;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#view-desk .mail-row.is-unread .mail-top strong::before { background: #37352f; }
#view-desk .mail-read { padding: 28px 32px 32px; }
#view-desk .mail-read h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}
#view-desk .mail-body {
  font-size: 16px;
  line-height: 1.8;
}
#view-desk .mail-body .link-quiet {
  color: var(--blue-ink);
  font-size: inherit;
}
#view-desk .ledger-row {
  grid-template-columns: minmax(160px, 1.4fr) minmax(140px, 1fr) 88px 96px;
  gap: 12px;
  padding: 14px 0;
  font-size: 15px;
  color: #37352f;
}
#view-desk .ledger-row.head {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: #787774;
}
#view-desk .seg-approve {
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  background: #37352f;
  color: #fff;
}
#view-desk .folder {
  min-height: 96px;
  padding: 16px;
  border: none;
  border-radius: 8px;
  background: #f7f6f3;
  text-align: left;
}
#view-desk .folder:hover { background: rgba(55, 53, 47, 0.08); }
#view-desk .file-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(140px, 1fr);
  gap: 12px;
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid rgba(55, 53, 47, 0.09);
  border-radius: 0;
  background: transparent;
  color: #37352f;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
#view-desk .file-row:hover { background: rgba(55, 53, 47, 0.04); }
#view-desk .file-row.head,
#view-desk .file-row.head:hover {
  cursor: default;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: #787774;
}
#view-desk [data-desk-panel="mycosmo"] .board-head {
  flex-direction: column;
  align-items: flex-start;
}
#view-desk .filters { gap: 4px; }
#view-desk .filter {
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  background: transparent;
  color: #787774;
}
#view-desk .filter.is-on {
  background: rgba(55, 53, 47, 0.08);
  color: #37352f;
}
#view-desk .owner-row {
  padding: 14px 0;
  border-bottom: 1px solid rgba(55, 53, 47, 0.09);
}
@media (max-width: 980px) {
  #view-desk .kb { grid-template-columns: 1fr; }
  #view-desk .desk-nav {
    height: auto;
    flex-wrap: wrap;
  }
}

.rail,
#view-chat .inbox,
#view-desk .kb-col,
#view-desk .mail-list,
#view-desk .cal-day.is-today,
#view-desk .folder,
.inbox-search input {
  background: #fff;
}
#view-desk .kb-col,
#view-desk .folder {
  box-shadow: inset 0 0 0 1px rgba(55, 53, 47, 0.09);
}
#view-desk .cal-add {
  align-self: flex-start;
  padding: 0;
  font-size: 13px;
  color: #787774;
  background: transparent;
}
#view-desk .cal-add:hover { color: #37352f; }
#view-desk .cal-add-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
#view-desk .cal-add-form[hidden] { display: none; }
#view-desk .cal-add-form p {
  margin: 0;
  font-size: 13px;
  color: #615e58;
  white-space: nowrap;
}
#view-desk .cal-add-form input,
.owner-upload input,
#skill-new-form input,
#loop-new-form input {
  height: 36px;
  min-width: 0;
  flex: 1;
  padding: 0 12px;
  border: 1px solid rgba(55, 53, 47, 0.16);
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  color: #37352f;
}
.owner-upload {
  display: flex;
  gap: 8px;
  margin: 8px 0 12px;
}
.owner-upload[hidden] { display: none; }
#skill-new-form,
#loop-new-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 16px;
}
#loop-new-form[hidden] { display: none; }
.inbox-empty,
.cosmo-empty {
  margin: 12px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: #615e58;
}
.plain-list {
  display: flex;
  flex-direction: column;
  margin: 8px 0 32px;
  border-top: 1px solid rgba(55, 53, 47, 0.09);
}
.plain-list > button,
.plain-list > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 16px 0;
  border: none;
  border-bottom: 1px solid rgba(55, 53, 47, 0.09);
  border-radius: 0;
  background: #fff;
  color: #37352f;
  font: inherit;
  text-align: left;
}
.plain-list > button { cursor: pointer; }
.plain-list > button:hover { background: rgba(55, 53, 47, 0.04); }
.plain-list strong { font-size: 15px; font-weight: 650; }
.plain-list span { font-size: 14px; line-height: 1.7; color: #615e58; }
#browser-body p {
  max-width: 62ch;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.8;
  color: #37352f;
}

/* IMA: slim icon rail, time-grouped list, floating composer. Cool white, no brand green. */
.app {
  grid-template-columns: 76px minmax(0, 1fr);
}
.rail {
  align-items: stretch;
  padding: 14px 8px 12px;
  gap: 4px;
  background: #fff;
  border-right: 1px solid rgba(55, 53, 47, 0.08);
}
.rail-workspace {
  flex-direction: column;
  justify-content: center;
  height: auto;
  gap: 6px;
  margin: 0 0 10px;
  padding: 4px 0 12px;
}
.rail-ws-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-align: center;
}
.rail-btn {
  flex-direction: column;
  justify-content: center;
  height: auto;
  min-height: 52px;
  gap: 4px;
  padding: 6px 2px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  color: #615e58;
}
.rail-btn svg {
  width: 20px;
  height: 20px;
}
.rail-btn.is-active,
.rail-btn:hover {
  background: #f3f5f7;
  color: #37352f;
}
.rail-user {
  flex-direction: column;
  height: auto;
  gap: 4px;
  padding: 8px 2px;
  border-radius: 10px;
  font-size: 11px;
}
.rail-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.inbox-section {
  margin: 8px 8px 4px;
  padding: 0 8px;
  font-size: 12px;
  line-height: 20px;
  color: #9b9a97;
}
#view-chat .inbox-item {
  margin: 1px 8px;
  border-radius: 10px;
  border-bottom: none;
}
#view-chat .inbox-item.is-on,
#view-chat .inbox-item:hover {
  background: #f3f5f7;
}
.citta-compose,
#view-chat .thread-input {
  border-radius: 20px;
  border: 1px solid rgba(55, 53, 47, 0.1);
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 15, 15, 0.04);
}
.shell,
.main-pane,
.rail {
  background: #fff;
}

/* Official site: paper page, white frame, ink pills, ice only on the current row. */
body {
  background: #f4f4f5;
  color: #18181b;
  font-family: "DM Sans", "Noto Sans SC", "PingFang SC", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  padding: 10px;
}
.app {
  height: 100%;
  background: transparent;
  gap: 10px;
}
.rail {
  background: transparent;
  border-right: 0;
  color: #18181b;
}
.rail-ws-name,
.rail-btn,
.rail-user { color: #18181b; }
.rail-btn.is-active {
  background: #09090b;
  color: #fff;
}
.rail-btn:hover:not(.is-active) {
  background: rgba(9, 9, 11, 0.04);
  color: #09090b;
}
.shell {
  background: #fff;
  border: 1px solid #ececee;
  border-radius: 28px;
  overflow: hidden;
}
.main-pane,
.chrome,
#view-home,
#view-desk,
#view-chat,
#view-cosmo,
#view-symbion,
#view-browser,
.citta-pane {
  background: #fff;
  color: #18181b;
}
.page-head h1,
#view-home h1,
#view-desk h1,
#view-chat h1,
#view-cosmo h1,
#view-symbion h1,
.chat-head h1,
.inbox-head strong {
  color: #09090b;
  font-weight: 600;
  letter-spacing: 0;
}
.subhead,
.cosmo-lead,
.sheet-label,
.inbox-item time,
.inbox-item em,
.work-row em {
  color: #71717a;
}
#view-home .home-seg,
#view-desk .desk-nav,
#view-cosmo .cosmo-dock,
#view-symbion .sym-tabs {
  align-items: center;
  height: auto;
  gap: 4px;
}
#view-home .home-seg button,
#view-desk .desk-tab,
#view-cosmo .cosmo-dock button,
#view-symbion .sym-tabs button {
  height: 32px;
  padding: 0 14px;
  border-radius: 980px;
  border-bottom: 0;
  color: #18181b;
  background: transparent;
}
#view-home .home-seg button.is-on,
#view-desk .desk-tab.is-active,
#view-cosmo .cosmo-dock button.is-on,
#view-symbion .sym-tabs button.is-on {
  background: #09090b;
  color: #fff;
  border-bottom-color: transparent;
  font-weight: 500;
}
#view-chat .inbox-item.is-on,
#view-desk .mail-row.is-on,
.filter.is-on {
  background: var(--blue-soft);
  color: #09090b;
}
.btn-next,
.btn-dark,
.work-gate,
.avatar-switch,
.omnibox-go,
.send {
  background: #09090b;
  color: #fff;
  border-radius: 14px;
  border: 0;
  box-shadow: none;
}
.btn-next:disabled,
.btn-dark:disabled {
  background: #f4f4f5;
  color: #71717a;
}
.citta-chat .bubble.me,
#view-chat .chat-log .msg.me .bubble {
  background: #f4f4f5;
  color: #09090b;
}
.citta-chat .bubble.me p,
#view-chat .chat-log .msg.me .bubble p {
  background: transparent;
  color: #09090b;
}
.citta-chat .bubble.ai p,
#view-chat .chat-log .msg:not(.me) .bubble,
#view-chat .chat-log .msg:not(.me) .bubble p {
  color: #18181b;
}
.citta-compose,
#view-chat .thread-input,
.inbox-search input,
.filter,
.kb-card,
#view-desk .folder {
  border-color: #ececee;
}

/* Marvis: sidebar inside the white frame, gray canvas, agent line, then the work. */
.app {
  grid-template-columns: 220px minmax(0, 1fr);
  background: #fff;
  border: 1px solid #ececee;
  border-radius: 28px;
  overflow: hidden;
}
.shell {
  border: 0;
  border-radius: 0;
  background: #f7f7f8;
}
.rail {
  background: #fff;
  border-right: 1px solid #ececee;
  padding: 16px 10px 12px;
}
.rail-workspace {
  flex-direction: row;
  justify-content: flex-start;
  height: 36px;
  margin: 0 6px 12px;
  padding: 0 6px;
}
.rail-ws-name {
  font-size: 16px;
  font-weight: 600;
  text-align: left;
}
.rail-section {
  margin: 14px 12px 4px;
  font-size: 12px;
  line-height: 18px;
  color: #71717a;
}
.rail-btn {
  flex-direction: row;
  justify-content: flex-start;
  height: 36px;
  min-height: 36px;
  gap: 8px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 14px;
}
.rail-btn svg {
  width: 16px;
  height: 16px;
}
.rail-sub,
.rail-chat {
  display: flex;
  align-items: center;
  width: auto;
  height: 34px;
  margin: 1px 0;
  padding: 0 10px 0 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #18181b;
  font-size: 14px;
  text-align: left;
}
.rail-chat { padding-left: 12px; }
.rail-sub.is-active,
.rail-btn.is-active {
  background: #09090b;
  color: #fff;
}
.rail-chat.is-on {
  background: var(--blue-soft);
  color: #09090b;
}
.rail-user {
  flex-direction: row;
  height: 40px;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 8px;
  font-size: 14px;
}
.chrome,
.main-pane,
#view-home,
#view-desk,
#view-chat,
#view-cosmo,
#view-symbion {
  background: #f7f7f8;
}
.agent-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}
.agent-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #09090b;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.agent-line strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #09090b;
}
.agent-line p {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #52525b;
}
#view-home .today {
  gap: 12px;
  padding: 0 8px 16px;
}
#view-home .today-week,
#view-home .today-side .today-card {
  background: #fff;
  border: 1px solid #ececee;
  border-radius: 20px;
  padding: 18px 18px 8px;
}

/* Doubao plugin: collapsed Citta is only a round avatar. Click opens the right column. */
body.citta-collapsed .citta-dock {
  width: 56px;
  height: 56px;
  padding: 0;
  right: 18px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid #ececee;
  background: #fff;
  box-shadow: 0 8px 24px rgba(9, 9, 11, 0.14);
  overflow: hidden;
  align-items: center;
  justify-content: center;
  gap: 0;
}
body.citta-collapsed .citta-dock-top,
body.citta-collapsed .citta-dock-open {
  width: 56px;
  height: 56px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  justify-content: center;
  gap: 0;
}
body.citta-collapsed .citta-dock-copy,
body.citta-collapsed .citta-dock-ask {
  display: none;
}
body.citta-collapsed .citta-dock .citta-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #09090b;
  color: #fff;
  font-size: 16px;
}
body.citta-collapsed .today {
  padding-bottom: 16px;
}
body.citta-collapsed #view-chat .thread-input {
  margin-right: 20px;
}
body.citta-collapsed #view-chat .chat-thread {
  padding-bottom: 16px;
}
.citta-pane-head { position: relative; }
.citta-pane .avatar-switch {
  height: 28px;
  margin-left: auto;
  padding: 0 10px;
  border-radius: 980px;
  border: 1px solid #ececee;
  background: #fff;
  color: #18181b;
  font-size: 13px;
  font-weight: 500;
}
.citta-pane .citta-collapse { margin-left: 0; }
.citta-pane .avatar-menu {
  top: 52px;
  right: 16px;
  bottom: auto;
}

/* Ledger and drive stay on white with a cool hairline. */
#ledger-body,
#view-desk .drive-folder,
#view-desk [data-desk-panel="ledger"],
#view-desk [data-desk-panel="drive"] {
  background: #fff;
}
#view-desk .folder {
  background: #fff;
  border: 1px solid #ececee;
  box-shadow: none;
}
#view-desk .folder:hover,
#view-desk .file-row:hover,
#view-desk .ledger-row:hover {
  background: #f4f4f5;
}
#view-desk .ledger-row,
#view-desk .file-row {
  border-bottom-color: #ececee;
  color: #18181b;
}
#view-desk .ledger-row.head,
#view-desk .ledger-row.head:hover,
#view-desk .file-row.head,
#view-desk .file-row.head:hover {
  background: transparent;
  color: #71717a;
}

/* Hairline boxes on a white surface read as stray corners. */
#view-desk .desk-board,
#view-desk .mail-app,
#view-home .today-week,
#view-home .today-side .today-card,
.twin {
  border: none;
  box-shadow: none;
}
.twin.is-on {
  box-shadow: 0 0 0 1.5px #09090b;
}
#view-desk .folder {
  border: none;
  background: #f4f4f5;
  box-shadow: none;
}
#view-desk .folder:hover {
  background: #ececee;
}
#view-desk .mail-list {
  background: #fff;
  border-right: 1px solid #ececee;
}
#view-desk .mail-row.is-on,
#view-desk .mail-row:hover {
  background: #f4f4f5;
}
#view-home .page-head.today-head,
#view-desk .page-bar.page-head,
#view-cosmo .cosmo-head.page-head {
  border-bottom: none;
}
.chrome,
.chat-head.page-head,
.citta-pane-head {
  border-bottom-color: #ececee;
}
.citta-pane {
  border: none;
  border-left: 1px solid #ececee;
  box-shadow: none;
}
#view-desk .cal-day {
  border-top-color: #ececee;
}
#view-desk .drive-grid {
  grid-template-rows: auto;
  flex: none;
  align-content: start;
}
#view-desk .folder {
  min-height: 0;
  height: auto;
  align-self: start;
}
#view-desk .kb-col,
#view-desk .cal-event,
.agenda-item.is-today,
.tl-chip,
.tl-row b {
  box-shadow: none;
}
#view-desk .cal-day.is-today,
#view-desk .cal-event {
  background: #f4f4f5;
}
#view-desk .cal-event:hover {
  background: #ececee;
}
#view-desk .cal-week {
  flex: none;
  grid-template-rows: auto;
  align-items: start;
}
#view-desk .cal-day {
  height: auto;
}

/* Home: stable shortcuts stay with the greeting. The mode switch sits on the panel it changes. */
#view-home .today-head .connect-row {
  margin: 0;
  padding: 2px 0 0;
  border: none;
}
#view-home .page-head h1 {
  padding-bottom: 12px;
}
#view-home .today-week > .home-seg {
  margin: 0 0 16px;
}

/* Focused approval row: a quiet pad, not a flush gray slab. */
#view-home .today-side .nod.is-focus {
  margin: 2px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f4f4f5;
}
#view-home .today-side .nod.is-focus .btn-next {
  height: 32px;
  padding: 0 14px;
}

/* Home status chips share one button. Color is the only difference. */
#view-home .work-gate,
#view-home .work-gate:disabled,
#view-home .work-gate:hover:disabled {
  height: 32px;
  min-width: 72px;
  padding: 0 14px;
  border: 0;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 500;
  line-height: 32px;
}
#view-home .work-gate {
  background: #09090b;
  color: #fff;
  cursor: pointer;
}
#view-home .work-gate:disabled,
#view-home .work-gate:hover:disabled {
  background: #f4f4f5;
  color: #71717a;
  cursor: default;
}

/* Left rail is one level of destinations. Tools and chats stay on their own pages. */
.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rail-workspace {
  margin-bottom: 8px;
}

/* Collapsed Citta avatar can be dragged. A plain click still opens the pane. */
body.citta-collapsed .citta-dock,
body.citta-collapsed .citta-dock-open {
  cursor: grab;
  touch-action: none;
  user-select: none;
}
body.citta-collapsed .citta-dock.is-dragging,
body.citta-collapsed .citta-dock.is-dragging .citta-dock-open {
  cursor: grabbing;
}
body.citta-collapsed .citta-dock.is-moved {
  right: auto;
  bottom: auto;
  transform: none;
}

/* Address-bar go sits in the chrome. It stays quiet until the pointer is on it. */
.omnibox .omnibox-go {
  height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  background: transparent;
  color: #71717a;
  font-size: 13px;
  font-weight: 500;
}
.omnibox .omnibox-go:hover {
  background: #f4f4f5;
  color: #09090b;
}

/* Home shortcuts read as buttons. Hover only changes the fill. */
#view-home .today-head .connect-row {
  gap: 8px;
}
#view-home .connect-row button.is-live {
  height: 36px;
  padding: 0 14px;
  gap: 8px;
  border: 1px solid #ececee;
  border-radius: 980px;
  background: #fff;
  color: #09090b;
}
#view-home .connect-row button.is-live::before {
  display: none;
}
#view-home .connect-row button.is-live span {
  font-weight: 500;
}
#view-home .connect-row button.is-live em {
  color: #71717a;
  font-weight: 400;
}
#view-home .connect-row button.is-live:hover {
  background: #f4f4f5;
  border-color: #e4e4e7;
}
#view-home .connect-row button.is-live:hover em {
  color: #52525b;
}

/* Home left edge is one line: title, shortcuts, mode, and the table. */
#view-home .today-week {
  padding: 20px 24px 12px;
}
#view-home .today-week > .home-seg {
  margin: 0 0 20px;
  gap: 8px;
}
#view-home .home-seg button {
  height: 36px;
  padding: 0 16px;
  border: 1px solid #ececee;
  border-radius: 980px;
  background: #fff;
  color: #18181b;
  font-weight: 500;
}
#view-home .home-seg button.is-on {
  background: #09090b;
  border-color: #09090b;
  color: #fff;
}
#view-home .home-seg button:hover:not(.is-on) {
  background: #f4f4f5;
}
#view-home .work-loop {
  margin: 0;
}
#view-home .work-head,
#view-home .work-row {
  grid-template-columns: minmax(240px, 1.35fr) minmax(180px, 1.15fr) auto;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}
#view-home .edit-stage {
  margin: 4px 0 24px;
}

/* One column width for every row, including rows with no approval pill. */
#view-home .work-head,
#view-home .work-row {
  grid-template-columns: minmax(220px, 1.25fr) minmax(0, 1fr) 72px;
}
#view-home .work-head span,
#view-home .work-citta {
  text-align: left;
}
#view-home .work-head span:last-child {
  text-align: center;
}
#view-home .work-gate,
#view-home .work-gate:disabled {
  justify-self: stretch;
  width: 72px;
  min-width: 72px;
}

#view-home .today-notes .task-notes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#view-home .today-notes .todo-add {
  width: 28px;
  height: 28px;
  margin: 0 0 0 auto;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  color: #71717a;
  display: grid;
  place-items: center;
  flex: none;
}
#view-home .today-notes .todo-add svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
#view-home .today-notes .todo-add:hover {
  background: #f4f4f5;
  color: #09090b;
}
#view-home .todo-draft[hidden] { display: none; }
#view-home .todo-draft .todo-item {
  width: 100%;
}
#view-home .todo-draft .todo-item input[type="checkbox"] {
  opacity: 1;
  pointer-events: none;
}
#view-home .todo-draft .todo-item input[type="text"] {
  appearance: none;
  width: 100%;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  color: #18181b;
}
#view-home .todo-draft .todo-item input[type="text"]:hover,
#view-home .todo-draft .todo-item input[type="text"]:focus {
  outline: none;
  background: transparent;
}
#view-home .todo-draft .todo-item input[type="text"]::placeholder {
  color: #a1a1aa;
}

.chrome { height: 52px; }
.omnibox {
  height: 40px;
  gap: 2px;
  padding: 0 6px 0 12px;
  border: 1px solid #e4e4e7;
  border-radius: 980px;
  background: #fff;
  color: #09090b;
}
.omnibox:hover,
.omnibox:focus-within {
  background: #fff;
  border-color: #d4d4d8;
}
.omnibox input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: #09090b;
  font-size: 14px;
}
.omnibox input::placeholder { color: #71717a; }
.omnibox-search,
.omnibox-tool {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #71717a;
  display: grid;
  place-items: center;
  flex: none;
}
.omnibox-search { margin-left: -4px; }
.omnibox-search svg,
.omnibox-tool svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.omnibox-search:hover,
.omnibox-tool:hover,
.omnibox-tool.is-on {
  background: #f4f4f5;
  color: #09090b;
}
.browser-shot {
  display: block;
  width: min(100%, 360px);
  max-height: 240px;
  margin: 4px 0 16px;
  object-fit: contain;
  border-radius: 12px;
  background: #f4f4f5;
}

.rail {
  position: relative;
  z-index: 6;
}
.rail-account {
  position: relative;
}
.rail-user {
  width: 100%;
  border-radius: 10px;
  color: #18181b;
  text-align: left;
}
.rail-user:hover,
.rail-user[aria-expanded="true"] {
  background: #f4f4f5;
}
.rail-user .rail-avatar,
.account-head .rail-avatar {
  background: #f4f4f5;
  color: #18181b;
}
.rail-avatar.has-photo {
  background-size: cover;
  background-position: center;
  color: transparent;
}
.account-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 8;
  width: 268px;
  max-height: min(520px, calc(100vh - 96px));
  overflow: auto;
  padding: 6px;
  border: 1px solid #ececee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(9, 9, 11, 0.08);
}
.account-menu[hidden] { display: none; }
.account-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 10px;
}
.account-head .rail-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 14px;
}
.account-head strong {
  display: block;
  color: #09090b;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}
.account-head span {
  display: block;
  color: #71717a;
  font-size: 12px;
  line-height: 18px;
}
.account-menu hr {
  height: 0;
  margin: 6px 8px;
  border: 0;
  border-top: 1px solid #ececee;
}
.account-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  background: transparent;
  color: #18181b;
  font-size: 14px;
  text-align: left;
}
.account-menu button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.account-menu button:hover { background: #f4f4f5; }
.account-menu button.is-out { color: #dc2626; }
#view-account .page-head { padding: 28px 32px 0; }
#view-account { background: #f7f7f8; }
#view-account .account-page {
  max-width: 520px;
  padding: 12px 32px 40px;
  color: #18181b;
}
#view-account .account-page p {
  margin: 0 0 12px;
  color: #52525b;
  font-size: 14px;
  line-height: 1.6;
}
#view-account .account-page strong { color: #18181b; font-weight: 600; }
#view-account .account-form label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: #71717a;
  font-size: 13px;
}
#view-account .account-form input {
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  background: #fff;
  color: #18181b;
  font-size: 14px;
}
#view-account .account-form button,
.signed-out button {
  height: 32px;
  padding: 0 14px;
  border-radius: 980px;
  background: #09090b;
  color: #fff;
  font-size: 13px;
}
.account-links { display: grid; gap: 4px; }
.account-links button {
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  background: transparent;
  color: #18181b;
  font-size: 14px;
  text-align: left;
}
.account-links button:hover { background: #f4f4f5; }
.account-quiet { color: #71717a; }
.signed-out {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: #f4f4f5;
}
.signed-out[hidden] { display: none; }
.signed-out strong {
  display: block;
  color: #09090b;
  font-size: 20px;
}
.signed-out p {
  margin: 6px 0 16px;
  color: #71717a;
  font-size: 14px;
}

/* Apple Calendar */
#view-desk [data-desk-panel="calendar"] {
  padding: 0;
  background: #fff;
  overflow: hidden;
}
#view-desk [data-desk-panel="calendar"].is-on {
  display: flex;
  min-height: 0;
}
.cal-apple {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  color: #1c1c1e;
  background: #fff;
}
.cal-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 52px;
  padding: 0 16px;
  flex: none;
}
.cal-toolbar-left,
.cal-seg { display: flex; align-items: center; gap: 6px; }
.cal-seg { justify-self: end; }
.cal-toolbar h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  color: #1c1c1e;
}
.cal-toolbar-left button,
.cal-seg button {
  height: 28px;
  border-radius: 8px;
  background: transparent;
  color: #1c1c1e;
  font-size: 13px;
  font-weight: 500;
}
#cal-prev, #cal-next {
  width: 28px;
  display: grid;
  place-items: center;
}
#cal-prev svg, #cal-next svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#cal-today {
  padding: 0 12px;
  box-shadow: inset 0 0 0 1px #d1d1d6;
}
.cal-toolbar-left button:hover,
#cal-today:hover { background: #f2f2f7; }
.cal-seg {
  padding: 2px;
  border-radius: 9px;
  background: #f2f2f7;
  gap: 0;
}
.cal-seg button {
  min-width: 36px;
  padding: 0 10px;
  border-radius: 7px;
  color: #1c1c1e;
}
.cal-seg button.is-on {
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
}
.cal-body {
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  flex: 1;
  min-height: 0;
  border-top: 1px solid #e5e5ea;
}
.cal-side {
  padding: 14px 12px;
  border-right: 1px solid #e5e5ea;
  background: #f5f5f7;
  overflow: auto;
}
.cal-mini p,
.cal-side-label,
.cal-side-note {
  margin: 0;
}
.cal-mini p {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.cal-mini-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px 0;
  margin-bottom: 18px;
}
.cal-mini-wd,
.cal-mini-grid span,
.cal-mini-grid button {
  height: 22px;
  font-size: 11px;
  color: #1c1c1e;
  display: grid;
  place-items: center;
}
.cal-mini-wd { color: #8e8e93; font-size: 10px; }
.cal-mini-grid button.in-week { background: #e5e5ea; }
.cal-mini-grid button.is-picked { background: #d1d1d6; border-radius: 50%; }
.cal-mini-grid button.is-today,
.cal-mini-grid button.in-week.is-today {
  background: #ff3b30;
  color: #fff;
  border-radius: 50%;
}
.cal-side-label {
  margin: 8px 4px 6px;
  font-size: 12px;
  font-weight: 600;
  color: #8e8e93;
}
.cal-source {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 4px;
  font-size: 13px;
  color: #1c1c1e;
}
.cal-source input { position: absolute; opacity: 0; }
.cal-source i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.cal-source i[data-c="mine"] { color: #0a84ff; background: #0a84ff; }
.cal-source i[data-c="team"] { color: #ff3b30; background: #ff3b30; }
.cal-source i[data-c="research"] { color: #ff9f0a; background: #ff9f0a; }
.cal-source i::after {
  content: "";
  width: 7px;
  height: 4px;
  border-left: 1.6px solid #fff;
  border-bottom: 1.6px solid #fff;
  transform: rotate(-45deg) translate(0.5px, -1px);
}
.cal-source input:not(:checked) + i { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.cal-source input:not(:checked) + i::after { border-color: transparent; }
.cal-source input:focus-visible + i { outline: 2px solid #0a84ff; outline-offset: 2px; }
.cal-side-note {
  margin-top: 14px;
  padding: 0 4px;
  font-size: 11px;
  line-height: 1.4;
  color: #8e8e93;
}
.cal-main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.cal-lock, .cal-scroll { scrollbar-gutter: stable; }
.cal-headrow, .cal-allrow, .cal-time {
  display: grid;
  grid-template-columns: 56px repeat(7, minmax(0, 1fr));
}
.cal-headcell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0 6px;
}
.cal-wd { font-size: 11px; font-weight: 590; color: #8e8e93; }
.cal-num {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 500;
  color: #1c1c1e;
}
.cal-headcell.is-today .cal-wd { color: #ff3b30; }
.cal-headcell.is-today .cal-num {
  background: #ff3b30;
  color: #fff;
  border-radius: 50%;
  font-weight: 600;
}
.cal-headcell.is-picked .cal-num {
  background: #e5e5ea;
  border-radius: 50%;
}
.cal-gutter-all {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  font-size: 11px;
  color: #8e8e93;
}
.cal-allrow { border-bottom: 1px solid #e5e5ea; min-height: 28px; }
.cal-allday {
  min-height: 28px;
  padding: 3px 3px 4px;
  border-left: 1px solid #ececee;
}
.cal-scroll { flex: 1; min-height: 0; overflow: auto; }
.cal-gutter-hours { position: relative; height: 624px; }
.cal-gutter-hours span {
  position: absolute;
  right: 8px;
  transform: translateY(-50%);
  font-size: 11px;
  color: #8e8e93;
}
#view-desk [data-desk-panel="calendar"] .cal-day {
  display: block;
  height: auto;
  min-height: 0;
  padding: 0;
  gap: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.cal-grid {
  position: relative;
  height: 624px;
  border-left: 1px solid #ececee;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 23px,
    rgba(60, 60, 67, 0.08) 23px,
    rgba(60, 60, 67, 0.08) 24px,
    transparent 24px,
    transparent 47px,
    #e5e5ea 47px,
    #e5e5ea 48px
  );
  background-size: 100% 48px;
}
.cal-events { position: absolute; inset: 0; }
.cal-now {
  position: absolute;
  left: 0;
  right: 0;
  top: 360px;
  z-index: 3;
  height: 0;
  border-top: 1.5px solid #ff3b30;
  pointer-events: none;
}
.cal-now[hidden] { display: none; }
.cal-now i {
  position: absolute;
  left: -4px;
  top: -4.5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b30;
}
#view-desk [data-desk-panel="calendar"] .cal-event {
  position: absolute;
  left: 3px;
  right: 4px;
  z-index: 1;
  display: block;
  width: auto;
  margin: 0;
  padding: 2px 5px;
  overflow: hidden;
  border: 0;
  border-radius: 5px;
  box-shadow: none;
  font-size: 11px;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}
#view-desk [data-desk-panel="calendar"] .cal-event strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}
#view-desk [data-desk-panel="calendar"] .cal-event time,
#view-desk [data-desk-panel="calendar"] .cal-event span,
#view-desk [data-desk-panel="calendar"] .cal-event em {
  display: block;
  margin: 0;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.25;
  opacity: 0.9;
}
#view-desk [data-desk-panel="calendar"] .cal-event[data-cal-source="mine"] {
  background: #d6e6ff;
  color: #0040a8;
}
#view-desk [data-desk-panel="calendar"] .cal-event[data-cal-source="team"] {
  background: #ffd8dc;
  color: #c41230;
}
#view-desk [data-desk-panel="calendar"] .cal-event[data-cal-source="research"] {
  background: #ffe4c2;
  color: #c25100;
}
#view-desk [data-desk-panel="calendar"] .cal-event[data-cal-source="mine"]:hover { background: #c5dbff; }
#view-desk [data-desk-panel="calendar"] .cal-event[data-cal-source="team"]:hover { background: #ffc8ce; }
#view-desk [data-desk-panel="calendar"] .cal-event[data-cal-source="research"]:hover { background: #ffd7a8; }
#view-desk [data-desk-panel="calendar"] .cal-event.is-allday {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 18px;
  margin: 1px 0;
  padding: 1px 6px;
  white-space: nowrap;
}
#view-desk [data-desk-panel="calendar"] .cal-event.is-allday time,
#view-desk [data-desk-panel="calendar"] .cal-event.is-allday span,
#view-desk [data-desk-panel="calendar"] .cal-event.is-allday em { display: none; }
#view-desk [data-desk-panel="calendar"] .cal-event.is-off,
#view-desk [data-desk-panel="calendar"] .cal-event[hidden] { display: none; }
.cal-apple[data-cal-view="day"] .cal-headrow,
.cal-apple[data-cal-view="day"] .cal-allrow,
.cal-apple[data-cal-view="day"] .cal-time {
  grid-template-columns: 56px minmax(0, 1fr);
}
#view-desk .cal-apple[data-cal-view="day"] .cal-headcell:not(.is-shown),
#view-desk .cal-apple[data-cal-view="day"] .cal-allday:not(.is-shown),
#view-desk .cal-apple[data-cal-view="day"] .cal-day:not(.is-shown) { display: none; }
.cal-apple[data-cal-view="month"] .cal-lock,
.cal-apple[data-cal-view="month"] .cal-scroll,
.cal-apple[data-cal-view="year"] .cal-lock,
.cal-apple[data-cal-view="year"] .cal-scroll,
.cal-apple[data-cal-view="week"] .cal-month,
.cal-apple[data-cal-view="week"] .cal-year,
.cal-apple[data-cal-view="day"] .cal-month,
.cal-apple[data-cal-view="day"] .cal-year,
.cal-apple[data-cal-view="month"] .cal-year,
.cal-apple[data-cal-view="year"] .cal-month { display: none; }
.cal-month, .cal-year {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.cal-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-height: 100%;
}
.cal-month-wd {
  padding: 8px 0;
  border-bottom: 1px solid #e5e5ea;
  font-size: 11px;
  font-weight: 590;
  color: #8e8e93;
  text-align: center;
}
.cal-month-cell {
  min-height: 92px;
  padding: 4px;
  border-right: 1px solid #ececee;
  border-bottom: 1px solid #ececee;
}
.cal-month-cell.is-out span { color: #c7c7cc; font-size: 12px; }
.cal-month-cell > button:first-child {
  width: 24px;
  height: 24px;
  margin: 0 0 4px auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  color: #1c1c1e;
  font-size: 12px;
}
.cal-month-cell > button.is-today {
  background: #ff3b30;
  color: #fff;
}
.cal-chip {
  display: block;
  width: 100%;
  height: 16px;
  margin-top: 2px;
  padding: 0 4px;
  overflow: hidden;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  text-align: left;
  white-space: nowrap;
}
.cal-chip.is-mine { background: #d6e6ff; color: #0040a8; }
.cal-chip.is-team { background: #ffd8dc; color: #c41230; }
.cal-chip.is-research { background: #ffe4c2; color: #c25100; }
.cal-year {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 12px;
  padding: 16px;
  align-content: start;
}
.cal-year-month {
  display: block;
  padding: 8px;
  border-radius: 10px;
  background: transparent;
  text-align: left;
}
.cal-year-month:hover { background: #f2f2f7; }
.cal-year-month strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1c1c1e;
}
.cal-year-month div {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px 0;
}
.cal-year-month i {
  height: 14px;
  font-size: 9px;
  font-style: normal;
  color: #1c1c1e;
  display: grid;
  place-items: center;
}
.cal-year-month i.is-today {
  background: #ff3b30;
  color: #fff;
  border-radius: 50%;
}
#view-desk .cal-add-form {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 5;
  display: grid;
  gap: 8px;
  width: 240px;
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16), 0 0 0 0.5px rgba(0, 0, 0, 0.08);
}
#view-desk .cal-add-form[hidden] { display: none; }
#view-desk .cal-add-form p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #1c1c1e;
}
#view-desk .cal-add-form input {
  height: 32px;
  flex: none;
  border: 0;
  border-radius: 8px;
  background: #f2f2f7;
  color: #1c1c1e;
  font-size: 14px;
}
#view-desk .cal-add-form .btn-next {
  justify-self: end;
  height: 28px;
  padding: 0 12px;
  border-radius: 980px;
  background: #007aff;
  color: #fff;
  font-size: 13px;
}
.cal-apple[data-cal-view="month"] .cal-lock,
.cal-apple[data-cal-view="month"] .cal-scroll,
.cal-apple[data-cal-view="year"] .cal-lock,
.cal-apple[data-cal-view="year"] .cal-scroll,
.cal-apple[data-cal-view="week"] .cal-month,
.cal-apple[data-cal-view="week"] .cal-year,
.cal-apple[data-cal-view="day"] .cal-month,
.cal-apple[data-cal-view="day"] .cal-year,
.cal-apple[data-cal-view="month"] .cal-year,
.cal-apple[data-cal-view="year"] .cal-month { display: none; }

/* My Cosmo: grouped cards, same pill language as the desk. */
#view-desk [data-desk-panel="mycosmo"] {
  gap: 18px;
}
#view-desk [data-desk-panel="mycosmo"] .board-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 2px;
}
#view-desk [data-desk-panel="mycosmo"] .board-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  color: #09090b;
}
#view-desk [data-desk-panel="mycosmo"] .subhead {
  margin: 6px 0 0;
  max-width: 42em;
  color: #52525b;
  font-size: 14px;
  line-height: 1.6;
}
#view-cosmo #owner-side {
  gap: 8px;
}
#view-cosmo #owner-side .filter {
  height: 32px;
  padding: 0 14px;
  border: 1px solid #e4e4e7;
  border-radius: 980px;
  background: #fff;
  color: #18181b;
  font-size: 13px;
  font-weight: 500;
}
#view-cosmo #owner-side .filter.is-on {
  border-color: #09090b;
  background: #09090b;
  color: #fff;
}
#view-cosmo #owner-side .filter:hover:not(.is-on) {
  background: #f4f4f5;
}
#view-cosmo .cosmo-admin {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#view-cosmo .cosmo-admin[hidden] { display: none; }
#view-cosmo .cosmo-admin > .subhead { margin: 0 0 2px; }
#view-cosmo .cosmo-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
#view-cosmo .cosmo-facts section,
#view-cosmo .cosmo-files,
#view-cosmo .cosmo-skill {
  min-width: 0;
  padding: 16px 18px 18px;
  border-radius: 16px;
  background: #f4f4f5;
}
#view-cosmo .cosmo-facts h3,
#view-cosmo .cosmo-files h3,
#view-cosmo .cosmo-skill h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: #71717a;
}
#view-cosmo .cosmo-skill h3 {
  font-size: 15px;
  font-weight: 600;
  color: #09090b;
}
#view-cosmo .cosmo-facts p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #18181b;
}
#view-cosmo .cosmo-facts p + p { margin-top: 4px; }
#view-cosmo .cosmo-files header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#view-cosmo .cosmo-upload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px 0 12px;
  border-radius: 980px;
  background: #09090b;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
#view-cosmo .cosmo-upload:hover { background: #27272a; }
#view-cosmo .cosmo-upload svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#view-cosmo .cosmo-file-list span {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: #18181b;
}
#view-cosmo .cosmo-files .owner-upload {
  display: flex;
  gap: 8px;
  margin: 14px 0 0;
}
#view-cosmo .cosmo-files .owner-upload[hidden] { display: none; }
#view-cosmo .cosmo-files .owner-upload input {
  height: 36px;
  min-width: 0;
  flex: 1;
  padding: 0 12px;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  background: #fff;
  color: #18181b;
  font-size: 14px;
}
#view-cosmo .cosmo-files .owner-upload .btn-next {
  height: 36px;
  padding: 0 14px;
  border-radius: 980px;
  background: #09090b;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
#view-cosmo .cosmo-skill-lead {
  margin: 8px 0 0;
  max-width: 68ch;
  font-size: 14px;
  line-height: 1.6;
  color: #52525b;
}
#view-cosmo .cosmo-skill .switch-line {
  width: fit-content;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #09090b;
}
#view-cosmo .cosmo-skill .skill-note {
  max-width: 68ch;
  margin: 10px 0 0;
  color: #52525b;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: break-word;
}
@media (max-width: 860px) {
  #view-cosmo .cosmo-facts { grid-template-columns: 1fr; }
}

#view-desk .desk-tab {
  background: #f4f4f5;
  color: #3f3f46;
}
#view-desk .desk-tab:hover:not(.is-active) {
  background: #e4e4e7;
  color: #18181b;
}
#view-desk .desk-tab.is-active {
  background: #09090b;
  color: #fff;
}
#view-desk .desk-levels {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
#view-desk .desk-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}
#view-desk .desk-tools[hidden] { display: none; }
#view-desk .desk-tools .desk-tab {
  height: 28px;
  padding: 0 12px;
  background: #f4f4f5;
  color: #3f3f46;
  font-size: 13px;
  font-weight: 500;
}
#view-desk .desk-tools .desk-tab:hover:not(.is-active) {
  background: #e4e4e7;
  color: #18181b;
}
#view-desk .desk-tools .desk-tab.is-active {
  background: #fff;
  color: #09090b;
  box-shadow: inset 0 0 0 1px #09090b;
}

/* Cosmo filters stay in the cool gray / black system. No ice wash on warm chips. */
#view-cosmo .filter {
  height: 32px;
  padding: 0 14px;
  border-radius: 10px;
  background: #f4f4f5;
  color: #3f3f46;
  font-size: 13px;
  font-weight: 500;
}
#view-cosmo .filter:hover:not(.is-on) {
  background: #e4e4e7;
  color: #18181b;
}
#view-cosmo .filter.is-on {
  background: #09090b;
  color: #fff;
}

/* Card hover used to restore a 1px border. The card grew, scroll anchoring jumped the list, and the page shook. */
#view-cosmo .cosmo-body {
  overflow-anchor: none;
  scrollbar-gutter: stable;
}
#view-cosmo .twin,
#view-cosmo .twin:hover,
#view-cosmo .twin.is-on {
  border: none;
  box-shadow: none;
  cursor: default;
}
#view-cosmo .twin:hover {
  background: #f4f4f5;
}
#view-cosmo .twin.is-on {
  background: #fff;
  box-shadow: 0 0 0 1.5px #09090b;
}

/* Directory chrome stays on 数字人. display:flex was beating [hidden]. */
#view-cosmo .cosmo-bar[hidden],
#view-cosmo .cosmo-search[hidden],
#view-cosmo #cosmo-filters[hidden],
#view-cosmo .note-panel[hidden] {
  display: none;
}
#view-cosmo .note-panel {
  background: #f4f4f5;
  margin-top: 12px;
}
#view-cosmo .note-kicker {
  margin: 0;
  padding: 16px 32px 0;
  font-size: 13px;
  line-height: 1.5;
  color: #71717a;
}
#view-cosmo .note-flow {
  column-width: 240px;
  column-gap: 16px;
  padding: 16px 32px 40px;
}
#view-cosmo .note {
  break-inside: avoid;
  margin: 0 0 16px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}
#view-cosmo .note-cover svg {
  display: block;
  width: 100%;
  height: auto;
}
#view-cosmo .note h2 {
  margin: 0;
  padding: 12px 12px 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
  color: #18181b;
}
#view-cosmo .note footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 12px;
}
#view-cosmo .note-av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #f4f4f5;
  color: #18181b;
  font-size: 10px;
  font-weight: 600;
}
#view-cosmo .note-av.a1 { background: #f6eee6; color: #6b4b34; }
#view-cosmo .note-av.a2 { background: #f8e8ea; color: #7a3e49; }
#view-cosmo .note-av.a3 { background: #e8eef6; color: #314564; }
#view-cosmo .note-av.a4 { background: #18181b; color: #fff; font-size: 9px; }
#view-cosmo .note-name {
  min-width: 0;
  font-size: 12px;
  color: #52525b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#view-cosmo .note-like {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  color: #71717a;
  font-size: 12px;
}

/* 社区：微博超话。头图、签到、帖子流、右侧主持人。 */
#view-cosmo .topic-panel[hidden],
#view-cosmo .weibo[hidden] {
  display: none;
}
#view-cosmo .topic-panel {
  background: #f4f4f5;
  margin-top: 12px;
  padding: 16px 32px 40px;
}
#view-cosmo .topic-head,
#view-cosmo .weibo,
#view-cosmo .topic-side section {
  background: #fff;
  border-radius: 12px;
}
#view-cosmo .topic-head { overflow: hidden; }
#view-cosmo .topic-cover svg {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}
#view-cosmo .topic-id {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: -28px;
  padding: 0 20px;
}
#view-cosmo .topic-mark {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 3px solid #fff;
  background: #09090b;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 28px;
  font-weight: 700;
}
#view-cosmo .topic-name { min-width: 0; padding-bottom: 4px; }
#view-cosmo .topic-name h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  color: #09090b;
}
#view-cosmo .topic-name p {
  display: flex;
  gap: 14px;
  margin: 4px 0 0;
  font-size: 13px;
  color: #71717a;
}
#view-cosmo .topic-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  padding-bottom: 6px;
}
#view-cosmo .topic-actions button {
  height: 32px;
  padding: 0 16px;
  border-radius: 980px;
  background: #fff;
  color: #09090b;
  box-shadow: inset 0 0 0 1px #09090b;
  font-size: 13px;
  font-weight: 600;
}
#view-cosmo #topic-checkin {
  background: #09090b;
  color: #fff;
  box-shadow: none;
}
#view-cosmo .topic-actions button[aria-pressed="true"] {
  background: #f4f4f5;
  color: #3f3f46;
  box-shadow: none;
}
#view-cosmo .topic-intro {
  margin: 0;
  padding: 14px 20px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: #52525b;
}
#view-cosmo .topic-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}
#view-cosmo .topic-tabs {
  display: flex;
  gap: 20px;
  margin: 0 4px 12px;
}
#view-cosmo .topic-tabs button {
  height: 36px;
  padding: 0;
  background: none;
  color: #71717a;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}
#view-cosmo .topic-tabs button.is-on {
  color: #09090b;
  font-weight: 700;
  border-bottom-color: #09090b;
}
#view-cosmo .weibo { margin: 0 0 12px; padding: 16px 16px 8px; }
#view-cosmo .weibo header {
  display: flex;
  align-items: center;
  gap: 10px;
}
#view-cosmo .weibo header .note-av { width: 40px; height: 40px; font-size: 14px; }
#view-cosmo .weibo strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: #09090b;
}
#view-cosmo .weibo strong em {
  margin-left: 8px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #f4f4f5;
  color: #52525b;
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
}
#view-cosmo .weibo header div > span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #71717a;
}
#view-cosmo .weibo > p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0;
  color: #18181b;
}
#view-cosmo .weibo footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 8px;
}
#view-cosmo .weibo footer span,
#view-cosmo .weibo-like {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  color: #71717a;
  font-size: 13px;
}
#view-cosmo .weibo-like.is-on { color: #09090b; font-weight: 600; }
#view-cosmo .topic-side { display: flex; flex-direction: column; gap: 12px; }
#view-cosmo .topic-side section { padding: 16px; }
#view-cosmo .topic-side h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: #09090b;
}
#view-cosmo .topic-host {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 14px;
  color: #18181b;
}
#view-cosmo .topic-side p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #52525b;
}
#view-cosmo .topic-related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#view-cosmo .topic-related span {
  height: 28px;
  padding: 0 10px;
  border-radius: 980px;
  background: #f4f4f5;
  color: #3f3f46;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
}
@media (max-width: 1100px) {
  #view-cosmo .topic-body { grid-template-columns: 1fr; }
}

/* Cosmo settings: own twins, hire, plan. Directory chrome stays off this panel. */
#view-cosmo .own-panel[hidden] { display: none; }
#view-cosmo .own-panel {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 20px 32px 48px;
  max-width: 880px;
}
#view-cosmo .own-block > header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  color: #09090b;
}
#view-cosmo .own-block > header p {
  margin: 6px 0 0;
  max-width: 68ch;
  font-size: 13px;
  line-height: 1.65;
  color: #71717a;
}
#view-cosmo .own-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
#view-cosmo .own-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: #f4f4f5;
}
#view-cosmo .own-card.is-hold { background: #fafafa; }
#view-cosmo .own-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
#view-cosmo .own-card-top .note-av {
  width: 40px;
  height: 40px;
  font-size: 14px;
}
#view-cosmo .own-card-top div { min-width: 0; flex: 1; }
#view-cosmo .own-card-top strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: #18181b;
}
#view-cosmo .own-status {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #71717a;
}
#view-cosmo .own-card > p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #3f3f46;
}
#view-cosmo .own-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: auto;
}
#view-cosmo .own-quiet,
#view-cosmo .own-go,
#view-cosmo .own-row button {
  height: 32px;
  padding: 0 14px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 500;
}
#view-cosmo .own-quiet,
#view-cosmo .own-row button[data-release] {
  background: #fff;
  color: #18181b;
  box-shadow: inset 0 0 0 1px #e4e4e7;
}
#view-cosmo .own-quiet:hover,
#view-cosmo .own-row button[data-release]:hover {
  background: #f4f4f5;
}
#view-cosmo .own-quiet[aria-pressed="true"] {
  background: #09090b;
  color: #fff;
  box-shadow: none;
}
#view-cosmo .own-go,
#view-cosmo .own-row button[data-hire] {
  background: #09090b;
  color: #fff;
}
#view-cosmo .own-go:hover,
#view-cosmo .own-row button[data-hire]:hover {
  background: #18181b;
}
#view-cosmo .own-list {
  margin-top: 14px;
  padding: 6px;
  border-radius: 16px;
  background: #f4f4f5;
}
#view-cosmo .own-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  margin: 0 0 6px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
}
#view-cosmo .own-row:last-child { margin-bottom: 0; }
#view-cosmo .own-row .note-av {
  width: 36px;
  height: 36px;
  font-size: 13px;
}
#view-cosmo .own-row strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #18181b;
}
#view-cosmo .own-row .own-meta {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #71717a;
}
#view-cosmo .own-empty {
  margin: 0;
  padding: 16px 12px;
  text-align: center;
  font-size: 13px;
  color: #71717a;
}
#view-cosmo .own-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin-top: 12px;
  padding: 0 14px;
  border-radius: 980px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e4e4e7;
}
#view-cosmo .own-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: #18181b;
}
#view-cosmo .own-usage {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #18181b;
}
#view-cosmo .own-meter {
  height: 6px;
  margin-top: 10px;
  border-radius: 980px;
  background: #e4e4e7;
  overflow: hidden;
}
#view-cosmo .own-meter span {
  display: block;
  height: 100%;
  width: 37%;
  border-radius: inherit;
  background: #09090b;
}
#view-cosmo .own-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
#view-cosmo .own-plans button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 156px;
  padding: 16px;
  border-radius: 16px;
  background: #f4f4f5;
  color: #18181b;
  text-align: left;
}
#view-cosmo .own-plans button.is-on {
  background: #fff;
  box-shadow: inset 0 0 0 1.5px #09090b;
}
#view-cosmo .own-plan-name {
  font-size: 13px;
  color: #71717a;
}
#view-cosmo .own-plan-price {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  color: #09090b;
}
#view-cosmo .own-plan-quota {
  font-size: 13px;
  color: #3f3f46;
}
#view-cosmo .own-plan-go {
  margin-top: auto;
  height: 28px;
  padding: 0 12px;
  border-radius: 980px;
  background: #09090b;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}
#view-cosmo .own-plans button.is-on .own-plan-go {
  background: #f4f4f5;
  color: #3f3f46;
}
@media (max-width: 860px) {
  #view-cosmo .own-grid,
  #view-cosmo .own-plans { grid-template-columns: 1fr; }
}

/* Cosmo module tabs use the same pill as 工作 / 编辑. */
#view-cosmo .cosmo-dock {
  gap: 8px;
  height: auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
#view-cosmo .cosmo-dock button {
  height: 36px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid #ececee;
  border-radius: 980px;
  background: #fff;
  box-shadow: none;
  color: #18181b;
  font-size: 14px;
  font-weight: 500;
}
#view-cosmo .cosmo-dock button.is-on {
  background: #09090b;
  border-color: #09090b;
  color: #fff;
}
#view-cosmo .cosmo-dock button:hover:not(.is-on) {
  background: #f4f4f5;
  border-color: #ececee;
  color: #18181b;
}

/* Address bar follows the browser: gray fill, hover only darkens the fill, focus turns white. */
.chrome .omnibox {
  height: 36px;
  gap: 0;
  padding: 0 6px 0 14px;
  border: 0;
  border-radius: 18px;
  background: #f0f4f9;
  box-shadow: none;
  color: #1f1f1f;
}
.chrome .omnibox:hover {
  background: #e9eef6;
  border-color: transparent;
  box-shadow: none;
}
.chrome .omnibox:focus-within {
  background: #fff;
  border-color: transparent;
  box-shadow: 0 1px 2px rgba(32, 33, 36, 0.16), 0 2px 6px rgba(32, 33, 36, 0.12);
}
.chrome .omnibox input {
  padding: 0 8px;
  color: #1f1f1f;
  background: transparent;
}
.chrome .omnibox input:hover,
.chrome .omnibox input:focus {
  background: transparent;
  outline: none;
  box-shadow: none;
}
.chrome .omnibox-search,
.chrome .omnibox-tool {
  width: 28px;
  height: 28px;
  margin: 0;
  border-radius: 50%;
  background: transparent;
  color: #444746;
}
.chrome .omnibox-search:hover,
.chrome .omnibox-tool:hover,
.chrome .omnibox-tool.is-on {
  background: rgba(31, 31, 31, 0.08);
  color: #1f1f1f;
}

/* Every person in a chat gets a bubble. Others mirror the one on the right. */
#view-chat .chat-log .msg:not(.me) .bubble {
  flex: 0 1 auto;
  max-width: min(460px, 78%);
  padding: 0;
  border-radius: 0;
  background: transparent;
}
#view-chat .chat-log .msg:not(.me) .bubble p {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 10px 14px;
  border-radius: 4px 16px 16px 16px;
  background: #f4f4f5;
  color: #18181b;
  font-size: 15px;
  line-height: 1.7;
}

/* Message list follows WeChat: gray column, full-bleed rows, green current chat, red badge. */
#view-chat .inbox {
  background: #f5f5f5;
  border-right: 1px solid #e6e6e6;
  padding: 0;
}
#view-chat .wx-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 8px;
}
#view-chat .wx-search .inbox-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  margin: 0;
  padding: 0 10px;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e5e5e5;
}
#view-chat .wx-search .inbox-search svg {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: #b2b2b2;
  stroke-width: 2;
}
#view-chat .wx-search .inbox-search input {
  width: 100%;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  color: #1f1f1f;
}
#view-chat #inbox-add {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  color: #1f1f1f;
  box-shadow: inset 0 0 0 1px #e5e5e5;
  display: grid;
  place-items: center;
  flex: none;
}
#view-chat #inbox-add svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
#view-chat #inbox-add:hover {
  background: #f0f0f0;
}
#view-chat .inbox-item,
#view-chat .inbox-item.is-unread {
  width: 100%;
  min-height: 68px;
  margin: 0;
  padding: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1f1f1f;
  gap: 12px;
}
#view-chat .inbox-item[hidden] { display: none; }
#view-chat .inbox-item:hover:not(.is-on) {
  background: #ebebeb;
}
#view-chat .inbox-item.is-on,
#view-chat .inbox-item.is-on:hover {
  background: #07c160;
  color: #fff;
}
#view-chat .inbox-face {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
}
#view-chat .inbox-av,
#view-chat .inbox-av.t1,
#view-chat .inbox-av.t2 {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #fff;
  color: #1f1f1f;
  font-size: 13px;
  font-weight: 600;
}
#view-chat .inbox-body { min-width: 0; }
#view-chat .inbox-top strong {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  color: #1f1f1f;
}
#view-chat .inbox-top time,
#view-chat .inbox-item.is-unread time {
  font-size: 12px;
  font-weight: 400;
  color: #b2b2b2;
}
#view-chat .inbox-item em,
#view-chat .inbox-item.is-unread em,
#view-chat .inbox-item:not(.is-unread) em {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.4;
  color: #888;
}
#view-chat .inbox-item.is-on strong,
#view-chat .inbox-item.is-on time,
#view-chat .inbox-item.is-on em,
#view-chat .inbox-item.is-on.is-unread em,
#view-chat .inbox-item.is-on.is-unread time {
  color: #fff;
}
#view-chat .inbox-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #fa5151;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 1px #f5f5f5;
}
#view-chat .inbox-item.is-on .inbox-badge {
  box-shadow: 0 0 0 1px #07c160;
}

/* Label sits in the middle of the button, on both axes. */
#view-home .home-seg button,
#view-home .work-gate,
#view-home .connect-row button,
#view-home .today-side .btn-next,
#view-desk .desk-tab,
#view-desk .btn-next,
#view-cosmo .cosmo-dock button,
#view-cosmo .filter,
#view-cosmo .own-quiet,
#view-cosmo .own-go,
#view-cosmo .own-row > button,
#view-cosmo .topic-tabs button,
#view-cosmo .topic-actions button,
#view-symbion .sym-tabs button,
.chrome-bookmarks button,
.seg button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
}

/* Workbench functions sit in a left list, the way Feishu lays out a product. */
#view-desk .desk-shell {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
}
#view-desk .desk-side {
  width: 216px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #ececee;
  background: #fff;
  overflow: auto;
}
#view-desk .desk-side-label {
  margin: 0;
  padding: 16px 16px 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: #71717a;
}
#view-desk .desk-side .desk-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 4px 8px 12px;
  border: 0;
  overflow: visible;
}
#view-desk .desk-side .desk-tools {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}
#view-desk .desk-side .desk-tools[hidden] { display: none; }
#view-desk .desk-side .desk-tab {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  height: 36px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: #18181b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-align: left;
}
#view-desk .desk-side .desk-tab svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#view-desk .desk-side .desk-tab:hover:not(.is-active) {
  background: #f4f4f5;
  color: #18181b;
}
#view-desk .desk-side .desk-tab.is-active {
  background: #ececee;
  color: #09090b;
  box-shadow: none;
}
#view-desk .desk-side .desk-tools .desk-tab {
  height: 32px;
  padding-left: 34px;
  font-size: 13px;
  font-weight: 400;
  color: #3f3f46;
}
#view-desk .desk-side .desk-tools .desk-tab.is-active {
  background: #ececee;
  color: #09090b;
  font-weight: 500;
  box-shadow: none;
}
#view-desk .desk-side [data-desk-tab="mycosmo"] { margin-top: 12px; }
#view-desk .desk-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  background: #fff;
}

/* Calendar uses the product palette. Today is a circle. No week bar. */
.cal-apple,
.cal-toolbar h2,
.cal-seg button,
.cal-mini-grid button,
.cal-mini-grid span,
.cal-source,
.cal-num,
.cal-month-cell > button:first-child,
.cal-year-month strong,
.cal-year-month i,
#view-desk .cal-add-form p,
#view-desk .cal-add-form input {
  color: #18181b;
}
.cal-mini-wd,
.cal-side-label,
.cal-side-note,
.cal-wd,
.cal-gutter-all,
.cal-gutter-hours span,
.cal-month-wd {
  color: #71717a;
}
.cal-month-cell.is-out span { color: #a1a1aa; }
.cal-body,
.cal-side,
.cal-allrow,
.cal-month-wd {
  border-color: #ececee;
}
.cal-side { background: #f4f4f5; }
.cal-seg,
#cal-today:hover,
.cal-toolbar-left button:hover,
.cal-year-month:hover,
#view-desk .cal-add-form input { background: #f4f4f5; }
.cal-seg button.is-on {
  background: #fff;
  box-shadow: 0 0 0 1px #ececee;
}
#cal-today { box-shadow: inset 0 0 0 1px #ececee; }
.cal-mini-grid button.in-week { background: transparent; }
.cal-mini-grid button.is-picked {
  width: 22px;
  height: 22px;
  justify-self: center;
  padding: 0;
  background: #e4e4e7;
  border-radius: 50%;
}
.cal-mini-grid button.is-today,
.cal-mini-grid button.in-week.is-today {
  width: 22px;
  height: 22px;
  justify-self: center;
  padding: 0;
  background: #09090b;
  color: #fff;
  border-radius: 50%;
}
.cal-headcell.is-today .cal-wd { color: #09090b; }
.cal-headcell.is-today .cal-num,
.cal-month-cell > button.is-today {
  background: #09090b;
  color: #fff;
  border-radius: 50%;
}
.cal-headcell.is-picked .cal-num { background: #e4e4e7; }
.cal-year-month i.is-today {
  width: 14px;
  height: 14px;
  justify-self: center;
  background: #09090b;
  color: #fff;
  border-radius: 50%;
}
.cal-now { border-top-color: #09090b; }
.cal-now i { background: #09090b; }
.cal-grid {
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 23px,
    #ececee 23px,
    #ececee 24px,
    transparent 24px,
    transparent 47px,
    #e4e4e7 47px,
    #e4e4e7 48px
  );
}
.cal-source i[data-c="mine"] { color: #09090b; background: #09090b; }
.cal-source i[data-c="team"] { color: #64a7cc; background: #64a7cc; }
.cal-source i[data-c="research"] { color: #71717a; background: #71717a; }
.cal-source input:focus-visible + i { outline-color: #09090b; }
#view-desk [data-desk-panel="calendar"] .cal-event[data-cal-source="mine"],
.cal-chip.is-mine { background: #f4f4f5; color: #18181b; }
#view-desk [data-desk-panel="calendar"] .cal-event[data-cal-source="team"],
.cal-chip.is-team { background: rgba(100, 167, 204, 0.22); color: #4a7a96; }
#view-desk [data-desk-panel="calendar"] .cal-event[data-cal-source="research"],
.cal-chip.is-research { background: #ececee; color: #52525b; }
#view-desk [data-desk-panel="calendar"] .cal-event[data-cal-source="mine"]:hover { background: #e4e4e7; }
#view-desk [data-desk-panel="calendar"] .cal-event[data-cal-source="team"]:hover { background: rgba(100, 167, 204, 0.32); }
#view-desk [data-desk-panel="calendar"] .cal-event[data-cal-source="research"]:hover { background: #e4e4e7; }
#view-desk .cal-add-form .btn-next { background: #09090b; color: #fff; }

/* Tab sits on the paper bar, white when it is the current page. */
.chrome {
  background: #f4f4f5;
  gap: 8px;
}
.chrome-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
  min-width: 0;
  max-width: min(460px, 46%);
}
#chrome-tablist {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  overflow: auto;
}
#chrome-tablist::-webkit-scrollbar { height: 0; }
.chrome-tab {
  display: flex;
  align-items: center;
  height: 36px;
  min-width: 120px;
  max-width: 188px;
  padding: 0 4px 0 14px;
  border-radius: 8px;
  background: transparent;
  color: #52525b;
  flex: none;
}
.chrome-tab.is-on {
  background: #fff;
  color: #09090b;
  box-shadow: 0 0 0 1px #ececee;
}
.chrome-tab:hover:not(.is-on) { background: #e4e4e7; }
.chrome-tab-label {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: inherit;
}
.chrome-tab-x {
  width: 22px;
  height: 22px;
  margin-left: 4px;
  border-radius: 6px;
  color: #71717a;
  display: grid;
  place-items: center;
  flex: none;
}
.chrome-tab-x:hover { background: #e4e4e7; color: #18181b; }
.chrome-tab-x svg,
#chrome-tab-add svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
#chrome-tab-add {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #18181b;
  display: grid;
  place-items: center;
  flex: none;
}
#chrome-tab-add:hover { background: #e4e4e7; }

/* Home shortcuts sit on the greeting row, flush to the right of Xinyue. */
#view-home .page-head.today-head {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: nowrap;
}
#view-home .page-head.today-head h1 {
  padding-bottom: 0;
  min-width: 0;
}
#view-home .today-head .connect-row {
  margin: 0 0 0 auto;
  padding: 0;
  justify-content: flex-end;
  flex-wrap: nowrap;
  flex: none;
}

.chrome-bookmarks button {
  gap: 6px;
}
.chrome-bookmarks button svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Todo text wraps in the side column. Adding one does not slide the page sideways. */
#view-home .today-side {
  overflow-x: hidden;
  overflow-y: auto;
}
#view-home .today-notes,
#view-home .todo-list,
#view-home .todo-list li,
#view-home .todo-item {
  min-width: 0;
  max-width: 100%;
}
#view-home .todo-item {
  align-items: flex-start;
}
#view-home .todo-item span {
  min-width: 0;
  flex: 1;
  white-space: normal;
  overflow-wrap: anywhere;
}
#view-home .todo-draft .todo-item textarea {
  min-width: 0;
  flex: 1;
  width: auto;
  height: auto;
  min-height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  resize: none;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  color: #18181b;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  field-sizing: content;
}
#view-home .todo-draft .todo-item textarea:hover,
#view-home .todo-draft .todo-item textarea:focus {
  outline: none;
  background: transparent;
}

/* Sub-filters stay gray. The black pill is only for the top-level switch. */
#view-cosmo .filter {
  background: #f4f4f5;
  color: #71717a;
}
#view-cosmo .filter:hover:not(.is-on) {
  background: #ececee;
  color: #52525b;
}
#view-cosmo .filter.is-on {
  background: #e4e4e7;
  color: #09090b;
}
#view-cosmo #owner-side .filter {
  border-color: transparent;
  background: #f4f4f5;
  color: #71717a;
}
#view-cosmo #owner-side .filter:hover:not(.is-on) {
  background: #ececee;
  color: #52525b;
}
#view-cosmo #owner-side .filter.is-on {
  border-color: transparent;
  background: #e4e4e7;
  color: #09090b;
}
#view-desk #drive-seg {
  padding: 0;
  gap: 8px;
  background: transparent;
}
#view-desk #drive-seg button {
  height: 32px;
  padding: 0 14px;
  border-radius: 10px;
  background: #f4f4f5;
  color: #71717a;
  font-weight: 500;
}
#view-desk #drive-seg button.is-on {
  background: #e4e4e7;
  color: #09090b;
  box-shadow: none;
}
#view-cosmo #own-manage .filters { margin-top: 14px; }
#view-cosmo #own-manage .cosmo-admin { margin-top: 12px; }
#view-cosmo #own-manage .subhead {
  margin: 0 0 2px;
  max-width: 68ch;
  color: #52525b;
  font-size: 14px;
  line-height: 1.6;
}

/* Directory cards: quiet white tiles. Summon appears only while the pointer is on the card. */
#view-cosmo .twins {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
#view-cosmo .twin {
  position: relative;
  min-height: 0;
  padding: 16px 16px 14px;
  gap: 12px;
  border: 1px solid #ececee;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}
#view-cosmo .twin:hover {
  border-color: #d4d4d8;
  background: #fff;
  box-shadow: 0 8px 24px rgba(9, 9, 11, 0.06);
}
#view-cosmo .twin .twin-top {
  align-items: center;
  gap: 10px;
  padding-right: 4px;
}
#view-cosmo .twin .twin-av,
#view-cosmo .twin .twin-av.t1,
#view-cosmo .twin .twin-av.t2,
#view-cosmo .twin .twin-av.t3,
#view-cosmo .twin .twin-av.t4 {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
}
#view-cosmo .twin .name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  color: #09090b;
}
#view-cosmo .twin .meta {
  margin-top: 1px;
  font-size: 12px;
  line-height: 1.4;
  color: #71717a;
}
#view-cosmo .twin .role {
  font-size: 13px;
  line-height: 1.65;
  color: #3f3f46;
}
#view-cosmo .twin-tags { gap: 6px; }
#view-cosmo .twin-tags span {
  padding: 3px 8px;
  border-radius: 6px;
  background: #f4f4f5;
  font-size: 12px;
  line-height: 1.4;
  color: #52525b;
}
#view-cosmo .twin-summon {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #09090b;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
}
#view-cosmo .twin:hover .twin-summon,
#view-cosmo .twin:focus-within .twin-summon {
  opacity: 1;
  pointer-events: auto;
}
#view-cosmo .twin-summon:hover { background: #27272a; }
#view-cosmo .twin-summon.is-on,
#view-cosmo .twin-summon:disabled {
  background: #e4e4e7;
  color: #09090b;
  cursor: default;
}

/* Left rail and top bar sit on glass. The selected item is a white chip with black ink. */
body { background: #e6e7eb; }
body .rail {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
}
body .rail-btn,
body .rail-user {
  color: #71717a;
}
body .rail-btn svg { color: currentColor; }
body .rail-btn:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.45);
  color: #18181b;
}
body .rail-btn.is-active {
  background: #fff;
  color: #09090b;
  box-shadow: 0 1px 2px rgba(9, 9, 11, 0.05);
}
body .shell {
  background: rgba(255, 255, 255, 0.38);
  border-color: rgba(255, 255, 255, 0.7);
}
body .chrome {
  background: rgba(255, 255, 255, 0.42);
  border-bottom: 0;
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
}
body .chrome-tab {
  color: #71717a;
  box-shadow: none;
}
body .chrome-tab.is-on {
  background: #fff;
  color: #09090b;
  box-shadow: 0 1px 2px rgba(9, 9, 11, 0.05);
}
body .shell-body {
  padding: 0 8px 8px;
  background: transparent;
}
body .main-pane { background: transparent; }
body .view.is-active {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
}

/* Citta column copies the assistant card: title, centered greeting, chips, send. */
body:not(.citta-collapsed):not(.citta-free) .app {
  grid-template-columns: 248px minmax(0, 1fr) 350px;
}
body:not(.citta-collapsed):not(.citta-free) .shell { margin-right: 0; }
body:not(.citta-collapsed):not(.citta-free) .citta-pane {
  top: 10px;
  right: 10px;
  bottom: 10px;
  width: 340px;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(9, 9, 11, 0.06);
}
.citta-pane-head {
  padding: 18px 16px 0;
  gap: 8px;
}
.citta-pane-head .citta-mark { display: none; }
.citta-pane-head .title {
  margin-right: auto;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: #71717a;
}
.citta-pane .avatar-switch {
  height: 32px;
  padding: 0 14px;
  border-radius: 980px;
  background: #09090b;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.citta-collapse {
  width: 32px;
  height: 32px;
  margin-left: 0;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  color: #71717a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.citta-collapse svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.citta-collapse:hover { background: #f4f4f5; color: #09090b; }
.citta-hero {
  padding: 28px 24px 8px;
  text-align: center;
}
.citta-hero h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  color: #09090b;
}
.citta-hero .sub {
  margin: 10px auto 0;
  max-width: 28em;
  font-size: 13px;
  line-height: 1.6;
  color: #71717a;
}
.citta-asks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 16px 16px 4px;
}
.citta-asks button {
  height: 30px;
  padding: 0 10px;
  border-radius: 980px;
  background: #f4f4f5;
  color: #3f3f46;
  font-size: 12px;
  font-weight: 500;
}
.citta-asks button:nth-child(1) { background: #f3eef8; }
.citta-asks button:nth-child(2) { background: #f8f1e8; }
.citta-asks button:nth-child(3) { background: #eef6f1; }
.citta-asks button:nth-child(4) { background: #eef4f8; }
.citta-asks button:nth-child(5) { background: #f4f4f5; }
.citta-chat {
  margin: 8px 12px 0;
  padding: 8px;
  border-radius: 16px;
  background: transparent;
}
.citta-input {
  margin: 12px;
  padding: 8px 8px 8px 8px;
  border: 1px solid #ececee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(9, 9, 11, 0.04);
}
.citta-mic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #71717a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.citta-mic svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.citta-mic.is-on { color: #09090b; background: #f4f4f5; }
.citta-input .send {
  width: auto;
  height: 32px;
  padding: 0 14px;
  border-radius: 980px;
  background: #09090b;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

/* Messages use the workspace system: white list, gray selection, black unread count. */
#view-chat .inbox {
  background: #fff;
  border-right: 1px solid #ececee;
  padding: 8px 0 12px;
}
#view-chat .wx-search {
  gap: 8px;
  padding: 8px 12px 10px;
}
#view-chat .wx-search .inbox-search {
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: #f4f4f5;
  box-shadow: none;
}
#view-chat .wx-search .inbox-search svg {
  stroke: #71717a;
}
#view-chat .wx-search .inbox-search input {
  height: 34px;
  font-size: 14px;
  color: #09090b;
}
#view-chat .wx-search .inbox-search input::placeholder {
  color: #71717a;
}
#view-chat #inbox-add {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f4f4f5;
  color: #09090b;
  box-shadow: none;
}
#view-chat #inbox-add:hover {
  background: #ececee;
}
#view-chat .inbox-item,
#view-chat .inbox-item.is-unread {
  width: calc(100% - 16px);
  min-height: 64px;
  margin: 2px 8px;
  padding: 10px;
  border-radius: 8px;
  background: transparent;
  color: #09090b;
}
#view-chat .inbox-item:hover:not(.is-on) {
  background: #f4f4f5;
}
#view-chat .inbox-item.is-on,
#view-chat .inbox-item.is-on:hover {
  background: #ececee;
  color: #09090b;
}
#view-chat .inbox-face {
  width: 40px;
  height: 40px;
}
#view-chat .inbox-av,
#view-chat .inbox-av.t0,
#view-chat .inbox-av.t1,
#view-chat .inbox-av.t2 {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f4f4f5;
  color: #09090b;
  font-size: 13px;
  font-weight: 600;
}
#view-chat .inbox-top strong {
  font-size: 14px;
  font-weight: 500;
  color: #18181b;
}
#view-chat .inbox-item.is-unread .inbox-top strong {
  font-weight: 600;
  color: #09090b;
}
#view-chat .inbox-top time,
#view-chat .inbox-item.is-unread time,
#view-chat .inbox-item.is-on time,
#view-chat .inbox-item.is-on.is-unread time {
  font-size: 12px;
  font-weight: 400;
  color: #71717a;
}
#view-chat .inbox-item em,
#view-chat .inbox-item.is-unread em,
#view-chat .inbox-item:not(.is-unread) em,
#view-chat .inbox-item.is-on em,
#view-chat .inbox-item.is-on.is-unread em {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  color: #71717a;
}
#view-chat .inbox-item.is-unread em {
  color: #52525b;
}
#view-chat .inbox-item.is-on strong,
#view-chat .inbox-item.is-on.is-unread strong {
  color: #09090b;
}
#view-chat .inbox-badge {
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 980px;
  background: #09090b;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  box-shadow: 0 0 0 2px #fff;
}
#view-chat .inbox-item.is-on .inbox-badge {
  box-shadow: 0 0 0 2px #ececee;
}
#view-chat .chat-head.page-head {
  border-bottom: 1px solid #ececee;
}
#view-chat .chat-head.page-head h1 {
  font-size: 20px;
  font-weight: 600;
  color: #09090b;
}
#view-chat .chat-head.page-head p {
  color: #71717a;
}
#view-chat .chat-log {
  background: #fff;
  gap: 16px;
}
#view-chat .chat-log .msg-time {
  color: #71717a;
}
#view-chat .chat-log .msg-av,
#view-chat .chat-log .msg-av.t1,
#view-chat .chat-log .msg-av.t2 {
  border-radius: 50%;
  background: #f4f4f5;
  color: #09090b;
}
#view-chat .chat-log .msg:not(.me) .msg-meta strong {
  color: #71717a;
  font-weight: 500;
}
#view-chat .chat-log .msg:not(.me) .bubble p {
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid #ececee;
  background: #fff;
  color: #18181b;
}
#view-chat .chat-log .msg.me .bubble {
  padding: 10px 14px;
  border-radius: 16px;
  background: #f4f4f5;
  color: #09090b;
}
#view-chat .chat-log .msg.me .bubble p {
  color: #09090b;
}
#view-chat .thread-input {
  min-height: 52px;
  margin: 8px 16px 16px;
  padding: 8px 8px 8px 16px;
  border: 1px solid #ececee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(9, 9, 11, 0.04);
}
#view-chat .thread-input input {
  color: #09090b;
  font-size: 14px;
}
#view-chat .thread-input input::placeholder {
  color: #71717a;
}
#view-chat .thread-input .send {
  width: auto;
  height: 32px;
  padding: 0 14px;
  border-radius: 980px;
  background: #09090b;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#view-chat .inbox-add-wrap { position: relative; flex: none; }
#view-chat .inbox-add-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 6;
  min-width: 168px;
  padding: 6px;
  border: 1px solid #ececee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(9, 9, 11, 0.08);
}
#view-chat .inbox-add-menu[hidden] { display: none; }
#view-chat .inbox-add-menu button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  background: transparent;
  color: #18181b;
  font-size: 14px;
  line-height: 1;
  text-align: left;
}
#view-chat .inbox-add-menu button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
#view-chat .inbox-add-menu button:hover { background: #f4f4f5; }
#view-chat #inbox-add[aria-expanded="true"] { background: #ececee; }

#view-chat .chat-view {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}
#view-chat .inbox-sheet {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 28px 24px;
  background: #fff;
}
#view-chat .inbox-sheet[hidden],
#view-chat .inbox-sheet form[hidden] { display: none; }
#view-chat .inbox-sheet form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 440px;
}
#view-chat .inbox-sheet header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#view-chat .inbox-sheet h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  color: #09090b;
}
#view-chat .inbox-sheet [data-sheet-close] {
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: #f4f4f5;
  color: #52525b;
  font-size: 13px;
}
#view-chat .inbox-sheet [data-sheet-close]:hover { background: #ececee; color: #09090b; }
#view-chat .inbox-sheet label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #71717a;
  font-size: 13px;
}
#view-chat .inbox-sheet input[type="text"] {
  height: 40px;
  padding: 0 12px;
  border: 1px solid #ececee;
  border-radius: 8px;
  background: #fff;
  color: #09090b;
  font-size: 14px;
}
#view-chat .pick-list { display: flex; flex-direction: column; gap: 4px; }
#view-chat .pick-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 10px;
  border-radius: 8px;
  color: #18181b;
  font-size: 14px;
}
#view-chat .pick-row:hover { background: #f4f4f5; }
#view-chat .pick-row input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #09090b;
}
#view-chat .pick-row .inbox-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f4f4f5;
  color: #09090b;
  font-size: 12px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
#view-chat .sheet-note {
  margin: 0;
  color: #71717a;
  font-size: 13px;
  line-height: 1.6;
}
#view-chat .inbox-sheet-go {
  align-self: flex-start;
  height: 32px;
  padding: 0 14px;
  border-radius: 980px;
  background: #09090b;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
#view-chat .inbox-sheet-go:disabled {
  background: #f4f4f5;
  color: #71717a;
}
#view-chat .dm-note {
  margin: 8px 0 0;
  color: #71717a;
  font-size: 13px;
  line-height: 1.6;
}

.chrome .omnibox {
  flex: 0 1 360px;
  width: 360px;
  max-width: 360px;
  background: #fff;
  border: 1px solid #d4d4d8;
  box-shadow: none;
}
.chrome .omnibox:hover,
.chrome .omnibox:focus-within {
  background: #fff;
  border-color: #a1a1aa;
  box-shadow: none;
}
.chrome .omnibox-search,
.chrome .omnibox-tool {
  width: 28px;
  height: 28px;
  margin: 0;
}
.chrome .omnibox-search svg,
.chrome .omnibox-tool svg {
  width: 16px;
  height: 16px;
}

#view-desk [data-desk-panel="calendar"] .cal-event.is-on[data-cal-source="mine"],
#view-desk [data-desk-panel="calendar"] .cal-event.is-on[data-cal-source="mine"]:hover,
.cal-chip.is-mine.is-on {
  background: #09090b;
  color: #fff;
}
#view-desk [data-desk-panel="calendar"] .cal-event.is-on[data-cal-source="team"],
#view-desk [data-desk-panel="calendar"] .cal-event.is-on[data-cal-source="team"]:hover,
.cal-chip.is-team.is-on {
  background: #64a7cc;
  color: #fff;
}
#view-desk [data-desk-panel="calendar"] .cal-event.is-on[data-cal-source="research"],
#view-desk [data-desk-panel="calendar"] .cal-event.is-on[data-cal-source="research"]:hover,
.cal-chip.is-research.is-on {
  background: #52525b;
  color: #fff;
}
.cal-popover {
  position: fixed;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 260px;
  margin: 0;
  padding: 14px 16px 16px;
  border-radius: 12px;
  background: #fff;
  color: #09090b;
  box-shadow: 0 18px 50px rgba(9, 9, 11, 0.16), 0 0 0 1px rgba(9, 9, 11, 0.06);
}
.cal-popover[hidden] { display: none; }
.cal-pop-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0;
}
.cal-pop-meta {
  margin: 0;
  color: #71717a;
  font-size: 13px;
  line-height: 1.45;
}
.cal-pop-cal {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid #ececee;
  color: #18181b;
  font-size: 13px;
  line-height: 1.4;
}
.cal-pop-cal::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #09090b;
  flex: none;
}
.cal-popover[data-source="team"] .cal-pop-cal::before { background: #64a7cc; }
.cal-popover[data-source="research"] .cal-pop-cal::before { background: #71717a; }
.cal-pop-note {
  margin: 4px 0 0;
  color: #52525b;
  font-size: 13px;
  line-height: 1.5;
}
.cal-pop-note[hidden] { display: none; }

#view-home .todo-draft .todo-item,
#view-home .todo-draft .todo-item:hover,
#view-home .todo-draft .todo-item:focus-within {
  background: transparent;
}

/* Greeting and the mail row share one center line, and stop before the side rule. */
#view-home.is-active {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-rows: auto minmax(0, 1fr);
  column-gap: 12px;
  height: 100%;
  min-height: 0;
  padding: 0 8px 16px;
}
#view-home.is-active::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 16px;
  right: calc(8px + 360px);
  width: 1px;
  background: #ececee;
  pointer-events: none;
}
#view-home .page-head.today-head {
  grid-column: 1;
  grid-row: 1;
  align-items: center;
  align-self: center;
  flex-wrap: nowrap;
  padding: 22px 20px 10px 24px;
  container-type: inline-size;
}
#view-home .page-head.today-head h1 {
  margin: 0;
  padding: 0;
  line-height: 1.15;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: clamp(22px, calc((100cqi - 460px) / 11.7), 32px);
}
#view-home .today-head .connect-row {
  flex: none;
  max-width: 100%;
}
#view-home .today {
  display: contents;
}
#view-home .today-week {
  grid-column: 1;
  grid-row: 2;
  min-height: 0;
}
#view-home .today-side {
  grid-column: 2;
  grid-row: 2;
  min-height: 0;
  border-left: 0;
}

/* Recall is a secondary control. Hover only changes color. */
#view-home .today-present .present-recall {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  height: 36px;
  margin-top: 10px;
  padding: 0 12px;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  background: #fff;
  color: #18181b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: none;
  transition: background 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out;
}
#view-home .today-present .present-recall::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  background:
    linear-gradient(currentColor, currentColor) center / 1.5px 8px no-repeat,
    linear-gradient(currentColor, currentColor) center / 8px 1.5px no-repeat;
  opacity: 0.45;
}
#view-home .today-present .present-recall:hover {
  background: #f4f4f5;
  border-color: #d4d4d8;
  color: #09090b;
  box-shadow: none;
  transform: none;
}
#view-home .today-present .present-recall:hover::before { opacity: 1; }
#view-home .today-present .present-recall:active {
  background: #ececee;
  border-color: #d4d4d8;
  box-shadow: none;
  transform: none;
}
#view-home .today-present .present-recall:focus-visible {
  outline: 2px solid #09090b;
  outline-offset: 2px;
}
#view-home .today-present .present-recall:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
#view-home .today-present .present-recall[hidden] { display: none; }

#view-home .today-present .present-list .link-quiet {
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: transparent;
  color: #71717a;
  font-size: 13px;
  font-weight: 500;
  transition: background 160ms ease-out, color 160ms ease-out;
}
#view-home .today-present .present-list .link-quiet:hover {
  background: #f4f4f5;
  border-radius: 8px;
  color: #09090b;
}
#view-home .today-present .present-list .link-quiet:active {
  background: #ececee;
}
#view-home .today-present .present-list .link-quiet:focus-visible {
  outline: 2px solid #09090b;
  outline-offset: 2px;
}

/* Kanban is a widget home. Cards use the existing white surface, not the reference lime. */
#view-desk [data-desk-panel="kanban"] {
  background: #f4f4f5;
  border-radius: 22px;
  padding: 18px 18px 16px;
}
#view-desk [data-desk-panel="kanban"] .board-head h2 {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: #09090b;
}
#view-desk [data-desk-panel="kanban"] .kb-new {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
}
#view-desk [data-desk-panel="kanban"] .kb-new[hidden] { display: none; }
#view-desk [data-desk-panel="kanban"] .kb-new input {
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  background: #fff;
  color: #18181b;
}
.desk-widgets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.widget-cal { grid-column: 1 / -1; }
.desk-widget {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 16px 16px 14px;
  border: 1px solid #ececee;
  border-radius: 22px;
  background: #fff;
  color: #18181b;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease-out, background 160ms ease-out;
}
.desk-widget:hover {
  border-color: #d4d4d8;
  box-shadow: none;
  transform: none;
}
.desk-widget:active {
  transform: none;
  box-shadow: none;
}
.widget-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.widget-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #09090b;
}
.widget-head p {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.3;
  color: #71717a;
}
.widget-go {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: #f4f4f5;
  color: #18181b;
  transition: background 160ms ease-out, color 160ms ease-out;
}
.widget-go svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.desk-widget:hover .widget-go,
.widget-go:hover {
  background: #09090b;
  color: #fff;
}
.widget-go:focus-visible,
.widget-row:focus-visible {
  outline: 2px solid #09090b;
  outline-offset: 2px;
}
.widget-days {
  display: flex;
  gap: 6px;
}
.widget-days span {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 8px 0 6px;
  border-radius: 14px;
  background: #f4f4f5;
}
.widget-days b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 650;
  font-style: normal;
  color: #18181b;
}
.widget-days i {
  font-style: normal;
  font-size: 11px;
  color: #71717a;
}
.widget-days .is-today {
  background: transparent;
}
.widget-days .is-today b {
  background: #09090b;
  color: #fff;
}
.widget-days .is-today i { color: #09090b; }
.widget-events,
.widget-mail-list,
#kb-you {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.widget-event,
#kb-you .kb-card {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 8px 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  text-align: left;
}
.widget-event:hover,
#kb-you .kb-card:hover { background: #f4f4f5; }
.widget-event i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #09090b;
}
.widget-event[data-source="team"] i { background: #64a7cc; }
.widget-event[data-source="research"] i { background: #71717a; }
.widget-event strong,
.widget-row strong,
#kb-you .kb-card strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #09090b;
}
.widget-event em,
.widget-event time,
.widget-row em,
#kb-you .kb-card time,
#kb-you .kb-card p {
  display: block;
  margin: 2px 0 0;
  font-style: normal;
  font-size: 12px;
  line-height: 1.35;
  color: #71717a;
}
.widget-event time { margin: 0; white-space: nowrap; }
.widget-event small,
#kb-you .kb-card .kb-wait { display: none; }
.widget-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 8px 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
}
.widget-row:hover { background: #f4f4f5; }
.widget-row.is-unread strong { font-weight: 650; }
.widget-files {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.widget-files span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  color: #18181b;
}
.widget-files b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  background: #f4f4f5;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: #52525b;
}
.widget-figure {
  margin: 0;
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #09090b;
}
.widget-figure-note {
  margin: -6px 0 0;
  font-size: 13px;
  line-height: 1.35;
  color: #71717a;
}
.widget-added p {
  margin: 0 0 4px;
  font-size: 12px;
  color: #71717a;
}
.widget-added:has(#kb-you:empty) { display: none; }
.widget-cal .widget-events {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.widget-cal .widget-event {
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: start;
  align-content: start;
  min-height: 72px;
  padding: 12px;
  background: #f4f4f5;
}
.widget-cal .widget-event:hover { background: #ececee; }
.widget-cal .widget-event time {
  grid-column: 2;
  margin-top: 6px;
  white-space: normal;
}
.widget-ledger-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2px;
}
.widget-ledger-list span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 8px 8px;
  border-radius: 12px;
}
.widget-ledger-list strong {
  font-size: 14px;
  font-weight: 600;
  color: #09090b;
}
.widget-ledger-list em {
  flex: none;
  font-style: normal;
  font-size: 13px;
  color: #71717a;
}
.widget-ledger .widget-figure { margin-bottom: 2px; }
@media (max-width: 980px) {
  .desk-widgets { grid-template-columns: 1fr; }
  .widget-cal { grid-column: auto; }
  .widget-cal .widget-events { grid-template-columns: 1fr; }
}

/* One type ramp: 42 welcome, 24 page, 20 section, 17 card, 15 nav/list title, 14 body and controls, 12 caption. */
body {
  font-size: var(--type-ui);
  font-weight: 400;
  line-height: 1.5;
}
button,
input,
textarea {
  font-size: var(--type-ui);
  font-weight: 500;
}

#view-home .page-head.today-head {
  flex-wrap: wrap;
}
#view-home .page-head.today-head h1 {
  font-size: var(--type-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  flex: 0 0 auto;
  min-width: max-content;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}
#view-home .connect-row button,
#view-home .home-seg button,
#view-home .todo-item,
#view-home .todo-draft,
#view-home .nod p,
#view-home .present-list em,
#view-home .sheet-label,
.subhead {
  font-size: var(--type-ui);
  font-weight: 400;
}
#view-home .called-label,
#view-home .sheet-label,
#view-home .task-kicker,
#view-home .present-list strong,
#view-desk .desk-side .desk-tab {
  font-size: var(--type-label);
  font-weight: 600;
}
#view-home .nod h2,
#view-home .today-card h2 {
  font-size: var(--type-h3);
  font-weight: 600;
  line-height: 1.3;
}
#view-desk .desk-side-label {
  font-size: var(--type-caption);
  font-weight: 600;
  letter-spacing: 0.04em;
}
#view-desk .board-head h2,
#view-desk [data-desk-panel="kanban"] .board-head h2,
#view-desk #cal-title,
#view-desk .mail-read h3,
#view-chat .chat-head h1,
#view-cosmo .cosmo-head h1,
#view-symbion .sym-stage h1,
#view-account h1 {
  font-size: var(--type-h1);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
#view-desk .mail-read h3 { font-size: var(--type-h2); }
#view-desk .desk-widget h2,
#view-desk .folder .name,
#view-cosmo .twin strong,
#view-cosmo .own-row strong {
  font-size: var(--type-h3);
  font-weight: 600;
  line-height: 1.3;
}
#view-desk .widget-head p,
#view-desk .widget-event em,
#view-desk .widget-event time,
#view-desk .widget-files span,
#view-desk .widget-figure-note,
#view-desk .widget-row em,
#view-desk .widget-row strong,
#view-desk .mail-row strong,
#view-desk .mail-subj,
#view-desk .mail-snip,
#view-desk .mail-row time,
#view-desk .mail-kicker,
#view-desk .mail-read p,
#view-desk .cal-event strong,
#view-desk .cal-event time,
#view-desk .cal-event em,
#view-desk .cal-event span,
#view-desk .cal-source,
#view-desk .cal-seg button,
#view-desk .ledger-row,
#view-desk .file-row,
#view-desk .cal-num,
#kb-you .kb-card strong,
#kb-you .kb-card time,
#kb-you .kb-card p {
  font-size: var(--type-ui);
  font-weight: 400;
  line-height: 1.4;
}
#view-desk .widget-event strong,
#view-desk .widget-row strong,
#view-desk .mail-row strong,
#view-desk .mail-subj,
#view-desk .cal-event strong,
#kb-you .kb-card strong {
  font-size: var(--type-label);
  font-weight: 600;
}
#view-desk .widget-days b,
#view-desk .cal-num {
  font-size: var(--type-label);
  font-weight: 600;
}
#view-desk .widget-days i,
#view-desk .widget-files b,
#view-desk .cal-wd,
#view-desk .cal-gutter-hours span,
#view-desk .cal-gutter-all,
#view-desk .ledger-row.head,
#view-desk .file-row.head,
#view-desk .widget-added p {
  font-size: var(--type-caption);
  font-weight: 500;
  line-height: 1.3;
}
#view-desk .widget-figure {
  font-size: var(--type-h1);
  font-weight: 600;
}
#view-chat .inbox-top strong,
#view-chat .bubble strong {
  font-size: var(--type-label);
  font-weight: 600;
  line-height: 1.3;
}
#view-chat .inbox-item em,
#view-chat .bubble p,
#view-chat .thread-input input,
.citta-pane .citta-log,
.citta-pane textarea,
.citta-pane input {
  font-size: var(--type-ui);
  font-weight: 400;
  line-height: 1.5;
}
#view-chat .inbox-top time,
#view-chat .msg-time,
#view-chat .chat-head p {
  font-size: var(--type-caption);
  font-weight: 400;
}
#view-chat .inbox-av { font-size: var(--type-ui); }
.citta-pane-head .title,
.citta-pane .avatar-switch,
.citta-asks button {
  font-size: var(--type-ui);
  font-weight: 500;
}
.citta-hero h2 {
  font-size: var(--type-h1);
  font-weight: 600;
  line-height: 1.25;
}
.citta-hero .sub { font-size: var(--type-ui); }
.chrome,
.chrome-tab,
.omnibox,
.chrome-bookmarks button,
.rail-btn,
.rail-user {
  font-size: var(--type-ui);
}
#view-desk [data-desk-panel="calendar"] .cal-event { font-size: var(--type-caption); }
#view-desk [data-desk-panel="calendar"] .cal-event strong {
  font-size: var(--type-ui);
  font-weight: 600;
}
#view-desk [data-desk-panel="calendar"] .cal-event time,
#view-desk [data-desk-panel="calendar"] .cal-event span,
#view-desk [data-desk-panel="calendar"] .cal-event em {
  font-size: var(--type-caption);
  font-weight: 400;
}
#view-chat .inbox-item em,
#view-chat .inbox-item.is-unread em,
#view-chat .inbox-item:not(.is-unread) em,
#view-chat .inbox-item.is-on em,
#view-chat .inbox-item.is-on.is-unread em {
  font-size: var(--type-ui);
  font-weight: 400;
}
.btn-next,
.btn-dark,
.work-gate,
#view-desk .board-head .btn-next,
#view-chat .thread-input .send,
.citta-input .send,
.cal-toolbar-left button,
.cal-seg button,
#cal-today {
  font-size: var(--type-ui);
  font-weight: 500;
}
#view-chat .inbox-av,
#view-chat .inbox-av.t0,
#view-chat .inbox-av.t1,
#view-chat .inbox-av.t2 {
  font-size: var(--type-ui);
  font-weight: 600;
}
#view-chat .inbox-top strong,
#view-chat .inbox-item.is-unread .inbox-top strong,
#view-chat .inbox-item.is-on strong,
#view-chat .inbox-item.is-on.is-unread strong {
  font-size: var(--type-label);
  font-weight: 600;
}
#view-chat .inbox-badge {
  font-size: var(--type-caption);
  line-height: 18px;
}
.inbox-label {
  font-size: var(--type-caption);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.pill,
.pill-ok,
.pill-warn,
.pill-mute {
  font-size: var(--type-caption);
  font-weight: 500;
}
.cal-mini p {
  font-size: var(--type-ui);
  font-weight: 600;
}
.cal-mini-wd,
.cal-mini-grid span,
.cal-mini-grid button,
.cal-month-wd,
.cal-side-note,
.cal-chip {
  font-size: var(--type-caption);
}
.cal-chip { height: 18px; line-height: 18px; }
#view-home .task-kicker strong,
#view-home .task-item span {
  font-size: var(--type-caption);
  font-weight: 600;
}
#view-home .task-item strong {
  font-size: var(--type-label);
  font-weight: 600;
}
.widget-days span,
.widget-event,
.widget-row {
  font-size: var(--type-ui);
}
.rail-ws-name { font-size: var(--type-caption); font-weight: 600; }
#view-home .work-head,
#view-home .work-head span {
  font-size: var(--type-caption);
  font-weight: 600;
}
#view-home .work-main strong {
  font-size: var(--type-label);
  font-weight: 600;
}
#view-home .work-main em,
#view-home .work-citta {
  font-size: var(--type-ui);
  font-weight: 400;
}
#view-home .work-gate,
#view-home .work-gate:disabled,
#view-home .today-present .present-list .link-quiet,
#view-home .present-av {
  font-size: var(--type-ui);
  font-weight: 500;
}
#view-chat .chat-head.page-head h1 {
  font-size: var(--type-h1);
  font-weight: 600;
}
#view-chat .chat-head.page-head p,
#chat-kind {
  font-size: var(--type-caption);
  font-weight: 400;
}
#view-chat .chat-log .msg-meta strong,
#view-chat .chat-log .msg:not(.me) .msg-meta strong,
#view-chat .chat-log .msg.me .msg-meta strong {
  font-size: var(--type-label);
  font-weight: 600;
}
#view-chat .chat-log .bubble p,
#view-chat .chat-log .msg:not(.me) .bubble p,
#view-chat .chat-log .msg.me .bubble p {
  font-size: var(--type-ui);
  font-weight: 400;
  line-height: 1.5;
}
#view-cosmo .filter,
#view-cosmo #owner-side .filter,
#view-cosmo .twin-summon,
#view-cosmo .twin-summon.is-on,
#view-cosmo .twin .role {
  font-size: var(--type-ui);
  font-weight: 400;
}
#view-cosmo .filter,
#view-cosmo .twin-summon {
  font-weight: 500;
}
#view-desk .desk-side .desk-tab,
#view-desk .desk-side .desk-tools .desk-tab,
#view-desk .desk-side .desk-tab span {
  font-size: var(--type-label);
  font-weight: 600;
}
#view-symbion .sym-head h1 {
  font-size: var(--type-h1);
  font-weight: 600;
  letter-spacing: -0.03em;
}
#view-symbion .sym-card h2 {
  font-size: var(--type-h3);
  font-weight: 600;
  line-height: 1.3;
}
#view-symbion .sym-card p,
#view-symbion .sym-card label,
#view-symbion .person-line,
#view-symbion .sym-card select {
  font-size: var(--type-ui);
  font-weight: 400;
}
#view-symbion .sym-card label,
#view-symbion .person-line strong {
  font-size: var(--type-label);
  font-weight: 600;
}
body .rail-ws-name,
body .rail-btn,
body .rail-btn span,
body .rail-user,
body .rail-user [data-account-name] {
  font-size: var(--type-label);
  font-weight: 500;
  color: #18181b;
}
body .rail-ws-name { font-weight: 600; color: #09090b; }
body .rail-btn.is-active,
body .rail-btn.is-active span { color: #09090b; font-weight: 600; }
body .rail-btn {
  height: 40px;
  min-height: 40px;
}
body .rail-btn svg {
  width: 18px;
  height: 18px;
}
/* Feishu zones: the left rail and the top bar are one glass frame. The page itself is white. */
body { padding: 0; background: #e6e7eb; }
body .app { gap: 0; background: transparent; }
body .rail {
  border: 0;
  border-radius: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.38);
  box-shadow: none;
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
}
body .shell {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body .chrome {
  background: rgba(255, 255, 255, 0.38);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 0;
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
}
body .shell-body,
body .workspace,
body .main-pane,
body .view.is-active {
  background: #fff;
  border-radius: 0;
}
body .shell-body { padding: 0; }
#view-desk [data-desk-panel="kanban"] {
  background: transparent;
  border-radius: 0;
}
/* Add-friend and new-group open as dialogs. Structure follows the chat apps; ink stays black. */
#view-chat .inbox-sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  max-width: none;
  padding: 28px;
  background: rgba(9, 9, 11, 0.32);
}
#view-chat .inbox-sheet[hidden] { display: none; }
#view-chat .inbox-sheet-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
}
#view-chat .sheet-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(480px, 100%);
  min-height: 460px;
  max-width: none;
  margin: 0;
  padding: 22px 22px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(9, 9, 11, 0.16);
  gap: 16px;
}
#view-chat .inbox-sheet form[hidden] { display: none; }
#view-chat .sheet-group {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.1fr);
  width: min(860px, 100%);
  height: min(560px, calc(100vh - 56px));
  min-height: 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
}
#view-chat .sheet-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 16px 12px 12px;
  background: #f4f4f5;
}
#view-chat .sheet-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 18px 18px 16px;
  background: #fff;
}
#view-chat .sheet-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
}
#view-chat .sheet-head.is-center {
  grid-template-columns: 32px minmax(0, 1fr) 32px;
}
#view-chat .sheet-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  color: #09090b;
}
#view-chat .sheet-head.is-center h2 { text-align: center; }
#view-chat .sheet-head p {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: #71717a;
}
#view-chat .sheet-head [data-sheet-close] {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  color: #71717a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#view-chat .sheet-head [data-sheet-close] svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
#view-chat .sheet-head [data-sheet-close]:hover { background: #f4f4f5; color: #09090b; }
#view-chat .sheet-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #ececee;
  border-radius: 8px;
  background: #fff;
  color: #71717a;
}
#view-chat .sheet-side .sheet-search { background: #fff; }
#view-chat .sheet-search svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
#view-chat .sheet-search input {
  width: 100%;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #09090b;
  font-size: 14px;
  font-weight: 400;
}
#view-chat .sheet-search input:focus { outline: none; }
#view-chat .friend-search {
  display: flex;
  align-items: center;
  gap: 8px;
}
#view-chat .friend-search .sheet-search { flex: 1; }
#view-chat .friend-search .inbox-sheet-go,
#view-chat .sheet-actions .inbox-sheet-go,
#view-chat .friend-hit .inbox-sheet-go {
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  background: #09090b;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  align-self: auto;
}
#view-chat .sheet-kicker {
  margin: 14px 8px 6px;
  font-size: 12px;
  font-weight: 500;
  color: #71717a;
}
#view-chat .sheet-group .pick-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  gap: 2px;
}
#view-chat .sheet-group .pick-row {
  min-height: 48px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
#view-chat .sheet-group .pick-row[hidden] { display: none; }
#view-chat .sheet-group .pick-row input {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid #d4d4d8;
  border-radius: 50%;
  background: #fff;
  accent-color: #09090b;
}
#view-chat .sheet-group .pick-row input:checked {
  border-color: #09090b;
  background: #09090b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.2 6.4 11l6.1-6.2' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
#view-chat .chosen-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}
#view-chat .chosen-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #18181b;
  font-size: 15px;
  font-weight: 500;
}
#view-chat .chosen-row span:nth-child(2) { flex: 1; min-width: 0; }
#view-chat .chosen-row .inbox-av,
#view-chat .friend-hit .inbox-av,
#view-chat .sheet-group .pick-row .inbox-av {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #f4f4f5;
  color: #09090b;
  font-size: 12px;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex: none;
}
#view-chat .chosen-row button {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f4f4f5;
  color: #71717a;
  font-size: 14px;
  line-height: 1;
}
#view-chat .chosen-row button:hover { background: #ececee; color: #09090b; }
#view-chat .sheet-note {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: #71717a;
}
#view-chat .sheet-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
#view-chat .sheet-cancel {
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  background: #f4f4f5;
  color: #18181b;
  font-size: 14px;
  font-weight: 500;
}
#view-chat .sheet-cancel:hover { background: #ececee; }
#view-chat .friend-result { flex: 1; min-height: 80px; }
#view-chat .friend-hit {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 4px;
  color: #18181b;
  font-size: 15px;
  font-weight: 600;
}
#view-chat .friend-hit span:nth-child(2) { flex: 1; min-width: 0; }
#view-chat .sheet-group .inbox-sheet-go:disabled {
  background: #f4f4f5;
  color: #a1a1aa;
}
/* Directory hover only tints the card. Size, shadow, and text stay put. */
#view-cosmo .twin,
#view-cosmo .twin:hover,
#view-cosmo .twin:focus-within,
#view-cosmo .twin.is-on {
  border: 1px solid #ececee;
  box-shadow: none;
  transform: none;
  background: #fff;
}
#view-cosmo .twin:hover,
#view-cosmo .twin:focus-within {
  background: #f4f4f5;
  border-color: #a1a1aa;
}
#view-cosmo .twin .twin-top { padding-right: 84px; }
#view-home .work-row:hover,
.work-row:hover { background: transparent; }
#view-chat .inbox-sheet form.sheet-card {
  max-width: none;
}
#view-chat .inbox-sheet form.sheet-friend {
  display: flex;
  flex-direction: column;
  width: min(520px, 100%);
  min-height: 520px;
}
#view-chat .inbox-sheet form.sheet-group {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.1fr);
  width: min(860px, 100%);
  height: min(560px, calc(100vh - 56px));
  min-height: 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
}
#view-chat .inbox-sheet .inbox-sheet-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#view-chat .inbox-sheet .sheet-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
}
#view-chat .inbox-sheet .sheet-head.is-center {
  grid-template-columns: 32px minmax(0, 1fr) 32px;
}
#view-chat .inbox-sheet .sheet-head.is-center h2 {
  grid-column: 1 / -1;
  grid-row: 1;
  text-align: center;
}
#view-chat .inbox-sheet .sheet-head.is-center [data-sheet-close] {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}
#view-chat .inbox-sheet label.sheet-search {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  height: 36px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #ececee;
  border-radius: 8px;
  background: #fff;
  color: #71717a;
  font-size: 14px;
  font-weight: 400;
}
#view-chat .inbox-sheet .sheet-search input {
  width: 100%;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #09090b;
  font-size: 14px;
  font-weight: 400;
  appearance: none;
}
#view-chat .inbox-sheet .sheet-search input:focus { outline: none; }
#view-chat .inbox-sheet form.sheet-group[hidden],
#view-chat .inbox-sheet form.sheet-friend[hidden] { display: none; }

#view-desk .cal-add-menu {
  position: fixed;
  z-index: 40;
  min-width: 148px;
  margin: 0;
  padding: 6px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(9, 9, 11, 0.16), 0 0 0 1px #ececee;
}
#view-desk .cal-add-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  height: 36px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #18181b;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
#view-desk .cal-add-menu button:hover,
#view-desk .cal-add-menu button:focus-visible {
  background: #f4f4f5;
  outline: none;
}
#view-desk .cal-add-menu[hidden] { display: none; }

#view-desk .cal-add-form {
  position: fixed;
  top: auto;
  right: auto;
  z-index: 40;
  display: grid;
  gap: 10px;
  width: 280px;
  margin: 0;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(9, 9, 11, 0.16), 0 0 0 1px #ececee;
}
#view-desk .cal-add-form p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: #09090b;
  white-space: nowrap;
}
#view-desk .cal-add-form input {
  width: 100%;
  height: 40px;
  flex: none;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: #f4f4f5;
  color: #18181b;
  font-size: 14px;
  font-weight: 400;
}
#view-desk .cal-add-form input::placeholder { color: #a1a1aa; }
#view-desk .cal-add-form input:focus { outline: none; }
#view-desk .cal-add-form .btn-next {
  justify-self: end;
  height: 32px;
  padding: 0 16px;
  border: 0;
  border-radius: 980px;
  background: #09090b;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
#view-desk .cal-add-form[hidden] { display: none; }

#chrome-tablist { gap: 6px; }
body .chrome-tab {
  background: transparent;
  color: #52525b;
  box-shadow: inset 0 0 0 1px #a1a1aa;
}
body .chrome-tab.is-on {
  background: #fff;
  color: #09090b;
  box-shadow: inset 0 0 0 1px #d4d4d8;
}
body .chrome-tab:hover:not(.is-on) {
  background: rgba(255, 255, 255, 0.72);
  color: #18181b;
}
.chrome-tab-label {
  font-size: 14px;
  font-weight: 500;
}
body .chrome-tab.is-on .chrome-tab-label {
  font-weight: 600;
  color: #09090b;
}

#view-browser .ntp-marks {
  display: grid;
  gap: 8px;
  max-width: 420px;
  margin-top: 20px;
}
#view-browser .ntp-mark {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #ececee;
  border-radius: 12px;
  background: #fff;
  color: #18181b;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}
#view-browser .ntp-mark em {
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  color: #71717a;
}
#view-browser .ntp-mark:hover { background: #f4f4f5; }
#view-browser .summon-hint[hidden] { display: none; }

body.citta-collapsed .citta-dock {
  top: auto;
  right: 18px;
  bottom: 18px;
  transform: none;
}
body.citta-collapsed .citta-dock.is-moved {
  right: auto;
  bottom: auto;
  transform: none;
}

#view-chat .chat-log .msg,
#view-chat .chat-log .msg.me {
  align-items: flex-start;
  gap: 8px;
}
#view-chat .chat-log .msg-av,
#view-chat .chat-log .msg-av.t1,
#view-chat .chat-log .msg-av.t2 {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #f4f4f5;
  color: #09090b;
  font-size: 14px;
  font-weight: 500;
}
#view-chat .chat-log .msg:not(.me) .msg-meta {
  min-height: 0;
  margin: 0 0 4px;
}
#view-chat .chat-log .msg:not(.me) .msg-meta strong,
#view-chat .chat-log .msg-meta strong {
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: #71717a;
}
#view-chat .chat-log .msg:not(.me) .bubble {
  padding: 0;
  background: transparent;
}
#view-chat .chat-log .msg:not(.me) .bubble p {
  position: relative;
  width: fit-content;
  max-width: min(460px, 72vw);
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: #f4f4f5;
  color: #18181b;
}
#view-chat .chat-log .msg:not(.me) .bubble p::after {
  content: "";
  position: absolute;
  top: 11px;
  left: -5px;
  border-style: solid;
  border-width: 5px 6px 5px 0;
  border-color: transparent #f4f4f5 transparent transparent;
}
#view-chat .chat-log .msg.me .bubble {
  position: relative;
  max-width: min(460px, 72vw);
  padding: 8px 12px;
  border-radius: 6px;
  background: #09090b;
  color: #fff;
}
#view-chat .chat-log .msg.me .bubble p {
  color: #fff;
}
#view-chat .chat-log .msg.me .bubble::after {
  content: "";
  position: absolute;
  top: 11px;
  right: -5px;
  border-style: solid;
  border-width: 5px 0 5px 6px;
  border-color: transparent transparent transparent #09090b;
}
#view-chat .chat-log .msg.me .msg-av {
  flex: none;
  background: #09090b;
  color: #fff;
}

.chrome-bookmarks {
  margin-left: auto;
}

.rail-workspace .rail-ws-name {
  display: block;
  height: 11px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

/* Cosmo tabs swap panels under a fixed header. The directory bar lives in the people panel, so hiding it no longer pulls the page up. */
#view-cosmo .note-panel,
#view-cosmo .topic-panel,
#view-cosmo .own-panel,
#view-cosmo [data-cosmo-panel="people"] {
  margin-top: 0;
}
#view-cosmo .cosmo-dock button,
#view-cosmo .cosmo-dock button.is-on,
#view-cosmo .filter,
#view-cosmo .filter.is-on {
  font-weight: 500;
}

/* Citta Skill / Loop: one column, the action stays with the lead, rows stay a list. */
#view-symbion .sym-panel.is-on > .sym-card:last-child {
  flex: none;
}
#view-symbion .sym-panel.is-on[data-sym-panel="skill"],
#view-symbion .sym-panel.is-on[data-sym-panel="loop"] {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 720px;
  padding-top: 16px;
}
#view-symbion [data-sym-panel="skill"] .board-head,
#view-symbion [data-sym-panel="loop"] .board-head {
  align-items: center;
  gap: 24px;
  max-width: none;
  margin: 0 0 8px;
}
#view-symbion [data-sym-panel="skill"] .board-head .subhead,
#view-symbion [data-sym-panel="loop"] .board-head .subhead {
  flex: 1;
  margin: 0;
  max-width: none;
}
#view-symbion [data-sym-panel="skill"] .sym-card,
#view-symbion [data-sym-panel="loop"] .sym-card {
  max-width: none;
  margin: 20px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}
#view-symbion [data-sym-panel="skill"] .sym-card h2,
#view-symbion [data-sym-panel="loop"] .sym-card h2 {
  margin: 0 0 8px;
}
#view-symbion [data-sym-panel="skill"] .sym-rows,
#view-symbion [data-sym-panel="loop"] #loop-list {
  border-top: 1px solid #ececee;
}
#view-symbion [data-sym-panel="skill"] .person-line,
#view-symbion [data-sym-panel="loop"] .person-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 8px 4px;
  border: 0;
  border-bottom: 1px solid #ececee;
  border-radius: 0;
  background: transparent;
  text-align: left;
}
#view-symbion [data-sym-panel="skill"] button.person-line:hover,
#view-symbion [data-sym-panel="loop"] button.person-line:hover {
  background: #f4f4f5;
}
#view-symbion .sym-skill-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
#view-symbion .sym-skill-copy span {
  color: #71717a;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}
#view-symbion .sym-status {
  flex: none;
  margin-left: auto;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: #f4f4f5;
  color: #71717a;
  font-size: 12px;
  font-weight: 500;
  line-height: 22px;
}
#view-symbion [data-sym-panel="skill"] .sym-fold,
#view-symbion [data-sym-panel="loop"] .sym-fold {
  margin: 0;
  border-radius: 0;
  border-bottom: 1px solid #ececee;
}
#view-symbion [data-sym-panel="skill"] .person-line .link-quiet {
  flex: none;
  margin-left: 8px;
}

#view-people.is-active {
  padding: 0;
  min-height: 0;
}
#view-people .book {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  background: #fff;
}
#view-people .book-list {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid #ececee;
  background: #fff;
}
#view-people .book-search {
  padding: 12px 28px 8px 12px;
}
#view-people .book-search label {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  background: #f4f4f5;
}
#view-people .book-search svg {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: #71717a;
  stroke-width: 1.8;
}
#view-people .book-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #18181b;
  font-size: 13px;
}
#view-people .book-search input:focus { outline: none; }
#view-people .book-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
#view-people .book-shortcuts {
  border-bottom: 8px solid #fff;
}
#view-people .book-entry,
#view-people .book-back {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 8px 28px 8px 16px;
  border: 0;
  border-bottom: 1px solid #ececee;
  background: transparent;
  color: #18181b;
  text-align: left;
}
#view-people .book-entry strong,
#view-people .book-back {
  font-size: 15px;
  font-weight: 500;
  color: #18181b;
}
#view-people .book-back::before {
  content: "";
  width: 8px;
  height: 8px;
  border-left: 1.5px solid #18181b;
  border-bottom: 1.5px solid #18181b;
  transform: rotate(45deg);
}
#view-people .book-entry:hover { background: #f4f4f5; }
#view-people .book-entry.is-on { background: #ececee; }
#view-people .book-entry.is-static { cursor: default; }
#view-people .book-entry.is-static:hover { background: transparent; }
#view-people .book-entry em {
  margin-left: auto;
  font-style: normal;
  font-size: 13px;
  color: #71717a;
}
#view-people .book-tile {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 6px;
  background: #f4f4f5;
  color: #18181b;
}
#view-people .book-tile svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#view-people .book-av {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 6px;
  background: #f4f4f5;
  color: #18181b;
  font-size: 13px;
  font-weight: 600;
}
#view-people .book-av.is-lg {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  font-size: 22px;
}
#view-people .book-letter {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 10px 16px 4px;
  background: #fff;
  color: #71717a;
  font-size: 12px;
  font-weight: 600;
}
#view-people .book-miss,
#view-people .book-quiet {
  margin: 0;
  padding: 20px 16px;
  color: #71717a;
  font-size: 13px;
  line-height: 1.5;
}
#view-people .book-index {
  position: absolute;
  top: 56px;
  right: 2px;
  bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 16px;
}
#view-people .book-index[hidden] { display: none; }
#view-people .book-index button {
  width: 16px;
  height: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d4d4d8;
  font-size: 10px;
  font-weight: 500;
  line-height: 14px;
}
#view-people .book-index button.is-on { color: #09090b; font-weight: 600; }
#view-people .book-detail {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  background: #fff;
}
#view-people .book-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(420px, 100%);
  padding: 24px;
  text-align: center;
}
#view-people .book-card h1 {
  margin: 16px 0 0;
  color: #09090b;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}
#view-people .book-card > p {
  margin: 6px 0 0;
  color: #71717a;
  font-size: 13px;
}
#view-people .book-members {
  display: grid;
  grid-template-columns: repeat(4, 64px);
  gap: 16px 8px;
  justify-content: center;
  width: 100%;
  margin-top: 28px;
}
#view-people .book-members span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
#view-people .book-members em {
  max-width: 64px;
  overflow: hidden;
  font-style: normal;
  font-size: 12px;
  color: #71717a;
  white-space: nowrap;
  text-overflow: ellipsis;
}
#view-people .book-send {
  height: 36px;
  min-width: 140px;
  margin-top: 28px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: #09090b;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
#view-people .book-send:hover { background: #18181b; }
#view-people .book-quiet {
  padding: 0;
  color: #a1a1aa;
}

.account-menu {
  width: 280px;
  padding: 8px;
  border-radius: 18px;
}
.account-head {
  gap: 12px;
  padding: 6px 8px 10px;
}
.account-menu .account-photo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: transparent;
}
.account-menu .account-photo:hover { background: transparent; }
.account-head .rail-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
}
.account-menu button[data-account] {
  height: 40px;
  border-radius: 10px;
}
.account-menu button[data-account] svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.5;
}
.account-menu button[aria-expanded="true"] {
  background: #f4f4f5;
  border-radius: 12px 12px 0 0;
}
.account-fold {
  margin: 0 0 4px;
  padding: 2px 12px 12px;
  border-radius: 0 0 12px 12px;
  background: #f4f4f5;
}
.account-fold[hidden] { display: none; }
.account-menu .account-fold p {
  margin: 0;
  color: #52525b;
  font-size: 13px;
  line-height: 1.5;
}
.account-menu .account-fold p + p { margin-top: 6px; }
.account-menu .account-form label {
  display: grid;
  gap: 6px;
  margin: 0 0 8px;
  color: #71717a;
  font-size: 12px;
  font-weight: 500;
}
.account-menu .account-form input {
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  background: #fff;
  color: #18181b;
  font-size: 14px;
}
.account-menu .account-fold button {
  display: inline-flex;
  width: auto;
  height: 32px;
  margin-top: 10px;
  padding: 0 14px;
  border-radius: 980px;
  background: #09090b;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}
.account-menu .account-fold button:hover { background: #18181b; }
.account-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 7px 0;
}
.account-status span {
  color: #18181b;
  font-size: 13px;
  font-weight: 600;
}
.account-status em {
  color: #71717a;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
}
.account-menu button.is-out {
  height: 40px;
  margin-top: 2px;
  color: #dc2626;
  font-weight: 500;
}

/* Conversation list: one filled search, glyph tool, count beside the time. */
#view-chat .wx-search {
  gap: 2px;
  padding: 12px 10px 8px;
}
#view-chat .wx-search .inbox-search {
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  background: #f4f4f5;
  box-shadow: none;
}
#view-chat .wx-search .inbox-search svg {
  width: 14px;
  height: 14px;
  stroke: #71717a;
  stroke-width: 1.8;
}
#view-chat .wx-search .inbox-search input {
  height: 30px;
  font-size: 13px;
  color: #18181b;
}
#view-chat #inbox-add {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  color: #18181b;
  box-shadow: none;
}
#view-chat #inbox-add:hover,
#view-chat #inbox-add[aria-expanded="true"] {
  background: #f4f4f5;
}
#view-chat .inbox-item,
#view-chat .inbox-item.is-unread {
  width: calc(100% - 12px);
  min-height: 56px;
  margin: 1px 6px;
  padding: 8px;
  border-radius: 10px;
  gap: 10px;
  background: transparent;
}
#view-chat .inbox-item:hover:not(.is-on) {
  background: #f4f4f5;
}
#view-chat .inbox-item.is-on,
#view-chat .inbox-item.is-on:hover {
  background: #ececee;
  color: #09090b;
}
#view-chat .inbox-face {
  width: 36px;
  height: 36px;
}
#view-chat .inbox-av,
#view-chat .inbox-av.t0,
#view-chat .inbox-av.t1,
#view-chat .inbox-av.t2 {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f4f4f5;
  color: #18181b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
#view-chat .inbox-item:hover .inbox-av,
#view-chat .inbox-item.is-on .inbox-av,
#view-chat .inbox-item.is-on .inbox-av.t0,
#view-chat .inbox-item.is-on .inbox-av.t1,
#view-chat .inbox-item.is-on .inbox-av.t2 {
  background: #fff;
}
#view-chat .inbox-top {
  align-items: center;
  gap: 8px;
}
#view-chat .inbox-top strong {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #18181b;
}
#view-chat .inbox-item.is-unread .inbox-top strong,
#view-chat .inbox-item.is-on strong,
#view-chat .inbox-item.is-on.is-unread strong {
  font-weight: 600;
  color: #09090b;
}
#view-chat .inbox-top time,
#view-chat .inbox-item.is-unread time,
#view-chat .inbox-item.is-on time,
#view-chat .inbox-item.is-on.is-unread time {
  flex: none;
  font-size: 12px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: #a1a1aa;
}
#view-chat .inbox-item.is-unread time {
  color: #71717a;
}
#view-chat .inbox-item em,
#view-chat .inbox-item.is-unread em,
#view-chat .inbox-item:not(.is-unread) em,
#view-chat .inbox-item.is-on em,
#view-chat .inbox-item.is-on.is-unread em {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  color: #a1a1aa;
}
#view-chat .inbox-item.is-unread em {
  color: #71717a;
}
#view-chat .inbox-badge {
  position: static;
  top: auto;
  right: auto;
  display: grid;
  place-items: center;
  flex: none;
  min-width: 16px;
  height: 16px;
  margin: 0;
  padding: 0 4px;
  border-radius: 8px;
  background: #09090b;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  box-shadow: none;
}
#view-chat .inbox-item.is-on .inbox-badge {
  box-shadow: none;
}

/* Hover changes color only. Buttons and cards stay in place. */
button:hover,
button:active,
.desk-widget:hover,
.desk-widget:active,
.tl-chip:hover,
.entry:hover,
.person:hover,
.gate:hover {
  transform: none;
}
#view-home .today-present .present-recall:hover,
#view-home .today-present .present-recall:active {
  transform: none;
  box-shadow: none;
}

/* Rail lockup: the word sits with the mark, not under it. */
.rail-workspace {
  gap: 6px;
  align-items: center;
}
.rail-workspace .brand {
  width: 22px;
  height: 15px;
}
.rail-workspace .rail-ws-name {
  height: 14px;
}

/* Kanban hover only recolors. The card edge and position stay put. */
#view-desk .desk-widget,
#view-desk .desk-widget:hover,
#view-desk .desk-widget:active,
#view-desk .widget-event,
#view-desk .widget-event:hover,
#view-desk .widget-row,
#view-desk .widget-row:hover,
#view-desk .widget-go,
#view-desk .widget-go:hover,
#view-desk #kb-new,
#view-desk #kb-new:hover {
  transform: none;
  box-shadow: none;
}
#view-desk .desk-widget {
  transition: background-color 160ms ease-out;
}
#view-desk .desk-widget:hover,
#view-desk .desk-widget:active,
#view-home .desk-widget:hover,
#view-home .desk-widget:active {
  border-color: #ececee;
  background: #fafafa;
}
#view-home .desk-widget,
#view-home .desk-widget:hover,
#view-home .desk-widget:active,
#view-home .widget-event,
#view-home .widget-event:hover,
#view-home .widget-row,
#view-home .widget-row:hover,
#view-home .widget-go,
#view-home .widget-go:hover {
  transform: none;
  box-shadow: none;
}
#view-home [data-home-panel="week"][hidden] { display: none; }
#view-home .desk-widgets { margin-top: 4px; }

/* The workbench list is the kanban. Sections open from a widget and return with the arrow. */
#view-desk .desk-side { display: none; }
#view-desk .desk-back {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0 0 8px;
  border-radius: 8px;
  background: transparent;
  color: #18181b;
  flex: none;
}
#view-desk [data-desk-panel="calendar"] .desk-back {
  margin: 10px 0 0 12px;
}
#view-desk .desk-back:hover {
  background: #f4f4f5;
  color: #09090b;
}
#view-desk .desk-back svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Friends and groups list who is already in a conversation. Chat stays the only thread. */
#view-people .book-search { padding-right: 12px; }
#view-people .book-index { display: none; }
#view-people .book-section {
  margin: 0;
  padding: 14px 16px 4px;
  color: #71717a;
  font-size: 12px;
  font-weight: 600;
}
#view-people .book-detail {
  display: block;
  overflow: auto;
  padding: 28px 40px 40px;
}
#view-people .book-quiet {
  padding: 4px 0;
}
#view-people .people-panel {
  max-width: 480px;
}
#view-people .people-panel h1 {
  margin: 0;
  color: #09090b;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}
#view-people .people-meta {
  margin: 6px 0 20px;
  color: #71717a;
  font-size: 13px;
}
.member-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.member-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #18181b;
  font-size: 14px;
}
.member-note {
  margin: 12px 0 0;
  color: #71717a;
  font-size: 13px;
  line-height: 1.5;
}
#view-people .member-open,
#view-chat .chat-member-btn {
  border-radius: 8px;
  background: transparent;
  color: #52525b;
}
#view-people .member-open {
  height: 32px;
  margin-top: 20px;
  padding: 0 10px;
  color: #4a7a96;
}
#view-people .member-open:hover {
  background: #f4f4f5;
  color: #09090b;
}
#view-chat .chat-head.page-head {
  align-items: center;
  justify-content: space-between;
}
#view-chat .chat-head-copy {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
#view-chat .chat-member-btn {
  height: 32px;
  padding: 0 10px;
  font-size: 13px;
}
#view-chat .chat-member-btn:hover {
  background: #f4f4f5;
  color: #09090b;
}
#view-chat .chat-member-btn.is-on,
#view-chat .chat-member-btn.is-on:hover {
  background: #ececee;
  color: #09090b;
}
#view-chat .chat-stage {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
}
#view-chat .chat-stage .chat-log {
  flex: 1;
  min-width: 0;
}
#view-chat .chat-member-pane {
  display: flex;
  flex-direction: column;
  width: 280px;
  flex: none;
  padding: 20px 16px 24px;
  border-left: 1px solid #ececee;
  background: #fff;
  overflow: auto;
}
#view-chat .chat-member-pane[hidden] { display: none; }
#view-chat .chat-member-pane h2 {
  margin: 0 0 8px;
  color: #09090b;
  font-size: 15px;
  font-weight: 600;
}

/* 待同意 opens the decision beside the chip. The card beside it stays put. */
#view-home .work-decide {
  position: relative;
  justify-self: end;
}
#view-home .gate-pop {
  position: absolute;
  z-index: 4;
  top: calc(100% + 6px);
  right: 0;
  width: 248px;
  padding: 12px 14px;
  border: 1px solid #ececee;
  border-radius: 12px;
  background: #fff;
}
#view-home .gate-pop[hidden] { display: none; }
#view-home .gate-pop p {
  margin: 0 0 10px;
  color: #52525b;
  font-size: 13px;
  line-height: 1.5;
}
#view-home .gate-pop .btn-next,
#view-home .gate-cancel {
  height: 32px;
  border-radius: 8px;
}
#view-home .gate-pop .btn-next {
  padding: 0 14px;
  background: #09090b;
  color: #fff;
}
#view-home .gate-pop .btn-next:hover { background: #18181b; }
#view-home .gate-cancel {
  margin-left: 4px;
  padding: 0 10px;
  background: transparent;
  color: #52525b;
}
#view-home .gate-cancel:hover {
  background: #f4f4f5;
  color: #09090b;
}
#view-home .today-side .nod.is-focus {
  margin: 0;
  padding: 14px 0;
  border-radius: 0;
  background: transparent;
}

/* Rail mark is the black logo, with no tile behind it. */
.rail-workspace {
  height: auto;
  margin: 0 0 16px;
  padding: 4px 10px 0;
  gap: 0;
}
.rail-workspace .brand {
  width: 36px;
  height: 25px;
  padding: 0;
  border-radius: 0;
  background: none;
  object-fit: contain;
  filter: none;
}
.rail-workspace .rail-ws-name { display: none; }

/* Workbench shows a function. The widget grid stays on the home page. */
#view-desk .desk-main {
  overflow: hidden;
}
#view-desk .desk-switch {
  display: flex;
  flex: none;
  gap: 8px;
  margin: 0;
  padding: 16px 32px 0;
}
#view-desk .desk-switch-btn {
  height: 36px;
  padding: 0 16px;
  border: 1px solid #ececee;
  border-radius: 980px;
  background: #fff;
  color: #18181b;
  font-size: 14px;
  font-weight: 500;
}
#view-desk .desk-switch-btn.is-active {
  background: #09090b;
  border-color: #09090b;
  color: #fff;
}
#view-desk .desk-switch-btn:hover:not(.is-active) {
  background: #f4f4f5;
}
#view-desk .bench .desk-board[data-desk-panel="kanban"],
#view-desk .desk-back {
  display: none;
}

/* Calendar widget: one date language, then a separate schedule list. */
#view-home .widget-cal .widget-days,
#view-desk .widget-cal .widget-days {
  gap: 0;
  padding: 2px 0 12px;
  border-bottom: 1px solid #ececee;
}
#view-home .widget-cal .widget-days span,
#view-desk .widget-cal .widget-days span {
  gap: 6px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
#view-home .widget-cal .widget-days b,
#view-desk .widget-cal .widget-days b,
#view-home .widget-cal .widget-days .is-today b,
#view-desk .widget-cal .widget-days .is-today b {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: #71717a;
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
#view-home .widget-cal .widget-days i,
#view-desk .widget-cal .widget-days i,
#view-home .widget-cal .widget-days .is-today i,
#view-desk .widget-cal .widget-days .is-today i {
  color: #71717a;
  font-size: 11px;
  font-weight: 400;
}
#view-home .widget-cal .widget-days .is-today,
#view-desk .widget-cal .widget-days .is-today {
  background: transparent;
}
#view-home .widget-cal .widget-days .is-today b,
#view-desk .widget-cal .widget-days .is-today b {
  background: transparent;
  color: #09090b;
  font-weight: 650;
}
#view-home .widget-cal .widget-zone,
#view-desk .widget-cal .widget-zone {
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: #71717a;
}
#view-home .widget-cal .widget-events,
#view-desk .widget-cal .widget-events {
  display: flex;
  flex-direction: column;
  gap: 0;
}
#view-home .widget-cal .widget-event,
#view-desk .widget-cal .widget-event {
  grid-template-columns: 3px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 0;
  padding: 10px 2px;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid #ececee;
}
#view-home .widget-cal .widget-event:last-child,
#view-desk .widget-cal .widget-event:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}
#view-home .widget-cal .widget-event:hover,
#view-desk .widget-cal .widget-event:hover {
  background: #fafafa;
}
#view-home .widget-cal .widget-event i,
#view-desk .widget-cal .widget-event i {
  width: 3px;
  height: 28px;
  border-radius: 2px;
  background: #09090b;
}
#view-home .widget-cal .widget-event[data-source="team"] i,
#view-desk .widget-cal .widget-event[data-source="team"] i {
  background: #64a7cc;
}
#view-home .widget-cal .widget-event[data-source="research"] i,
#view-desk .widget-cal .widget-event[data-source="research"] i {
  background: #71717a;
}
#view-home .widget-cal .widget-event time,
#view-desk .widget-cal .widget-event time {
  grid-column: 3;
  grid-row: 1;
  margin: 0;
  white-space: nowrap;
  color: #52525b;
}

/* Home widgets follow the reference cards, in the existing ink palette. */
#view-home .desk-widgets {
  gap: 14px;
}
#view-home .desk-widget {
  border-radius: 28px;
  padding: 18px 18px 16px;
  background: #fff;
}
#view-home .widget-cal .widget-days {
  position: relative;
  gap: 8px;
  padding: 2px 0 22px;
  border-bottom: 0;
}
#view-home .widget-cal .widget-days::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 8px;
  height: 1px;
  background: #e4e4e7;
}
#view-home .widget-cal .widget-days span {
  position: relative;
  gap: 1px;
  padding: 10px 0 8px;
  border-radius: 999px;
  background: #f4f4f5;
}
#view-home .widget-cal .widget-days b,
#view-home .widget-cal .widget-days .is-today b {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: #18181b;
  font-size: 15px;
  font-weight: 600;
}
#view-home .widget-cal .widget-days i,
#view-home .widget-cal .widget-days .is-today i {
  color: #71717a;
  font-size: 11px;
}
#view-home .widget-cal .widget-days .is-today {
  background: #09090b;
}
#view-home .widget-cal .widget-days .is-today b,
#view-home .widget-cal .widget-days .is-today i {
  color: #fff;
}
#view-home .widget-cal .widget-days .is-today::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -17px;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: #09090b;
}
#view-home .widget-mail .widget-row {
  position: relative;
  padding: 10px 8px 10px 16px;
  border-radius: 14px;
}
#view-home .widget-mail .widget-row.is-unread::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #09090b;
}
#view-home .widget-ledger .widget-figure {
  margin: 2px 0 4px;
  padding: 16px 18px 14px;
  border-radius: 18px;
  background: #09090b;
  color: #fff;
  font-size: 40px;
}
#view-home .widget-ledger .widget-ledger-list span {
  padding: 8px 4px;
  border-radius: 0;
  border-bottom: 1px solid #ececee;
}
#view-home .widget-ledger .widget-ledger-list span:last-child {
  border-bottom: 0;
}
#view-home .widget-drive .widget-files {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
#view-home .widget-drive .widget-files span {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 72px;
  padding: 12px;
  border-radius: 16px;
  background: #f4f4f5;
}
#view-home .widget-drive .widget-files b {
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #71717a;
}

/* Week events follow Apple Calendar: one hour is tall enough for title, time, and the note. */
.cal-gutter-hours,
.cal-grid {
  height: 1040px;
}
.cal-grid {
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 39px,
    #ececee 39px,
    #ececee 40px,
    transparent 40px,
    transparent 79px,
    #e4e4e7 79px,
    #e4e4e7 80px
  );
  background-size: 100% 80px;
}
.cal-now {
  top: 600px;
  z-index: 1;
}
#view-desk [data-desk-panel="calendar"] .cal-event {
  z-index: 2;
  padding: 4px 6px 3px;
  overflow: hidden;
  line-height: 16px;
}
#view-desk [data-desk-panel="calendar"] .cal-event strong,
#view-desk [data-desk-panel="calendar"] .cal-event time,
#view-desk [data-desk-panel="calendar"] .cal-event span,
#view-desk [data-desk-panel="calendar"] .cal-event em {
  margin: 0;
  line-height: 16px;
  white-space: normal;
}
#view-desk [data-desk-panel="calendar"] .cal-event strong {
  font-size: 13px;
  font-weight: 600;
}
#view-desk [data-desk-panel="calendar"] .cal-event time,
#view-desk [data-desk-panel="calendar"] .cal-event span,
#view-desk [data-desk-panel="calendar"] .cal-event em {
  font-size: 12px;
  font-weight: 400;
}
#view-desk [data-desk-panel="calendar"] .cal-event[data-cal-source="team"] {
  background: #dcebf4;
  color: #4a7a96;
}
#view-desk [data-desk-panel="calendar"] .cal-event[data-cal-source="team"]:hover {
  background: #cfe4f1;
}
#view-desk [data-desk-panel="calendar"] .cal-event.is-allday {
  height: 22px;
  padding: 2px 6px;
  line-height: 18px;
  white-space: nowrap;
}
#view-desk [data-desk-panel="calendar"] .cal-event.is-allday strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Home work column stays inside the viewport. The edit stage can still scroll. */
#view-home .today-week {
  overflow: hidden;
}
#view-home .today-week > .home-seg {
  margin-bottom: 12px;
}
#view-home [data-home-panel="week"] {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
#view-home [data-home-panel="edit"] {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
#view-home .desk-widgets {
  gap: 10px;
  align-items: start;
}
#view-home .desk-widget {
  gap: 8px;
  padding: 14px 16px 12px;
}
#view-home .widget-cal .widget-days {
  padding: 0 0 12px;
}
#view-home .widget-cal .widget-days span {
  padding: 4px 0 3px;
}
#view-home .widget-cal .widget-zone {
  margin: 2px 0 0;
}
#view-home .widget-cal .widget-event {
  padding: 4px 2px;
}
#view-home .widget-cal .widget-event i {
  height: 22px;
}
#view-home .widget-head h2,
#view-home .widget-event strong,
#view-home .widget-row strong {
  line-height: 18px;
}
#view-home .widget-event em,
#view-home .widget-row em {
  margin-top: 0;
  line-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
#view-home .widget-mail .widget-row {
  padding: 4px 8px 4px 16px;
}
#view-home .widget-ledger .widget-figure {
  margin: 0;
  padding: 8px 14px;
  font-size: 28px;
}
#view-home .widget-drive .widget-files span {
  min-height: 56px;
  padding: 10px;
}
#view-home .widget-go {
  width: 32px;
  height: 32px;
  background: #f4f4f5;
  color: #3f3f46;
}
#view-home .widget-go svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.6;
}
#view-home .desk-widget:hover .widget-go,
#view-home .widget-go:hover {
  background: #09090b;
  color: #fff;
}
#view-home .agent-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 12px;
}
#view-home .agent-slot > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
#view-home .agent-slot strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #18181b;
}
#view-home .agent-slot em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 13px;
  line-height: 1.35;
  color: #71717a;
}
#view-home #agent-mark {
  background: #f4f4f5;
  color: #18181b;
}
#view-home #agent-mark.citta {
  background: #09090b;
  color: #fff;
}
#view-home .agent-switch {
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: transparent;
  color: #71717a;
  font-size: 13px;
  font-weight: 500;
}
#view-home .agent-switch:hover {
  background: #f4f4f5;
  color: #09090b;
}
#view-home .agent-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
}
#view-home .agent-menu[hidden] { display: none; }
#view-home .agent-menu button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  background: transparent;
  color: #18181b;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}
#view-home .agent-menu button span {
  font-size: 12px;
  font-weight: 400;
  color: #71717a;
}
#view-home .agent-menu button:hover,
#view-home .agent-menu button.is-on {
  background: #f4f4f5;
}
#view-home .agent-twin {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #71717a;
}
#view-home .agent-twin[hidden] { display: none; }
#view-home .widget-cal .widget-days {
  padding-bottom: 0;
}
#view-home .widget-cal .widget-days::before,
#view-home .widget-cal .widget-days .is-today::after {
  content: none;
}

/* Home widgets fill the work column. The three peer cards share one height. */
#view-home .desk-widgets {
  flex: 1;
  min-height: 0;
  align-items: stretch;
  align-content: stretch;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
}
#view-home .widget-head {
  align-items: center;
  min-height: 40px;
}
#view-home .widget-mail,
#view-home .widget-ledger,
#view-home .widget-drive {
  height: 100%;
  min-height: 0;
}
#view-home .widget-mail-list,
#view-home .widget-ledger-list,
#view-home .widget-drive .widget-files {
  flex: 1;
  min-height: 0;
}
#view-home .widget-mail-list {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}
#view-home .widget-mail .widget-row {
  flex: 1 1 0;
  justify-content: center;
}
#view-home .widget-mail .widget-row.is-unread::before {
  top: 50%;
  transform: translateY(calc(-50% - 8px));
}
#view-home .widget-ledger-list {
  display: flex;
  flex-direction: column;
}
#view-home .widget-ledger-list span {
  flex: 1 1 0;
  align-items: center;
}
#view-home .widget-drive .widget-files {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#view-home .widget-drive .widget-files span {
  flex: 1 1 0;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  height: auto;
  gap: 10px;
  padding: 0 14px;
}
@media (max-width: 980px) {
  #view-home .desk-widgets {
    grid-template-rows: none;
    align-items: start;
  }
  #view-home .widget-mail,
  #view-home .widget-ledger,
  #view-home .widget-drive {
    height: auto;
  }
}

/* Edit sheet follows the WPS ribbon, page, and grid, in the ink palette. */
#view-home [data-home-panel="edit"] {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0 -24px -12px;
}
#view-home .edit-sheet {
  flex: 1;
  min-height: 0;
  gap: 0;
  background: #fff;
  border-top: 1px solid #ececee;
}
#view-home .wps-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 12px;
  background: #fff;
}
#view-home .edit-back {
  height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  background: transparent;
  color: #71717a;
  font-size: 13px;
  font-weight: 500;
}
#view-home .edit-back:hover {
  background: #f4f4f5;
  color: #09090b;
}
#view-home .wps-bar strong {
  font-size: 13px;
  font-weight: 600;
  color: #18181b;
}
#view-home .wps-bar em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
  font-size: 12px;
  color: #71717a;
}
#view-home .wps-tabs {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 32px;
  padding: 0 8px;
  border-bottom: 1px solid #ececee;
  background: #fff;
}
#view-home .wps-tabs button {
  height: 30px;
  padding: 0 12px;
  border-radius: 6px 6px 0 0;
  background: transparent;
  color: #71717a;
  font-size: 13px;
  font-weight: 500;
}
#view-home .wps-tabs button:hover { color: #18181b; background: #f4f4f5; }
#view-home .wps-tabs button.is-on {
  color: #09090b;
  background: #fff;
  box-shadow: inset 0 -2px 0 #09090b;
}
#view-home .wps-ribbon {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 6px 8px;
  border-bottom: 1px solid #ececee;
  background: #fafafa;
}
#view-home .wps-panel {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
#view-home .wps-panel[hidden] { display: none; }
#view-home .wps-group {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 8px;
  border-right: 1px solid #ececee;
}
#view-home .wps-group:last-child { border-right: 0; }
#view-home .wps-group[data-for] { display: none; }
#view-home .edit-sheet[data-edit-kind="doc"] .wps-group[data-for~="doc"],
#view-home .edit-sheet[data-edit-kind="tex"] .wps-group[data-for~="tex"],
#view-home .edit-sheet[data-edit-kind="deck"] .wps-group[data-for~="deck"],
#view-home .edit-sheet[data-edit-kind="code"] .wps-group[data-for~="code"],
#view-home .edit-sheet[data-edit-kind="num"] .wps-group[data-for~="num"] {
  display: flex;
}
#view-home .wps-tool,
#view-home .wps-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  background: transparent;
  color: #18181b;
  font-size: 13px;
  font-weight: 500;
}
#view-home .wps-tool svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#view-home .wps-tool.is-bold { font-weight: 700; }
#view-home .wps-tool.is-italic { font-style: italic; font-family: Georgia, serif; }
#view-home .wps-tool.is-under { text-decoration: underline; }
#view-home .wps-tool:hover,
#view-home .wps-select:hover { background: #f4f4f5; }
#view-home .wps-tool.is-on { background: #ececee; color: #09090b; }
#view-home .wps-select {
  min-width: 72px;
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px;
  border: 1px solid #e4e4e7;
  background: #fff;
  color: #18181b;
  font-weight: 400;
}
#view-home .wps-select.is-num { min-width: 44px; justify-content: center; }
#view-home .wps-ruler {
  display: none;
  height: 16px;
  border-bottom: 1px solid #ececee;
  background:
    repeating-linear-gradient(90deg, #d4d4d8 0 1px, transparent 1px 48px) 16px 0 / 48px 8px no-repeat,
    #fafafa;
}
#view-home .edit-sheet[data-edit-kind="doc"] .wps-ruler,
#view-home .edit-sheet[data-edit-kind="tex"] .wps-ruler {
  display: block;
}
#view-home .wps-work {
  flex: 1;
  min-height: 0;
  display: flex;
  background: #e6e7eb;
  overflow: auto;
}
#view-home .wps-work > .edit-canvas {
  flex: 1;
  min-height: 0;
  display: flex;
  justify-content: center;
  padding: 20px 16px 28px;
}
#view-home .wps-page {
  display: flex;
  width: min(680px, 100%);
  min-height: 100%;
  background: #fff;
  border: 1px solid #d4d4d8;
}
#view-home .edit-canvas textarea {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 48px 56px;
  border: 0;
  border-radius: 0;
  resize: none;
  background: transparent;
  color: #18181b;
  font-size: 15px;
  line-height: 1.75;
}
#view-home .wps-page.is-code textarea {
  padding: 28px 28px 28px 56px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  background:
    linear-gradient(#f4f4f5, #f4f4f5) 0 0 / 40px 100% no-repeat;
}
#view-home .wps-gridwrap {
  flex-direction: column;
  padding: 0;
  background: #fff;
}
#view-home .wps-formula {
  display: flex;
  align-items: center;
  flex: none;
  height: 32px;
  border-bottom: 1px solid #ececee;
  background: #fff;
}
#view-home .wps-formula b {
  display: grid;
  place-items: center;
  width: 56px;
  height: 100%;
  border-right: 1px solid #ececee;
  font-size: 12px;
  font-weight: 600;
  color: #18181b;
}
#view-home .wps-formula span {
  padding: 0 10px;
  font-size: 13px;
  color: #18181b;
}
#view-home .wps-grid {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
#view-home .wps-grid .edit-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
#view-home .wps-grid .edit-table th,
#view-home .wps-grid .edit-table td {
  height: 28px;
  padding: 0 8px;
  border: 1px solid #ececee;
  background: #fff;
  color: #18181b;
  font-size: 13px;
  font-weight: 400;
  text-align: left;
}
#view-home .wps-grid .edit-table thead th,
#view-home .wps-grid .edit-table tbody th {
  width: 36px;
  background: #f4f4f5;
  color: #71717a;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}
#view-home .wps-grid .edit-table thead th:first-child { width: 36px; }
#view-home .wps-grid .edit-table tbody tr:nth-child(2) td:nth-child(2) {
  box-shadow: inset 0 0 0 1.5px #09090b;
}
#view-home .wps-grid .edit-table input {
  width: 100%;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #18181b;
  font-size: 13px;
}
#view-home .edit-slides {
  flex-direction: row;
  gap: 0;
  padding: 0;
  background: #e6e7eb;
}
#view-home .wps-film {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 132px;
  flex: none;
  margin: 0;
  padding: 12px;
  list-style: none;
  background: #fafafa;
  border-right: 1px solid #ececee;
}
#view-home .wps-film li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #71717a;
  font-size: 12px;
}
#view-home .wps-film li::after {
  content: "";
  flex: 1;
  height: 42px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #e4e4e7;
}
#view-home .wps-film li.is-on { color: #09090b; font-weight: 600; }
#view-home .wps-film li.is-on::after { border-color: #09090b; }
#view-home .wps-stage {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#view-home .wps-slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  width: min(520px, 100%);
  aspect-ratio: 16 / 9;
  padding: 36px 40px;
  background: #fff;
  border: 1px solid #d4d4d8;
}
#view-home .wps-slide label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #71717a;
  font-size: 12px;
}
#view-home .wps-slide input {
  width: 100%;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #18181b;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
#view-home .wps-slide label:last-child input {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}
#view-home .wps-status {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 28px;
  padding: 0 12px;
  border-top: 1px solid #ececee;
  background: #fff;
  color: #71717a;
  font-size: 12px;
}
#view-home .wps-status .summon-hint {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#view-home .wps-status span:last-child { margin-left: auto; }

/* Searchable float for picking a Cosmo digital human. */
.avatar-pop {
  position: fixed;
  z-index: 80;
  display: flex;
  flex-direction: column;
  width: 320px;
  max-height: min(480px, calc(100vh - 24px));
  padding: 12px;
  background: #fff;
  border: 1px solid #ececee;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(9, 9, 11, 0.08);
  overflow: hidden;
}
.avatar-pop[hidden] { display: none !important; }
.avatar-pop-search input {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  background: #fff;
  color: #18181b;
  font: 14px/1.4 "DM Sans", "Noto Sans SC", sans-serif;
}
.avatar-pop-search input:focus {
  outline: none;
  border-color: #09090b;
}
.avatar-pop-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}
.avatar-pop-kinds button {
  height: 28px;
  padding: 0 10px;
  border-radius: 980px;
  background: #f4f4f5;
  color: #71717a;
  font-size: 12px;
}
.avatar-pop-kinds button.is-on {
  background: #e4e4e7;
  color: #09090b;
}
.avatar-pop-kinds button:hover { color: #09090b; }
.avatar-pop-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.avatar-pop-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border-radius: 10px;
  background: transparent;
  color: #18181b;
  text-align: left;
}
.avatar-pop-list button:hover,
.avatar-pop-list button.is-on { background: #f4f4f5; }
.avatar-pop-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f4f4f5;
  color: #18181b;
  font-size: 13px;
  font-weight: 600;
}
.avatar-pop-list button.is-on .avatar-pop-mark {
  background: #09090b;
  color: #fff;
}
.avatar-pop-copy {
  min-width: 0;
  flex: 1;
}
.avatar-pop-copy strong,
.avatar-pop-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avatar-pop-copy strong {
  font-size: 14px;
  font-weight: 600;
  font-style: normal;
}
.avatar-pop-copy em {
  color: #71717a;
  font-size: 12px;
  font-style: normal;
}
.avatar-pop-kind {
  flex: none;
  color: #71717a;
  font-size: 12px;
}
.avatar-pop-empty {
  margin: 0;
  padding: 12px 8px;
  color: #71717a;
  font-size: 13px;
}
.avatar-pop button:hover { transform: none; }

/* Phone shell. Same ink page, white cards, and black pills as the desk. */
@media (max-width: 760px) {
  body {
    padding: 0;
    background: #e6e7eb;
  }
  body .app,
  body:not(.citta-collapsed):not(.citta-free) .app {
    display: block;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    background: #e6e7eb;
    overflow: hidden;
  }
  body .shell {
    height: 100%;
    padding-bottom: calc(62px + 34px);
    background: #e6e7eb;
  }
  body .chrome { display: none; }
  body .shell-body,
  body .workspace,
  body .body-row,
  body .main-pane,
  body .view.is-active {
    height: 100%;
    min-height: 0;
    border-radius: 0;
    background: #e6e7eb;
  }
  body .view.is-active { overflow: auto; }

  body .rail {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: calc(62px + 34px);
    padding: 0 8px 34px;
    border: 0;
    border-radius: 0;
    border-top: 1px solid #ececee;
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body .rail-workspace,
  body .rail-spacer { display: none; }
  body .rail-nav {
    display: flex;
    flex: 1;
    flex-direction: row;
    align-items: stretch;
    min-width: 0;
  }
  body .rail-btn[data-view="people"] { display: none; }
  body .rail-btn {
    flex: 1 1 0;
    flex-direction: column;
    justify-content: center;
    height: 62px;
    min-height: 62px;
    gap: 2px;
    padding: 6px 2px;
    border-radius: 0;
    background: transparent;
    color: #71717a;
    font-size: 10px;
    line-height: 1.2;
  }
  body .rail-btn svg {
    width: 24px;
    height: 24px;
  }
  body .rail-btn.is-active,
  body .rail-btn.is-active span {
    background: transparent;
    color: #09090b;
    font-weight: 600;
  }
  body .rail-btn:hover:not(.is-active) { background: transparent; color: #18181b; }
  body .rail-account {
    display: flex;
    align-items: center;
    flex: none;
  }
  body .rail-user {
    flex-direction: column;
    width: 52px;
    height: 62px;
    padding: 0;
    background: transparent;
  }
  body .rail-user span[data-account-name] { display: none; }
  body .account-menu {
    position: absolute;
    left: auto;
    right: 8px;
    bottom: calc(100% + 8px);
    width: min(280px, calc(100vw - 16px));
  }

  body.citta-collapsed .citta-dock {
    right: 16px;
    bottom: calc(62px + 34px + 12px);
    z-index: 35;
  }
  body:not(.citta-collapsed):not(.citta-free) .citta-pane {
    position: fixed;
    top: 0;
    right: 0;
    bottom: calc(62px + 34px);
    left: 0;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    z-index: 30;
  }

  #view-home.is-active {
    display: block;
    height: 100%;
    min-height: 0;
    padding: 0;
    overflow: auto;
    background: #e6e7eb;
    -webkit-overflow-scrolling: touch;
  }
  #view-home.is-active::after { display: none; }
  #view-home .page-head.today-head {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    padding: 20px 20px 8px;
    container-type: normal;
  }
  #view-home .page-head.today-head h1 {
    width: 100%;
    flex: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    font-size: 22px;
    line-height: 1.25;
  }
  #view-home .today-head .connect-row {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
    flex: none;
    gap: 8px;
  }
  #view-home .today {
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: visible;
    gap: 16px;
    padding: 0 20px 108px;
  }
  body.citta-collapsed .today { padding-bottom: 108px; }
  #view-home .today-week,
  #view-home .today-side {
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  #view-home .today-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  #view-home [data-home-panel="week"] {
    display: block;
    height: auto;
  }
  #view-home .desk-widgets {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
    gap: 16px;
  }
  #view-home .widget-mail,
  #view-home .widget-ledger,
  #view-home .widget-drive,
  #view-home .widget-mail-list,
  #view-home .widget-ledger-list,
  #view-home .widget-drive .widget-files,
  #view-home .widget-mail .widget-row,
  #view-home .widget-ledger-list span,
  #view-home .widget-drive .widget-files span {
    height: auto;
    flex: none;
  }
  #view-home .wps-ribbon,
  #view-home .wps-tabs { overflow-x: auto; }
  #view-home .wps-work { min-height: 480px; }

  #view-chat .msg-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    background: #fff;
  }
  #view-chat .inbox,
  #view-chat .chat-view {
    width: 100%;
    min-height: 0;
    padding: 0;
  }
  #view-chat:not(.phone-thread) .chat-view { display: none; }
  #view-chat.phone-thread .inbox { display: none; }
  #view-chat.phone-thread .chat-view {
    display: flex;
    flex: 1;
    flex-direction: column;
    height: 100%;
  }
  #view-chat .phone-back {
    display: inline-flex;
    align-items: center;
    height: 34px;
    margin-right: 8px;
    padding: 0 12px;
    border-radius: 980px;
    background: #f4f4f5;
    color: #18181b;
    font-size: 13px;
  }
  #view-chat .chat-head {
    min-height: 54px;
    padding: 8px 20px;
  }
  #view-chat .chat-log { padding: 8px 20px 16px; }
  #view-chat .thread-input { padding: 8px 20px 12px; }

  #view-desk.is-active,
  #view-cosmo.is-active,
  #view-symbion.is-active,
  #view-people.is-active {
    padding: 0;
    overflow: auto;
  }
  #view-desk .desk-main { overflow: auto; }
  #view-desk .desk-switch {
    flex-wrap: wrap;
    padding: 12px 20px 0;
  }
  #view-desk .cal-body { grid-template-columns: minmax(0, 1fr); }
  #view-desk .cal-side { display: none; }
  #view-desk .cal-toolbar {
    height: auto;
    min-height: 48px;
    padding: 8px 20px;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  #view-desk .cal-seg { justify-self: start; }
  #view-desk .mail-app { grid-template-columns: minmax(0, 1fr); }
  #view-desk .mail-read { padding: 20px 20px 32px; }
  #view-cosmo .twins {
    grid-template-columns: minmax(0, 1fr);
    padding: 8px 20px 108px;
  }
  #view-cosmo .cosmo-head,
  #view-symbion .sym-head { padding: 20px 20px 0; }
  #view-symbion .sym-stage { padding: 20px 20px 48px; }
  body.citta-collapsed .chat-view .thread-input { margin: 0 20px 12px; }
  body.citta-collapsed #view-chat .thread-input { padding-right: 72px; }

  #view-home .desk-widget { padding: 16px; }
  #view-home .connect-row button.is-live { height: 40px; }
  #view-home .home-seg button { height: 36px; }
  #view-home .widget-go {
    width: 34px;
    height: 34px;
  }
  #view-home .work-gate,
  #view-chat .thread-input .btn-dark,
  #view-desk .desk-switch-btn {
    height: 36px;
  }
  #view-chat .inbox { padding: 8px 20px 16px; }
  #view-chat .inbox-search input,
  #view-chat .thread-input input {
    height: 44px;
  }
  #view-chat .inbox-item {
    min-height: 52px;
    padding: 8px 8px;
  }
  #view-desk .mail-row { min-height: 52px; }
  #view-cosmo .filter,
  #view-desk .cal-seg button {
    height: 28px;
  }
}

@media (min-width: 761px) {
  .phone-back,
  .phone-screen-title { display: none; }
}

/* The current-time line stays behind the event. The dot sits in the hour gutter on day view. */
.cal-grid > .cal-now { z-index: 1; }
.cal-grid > .cal-events { z-index: 2; }
#view-desk [data-desk-panel="calendar"] .cal-event:not(.is-allday) {
  left: 0;
  right: 0;
}
.cal-apple[data-cal-view="day"] .cal-grid > .cal-now {
  left: -20px;
  right: 0;
}
.cal-apple[data-cal-view="day"] .cal-grid > .cal-now i {
  left: -4px;
  top: -4px;
}

/* Phone app structure. Desktop above 760px is unchanged. */
@media (max-width: 760px) {
  #view-home .page-head.today-head {
    gap: 12px;
    padding: 16px 20px 4px;
  }
  #view-home .page-head.today-head h1 {
    font-size: 26px;
    font-weight: 650;
    letter-spacing: -0.03em;
    line-height: 1.15;
  }
  #view-home .today-head .connect-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    scrollbar-width: none;
  }
  #view-home .today-head .connect-row::-webkit-scrollbar { display: none; }
  #view-home .connect-row button {
    flex: none;
    height: 40px;
  }

  #view-home .today {
    gap: 12px;
    padding: 8px 20px 108px;
  }
  #view-home .today-week,
  #view-home .today-side,
  #view-home .desk-widgets,
  #view-home [data-home-panel="week"]:not([hidden]) {
    display: contents;
  }
  #view-home .home-seg { order: 1; }
  #view-home .today-approve { order: 2; }
  #view-home .widget-cal { order: 3; }
  #view-home .widget-mail { order: 4; }
  #view-home .today-present { order: 5; }
  #view-home .widget-ledger { order: 6; }
  #view-home .widget-drive { order: 7; }
  #view-home .today-notes { order: 8; }
  #view-home .edit-stage:not([hidden]) {
    display: flex;
    flex-direction: column;
    width: 100%;
    order: 2;
  }

  #view-home .home-seg {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 2px;
    gap: 0;
    background: #e4e4e7;
    border-radius: 10px;
  }
  #view-home .home-seg button {
    flex: 1;
    height: 32px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #52525b;
    font-weight: 500;
    box-shadow: none;
  }
  #view-home .home-seg button.is-on {
    background: #09090b;
    border-color: transparent;
    color: #fff;
  }
  #view-home .home-seg button:hover:not(.is-on) {
    background: transparent;
    color: #18181b;
  }

  #view-home .desk-widget,
  #view-home .today-present,
  #view-home .today-approve,
  #view-home .today-notes {
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: none;
    overflow: visible;
    padding: 8px 0 4px;
  }
  #view-home .widget-go,
  #view-home .widget-head p,
  #view-home .widget-zone { display: none; }
  #view-home .widget-head {
    align-items: center;
    min-height: 36px;
    padding: 8px 16px 0;
  }
  #view-home .widget-head h2 {
    font-size: 17px;
    line-height: 22px;
  }
  #view-home .widget-cal .widget-days {
    padding: 8px 12px 4px;
    gap: 6px;
  }
  #view-home .widget-cal .widget-events { gap: 0; }
  #view-home .widget-cal .widget-event {
    min-height: 52px;
    padding: 8px 16px;
  }
  #view-home .widget-mail .widget-row,
  #view-home .widget-ledger-list span,
  #view-home .nod,
  #view-home .todo-item {
    min-height: 52px;
  }
  #view-home .widget-mail .widget-row {
    padding: 8px 16px;
    border-radius: 0;
  }
  #view-home .widget-ledger .widget-figure {
    margin: 0;
    padding: 4px 16px 8px;
    border-radius: 0;
    background: transparent;
    color: #09090b;
    font-size: 28px;
  }
  #view-home .widget-ledger-list span {
    padding: 0 16px;
  }
  #view-home .widget-drive .widget-files {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  #view-home .widget-drive .widget-files span {
    flex: none;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    min-height: 52px;
    height: auto;
    padding: 0 16px;
    border-radius: 0;
    background: transparent;
    gap: 12px;
  }
  #view-home .widget-drive .widget-files b {
    width: 36px;
    height: 28px;
    padding: 0;
    border-radius: 8px;
    background: #f4f4f5;
  }
  #view-home .today-present,
  #view-home .today-approve,
  #view-home .today-notes {
    padding: 12px 16px 8px;
  }
  #view-home .agent-slot { min-height: 52px; }
  #view-home .sheet-label,
  #view-home .task-kicker {
    margin: 0;
    font-size: 13px;
  }
  #view-home .edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  #view-chat .phone-screen-title,
  #view-desk .phone-screen-title {
    display: block;
    margin: 16px 20px 8px;
    font-size: 26px;
    font-weight: 650;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #09090b;
  }
  #view-chat .inbox {
    padding: 0 0 16px;
    background: #fff;
  }
  #view-chat .wx-search { padding: 4px 20px 8px; }
  #view-chat .wx-search .inbox-search { height: 44px; }
  #view-chat .inbox-item { padding: 8px 20px; }

  #view-desk .desk-switch {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 4px 20px 12px;
    scrollbar-width: none;
  }
  #view-desk .desk-switch::-webkit-scrollbar { display: none; }
  #view-desk .desk-switch-btn { flex: none; height: 36px; }
  #view-desk .cal-toolbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    height: 54px;
    min-height: 54px;
    padding: 0 12px;
    gap: 8px;
    overflow-x: auto;
  }
  #view-desk .cal-toolbar-left,
  #view-desk .cal-seg,
  #view-desk .cal-toolbar h2,
  #view-desk #cal-today,
  #view-desk #cal-prev,
  #view-desk #cal-next {
    flex: none;
  }
  #view-desk #cal-today {
    width: auto;
    height: 28px;
    padding: 0 12px;
    white-space: nowrap;
  }
  #view-desk .cal-toolbar h2 {
    min-width: 0;
    margin: 0;
    font-size: 17px;
    text-align: left;
    white-space: nowrap;
  }
  #view-desk .cal-seg button {
    height: 28px;
    padding: 0 8px;
    white-space: nowrap;
  }

  #view-cosmo .cosmo-head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 20px 0;
  }
  #view-cosmo .cosmo-head h1 {
    font-size: 26px;
    font-weight: 650;
    letter-spacing: -0.03em;
    line-height: 1.15;
  }
  #view-cosmo .cosmo-dock {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    scrollbar-width: none;
  }
  #view-cosmo .filter,
  #view-cosmo .cosmo-dock button { height: 28px; flex: none; }
  #view-cosmo .twins {
    gap: 12px;
    padding: 12px 20px 108px;
  }
  #view-cosmo .twin { border-radius: 16px; }
}

#view-docs.is-active {
  padding: 0;
  overflow: hidden;
  background: #f2f3f5;
}
.docs-app {
  display: flex;
  height: 100%;
  min-height: 0;
  background: #f2f3f5;
}
.docs-side {
  flex: none;
  width: 260px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid #ececee;
  overflow: visible;
}
.docs-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
}
.docs-side-head strong {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.docs-new,
.docs-share {
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: #09090b;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}
.docs-share {
  background: #fff;
  color: #09090b;
  border: 1px solid #e4e5e7;
}
.docs-new:hover,
.docs-share:hover { transform: none; box-shadow: none; }
.docs-label {
  margin: 8px 16px 4px;
  font-size: 12px;
  color: #8f959e;
}
.docs-list { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 0 8px 16px; overflow: auto; }
.docs-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  color: #1f2329;
}
.docs-item:hover { background: #f5f6f7; transform: none; box-shadow: none; }
.docs-item.is-on { background: #f2f3f5; }
.docs-item i,
.docs-new-menu i {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #e8f3ff;
  color: #1456c0;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
}
.docs-item i[data-tone="sheet"],
.docs-new-menu i[data-tone="sheet"] { background: #e7f6ee; color: #137333; }
.docs-item i[data-tone="deck"],
.docs-new-menu i[data-tone="deck"] { background: #fff1e8; color: #c2410c; }
.docs-item i[data-tone="pdf"],
.docs-new-menu i[data-tone="pdf"] { background: #fdecec; color: #c24141; font-size: 10px; }
.docs-item i[data-tone="mind"],
.docs-new-menu i[data-tone="mind"] { background: #f3e8ff; color: #7c3aed; }
.docs-item i[data-tone="flow"],
.docs-new-menu i[data-tone="flow"] { background: #e6f7f5; color: #0f766e; }
.docs-item i[data-tone="form"],
.docs-new-menu i[data-tone="form"] { background: #fff7e6; color: #b45309; }
.docs-item i[data-tone="board"],
.docs-new-menu i[data-tone="board"] { background: #eef2ff; color: #3730a3; }
.docs-item i[data-tone="base"],
.docs-new-menu i[data-tone="base"] { background: #e8f3ff; color: #1456c0; }
.docs-item i[data-tone="folder"],
.docs-new-menu i[data-tone="folder"] { background: #f4f4f5; color: #3f3f46; }
.docs-item span { display: flex; flex-direction: column; min-width: 0; }
.docs-item strong {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.docs-item em { font-style: normal; font-size: 12px; color: #8f959e; }
.docs-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #f2f3f5;
}
.docs-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid #ececee;
}
.docs-crumb { margin: 0; font-size: 13px; color: #646a73; }
.docs-scroll {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: 28px 32px 48px;
}
#docs-stage {
  flex: 1 0 auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.docs-page {
  flex: 1 0 auto;
  width: min(920px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 48px 64px 96px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(31, 35, 41, .06), 0 8px 24px rgba(31, 35, 41, .04);
}
.docs-page h1 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.3;
  color: #1f2329;
}
.docs-meta { margin: 0 0 20px; font-size: 13px; color: #8f959e; }
.docs-tools {
  display: flex;
  gap: 4px;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ececee;
}
.docs-tools button {
  height: 28px;
  min-width: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #1f2329;
  font-size: 13px;
}
.docs-tools button:hover { background: #f2f3f5; transform: none; box-shadow: none; }
.docs-i { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 600; }
.docs-body { flex: 1 0 auto; font-size: 16px; line-height: 1.75; color: #1f2329; outline: none; }
.docs-body h2 { margin: 1.2em 0 .4em; font-size: 20px; font-weight: 600; }
.docs-body p { margin: 0 0 .8em; }
.docs-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.docs-body th,
.docs-body td { padding: 10px 12px; border: 1px solid #e4e5e7; text-align: left; }
.docs-body th { background: #f5f6f7; font-weight: 500; }

@media (max-width: 760px) {
  #view-docs.is-active { padding-bottom: calc(62px + 34px); }
  .docs-app { flex-direction: column; }
  .docs-side {
    width: auto;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid #ececee;
  }
  .docs-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
  }
  .docs-item { flex: none; width: 168px; min-height: 48px; }
  .docs-scroll { padding: 16px 12px 24px; }
  .docs-page { padding: 28px 20px 64px; }
  .docs-page h1 { font-size: 24px; }
  .docs-new-menu { right: 0; left: auto; width: min(280px, 86vw); }
  .docs-sheet-bar { flex-wrap: wrap; height: auto; }
  .docs-deck { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .docs-film { flex-direction: row; overflow-x: auto; max-height: 112px; }
  .docs-thumb { width: 120px; flex: none; }
}

.docs-new-wrap { position: relative; }
.docs-new-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  width: 248px;
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 6px;
  background: #fff;
  border: 1px solid #ececee;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(31, 35, 41, .12);
}
.docs-new-menu p {
  margin: 8px 8px 2px;
  font-size: 12px;
  color: #8f959e;
}
.docs-new-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  color: #1f2329;
}
.docs-new-menu button:hover { background: #f5f6f7; transform: none; box-shadow: none; }
.docs-new-menu span { display: flex; flex-direction: column; min-width: 0; }
.docs-new-menu strong { font-size: 14px; font-weight: 500; }
.docs-new-menu em { font-style: normal; font-size: 12px; color: #8f959e; }
.docs-scroll.is-bleed { padding: 0; background: #fff; }
.docs-scroll.is-deck {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: #f2f3f5;
}
.docs-scroll.is-deck #docs-stage {
  flex: 1;
  min-height: 0;
  display: flex;
}
.docs-tools { flex-wrap: wrap; align-items: center; }
.docs-tools select,
.docs-tools input[type="color"] {
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #1f2329;
  font-size: 13px;
}
.docs-tools input[type="color"] { width: 28px; padding: 2px; }
.docs-scroll.is-pdf {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: #f2f3f5;
}
.docs-scroll.is-pdf #docs-stage {
  flex: 1;
  min-height: 0;
  display: flex;
}
.docs-pdf {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.docs-pdf-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 16px 20px;
  container-type: size;
}
.docs-pdf-page {
  height: min(100cqh, calc(100cqw * 297 / 210));
  aspect-ratio: 210 / 297;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 9% 10% 8%;
  background: #fff;
  box-shadow: 0 8px 28px rgba(31, 35, 41, .08);
  overflow: auto;
  container-type: inline-size;
}
.docs-pdf-page h1 {
  margin: 0 0 .45em;
  font-size: clamp(22px, 5.2cqw, 36px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.3;
}
.docs-pdf-page .docs-body { font-size: clamp(14px, 2.8cqw, 18px); }
.docs-pdf-bar {
  flex: none;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-top: 1px solid #ececee;
  background: #fff;
  color: #646a73;
  font-size: 13px;
}
.docs-sheet { flex: 1 0 auto; display: flex; flex-direction: column; min-height: 100%; background: #fff; }
.docs-sheet-bar,
.docs-sheet-status {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-bottom: 1px solid #ececee;
  background: #fff;
}
.docs-sheet-status { border-bottom: 0; border-top: 1px solid #ececee; color: #646a73; font-size: 12px; }
.docs-sheet-bar strong { font-size: 14px; font-weight: 600; }
.docs-cell-name {
  min-width: 48px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #e4e5e7;
  border-radius: 6px;
  line-height: 26px;
  text-align: center;
  font-size: 12px;
}
#docs-formula {
  flex: 1;
  min-width: 120px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #e4e5e7;
  border-radius: 6px;
  font-size: 13px;
}
.docs-sheet-bar button {
  height: 28px;
  padding: 0 10px;
  border: 1px solid #e4e5e7;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
}
.docs-sheet-bar button:hover { background: #f5f6f7; transform: none; box-shadow: none; }
.docs-grid-wrap { flex: 1; overflow: auto; }
.docs-grid { border-collapse: collapse; min-width: 100%; font-size: 13px; }
.docs-grid th,
.docs-grid td { border: 1px solid #e4e5e7; height: 28px; min-width: 96px; padding: 0; text-align: center; background: #fff; }
.docs-grid th { background: #f5f6f7; color: #646a73; font-weight: 500; position: sticky; top: 0; }
.docs-grid td.is-on { outline: 2px solid #09090b; outline-offset: -2px; }
.docs-grid input { width: 100%; height: 28px; border: 0; padding: 0 8px; background: transparent; font: inherit; color: inherit; }
.docs-grid input.is-bold { font-weight: 700; }
.docs-deck {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  height: 100%;
}
.docs-film {
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 12px;
  background: #fff;
  border-right: 1px solid #ececee;
}
.docs-deck-main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #f2f3f5;
}
.docs-thumb,
.docs-thumb-add {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  min-height: 64px;
  padding: 8px;
  border: 1px solid #ececee;
  border-radius: 8px;
  background: #fff;
  text-align: left;
}
.docs-thumb b { font-size: 12px; color: #8f959e; font-weight: 500; }
.docs-thumb strong { font-size: 13px; font-weight: 500; }
.docs-thumb.is-on { border-color: #09090b; }
.docs-thumb-add { min-height: 36px; color: #1f2329; }
.docs-deck-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 16px 20px;
  container-type: size;
}
.docs-slide {
  width: min(100cqw, calc(100cqh * 16 / 9));
  aspect-ratio: 16 / 9;
  max-height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(28px, 5cqw, 64px) clamp(32px, 6cqw, 72px);
  background: #fff;
  box-shadow: 0 8px 28px rgba(31, 35, 41, .08);
  container-type: inline-size;
}
.docs-slide-title {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: clamp(24px, 4.4cqw, 48px);
  font-weight: 600;
  letter-spacing: -.03em;
}
.docs-slide-body {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  resize: none;
  background: transparent;
  font-size: clamp(16px, 2.2cqw, 24px);
  line-height: 1.6;
}
.docs-deck-foot {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 16px;
  border-top: 1px solid #ececee;
  background: #fff;
  color: #646a73;
  font-size: 13px;
}
.docs-deck-foot button { height: 28px; padding: 0 10px; border: 1px solid #e4e5e7; border-radius: 6px; background: #fff; }
.docs-mind, .docs-flow, .docs-form, .docs-folder, .docs-base { display: flex; flex-direction: column; gap: 12px; }
.docs-mind-center, .docs-mind-branches input, .docs-flow input, .docs-question input, .docs-base input {
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e4e5e7;
  border-radius: 8px;
  background: #fff;
}
.docs-mind-center { align-self: center; width: min(240px, 100%); text-align: center; font-weight: 600; }
.docs-mind-branches { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.docs-mind-branches input { width: 140px; }
.docs-flow-step { display: flex; align-items: center; gap: 8px; }
.docs-flow-step i { flex: none; min-width: 40px; font-style: normal; font-size: 12px; color: #8f959e; }
.docs-flow-step.is-choice input { border-radius: 18px; }
.docs-inline-actions, .docs-base > button, .docs-mind > button { display: flex; gap: 8px; }
.docs-inline-actions button, .docs-mind > button, .docs-base > button, .docs-board-add, .docs-folder-file {
  height: 32px;
  padding: 0 12px;
  border: 1px solid #e4e5e7;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
}
.docs-question { display: grid; grid-template-columns: 24px 1fr 88px; gap: 8px; align-items: center; }
.docs-question select { height: 36px; border: 1px solid #e4e5e7; border-radius: 8px; background: #fff; }
.docs-form-lead { margin: 0 0 4px; color: #646a73; font-size: 13px; }
.docs-board { position: relative; min-height: 100%; background: #f7f6f3; }
.docs-note {
  position: absolute;
  width: 140px;
  height: 110px;
  padding: 12px;
  border: 0;
  border-radius: 4px;
  background: #fff4b8;
  box-shadow: 0 6px 16px rgba(31, 35, 41, .08);
  resize: none;
  font: inherit;
}
.docs-board-add { position: absolute; right: 16px; top: 16px; }
.docs-folder h1 { margin: 0; font-size: 28px; }
.docs-folder { padding: 48px; }
.docs-folder-file { display: flex; }

