@font-face { font-family: "Syne"; src: url("assets/fonts/Syne-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: block; }
@font-face { font-family: "Syne"; src: url("assets/fonts/Syne-ExtraBold.ttf") format("truetype"); font-weight: 800; font-style: normal; font-display: block; }
:root {
  color-scheme: light;
  --ink: #202323;
  --muted: #777b76;
  --paper: #f5f2eb;
  --panel: #fffdf8;
  --line: #dfddd5;
  --mint: #b9d3bf;
  --mint-dark: #305d4b;
  --peach: #f3c3a9;
  --yellow: #f1da93;
  --system-folder-created: var(--yellow);
  --system-folder-imported: var(--mint);
  --system-folder-shared: var(--peach);
  --shadow: 0 18px 45px rgba(55, 54, 43, .08);
  --folder-radius: 8px;
  --folder-grid-min: 155px;
  --folder-icon-width: 42px;
  --folder-icon-height: 30px;
  --folder-entry-duration: .42s;
  --folder-interaction-duration: .2s;
  --body: "Syne", "Helvetica Neue", Arial, sans-serif;
  --display: "Syne", "Helvetica Neue", Arial, sans-serif;
  --brand: "Syne", "Helvetica Neue", Arial, sans-serif;
}

:root[data-theme="silver-jarvis"] {
  --ink: #24333c;
  --muted: #6d7f89;
  --paper: #eaf2f6;
  --panel: #f8fbfd;
  --line: #cbd9e1;
  --mint: #b6d2df;
  --mint-dark: #35677c;
  --peach: #e8c4b3;
  --yellow: #dce6a2;
  --shadow: 0 18px 45px rgba(65, 93, 108, .14);
}

:root[data-theme="forest"] {
  --ink: #26342b;
  --muted: #718078;
  --paper: #edf1e7;
  --panel: #fcfdf8;
  --line: #d2ddd0;
  --mint: #b8cfb0;
  --mint-dark: #3f6b45;
  --peach: #e5b9a5;
  --yellow: #e5d28a;
  --shadow: 0 18px 45px rgba(56, 82, 60, .1);
}

:root[data-theme="terracotta"] {
  --ink: #3a2c29;
  --muted: #8a7168;
  --paper: #f6ebe4;
  --panel: #fffaf6;
  --line: #e4d2c8;
  --mint: #d6b39d;
  --mint-dark: #9b5c43;
  --peach: #efb99f;
  --yellow: #e5c978;
  --shadow: 0 18px 45px rgba(112, 68, 49, .1);
}

:root[data-theme="ocean"] {
  --ink: #203b3f;
  --muted: #668184;
  --paper: #e6f1f2;
  --panel: #fbffff;
  --line: #c9dfe0;
  --mint: #9bc9c6;
  --mint-dark: #267078;
  --peach: #e7c0ad;
  --yellow: #e1d38c;
  --shadow: 0 18px 45px rgba(36, 91, 98, .12);
}

:root[data-theme="graphite"] {
  --ink: #2d3132;
  --muted: #777d7d;
  --paper: #ececea;
  --panel: #fbfbf8;
  --line: #d2d4d1;
  --mint: #c1c9c3;
  --mint-dark: #505d58;
  --peach: #dfc2ae;
  --yellow: #e0d39a;
  --shadow: 0 18px 45px rgba(59, 65, 63, .1);
}

:root[data-theme="lavender"] {
  --ink: #322d3d;
  --muted: #7a7387;
  --paper: #f0eef7;
  --panel: #fdfcff;
  --line: #dcd6ea;
  --mint: #c8c1e2;
  --mint-dark: #65518e;
  --peach: #e9c0ba;
  --yellow: #e3d295;
  --shadow: 0 18px 45px rgba(88, 73, 126, .11);
}

:root[data-theme="sunlight"] {
  --ink: #3b3828;
  --muted: #857e62;
  --paper: #f6f1dd;
  --panel: #fffdf4;
  --line: #e3ddc4;
  --mint: #d5d39e;
  --mint-dark: #777631;
  --peach: #edc59b;
  --yellow: #e6ca67;
  --shadow: 0 18px 45px rgba(121, 105, 43, .1);
}

:root[data-theme="rose"] {
  --ink: #402e34;
  --muted: #90747d;
  --paper: #f7e9eb;
  --panel: #fffafb;
  --line: #e6d1d6;
  --mint: #d9b6c0;
  --mint-dark: #985269;
  --peach: #e9b3a8;
  --yellow: #e4cf8b;
  --shadow: 0 18px 45px rgba(133, 72, 91, .1);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font: 16px/1.45 var(--body); }
body.theme-switching *, body.theme-switching *::before, body.theme-switching *::after { transition-property: color, background-color, border-color, box-shadow, fill, stroke; transition-duration: .2s; transition-timing-function: ease; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; animation-timing-function: ease; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.shell { width: min(100% - 32px, 920px); margin: 0 auto; padding: 32px 0 72px; }
.topbar { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; min-height: 52px; margin-bottom: 28px; }
.topbar-left-actions { grid-column: 2; display: flex; align-items: center; gap: 7px; }
#communityButton { position: relative; }
.alert-badge { position: absolute; top: -4px; right: -4px; display: grid; min-width: 19px; height: 19px; place-items: center; border: 2px solid var(--paper); border-radius: 50%; background: #b9362b; color: #fff; font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .68rem; font-weight: 800; line-height: 1; }
.alert-badge[hidden] { display: none; }
.topbar-profile-button { width: 52px; height: 52px; flex: 0 0 52px; }
.topbar-profile-button .profile-q-icon { width: 28px; height: 28px; }
.topbar-brand { grid-column: 1; grid-row: 1; min-width: 0; pointer-events: none; }
.brand-lockup { position: fixed; z-index: 1001; top: 30px; left: 34px; display: flex; flex-direction: column; align-items: flex-start; }
.brand-title-row { display: inline-flex; align-items: baseline; gap: 7px; }
.topbar-actions { grid-column: 3; grid-row: 1; display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 24px; }
#themesButtonHeader { display: none; }
.doq-brand { max-width: calc(100vw - 210px); overflow: hidden; color: var(--ink); font: 800 clamp(1.8rem, 6vw, 4.5rem)/.95 var(--brand); letter-spacing: 0; opacity: 0; text-overflow: ellipsis; transform: translateY(-4px); white-space: nowrap; transition: opacity .28s ease, transform .28s ease; }
.fonts-ready .doq-brand { opacity: 1; transform: translateY(0); }
.doq-brand:hover { opacity: .86; transform: translateY(-1px); }
.doq-beta { color: var(--ink); font: 800 clamp(.58rem, 1.1vw, .92rem)/1 var(--brand); letter-spacing: 0; opacity: 0; transform: translateY(-2px); transition: opacity .28s ease, transform .28s ease; white-space: nowrap; }
.fonts-ready .doq-beta { opacity: 1; transform: translateY(0); }
.trisma-brand { margin-top: 4px; color: var(--muted); font: 800 1.15rem/1.16 var(--brand); letter-spacing: 1.2px; text-transform: uppercase; transition: opacity .25s ease, transform .25s ease; }
.trisma-by { font-family: var(--brand); font-size: .78rem; font-weight: 700; letter-spacing: 0; text-transform: lowercase; }
.trisma-brand:hover { opacity: .86; transform: translateY(-1px); }
.new-task-action { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 800 .9rem/1 var(--brand); }
.header-icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.community-group-icon { fill: currentColor; stroke: none; }
.agent-frame-icon { transform: translate(1px, -1px); }
.add-task-icon { width: 24px; height: 24px; stroke-width: 1.8; }
.trisma-q-icon { stroke-width: 2; }
.trisma-q-icon text { fill: currentColor; font-family: "Syne", sans-serif; font-size: 21px; font-weight: 800; stroke: none; }
.profile-q-icon { width: 24px; height: 24px; overflow: visible; }
.profile-q-icon text { font-size: 19px; }
.eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font: 800 clamp(2.1rem, 7vw, 4.5rem)/.95 var(--brand); letter-spacing: 0; }
h2 { margin-bottom: 8px; font: 700 1.65rem/1 var(--display); }
h3 { margin-bottom: 4px; font-size: 1.05rem; }
.icon-button, .close-button { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink); font-size: 28px; line-height: 1; }
.icon-button:hover { background: var(--ink); color: var(--paper); }
.topbar-left-actions .icon-button::after { position: absolute; top: calc(100% + 7px); left: 50%; color: var(--muted); content: ""; font-size: .64rem; font-weight: 700; line-height: 1; opacity: 0; pointer-events: none; transform: translate(-50%, -3px); transition: opacity .16s ease, transform .16s ease; white-space: nowrap; }
.topbar-left-actions .icon-button:hover::after, .topbar-left-actions .icon-button:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
#communityButton::after { content: "Social"; }
#profileButton::after { content: "Profile"; }
.beta-coming-soon { cursor: not-allowed !important; opacity: .56; }
.topbar-left-actions .beta-coming-soon::after { content: attr(data-tooltip) !important; }
.topbar-left-actions .beta-coming-soon:hover, .topbar-left-actions .beta-coming-soon:focus-visible { background: transparent; color: var(--ink); }
.topbar-left-actions .topbar-profile-button { border-color: var(--mint-dark); background: var(--mint-dark); color: var(--paper); }
.topbar-left-actions .topbar-profile-button:hover, .topbar-left-actions .topbar-profile-button:focus-visible { background: transparent; color: var(--ink); }
.topbar-left-actions .icon-button { position: relative; overflow: visible; }
.theme-button { position: relative; overflow: hidden; color: var(--paper); }
.theme-button-colors { position: absolute; inset: 5px; overflow: hidden; border-radius: 50%; background: linear-gradient(90deg, var(--ink) 0 50%, var(--mint-dark) 50%); opacity: .9; }
.theme-button-colors::before, .theme-button-colors::after { position: absolute; left: 25%; width: 50%; height: 50%; border-radius: 50%; content: ""; }
.theme-button-colors::before { top: 0; background: radial-gradient(circle at 50% 50%, var(--mint) 0 2px, var(--mint-dark) 2.2px 100%); }
.theme-button-colors::after { bottom: 0; background: radial-gradient(circle at 50% 50%, var(--mint) 0 2px, var(--ink) 2.2px 100%); }
.theme-button .header-icon { position: relative; z-index: 1; }
.theme-button:hover .theme-button-colors { opacity: .72; }
.plus-symbol { display: block; transform: translate(1px, -2px); }
.shortcut-dialog { width: min(100% - 28px, 520px); }
.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: visible; margin-bottom: 28px; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.summary > div { display: flex; min-width: 0; min-height: 94px; flex-direction: column; justify-content: center; padding: 16px 20px; background: var(--panel); }
.summary strong { font: 700 2.1rem/1 var(--display); }
.summary span { margin-top: 7px; color: var(--muted); font-size: .82rem; }
.summary-select { width: 100%; margin-top: 7px; min-width: 0; min-height: 0; overflow: hidden; border: 0; border-radius: 0; padding: 0; background: transparent; color: var(--muted); font-size: .82rem; text-overflow: ellipsis; cursor: pointer; }
.tab-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; border-bottom: 1px solid var(--line); }
.tabs-field { display: grid; min-width: 0; flex: 1; gap: 7px; }
.tabs-field .field-label { margin: 0; }
.tabs { position: relative; display: flex; flex: 1; gap: 24px; }
.tabs-indicator { position: absolute; bottom: -1px; left: 0; width: 0; height: 3px; background: var(--ink); transition: left .28s ease, width .28s ease; pointer-events: none; }
.tabs:not(.indicator-ready) .tabs-indicator { transition: none; }
.filter-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 230px)); justify-content: end; gap: 10px; width: min(100%, 470px); margin: 0 0 8px; }
.filter-bar label { width: auto; min-width: 0; }
.filter-bar input, .filter-bar select { width: 100%; min-height: 46px; }
.filter-bar.filter-text-changing #filterLabel { display: inline-block; animation: cosmic-text-enter .34s cubic-bezier(.22, .8, .28, 1) both; }
@keyframes cosmic-text-enter {
  from { opacity: 0; filter: blur(4px); transform: translateY(5px); }
  65% { opacity: .82; filter: blur(.5px); transform: translateY(-1px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}
.tab { position: relative; padding: 0 0 12px; border: 0; background: transparent; color: var(--muted); font-weight: 700; transition: color .28s ease; }
.tab.active { color: var(--ink); }
.view { min-height: 180px; }
.view-transition { animation: view-fade-in .15s ease both; }
.view-transition .section-heading h2,
.view-transition .section-heading p,
.view-transition .browser-toolbar .breadcrumbs,
.view-transition .calendar-toolbar h2,
.view-transition .library-header h2,
.view-transition .library-header > div > p:last-child {
  animation: cosmic-text-enter .34s cubic-bezier(.22, .8, .28, 1) both;
}
.view-transition .section-heading p,
.view-transition .library-header > div > p:last-child { animation-delay: 35ms; }
@keyframes view-fade-in { from { opacity: .82; transform: translateY(1px); } to { opacity: 1; transform: translateY(0); } }
@keyframes calendar-shell-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes calendar-toolbar-enter { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes calendar-row-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes calendar-task-enter { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.calendar-entry { animation: calendar-shell-enter .34s cubic-bezier(.22, .8, .28, 1) both; }
.calendar-entry .calendar-toolbar { animation: calendar-toolbar-enter .28s ease both; }
.calendar-entry .calendar-weekdays { animation: calendar-row-enter .28s ease .07s both; }
.calendar-entry .calendar-day { animation: calendar-row-enter .3s ease calc(.14s + var(--calendar-index) * 14ms) both; }
.calendar-entry .calendar-task { animation: calendar-task-enter .22s ease calc(.2s + var(--calendar-index) * 14ms + var(--calendar-task-index) * 28ms) both; }
@media (prefers-reduced-motion: reduce) { .view-transition, .view-transition .section-heading h2, .view-transition .section-heading p, .view-transition .browser-toolbar .breadcrumbs, .view-transition .calendar-toolbar h2, .view-transition .library-header h2, .view-transition .library-header > div > p:last-child, .calendar-entry, .calendar-entry .calendar-toolbar, .calendar-entry .calendar-weekdays, .calendar-entry .calendar-day, .calendar-entry .calendar-task { animation: none; } .browser-content.library-entry .personal-folder, .browser-content.library-entry .routine-tile, .browser-content.library-entry .routine-card, .template-browser-content.library-entry .library-package, .library-package-grid.marketplace-entry .library-package, .history-list.history-entry .history-item, .filter-bar.filter-text-changing #filterLabel, #routineDialog[open], #sequenceDialog[open], .browser-toolbar.library-navigation-entry .breadcrumb-tail { animation: none; } }
.browser-toolbar { position: relative; z-index: 100; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; overflow: visible; isolation: isolate; }
.browser-toolbar > div:first-child { min-width: 0; flex: 1 1 auto; }
.breadcrumbs { display: flex; min-width: 0; max-width: 100%; flex-wrap: nowrap; align-items: center; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 0 10px 8px 0; font-weight: 700; scrollbar-color: rgba(48,93,75,.34) transparent; scrollbar-width: thin; white-space: nowrap; }
.breadcrumbs::-webkit-scrollbar { height: 5px; }
.breadcrumbs::-webkit-scrollbar-track { background: transparent; }
.breadcrumbs::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(48,93,75,.34); }
.breadcrumbs::-webkit-scrollbar-thumb:hover { background: rgba(48,93,75,.55); }
.breadcrumbs .crumb, .breadcrumbs .breadcrumb-tail { flex: 0 0 auto; }
.crumb { padding: 0; border: 0; background: transparent; color: var(--ink); font-weight: 700; }
.breadcrumbs .crumb, #newCollectionButton { font-family: var(--brand); font-size: .78rem; font-weight: 700; line-height: 1.15; }
.crumb:hover { color: var(--mint-dark); }
.collection-name-edit { cursor: pointer; }
.crumb-separator { color: var(--muted); }
.browser-actions { display: flex; flex: 0 1 auto; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.browser-actions > button { flex: 0 0 auto; white-space: nowrap; }
.workspace-action-menu { position: relative; z-index: 10; }
.workspace-action-toggle, .collection-action-menu-toggle { width: 38px; height: 38px; padding: 8px; }
.workspace-action-toggle svg, .collection-action-menu-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.workspace-action-menu-panel { position: absolute; z-index: 20; top: calc(100% + 6px); right: 0; display: none; min-width: 190px; border: 1px solid var(--line); border-radius: 6px; padding: 6px; background: var(--panel); box-shadow: var(--shadow); }
.workspace-action-menu.open .workspace-action-menu-panel { display: grid; gap: 2px; }
.workspace-action-menu-panel button { border: 0; border-radius: 4px; padding: 9px 10px; background: transparent; color: var(--ink); font-size: .78rem; font-weight: 700; text-align: left; cursor: pointer; }
.workspace-action-menu-panel button:hover { background: var(--paper); }
.collection-action-menu { position: relative; z-index: 101; }
.collection-action-menu.open .collection-action-menu-toggle { background: var(--ink); color: var(--paper); }
.collection-action-menu-panel { position: absolute; z-index: 102; top: calc(100% + 7px); right: 0; display: none; width: min(230px, calc(100vw - 22px)); min-width: min(190px, calc(100vw - 22px)); max-width: calc(100vw - 22px); gap: 6px; padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); box-shadow: var(--shadow); box-sizing: border-box; }
.collection-action-menu.open .collection-action-menu-panel { display: grid; }
.collection-action-menu-panel > button { width: 100%; text-align: left; }
.view-toggle { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
.toggle-button { min-height: 34px; padding: 6px 10px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: .82rem; font-weight: 700; }
.toggle-button.active { background: var(--ink); color: var(--panel); }
.browser-content { display: grid; gap: 12px; }
.browser-content.grid { grid-template-columns: repeat(auto-fill, minmax(var(--folder-grid-min), 1fr)); }
.template-browser-content.grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.browser-content > .empty-state { grid-column: 1 / -1; justify-self: stretch; }
.folder-tile, .routine-tile { min-height: 150px; padding: 17px; border: 1px solid var(--line); border-radius: var(--folder-radius); background: var(--panel); box-shadow: 0 5px 14px rgba(55,54,43,.03); text-align: left; transition: transform var(--folder-interaction-duration) ease, box-shadow var(--folder-interaction-duration) ease, border-color var(--folder-interaction-duration) ease; }
.folder-tile { display: flex; flex-direction: column; justify-content: flex-start; gap: 8px; }
.folder-tile:hover, .routine-tile:hover { transform: translateY(-2px); border-color: #b9c7ba; box-shadow: var(--shadow); }
.browser-content .agent-container-tile { position: relative; margin-top: 12px; }
.browser-content.library-entry .personal-folder, .browser-content.library-entry .routine-tile, .browser-content.library-entry .routine-card { animation: library-folder-flip var(--folder-entry-duration) cubic-bezier(.22, .8, .28, 1) both; animation-delay: calc(var(--folder-index, 0) * 55ms); transform-origin: left center; }
.browser-content.library-entry.list .personal-folder, .browser-content.library-entry.list .routine-tile, .browser-content.library-entry.list .routine-card { animation-name: library-list-folder-enter; transform-origin: top center; }
.breadcrumb-tail { display: inline-flex; align-items: center; gap: 8px; }
.browser-toolbar.library-navigation-entry .breadcrumb-tail:last-child { animation: library-breadcrumb-enter .3s ease both; }
.browser-toolbar.library-navigation-entry #editCollectionButton, .browser-toolbar.library-navigation-entry #deleteCollectionButton { animation: library-actions-enter .3s ease .08s both; }
@keyframes library-breadcrumb-enter { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes library-actions-enter { from { opacity: 0; transform: translateY(4px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes library-folder-flip { from { opacity: 0; transform: perspective(700px) rotateY(-68deg) translateY(8px); } 70% { opacity: 1; transform: perspective(700px) rotateY(8deg) translateY(-1px); } to { opacity: 1; transform: perspective(700px) rotateY(0) translateY(0); } }
@keyframes library-list-folder-enter { from { opacity: 0; transform: translateY(-10px) scaleY(.94); } to { opacity: 1; transform: translateY(0) scaleY(1); } }
.folder-drag-handle { display: grid; width: 20px; min-width: 20px; height: 24px; place-items: center; border-right: 1px solid var(--line); color: var(--muted); font-size: .9rem; letter-spacing: -.2em; line-height: 1; cursor: grab; opacity: .72; }
.folder-drag-placeholder { visibility: hidden; pointer-events: none; }
.folder-drag-handle:hover { color: var(--ink); opacity: 1; }
.folder-drag-handle:active { cursor: grabbing; }
.folder-tile.dragging { opacity: .7; transform: rotate(1deg) scale(1.02); box-shadow: 0 18px 34px rgba(55,54,43,.18); }
.folder-separator { grid-column: 1 / -1; height: 1px; margin: 10px 0; background: var(--line); }
.folder-tile.drag-over { border-color: var(--mint-dark); }
.folder-tile.drop-before { box-shadow: inset 0 4px 0 var(--mint-dark); }
.folder-tile.drop-after { box-shadow: inset 0 -4px 0 var(--mint-dark); }
.folder-tile.drop-inside { box-shadow: 0 0 0 3px rgba(48,93,75,.18); }
.folder-tile strong, .routine-tile h3 { overflow-wrap: anywhere; }
.folder-tile > strong { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.shared-folder-icon { display: inline-grid; width: 16px; height: 16px; flex: 0 0 16px; place-items: center; color: var(--mint-dark); }
.shared-folder-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.collection-color-dot { width: 10px; height: 10px; flex: 0 0 10px; border: 1px solid rgba(55,54,43,.18); border-radius: 50%; background: var(--collection-color, var(--yellow)); }
.crumb .collection-color-dot { display: inline-block; vertical-align: -1px; margin-left: 6px; cursor: pointer; }
.crumb .collection-color-dot:hover { transform: scale(1.25); }
.folder-tile small, .routine-tile p { color: var(--muted); font-size: .78rem; }
.collection-stats { display: inline-flex; align-items: center; gap: 11px; color: var(--muted); font-size: .78rem; font-weight: 400; }
.collection-stats > span { display: inline-flex; align-items: center; gap: 4px; }
.collection-stats b { font: inherit; }
.collection-stat-icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1; }
.agent-count { color: var(--muted); font-size: .78rem; font-weight: 400; }
.agent-count-icon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1; transform: translate(1px, -1px) rotate(180deg); }
.folder-tile { position: relative; }
.folder-icon { display: block; position: relative; width: var(--folder-icon-width); height: var(--folder-icon-height); margin-bottom: 11px; border-radius: 4px; background: var(--yellow); }
.personal-folder .folder-icon { background: var(--folder-color, var(--yellow)); }
.folder-icon::before { position: absolute; top: -4px; left: 0; width: 18px; height: 8px; border-radius: 4px 4px 0 0; background: inherit; content: ""; }
.routine-tile { position: relative; display: flex; flex-direction: column; cursor: pointer; overflow: hidden; }
.routine-tile h3 { margin: 0 0 4px; }
.routine-tile p { margin-bottom: auto; }
.routine-tile.stage-yellow { border-color: #eadb9e; background: #fffdf2; }
.routine-tile.stage-orange { border-color: #edc29e; background: #fff8f0; }
.routine-tile.stage-red { border-color: #e9aaa0; background: #fff3f0; }
.routine-tile.overdue, .routine-tile.stage-overdue { border-color: #df8f86; background: #ffe8e4; }
.routine-tile.paused, .routine-tile.stage-paused { border-color: #c8ceca; background: #f1f3f0; }
.browser-content.grid .routine-tile { border-left: 5px solid var(--mint); padding-left: 13px; }
.browser-content.grid .routine-tile.stage-yellow { border-left-color: #d4b52f; }
.browser-content.grid .routine-tile.stage-orange { border-left-color: #d98232; }
.browser-content.grid .routine-tile.stage-red { border-left-color: #c95a4d; }
.browser-content.grid .routine-tile.paused, .browser-content.grid .routine-tile.stage-paused { border-left-color: #89918d; }
.routine-card, .browser-content.grid .routine-tile { border-left-color: var(--routine-collection-color, #9aa19b); }
.tile-progress { color: #846b22 !important; font-weight: 700; }
.tile-footer { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: 14px; color: var(--muted); font-size: .76rem; }
.browser-content.list { display: block; }
.browser-content.list .routine-card { margin-bottom: 8px; }
.browser-content.list .folder-tile, .browser-content.list .routine-tile { display: grid; grid-template-columns: 20px 34px 1fr auto; align-items: center; min-height: auto; width: 100%; margin-bottom: 8px; padding: 12px 15px; }
.browser-content.list .folder-tile > .folder-drag-handle { grid-column: 1; grid-row: 1; }
.browser-content.list .folder-tile > .folder-icon { grid-column: 2; grid-row: 1; }
.browser-content.list .folder-tile > strong { grid-column: 3; grid-row: 1; min-width: 0; }
.browser-content.list .folder-tile > small,
.browser-content.list .folder-tile > .collection-stats { grid-column: 4; grid-row: 1; justify-self: end; white-space: nowrap; }
.browser-content.list .tasks-folder-tile { grid-template-columns: 20px 34px minmax(0, 1fr) auto; }
.browser-content.list .agent-container-tile,
.browser-content.list .workspace-file-tile { grid-template-columns: 34px minmax(0, 1fr) auto; }
.browser-content.list .workspace-file-tile { grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; }
.browser-content.list .workspace-file-tile .folder-icon { grid-column: 1; grid-row: 1 / span 2; }
.browser-content.list .workspace-file-tile strong { grid-column: 2; grid-row: 1; min-width: 0; }
.browser-content.list .workspace-file-tile small { grid-column: 2; grid-row: 2; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.browser-content.list .workspace-root-folder-tile { grid-template-columns: 20px 34px minmax(0, 1fr); column-gap: 12px; }
.browser-content.list .workspace-root-folder-tile .folder-drag-handle { grid-column: 1; grid-row: 1 / span 2; }
.browser-content.list .workspace-root-folder-tile .folder-icon { grid-column: 2; }
.browser-content.list .workspace-root-folder-tile strong,
.browser-content.list .workspace-root-folder-tile small { grid-column: 3; }
.browser-content.list .workspace-root-folder-tile { grid-template-columns: 20px 34px max-content minmax(0, 1fr); }
.browser-content.list .workspace-root-folder-tile .folder-drag-handle,
.browser-content.list .workspace-root-folder-tile .folder-icon { grid-row: 1; }
.browser-content.list .workspace-root-folder-tile strong { grid-column: 3; grid-row: 1; white-space: nowrap; }
.browser-content.list .workspace-root-folder-tile small { grid-column: 4; grid-row: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-content.list .agent-container-tile { grid-template-columns: 20px 34px minmax(0, 1fr) auto; }
.browser-content.list .agent-workspace-tile { grid-template-columns: 20px 34px minmax(0, 1fr) auto; }
.browser-content.list .agent-workspace-tile strong,
.browser-content.list .agent-container-tile strong,
.browser-content.list .workspace-file-tile strong { min-width: 0; overflow-wrap: anywhere; }
.browser-content.list .folder-icon { width: 28px; height: 21px; margin: 0; }
.browser-content.list .folder-icon::before { top: -3px; width: 13px; height: 6px; }
.browser-content.list .routine-tile { grid-template-columns: 14px 1fr auto; }
.browser-content.list .routine-tile h3 { margin: 0; }
.browser-content.list .routine-tile p { margin: 0; }
.browser-content.list .tile-footer { margin: 0; }
.browser-content.list .shared-workspace-routine { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 18px; }
.browser-content.list .shared-workspace-routine h3 { grid-column: 1; grid-row: 1; min-width: 0; }
.browser-content.list .shared-workspace-routine p { grid-column: 1; grid-row: 2; min-width: 0; }
.browser-content.list .shared-workspace-routine .tile-footer { grid-column: 2; grid-row: 1 / span 2; display: grid; justify-items: end; gap: 4px; min-width: max-content; }
.template-browser-content.list .library-package { grid-template-columns: 1fr auto; grid-template-rows: auto; min-height: auto; margin-bottom: 8px; padding: 12px 15px; }
.template-browser-content.list .library-package .package-meta { grid-column: auto; margin-top: 0; }
.template-browser-content.list .library-package .package-copy { padding-right: 0; }
.template-package-content.list .package-routine-tile { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; }
.template-package-content.list .package-routine-tile h3 { grid-column: 1; grid-row: 1; min-width: 0; }
.template-package-content.list .package-routine-tile p { grid-column: 1; grid-row: 2; min-width: 0; overflow-wrap: anywhere; }
.template-package-content.list .package-routine-tile .tile-footer { grid-column: 2; grid-row: 1 / span 2; display: grid; justify-items: end; gap: 4px; min-width: max-content; }
.template-tutorial-image { display: block; width: 100%; max-height: min(52dvh, 460px); border: 1px solid var(--line); border-radius: 6px; object-fit: contain; background: var(--paper); }
.template-browser-content.library-entry .library-package { animation: library-folder-flip .42s cubic-bezier(.22, .8, .28, 1) both; animation-delay: calc(var(--package-index, 0) * 55ms); transform-origin: left center; }
.template-browser-content.library-entry.list .library-package { animation-name: library-list-folder-enter; transform-origin: top center; }
.library-package-grid.marketplace-entry .library-package { animation: library-folder-flip .42s cubic-bezier(.22, .8, .28, 1) both; animation-delay: calc(var(--package-index, 0) * 55ms); transform-origin: left center; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 13px; }
.section-heading-actions { display: flex; align-items: center; gap: 10px; }
.section-heading p { margin-bottom: 0; color: var(--muted); font-size: .85rem; }
.queue-section-heading { position: sticky; top: 0; z-index: 4; isolation: isolate; padding: 8px 0 9px; border-bottom: 1px solid var(--line); background: var(--paper); }
.queue-view-controls { display: flex; justify-content: flex-end; gap: 8px; margin: 0 0 5px; }
.queue-timeline-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 6px 9px; }
.queue-timeline-toggle-icon { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.queue-sections-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 6px 9px; }
.queue-sections-toggle-icon { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.queue-section-toggle { display: grid; width: 100%; min-height: 50px; grid-template-columns: minmax(0, 1fr) auto 17px; align-items: center; gap: 12px; margin: 0; border: 0; padding: 8px 0 9px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.queue-section-heading.queue-section-toggle { background: var(--paper); }
.queue-section-toggle:hover { background: var(--panel); }
.queue-section-toggle:focus-visible { outline: 2px solid var(--mint-dark); outline-offset: -2px; }
.queue-section-title { min-width: 0; font: 700 1.25rem/1.15 var(--display); }
.queue-section-counts { display: inline-flex; align-items: center; gap: 10px; }
.queue-section-count { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .85rem; }
.queue-section-count svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.queue-section-toggle > svg { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; transition: transform .2s ease; }
.queue-section-toggle[aria-expanded="false"] > svg { transform: rotate(-90deg); }
.queue-section-content[hidden] { display: none; }
#queueView.timeline-collapsed .queue-timeline::before { opacity: 0; }
#queueView.timeline-collapsed .queue-timeline-entry { grid-template-columns: 0px minmax(0, 1fr); column-gap: 0; }
#queueView.timeline-collapsed .queue-timeline-time { opacity: 0; pointer-events: none; transform: translateX(-12px); }
#queueView > section + section,
#queueView > .queue-section-heading + section { padding-top: 24px; }
.routine-list { display: grid; gap: 10px; }
.queue-timeline { position: relative; display: grid; gap: 10px; padding: 2px 0 4px; }
.queue-timeline::before { position: absolute; top: 0; bottom: 0; left: 76px; width: 1px; background: var(--line); content: ""; transition: opacity .18s ease-out; }
.queue-timeline-entry { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; column-gap: 14px; min-width: 0; transition: grid-template-columns .24s cubic-bezier(.22, .8, .28, 1), column-gap .24s cubic-bezier(.22, .8, .28, 1); }
.queue-timeline-time { position: relative; z-index: 1; display: grid; min-width: 0; overflow: hidden; justify-items: end; gap: 2px; padding-right: 13px; color: var(--muted); text-align: right; transition: opacity .18s ease-out, transform .24s cubic-bezier(.22, .8, .28, 1); }
.queue-timeline-time::after { position: absolute; top: 50%; right: -4px; width: 7px; height: 7px; border: 2px solid var(--paper); border-radius: 50%; background: var(--mint-dark); content: ""; transform: translateY(-50%); }
.queue-timeline-time strong { color: var(--ink); font: 700 .72rem/1 var(--display); white-space: nowrap; }
.queue-timeline-time span { max-width: 68px; font-size: .6rem; line-height: 1.1; }
#queueView { max-height: calc(100vh - 180px); overflow-x: hidden; overflow-y: auto; overscroll-behavior-x: none; scrollbar-width: none; touch-action: pan-y; }
#queueView::-webkit-scrollbar { display: none; }
.queue-board-shell { position: relative; min-width: 0; overflow: hidden; }
.queue-board-shell::after { position: absolute; z-index: 4; top: 1px; right: 0; bottom: 1px; width: 42px; background: linear-gradient(90deg, transparent, var(--paper)); content: ""; pointer-events: none; }
.queue-board { display: flex; width: 100%; min-width: 0; align-items: flex-start; gap: 12px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; touch-action: pan-x pan-y; }
.queue-board::-webkit-scrollbar { display: none; }
.queue-board-column { display: grid; flex: 0 0 min(420px, 88vw); grid-template-rows: auto minmax(0, 1fr); width: min(420px, 88vw); height: min(650px, calc(100dvh - 260px)); min-height: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); overflow: hidden; isolation: isolate; transition: flex-basis .26s cubic-bezier(.22, .8, .28, 1), width .26s cubic-bezier(.22, .8, .28, 1), height .26s cubic-bezier(.22, .8, .28, 1); }
.queue-board-column.is-collapsed { flex-basis: 52px; grid-template-rows: minmax(0, 1fr); width: 52px; }
.queue-board-column .queue-section-heading { position: relative; top: auto; z-index: 1; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--panel); box-shadow: none; }
.queue-board-column .queue-section-toggle { min-height: 48px; border-radius: 0; padding-inline: 12px; }
.queue-board-column.is-collapsed .queue-section-heading { height: 100%; border-bottom: 0; }
.queue-board-column.is-collapsed .queue-section-toggle { display: flex; width: 50px; height: 100%; min-height: 0; flex-direction: column; align-items: center; justify-content: flex-start; gap: 14px; padding: 13px 0; }
.queue-board-column.is-collapsed .queue-section-title { display: block; overflow: hidden; color: var(--muted); font-size: .82rem; line-height: 1; text-align: start; text-overflow: ellipsis; white-space: nowrap; writing-mode: vertical-rl; }
.queue-board-column.is-collapsed .queue-section-counts { display: none; }
.queue-board-column.is-collapsed .queue-section-toggle > svg { order: -1; transform: rotate(-90deg); }
.queue-board-column .queue-section-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.queue-board-cards { display: grid; min-width: 0; align-content: start; gap: 9px; padding: 10px; }
.queue-board-card { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.queue-board-card .routine-card { width: 100%; min-width: 0; box-sizing: border-box; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; overflow: visible; }
.queue-board-card .routine-card-title-row { align-items: flex-start; }
.queue-board-card .routine-actions { justify-content: stretch; }
.queue-board-card .routine-actions > button { flex: 1 1 0; }
#queueView.queue-board-mode { max-height: none; overflow: visible; }
.routine-list.queue-entry .routine-card { animation: library-list-folder-enter .42s cubic-bezier(.22, .8, .28, 1) both; animation-delay: calc(var(--queue-index, 0) * 55ms); transform-origin: top center; }
@media (prefers-reduced-motion: reduce) { .routine-list.queue-entry .routine-card, .browser-content.library-entry .personal-folder, .browser-content.library-entry .routine-tile, .browser-content.library-entry .routine-card, .template-browser-content.library-entry .library-package, .library-package-grid.marketplace-entry .library-package { animation: none !important; } }
.history-list.history-entry .history-item { animation: queue-item-enter .28s ease both; animation-delay: calc(var(--history-index, 0) * 55ms); transform-origin: top center; }
.routine-card { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 19px 20px; border: 1px solid var(--line); border-left: 5px solid var(--mint); border-radius: 8px; background: var(--panel); box-shadow: 0 5px 14px rgba(55,54,43,.03); transition: transform .18s ease, background .35s ease, border-color .35s ease, box-shadow .18s ease; }
.routine-card { cursor: pointer; }
.routine-card:hover, .routine-card:focus-within { position: relative; z-index: 2; transform: translateY(-1px); box-shadow: var(--shadow); }
#queueView .routine-card:hover, #queueView .routine-card:focus-within { transform: none; box-shadow: 0 5px 14px rgba(55,54,43,.03); }
.routine-card.completing, .routine-tile.completing, .all-row.completing { animation: routine-complete-dismiss .38s cubic-bezier(.22, .8, .28, 1) both; pointer-events: none; }
.routine-card.skipping, .routine-tile.skipping, .all-row.skipping { animation: routine-skip-dismiss .9s cubic-bezier(.22, .8, .28, 1) both; pointer-events: none; }
.routine-card.postponing, .routine-tile.postponing, .all-row.postponing { animation: routine-postpone-dismiss .9s cubic-bezier(.22, .8, .28, 1) both; pointer-events: none; }
.routine-card { position: relative; overflow: hidden; }
@keyframes routine-swipe-nudge-left { 0% { transform: translateX(0); } 45% { transform: translateX(-12px); } 100% { transform: translateX(0); } }
@keyframes routine-swipe-nudge-right { 0% { transform: translateX(0); } 45% { transform: translateX(12px); } 100% { transform: translateX(0); } }
.routine-card.swipe-feedback-left { animation: routine-swipe-nudge-left .18s ease-out both; }
.routine-card.swipe-feedback-right { animation: routine-swipe-nudge-right .18s ease-out both; }
@keyframes routine-complete-dismiss { 0% { opacity: 1; } 30% { opacity: 1; border-color: #8eb59b; border-left-color: #6d9c7a; background: #d8eddc; color: #244838; box-shadow: 0 0 0 1px rgba(48,93,75,.14), 0 0 14px rgba(48,93,75,.2); } 68% { opacity: .72; border-color: #8eb59b; border-left-color: #6d9c7a; background: #d8eddc; color: #244838; box-shadow: 0 0 0 1px rgba(48,93,75,.14), 0 0 14px rgba(48,93,75,.2); } 100% { opacity: 0; border-color: #8eb59b; border-left-color: #6d9c7a; background: #d8eddc; color: #244838; box-shadow: 0 0 0 1px rgba(48,93,75,.14), 0 0 14px rgba(48,93,75,.2); } }
@keyframes routine-skip-dismiss { 0% { opacity: 1; } 30% { opacity: 1; border-color: #aeb7b1; border-left-color: #89918d; background: #d4d8d5; color: #5f6963; box-shadow: 0 0 0 1px rgba(95,105,99,.12), 0 0 14px rgba(95,105,99,.16); } 68% { opacity: .72; border-color: #aeb7b1; border-left-color: #89918d; background: #d4d8d5; color: #5f6963; box-shadow: 0 0 0 1px rgba(95,105,99,.12), 0 0 14px rgba(95,105,99,.16); } 100% { opacity: 0; border-color: #aeb7b1; border-left-color: #89918d; background: #d4d8d5; color: #5f6963; box-shadow: 0 0 0 1px rgba(95,105,99,.12), 0 0 14px rgba(95,105,99,.16); } }
@keyframes routine-postpone-dismiss { 0% { opacity: 1; } 30% { opacity: 1; border-color: #e0a765; border-left-color: #d98232; background: #fff0db; color: #8d531f; box-shadow: 0 0 0 1px rgba(217,130,50,.14), 0 0 14px rgba(217,130,50,.2); } 68% { opacity: .72; border-color: #e0a765; border-left-color: #d98232; background: #fff0db; color: #8d531f; box-shadow: 0 0 0 1px rgba(217,130,50,.14), 0 0 14px rgba(217,130,50,.2); } 100% { opacity: 0; border-color: #e0a765; border-left-color: #d98232; background: #fff0db; color: #8d531f; box-shadow: 0 0 0 1px rgba(217,130,50,.14), 0 0 14px rgba(217,130,50,.2); } }
.routine-card.stage-yellow { border-color: #eadb9e; border-left-color: #d4b52f; background: #fffdf2; }
.routine-card.stage-orange { border-color: #edc29e; border-left-color: #d98232; background: #fff8f0; }
.routine-card.stage-red { border-color: #e9aaa0; border-left-color: #c95a4d; background: #fff3f0; }
.routine-card.overdue, .routine-card.stage-overdue { border-color: #df8f86; border-left-color: var(--routine-collection-color, #9aa19b); background: #ffe8e4; }
.routine-card.postponing, .routine-tile.postponing, .all-row.postponing { border-color: #e0a765; border-left-color: #d98232; background: #fff0db; color: #8d531f; box-shadow: 0 0 0 1px rgba(217,130,50,.14), 0 0 14px rgba(217,130,50,.2); }
.routine-card.blocked, .routine-card.stage-blocked, .routine-tile.blocked, .routine-tile.stage-blocked { border-color: #d65b52; border-left-color: #b42318; background: #ffe3df; box-shadow: 0 0 0 1px rgba(180,35,24,.16), 0 0 14px rgba(180,35,24,.2); }
.routine-card.paused, .routine-card.stage-paused { border-color: #c8ceca; border-left-color: #89918d; background: #f1f3f0; }
.routine-card.due { border-color: #eadb9e; background: #fffdf2; }
.routine-card.overdue { border-color: #df8f86; background: #ffe8e4; }
.routine-card.completed { border-color: #b8d2bd; background: #e8f2ea; }
.routine-card.paused { border-color: #c8ceca; background: #f1f3f0; }
.routine-card.completing, .routine-tile.completing { border-left-color: var(--mint-dark); }
.routine-card.skipping, .routine-tile.skipping { border-left-color: #89918d; }
.routine-card { border-left-color: var(--routine-collection-color, #9aa19b); }
.routine-card.overdue, .routine-card.stage-overdue, .browser-content.grid .routine-tile.overdue, .browser-content.grid .routine-tile.stage-overdue { border-left-color: var(--routine-collection-color, #9aa19b); }
.routine-card-title-row { display: flex; min-width: 0; align-items: center; gap: 8px; }
.routine-card-title-row h3 { min-width: 0; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.routine-card-folder-badges { display: flex; min-width: 0; flex: 0 1 auto; flex-wrap: wrap; align-items: center; gap: 5px; }
.routine-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 9px; color: var(--muted); font-size: .82rem; }
.routine-card-meta-grid { display: grid; gap: 5px; width: 100%; align-items: start; }
.routine-card-timeframe-row { display: flex; min-width: 0; }
.routine-card-detail { color: var(--muted); font-size: .76rem; font-weight: 700; line-height: 1.25; }
.routine-mobile-timeframe-badge, .routine-schedule-badge { display: none; }
.routine-card-meta-grid .routine-timeframe-badge { width: auto; max-width: 100%; }
.routine-card-progress-row { display: flex; flex-wrap: wrap; align-items: start; gap: 5px; }
.routine-status-stack { display: inline-grid; justify-items: start; align-content: start; gap: 4px; }
.routine-status-stack .badge { padding: 3px 7px; font-size: .72rem; }
.badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 99px; background: #e5eee7; color: var(--mint-dark); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.routine-timeframe-badge { min-width: 0; overflow: hidden; background: rgba(255,255,255,.72); color: var(--ink); font-weight: 700; text-overflow: ellipsis; }
.badge.stage-yellow { background: #f8edc9; color: #846b22; }
.badge.stage-orange { background: #fbe2c6; color: #99531f; }
.badge.stage-red, .badge.stage-overdue { background: #f7c9c2; color: #8f2e27; }
.badge.postponed { background: #f7c9c2; color: #8f2e27; }
.badge.paused, .badge.stage-paused { background: #e1e5e1; color: #5f6963; }
.tag { display: inline-flex; align-items: center; padding: 3px 7px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--ink); font-size: .72rem; font-weight: 700; }
.source-badge { display: inline-flex; align-items: center; padding: 3px 7px; border: 1px solid #b8cddd; border-radius: 99px; background: #edf5fb; color: #2b5873; font-size: .72rem; font-weight: 700; }
.done-button, .skip-button, .primary-button, .secondary-button { min-height: 42px; border-radius: 6px; padding: 10px 16px; font-weight: 700; }
.done-button, .primary-button { border: 1px solid var(--mint-dark); background: var(--mint-dark); color: #fff; }
.done-button:hover, .primary-button:hover { background: #244838; }
.done-button:disabled { cursor: not-allowed; opacity: .55; }
.skip-button { border: 1px solid var(--line); background: transparent; color: var(--muted); }
.skip-button:hover { border-color: var(--ink); color: var(--ink); }
.skip-button:disabled, .blocked-button:disabled { cursor: not-allowed; opacity: .55; }
.blocked-button { min-height: 42px; border: 1px solid var(--mint-dark); border-radius: 6px; padding: 10px 16px; background: transparent; color: var(--mint-dark); font-weight: 700; }
.blocked-button:hover { background: rgba(48,93,75,.08); }
.blocked-button.active { border-color: #b42318; background: #ffe3df; color: #a51d16; box-shadow: 0 0 0 2px rgba(180,35,24,.18), 0 0 14px rgba(180,35,24,.28); }
.sequence-dialog #sequenceSummary .sequence-blocked-status { display: inline-flex; align-items: center; gap: 6px; color: #a51d16; font-weight: 800; }
.sequence-dialog #sequenceSummary .sequence-status-info { display: inline-grid; width: 18px; height: 18px; place-items: center; padding: 0; border: 1px solid currentColor; border-radius: 50%; background: transparent; color: #a51d16; font: 700 .72rem/1 Arial, sans-serif; }
.sequence-dialog #sequenceSummary .sequence-status-info:hover { background: rgba(180,35,24,.12); }
.routine-actions, .tile-actions, .row-actions { display: flex; align-items: center; gap: 8px; }
.secondary-button { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.secondary-button { transition: background .2s ease, border-color .2s ease, color .2s ease; }
.secondary-button:hover { background: var(--paper); }
.delete-button { margin-right: auto; border-color: #d69a91; color: #9a342b; }
.delete-button:hover { background: #ffe8e4; }
.confirm-message { margin: 0; color: var(--muted); }
.blocked-info-message-wrap { position: relative; }
.blocked-info-content { min-height: 150px; max-height: 50vh; margin: 0; padding: 14px 48px 14px 14px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font: .86rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; cursor: copy; }
.blocked-info-content:focus-visible { outline: 2px solid var(--mint-dark); outline-offset: 2px; }
.blocked-info-copy-button { position: absolute; right: 8px; bottom: 8px; display: grid; width: 30px; height: 30px; place-items: center; padding: 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); color: var(--muted); cursor: pointer; }
.blocked-info-copy-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.blocked-info-copy-button:hover { border-color: var(--ink); color: var(--ink); }
.blocked-info-copy-button.copied { border-color: var(--mint-dark); background: #e8f2ea; color: var(--mint-dark); }
.conflict-list { display: grid; gap: 8px; }
.conflict-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.conflict-item > label { display: contents; }
.conflict-item strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conflict-item small { color: var(--muted); white-space: nowrap; }
.conflict-actions { flex-wrap: wrap; }
.conflict-resolution-controls { display: grid; grid-template-columns: auto minmax(64px, 1fr) minmax(84px, 1fr) auto; align-items: end; gap: 8px; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #f8f8f5; }
.conflict-resolution-controls label { display: grid; gap: 4px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.conflict-resolution-controls input, .conflict-resolution-controls select { min-width: 0; }
.danger-button { min-height: 42px; border: 1px solid #b9362b; border-radius: 6px; padding: 10px 16px; background: #b9362b; color: #fff; font-weight: 700; }
.danger-button:hover { background: #962b22; }
.danger-button:disabled { cursor: not-allowed; opacity: .5; }
.compact-danger { min-height: 34px; padding: 6px 10px; font-size: .78rem; }
.collection-delete-button:hover, .collection-delete-button.active { border-color: #d69a91; background: #fff3f0; color: #9a342b; }
#newCollectionButton:hover { border-color: #a8c5ad; background: #edf6ef; color: var(--mint-dark); }
#editCollectionButton:hover { border-color: #a8c5ad; background: #edf6ef; color: var(--mint-dark); }
.uninstall-button:hover { border-color: #d69a91; background: #fff3f0; color: #9a342b; }
.favorite-button:hover { border-color: #d9bd62; background: #fff8dc; color: #806a1c; }
.collection-selected { border-color: #d69a91; }
@keyframes collection-selection-glow { 0%, 100% { box-shadow: 0 0 0 3px rgba(185, 54, 43, .16), var(--shadow); } 50% { box-shadow: 0 0 0 4px rgba(185, 54, 43, .34), 0 0 18px rgba(185, 54, 43, .22); } }
.all-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.all-row:last-child { border-bottom: 0; }
.row-action { border: 0; background: transparent; color: var(--mint-dark); font-weight: 700; }
.row-actions .row-action:first-child { color: var(--muted); }
.history-item { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.history-item time { color: var(--muted); font-size: .84rem; white-space: nowrap; }
.history-item-actions { display: flex; align-items: center; gap: 12px; }
.history-item { cursor: pointer; }
.history-undo-button, .history-unskip-button { display: inline-flex; align-items: center; justify-content: center; width: 34px; min-height: 34px; padding: 6px; }
.history-undo-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.calendar-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.calendar-toolbar h2 { margin-bottom: 0; }
.calendar-actions { display: flex; align-items: center; gap: 8px; }
.calendar-nav-button { width: 38px; min-height: 38px; padding: 4px 8px; font-size: 1.35rem; line-height: 1; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekdays { gap: 1px; margin-bottom: 1px; border: 1px solid var(--line); border-bottom: 0; background: var(--line); }
.calendar-weekday { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 0; background: var(--panel); color: var(--muted); font-size: .75rem; font-weight: 700; text-align: left; text-transform: uppercase; }
.calendar-weekday.today { background: #dcefe0; color: var(--mint-dark); box-shadow: inset 0 -3px 0 var(--mint-dark), 0 0 14px rgba(80, 157, 99, .3); }
.calendar-days { gap: 1px; overflow: hidden; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; background: var(--line); }
.calendar-day { display: flex; min-height: 128px; min-width: 0; flex-direction: column; gap: 8px; padding: 9px; background: var(--panel); }
.calendar-day-header { display: flex; min-height: 20px; align-items: flex-start; justify-content: space-between; gap: 6px; }
.calendar-time-load { display: flex; height: 20px; align-items: flex-end; gap: 3px; margin: -1px 0 0 auto; }
.calendar-time-load-line { display: block; width: 3px; height: var(--load-ratio); min-height: 3px; border-radius: 2px 2px 0 0; background: var(--collection-color); }
.calendar-day.outside-month { background: #f1efe9; color: #aaa9a1; }
.calendar-day.today { box-shadow: none; }
.calendar-day time { display: grid; width: 24px; height: 24px; place-items: center; color: inherit; font-size: .8rem; font-weight: 700; }
.calendar-day.today time { border-radius: 50%; background: #dcefe0; color: var(--mint-dark); box-shadow: 0 0 14px rgba(80, 157, 99, .3); }
.calendar-day-items { display: grid; min-width: 0; max-height: 178px; align-content: start; gap: 5px; overflow-y: auto; padding-right: 3px; scrollbar-width: thin; }
.calendar-task { display: grid; min-width: 0; gap: 1px; border: 1px solid var(--line); border-left: 4px solid var(--calendar-collection-color, var(--mint)); border-radius: 4px; padding: 6px 7px; background: #fff; color: var(--ink); text-align: left; font-size: .76rem; font-weight: 700; overflow: hidden; }
.calendar-task span, .calendar-task small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-task small { color: var(--muted); font-size: .68rem; font-weight: 700; }
.calendar-task:hover { border-color: #a8c5ad; box-shadow: 0 3px 9px rgba(55,54,43,.08); }
.calendar-task.due { background: #fffdf2; }
.calendar-task.overdue { background: #ffe8e4; }
.calendar-task.paused { background: #f1f3f0; }
.calendar-task.completed { background: #e8f2ea; }
.calendar-task.skipped { background: #f1f3f0; }
.calendar-task.postponed { background: #fff0db; }
.calendar-day { cursor: pointer; }
.calendar-day-items { cursor: default; }
.calendar-day-dialog { width: min(100% - 28px, 560px); }
.calendar-day-filter-field { display: grid; gap: 7px; }
.calendar-day-filter-field .calendar-filter-control { width: 100%; }
.calendar-day-dialog-items { display: grid; max-height: min(52vh, 420px); gap: 8px; overflow-y: auto; padding-right: 3px; }
.calendar-day-actions { justify-content: flex-end; }
.calendar-day-dialog-items.compact .routine-card { gap: 9px; padding: 10px 12px; }
.calendar-day-dialog-items.compact .routine-meta { gap: 5px; margin-top: 5px; font-size: .72rem; }
.calendar-day-dialog-items.compact .routine-actions { gap: 5px; }
.calendar-day-dialog-items.compact .done-button, .calendar-day-dialog-items.compact .skip-button { min-height: 32px; padding: 6px 10px; font-size: .74rem; }
.calendar-day-routine-list { display: grid; gap: 10px; }
.library-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.library-header h2 { margin-bottom: 8px; }
.template-library-intro { justify-content: center; margin-bottom: 22px; text-align: center; }
.template-library-intro > div { max-width: 620px; }
.library-header p:last-child { margin-bottom: 0; }
.library-header button:disabled { cursor: not-allowed; opacity: .55; }
.library-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.library-panel { min-height: 170px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.library-panel h3 { margin-bottom: 8px; }
.library-panel p:last-child { margin-bottom: 0; }
.library-section { margin-bottom: 26px; }
.library-package-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.template-category { margin-bottom: 22px; transition: opacity .36s ease, transform .36s cubic-bezier(.22, .8, .28, 1), max-height .36s ease, margin-bottom .36s ease; }
.template-category-header { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 18px; padding: 9px 0 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); text-align: left; }
.template-category-header:hover { color: var(--mint-dark); }
.template-category-header > span:first-child { display: grid; min-width: 0; gap: 3px; }
.template-category-title { font-family: var(--display); font-size: 1.22rem; font-weight: 800; }
.template-category-count { color: var(--muted); font-size: .78rem; font-weight: 700; }
.template-category-chevron { color: var(--muted); font-size: 1.35rem; line-height: 1; transform: translateY(-2px); transition: transform .52s cubic-bezier(.22, .8, .28, 1), color .2s ease; }
.template-category-header[aria-expanded="true"] .template-category-chevron { transform: rotate(90deg); }
.template-category-header:hover .template-category-chevron { color: var(--mint-dark); }
.template-category-content { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .28s ease, opacity .2s ease, padding-top .28s ease, transform .36s cubic-bezier(.22, .8, .28, 1); }
.template-category-content.expanded { max-height: 520px; padding-top: 12px; opacity: 1; }
.template-category.focused .template-category-content { max-height: none; overflow: visible; }
.template-focus-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.template-category-carousel { margin: 0 0 30px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: thin; }
.template-category-track { display: flex; width: max-content; overflow: visible; padding: 3px 2px 12px; }
.template-category-set { display: flex; gap: 12px; }
.template-category-card { position: relative; display: grid; flex: 0 0 min(235px, 72vw); min-height: 112px; align-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 8px; padding: 18px 82px 18px 18px; background: var(--panel); color: var(--ink); text-align: left; cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.template-category-card:hover, .template-category-card:focus-visible { transform: translateY(-2px); border-color: var(--mint-dark); background: #f8fbf7; outline: none; }
.template-category-card .eyebrow { margin-bottom: 0; }
.template-category-card strong { font: 700 1.15rem/1.1 var(--display); }
.template-category-card .template-category-count { color: var(--muted); font-size: .8rem; font-weight: 700; }
.template-category-icon { position: absolute; top: 50%; right: 18px; display: grid; width: 52px; height: 52px; place-items: center; transform: translateY(-50%); border-radius: 50%; background: rgba(159,201,177,.14); color: var(--mint-dark); }
.template-category-card > .template-category-icon { color: var(--mint-dark); font-size: initial; font-weight: normal; }
.template-category-icon svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.4; }
.template-category-empty { display: grid; min-height: 112px; align-content: center; justify-items: start; gap: 5px; padding: 18px; border: 1px dashed var(--line); border-radius: 8px; background: rgba(248,248,245,.7); }
.template-category-empty.focused { min-height: 180px; justify-items: center; text-align: center; }
.template-category-empty strong { font: 700 1rem/1.1 var(--display); }
.template-category-empty p { max-width: 430px; margin: 0; color: var(--muted); font-size: .8rem; }
.template-category-empty-icon { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 2px; border-radius: 50%; background: rgba(159,201,177,.14); color: var(--mint-dark); }
.template-category-empty-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.2; }
.template-carousel { position: relative; min-width: 0; }
.template-carousel::after { position: absolute; z-index: 1; top: 0; right: 0; bottom: 12px; width: 42px; background: linear-gradient(90deg, transparent, var(--paper)); content: ""; pointer-events: none; }
.template-track { display: flex; min-width: 0; overflow-x: auto; gap: 12px; padding: 2px 2px 12px; scroll-behavior: smooth; scroll-snap-type: x proximity; scrollbar-width: thin; }
.template-track .library-package { flex: 0 0 250px; scroll-snap-align: start; }
.library-package { position: relative; display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto; gap: 14px; min-height: 160px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.library-package:hover, .library-package:focus-visible { transform: translateY(-2px); border-color: var(--mint-dark); background: #f8fbf7; outline: none; }
.library-package .package-copy { grid-column: 1; grid-row: 1; min-width: 0; }
.library-package h3 { margin-bottom: 8px; }
.package-category-label { display: flex; align-items: center; justify-content: flex-start; gap: 8px; }
.package-category-icon { display: inline-grid; width: 23px; height: 23px; flex: 0 0 23px; place-items: center; border-radius: 50%; background: rgba(159,201,177,.14); color: var(--mint-dark); }
.package-category-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.6; }
.library-package p:last-child { margin-bottom: 0; }
.package-mark { position: absolute; top: 18px; right: 18px; color: var(--mint-dark); font-size: 1.2rem; line-height: 1; }
.package-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-top: auto; color: var(--muted); font-size: .78rem; font-weight: 700; }
.package-installed { color: var(--mint-dark); }
.package-description { margin: 8px 0 0; }
.agent-template-preview { max-width: 720px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.agent-template-preview p:last-child { margin: 0; color: var(--muted); line-height: 1.55; }
.package-routine-tile { cursor: default; }
.empty-state { padding: 42px 20px; text-align: center; }
.empty-mark { display: grid; width: 58px; height: 58px; place-items: center; margin: 0 auto 18px; border: 1px solid var(--ink); border-radius: 50%; font-size: 32px; }
.empty-state p { max-width: 390px; margin: 0 auto 22px; color: var(--muted); }
.hidden { display: none !important; }
dialog { width: min(100% - 28px, 500px); max-width: calc(100% - 28px); box-sizing: border-box; padding: 0; border: 0; border-radius: 10px; background: var(--panel); box-shadow: 0 30px 80px rgba(0,0,0,.2); overflow-x: hidden; }
#collectionDialog { max-height: min(96dvh, 720px); overflow-y: auto; }
.confirm-dialog { width: min(100% - 28px, 430px); }
.import-source-list { display: grid; gap: 10px; }
.import-source-option { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 14px; background: var(--panel); color: var(--ink); text-align: left; }
.import-source-option:hover { border-color: var(--mint-dark); background: #f8fbf7; }
.import-source-option strong, .import-source-option small { display: block; }
.import-source-option small { margin-top: 3px; color: var(--muted); font-size: .78rem; }
.import-source-icon, .import-drop-icon { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--mint-dark); border-radius: 50%; color: var(--mint-dark); font-weight: 700; }
.import-drop-zone { display: grid; justify-items: center; gap: 8px; width: 100%; min-height: 148px; border: 1px dashed var(--line); border-radius: 7px; padding: 22px; background: #fafaf7; color: var(--ink); text-align: center; }
.import-drop-zone:hover, .import-drop-zone.dragging { border-color: var(--mint-dark); background: #f1f8f2; }
.import-drop-zone strong, .import-drop-zone small { display: block; }
.import-drop-zone small { color: var(--muted); font-size: .78rem; }
.import-drop-icon { width: 36px; height: 36px; font-size: 1.2rem; }
.reminders-import-field[hidden] { display: none; }
.onboarding-dialog { width: min(100% - 28px, 560px); }
.onboarding-card { min-height: 390px; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.onboarding-progress { color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.onboarding-content { display: grid; align-content: start; gap: 14px; padding: 6px 0; }
.onboarding-content > p { max-width: 450px; margin: 0; }
.onboarding-note { color: var(--muted); font-size: .84rem; }
.onboarding-choice-list { display: grid; gap: 8px; }
.onboarding-choice { display: grid; gap: 3px; width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 12px 14px; background: var(--panel); color: var(--ink); text-align: left; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.onboarding-choice:hover, .onboarding-choice.active { transform: translateY(-1px); border-color: var(--mint-dark); background: #f8fbf7; }
.onboarding-choice small { color: var(--muted); font-size: .76rem; }
.onboarding-launch-button { justify-self: start; }
.onboarding-actions { align-items: center; justify-content: space-between; }
.onboarding-actions > div { display: flex; gap: 10px; }
.onboarding-theme-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.onboarding-theme-choice { grid-template-columns: 46px minmax(0, 1fr); gap: 8px; padding: 7px; }
.onboarding-theme-choice .theme-preview { width: 46px; height: 38px; }
.onboarding-theme-choice strong { font-size: .76rem; }
.onboarding-theme-choice small { font-size: .64rem; line-height: 1.2; }
#themesDialog { max-height: calc(100dvh - 28px); overflow-y: auto; }
#communityChatDialog { width: min(100% - 28px, 620px); max-height: calc(100dvh - 28px); }
#communityChatDialog > .dialog-card { max-height: calc(100dvh - 28px); overflow-y: auto; }
dialog::backdrop { background: rgba(32,35,35,.35); }
@keyframes dialog-pop-in { from { opacity: 0; transform: translateY(10px) scale(.96); } 65% { opacity: 1; transform: translateY(-2px) scale(1.01); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes dialog-pop-out { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(6px) scale(.97); } }
.dialog-card { display: grid; width: 100%; max-width: 100%; min-width: 0; gap: 18px; padding: 25px; }
#profileForm { grid-template-rows: auto minmax(0, 1fr) auto; min-height: 100%; align-content: stretch; }
#agentsForm { grid-template-rows: auto auto minmax(0, 1fr); min-height: 100%; }
#communityForm { grid-template-rows: auto auto minmax(0, 1fr) auto; min-height: 100%; }
#profileDialog.profile-required #profileForm { grid-template-rows: auto auto auto auto auto; min-height: 0; align-content: start; }
#profileDialog.profile-required .dialog-heading { justify-content: center; text-align: center; }
#profileDialog.profile-required .profile-title-line { justify-content: center; }
.dialog-section { display: grid; gap: 18px; }
.dialog-section + .dialog-section { padding-top: 18px; border-top: 1px solid var(--line); }
.profile-section { display: grid; gap: 12px; padding-top: 4px; }
#profileDialog:not(.profile-required) #profileStatus { display: none; }
.profile-section[hidden], .profile-tabs[hidden], .profile-tab[hidden] { display: none; }
.profile-dismiss-button[hidden] { display: none; }
.profile-heading-dismisses { display: flex; align-items: flex-start; gap: 8px; }
.modal-switcher { display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: #f2f3ee; }
.modal-switcher[hidden] { display: none; }
.modal-switch-button { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid transparent; border-radius: 5px; padding: 0; background: transparent; color: var(--muted); cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; }
.modal-switch-button .header-icon { width: 16px; height: 16px; }
.modal-switch-button:hover, .modal-switch-button:focus-visible { border-color: var(--line); background: #fff; color: var(--ink); }
.modal-switch-button[aria-pressed="true"] { border-color: var(--mint-dark); background: #f8fbf7; color: var(--ink); box-shadow: 0 1px 4px rgba(55,54,43,.08); }
.modal-switch-button:focus-visible { outline: 2px solid color-mix(in srgb, var(--mint-dark) 40%, transparent); outline-offset: 1px; }
.profile-mobile-close-button { display: none; }
.profile-bottom-actions { display: none; }
.profile-settings { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 18px; min-height: 0; height: 100%; align-items: stretch; padding-top: 4px; overflow: hidden; }
.profile-settings[hidden] { display: none; }
.profile-settings-nav { display: grid; height: 100%; min-height: 0; align-self: stretch; align-content: start; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 7px; background: #f2f3ee; }
.profile-settings-tab { min-height: 46px; border: 1px solid transparent; border-radius: 6px; padding: 10px 12px; background: transparent; color: var(--muted); font-size: .78rem; font-weight: 700; text-align: left; cursor: pointer; }
.profile-settings-tab:hover, .profile-settings-tab[aria-selected="true"] { border-color: var(--line); background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(55,54,43,.08); }
.profile-settings-tab[aria-selected="true"] { outline: 2px solid color-mix(in srgb, var(--mint-dark) 24%, transparent); outline-offset: -1px; }
.profile-settings-content { min-width: 0; min-height: 0; height: 100%; overflow: hidden; }
.profile-settings-panel { display: grid; gap: 12px; min-width: 0; min-height: 0; height: 100%; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; scrollbar-width: thin; }
.profile-settings-panel[hidden] { display: none; }
.profile-settings-panel#profileLogoutPanel { align-content: start; }
.profile-settings-panel#profileLogoutPanel .profile-account-actions { justify-items: start; }
.profile-settings-panel#profileLogoutPanel #profileLogoutButton { min-height: 42px; padding: 10px 14px; }
.profile-settings-panel h3 { margin: 0; font-size: 1rem; }
.profile-panel-eyebrow { margin: 0; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.profile-panel-note { margin: -5px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.4; }
.profile-access-logo { display: block; width: 72px; height: 72px; margin: 0 auto; align-self: end; object-fit: contain; }
#profileDialog.profile-required #profileStatus { max-width: 520px; margin: 24px auto 0; color: var(--muted); font-size: 1.28rem; line-height: 1.25; text-align: center; }
#profileDialog.profile-required .profile-tabs { margin-top: 8px; }
#profileDialog.profile-required .profile-access-logo { margin-top: 10px; }
#profileDialog.profile-required .profile-section { align-self: start; padding-top: 8px; }
.profile-tutorial-content { display: grid; gap: 9px; max-height: 390px; overflow-y: auto; padding-right: 3px; }
.profile-how-to-progress { display: grid; gap: 3px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 6px; background: #f8f8f5; color: var(--muted); font-size: .72rem; line-height: 1.35; }
.profile-how-to-progress strong { color: var(--ink); font-size: .8rem; }
.profile-how-to-chapters { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.profile-how-to-chapter { display: grid; gap: 7px; }
.profile-how-to-chapter-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 2px 0; }
.profile-how-to-chapter-heading > span { display: grid; gap: 2px; min-width: 0; }
.profile-how-to-chapter-heading strong { color: var(--ink); font-size: .8rem; }
.profile-how-to-chapter-heading small { color: var(--muted); font-size: .68rem; line-height: 1.3; }
.profile-how-to-chapter-heading b { flex: 0 0 auto; color: var(--muted); font-size: .68rem; }
.profile-how-to-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.profile-how-to-item { display: grid; grid-template-columns: 23px minmax(0, 1fr); align-items: center; gap: 9px; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; background: #f8f8f5; }
.profile-how-to-check { display: grid; width: 21px; height: 21px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: #fff; background: #fff; font-size: .75rem; font-weight: 900; }
.profile-how-to-item > span:last-child { display: grid; gap: 2px; min-width: 0; }
.profile-how-to-item strong { color: var(--ink); font-size: .78rem; }
.profile-how-to-item small { color: var(--muted); font-size: .7rem; line-height: 1.35; }
.profile-how-to-item.is-complete { border-color: #b8d2bd; background: #e8f2ea; }
.profile-how-to-item.is-complete .profile-how-to-check { border-color: var(--mint-dark); background: var(--mint-dark); }
.profile-how-to-item.is-complete strong { color: var(--mint-dark); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.profile-how-to-item.is-complete .profile-how-to-subtask strong { color: var(--ink); text-decoration: none; }
.profile-how-to-subtasks { display: grid; grid-column: 2; gap: 5px; margin: 0; padding: 2px 0 0; list-style: none; }
.profile-how-to-subtask { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 7px; min-width: 0; padding-top: 5px; border-top: 1px solid var(--line); }
.profile-how-to-subtask .profile-how-to-check { width: 16px; height: 16px; font-size: .62rem; }
.profile-how-to-subtask > span:last-child { display: grid; gap: 1px; min-width: 0; }
.profile-how-to-subtask strong { color: var(--ink); font-size: .72rem; }
.profile-how-to-subtask small { color: var(--muted); font-size: .66rem; line-height: 1.3; }
.profile-how-to-subtask.is-complete strong { color: var(--mint-dark); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.profile-account-info { margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #f8f8f5; color: var(--muted); font-size: .82rem; }
.profile-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.profile-stat { min-width: 0; padding: 9px 8px; border: 1px solid var(--line); border-radius: 6px; background: #f8f8f5; }
.profile-stat strong { display: block; color: var(--ink); font: 800 1.15rem/1 var(--display); }
.profile-stat span { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: .67rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.profile-agents { display: grid; gap: 10px; padding-top: 4px; }
.profile-subheading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.profile-subheading h3 { margin: 0; font-size: .95rem; }
.profile-agent-list { display: grid; gap: 7px; }
.agent-folder-group { display: grid; gap: 7px; }
.agent-folder-group + .agent-folder-group { margin-top: 8px; }
.agent-folder-group h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 4px 2px 0; color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.agent-folder-group h3 small { color: var(--muted); font-size: .68rem; font-weight: 700; }
.agents-directory { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; height: 100%; gap: 12px; overflow: hidden; padding-top: 4px; }
.agents-directory-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.agents-directory .profile-agent-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; scrollbar-width: thin; align-content: start; }
.profile-agent { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #f8f8f5; }
.profile-agent > div { min-width: 0; }
.profile-agent-edit { flex: 0 0 auto; align-self: flex-start; }
.profile-agent .profile-agent-actions { flex: 0 0 auto; align-self: flex-start; padding-top: 0; }
.profile-agent-toggle { display: inline-grid; place-items: center; min-width: 42px; padding: 9px; }
.profile-agent strong, .profile-agent span, .profile-agent small { display: block; }
.profile-agent strong { color: var(--ink); font-size: .86rem; display: flex; align-items: center; gap: 6px; }
.profile-agent strong .collection-color-dot { display: inline-block; }
.profile-agent span, .profile-agent small, .profile-agent-empty { color: var(--muted); font-size: .72rem; }
.profile-agent small { margin-top: 3px; }
.profile-agent-empty { margin: 0; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 6px; }
.profile-agent-actions { display: flex; justify-content: flex-end; padding-top: 8px; }
.profile-agent-icon-button { display: inline-grid; width: 42px; min-width: 42px; height: 42px; place-items: center; padding: 9px; }
.profile-agent-icon-button .header-icon { width: 22px; height: 22px; }
.agent-tab-badge, .agent-unread-badge { display: inline-grid; width: 18px; height: 18px; margin-left: 6px; place-items: center; border-radius: 50%; background: #c83f45; color: #fff; font: 800 .65rem/1 ui-monospace, monospace; vertical-align: middle; }
.agent-unread-badge { width: 16px; height: 16px; margin-left: 5px; }
.profile-agent-chat { position: relative; overflow: visible; }
.profile-agent-chat .agent-unread-badge { position: absolute; top: -5px; right: -5px; margin: 0; border: 2px solid var(--panel); }
.agent-unread-dot { display: inline-block !important; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: #c83f45; vertical-align: middle; }
.agent-unread-dot { box-shadow: 0 0 0 2px #f8f8f5; }
.agent-heartbeat-report.unread { background: #fff8f8; }
.agent-heartbeat-report { border-left: 3px solid #c83f45; }
.agent-heartbeat-actions { display: flex; justify-content: flex-end; gap: 6px; padding-top: 4px; }
.agent-heartbeat-actions .compact-action { display: inline-flex; align-items: center; gap: 5px; }
.agent-heartbeat-actions .header-icon { width: 14px; height: 14px; }
.agent-endpoint-fields { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #f8f8f5; }
.agent-endpoint-fields[hidden] { display: none; }
.agent-refresh-models { justify-self: start; }
#communityButton { order: 1; }
#profileButton { order: 2; }
#agentsButton { order: 3; }
#themesButtonLegacy { display: none; }
.community-settings { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 18px; min-height: 0; height: 100%; align-items: stretch; padding-top: 4px; overflow: hidden; }
.community-settings-nav { display: grid; height: 100%; min-height: 0; align-self: stretch; align-content: start; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 7px; background: #f2f3ee; }
.community-settings-tab { min-height: 46px; border: 1px solid transparent; border-radius: 6px; padding: 10px 12px; background: transparent; color: var(--muted); font-family: var(--brand); font-size: .78rem; font-weight: 700; line-height: 1.15; text-align: left; cursor: pointer; }
.community-settings-tab:hover, .community-settings-tab[aria-selected="true"] { border-color: var(--line); background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(55,54,43,.08); }
.community-settings-tab[aria-selected="true"] { font-family: var(--brand); font-size: .78rem; font-weight: 700; line-height: 1.15; outline: 2px solid color-mix(in srgb, var(--mint-dark) 24%, transparent); outline-offset: -1px; }
.community-settings-content { min-width: 0; min-height: 0; height: 100%; overflow: hidden; }
.community-settings-panel { display: grid; min-width: 0; min-height: 0; height: 100%; align-content: start; gap: 8px; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; scrollbar-width: thin; }
.community-settings-panel[hidden] { display: none; }
.community-connections-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.community-connections-heading .profile-panel-eyebrow { margin: 0; }
.community-search-actions { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; }
.community-add-button { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--mint-dark); border-radius: 4px; background: var(--mint-dark); color: #fff; font-size: 24px; font-weight: 400; line-height: 1; cursor: pointer; }
.community-add-button:hover, .community-add-button:focus-visible { background: #3d765d; box-shadow: 0 0 0 3px rgba(48,93,75,.14); }
.community-search-field { display: block; width: 150px; margin-left: auto; }
.community-search-field input { width: 100%; min-height: 32px; padding: 5px 8px; font-size: .72rem; }
.community-find-search { gap: 7px; }
.community-results { display: grid; gap: 8px; min-height: 84px; max-height: min(48vh, 360px); overflow-y: auto; padding: 4px 2px; }
.workspace-create-step { display: grid; gap: 12px; }
.workspace-create-step[hidden] { display: none; }
.workspace-folder-modal-body { display: grid; gap: 12px; }
.workspace-member-options { display: grid; gap: 6px; }
.workspace-member-options label { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: .78rem; font-weight: 700; }
.workspace-member-options input { width: 16px; min-height: 16px; margin: 0; accent-color: var(--mint-dark); }
.task-responsibility-fields { display: grid; gap: 9px; }
.task-responsibility-fields label { display: grid; gap: 5px; }
.task-responsibility-fields output { min-height: 34px; padding: 8px 10px; border: 1px solid var(--line); background: #f8f8f5; color: var(--ink); font-weight: 700; }
.workspace-folder { display: grid; gap: 0; animation: motion-enter .22s ease both; }
.workspace-summary { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: #f8f8f5; color: var(--ink); text-align: left; cursor: pointer; }
.workspace-folder.open .workspace-summary { border-color: var(--mint-dark); border-bottom-right-radius: 0; border-bottom-left-radius: 0; }
.workspace-summary > span:first-child { display: grid; min-width: 0; gap: 3px; }
.workspace-summary strong, .workspace-summary small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-summary small, .workspace-summary > span { color: var(--muted); font-size: .72rem; }
.workspace-summary > span:last-child { flex: 0 0 auto; font-weight: 700; }
.workspace-folder-detail { display: grid; gap: 9px; padding: 10px; border: 1px solid var(--mint-dark); border-top: 0; border-bottom-right-radius: 7px; border-bottom-left-radius: 7px; background: #f6faf6; }
.workspace-folder-actions { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.workspace-members-button { display: grid; width: 34px; height: 34px; place-items: center; padding: 7px; border: 1px solid #2365c4; border-radius: 4px; background: #2365c4; color: #fff; }
.workspace-members-button:hover, .workspace-members-button:focus-visible { border-color: #174987; background: #174987; color: #fff; }
.workspace-members-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.workspace-members { display: grid; gap: 5px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.workspace-members > strong { font-size: .72rem; text-transform: uppercase; }
.workspace-member { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink); font-size: .76rem; }
.workspace-member-actions { display: inline-flex; align-items: center; gap: 5px; }
.workspace-member-remove { width: 28px; height: 28px; font-size: 1rem; }
.workspace-member select { width: 104px; min-height: 28px; padding: 4px 22px 4px 7px; font-size: .7rem; }
.workspace-members-dialog-list { display: grid; gap: 8px; }
.workspace-members-dialog-list .workspace-member { padding: 8px 0; border-bottom: 1px solid var(--line); }
.workspace-members-dialog-list .workspace-pending-member { border-bottom-style: dashed; }
.workspace-member > span:first-child { display: grid; gap: 2px; }
.workspace-member > span:first-child small { color: var(--muted); font-size: .68rem; }
.permission-toggle { min-width: 58px; min-height: 28px; border: 1px solid var(--line); border-radius: 14px; padding: 4px 9px; background: #fff; color: var(--muted); font-size: .68rem; font-weight: 800; }
.permission-toggle[aria-checked="true"] { border-color: var(--mint-dark); background: var(--mint); color: var(--ink); }
.workspace-invite-create { display: grid; grid-template-columns: minmax(0, 1fr) 104px auto; gap: 6px; padding-top: 7px; border-top: 1px dashed var(--line); }
.workspace-invite-create select { min-width: 0; min-height: 30px; padding: 4px 22px 4px 7px; font-size: .7rem; }
.workspace-routine-list { display: grid; gap: 5px; }
.workspace-routine { display: grid; grid-template-columns: auto minmax(0, 1fr) 112px auto; align-items: center; gap: 8px; padding: 7px 2px; color: var(--ink); font-size: .78rem; font-weight: 700; }
.workspace-routine input { width: 16px; height: 16px; margin: 0; accent-color: var(--mint-dark); }
.workspace-routine span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-routine small { color: var(--muted); font-size: .68rem; font-weight: 600; }
.workspace-routine select { min-width: 0; min-height: 29px; padding: 4px 22px 4px 7px; font-size: .68rem; }
.workspace-routine.completed span { color: var(--muted); text-decoration: line-through; }
.workspace-routine-create { display: grid; grid-template-columns: minmax(0, 1fr) 94px 112px auto; gap: 7px; padding-top: 8px; border-top: 1px solid var(--line); }
.workspace-routine-create input, .workspace-routine-create select { min-width: 0; min-height: 34px; padding: 6px 8px; font-size: .76rem; }
.workspace-invitation { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; padding: 11px; border: 1px solid #a8cdb7; border-radius: 7px; background: #f1f9f2; }
.workspace-invitation strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-invitation small { color: var(--muted); font-size: .7rem; }
.workspace-invitation > div { display: inline-flex; grid-row: 1 / span 2; grid-column: 2; align-items: center; gap: 5px; }
.community-empty { margin: 0; padding: 20px 12px; border: 1px dashed var(--line); border-radius: 6px; color: var(--muted); font-size: .8rem; text-align: center; }
.community-person { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: #f8f8f5; }
.community-person-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: rgba(159,201,177,.2); color: var(--mint-dark); font-weight: 900; }
.community-person-copy { display: grid; min-width: 0; gap: 3px; }
.community-person-name { display: flex; min-width: 0; align-items: center; gap: 6px; }
.community-person-name strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-profile-trigger { width: 100%; border: 0; padding: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.community-profile-arrow { flex: 0 0 auto; color: var(--muted); font-size: 1rem; line-height: 1; transition: transform .22s ease, color .2s ease; }
.community-profile-trigger.is-open .community-profile-arrow { transform: rotate(180deg); color: var(--mint-dark); }
.community-profile-trigger:hover .community-person-name strong, .community-profile-trigger:focus-visible .community-person-name strong { color: var(--mint-dark); text-decoration: underline; text-underline-offset: 3px; }
.community-person-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-person-copy small { color: var(--muted); font-size: .72rem; }
.community-person-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.community-person-actions .compact-action { font-family: var(--brand); font-size: .78rem; font-weight: 700; line-height: 1.15; }
.community-status { min-height: 18px; margin: -4px 0 0; color: var(--mint-dark); font-size: .76rem; font-weight: 700; }
.community-person-actions .compact-action:disabled { cursor: not-allowed; opacity: .55; }
.community-chat { display: grid; grid-column: 1 / -1; gap: 8px; overflow: hidden; padding-top: 10px; border-top: 1px solid var(--line); }
.community-chat-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink); font-size: .78rem; }
.community-chat-messages { display: grid; max-height: 230px; gap: 7px; overflow-y: auto; padding: 2px 3px 2px 0; }
.community-chat-message { display: grid; max-width: 88%; gap: 3px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }
.community-chat-message.outgoing { justify-self: end; border-color: #b8d2bd; background: #eef7ef; }
.community-chat-message-author, .community-chat-message small { color: var(--muted); font-size: .66rem; font-weight: 700; }
.community-chat-message p { margin: 0; font-size: .78rem; line-height: 1.35; white-space: pre-wrap; overflow-wrap: anywhere; }
.community-chat .community-composer { gap: 7px; padding-top: 0; border-top: 0; animation: none; }
.community-chat .community-composer textarea { min-height: 64px; }
.agent-chat { gap: 12px; padding-top: 0; border-top: 0; overflow: visible; }
.agent-chat .community-chat-heading { padding-bottom: 9px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.agent-chat-heading-actions { display: flex; align-items: center; gap: 8px; }
.agent-chat-mode { margin-left: auto; }
.agent-chat-task-context { display: flex; align-items: center; gap: 7px; min-width: 0; padding-bottom: 9px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .74rem; }
.agent-chat-task-context strong { min-width: 0; overflow: hidden; color: var(--ink); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.agent-chat-task-context .compact-action { margin-left: auto; flex: 0 0 auto; }
.agent-task-plan { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid #b8d2bd; border-radius: 8px; background: #f4faf5; }
.agent-task-plan-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.agent-task-plan-heading span, .agent-task-plan li small { color: var(--muted); font-size: .7rem; }
.agent-task-plan ol, .agent-task-plan ul { margin: 0; padding-left: 20px; }
.agent-task-plan li { padding: 2px 0; }
.agent-task-plan li strong, .agent-task-plan li small { display: block; }
.agent-task-plan-compact { padding: 7px 10px; border-style: dashed; background: #f8fbf8; }
.agent-task-plan-compact small { color: var(--muted); font-size: .7rem; }
.agent-chat .community-chat-messages { min-height: 170px; max-height: 360px; padding: 8px 5px 8px 2px; background: #f3f6f1; border: 1px solid var(--line); border-radius: 8px; }
.agent-chat .community-chat-message { max-width: 78%; padding: 9px 12px; border-radius: 14px; box-shadow: 0 2px 5px rgba(55,54,43,.05); }
.agent-chat .community-chat-message.outgoing { border-bottom-right-radius: 4px; }
.agent-chat .community-chat-message.incoming { border-bottom-left-radius: 4px; }
.agent-chat-task-action { justify-self: start; margin-top: 3px; }
.agent-chat-typing { display: inline-flex; align-items: center; justify-self: start; gap: 4px; min-width: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; background: #fff; box-shadow: 0 2px 5px rgba(55,54,43,.05); }
.agent-chat-typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: agent-chat-typing 1.1s ease-in-out infinite; }
.agent-chat-typing span:nth-child(2) { animation-delay: .14s; }
.agent-chat-typing span:nth-child(3) { animation-delay: .28s; }
.agent-chat-error { color: #a43a31; }
.agent-chat .community-composer { display: flex; position: sticky; bottom: 0; z-index: 2; align-items: flex-end; gap: 8px; padding: 8px 0 max(8px, env(safe-area-inset-bottom)); background: var(--panel); }
.agent-chat .community-composer textarea { min-height: 44px; max-height: 140px; flex: 1; resize: vertical; border-radius: 14px; font-size: 16px; scroll-margin-bottom: 24px; }
.agent-chat .community-composer button { flex: 0 0 auto; min-height: 44px; border-radius: 14px; }
@keyframes agent-chat-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }
.workspace-history-thread { display: grid; max-height: min(62vh, 560px); gap: 8px; overflow-y: auto; padding: 10px 6px 10px 2px; background: #f3f6f1; border: 1px solid var(--line); border-radius: 8px; }
.workspace-history-thread .community-chat-message { max-width: 78%; }
.workspace-history-thread .community-chat-message.outgoing { justify-self: end; border-bottom-right-radius: 4px; }
.workspace-history-thread .community-chat-message.incoming { justify-self: start; border-bottom-left-radius: 4px; }
.community-link-button { position: relative; min-width: 70px; color: var(--muted); }
.community-link-button .community-link-label-hover { display: none; }
.community-link-button:hover, .community-link-button:focus-visible { border-color: #b9362b; background: #fff5f3; color: #9a3028; }
.community-profile-details { display: grid; grid-column: 1 / -1; gap: 12px; overflow: hidden; padding-top: 10px; border-top: 1px solid var(--line); animation: community-profile-details-in .28s cubic-bezier(.22,.8,.28,1) both; }
.community-profile-details:not(.is-entering):not(.is-collapsing) .profile-stat { animation: community-profile-stat-in .34s cubic-bezier(.22,.8,.28,1) both; animation-delay: calc(var(--profile-stat-index) * 42ms); }
.community-profile-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.community-profile-detail-heading h3 { margin: 0; font-size: 1rem; }
.community-profile-details .profile-account-info { margin: 0; }
.community-composer { grid-column: 1 / -1; display: grid; gap: 8px; overflow: hidden; padding-top: 9px; border-top: 1px solid var(--line); animation: community-composer-in .22s ease both; }
.community-composer-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink); font-size: .76rem; }
.community-composer textarea { min-height: 72px; font-size: .82rem; }
.community-collection-options { display: grid; max-height: 118px; gap: 5px; overflow-y: auto; padding: 8px 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.community-collection-options label { display: flex; min-height: 24px; grid-template-columns: none; align-items: center; gap: 7px; color: var(--ink); font-size: .74rem; font-weight: 700; }
.community-collection-options input { width: 16px; min-height: 16px; margin: 0; accent-color: var(--mint-dark); }
.community-inbox { display: grid; gap: 8px; }
.community-inbox-heading, .community-inbox-section > strong { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink); font-size: .78rem; }
.community-inbox-heading .profile-panel-eyebrow { margin: 0; }
.community-inbox-heading span { color: var(--muted); font-size: .7rem; font-weight: 700; }
.community-inbox-filter { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: var(--muted); font-size: .7rem; font-weight: 700; }
.community-inbox-filter select { width: auto; min-height: 32px; padding: 5px 26px 5px 8px; color: var(--ink); font-family: var(--brand); font-size: .72rem; font-weight: 700; }
.community-inbox-section { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #f8f8f5; }
.community-inbox-card-heading { display: flex; align-items: center; justify-content: space-between; color: var(--ink); font-size: .78rem; }
.community-inbox-card-heading strong { display: inline-flex; align-items: center; }
.community-request-card > p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.motion-enter { animation: motion-enter .22s ease both; }
.motion-exit { overflow: hidden; animation: motion-exit .22s ease both; }
.motion-read { animation: motion-read .2s ease both; }
@keyframes motion-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes motion-exit { from { max-height: 320px; opacity: 1; transform: translateY(0); } to { max-height: 0; opacity: 0; transform: translateY(-4px); margin: 0; padding-top: 0; padding-bottom: 0; border-width: 0; } }
@keyframes motion-read { 0% { background: #fff3e3; } 100% { background: #f8f8f5; } }
@keyframes badge-pop { 0% { transform: scale(.65); opacity: .2; } 70% { transform: scale(1.14); opacity: 1; } 100% { transform: scale(1); } }
.alert-badge.motion-badge-pop { animation: badge-pop .2s ease both; }
.personal-inbox-card.motion-exit { animation-duration: .24s; }
.workspace-folder-detail { transform-origin: top; animation: workspace-detail-enter .24s ease both; }
.workspace-invite-create { transform-origin: top; animation: workspace-detail-enter .2s ease both; }
.workspace-routine { animation: motion-enter .2s ease both; }
.workspace-folder.motion-exit { animation-duration: .26s; }
.workspace-create-enter { animation: workspace-detail-enter .2s ease both; }
.community-inbox-section, .community-person-card { animation: motion-enter .2s ease both; }
.profile-agent { animation: motion-enter .2s ease both; }
.collection-color-palette { transform-origin: top left; animation: workspace-detail-enter .16s ease both; }
.collection-color-swatch[aria-checked="true"] { animation: badge-pop .18s ease both; }
.package-installed { display: inline-block; animation: badge-pop .22s ease both; }
@keyframes workspace-detail-enter { from { opacity: 0; transform: translateY(-5px) scaleY(.96); } to { opacity: 1; transform: translateY(0) scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .motion-enter, .motion-exit, .motion-read, .alert-badge.motion-badge-pop, .workspace-folder-detail, .workspace-invite-create, .workspace-routine, .workspace-folder.motion-exit, .workspace-create-enter, .community-inbox-section, .community-person-card, .profile-agent, .collection-color-palette, .collection-color-swatch[aria-checked="true"], .package-installed { animation: none !important; } }
.personal-inbox-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.personal-inbox-card-heading > strong { display: flex; align-items: center; justify-content: space-between; min-width: 0; flex: 1; gap: 8px; color: var(--ink); font-size: .78rem; }
.personal-inbox-title { display: inline-flex; min-width: 0; align-items: center; gap: 0; }
.personal-inbox-card-heading .community-message-delete { width: 26px; height: 26px; flex-basis: 26px; }
.community-inbox-item, .community-message-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; line-height: 1.35; }
.community-message-item { align-items: flex-start; max-height: 220px; overflow: hidden; transition: max-height .22s ease, opacity .18s ease, padding .22s ease, transform .22s ease; }
.community-message-item > span { display: grid; gap: 2px; }
.community-message-actions { display: flex; align-items: center; gap: 8px; }
.community-message-item .community-message-actions { flex-direction: column-reverse; align-items: flex-end; align-self: start; }
.community-message-item small { color: var(--muted); font-size: .66rem; }
.community-message-item b, .community-inbox-item b { color: var(--ink); }
.community-unread-dot { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: #c83f45; box-shadow: 0 0 0 2px #f8f8f5; vertical-align: middle; }
.community-message-delete { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
.community-message-delete:hover, .community-message-delete:focus-visible { border-color: #d69a91; background: #ffe8e4; color: #9a342b; }
.community-message-delete svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.community-message-item.is-deleting { max-height: 0; padding-top: 0; border-top-color: transparent; opacity: 0; pointer-events: none; transform: translateY(-5px); }
@keyframes connection-celebration { 0% { opacity: .84; transform: scale(.985); box-shadow: 0 0 0 0 rgba(48,93,75,0); } 45% { opacity: 1; transform: scale(1.01); box-shadow: 0 0 0 7px rgba(48,93,75,.1); } 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(48,93,75,0); } }
.community-dialog.connection-celebration .dialog-card { animation: connection-celebration .62s cubic-bezier(.22,.8,.28,1) both; }
@keyframes community-composer-in { from { max-height: 0; opacity: 0; transform: translateY(-5px); } to { max-height: 280px; opacity: 1; transform: translateY(0); } }
@keyframes community-profile-details-in { from { max-height: 0; opacity: 0; transform: translateY(-8px); } to { max-height: 620px; opacity: 1; transform: translateY(0); } }
@keyframes community-profile-stat-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.theme-choice-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.theme-choice { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: var(--ink); text-align: left; transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.theme-choice:hover, .theme-choice.active { border-color: var(--mint-dark); box-shadow: 0 3px 10px rgba(55, 54, 43, .08); }
.theme-choice.active { outline: 2px solid color-mix(in srgb, var(--mint-dark) 24%, transparent); }
.theme-choice strong, .theme-choice small { display: block; }
.theme-choice strong { font-size: .82rem; }
.theme-choice small { margin-top: 2px; color: var(--muted); font-size: .7rem; }
.theme-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
.theme-setting-row strong, .theme-setting-row small { display: block; }
.theme-setting-row strong { font-size: .82rem; }
.theme-setting-row small { margin-top: 2px; color: var(--muted); font-size: .7rem; }
.theme-toggle { position: relative; display: inline-block; width: 40px; height: 24px; flex: 0 0 40px; border: 1px solid var(--line); border-radius: 6px; background: #e1e5e1; transition: background .2s ease, border-color .2s ease; }
.theme-toggle::after { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 4px; background: #fff; box-shadow: 0 1px 3px rgba(55,54,43,.16); content: ""; transition: transform .2s ease; }
.theme-toggle[aria-checked="true"] { border-color: var(--mint-dark); background: var(--mint-dark); }
.theme-toggle[aria-checked="true"]::after { transform: translateX(16px); }
.theme-toggle:focus-visible { outline: 2px solid color-mix(in srgb, var(--mint-dark) 40%, transparent); outline-offset: 2px; }
.theme-preview { display: block; width: 72px; height: 44px; border: 1px solid rgba(32, 35, 35, .12); border-radius: 5px; }
.theme-choice[data-theme-choice="silver-jarvis"]:hover, .theme-choice[data-theme-choice="silver-jarvis"]:focus-visible { background: #eaf2f6; }
.theme-choice[data-theme-choice="sunlight"]:hover, .theme-choice[data-theme-choice="sunlight"]:focus-visible { background: #f6f1dd; }
.theme-choice[data-theme-choice="rose"]:hover, .theme-choice[data-theme-choice="rose"]:focus-visible { background: #f7e9eb; }
.theme-choice[data-theme-choice="forest"]:hover, .theme-choice[data-theme-choice="forest"]:focus-visible { background: #edf1e7; }
.theme-choice[data-theme-choice="terracotta"]:hover, .theme-choice[data-theme-choice="terracotta"]:focus-visible { background: #f6ebe4; }
.theme-choice[data-theme-choice="ocean"]:hover, .theme-choice[data-theme-choice="ocean"]:focus-visible { background: #e6f1f2; }
.theme-choice[data-theme-choice="graphite"]:hover, .theme-choice[data-theme-choice="graphite"]:focus-visible { background: #ececea; }
.theme-choice[data-theme-choice="doq"]:hover, .theme-choice[data-theme-choice="doq"]:focus-visible { background: #f5f2eb; }
.theme-choice[data-theme-choice="lavender"]:hover, .theme-choice[data-theme-choice="lavender"]:focus-visible { background: #f0eef7; }
.theme-preview-doq { background: linear-gradient(135deg, #f5f2eb 0 58%, #b9d3bf 58% 78%, #305d4b 78%); }
.theme-preview-silver { background: linear-gradient(135deg, #eaf2f6 0 58%, #b6d2df 58% 78%, #35677c 78%); }
.theme-preview-forest { background: linear-gradient(135deg, #edf1e7 0 58%, #b8cfb0 58% 78%, #3f6b45 78%); }
.theme-preview-terracotta { background: linear-gradient(135deg, #f6ebe4 0 58%, #efb99f 58% 78%, #9b5c43 78%); }
.theme-preview-ocean { background: linear-gradient(135deg, #e6f1f2 0 58%, #9bc9c6 58% 78%, #267078 78%); }
.theme-preview-graphite { background: linear-gradient(135deg, #ececea 0 58%, #c1c9c3 58% 78%, #505d58 78%); }
.theme-preview-lavender { background: linear-gradient(135deg, #f0eef7 0 58%, #c8c1e2 58% 78%, #65518e 78%); }
.theme-preview-sunlight { background: linear-gradient(135deg, #f6f1dd 0 58%, #d5d39e 58% 78%, #777631 78%); }
.theme-preview-rose { background: linear-gradient(135deg, #f7e9eb 0 58%, #d9b6c0 58% 78%, #985269 78%); }
@media (prefers-reduced-motion: reduce) { .theme-choice { transition: none; } }
:root[data-theme="silver-jarvis"] .profile-settings-nav { background: #e4eef3; }
:root[data-theme="silver-jarvis"] .profile-stat,
:root[data-theme="silver-jarvis"] .profile-account-info,
:root[data-theme="silver-jarvis"] .profile-agent { background: #f0f7fa; }
.workspace-file-dialog { width: min(100% - 28px, 720px); }
.workspace-file-content { min-height: min(58vh, 520px); resize: vertical; tab-size: 2; font: 400 .9rem/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.workspace-description { margin: 6px 0 0; }
.workspace-file-card { display: grid; min-width: 0; align-content: start; gap: 5px; border: 1px solid var(--line); border-radius: 7px; padding: 14px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.workspace-file-card:hover { border-color: var(--mint-dark); box-shadow: 0 4px 12px rgba(55,54,43,.08); }
.workspace-history-card { border-color: #a8cdb7; background: #f4faf5; }
.workspace-history-card .workspace-file-icon { border-color: #a8cdb7; background: #e5f3e8; }
.workspace-instructions-card { border-color: var(--mint-dark); background: #f5faf4; }
.workspace-instructions-card small { color: var(--mint-dark); }
.workspace-file-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-file-card small { color: var(--muted); font-size: .72rem; }
.workspace-file-icon { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--line); border-radius: 5px; background: #f1f3ee; color: var(--mint-dark); font: 800 .86rem ui-monospace, monospace; }
.workspace-browser.grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.workspace-browser.list { display: grid; gap: 8px; }
.workspace-browser.list .workspace-file-card { grid-template-columns: auto 1fr auto; align-items: center; }
.agent-access-settings, .agent-outside-workspace-settings, .agent-access-field { display: grid; gap: 10px; }
.agent-outside-workspace-settings { padding-top: 12px; border-top: 1px solid var(--line); }
.agent-collection-access { display: grid; gap: 6px; margin-top: 8px; }
.agent-access-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.agent-access-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }
.agent-access-row select { min-height: 30px; padding: 5px 8px; }
.agent-access-row-actions { display: flex; align-items: center; gap: 6px; }
.agent-collection-picker { display: grid; gap: 8px; }
.agent-collection-picker > .secondary-button { width: 100%; justify-self: stretch; }
.agent-access-mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.agent-access-mode button { min-width: 0; min-height: 42px; border: 0; border-left: 1px solid var(--line); padding: 7px 5px; background: transparent; color: var(--muted); font-size: .75rem; font-weight: 700; text-align: center; cursor: pointer; }
.agent-access-mode button:first-child { border-left: 0; }
.agent-access-mode button:hover, .agent-access-mode button.active { background: var(--mint-dark); color: #fff; }
.agent-folder-permission { display: flex; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; }
.agent-folder-permission button { min-height: 26px; border: 0; border-left: 1px solid var(--line); padding: 3px 7px; background: var(--panel); color: var(--muted); font-size: .68rem; font-weight: 700; cursor: pointer; }
.agent-folder-permission button:first-child { border-left: 0; }
.agent-folder-permission button[aria-pressed="true"] { background: var(--mint-dark); color: #fff; }
.agent-access-remove { width: 26px; height: 26px; padding: 0; border-radius: 50%; font-size: 18px; line-height: 1; }
.profile-account-edit { display: grid; gap: 8px; align-items: stretch; }
.profile-name-field { gap: 7px; }
.profile-name-input-wrap { position: relative; display: flex; align-items: center; }
.profile-name-input-wrap input { padding-right: 86px; }
.profile-name-actions { position: absolute; right: 6px; display: inline-flex; align-items: center; gap: 4px; }
.profile-name-action { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); color: var(--ink); font-size: 18px; line-height: 1; }
.profile-name-action[hidden] { display: none; }
.profile-name-action:hover { border-color: var(--ink); background: var(--paper); }
.profile-name-confirm { border-color: var(--mint-dark); background: var(--mint-dark); color: #fff; }
.profile-name-confirm:hover { border-color: var(--mint-dark); background: var(--mint-dark); opacity: .82; }
.profile-name-cancel { border-color: #b9362b; color: #b9362b; }
.profile-name-cancel:hover { border-color: #b9362b; background: #fff0ed; color: #b9362b; }
.profile-privacy-field { display: grid; gap: 7px; }
.profile-privacy-toggle { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.profile-privacy-toggle button { display: grid; min-width: 0; gap: 2px; border: 0; border-left: 1px solid var(--line); padding: 8px 6px; background: transparent; color: var(--muted); text-align: center; cursor: pointer; }
.profile-privacy-toggle button:first-child { border-left: 0; }
.profile-privacy-toggle button:hover, .profile-privacy-toggle button.active { background: var(--mint-dark); color: #fff; }
.profile-privacy-toggle strong { font-size: .76rem; }
.profile-privacy-toggle small { font-size: .62rem; line-height: 1.15; }
.profile-account-edit-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-self: stretch; }
.profile-password-toggle { justify-self: stretch; }
.profile-password-fields { display: grid; gap: 12px; max-height: 0; overflow: hidden; opacity: 0; transform: translateY(-8px); transition: max-height .28s ease, opacity .2s ease, transform .28s cubic-bezier(.22, .8, .28, 1); }
.profile-password-fields.expanded { max-height: 210px; opacity: 1; transform: translateY(0); }
.profile-destructive-actions { display: grid; gap: 8px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.profile-destructive-actions .profile-panel-eyebrow { margin-bottom: 0; }
.profile-destructive-actions .danger-button { border: 1px solid #b9362b; background: transparent; color: #a32d25; }
.profile-destructive-actions .danger-button:hover { background: #fff0ed; }
.profile-account-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
.profile-tabs { display: grid; align-self: start; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 7px; background: #f2f3ee; }
.profile-tabs.single-tab { grid-template-columns: 1fr; }
.profile-tab { height: 46px; min-height: 46px; border: 0; border-radius: 5px; padding: 10px 12px; background: transparent; color: var(--muted); font-size: .82rem; font-weight: 700; cursor: pointer; }
.profile-tab:hover, .profile-tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(55,54,43,.08); }
.profile-tab:disabled { cursor: not-allowed; opacity: .45; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.dialog-heading-actions { display: flex; align-items: center; gap: 8px; }
.dialog-heading h2 { margin-bottom: 0; }
.profile-title-line { display: flex; align-items: center; gap: 10px; }
.profile-title-line h2 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-yin-yang { flex: 0 0 auto; color: var(--mint-dark); font-size: 1.35rem; line-height: 1; }
.close-button { width: 34px; height: 34px; border-color: var(--line); color: var(--muted); font-size: 22px; }
.close-button:hover { border-color: var(--ink); background: var(--paper); color: var(--ink); }
.compact-action { min-height: 34px; padding: 7px 10px; font-size: .78rem; }
@media (max-width: 620px) { .queue-timeline::before { left: 58px; } .queue-timeline-entry { grid-template-columns: 58px minmax(0, 1fr); gap: 8px; } .queue-timeline-time { padding-right: 9px; } .queue-timeline-time strong { font-size: .64rem; } .queue-timeline-time span { max-width: 52px; font-size: .55rem; } .community-settings { grid-template-columns: 1fr; gap: 12px; min-height: 0; } .community-settings-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } .community-settings-tab { min-height: 42px; padding: 8px 6px; text-align: center; } .community-person { grid-template-columns: auto minmax(0, 1fr); } .community-person-actions { grid-column: 1 / -1; justify-content: stretch; } .community-person-actions .compact-action { flex: 1 1 0; } .profile-agent { flex-wrap: wrap; } .profile-agent .profile-agent-actions { width: 100%; justify-content: flex-end; } .profile-agent-icon-button { width: 48px; min-width: 48px; height: 48px; padding: 11px; } .profile-agent-icon-button .header-icon { width: 24px; height: 24px; } }
@media (max-width: 520px) { #profileDialog { width: calc(100% - 28px); max-height: calc(100dvh - 28px); } #profileForm { grid-template-rows: auto minmax(0, 1fr) auto; } .profile-settings { grid-template-columns: 1fr; gap: 12px; min-height: 0; } .profile-settings-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); height: auto; } .profile-settings-tab { min-height: 42px; padding: 6px 4px; font-size: .68rem; line-height: 1.15; text-align: center; overflow-wrap: anywhere; } .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .profile-x-dismiss { display: none; } .profile-mobile-close-button { display: inline-flex; min-height: 42px; align-items: center; padding: 8px 13px; } #profileDialog.profile-required #profileStatus { margin-top: 18px; font-size: 1.05rem; } .profile-access-logo { width: 58px; height: 58px; } #profileDialog.profile-required .profile-section { padding-top: 4px; } }
label { display: grid; min-width: 0; gap: 7px; color: var(--muted); font-size: .82rem; font-weight: 700; }
input, select, textarea { width: 100%; max-width: 100%; min-width: 0; min-height: 46px; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; background: #fff; color: var(--ink); outline: none; font-size: 16px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--mint-dark); box-shadow: 0 0 0 3px rgba(48,93,75,.12); }
.custom-select { position: relative; min-width: 0; }
.custom-select-native { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.custom-select.is-hidden { display: none; }
.custom-select-trigger { display: flex; width: 100%; min-height: 46px; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 6px; padding: 10px 34px 10px 12px; background: #fff; color: var(--ink); font-size: 16px; font-weight: 400; outline: none; text-align: left; cursor: pointer; }
.custom-select-trigger-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-bar .custom-select-trigger { height: 46px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.custom-select-trigger::after { position: absolute; right: 13px; color: var(--muted); content: "⌄"; font-size: 1.1rem; line-height: 1; }
.custom-select-trigger:hover, .custom-select.open .custom-select-trigger { border-color: var(--mint-dark); }
.custom-select-trigger:focus-visible { border-color: var(--mint-dark); box-shadow: 0 0 0 3px rgba(48,93,75,.12); }
.custom-select-trigger:disabled { cursor: not-allowed; opacity: .55; }
.custom-select-menu { position: absolute; z-index: 60; top: calc(100% + 6px); right: 0; left: 0; display: none; max-height: min(260px, calc(100dvh - 150px)); overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; padding: 7px; background: var(--panel); box-shadow: var(--shadow); }
.custom-select.open .custom-select-menu { display: grid; gap: 2px; }
.custom-select-option { min-height: 36px; border: 0; border-radius: 4px; padding: 7px 8px; background: transparent; color: var(--ink); font-size: .8rem; font-weight: 700; text-align: left; cursor: pointer; }
.custom-select-option:hover, .custom-select-option.selected { background: var(--paper); }
.summary-card .custom-select { width: 100%; min-width: 0; margin-top: 7px; }
.summary-card .custom-select-trigger { width: 100%; min-width: 0; min-height: 0; overflow: hidden; border: 0; padding: 0 20px 0 0; background: transparent; color: var(--muted); font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.summary-card .custom-select-trigger:hover, .summary-card .custom-select.open .custom-select-trigger { border-color: transparent; color: var(--ink); }
.summary-card .custom-select-trigger::after { right: 1px; font-size: .95rem; }
.summary-card .custom-select-menu { right: auto; left: -8px; width: max-content; min-width: 150px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.collapsible-field { display: grid; gap: 0; }
.collapsible-trigger { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 10px; min-height: 42px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); font-size: .88rem; font-weight: 700; text-align: left; transition: color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.collapsible-trigger[aria-expanded="false"] { border-color: color-mix(in srgb, var(--mint-dark) 36%, var(--line)); box-shadow: 0 4px 12px -10px color-mix(in srgb, var(--mint-dark) 76%, transparent); }
.collapsible-trigger:hover { color: var(--mint-dark); }
.collapsible-check { margin-left: 7px; color: var(--mint-dark); font-weight: 900; }
.collapsible-switch { position: relative; display: inline-block; grid-column: 2; width: 40px; height: 24px; flex: 0 0 40px; margin: 0; border: 1px solid var(--line); border-radius: 6px; background: #e1e5e1; transition: background .2s ease, border-color .2s ease; }
.collapsible-switch::after { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 4px; background: #fff; box-shadow: 0 1px 3px rgba(55,54,43,.16); content: ""; transition: transform .2s ease; }
.collapsible-switch[aria-checked="true"] { border-color: var(--mint-dark); background: var(--mint-dark); }
.collapsible-switch[aria-checked="true"]::after { transform: translateX(16px); }
.collapsible-switch:focus-visible { outline: 2px solid color-mix(in srgb, var(--mint-dark) 40%, transparent); outline-offset: 2px; }
.collapsible-chevron { display: grid; grid-column: 3; width: 24px; height: 24px; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: .95rem; line-height: 1; transition: transform .2s ease, border-color .2s ease; }
.collapsible-trigger:hover .collapsible-chevron { border-color: var(--mint-dark); }
.collapsible-trigger[aria-expanded="true"] .collapsible-chevron { transform: rotate(180deg); }
.collapsible-content { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .28s ease, opacity .2s ease, padding-top .28s ease; }
.collapsible-content > div { min-height: 0; }
.collapsible-content.expanded { max-height: 230px; padding-top: 10px; opacity: 1; }
#ownerPanel.expanded { position: relative; z-index: 4; overflow: visible; }
#ownerPanel .custom-select.open { z-index: 5; }
.agent-settings-content.expanded { max-height: min(58dvh, 520px); overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; scrollbar-width: thin; }
.agent-settings-content > div { display: grid; gap: 14px; }
.agent-github-settings { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #f8f8f5; }
.connector-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .88rem; font-weight: 700; }
.connector-heading .collapsible-switch { grid-column: auto; }
.collapsible-content#stepsPanel.expanded { max-height: min(52dvh, 420px); overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; scrollbar-width: thin; }
.collection-collapsible-content.expanded { max-height: 360px; }
.schedule-collapsible-content.expanded { max-height: 260px; }
.collapsible-content textarea { display: block; }
.collapsible-content .small-note { margin: 6px 0 0; }
.note-input-wrap { position: relative; }
.note-input-wrap textarea { padding-right: 48px; }
.note-attachment-button { position: absolute; right: 8px; bottom: 8px; display: grid; width: 32px; height: 32px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--muted); cursor: pointer; }
.note-attachment-button:hover, .note-attachment-button:focus-visible { border-color: var(--mint-dark); color: var(--mint-dark); outline: none; }
.note-attachment-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.attachment-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.attachment-chip { display: inline-flex; min-width: 0; max-width: 100%; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: .76rem; font-weight: 700; cursor: pointer; }
.attachment-chip:hover, .attachment-chip:focus-visible { border-color: var(--mint-dark); color: var(--mint-dark); outline: none; }
.attachment-chip svg { width: 13px; height: 13px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.attachment-chip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recurring-settings-field { margin-top: 2px; }
.recurring-settings-content.expanded { max-height: 260px; overflow: visible; }
.recurring-settings-content > div { display: grid; gap: 12px; }
.field-label { margin: 0 0 7px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; min-height: 20px; }
.field-with-action { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
#startField { display: grid; gap: 10px; }
.active-from-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.end-time-field { min-width: 0; }
.schedule-field { min-width: 0; }
.schedule-field.disabled { opacity: .48; }
.end-time-field .field-label-row { margin: 0; }
.end-time-field .field-label { margin: 0; }
.time-window-toggle { margin: 0; width: fit-content; font-size: .76rem; }
.collection-field { display: grid; gap: 8px; }
.collection-select-button { width: 100%; justify-content: flex-start; text-align: left; }
.collection-select-button { display: flex; align-items: center; justify-content: space-between; min-height: 46px; }
.collection-finder-dialog { width: min(100% - 28px, 560px); }
.collection-finder-breadcrumbs { min-height: 30px; margin-bottom: 8px; overflow-x: auto; white-space: nowrap; }
.collection-finder-items { display: grid; grid-auto-rows: 54px; align-content: start; min-height: 180px; max-height: min(48vh, 360px); overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.collection-finder-folder { display: grid; grid-template-columns: 28px minmax(0, 1fr) 20px; align-items: center; gap: 8px; height: 54px; min-height: 54px; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: 700 .88rem var(--brand); text-align: left; cursor: pointer; }
.collection-finder-folder > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collection-finder-folder:last-child { border-bottom: 0; }
.collection-finder-folder:hover { background: #f4f7f4; }
.collection-finder-folder .folder-icon { width: 22px; height: 16px; }
.collection-finder-folder[data-collection-color="true"] .folder-icon { background: var(--collection-color); }
.collection-finder-folder.agent-access-folder-option { grid-template-columns: 28px 28px minmax(0, 1fr); cursor: pointer; }
.agent-access-folder-option input { width: 16px; min-height: 16px; margin: 0; accent-color: var(--mint-dark); }
.agent-access-folder-copy { display: grid; min-width: 0; gap: 2px; }
.agent-access-folder-copy strong,
.agent-access-folder-copy small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-access-folder-copy strong { font: 700 .88rem var(--brand); }
.agent-access-folder-copy small { color: var(--muted); font: 400 .7rem var(--sans); }
.collection-finder-empty { margin: 0; padding: 16px; }
.collection-picker-panel { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #f8f8f5; }
.collection-picker-panel > input { min-height: 40px; }
.collection-picker { display: grid; gap: 7px; height: 178px; overflow-y: auto; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.collection-option { display: flex; grid-template-columns: none; align-items: center; gap: 9px; color: var(--ink); font-size: .82rem; font-weight: 700; }
.collection-option input { width: 16px; min-height: 16px; margin: 0; accent-color: var(--mint-dark); }
.collection-option span { overflow-wrap: anywhere; }
.collection-option-missing { color: var(--muted); background: #f4f1ed; }
.checkbox-option { display: flex; grid-template-columns: none; align-items: center; gap: 9px; color: var(--ink); }
.checkbox-option[hidden] { display: none; }
.checkbox-option input { width: 16px; min-height: 16px; margin: 0; accent-color: #b9362b; }
.small-note { margin: -10px 0 0; font-size: .8rem; }
.field-action { min-height: 46px; padding: 10px 12px; white-space: nowrap; }
.color-input { width: 54px; height: 42px; min-height: 42px; padding: 4px; cursor: pointer; }
.field-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.collection-color-field { display: block; }
.collection-color-palette { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.collection-color-swatch { position: relative; min-width: 0; height: 34px; border: 2px solid transparent; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(55,54,43,.18); cursor: pointer; }
.collection-color-swatch:hover, .collection-color-swatch[aria-checked="true"] { border-color: var(--ink); }
.collection-color-swatch[disabled] { cursor: not-allowed; filter: grayscale(1); opacity: .22; }
.collection-color-swatch[disabled][aria-checked="true"] { border-color: var(--ink); filter: none; opacity: 1; }
.collection-color-palette.inherited { pointer-events: none; opacity: .5; }
.collection-color-adjustments { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.collection-color-adjustments label { gap: 4px; font-size: .72rem; }
.collection-color-adjustments input[type="range"] { min-height: 20px; padding: 0; border: 0; box-shadow: none; accent-color: var(--mint-dark); }
.collection-color-field .small-note { margin-top: 8px; }
.color-dialog-card { display: grid; width: 250px; max-width: 250px; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); box-shadow: none; }
#collectionColorDialog { position: fixed; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; overflow: visible; }
#collectionColorDialog::backdrop { background: transparent; }
.color-preview { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 4px; box-shadow: inset 0 0 0 4px #fff; }
.color-dialog-card .dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 0; }
.color-cancel-button, .color-save-button { min-height: 36px; border: 0; border-radius: 5px; color: #fff; font-size: .78rem; font-weight: 700; cursor: pointer; }
.color-cancel-button { background: #c92816; }
.color-save-button { background: #356d2b; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.workspace-file-dialog.history-view .dialog-actions { display: none; }
.schedule-section { gap: 14px; }
.schedule-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 2px; }
.schedule-heading > div:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.schedule-heading .field-label { margin: 0; }
.pause-controls { display: block; }
.pause-actions { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pause-toggle-button, .pause-until-button { width: 100%; min-width: 0; white-space: nowrap; }
.pause-toggle-button:disabled { cursor: not-allowed; opacity: .48; }
.pause-until-button:disabled { cursor: not-allowed; opacity: .48; }
.calendar-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; vertical-align: -3px; }
.pause-date-picker { position: absolute; width: 1px; height: 1px; border: 0; padding: 0; opacity: 0; pointer-events: none; }
.pause-status { margin: -6px 0 0; }
#recurrenceFields { padding-top: 2px; }
.sequence-dialog { width: min(100% - 28px, 560px); }
.sequence-dialog #sequenceSummary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 14px; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #f8f8f5; }
.sequence-dialog #sequenceSummary span { display: grid; gap: 2px; min-width: 0; color: var(--ink); font-size: .78rem; overflow-wrap: anywhere; }
.sequence-dialog #sequenceSummary b { color: var(--muted); font-size: .67rem; text-transform: uppercase; }
.sequence-dialog .dialog-actions button, #sequenceEditButton, .sequence-dialog .collapsible-trigger { font-family: var(--brand); font-size: .78rem; font-weight: 700; line-height: 1.15; }
.sequence-summary-content.expanded { max-height: 360px; }
.sequence-dialog .sequence-step-skip { font-family: var(--brand); font-weight: 700; }
.attachment-preview-dialog { width: min(100% - 28px, 760px); }
.attachment-preview-content { display: grid; min-height: 80px; place-items: center; overflow: auto; border: 1px solid var(--line); border-radius: 6px; padding: 12px; background: #fff; }
.attachment-preview-content img, .attachment-preview-content video { display: block; max-width: 100%; max-height: 65vh; object-fit: contain; }
.attachment-preview-content iframe { display: block; width: 100%; height: min(65vh, 620px); border: 0; }
.attachment-preview-content audio { width: 100%; }
.attachment-preview-content pre { width: 100%; max-height: 65vh; margin: 0; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: .82rem/1.5 var(--body); }
.sequence-notes-field { margin-top: 2px; }
.sequence-notes-field[hidden] { display: none; }
.sequence-notes { min-height: 52px; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); line-height: 1.5; white-space: normal; }
.sequence-review-fields { display: grid; gap: 9px; padding-top: 2px; }
.sequence-review-fields[hidden] { display: none; }
.sequence-review-fields [hidden] { display: none; }
.sequence-review-fields > p { margin: 0 0 1px; }
.review-question { display: grid; gap: 7px; min-height: 0; color: var(--ink); font-size: .88rem; font-weight: 700; }
.yes-no-toggle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; }
.yes-no-toggle label { display: flex; min-height: 42px; align-items: center; justify-content: center; padding: 7px 9px; background: transparent; color: var(--muted); font-size: .78rem; font-weight: 700; line-height: 1.2; text-align: center; overflow-wrap: anywhere; cursor: pointer; }
.yes-no-toggle label + label { border-left: 1px solid var(--line); }
.yes-no-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.yes-no-toggle label:has(input:checked) { background: var(--mint-dark); color: #fff; }
.sequence-review-fields .checkbox-option { min-height: 30px; }
.sequence-steps { display: grid; gap: 8px; max-height: min(48vh, 360px); overflow-y: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.sequence-step { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font-size: .92rem; font-weight: 700; }
.sequence-step label { display: flex; min-width: 0; flex: 1; align-items: center; gap: 12px; color: inherit; font-size: inherit; }
.sequence-step input { width: 18px; min-height: 18px; margin: 0; accent-color: var(--mint-dark); }
.sequence-step span { display: grid; gap: 3px; }
.sequence-step strong { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.sequence-step.completed { border-color: #b8d2bd; background: #f1f8f2; color: var(--muted); text-decoration: line-through; }
.sequence-step.completed strong { color: var(--mint-dark); }
.sequence-step.skipped { border-color: #c8ceca; background: #f1f3f0; color: var(--muted); text-decoration: line-through; }
.sequence-step.skipped strong { color: #5f6963; }
.sequence-step-skip { flex: 0 0 auto; min-height: 32px; border: 1px solid var(--line); border-radius: 5px; padding: 6px 9px; background: transparent; color: var(--muted); font-size: .76rem; font-weight: 700; }
.sequence-step-skip:hover { border-color: #89918d; background: #f1f3f0; color: var(--ink); }
.sequence-step-note { flex: 0 0 auto; display: grid; width: 24px; height: 24px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font: 700 .72rem/1 Arial, sans-serif; cursor: pointer; }
.sequence-step-note:hover, .sequence-step-note.has-note { border-color: var(--mint-dark); color: var(--mint-dark); background: #e8f2ea; }
.routine-step-cards { display: grid; gap: 8px; }
.routine-step-card { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.routine-step-card input { width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-size: .92rem; font-weight: 700; }
.routine-step-card input:focus { outline: 0; box-shadow: none; }
.routine-step-details { min-height: 30px; padding: 5px 8px; font-size: .72rem; white-space: nowrap; }
.routine-step-details.has-details { border-color: #a8c5ad; background: #edf6ef; color: var(--mint-dark); box-shadow: 0 0 12px -5px color-mix(in srgb, var(--mint-dark) 72%, transparent); }
.routine-step-composer { display: grid; gap: 8px; padding: 10px 12px; border: 1px dashed #a8c5ad; border-radius: 6px; background: #f8fbf7; }
.routine-step-composer input { width: 100%; min-width: 0; }
.routine-step-composer-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.remove-routine-step-button { display: grid; width: 24px; height: 24px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.remove-routine-step-button:hover { border-color: #b24d4d; color: #b24d4d; }
.add-routine-step-button { margin-top: 10px; }
.cycle-review-steps { max-height: min(52vh, 420px); padding-top: 0; border-top: 0; }
.cycle-review-step { cursor: pointer; }
.cycle-review-step input { flex: 0 0 auto; }
@media (max-width: 560px) {
  .shell { width: min(100% - 22px, 920px); padding-top: 23px; }
  .topbar { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; margin-bottom: 22px; }
  .topbar-left-actions { gap: 4px; }
  .topbar-left-actions .topbar-profile-button { width: 48px; height: 48px; flex-basis: 48px; }
  .topbar-left-actions .topbar-profile-button .profile-q-icon { width: 26px; height: 26px; }
  .topbar-actions { gap: 10px; }
  .new-task-action > span { display: none; }
  .brand-lockup { position: static; display: flex; gap: 1px; }
  .brand-title-row { gap: 4px; }
  .topbar-brand { min-width: 0; }
  .brand-lockup { max-width: 100%; }
  .doq-brand { max-width: none; font-size: 1.4rem; text-overflow: clip; }
  .doq-beta { font-size: .52rem; }
  .fonts-ready .doq-brand { transform: translateY(-9px); }
  .trisma-brand { margin-top: 1px; font-size: .07rem; letter-spacing: .05px; }
  .trisma-brand { transform: translateY(-6px); }
  .trisma-by { font-size: .16rem; }
  .summary div { min-height: 72px; padding: 10px 8px; }
  .summary strong { font-size: 1.65rem; }
  .summary span { font-size: .72rem; }
  .shell > .tab-row { position: sticky; top: 0; z-index: 200; margin-top: -8px; padding-top: 8px; background: var(--paper); }
  #queueView { max-height: none; overflow-y: visible; touch-action: auto; }
  .queue-timeline::before, .queue-timeline-time { display: none; }
  .queue-timeline-entry { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .queue-view-controls { justify-content: flex-start; flex-wrap: wrap; }
  .queue-timeline-toggle { display: none; }
  #queueView .routine-card, #queueView .routine-card:hover, #queueView .routine-card:focus-within { transform: none; }
  .routine-card { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .routine-card-folder-badges { display: none; }
  .sequence-dialog #sequenceSummary { grid-template-columns: 1fr; }
  .routine-combined-badge { display: none; }
  .routine-mobile-timeframe-badge { display: inline-flex; }
  .done-button { width: 100%; }
  .routine-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .routine-actions .skip-button, .routine-actions .done-button { width: 100%; }
  .routine-actions .done-button:only-child { grid-column: 2; }
  .conflict-resolution-controls { grid-template-columns: 1fr 1fr; }
  .conflict-resolution-controls > button { grid-column: span 2; }
  .tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; max-width: 100%; overflow: visible; }
  .tab { min-width: 0; min-height: 58px; padding: 0 2px; font-size: .74rem; white-space: nowrap; }
  .tab-row { align-items: stretch; flex-direction: column; gap: 0; }
  .tabs-field { flex: none; }
  .filter-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); justify-content: stretch; width: 100%; gap: 8px; margin: 0 0 14px; }
  .filter-bar label { width: auto; }
  .browser-toolbar { align-items: stretch; flex-direction: column; }
  .browser-actions { justify-content: flex-end; flex-wrap: wrap; }
  .collection-action-menu { order: 1; }
  .collection-action-menu-panel { right: auto; left: 0; width: min(230px, calc(100vw - 44px)); min-width: 0; max-width: calc(100vw - 44px); }
  .browser-actions .view-toggle { order: 2; }
  .browser-content.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .folder-tile, .routine-tile { min-height: 138px; padding: 13px; }
  .browser-content.list .documents-workspace-tile { grid-template-columns: 20px 34px minmax(0, 1fr) auto; }
  .library-header { align-items: stretch; flex-direction: column; }
  .library-panels { grid-template-columns: 1fr; }
  .template-carousel { display: block; position: relative; }
  .template-track { gap: 12px; padding-right: 24px; scrollbar-width: none; }
  .template-track::-webkit-scrollbar { display: none; }
  .template-track .library-package { flex-basis: min(250px, calc(100vw - 42px)); }
  .template-scroll-button { display: none; }
  dialog { width: calc(100% - 28px); max-height: calc(100dvh - 28px); overflow-x: hidden; overflow-y: auto; }
  #communityChatDialog > .dialog-card { max-height: calc(100dvh - 28px); }
  .agent-chat .community-chat-messages { min-height: 130px; max-height: 230px; }
  .dialog-card { gap: 16px; padding: 19px; }
  .dialog-section { gap: 14px; }
  .field-row, .active-from-row { gap: 8px; }
  .active-from-row { grid-template-columns: 1fr 1fr; }
  .active-from-row > label:first-child { grid-column: 1 / -1; }
  .dialog-actions { flex-wrap: wrap; }
  .dialog-actions > button { flex: 1 1 auto; }
  .schedule-heading { align-items: stretch; flex-direction: column; gap: 9px; }
  .pause-actions { justify-content: flex-start; }
  .sequence-dialog { max-height: calc(100dvh - 28px); }
  .sequence-step { align-items: flex-start; gap: 8px; min-height: 64px; padding: 12px 10px; font-size: 1rem; line-height: 1.3; }
  .sequence-step label { align-items: flex-start; gap: 10px; line-height: inherit; }
  .sequence-step input { width: 24px; min-height: 24px; flex: 0 0 24px; margin-top: 1px; }
  .sequence-step span { min-width: 0; line-height: inherit; overflow-wrap: anywhere; }
  .sequence-step strong { font-size: .75rem; }
  .sequence-step-skip { min-width: 44px; min-height: 36px; padding: 6px 7px; font-size: .72rem; }
  .calendar-toolbar { align-items: stretch; flex-direction: column; }
  .calendar-actions { justify-content: flex-end; }
  .calendar-day { min-height: 96px; padding: 6px; }
  .calendar-day-items { max-height: 112px; }
  .calendar-weekday { padding: 7px 5px; font-size: .65rem; }
  .calendar-task { padding: 5px; font-size: .68rem; }
  .delete-button { margin-right: 0; }
  .collection-picker-panel { padding: 8px; }
}

@media (min-width: 561px) and (max-width: 1100px) {
  .topbar { grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr); }
  .topbar-brand { width: max-content; }
  .brand-lockup { position: static; }
  .doq-brand { max-width: none; font-size: clamp(2rem, 4vw, 3rem); }
  .trisma-brand { font-size: .82rem; }
}

@media (max-width: 420px) {
  .brand-lockup { top: 18px; left: 14px; }
  .trisma-brand { font-size: .56rem; }
  .active-from-row { grid-template-columns: minmax(0, 1fr); }
  .active-from-row > label { width: 100%; min-width: 0; }
  .active-from-row input { width: 100%; min-width: 0; max-width: 100%; }
  .active-from-row > label:first-child { grid-column: auto; }
}

/* The page-wide corner mode keeps sharp and rounded layouts consistent. */
body.corner-style-edgy * { border-radius: 0 !important; }
body.corner-style-rounded * { border-radius: 8px; }
body.corner-style-edgy .icon-button,
body.corner-style-edgy .close-button,
body.corner-style-edgy .theme-button-colors,
body.corner-style-edgy .collection-color-dot,
body.corner-style-edgy .template-category-icon,
body.corner-style-edgy .template-category-empty-icon,
body.corner-style-edgy .package-category-icon,
body.corner-style-edgy .empty-mark,
body.corner-style-edgy .profile-how-to-check,
body.corner-style-edgy .community-person-avatar,
body.corner-style-edgy .note-attachment-button { border-radius: 50% !important; }
body.corner-style-rounded .icon-button,
body.corner-style-rounded .close-button,
body.corner-style-rounded .theme-button-colors,
body.corner-style-rounded .collection-color-dot,
body.corner-style-rounded .template-category-icon,
body.corner-style-rounded .template-category-empty-icon,
body.corner-style-rounded .package-category-icon,
body.corner-style-rounded .empty-mark,
body.corner-style-rounded .profile-how-to-check,
body.corner-style-rounded .community-person-avatar,
body.corner-style-rounded .note-attachment-button { border-radius: 50%; }
body.corner-style-edgy .folder-icon,
body.corner-style-rounded .folder-icon { border-radius: 4px !important; }
body.corner-style-edgy .profile-how-to-subtask,
body.corner-style-rounded .profile-how-to-subtask { border-radius: 0 !important; }
body.corner-style-edgy .alert-badge,
body.corner-style-rounded .alert-badge { border-radius: 50% !important; }
body.corner-style-transition * { transition: border-radius .3s ease !important; }
body.corner-style-transition .folder-icon { transition: none !important; }

/* Keep navigation labels aligned with the filter controls. */
.tab-row { align-items: flex-end; }
.tabs { align-items: stretch; gap: 6px; }
.tabs-indicator { display: block; z-index: 0; top: 0; bottom: auto; height: 46px; border: 1px solid var(--mint-dark); border-bottom: 3px solid var(--mint-dark); border-radius: 6px; background: #f8fbf7; box-shadow: 0 1px 4px rgba(55,54,43,.08); transition: left .28s ease, width .28s ease; }
.tab { position: relative; z-index: 1; display: flex; flex: 0 0 auto; min-height: 46px; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; font-family: var(--brand); font-size: .78rem; font-weight: 700; line-height: 1.15; text-align: center; transition: color .28s ease, border-color .28s ease, background .28s ease, box-shadow .28s ease, transform .2s ease; }
.tab:hover { border-color: #b9c7ba; background: rgba(255, 255, 255, .04); }
.tab.active { transform: none; border-color: transparent; background: transparent; color: var(--ink); outline: none; box-shadow: none; }
.tab-row { position: relative; z-index: 5; }
.filter-bar { position: relative; z-index: 30; margin-bottom: 0; }
.filter-bar > label { display: grid; grid-template-rows: auto 46px; align-content: start; }
.filter-bar input, .filter-bar select, .filter-bar .custom-select-trigger, .filter-bar .calendar-filter-trigger { height: 46px; min-height: 46px; font-family: var(--brand); font-size: .78rem; font-weight: 700; line-height: 1.15; }
.filter-bar .calendar-filter-trigger { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 560px) {
  .tab-row { align-items: stretch; }
  .tab-row { gap: 14px; margin-bottom: 25px; border-bottom: 0; }
  .tabs-field { gap: 9px; }
  .tabs { min-height: 0; gap: 6px; padding-bottom: 2px; }
  .tab { flex: 0 0 auto; min-height: 62px; justify-content: center; padding: 10px 4px 14px; border: 1px solid var(--line); border-radius: 6px; font-size: .66rem; line-height: 1.15; text-align: center; }
  .tab.active { transform: translateY(-2px); border-color: var(--mint-dark); background: #f8fbf7; color: var(--ink); outline: none; }
  .tabs-indicator { display: none; }
  .workspace-routine, .workspace-routine-create, .workspace-invite-create { grid-template-columns: minmax(0, 1fr) auto; }
  .workspace-routine input { grid-row: 1; }
  .workspace-routine span { grid-column: 1 / -1; grid-row: 1; padding-left: 24px; }
  .workspace-routine select, .workspace-routine small { grid-column: 2; }
  .workspace-routine select { grid-row: 2; }
  .workspace-routine small { grid-row: 3; }
  .workspace-routine-create input, .workspace-invite-create select:first-child { grid-column: 1 / -1; }
  .workspace-routine-create select, .workspace-invite-create select { min-width: 0; }
}
.filter-bar label:has(.calendar-filter-control) { position: relative; }
.calendar-filter-control { position: relative; z-index: 40; }
.calendar-filter-trigger { display: flex; width: 100%; min-height: 46px; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; background: #fff; color: var(--ink); font-family: var(--brand); font-size: .78rem; font-weight: 700; line-height: 1.15; outline: none; text-align: left; }
.calendar-filter-trigger:hover, .calendar-filter-trigger[aria-expanded="true"] { border-color: var(--mint-dark); }
.calendar-filter-trigger:focus-visible { border-color: var(--mint-dark); box-shadow: 0 0 0 3px rgba(48,93,75,.12); }
.calendar-filter-trigger span { color: var(--muted); font-size: 1.1rem; line-height: 1; }
.calendar-filter-menu { position: absolute; z-index: 50; top: calc(100% + 6px); right: 0; left: 0; display: none; max-height: min(260px, calc(100dvh - 150px)); overflow-x: hidden; overflow-y: scroll; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 6px; padding: 7px; background: var(--panel); box-shadow: var(--shadow); }
.calendar-filter-menu.open { display: grid; gap: 2px; }
.calendar-filter-option { display: flex; min-height: 36px; grid-template-columns: none; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 4px; color: var(--ink); font-size: .8rem; font-weight: 700; cursor: pointer; }
.calendar-filter-option:hover { background: var(--paper); }
.calendar-filter-option input { width: 16px; min-height: 16px; margin: 0; accent-color: var(--mint-dark); }
.calendar-filter-empty { padding: 10px 8px; color: var(--muted); font-size: .8rem; }
@media (min-width: 561px) and (max-width: 820px) {
  .tab-row { align-items: stretch; flex-direction: column; gap: 14px; margin-bottom: 25px; border-bottom: 0; }
  .tabs-field { width: 100%; flex: none; gap: 9px; }
  .tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .tab { min-width: 0; min-height: 52px; padding: 8px 6px 12px; white-space: normal; }
  .tabs-indicator { display: none; }
  .filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; width: 100%; margin-bottom: 14px; }
}
@media (hover: none) and (pointer: coarse) and (min-width: 561px) and (max-width: 1024px) {
  .custom-select-native { position: static; width: 100%; height: auto; overflow: visible; clip: auto; clip-path: none; white-space: normal; }
  .custom-select-trigger, .custom-select-menu { display: none; }
}
@media (prefers-reduced-motion: reduce) { .community-dialog.connection-celebration .dialog-card { animation: none; } }

@media (hover: none) and (pointer: coarse) {
  .tabs-indicator { display: none; }
  .tab.active { transform: translateY(-2px); border-color: var(--mint-dark); background: #f8fbf7; color: var(--ink); outline: none; box-shadow: 0 1px 4px rgba(55,54,43,.08); }
}
 .operator-console { max-width: 880px; margin: 0 auto; padding: 32px 20px 64px; }
 .operator-console header, .operator-console .section-heading, .operator-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
 .operator-console header { border-bottom: 1px solid var(--border); padding-bottom: 18px; }
 .operator-console header h1, .operator-console h2 { margin: 0; }
 .operator-console section { margin-top: 28px; }
 .operator-row { border-bottom: 1px solid var(--border); padding: 13px 0; }
 .operator-row div { display: grid; gap: 3px; }
 .operator-row span, .operator-row small { color: var(--muted); }
 .operator-login { display: grid; width: min(100%, 360px); gap: 14px; margin-top: 26px; }
 .operator-login label { display: grid; gap: 6px; font-weight: 700; }
 .operator-login input { width: 100%; }
 .operator-login[hidden], .operator-dashboard[hidden] { display: none; }
 .operator-actions { display: flex; align-items: center; gap: 9px; }
 .operator-csv { display: inline-flex; min-height: 34px; align-items: center; border: 1px solid var(--line); border-radius: 4px; padding: 0 11px; color: inherit; font-size: .82rem; font-weight: 700; text-decoration: none; }
