:root {
  color-scheme: dark;
  font: 16px/1.55 "Geist", "Segoe UI", sans-serif;
  color: #e0e8e4;
  background: #101517;
  --line: #303c3b;
  --ink: #cce8db;
  --muted: #a7b6b1;
}
* { box-sizing: border-box; }
body { margin: 0; }
header { border-bottom: 1px solid var(--line); background: #192022; }
.frame { width: min(100% - 2rem, 1040px); margin-inline: auto; }
.top, .identity, .workspace-head, .project-head, .actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.top, .project-head { justify-content: space-between; }
.top { min-height: 4.5rem; padding-block: .5rem; }
.brand { display: flex; gap: .7rem; align-items: center; color: var(--ink); text-decoration: none; font-weight: 700; }
.brand span { background: #83c9af; width: 1.1rem; height: 1.1rem; border-radius: 25% 75% 40% 60%; }
.identity { font-size: .875rem; overflow-wrap: anywhere; }
.identity button { background: transparent; color: var(--ink); border: 1px solid var(--line); }
main { padding-block: clamp(2rem, 6vw, 5rem); }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.8rem, 7vw, 5rem); line-height: 1; letter-spacing: -.065em; margin-block: .6rem 1rem; }
h2 { font-size: 1.4rem; letter-spacing: -.03em; }
h3 { font-size: 1.3rem; }
p { color: var(--muted); }
.eyebrow { color: #97cbb9; font-size: .76rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 750; }
.welcome { display: grid; grid-template-columns: 1.25fr 1fr; align-items: start; gap: clamp(2rem, 6vw, 6rem); }
.welcome > section:first-child { padding-block: 1.5rem; }
.welcome p { max-width: 38ch; }
.card { background: #192022; border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1rem, 3vw, 1.8rem); }
.auth > details, .demo { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1rem; }
.demo p { margin-bottom: .65rem; }
.demo form { display: inline-block; margin: 0 .4rem .4rem 0; }
.fields { display: grid; gap: .75rem; padding-top: .75rem; max-width: 32rem; }
label { display: grid; gap: .25rem; font-size: .875rem; font-weight: 650; }
button, input, select { font: inherit; border-radius: .45rem; }
input, select { padding: .45rem .7rem; color: inherit; background: #12191b; border: 1px solid #586866; min-width: 0; }
button { padding: .5rem .9rem; background: #9ad8bf; color: #10251c; border: 1px solid transparent; cursor: pointer; justify-self: start; }
button:hover { filter: brightness(1.17); }
:focus-visible { outline: 3px solid #addcc9; outline-offset: 3px; }
summary { cursor: pointer; color: var(--ink); font-weight: 650; }
.heading { margin-bottom: 2rem; }
.workspace { margin-bottom: 2rem; }
.workspace h2 { margin-right: auto; }
.workspace-head { margin-bottom: .7rem; align-items: baseline; }
.project { margin-top: .7rem; }
.project-head > span { color: var(--muted); font-size: .875rem; }
progress { margin-top: 1rem; width: 100%; height: .7rem; accent-color: #84c4a9; }
.milestones { padding: 0; margin: 0; list-style: none; }
.milestones li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-block: .85rem; border-bottom: 1px solid var(--line); }
.milestones li > details { grid-column: 1 / -1; margin-top: .4rem; }
.milestones time { display: block; color: var(--muted); font-size: .875rem; }
.status { background: #303c3d; color: #d7e1de; padding: .2rem .65rem; border-radius: 1rem; font-size: .82rem; }
.status.active { background: #473922; color: #ffe0a8; }
.status.done { background: #233c34; color: #b6e5cf; }
.actions { align-items: flex-start; }
.project .actions, .empty { margin-top: 1rem; }
.notice { padding: 1rem; border-radius: .5rem; background: #233b32; color: #cce8db; margin-bottom: 1rem; }
.notice.error { background: #462b2b; color: #ffd6d1; }
.notice input { max-width: 27rem; }
@media (max-width: 680px) { .welcome { grid-template-columns: 1fr; } }

.client-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  margin-top: 1.25rem;
  padding: clamp(1rem, 3vw, 1.4rem);
  border: 1px solid #3b534c;
  border-radius: .75rem;
  background: #1d2d2b;
}
.client-summary .next-title { color: #e0e8e4; font-size: 1.35rem; font-weight: 700; }
.client-summary .eyebrow { margin-bottom: .2rem; }
.milestones strong { overflow-wrap: anywhere; }

.setup { margin-block: 1rem; }
.secondary-setup, .project-setup section {
  border-top: 1px solid var(--line);
  margin-top: 1.25rem;
  padding-top: 1rem;
}
.setup h4, .project-setup h4 { margin: 0; font-size: 1rem; }
.project-setup { max-width: 36rem; }
.project-cover {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 1;
  min-height: 8rem;
  max-height: 17rem;
  border-radius: .6rem;
  object-fit: cover;
  margin-bottom: 1.15rem;
}
.milestone-edit { grid-column: 1 / -1; margin-top: .4rem; }
.milestone-edit a, a.milestone-edit { color: var(--ink); font-size: .875rem; }

.agreement { border-top: 1px solid var(--line); margin-top: 1.25rem; padding-top: 1rem; }
.agreement h4 { margin: 0; font-size: 1rem; }
.agreement textarea { font: inherit; color: inherit; background: #12191b; border: 1px solid #586866; border-radius: .45rem; padding: .45rem .7rem; resize: vertical; }

.dashboard { display: grid; grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr); gap: clamp(1rem, 4vw, 3rem); align-items: start; }
.sidebar { border: 1px solid var(--line); border-radius: .85rem; background: #192022; padding: .75rem; }
.sidebar nav { display: grid; gap: .25rem; }
.sidebar h2 { color: var(--muted); font-size: .78rem; margin: .7rem .55rem .15rem; }
.sidebar a { color: var(--ink); display: block; border-radius: .45rem; padding: .55rem; text-decoration: none; overflow-wrap: anywhere; }
.sidebar a:hover, .sidebar a[aria-current] { background: #273936; }
.panel-title, .dashboard .setup h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.045em; }
.dashboard .setup { margin-top: 0; }
.start-links { display: grid; gap: .5rem; }
.start-links a, .project-navigation a { color: var(--ink); }
.project-navigation { margin-top: .75rem; }
@media (max-width: 680px) {
  .dashboard { grid-template-columns: 1fr; }
  .sidebar nav { display: flex; align-items: baseline; flex-wrap: wrap; }
}

.project-setup section:target { border-top-color: #83c9af; scroll-margin-top: 1rem; }
.notice label { margin-block: .5rem; }
.site-create .fields { margin-top: .75rem; }
.design-options { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.field-note { font-size: .85rem; }
label.checkbox { display: flex; align-items: center; gap: .5rem; }
.project-site {
  --site-accent: #8ac9ab;
  --site-background: #161d20;
  --site-surface: #1e272a;
  --site-text: #edf2f0;
  --site-subtle: #aebdbc;
  --site-border: #374548;
  --line: var(--site-border);
  --ink: var(--site-text);
  --muted: var(--site-subtle);
  color-scheme: dark;
  color: var(--site-text);
  background: var(--site-background);
  border: 1px solid var(--site-border);
  border-radius: 1rem;
  overflow: hidden;
}
.project-site.accent-iris { --site-accent: #b19aff; }
.project-site.accent-amber { --site-accent: #ffc575; }
.project-site.accent-coral { --site-accent: #ff9d91; }
.project-site.accent-sky { --site-accent: #91caff; }
.project-site.theme-light {
  color-scheme: light;
  --site-background: #f7f6f2;
  --site-surface: #fff;
  --site-text: #1a2225;
  --site-subtle: #4f5e63;
  --site-border: #d6d9d6;
  --site-accent: #276650;
}
.theme-light.accent-iris { --site-accent: #5b4299; }
.theme-light.accent-amber { --site-accent: #8a4b12; }
.theme-light.accent-coral { --site-accent: #a13c34; }
.theme-light.accent-sky { --site-accent: #1e5d94; }
.site-hero { border: 0; background: var(--site-surface); border-top: .28rem solid var(--site-accent); }
.site-hero img { display: block; width: 100%; max-height: 23rem; min-height: 9rem; aspect-ratio: 3 / 1; object-fit: cover; }
.site-hero > div { padding: clamp(1.4rem, 6vw, 4rem); }
.site-hero h1 { margin-bottom: 0; }
.site-kicker { color: var(--site-accent); font-size: .85rem; font-weight: 700; }
.site-tools, .site-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.3rem; padding: .75rem clamp(1rem, 3vw, 1.6rem); }
.site-tools { justify-content: space-between; background: var(--site-background); font-size: .875rem; }
.site-tools a { color: var(--site-accent); }
.site-tabs { border-bottom: 1px solid var(--site-border); }
.site-tabs a { padding: .35rem .15rem; color: var(--site-subtle); text-decoration: none; overflow-wrap: anywhere; }
.site-tabs a[aria-current] { color: var(--site-text); border-bottom: 2px solid var(--site-accent); }
.site-content, .site-page-title { margin: clamp(.8rem, 3vw, 1.5rem); padding: clamp(1rem, 3vw, 1.5rem); overflow-wrap: anywhere; }
.site-content { border: 1px solid var(--site-border); border-radius: .7rem; background: var(--site-surface); }
.site-content .agreement { margin: 0; padding: 0; border: 0; }
.site-copy { white-space: pre-wrap; margin-top: .5rem; }
.site-content a, .site-editor-actions a { color: var(--site-accent); }
.project-site input, .project-site textarea, .project-site select { background: var(--site-background); color: var(--site-text); border: 1px solid var(--site-border); padding: .5rem .65rem; }
.project-site textarea { font: inherit; border-radius: .45rem; resize: vertical; }
.project-site .client-summary { background: var(--site-background); border-color: var(--site-border); }
.project-site .client-summary .next-title { color: var(--site-text); }
.project-site .client-summary .eyebrow { color: var(--site-accent); }
.site-editor-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.5rem; }
.site-editor-actions a { background: var(--site-surface); border: 1px solid var(--site-border); border-radius: .5rem; text-decoration: none; padding: .45rem .75rem; }

.client-site-page { padding-block: 0; }
.client-site-page > .project-site { border: 0; border-radius: 0; min-height: calc(100vh - 4.5rem); }
.client-site-page > .project { width: min(100% - 2rem, 65rem); margin: 1rem auto; }
.client-site-page > .notice { margin: 1rem auto; width: min(100% - 2rem, 65rem); }
.client-site-page .site-hero > div,
.client-site-page .site-tabs,
.client-site-page .site-tools { width: min(100%, 76rem); margin-inline: auto; }
.client-site-page .site-hero img { max-height: min(54vh, 35rem); }
.client-site-page .site-content,
.client-site-page .site-page-title { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.project-switcher { position: relative; }
.project-switcher nav {
  position: absolute; right: 0; z-index: 2; display: grid; gap: .2rem;
  width: max-content; min-width: 12rem; max-width: min(20rem, 80vw);
  padding: .45rem; margin-top: .4rem; border: 1px solid var(--line);
  border-radius: .55rem; background: #192022;
}
.project-switcher a { padding: .45rem .6rem; border-radius: .35rem; }
.project-switcher a, .header-link { color: var(--ink); }
.project-switcher a:hover, .project-switcher a[aria-current] { background: #273936; }

.new-project a { background: #9ad8bf; color: #10251c; font-weight: 700; }
.new-project a:hover, .new-project a[aria-current] { background: #b8e8d4; }

/* Artist workspace */
:root { font-size: 14px; background: #171819; color: #e7e8ea; --line: #34363a; --ink: #e1e3e6; --muted: #a6a9af; }
body > header { background: #202123; border-color: #34363a; }
body > header .top { width: calc(100% - 2.5rem); min-height: 3.7rem; }
.brand span { border-radius: 3px; background: #a8abb3; width: .85rem; height: .85rem; }
.workspace-shell { padding: 0; }
.workspace-shell > .dashboard { min-height: calc(100vh - 3.7rem); grid-template-columns: 224px minmax(0, 1fr); gap: 0; }
.workspace-shell .sidebar { border: 0; border-right: 1px solid #303236; border-radius: 0; background: #202123; padding: 1.25rem .75rem; height: 100%; }
.sidebar-caption { margin: 0 .6rem .9rem; color: #a6a9af; font-size: .8rem; font-weight: 600; }
.sidebar a { border-radius: 5px; font-weight: 500; }
.sidebar h2 { margin-top: 1.6rem; font-size: .75rem; font-weight: 600; }
.sidebar a:hover, .sidebar a[aria-current] { background: #34363b; }
.new-project a { background: #e5e7eb; color: #202124; }
.new-project a:hover, .new-project a[aria-current] { background: #fff; color: #202124; }
.dashboard-panel { min-width: 0; padding: clamp(1rem, 3vw, 2.5rem); }
.dashboard-panel > .setup { max-width: 760px; margin-inline: auto; }
.card { background: #202225; border-color: #35383d; border-radius: 6px; }
h1 { letter-spacing: -.035em; }
.site-create { padding: clamp(1.5rem, 4vw, 3rem); }
.site-create h1 { margin: .25rem 0 .6rem; }
.site-create > p { max-width: 52ch; }
.site-create .fields { max-width: none; margin-top: 1.75rem; gap: 1rem; }
label { font-size: .9rem; font-weight: 550; }
input, select, textarea { border-radius: 4px; }
input, select { min-height: 2.6rem; background: #181a1d; border-color: #4b4e55; }
button { min-height: 2.5rem; border-radius: 5px; font-weight: 600; background: #e5e7eb; color: #202124; }
.site-create button { margin-top: .5rem; }
.eyebrow { color: #aeb3bd; letter-spacing: .06em; font-size: .75rem; }
.is-editing { border-radius: 6px; border-color: #41444b; }
.is-editing .site-tools { background: #25272b; border-bottom: 1px solid #42454b; color: #e8e9ed; padding: .8rem 1.2rem; }
.editor-context { display: block; color: #b0b3bc; font-size: .75rem; }
.toolbar-links { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.is-editing .site-tools a { color: #e2e5ed; text-decoration: none; }
.is-editing .site-tools .preview-action { border: 1px solid #666a74; padding: .4rem .7rem; border-radius: 4px; }
.is-editing .site-hero > div { padding: 2rem; }
.is-editing .site-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.is-editing .site-content { border-radius: 4px; }
.site-editor-actions { border-top: 1px solid var(--site-border); padding-top: 1rem; }
.site-editor-actions a { border-radius: 4px; }
.editor-action { display: inline-block; border-radius: 4px; text-decoration: none; padding: .5rem .8rem; }
.site-editor-actions .primary-action, .editor-empty .primary-action { color: #191b1e; background: #e5e7eb; border: 1px solid #e5e7eb; font-weight: 650; }
.editor-empty { padding: clamp(2rem, 5vw, 4rem); text-align: center; border: 1px dashed var(--site-border); margin: 1.5rem; border-radius: 4px; }
.editor-empty p { margin: .5rem auto 1.25rem; max-width: 42ch; }
.editor-form h2 { margin-bottom: .75rem; }
.client-site-page .site-hero h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
@media (max-width: 680px) {
  .workspace-shell > .dashboard { grid-template-columns: 1fr; }
  .workspace-shell .sidebar { border-right: 0; border-bottom: 1px solid #34363a; height: auto; }
  .sidebar-caption { display: none; }
  .sidebar h2 { margin-top: .5rem; }
}

/* Project library and open project canvas */
.dashboard-panel > .project-site { border: 0; border-radius: 0; min-height: calc(100vh - 9rem); }
.dashboard-panel:has(> .project-site) { padding: 0; }
.library { max-width: 1200px; margin-inline: auto; }
.library-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.library-heading h1 { font-size: 2rem; margin: .25rem 0; }
.library-heading > span { color: var(--muted); }
.library-filters { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.library-filters label:first-of-type { flex: 1; min-width: 12rem; }
.library-filters a { color: var(--muted); padding: .5rem; }
.project-row { display: grid; grid-template-columns: 64px minmax(0,1fr) minmax(10rem,1fr); align-items: center; gap: 1rem; padding: 1rem .5rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.project-row:hover { background: #232529; }
.project-row img, .project-monogram { width: 64px; height: 46px; object-fit: cover; border-radius: 3px; }
.project-monogram { display: grid; place-items: center; background: #30343b; font-weight: 700; color: #d9dce2; }
.project-row strong { display: block; font-size: 1rem; }
.project-row div span { color: var(--muted); font-size: .85rem; }
.project-row p { font-size: .875rem; }
.library-empty { padding-block: 2rem; }
@media(max-width:680px) { .project-row { grid-template-columns: 48px minmax(0,1fr); } .project-row p { grid-column:2; } .project-row img,.project-monogram { width:48px; } }

.home-welcome { max-width: 800px; margin: clamp(2rem,8vh,7rem) auto; }
.home-welcome h1 { font-size: clamp(2.2rem,4vw,3.7rem); max-width: 15ch; line-height: 1.12; }
.home-welcome > p { max-width: 47ch; }
.home-actions { display:flex; gap:1.25rem; align-items:center; margin-block:2rem; }
.home-actions a,.library-heading a { color:var(--ink); }
.home-actions a:first-child { background:#e5e7eb; color:#202124; padding:.65rem 1rem; border-radius:4px; text-decoration:none; }
.home-summary { display:flex; gap:2rem; color:var(--muted); border-top:1px solid var(--line); padding-top:1rem; }
.client-folders { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:1px; background:var(--line); border:1px solid var(--line); }
.client-folder { background:#202225; padding:1.4rem; color:var(--ink); text-decoration:none; }
.client-folder > span:not(.hud-corners):not(.hud-reflection) { display:block; font-size:2rem; color:#b6becd; }
.client-folder:hover { background:#292c32; }
.template-choice { padding:1rem; border:1px solid var(--line); }
.template-choice label { display:grid; grid-template-columns:auto 1fr; gap:.3rem .6rem; padding:.65rem 0; }
.template-choice input { grid-row:span 2; min-height:0; }
.template-choice span { color:var(--muted); font-weight:400; }

.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.global-search { position:relative; width:clamp(14rem,35vw,34rem); }
.global-search input { width:100%; background:#292b2f; border:1px solid transparent; min-height:2.3rem; font-size:.9rem; }
.global-search input:focus { border-color:#666b74; }
#search-results { position:absolute; z-index:10; top:calc(100% + .4rem); left:0; right:0; max-height:65vh; overflow:auto; background:#222429; border:1px solid #494d55; border-radius:5px; box-shadow:0 12px 30px #0005; }
.search-status { padding:.65rem .8rem; font-size:.8rem; }
#search-results a:not([hidden]) { display:grid; padding:.6rem .8rem; color:var(--ink); text-decoration:none; }
#search-results a:hover,#search-results a:focus { background:#353942; }
#search-results span,#search-results small { color:var(--muted); font-size:.75rem; }
.daily-brief { max-width:850px; margin:clamp(1rem,5vh,4rem) auto; }
.daily-brief h1 { font-size:clamp(2rem,4vw,3.2rem); margin:.5rem 0 .8rem; }
.brief-intro { font-size:1.15rem; }
.daily-brief section { margin-top:2.5rem; }
.daily-brief h2 { font-size:1rem; margin-bottom:.75rem; }
.brief-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 0; border-bottom:1px solid var(--line); color:var(--ink); text-decoration:none; }
.brief-row:hover strong { text-decoration:underline; }
.brief-row p,.brief-row time { font-size:.875rem; color:var(--muted); }
.brief-empty { padding-block:1rem; border-top:1px solid var(--line); }
@media(max-width:680px) { .global-search { order:3; width:100%; margin-bottom:.5rem; } .brief-row { align-items:flex-start; } }

.plan { max-width:1100px; margin-inline:auto; }
.plan h1 { font-size:2rem; margin:.4rem 0; }
.plan a,.project-plan-link a { color:var(--ink); }
.plan-group { margin-top:2rem; }
.plan-group h2 { font-size:1rem; margin-bottom:.6rem; }
.plan-row { display:grid; grid-template-columns:minmax(10rem,2fr) 1fr 1fr 5rem; gap:1rem; padding:.8rem .5rem; border-bottom:1px solid var(--line); text-decoration:none; align-items:center; }
.plan-row:hover { background:#292c31; }
.plan-row span { color:var(--muted); font-size:.85rem; }
.plan-form { border-top:1px solid var(--line); margin-top:2rem; padding-top:1.5rem; }
.project-plan-link { padding:.75rem 1.25rem; border-bottom:1px solid var(--line); }
.dashboard-panel:has(.project-site) { padding:0; }
@media(max-width:680px) { .plan-row { grid-template-columns:1fr 1fr; } }

.plan-dialog {
  position:fixed; inset:0; margin:auto; z-index:20;
  width:min(35rem,calc(100vw - 2rem)); max-height:calc(100dvh - 3rem);
  overflow:auto; padding:1.5rem; border:1px solid #50545d; border-radius:6px;
  background:#222429; color:#e7e8ea; box-shadow:0 20px 80px #0007;
}
.plan-dialog::backdrop { background:#080b10b3; }
.plan-dialog .fields { max-width:none; }
.dialog-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; margin-bottom:.75rem; }
.dialog-heading h2 { font-size:1.35rem; margin-top:.25rem; }
.dialog-close { text-decoration:none; font-size:1.6rem; line-height:1; padding:.15rem .35rem; }
.dialog-cancel { display:inline-block; margin-top:1rem; font-size:.9rem; }
body:has(.plan-dialog:modal) { overflow:hidden; }

dialog::backdrop { background:#080b1099; backdrop-filter:blur(7px); -webkit-backdrop-filter:blur(7px); }

.deliverable-spec dl { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:1rem; margin-top:1rem; }
.deliverable-spec dt { color:var(--muted); font-size:.8rem; }
.deliverable-spec dd { margin:0; font-weight:600; }
.plan-add-nav { display:flex; gap:1rem; flex-wrap:wrap; margin-block:1rem; }
.plan textarea { font:inherit; padding:.6rem; background:#181a1d; color:inherit; border:1px solid #4b4e55; }

.plan-deliverable { --plan-color:#9ebaff; --plan-fill:#26334d; }
.plan-milestone { --plan-color:#dbb483; --plan-fill:#3e3226; }
.plan-task { --plan-color:#bda9e8; --plan-fill:#342b45; }
.plan-group-heading { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:.5rem 0 .75rem; border-bottom:1px solid var(--line); }
.plan-group-heading h2 { margin:0; color:var(--plan-color); }
.plan-group-heading h2::before { content:""; display:inline-block; width:.5rem; height:.5rem; background:var(--plan-color); border-radius:2px; margin-right:.6rem; vertical-align:middle; }
.plan .plan-add-button { color:var(--plan-color); background:var(--plan-fill); border:1px solid transparent; border-radius:4px; padding:.4rem .7rem; font-size:.85rem; text-decoration:none; white-space:nowrap; }
.plan .plan-add-button:hover { border-color:var(--plan-color); }
.plan-dialog { border-top:3px solid var(--plan-color); }
.plan-dialog .eyebrow { color:var(--plan-color); }

.status { display:inline-block; width:max-content; font-size:.78rem; font-weight:550; border-radius:4px; padding:.2rem .55rem; }
.status.planned, .plan-row .status.planned { background:#30343b; color:#c8ced8; }
.status.active, .plan-row .status.active { background:#203c59; color:#add5ff; }
.status.done, .plan-row .status.done { background:#243e33; color:#b3e1c7; }
.status.canceled, .plan-row .status.canceled { background:#462c32; color:#f0b5bd; }
.theme-light .status.planned { background:#e5e7ec; color:#454e60; }
.theme-light .status.active { background:#dcecff; color:#234d80; }
.theme-light .status.done { background:#dcf0e3; color:#245d3b; }
.theme-light .status.canceled { background:#f8e2e5; color:#8a3442; }

.project-site, .project-site .site-content, .project-site .client-summary,
.project-site .site-editor-actions a, .project-site .editor-empty,
.project-site input, .project-site select, .project-site textarea,
.project-cover { border-radius:0; }
.project-site .site-hero { background:var(--brand-primary); color:var(--brand-primary-text); border-top:0; }
.project-site .site-hero .site-kicker { color:var(--brand-primary-text); opacity:.8; }
.project-site .site-tabs a[aria-current] { border-bottom-color:var(--brand-accent); }
.project-site .site-kicker, .project-site .client-summary .eyebrow { color:var(--site-text); }
.project-site .primary-action, .project-site button {
  background:var(--brand-accent); color:var(--brand-accent-text); border-color:var(--brand-accent);
}
input[type=color] { padding:.2rem; width:100%; min-height:2.8rem; cursor:pointer; }

.deliverable-spec > .site-copy { max-width:72ch; line-height:1.7; margin-top:.8rem; }
.deliverable-spec dl {
  margin-top:1.5rem; padding-top:1.25rem; border-top:1px solid var(--site-border,var(--line));
  grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.5rem 2rem;
}
.deliverable-spec dt {
  font-size:.72rem; font-weight:650; text-transform:uppercase; letter-spacing:.07em;
  color:var(--site-subtle,var(--muted)); margin-bottom:.4rem;
}
.deliverable-spec dd { font-size:1rem; line-height:1.5; color:var(--site-text,var(--ink)); }
.brand-color-field { display:grid; grid-template-columns: minmax(6rem,1fr) minmax(8rem,1fr); gap:.6rem; align-items:end; }
.brand-color-field [data-hex] { font-family:"Consolas",monospace; text-transform:uppercase; min-width:0; width:100%; height:2.8rem; }
@media(max-width:680px) {
  .deliverable-spec dl { grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.25rem; }
  .design-options { grid-template-columns:1fr; }
}
@media(max-width:380px) { .deliverable-spec dl { grid-template-columns:1fr; } }

.plan-row { grid-template-columns:minmax(10rem,2fr) 1fr 1fr 5rem 3rem; }
.item-title { text-decoration:none; }
.item-title:hover { text-decoration:underline; }
.item-edit { font-size:.85rem; color:var(--muted); }
.item-detail .detail-visibility { font-size:.85rem; margin:.5rem 0 1rem; }
.detail-facts { display:grid; grid-template-columns:1fr 1fr; gap:1rem; border-top:1px solid var(--line); padding-top:1rem; }
.detail-facts p { margin-bottom:.4rem; font-size:.8rem; }
.detail-edit-button { display:inline-block; margin-top:1.5rem; padding:.5rem .8rem; border:1px solid #59616f; border-radius:4px; text-decoration:none; }
.access-panel { width:100%; max-width:none; margin:0; }
.access-panel h1 { font-size:2rem; margin-block:1rem; }
@media(max-width:680px) { .plan-row { grid-template-columns:1fr auto; } .item-title { grid-column:1/-1; } }

.global-search input { background:#131416; border-color:#34363b; }
.global-search input:hover { border-color:#4c5058; }
.global-search input:focus { background:#101113; border-color:#777f8e; }
.project-actions a {
  display:inline-flex; align-items:center; justify-content:center;
  min-height:2.5rem; padding:.45rem .85rem; border:1px solid #525761;
  border-radius:4px; background:#272a2f; color:#e7e8ea; text-decoration:none;
  font-size:.9rem; font-weight:600;
}
.project-actions a:hover { background:#353941; border-color:#777f8e; }
.project-actions a.action-primary { background:#e5e7eb; color:#202124; border-color:#e5e7eb; }
.project-actions a.action-primary:hover { background:#fff; }

/* Neutral client surfaces; project branding remains in the header and actions. */
.project-site.theme-dark {
  --site-background:#171819;
  --site-surface:#202225;
  --site-text:#e7e8ea;
  --site-subtle:#a6a9af;
  --site-border:#383b41;
}
.project-site .client-summary { background:var(--site-background); }
.project-site .deliverable-section { position:relative; overflow:hidden; }
.deliverable-section::before {
  content:""; position:absolute; top:0; left:0; width:2rem; height:2rem;
  background:var(--progress-color); clip-path:polygon(0 0,100% 0,0 100%);
}
.progress-planned { --progress-color:#8e98a9; }
.progress-active { --progress-color:#70b7ff; }
.progress-done { --progress-color:#78c79c; }
.progress-canceled { --progress-color:#d48b98; }
.project-site.theme-light .progress-planned { --progress-color:#68758a; }

.creative-image { margin:1.5rem 0 0; }
.creative-image img { display:block; width:100%; height:auto; }
.creative-image figcaption { color:var(--site-subtle); font-size:.8rem; margin-top:.6rem; }

/* Compact workspace rhythm */
:root { font-size:13px; }
body > header .top { min-height:3.25rem; }
.workspace-shell > .dashboard { grid-template-columns:208px minmax(0,1fr); min-height:calc(100vh - 3.25rem); }
.workspace-shell .sidebar { padding:.9rem .55rem; }
.sidebar-caption { margin:0 .55rem .65rem; font-size:.72rem; }
.sidebar nav { gap:1px; }
.sidebar a { padding:.38rem .6rem; border-radius:2px; font-size:.9rem; line-height:1.45; font-weight:450; }
.sidebar h2 { margin:1.15rem .6rem .25rem; font-size:.7rem; letter-spacing:.035em; }
.sidebar a:hover { background:#292b30; }
.sidebar a[aria-current] { background:#2c2f34; box-shadow:inset 2px 0 #969ca8; }
.sidebar .new-project { margin-top:.7rem; }
.sidebar .new-project a { background:transparent; color:#dde0e6; border:1px solid #454950; font-weight:500; }
.sidebar .new-project a:hover,.sidebar .new-project a[aria-current] { background:#2c2f34; color:#fff; }
.dashboard-panel { padding:clamp(.9rem,2.4vw,1.8rem); }
.library-heading { margin-bottom:1.15rem; }
.library-heading h1,.plan h1 { font-size:1.8rem; }
.library-filters { gap:.6rem; padding-bottom:.9rem; }
.project-row { padding:.65rem .4rem; gap:.8rem; }
.client-folder { padding:1rem; }
.client-folder > span:not(.hud-corners):not(.hud-reflection) { font-size:1.6rem; }
.plan-group { margin-top:1.5rem; }
.plan-group-heading { padding:.35rem 0 .55rem; }
.plan-row { padding:.6rem .4rem; gap:.75rem; }
.plan .plan-add-button { padding:.3rem .6rem; }
.plan-form { margin-top:1.5rem; padding-top:1rem; }
.project-actions a { min-height:2.2rem; padding:.35rem .7rem; }
.toolbar-links { gap:.7rem; }
.site-tools,.site-tabs,.is-editing .site-tools { padding:.55rem 1rem; gap:.5rem 1rem; }
.site-tabs a { padding:.25rem .1rem; }
.site-content,.site-page-title { margin:1rem; padding:1.15rem; }
.client-site-page .site-content,.client-site-page .site-page-title { margin-block:1rem; }
.site-hero > div { padding:clamp(1.5rem,4vw,3rem); }
.is-editing .site-hero > div { padding:1.5rem; }
.site-editor-actions { margin:1rem; padding-top:.75rem; gap:.5rem; }
.site-editor-actions a { padding:.35rem .65rem; }
.client-summary { margin-top:.85rem; padding:1rem; }
.milestones li { padding-block:.65rem; }
.deliverable-spec dl { margin-top:1.1rem; padding-top:1rem; gap:1rem 1.5rem; }
.daily-brief { margin:clamp(1rem,4vh,3rem) auto; }
.daily-brief section { margin-top:1.8rem; }
.brief-row { padding:.75rem 0; }
.card { padding:clamp(1rem,2.5vw,1.5rem); }
.site-create { padding:clamp(1.25rem,3vw,2.25rem); }
.fields { gap:.65rem; }
input,select { min-height:2.35rem; padding:.35rem .6rem; }
button { min-height:2.25rem; padding:.4rem .75rem; }
.plan-dialog { padding:1.25rem; }
@media(max-width:680px) { .workspace-shell > .dashboard { grid-template-columns:1fr; } }

.agent-toggle {
  position:fixed; right:1rem; bottom:1rem; z-index:30;
  background:#22262de8; color:#c6ccd7; border:1px solid #565d68;
  font:600 .7rem/1.3 "Consolas",monospace; letter-spacing:.1em;
  padding:.45rem .6rem; min-height:2rem; box-shadow:0 3px 12px #0004;
}
.agent-mode {
  --line:#61767d55; --ink:#e2ecee; --muted:#9fb3b9;
  background:#090f14; color:#e2ecee;
}
.agent-mode body {
  background:radial-gradient(ellipse at 75% 0%,#1e394344,transparent 65%),
    repeating-linear-gradient(0deg,transparent 0 47px,#8bced807 47px 48px),
    repeating-linear-gradient(90deg,transparent 0 47px,#8bced807 47px 48px),#090f14;
}
.agent-mode body::after {
  content:""; pointer-events:none; position:fixed; inset:0; z-index:25;
  background:repeating-linear-gradient(0deg,transparent 0 3px,#b5e4ed04 3px 4px);
}
.agent-mode body > header {
  background:#111f29dc; border-bottom:1px solid #ee9b42aa;
  backdrop-filter:blur(16px); box-shadow:0 1px 18px #ef9c3715;
}
.agent-mode .brand { color:#f4b568; letter-spacing:.07em; text-transform:uppercase; }
.agent-mode .brand span { background:#ffac4b; box-shadow:0 0 13px #ffae5270; border-radius:0; }
.agent-mode .workspace-shell .sidebar {
  background:#101d27c9; border-right:1px solid #6dabb745;
  backdrop-filter:blur(15px);
}
.agent-mode .sidebar a { color:#bdcdd1; border-radius:0; }
.agent-mode .sidebar a:hover { background:#6ac4d011; }
.agent-mode .sidebar a[aria-current] {
  background:linear-gradient(90deg,#ed9b3329,transparent);
  box-shadow:inset 2px 0 #ffab4b; color:#ffd6a2;
}
.agent-mode .sidebar h2,.agent-mode .sidebar-caption,.agent-mode .eyebrow {
  font-family:"Consolas",monospace; text-transform:uppercase; letter-spacing:.12em; color:#eda759;
}
.agent-mode .global-search input { background:#061018bb; border:1px solid #597a884f; color:#dbedf0; }
.agent-mode .global-search input:focus { border-color:#f7a64d; box-shadow:0 0 0 2px #f7a64d20; }
.agent-mode .card,.agent-mode .plan-dialog,.agent-mode .client-folder,
.agent-mode #search-results,.agent-mode .project-switcher nav {
  background:#14232de8; border:1px solid #729ba64a; border-radius:0;
  backdrop-filter:blur(18px); box-shadow:inset 0 1px #b3dce51a,0 12px 40px #0002;
}
.agent-mode .daily-brief,.agent-mode .library,.agent-mode .plan { border-top:2px solid #eea14f; padding-top:1.25rem; }
.agent-mode .plan-group-heading { border-color:#6b9ca34a; }
.agent-mode .plan-row:hover,.agent-mode .project-row:hover { background:#71bdce0c; }
.agent-mode .plan-row,.agent-mode .project-row,.agent-mode .brief-row { border-color:#71929d2c; }
.agent-mode button,.agent-mode .project-actions a.action-primary,
.agent-mode .home-actions a:first-child {
  background:#f2a34d; border-color:#f2a34d; color:#10171b; border-radius:0;
}
.agent-mode .project-actions a,.agent-mode .sidebar .new-project a,
.agent-mode .plan .plan-add-button {
  background:#24353d88; color:#f5be7f; border-color:#ab895950; border-radius:0;
}
.agent-mode input,.agent-mode textarea,.agent-mode select,
.agent-mode .plan textarea {
  background:#0a171fc9; color:#e2edf0; border-color:#5b7b8766; border-radius:0;
}
.agent-mode .project-site {
  --site-background:#0d1920d9; --site-surface:#172932d9;
  --site-text:#e2ecee; --site-subtle:#a5bcc2; --site-border:#638d984d;
  --brand-primary:#182a35; --brand-primary-text:#e5eef0;
  --brand-accent:#f2a34d; --brand-accent-text:#10171b;
  background:var(--site-background); color:var(--site-text);
}
.agent-mode .project-site .site-hero { background:linear-gradient(120deg,#172e3ce8,#0c1820e8); border-top:2px solid #eea14f; }
.agent-mode .site-content { backdrop-filter:blur(15px); border:1px solid #769aa64a; box-shadow:inset 3px 0 #f4ab4b44; }
.agent-mode .site-tabs a[aria-current] { color:#ffc987; border-color:#eea14f; }
.agent-mode .site-tools,.agent-mode .is-editing .site-tools { background:#14232bd9; border-color:#688d9840; }
.agent-mode .site-hero h1,.agent-mode .daily-brief h1 { text-shadow:0 0 24px #b9edff18; }
.agent-mode .plan-dialog::backdrop { background:#02070cbb; backdrop-filter:blur(9px); }
.agent-mode .agent-toggle {
  background:#17252de8; color:#ffc47c; border:1px solid #efab5c;
  box-shadow:0 0 20px #ef9b4220; border-radius:0;
}
.agent-mode .agent-toggle::before { content:"● "; color:#ffac4b; }
.agent-mode :focus-visible { outline-color:#f2a34d; }
@media print { .agent-toggle,body::after { display:none; } }

/* Consistent row feedback in both themes. */
.plan-row,.project-row,.brief-row,.milestones li,.client-folder {
  transition:background-color 120ms ease;
}
.plan-row:hover,.project-row:hover,.brief-row:hover,
.milestones li:hover,.client-folder:hover { background-color:#aabbd10d; }
.plan-row:focus-within,.project-row:focus-visible,.brief-row:focus-visible { background-color:#aabbd114; }
.project-site.theme-light .milestones li:hover { background-color:#152c4210; }
.agent-mode .plan-row:hover,.agent-mode .project-row:hover,
.agent-mode .brief-row:hover,.agent-mode .milestones li:hover,
.agent-mode .client-folder:hover { background-color:#f2a34d12; }
.agent-mode .plan-row:focus-within,.agent-mode .project-row:focus-visible,
.agent-mode .brief-row:focus-visible { background-color:#f2a34d1c; }
@media(prefers-reduced-motion:reduce) {
  .plan-row,.project-row,.brief-row,.milestones li,.client-folder { transition:none; }
}

.overview-categories:not([hidden]) { display:flex; flex-wrap:wrap; gap:.4rem; padding:1rem; border-bottom:1px solid var(--site-border); }
.overview-categories button { background:transparent; color:var(--site-subtle); border:1px solid transparent; border-radius:2px; min-height:2rem; padding:.35rem .75rem; }
.overview-categories button:hover { background:#8d9eaf12; color:var(--site-text); }
.overview-categories button[aria-selected=true] { color:var(--site-text); background:var(--site-surface); border-color:var(--site-border); box-shadow:inset 0 -2px var(--brand-accent); }
.client-site-page .overview-categories { max-width:72rem; margin-inline:auto; }
.agent-mode .overview-categories button[aria-selected=true] { color:#ffc987; box-shadow:inset 0 -2px #eea14f; }

.plan-tabs { display:flex; flex-wrap:wrap; gap:1.25rem; margin-top:1.5rem; border-bottom:1px solid var(--line); }
.plan-tabs a { display:flex; gap:.5rem; align-items:center; padding:.6rem .1rem; text-decoration:none; color:var(--muted); border-bottom:2px solid transparent; }
.plan-tabs a span { font-size:.75rem; background:#30343b; padding:.05rem .35rem; border-radius:2px; }
.plan-tabs a[aria-current] { color:var(--ink); border-bottom-color:#aeb9cb; }
.plan-tabs a:hover { color:var(--ink); }
.agent-mode .plan-tabs a[aria-current] { color:#ffc987; border-bottom-color:#eea14f; }

.inline-plan-row { grid-template-columns:minmax(15rem,2fr) minmax(9rem,1fr) minmax(12rem,1fr) minmax(10rem,1fr); align-items:start; }
.quick-edit { display:flex; align-items:center; gap:.3rem; flex-wrap:wrap; min-width:0; }
.quick-edit input,.quick-edit select { min-width:0; max-width:100%; font-size:.85rem; background:transparent; border-color:transparent; }
.quick-edit input:hover,.quick-edit select:hover { border-color:#565d68; }
.quick-edit input[name=value]:not([type=date]) { width:100%; }
.quick-save { font-size:.7rem; min-height:1.5rem; padding:.1rem .35rem; opacity:.65; }
.inline-name { display:flex; gap:.4rem; align-items:baseline; }
.inline-name .quick-edit { flex:1; }
.inline-name .item-edit { font-size:.75rem; }
@media(max-width:900px) { .inline-plan-row { grid-template-columns:1fr 1fr; } }

.inline-plan-row { cursor:pointer; }
.inline-plan-row .quick-edit { flex-wrap:nowrap; }
.inline-name { align-items:center; min-width:0; }
.inline-name .item-title { flex:1; min-width:0; }
.inline-name .item-title strong { overflow-wrap:anywhere; }
.title-pencil { min-height:1.6rem; padding:.15rem .3rem; background:transparent; color:#aeb6c3; border:0; font-size:1.1rem; line-height:1; }
.title-pencil:hover { color:#fff; background:#ffffff10; }
.inline-name .quick-edit[hidden],.inline-name .item-title[hidden],.title-pencil[hidden] { display:none; }
.inline-name .quick-edit { width:100%; }
.inline-name input { border-color:#667183; background:#171a1f; }
.agent-mode .title-pencil { background:transparent; color:#edb66f; }

/* Keep the rename affordance next to the title it controls. */
.inline-name { gap:.35rem; }
.inline-name .item-title { flex:0 1 auto; }
.inline-name .title-pencil { flex:0 0 auto; opacity:0; pointer-events:none; transition:opacity 100ms ease; }
.inline-name:hover .title-pencil,
.inline-name:focus-within .title-pencil { opacity:1; pointer-events:auto; }
@media(hover:none) { .inline-name .title-pencil { opacity:1; pointer-events:auto; } }
@media(prefers-reduced-motion:reduce) { .inline-name .title-pencil { transition:none; } }

.inline-plan-row:hover .title-pencil,
.inline-plan-row:focus-within .title-pencil { opacity:1; pointer-events:auto; }

.project-next { display:grid; grid-template-columns:1fr 1fr; margin-top:1.25rem; border-block:1px solid var(--line); }
.project-next-item { display:block; padding:1rem 1.25rem 1rem 0; min-width:0; text-decoration:none; color:var(--ink); }
.project-next-item + .project-next-item { border-left:1px solid var(--line); padding-left:1.25rem; }
.project-next a:hover { background:#aabbd10a; }
.next-label { font-size:.72rem; text-transform:uppercase; letter-spacing:.065em; color:var(--muted); margin-bottom:.45rem; }
.project-next-item strong { display:block; font-size:1rem; font-weight:600; overflow-wrap:anywhere; }
.next-meta { display:flex; flex-wrap:wrap; align-items:center; gap:.7rem; margin-top:.55rem; }
.next-meta time,.next-empty { font-size:.85rem; color:var(--muted); }
.agent-mode .project-next a:hover { background:#f2a34d0c; }
@media(max-width:600px) {
  .project-next { grid-template-columns:1fr; }
  .project-next-item + .project-next-item { border-left:0; border-top:1px solid var(--line); padding-left:0; }
}

.project-next { gap:.75rem; border:0; }
.project-next-item {
  padding:1.1rem 1.2rem; background:linear-gradient(110deg,#2b385150,#202225);
  border:1px solid #657fa64d; border-top:2px solid #9ebaff;
}
.project-next-item + .project-next-item {
  padding:1.1rem 1.2rem; border:1px solid #9d80574d; border-top:2px solid #dbb483;
  background:linear-gradient(110deg,#45372555,#202225);
}
.project-next-item .next-label { color:#b6caff; font-weight:650; }
.project-next-item + .project-next-item .next-label { color:#e5c398; }
.project-next-item strong { font-size:1.12rem; }
.project-next a:hover { background:linear-gradient(110deg,#34476580,#252830); border-color:#9ebaff; }
.project-next a + a:hover { background:linear-gradient(110deg,#51412d80,#252830); border-color:#dbb483; }
.plan-tabs a { --tab-color:#c1c9d6; padding:.65rem .5rem; }
.plan-tabs a[href*="tab=deliverable"] { --tab-color:#9ebaff; }
.plan-tabs a[href*="tab=milestone"] { --tab-color:#dbb483; }
.plan-tabs a[href*="tab=task"] { --tab-color:#bda9e8; }
.plan-tabs a:hover,.plan-tabs a[aria-current] { color:var(--tab-color); }
.plan-tabs a[aria-current] { border-bottom-color:var(--tab-color); background:color-mix(in srgb,var(--tab-color) 9%,transparent); }
.plan-tabs a span { color:var(--tab-color); background:color-mix(in srgb,var(--tab-color) 12%,transparent); }
.agent-mode .project-next-item { background:linear-gradient(110deg,#24415a66,#132029cc); }
.agent-mode .project-next-item + .project-next-item { background:linear-gradient(110deg,#563a2066,#132029cc); }
.agent-mode .plan-tabs a[aria-current] { color:var(--tab-color); border-bottom-color:var(--tab-color); }
@media(max-width:600px) { .project-next-item + .project-next-item { padding:1.1rem 1.2rem; } }

.site-editor-dialog { --ink:#e1e3e6; --muted:#a6a9af; --line:#34363a; color-scheme:dark; }
.project-site .site-editor-dialog input,
.project-site .site-editor-dialog select,
.project-site .site-editor-dialog textarea { background:#181a1d; color:#e7e8ea; border:1px solid #4b4e55; }
.project-site .site-editor-dialog button { background:#e5e7eb; color:#202124; border-color:#e5e7eb; }
.project-site .site-editor-dialog p { color:#a6a9af; }
.project-site .site-editor-dialog a { color:#e1e3e6; }

.section-destination { margin-bottom:1rem; }
.site-editor-dialog:has([data-section-wizard]) { box-shadow:-5px -5px 0 #30343d,-6px -6px 0 #50545d,-10px -10px 0 #252830,0 20px 80px #0007; }
.wizard-fields { display:grid; gap:.75rem; }
.wizard-placement[hidden],.wizard-fields[hidden],.wizard-back[hidden] { display:none; }
.placement-list { list-style:none; padding:0; margin:1rem 0; display:grid; gap:.45rem; }
.placement-list li { display:flex; align-items:center; gap:.6rem; padding:.8rem; border:1px solid #454b56; background:#1a1e24; }
.placement-list .new-section-position { border-color:#9ebaff; background:#26334d; cursor:grab; }
.placement-list strong { flex:1; overflow-wrap:anywhere; }
.section-grip { color:#a0aaba; font-size:1.2rem; }
.placement-list button { padding:.2rem .5rem; min-height:1.8rem; }
.placement-list .dragging { opacity:.6; }

.project-site:has(.floating-editor) { overflow:visible; }
.floating-editor,.is-editing .floating-editor { position:sticky; top:0; z-index:15; background:#202329df; backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); border-bottom:1px solid #565e6a66; }
.floating-editor .site-editor-actions { margin:0; padding:0; border:0; width:100%; }
.media-workspace { max-width:1200px; margin:auto; padding:1.5rem; }
.media-workspace h1 { font-size:2.5rem; }
.media-workspace a { color:var(--ink); }
.media-nav,.version-links,.review-rounds { display:flex; flex-wrap:wrap; gap:1rem; margin-bottom:1.5rem; }
.media-library { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:1rem; margin-block:1.5rem; }
.media-card { text-decoration:none; background:#22262b; padding:.7rem; border:1px solid var(--line); }
.media-preview { display:block; width:100%; height:auto; }
.media-card .media-preview { aspect-ratio:16/10; object-fit:cover; margin-bottom:.7rem; }
.media-form,.media-detail { margin-top:2rem; padding-top:1.5rem; border-top:1px solid var(--line); }
.media-workspace textarea { font:inherit; background:#181a1d; color:inherit; padding:.6rem; border:1px solid #4b4e55; }
.review-grid { display:grid; gap:1rem; margin-block:1.5rem; align-items:start; }
.review-grid.two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.review-grid.one { grid-template-columns:1fr; }
.review-grid figure { margin:0; }
.review-image { min-width:0; padding:1rem; border:1px solid var(--line); background:#202225; }
.review-image h3 { margin-top:.8rem; }
.review-comments > div { margin-top:1rem; border-top:1px solid var(--line); padding-top:.75rem; }
.review-page-link { color:#efc48e !important; border:1px solid #a587514f; padding:.3rem .7rem !important; }
@media(max-width:680px) { .review-grid.two { grid-template-columns:1fr; } }

.feedback-view { max-width:1600px; margin:auto; padding:1rem 1.5rem; }
.feedback-breadcrumb { display:flex; flex-wrap:wrap; gap:.5rem; color:var(--muted); font-size:.8rem; padding-bottom:1rem; border-bottom:1px solid var(--line); }
.feedback-view a { color:var(--ink); }
.feedback-header { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 0; background:transparent; border:0; }
.feedback-header h1 { font-size:1.6rem; margin:0; letter-spacing:-.025em; }
.feedback-layout { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:1.25rem; align-items:start; }
.feedback-panel { padding:1rem; border-left:1px solid var(--line); max-height:calc(100vh - 13rem); overflow:auto; }
.feedback-panel h2 { font-size:1rem; margin-bottom:.75rem; }
.feedback-thread article { padding:1rem 0; border-bottom:1px solid var(--line); }
.feedback-thread strong { display:block; font-size:.8rem; margin-top:.4rem; }
.feedback-panel textarea { width:100%; font:inherit; padding:.5rem; background:#181a1d; color:inherit; border:1px solid #4b4e55; }
.annotation-tools { display:flex; gap:.4rem; margin-bottom:.6rem; }
.annotation-tools button { background:#2d3139; color:#dce2ed; }
.annotation-tools button[aria-pressed=true] { color:#16202a; background:#edba73; }
.annotation-image { position:relative; background:#101113; }
.annotation-image canvas { position:absolute; inset:0; width:100%; height:100%; touch-action:none; cursor:crosshair; }
.version-picker { position:relative; min-width:4rem; }
.version-picker summary { font-size:.9rem; font-weight:700; padding:.45rem .6rem; background:#323b4a; color:#ecf0f8; }
.version-picker a { display:block; padding:.6rem; background:#272d36; color:#eef1f7; }
.version-picker[open] { z-index:3; }
.give-feedback { display:inline-block; text-decoration:none; padding:.55rem .9rem; margin-top:1rem; background:#dce3ed; color:#17212f !important; font-weight:600; }
.review-image .version-picker { margin-bottom:.7rem; width:fit-content; }
.new-review-link { display:block; width:fit-content; margin-bottom:1rem; }
.show-annotation { font-size:.75rem; min-height:1.8rem; padding:.2rem .4rem; background:#303946; color:#d8e0ed; }
@media(max-width:850px) { .feedback-layout { grid-template-columns:1fr; } .feedback-panel { max-height:none; border-left:0; border-top:1px solid var(--line); } }

.feedback-layout { grid-template-columns:minmax(0,1fr) 370px; gap:0; }
.feedback-stage { padding-right:1.25rem; }
.feedback-panel { padding:0; background:#1b1d21; border:1px solid #393d45; }
.feedback-panel-heading { display:flex; align-items:center; gap:.6rem; padding:1rem; border-bottom:1px solid #393d45; }
.feedback-panel-heading h2 { margin:0; font-size:1rem; }
.feedback-panel-heading > span { background:#343942; padding:.1rem .4rem; font-size:.75rem; }
.feedback-panel-heading small { margin-left:auto; color:#afb8c7; }
.review-instructions { padding:.8rem 1rem; border-bottom:1px solid #393d45; }
.review-instructions summary { font-size:.85rem; color:#bdc5d1; }
.review-instructions p { font-size:.85rem; line-height:1.6; padding-top:.6rem; }
.feedback-thread .comment-card { padding:1rem; margin:0; border-bottom:1px solid #393d45; background:#22252a; }
.comment-heading { display:flex; align-items:center; gap:.65rem; }
.comment-avatar { display:grid; place-items:center; width:2rem; height:2rem; background:#3b4558; color:#dce5f4; font-weight:600; flex:none; border-radius:50%; }
.feedback-thread .comment-heading strong { margin:0; font-size:.8rem; overflow-wrap:anywhere; }
.comment-heading time { display:block; color:#a3adbc; font-size:.72rem; margin-top:.2rem; }
.comment-number { margin-left:auto; color:#818c9f; font-size:.75rem; }
.comment-body { white-space:pre-wrap; margin:.9rem 0; color:#e0e4ec; line-height:1.6; overflow-wrap:anywhere; }
.comment-footer { display:flex; align-items:center; justify-content:space-between; gap:.5rem; }
.comment-actions { display:flex; align-items:center; gap:.75rem; }
.comment-actions a,.comment-plain { font-size:.75rem; color:#b1bbc9; }
.comment-actions form { margin:0; }
.comment-actions .comment-delete { background:transparent; color:#d0a6ad; border:0; padding:0; font-size:.75rem; min-height:1.8rem; font-weight:400; }
.feedback-composer { padding:1rem; background:#181a1e; border-top:2px solid #424956; }
.feedback-composer h3 { font-size:.95rem; }
.feedback-composer > p { font-size:.8rem; margin-top:.4rem; }
.feedback-composer textarea { min-height:7rem; resize:vertical; }
.empty-comments { padding:1.2rem 1rem; font-size:.85rem; }
@media(max-width:850px) { .feedback-layout { grid-template-columns:1fr; gap:1rem; } .feedback-stage { padding-right:0; } }

.feedback-panel:has(form input[value="review-comment-edit"]) .feedback-composer { display:none; }
.comment-card:has(form input[value="review-comment-edit"]) { box-shadow:inset 3px 0 #91b9ff; }

.comment-replies { margin-top:.75rem; padding-left:.8rem; border-left:2px solid #4b5667; }
.feedback-thread .comment-replies .comment-reply { border:0; border-top:1px solid #393d4555; padding:.75rem 0; margin:0; }
.reply-heading strong { font-size:.78rem; color:#c9d6ea; }
.reply-heading time { display:block; color:#a3adbc; font-size:.72rem; margin-top:.2rem; }
.comment-reply .comment-body { margin:.5rem 0 0; font-size:.9rem; }
.reply-composer { margin-top:.75rem; }
.reply-composer summary { font-size:.78rem; color:#b9c9df; }
.reply-composer textarea { min-height:4rem; }

/* Keep each comment and its replies together as one visual thread. */
.feedback-thread > .comment-card { background:#22252a; }
.feedback-thread > .comment-card:nth-of-type(even) { background:#191c21; }
.feedback-thread .comment-replies,
.feedback-thread .comment-replies .comment-reply { background:transparent; }
.agent-mode .feedback-thread > .comment-card { background:#182932; }
.agent-mode .feedback-thread > .comment-card:nth-of-type(even) { background:#101e27; }

.notification-menu { position:relative; }
.notification-menu > summary { list-style:none; display:flex; align-items:center; gap:.3rem; cursor:pointer; padding:.4rem; color:#ccd2dd; }
.notification-menu > summary::-webkit-details-marker { display:none; }
.notification-menu [data-notification-count] { background:#3c4658; color:#e4edfc; padding:.05rem .3rem; font-size:.7rem; border-radius:3px; }
.notification-panel { position:absolute; right:0; top:calc(100% + .6rem); width:min(380px,90vw); max-height:70vh; overflow:auto; z-index:40; background:#202329; border:1px solid #484e59; box-shadow:0 15px 40px #0007; }
.notification-panel header { display:flex; justify-content:space-between; padding:1rem; border-bottom:1px solid #424853; background:#252931; }
.notification-panel header span { font-size:.75rem; color:#aab3c3; }
.notification-panel > a { display:block; padding:.9rem 1rem; text-decoration:none; color:#e2e7ef; border-bottom:1px solid #3a404b; }
.notification-panel > a:hover { background:#303744; }
.notification-context { display:flex; justify-content:space-between; gap:1rem; }
.notification-context span { background:#3d4960; padding:0 .35rem; font-size:.75rem; }
.notification-panel small,.notification-panel time { color:#a8b4c7; font-size:.75rem; }
.notification-panel .notification-excerpt { font-size:.85rem; color:#c2cbd9; margin:.45rem 0; }
.notification-empty { padding:1rem; }
.notification-panel a.is-read { opacity:.65; }
.comment-card:target { outline:1px solid #d0ad76; outline-offset:-1px; }

.notification-menu [data-notification-count] { background:#d43c47; color:#fff; font-weight:700; border-radius:9px; min-width:1.3rem; text-align:center; }
.notification-menu > summary { position:relative; }
.notification-panel { width:min(420px,92vw); border-radius:5px; padding-bottom:.35rem; background:#181b20; }
.notification-panel header { position:sticky; top:0; z-index:1; background:#252a32; padding:1rem; }
.notification-panel > a { margin:.5rem; border:1px solid #414752; background:#24282f; padding:.9rem; border-radius:3px; }
.notification-panel > a:nth-of-type(even) { background:#20242b; }
.notification-panel > a:hover { background:#303744; border-color:#747f91; }
.notification-context { padding-bottom:.5rem; margin-bottom:.45rem; border-bottom:1px solid #46506166; align-items:center; }
.notification-context strong { font-size:.9rem; color:#f0f2f7; }
.notification-context span { color:#dce6fb; background:#3b4760; font-weight:700; border-radius:2px; padding:.12rem .4rem; }
.notification-context + p { color:#d8dfe9; font-size:.9rem; font-weight:650; }
.notification-panel small { display:block; margin-top:.2rem; color:#a9b7cd; }
.notification-panel .notification-excerpt { padding:.55rem .65rem; margin:.65rem 0; background:#151a2199; border-left:2px solid #7185a4; color:#c4cedd; line-height:1.5; }
.notification-panel time { display:block; text-align:right; color:#929eaf; font-size:.7rem; }
.notification-panel a.is-read { opacity:.8; }
.notification-panel a:not(.is-read) .notification-context strong::before { content:""; display:inline-block; width:6px; height:6px; background:#ef5961; border-radius:50%; margin-right:.45rem; vertical-align:middle; }
.version-strip { display:flex; flex-wrap:wrap; gap:.5rem; }
.version-strip a { display:grid; gap:.2rem; padding:.5rem .7rem; background:#252b35; border:1px solid #48515f; text-decoration:none; color:#c1cbdb; min-width:9rem; }
.version-strip a[aria-current] { border-color:#a7bbdc; background:#33425a; color:#f2f5fb; }
.version-strip a:hover { border-color:#ced9ec; }
.version-strip strong { font-size:.9rem; }
.version-strip time { font-size:.72rem; color:#b5c1d3; white-space:nowrap; }
.review-image .version-strip { margin-bottom:.8rem; }
.feedback-header { align-items:flex-start; flex-wrap:wrap; }

.back-review { display:inline-block; color:#d9e3f2; text-decoration:none; margin:.25rem 0 1rem; padding:.4rem .65rem; border:1px solid #414c5e; }
.back-review:hover { background:#2c3542; }
.viewer-round-context { margin-top:1rem; color:#a6b7ce; font-size:.8rem; }
.review-rounds { align-items:center; border-bottom:1px solid var(--line); padding-bottom:.9rem; }
.review-rounds > span { color:var(--muted); font-size:.75rem; }
.review-rounds a { text-decoration:none; padding:.4rem .65rem; border:1px solid transparent; }
.review-rounds a[aria-current] { background:#303b4d; border-color:#62758f; color:#eaf0f9; }
.review-card-meta { display:flex; justify-content:space-between; align-items:center; gap:.6rem; margin-bottom:.7rem; }
.review-card-meta > span { background:#33425a; color:#eaf0f9; font-weight:700; padding:.2rem .5rem; }
.review-card-meta time { font-size:.72rem; color:#a9b5c7; }
.review-image:target { outline:1px solid #9cb2d4; outline-offset:3px; }
.feedback-panel .comment-card:target { scroll-margin-top:1rem; }

.asset-version-header { display:block; padding:.75rem 0 1rem; }
.asset-title-version { color:#a8bbd5; font-weight:500; white-space:nowrap; }
.asset-uploaded { font-size:.8rem; color:#a7b2c4; margin:.5rem 0 .85rem; }
.asset-version-header .version-strip { display:flex; flex-wrap:nowrap; gap:.35rem; max-width:100%; overflow-x:auto; padding-bottom:.35rem; }
.asset-version-header .version-strip a { flex:0 0 auto; min-width:3rem; text-align:center; padding:.4rem .65rem; }
.asset-version-header .version-strip a[aria-current] { border-color:#c4d5ef; box-shadow:inset 0 -2px #a9bfdf; }

.media-project-context { color:var(--muted); font-size:.85rem; margin:.75rem 0 .4rem; }
.media-library-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1rem; }
.upload-asset-button { display:inline-block; padding:.5rem .8rem; background:#dce3ed; color:#1a2330 !important; border:1px solid #dce3ed; text-decoration:none; font-weight:600; }
.media-library-heading h1 { margin:.25rem 0 .8rem; }

.back-media { display:inline-block; margin:.5rem 0 1rem; text-decoration:none; color:var(--ink); }
.back-media:hover { text-decoration:underline; }
.asset-detail-page { margin-top:.5rem; padding-top:1rem; }

.asset-upload-footer { padding-top:1rem; border-top:1px solid var(--line); margin-top:1rem; }
.note-controls-ready:not(.note-active) .annotation-tools,
.note-controls-ready:not(.note-active) .annotation-guidance,
.note-controls-ready:not(.note-active) .review-note-body { display:none; }
.note-controls-ready:not(.note-active) .annotation-image canvas { pointer-events:none; }
.note-controls-ready.note-active .add-review-note { display:none; }
.cancel-review-note { background:transparent; color:#b7c3d5; border:1px solid #4b5668; margin-top:.6rem; }

.template-gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.6rem; margin-bottom:1rem; }
.layout-template { display:grid; align-content:start; gap:.45rem; padding:.65rem; border:1px solid #4b5566; background:#252b34; text-decoration:none; }
.layout-template:hover { border-color:#b0c2dc; }
.layout-template strong { font-size:.85rem; }
.layout-template small { font-size:.75rem; color:#aeb9ca; line-height:1.4; }
.layout-thumbnail { display:grid; gap:.3rem; padding:.45rem; height:65px; background:#141a23; border:1px solid #53617a; }
.layout-thumbnail i { background:linear-gradient(145deg,#526680,#263344); display:grid; place-items:center; color:#c6d5eb; font-size:1.5rem; font-style:normal; }
.layout-two { grid-template-columns:1fr 1fr; }
.upcoming-template { opacity:.55; }
.template-note { font-size:.8rem; margin-bottom:1rem; }
.review-layout-picker { display:grid; grid-template-columns:1fr 1fr; gap:.6rem; padding:1rem; border:1px solid var(--line); }
.review-layout-picker label { display:grid; gap:.5rem; }
.review-layout-picker input { width:auto; min-height:1rem; justify-self:start; }
@media(max-width:500px) { .template-gallery { grid-template-columns:1fr; } }

.overview-banner { width:min(100% - 2rem,70rem); margin:1rem auto; height:200px; overflow:hidden; box-shadow:0 8px 22px #0004; }
.overview-banner img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
@media(max-width:600px) { .overview-banner { height:150px; } }

.client-site-page .project-site > .page-content > .media-workspace { width:min(100% - 2rem,70rem); max-width:70rem; margin-inline:auto; padding:1.15rem; box-sizing:border-box; }
.client-site-page .project-site .site-tools { max-width:none; width:100%; }
.client-site-page .project-site .site-editor-actions { max-width:none; }

.content-toolbox { position:relative; }
.content-toolbox > summary { padding:.4rem .65rem; border:1px solid #5e6879; font-size:.85rem; }
.content-toolbox-panel { position:absolute; top:calc(100% + .5rem); left:0; width:260px; max-height:70vh; overflow:auto; background:#22262e; color:#e1e7f0; border:1px solid #566174; padding:1rem; box-shadow:0 12px 35px #0006; z-index:25; }
.content-toolbox-panel h3 { font-size:1rem; }
.content-toolbox-panel p { font-size:.8rem; color:#aebacf; margin:.6rem 0; }
.content-toolbox-panel a { display:block; padding:.65rem .5rem; border-bottom:1px solid #454e5c; color:#e1e7f0; text-decoration:none; font-size:.85rem; cursor:grab; }
.content-toolbox-panel a:hover { background:#354052; }
.page-content.template-drop-active { outline:2px dashed #9bb6dc; outline-offset:-3px; min-height:200px; }

.project-site .site-tabs { background:var(--site-surface); padding:.8rem 1.2rem; gap:1.4rem; border-top:1px solid var(--site-border); border-bottom:2px solid var(--site-border); }
.project-site .site-tabs a { font-size:1.05rem; font-weight:650; padding:.5rem .1rem; }
.project-site .overview-categories { border:0; padding:.65rem 1.15rem; gap:.35rem; }
.project-site .overview-categories button { font-size:.8rem; font-weight:450; min-height:1.8rem; padding:.25rem .6rem; }
.project-site .overview-categories button[aria-selected=true] { box-shadow:none; background:#7c8c9d18; border-color:var(--site-border); }
.project-site .site-editor-actions a { font-size:.8rem; padding:.3rem .6rem; }
.basic-template-picker { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; margin-bottom:1rem; }
.basic-template-picker label { display:grid; gap:.35rem; border:1px solid #414c5e; padding:.6rem; cursor:pointer; }
.basic-template-picker label:has(input:checked) { border-color:#9ab4d9; background:#2b384c; }
.basic-template-picker input { min-height:1rem; justify-self:start; }
.basic-template-preview { display:grid; place-content:center; height:65px; background:#131b27; color:#a7bbd7; font-size:1.1rem; line-height:1.1; }
.basic-template-picker strong { font-size:.85rem; }
.section-media-grid { display:grid; gap:1rem; margin-top:1rem; }
.section-media-grid.two { grid-template-columns:1fr 1fr; }
.section-media-grid img { width:100%; height:auto; display:block; }
[hidden][data-section-media],[hidden][data-section-heading],[hidden][data-section-text],[hidden][data-section-media-two] { display:none; }
@media(max-width:600px) { .section-media-grid.two { grid-template-columns:1fr; } }

.plan .library-heading > div:first-child { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem 1.25rem; }
.plan .library-heading .eyebrow { width:100%; }
.client-site-primary { display:inline-flex; align-items:center; padding:.65rem 1rem; background:#e5e7eb; color:#202124 !important; font-weight:650; text-decoration:none; border:1px solid #e5e7eb; }
.client-site-primary:hover { background:white; }
.sidebar { display:flex; flex-direction:column; }
.sidebar nav { align-content:start; }
.sidebar-account { margin-top:auto; padding-top:2rem; border-top:1px solid #34363a; }
.recent-project { padding-block:.65rem !important; border-bottom:1px solid #373b424f; }
.recent-project strong { display:block; font-size:.85rem; font-weight:550; }
.recent-project small { display:block; color:#969fad; font-size:.75rem; margin-top:.15rem; }
.client-workspace,.account-overview { max-width:1050px; margin:auto; }
.client-workspace h1,.account-overview h1 { font-size:2rem; }
.client-workspace section { margin-top:2rem; }
.client-workspace h2 { font-size:1rem; margin-bottom:.75rem; }
.client-project-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem .3rem; border-bottom:1px solid var(--line); }
.client-project-row a { color:var(--ink); text-decoration:none; }
.client-project-row small { display:block; color:var(--muted); margin-top:.25rem; }
.client-site-link { border:1px solid #525c6b; padding:.4rem .65rem; font-size:.85rem; }
.workspace-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; margin-block:2rem; border-block:1px solid var(--line); padding:1.5rem 0; }
.workspace-stats strong { display:block; font-size:2rem; }
.workspace-stats span { color:var(--muted); }
.project-lifecycle { display:flex; justify-content:flex-end; margin-bottom:1rem; }
.project-lifecycle button { background:transparent; color:var(--muted); font-size:.75rem; border:1px solid var(--line); min-height:1.8rem; }
.archive-notice { padding:.65rem; background:#37333e; margin-bottom:.5rem; }
@media(max-width:680px) { .workspace-stats { grid-template-columns:1fr 1fr; } .sidebar-account { padding-top:.7rem; } }

.client-create-primary { display:inline-flex; align-items:center; padding:.65rem 1.1rem; background:#e5e7eb; color:#202124 !important; border:1px solid #e5e7eb; font-weight:650; text-decoration:none; }
.client-create-primary:hover { background:#fff; }
.agent-mode .client-create-primary { background:#f2a34d; border-color:#f2a34d; color:#10171b !important; }

/* HUD glass and reflected interface layers */
.agent-mode body {
  background:
    radial-gradient(ellipse at 80% 8%,#36637a28,transparent 45%),
    radial-gradient(ellipse at 5% 85%,#ab632115,transparent 50%),
    repeating-linear-gradient(0deg,transparent 0 47px,#8bced807 47px 48px),
    repeating-linear-gradient(90deg,transparent 0 47px,#8bced807 47px 48px),#080f15;
}
.agent-mode .card,
.agent-mode .client-folder,
.agent-mode .review-image,
.agent-mode .site-content,
.agent-mode .project-next-item,
.agent-mode .comment-card,
.agent-mode .media-card,
.agent-mode .notification-panel,
.agent-mode .plan-dialog {
  position:relative;
  isolation:isolate;
  background-color:#12222b9c;
  background-image:
    linear-gradient(118deg,#d3f2ff0b 0%,transparent 34%,#c4e7ff04 68%,transparent 80%),
    linear-gradient(180deg,#a6d4e50b,transparent 35%,#030b1240);
  backdrop-filter:blur(22px) saturate(125%);
  -webkit-backdrop-filter:blur(22px) saturate(125%);
  border-color:#a2c6d12e;
  box-shadow:
    inset 0 1px 0 #d7f5ff20,
    inset 1px 0 0 #c9edff0c,
    inset 0 -1px 0 #0008,
    0 10px 30px #0003;
}
.agent-mode .feedback-thread > .comment-card:nth-of-type(even) { background-color:#091720ad; }
.agent-mode .sidebar,.agent-mode body > header,.agent-mode .floating-editor {
  background-color:#10212ccc;
  background-image:linear-gradient(112deg,#c8eeff09,transparent 40%,#8cb5cc05 70%,transparent);
  backdrop-filter:blur(24px) saturate(130%);
  -webkit-backdrop-filter:blur(24px) saturate(130%);
  box-shadow:inset 0 1px #c6edff16,0 8px 25px #0002;
}
/* Offset reflection suggests a second surface behind the active glass. */
.agent-mode .hud-reflection {
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  overflow:hidden;
  opacity:.24;
  background:
    linear-gradient(105deg,transparent 0 23%,#c8eaff09 24%,transparent 25% 72%,#b5e6ff06 73%,transparent 75%),
    repeating-linear-gradient(0deg,transparent 0 19px,#9ac8dd05 19px 20px);
}
.agent-mode .hud-reflection::before {
  content:attr(data-reflection);
  position:absolute; top:12px; left:18px; right:10px;
  color:#c5edff;
  font:500 11px/1.4 "Consolas",monospace;
  letter-spacing:.12em;
  opacity:.17;
  transform:translate(7px,5px) skewX(-7deg);
  filter:blur(.7px);
  white-space:nowrap;
  overflow:hidden;
}
.hud-corners { display:none; }
.agent-mode .hud-corners {
  display:block;
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:2;
  opacity:0;
  transform:scale(1.035);
  transition:transform 135ms cubic-bezier(.2,.7,.2,1),opacity 135ms ease-out;
}
.agent-mode .hud-corners i { position:absolute; width:11px; height:11px; border:0 solid #ffc079; filter:drop-shadow(0 0 3px #f6a64d45); }
.agent-mode .hud-corners i:nth-child(1) { top:0; left:0; border-top-width:1px; border-left-width:1px; }
.agent-mode .hud-corners i:nth-child(2) { top:0; right:0; border-top-width:1px; border-right-width:1px; }
.agent-mode .hud-corners i:nth-child(3) { bottom:0; left:0; border-bottom-width:1px; border-left-width:1px; }
.agent-mode .hud-corners i:nth-child(4) { bottom:0; right:0; border-bottom-width:1px; border-right-width:1px; }
.agent-mode .hud-reactive { position:relative; isolation:isolate; }
.agent-mode .hud-reactive:hover > .hud-corners,
.agent-mode .hud-reactive:focus-visible > .hud-corners {
  opacity:.95;
  transform:scale(1);
}
.agent-mode .hud-reactive {
  transition:background-color 135ms ease,border-color 135ms ease,box-shadow 135ms ease;
}
.agent-mode .hud-reactive:hover {
  border-color:#edb46f70;
  box-shadow:inset 0 1px #d8f3ff22,inset 0 0 18px #a2d6ed05,0 0 15px #eaa05209;
}
.agent-mode .plan-row:hover,.agent-mode .project-row:hover,.agent-mode .brief-row:hover,
.agent-mode .sidebar a:hover {
  background-image:linear-gradient(100deg,#f9ac4c14,#bbecff04 55%,transparent);
}
.agent-mode .plan-tabs a,.agent-mode .site-tabs a,.agent-mode button,.agent-mode .project-actions a {
  position:relative;
  isolation:isolate;
}
.agent-mode .agent-toggle {
  background:linear-gradient(125deg,#3452648f,#10212cdd);
  backdrop-filter:blur(16px);
  box-shadow:inset 0 1px #def5ff30,0 0 18px #f6aa3515;
}
@media(prefers-reduced-motion:reduce) {
  .agent-mode .hud-corners { transition:none; transform:none; }
  .agent-mode .hud-reactive { transition:none; }
}

.hud-reflection { display:none; }
.agent-mode .hud-reflection { display:block; }

/* HUD text clears the animated corner marks. */
.agent-mode .sidebar a.hud-reactive { padding-left:.95rem; padding-right:.95rem; }
.agent-mode .plan-row.hud-reactive,
.agent-mode .project-row.hud-reactive { padding-left:.9rem; padding-right:.9rem; }
.agent-mode .brief-row.hud-reactive { padding-left:.85rem; padding-right:.85rem; }
.agent-mode .plan-tabs a.hud-reactive,
.agent-mode .site-tabs a.hud-reactive { padding-left:.85rem; padding-right:.85rem; }
.agent-mode .project-actions a.hud-reactive { padding-left:1rem; padding-right:1rem; }
.agent-mode .client-folder.hud-reactive,
.agent-mode .media-card.hud-reactive { padding:1.2rem; }
.agent-mode .comment-card.hud-reactive { padding:1.2rem; }

.client-project-row { cursor:pointer; position:relative; }
.client-project-main { flex:1; align-self:stretch; display:flex; flex-direction:column; justify-content:center; }
.client-project-row:hover { background:#aabbd10d; }
.agent-mode .client-project-row:hover { background:#f2a34d12; }

.back-client { display:inline-block; margin-bottom:1rem; color:var(--muted); font-size:.85rem; text-decoration:none; }
.back-client:hover { color:var(--ink); text-decoration:underline; }

.home-dashboard { max-width:1050px; margin:clamp(1rem,4vh,3rem) auto; }
.home-heading { background:none; border:0; margin-bottom:2.5rem; }
.home-heading h1 { font-size:clamp(2rem,4vw,3rem); margin:.5rem 0 .8rem; }
.home-pin-section,.home-dates { margin-top:2rem; }
.home-section-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:.9rem; }
.home-section-heading h2 { font-size:1rem; }
.home-section-heading a { font-size:.8rem; color:var(--muted); }
.home-pins { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:.65rem; }
.home-pin { display:grid; gap:.4rem; padding:1.15rem; border:1px solid #3b414c; background:#202329; color:var(--ink); text-decoration:none; }
.home-pin:hover { background:#292e37; border-color:#657083; }
.home-pin-kind,.home-pin small { font-size:.78rem; color:var(--muted); }
.home-pin strong { font-size:1rem; }
.home-empty { padding:1.25rem 0; border-top:1px solid var(--line); font-size:.9rem; color:var(--muted); }
.home-preferences { display:flex; align-items:end; flex-wrap:wrap; gap:1rem; padding:.8rem 0 1.2rem; border-bottom:1px solid var(--line); }
.home-checkbox { display:flex; align-items:center; gap:.5rem; align-self:center; }
.home-checkbox input { min-height:auto; }
.date-kind { display:block; color:#a4b9d9; font-size:.72rem; margin-bottom:.2rem; }
.pin-form { display:inline-block; }
.pin-form button { background:transparent; border:1px solid #525b6a; color:var(--ink); font-size:.8rem; min-height:2rem; padding:.3rem .65rem; }
.pin-form button[aria-pressed=true] { color:#e6c78e; border-color:#917849; background:#8f6e1712; }
.agent-mode .home-pin { background:#132630b3; border-color:#6c96a44d; backdrop-filter:blur(18px); }

.calm-home { max-width:960px; margin:clamp(2rem,8vh,6rem) auto; }
.calm-home .home-heading { margin-bottom:2rem; }
.calm-home .home-heading h1 { font-size:clamp(2.5rem,5vw,4rem); font-weight:550; letter-spacing:-.05em; }
.home-motivation { font-size:1.2rem; line-height:1.6; max-width:55ch; }
.home-next-date { margin-top:.8rem; font-size:.8rem; color:#919aa9; }
.home-main-search { display:flex; gap:.6rem; margin-bottom:2rem; }
.home-main-search input { flex:1; min-width:0; font-size:1.15rem; padding:1.1rem 1.2rem; background:#202329; border:1px solid #48505f; min-height:4rem; }
.home-main-search button { padding:.75rem 1.2rem; }
.home-search-results { margin-bottom:2rem; border:1px solid var(--line); padding:1rem; }
.home-search-results a { display:grid; gap:.25rem; padding:.8rem; text-decoration:none; color:var(--ink); border-bottom:1px solid var(--line); }
.home-search-results small,.home-search-results span { color:var(--muted); font-size:.8rem; }
.calm-home .home-pin-section { margin-top:1.5rem; }
.calm-home .home-pin { padding:.8rem 1rem; background:transparent; }
.calm-home .home-pins { grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); }
.home-day-plan,.calm-home .home-dates,.home-personality { border-top:1px solid var(--line); padding-top:1rem; margin-top:1.25rem; }
.home-day-plan > summary,.home-dates > summary,.home-personality > summary { color:#aeb8c8; font-size:.9rem; }
.home-day-plan[open],.home-personality[open] { padding-bottom:1rem; }
.home-day-plan .field-note { margin:1rem 0; }
.day-plan-list { list-style:none; padding:0; }
.day-plan-list li { display:flex; align-items:center; gap:.5rem; padding:.9rem 0; border-bottom:1px solid var(--line); }
.day-plan-list li > div { flex:1; }
.day-plan-list a,.home-day-plan a { color:var(--ink); }
.day-plan-list p { font-size:.85rem; margin-top:.4rem; max-width:65ch; }
.day-plan-list button { min-height:1.8rem; padding:.2rem .5rem; }
.home-day-plan form > button { margin-right:.6rem; }
.assistant-settings { margin-top:1rem; max-width:34rem; }
.project-planning { padding:.7rem 0 1rem; border-block:1px solid var(--line); }
.project-planning summary { font-size:.85rem; color:var(--muted); }
.agent-mode .home-main-search input { background:#11232dcc; border-color:#6a92a266; }
@media(max-width:600px) { .home-main-search { flex-direction:column; } .calm-home { margin-top:2rem; } }

.workspace-personal { --workspace-accent:#afbdd3; --workspace-tint:#afbdd315; }
.workspace-personal.accent-sage { --workspace-accent:#a7beb0; --workspace-tint:#a7beb015; }
.workspace-personal.accent-clay { --workspace-accent:#c8a59b; --workspace-tint:#c8a59b15; }
.workspace-personal.accent-lavender { --workspace-accent:#b8aed0; --workspace-tint:#b8aed015; }
.workspace-personal.accent-sand { --workspace-accent:#c6baa0; --workspace-tint:#c6baa015; }
.workspace-personal .sidebar a[aria-current] { box-shadow:inset 2px 0 var(--workspace-accent); background:var(--workspace-tint); }
.workspace-personal .workspace-shell .client-create-primary,
.workspace-personal .workspace-shell .client-site-primary,
.workspace-personal .workspace-shell .home-main-search button { background:var(--workspace-accent); border-color:var(--workspace-accent); color:#1b2027; }
.workspace-personal .home-heading .eyebrow { color:var(--workspace-accent); }
.workspace-color-options { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:.75rem; }
.workspace-color-options label { display:flex; align-items:center; gap:.5rem; border:1px solid var(--line); padding:.75rem; cursor:pointer; }
.workspace-color-options input { min-height:1rem; }
.workspace-swatch { display:inline-block; width:1rem; height:1rem; background:#afbdd3; }
.swatch-sage { background:#a7beb0; }.swatch-clay { background:#c8a59b; }.swatch-lavender { background:#b8aed0; }.swatch-sand { background:#c6baa0; }
.account-overview > h2 { margin-top:2.5rem; margin-bottom:.75rem; }
.quiet-home-title { font-size:1rem; font-weight:500; color:var(--muted); margin-bottom:1.5rem; }

.open-day-plan { display:inline-flex; align-items:center; padding:.6rem 1rem; border:1px solid #535e70; color:var(--ink); background:#272d37; text-decoration:none; font-size:.9rem; }
.open-day-plan:hover { background:#343e4d; }
.assistant-plan-dialog { width:min(680px,calc(100vw - 2rem)); }
.assistant-plan-dialog .home-day-plan { margin:0; padding:.5rem 0; border-top:0; }
.sidebar-pins { display:grid; gap:1px; padding:0 0 .6rem .65rem; margin-left:.45rem; border-left:1px solid #414856; }
.sidebar-pins:empty { display:none; }
.sidebar-pins a { font-size:.8rem; color:#aeb9cb; }
.sidebar-pins a span { color:#c5af7a; font-size:.7rem; }
.agent-mode .open-day-plan { background:#223641b3; color:#edbd84; border-color:#997343; }

.list-pin-heading { font-size:.85rem; font-weight:600; color:var(--muted); padding:1rem .3rem .5rem; margin:0; }
.client-folders > .list-pin-heading { grid-column:1/-1; background:#171819; }
.client-folder-entry { display:flex; flex-direction:column; padding:0; }
.client-folder-main { display:block; flex:1; padding:1rem; text-decoration:none; color:var(--ink); }
.client-folder-main > span { display:block; font-size:1.6rem; color:#b6becd; }
.client-folder-entry > .pin-form { padding:0 1rem 1rem; }
.project-list-entry { display:flex; align-items:center; gap:.75rem; border-bottom:1px solid var(--line); }
.project-list-entry > .project-row { flex:1; min-width:0; border-bottom:0; }
.project-list-entry > .pin-form { flex:none; padding-right:.4rem; }
.project-list-entry:hover { background:#aabbd10a; }
.client-project-row .pin-form { flex:none; }
@media(max-width:600px) { .project-list-entry { flex-wrap:wrap; } .project-list-entry > .pin-form { margin:0 0 .75rem; } }

.notes-workspace { max-width:1080px; margin:auto; }
.notes-workspace h1 { font-size:2rem; margin:.4rem 0 .7rem; }
.notes-private { color:#a5b5cb; font-size:.78rem; margin:.5rem 0; }
.notes-context-back { display:inline-block; font-size:.85rem; color:var(--muted); margin:.5rem 0; }
.note-search { display:flex; gap:.5rem; margin:1.25rem 0; max-width:38rem; }
.note-search input { flex:1; min-width:0; }
.note-row { display:flex; gap:1rem; padding:1.1rem .6rem; border-bottom:1px solid var(--line); }
.note-row:hover { background:#aabbd10a; }
.note-toggle { flex:none; }
.note-toggle button { border:1px solid #59677d; background:transparent; color:#c0cde2; width:2rem; min-height:2rem; padding:0; font-size:1.2rem; }
.note-copy { flex:1; min-width:0; }
.note-title { font-weight:600; color:var(--ink); text-decoration:none; font-size:1rem; }
.note-title:hover { text-decoration:underline; }
.note-copy > p { white-space:pre-wrap; overflow-wrap:anywhere; font-size:.9rem; margin:.5rem 0; max-width:80ch; }
.note-links { display:flex; flex-wrap:wrap; gap:.8rem; font-size:.75rem; color:var(--muted); }
.note-links a { color:#a6bad7; }
.note-done .note-title { color:var(--muted); text-decoration:line-through; }
.note-done .note-toggle button { color:#a9d1b9; border-color:#5f8a72; }
.notes-empty { padding:2rem .5rem; color:var(--muted); }
.note-dialog textarea { background:#171b21; color:#e1e6ee; border:1px solid #4d596d; font:inherit; padding:.7rem; resize:vertical; }
.client-notes-link,.plan-note-link { color:var(--ink); font-size:.85rem; }
.plan-note-link { display:inline-block; margin-top:.5rem; }
.agent-mode .note-row:hover { background:#f2a34d0c; }

[data-note-client-label][hidden] { display:none; }

.note-link-picker { position:relative; }
.note-picker-input { display:flex; gap:.4rem; margin-top:.25rem; }
.note-picker-input input { min-width:0; flex:1; }
.note-picker-input button { background:transparent; color:#abb8cb; border:1px solid #4a5566; min-width:2rem; }
.note-picker-selected,.note-auto-client { font-size:.78rem; color:#a9b9cf; margin:.35rem 0; }
.note-picker-results { position:absolute; z-index:5; left:0; right:0; top:100%; max-height:250px; overflow:auto; background:#202732; border:1px solid #536178; box-shadow:0 12px 25px #0006; }
.note-picker-results button:not([hidden]) { display:grid; gap:.25rem; width:100%; text-align:left; justify-items:start; padding:.7rem; background:transparent; color:#e0e7f2; border:0; border-bottom:1px solid #3f4a5b; font-weight:400; }
.note-picker-results button:hover,.note-picker-results button:focus { background:#34425a; }
.note-picker-results small { color:#a4b5cf; font-size:.75rem; }
.note-picker-results .note-picker-empty { padding:.8rem; font-size:.8rem; }
.note-auto-client[hidden] { display:none; }

.notes-v2 { max-width:1450px; }
.note-quick-capture { border:1px solid #485365; background:#1d222a; margin:1.4rem 0; padding:1rem; }
.note-quick-capture textarea { display:block; width:100%; resize:vertical; min-height:4rem; max-height:12rem; border:0; background:transparent; color:var(--ink); font:inherit; line-height:1.6; outline-offset:3px; }
.note-quick-capture > div { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-top:.75rem; }
.note-quick-capture span { font-size:.75rem; color:var(--muted); }
.notes-filter-bar { display:flex; gap:.65rem; align-items:end; margin:1rem 0; }
.notes-filter-bar > input[type=search] { flex:1; min-width:0; }
.notes-filter-bar label { font-size:.75rem; }
.notes-split { display:grid; grid-template-columns:minmax(290px,.85fr) minmax(400px,1.5fr); gap:1.4rem; align-items:start; border-top:1px solid var(--line); }
.notes-split .notes-list { min-width:0; max-height:calc(100vh - 15rem); overflow:auto; }
.note-group-label { font-size:.7rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); padding:.8rem .5rem .4rem; margin:0; }
.notes-split .note-row { padding:1rem .7rem; gap:.7rem; cursor:pointer; }
.notes-split .note-row > form { flex:none; }
.notes-split .note-row > form button { width:1.65rem; min-height:1.65rem; padding:0; border:1px solid #52617a; background:transparent; color:#b6c7e1; }
.notes-split .note-row.selected { background:#91aedb12; box-shadow:inset 2px 0 #91aedb; }
.notes-split .note-title { font-size:.95rem; line-height:1.45; }
.notes-split .note-copy > p { font-size:.82rem; color:#a9b4c6; line-height:1.5; margin:.35rem 0 .6rem; }
.note-updated { display:block; font-size:.7rem; color:#8f9bac; margin-top:.6rem; }
.note-links { gap:.35rem .65rem; }
.notes-editor { padding:1.5rem; border-left:1px solid var(--line); min-height:28rem; position:sticky; top:1rem; min-width:0; }
.notes-editor-heading { display:flex; justify-content:space-between; align-items:center; gap:1rem; }
.notes-editor-heading h2 { font-size:1rem; margin:.25rem 0 1rem; }
.notes-editor a { color:var(--ink); font-size:.85rem; }
.notes-editor-form { max-width:none; }
.notes-editor-form .note-title-input { font-size:1.5rem; font-weight:600; background:transparent; border:0; padding:.4rem 0; }
.notes-editor-form > textarea { width:100%; border:0; padding:.5rem 0; background:transparent; color:var(--ink); font:inherit; line-height:1.75; resize:vertical; min-height:17rem; }
.note-current-context { font-size:.8rem; padding:.7rem; background:#a3bada0b; border:1px solid var(--line); }
.note-context-inspector { padding:.7rem 0; }
.note-context-inspector summary { font-size:.85rem; }
.note-context-inspector [data-note-context-picker] { margin-top:1rem; }
.note-context-results { max-height:240px; overflow:auto; margin:.5rem 0; border-block:1px solid var(--line); }
.note-context-results button:not([hidden]) { display:grid; gap:.2rem; text-align:left; width:100%; padding:.7rem; background:transparent; color:var(--ink); border:0; border-bottom:1px solid #39435177; }
.note-context-results button:hover,.note-context-results button:focus { background:#34425a; }
.note-context-results span { color:#98a9c3; font-size:.65rem; text-transform:uppercase; letter-spacing:.06em; }
.note-context-results small { font-size:.75rem; color:#acbbd0; }
.note-editor-actions { display:flex; flex-wrap:wrap; gap:.5rem; margin:.4rem 0 1rem; }
.note-editor-actions button { font-size:.75rem; background:transparent; color:#b6c3d7; border:1px solid #4a5669; min-height:1.8rem; padding:.3rem .5rem; }
.note-editor-save { display:flex; align-items:center; gap:1rem; }
.note-editor-save span { color:var(--muted); font-size:.75rem; }
.note-editor-meta { margin-top:1.5rem; border-top:1px solid var(--line); padding-top:.8rem; display:flex; flex-wrap:wrap; gap:.5rem 1rem; }
.note-editor-meta p { font-size:.72rem; color:#8f9bac; }
.notes-editor-empty { display:flex; flex-direction:column; justify-content:center; gap:.8rem; }
.notes-editor-empty h2 { font-size:1.4rem; }
.notes-editor-empty p { max-width:38ch; }
.note-reading-body { white-space:pre-wrap; line-height:1.7; margin-top:1rem; }
@media(max-width:950px) {
  .notes-split { grid-template-columns:1fr; }
  .notes-editor { position:static; border-left:0; border-top:1px solid var(--line); min-height:0; order:-1; }
  .notes-editor-empty { display:none; }
  .notes-split .notes-list { max-height:none; }
}
@media(max-width:600px) { .notes-filter-bar { flex-wrap:wrap; } .note-quick-capture > div { flex-wrap:wrap; } .notes-editor { padding:1rem .2rem; } }

.plan-delete-confirm{margin-top:1.5rem;padding-top:1rem;border-top:1px solid #484047}.plan-delete-confirm summary{color:#ef9999;cursor:pointer}.plan-delete-confirm button{background:#9a3838;color:white;border-color:#9a3838}.plan-delete-confirm p{max-width:58ch}

.inline-plan-row{position:relative;padding-right:3rem}.plan-row-delete{position:absolute;right:.65rem;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:1.8rem;height:1.8rem;opacity:0;color:#b8b9be;transition:opacity .12s,background .12s}.inline-plan-row:hover .plan-row-delete,.inline-plan-row:focus-within .plan-row-delete{opacity:1}.plan-row-delete:hover{color:#ffaaaa;background:#aa424220}.plan-delete-actions{display:flex;align-items:center;gap:1.25rem;margin-top:1.5rem}.plan-delete-actions button{background:#9a3838;border-color:#9a3838;color:#fff}@media(hover:none){.plan-row-delete{opacity:1}}

.activity-history{margin:1.5rem 0}.activity-history article{padding:.75rem 0;border-bottom:1px solid #35383d}.activity-history article p{margin:.4rem 0}

.changes-workspace{max-width:1050px}.changes-workspace small{display:block;color:#a2a7b0;margin:.3rem 0}.change-preview,.change-event{padding:1rem;border:1px solid #383c43;margin:1rem 0}.change-preview article{padding:.6rem 0;border-bottom:1px solid #383c43}.batch-items{max-height:28rem;overflow:auto}.batch-items fieldset{margin:.75rem 0;border:1px solid #383c43}.batch-choice{display:flex!important;gap:.7rem;padding:.4rem}.batch-choice input{width:auto!important}.batch-choice:hover{background:#ffffff08}

.correspondence-workspace{max-width:1050px}.correspondence-editor{border-top:1px solid #3a3d43;padding:1rem 0}.correspondence-editor form{max-width:780px}.correspondence-entry{border-top:1px solid #3a3d43;padding:1.2rem 0}.correspondence-entry small{color:#aab0ba}.correspondence-text{white-space:pre-wrap}.client-update-prompt{border-left:2px solid var(--accent,#a9b5c9);padding:.65rem 1rem}

.review-list{display:grid;gap:0}.review-list-card{display:grid;grid-template-columns:140px 1fr;gap:1.2rem;padding:1.1rem 0;border-bottom:1px solid #383c43;text-decoration:none;color:inherit}.review-list-card:hover{background:#ffffff06}.review-list-thumb img{width:140px;height:90px;object-fit:cover}.review-list-card h2{font-size:1.05rem;margin:.35rem 0}.review-list-card p{margin:.35rem 0}.review-list-card small{color:#a6b1bf}@media(max-width:600px){.review-list-card{grid-template-columns:85px 1fr}.review-list-thumb img{width:85px;height:75px}}

.contact-table-heading,.contact-table-row{display:grid;grid-template-columns:minmax(140px,1.2fr) minmax(180px,1.5fr) minmax(110px,1fr) minmax(90px,.7fr);gap:1rem;padding:.9rem .6rem;border-bottom:1px solid #383c43;align-items:center}.contact-table-heading{color:#9ca6b3;font-size:.8rem}.contact-table-row:hover{background:#ffffff07}.contact-table-row small{display:block;color:#9ca6b3;margin-top:.35rem}.project-contact-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.5rem}.project-contact-list article{border-top:1px solid #383c43;padding:1rem 0}.project-contact-list p{margin:.4rem 0}@media(max-width:750px){.contact-table-heading{display:none}.contact-table-row{grid-template-columns:1fr 1fr}}

/* Notes: one list, one focused writing surface. */
.notes-simple{max-width:1100px;margin:0 auto}.notes-simple .library-heading{margin-bottom:1.1rem}.notes-simple .library-heading h1{margin-bottom:.35rem}.notes-simple .library-heading p{font-size:.85rem;color:var(--muted)}.notes-simple .plan-tabs{margin-bottom:1rem}.notes-simple .notes-filter-bar{margin:.8rem 0 1rem;align-items:center}.notes-simple .notes-sort-label select{min-width:150px}.notes-simple .notes-clean-list{max-height:none;overflow:visible;border-top:1px solid var(--line)}.notes-simple .note-row{display:flex;align-items:center;padding:1rem .65rem;gap:1rem;border-bottom:1px solid var(--line);cursor:pointer;position:relative}.notes-simple .note-row:hover{background:#ffffff06}.notes-simple .note-row>form{flex:0 0 auto}.notes-simple .note-row>form button{width:1.5rem;height:1.5rem;padding:0;background:transparent;color:#aab5c4;border:1px solid #505862}.notes-simple .note-copy{flex:1;min-width:0;padding-right:7rem}.notes-simple .note-title{font-size:.96rem;color:var(--ink);text-decoration:none}.notes-simple .note-excerpt{font-size:.82rem;color:#969faa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:.3rem 0 .4rem}.notes-simple .note-links{font-size:.74rem;display:flex;gap:.7rem;flex-wrap:wrap}.notes-simple .note-links a{color:#a8b1be;text-decoration:none}.notes-simple .note-updated{position:absolute;right:.65rem;top:1rem;margin:0;font-size:.7rem;color:#8d96a2}.notes-simple .note-group-label{padding:1.2rem .65rem .5rem}.notes-focused{max-width:850px}.notes-focused .notes-editor{position:static;border:0;padding:1.25rem 0;min-height:0}.note-location{font-size:.8rem;color:#969faa;padding:.6rem 0;border-bottom:1px solid var(--line)}.notes-focused .notes-editor-heading{flex-direction:row-reverse;margin-bottom:.8rem}.notes-focused .notes-editor-heading .eyebrow,.notes-focused .notes-editor-heading h2{display:none}.notes-focused .note-editor-actions{justify-content:flex-end;gap:.7rem}.notes-focused .note-more-actions{position:relative;font-size:.8rem}.note-more-actions summary{cursor:pointer;padding:.4rem}.note-more-actions[open]{border:1px solid var(--line);padding:.3rem}.note-more-actions form{margin:.35rem 0}.notes-focused .note-title-input{font-size:1.8rem!important;border:0!important;background:transparent!important;padding:.5rem 0!important}.notes-focused #note-body-input{background:transparent!important;color:var(--ink);border:0!important;padding:.65rem 0!important;min-height:20rem;font-size:1rem;line-height:1.8}.notes-focused .note-current-context{background:transparent;border:0;padding:.5rem 0;color:#a8b1be}.notes-focused .note-context-inspector{border-top:1px solid var(--line)}.notes-focused .note-editor-save{position:sticky;bottom:0;background:var(--bg,#161718);padding:1rem 0;border-top:1px solid var(--line)}.notes-focused .note-editor-meta{margin-top:.5rem}.notes-live-empty{padding:2rem .5rem;color:var(--muted)}.notes-simple [hidden]{display:none!important}@media(max-width:650px){.notes-simple .note-copy{padding-right:0}.notes-simple .note-updated{position:static;margin-top:.4rem}.notes-simple .notes-filter-bar{flex-wrap:nowrap}.notes-simple .notes-sort-label select{min-width:0;width:125px}.notes-focused .note-editor-actions{justify-content:flex-start}}

.notes-focused .note-context-line{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;flex-wrap:wrap;border-top:1px solid var(--line);padding:.7rem 0}.notes-focused .note-context-line .note-current-context{padding:0;flex:1;min-width:200px}.notes-focused .note-context-line .note-context-inspector{border:0;padding:0;position:relative}.note-context-line .note-context-inspector summary{font-size:.78rem;color:#a8b1be;cursor:pointer}.note-context-line [data-note-context-picker]{position:absolute;right:0;top:1.5rem;width:min(370px,75vw);z-index:15;padding:1rem;background:#202329;border:1px solid #4a505a;box-shadow:0 12px 30px #0006}

.project-subpage-back{display:flex;align-items:center;gap:.85rem;margin:0 0 1.4rem;min-height:2rem}.project-back-button{display:inline-flex;align-items:center;padding:.45rem .7rem;border:1px solid #4a505a;background:#26292f;color:var(--ink,#eee);font-size:.8rem;text-decoration:none;white-space:nowrap}.project-back-button:hover{background:#343940}.project-subpage-back>span{font-size:.78rem;color:#9da6b3}.project-back-button:focus-visible{outline:2px solid #acbfdb;outline-offset:3px}

.client-project-folders{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1rem;margin:1rem 0 1.5rem}.client-project-folder{border:1px solid #3b4048;background:#1d1f23;position:relative;display:flex;flex-direction:column;cursor:pointer}.client-project-folder:hover{background:#25282e;border-color:#626c7b}.project-folder-main{display:block;padding:1.1rem;flex:1;color:var(--ink);text-decoration:none}.project-folder-icon{color:#a7b5c9;display:block;margin-bottom:1.1rem}.folder-project-state{position:absolute;right:1rem;top:1.2rem;font-size:.7rem;color:#9ca8b8}.project-folder-main h3{font-size:1rem;margin:0 0 .6rem}.project-folder-main p{font-size:.8rem;margin:.4rem 0;color:#b6bdc8}.project-folder-main small{font-size:.73rem;color:#929daa;line-height:1.5;display:block}.client-project-folder footer{padding:.7rem 1rem;border-top:1px solid #343940;display:flex;align-items:center;justify-content:space-between;gap:.5rem}.client-project-folder footer a{font-size:.75rem;color:#aebed2;text-decoration:none}.client-project-folder footer .pin-form{margin:0}.agent-mode .client-project-folder{background:#15222b99;border-color:#697d8766}.agent-mode .client-project-folder:hover{background:#263b4699;border-color:#e8a356}

.folder-color-slate{--folder-tint:39,53,69;--folder-ink:#a4b5c9}.folder-color-sage{--folder-tint:43,61,49;--folder-ink:#a1baa5}.folder-color-clay{--folder-tint:67,48,39;--folder-ink:#c3a18b}.folder-color-sand{--folder-tint:65,59,41;--folder-ink:#c4b88e}.folder-color-lavender{--folder-tint:54,46,69;--folder-ink:#b7a5cf}.folder-color-rose{--folder-tint:65,42,50;--folder-ink:#c29baa}.client-project-folder[class*=folder-color-]{background:linear-gradient(135deg,rgba(var(--folder-tint),.65),#1d1f23 85%);border-color:rgba(var(--folder-tint),1)}.client-project-folder[class*=folder-color-]:hover{background:linear-gradient(135deg,rgba(var(--folder-tint),.95),#24262c 90%);border-color:var(--folder-ink)}.client-project-folder .project-folder-icon{color:var(--folder-ink);fill:rgba(var(--folder-tint),.5)}.folder-color-picker{position:relative;margin-left:auto}.folder-color-picker summary{font-size:.73rem;cursor:pointer;color:var(--folder-ink)}.folder-color-options{position:absolute;top:1.5rem;right:0;z-index:20;min-width:150px;background:#23262c;border:1px solid #4a505a;padding:.4rem;box-shadow:0 10px 25px #0007}.folder-color-options form{margin:0}.folder-color-options button{display:flex;gap:.6rem;align-items:center;width:100%;text-align:left;background:transparent;border:0;color:#d8dce3;font-size:.78rem;padding:.5rem}.folder-color-options button:hover{background:#ffffff0c}.folder-swatch{width:13px;height:13px;display:inline-block;border:1px solid #ffffff30}.swatch-folder-slate{background:#65768a}.swatch-folder-sage{background:#6c876f}.swatch-folder-clay{background:#96745f}.swatch-folder-sand{background:#95885f}.swatch-folder-lavender{background:#857298}.swatch-folder-rose{background:#946b7a}

.delivery-workspace{max-width:1100px}.delivery-form{max-width:850px}.delivery-link-editor{border:1px solid #3d444e;padding:1rem;margin:1rem 0;display:grid;grid-template-columns:1fr 1fr;gap:.8rem}.delivery-link-editor label{min-width:0}.delivery-link-editor input{width:100%}.delivery-link-editor legend{padding:0 .4rem;color:#aebacc}.delivery-message{white-space:pre-wrap;line-height:1.8}.delivery-downloads article{display:flex;justify-content:space-between;align-items:center;gap:1.5rem;border-top:1px solid #3d444e;padding:1.4rem 0}.delivery-downloads h2{font-size:1.1rem}.delivery-downloads small,.delivery-date{color:#a7b1c0;font-size:.8rem}.delivery-page{padding:1rem 0}.delivery-workspace>details{margin-top:2rem}.delivery-workspace>details article{border-top:1px solid #3d444e;padding:1rem 0}@media(max-width:650px){.delivery-link-editor{grid-template-columns:1fr}.delivery-downloads article{align-items:start;flex-direction:column}}

/* One shared content rail for every client-site page. */
.project-site > .page-content{width:min(calc(100% - 2rem),70rem);max-width:70rem;margin-inline:auto;box-sizing:border-box}
.project-site > .page-content > .site-content,
.client-site-page .project-site > .page-content > .site-content{width:100%;max-width:none;margin:1rem 0;padding:1.15rem;box-sizing:border-box}
.project-site > .page-content > .media-workspace,
.client-site-page .project-site > .page-content > .media-workspace,
.project-site > .page-content > .delivery-page{width:100%;max-width:none;margin:0;padding:1.15rem;box-sizing:border-box}
.project-site > .page-content > .project-contact-list{width:100%;padding:1.15rem;box-sizing:border-box}
.project-site > .site-page-title,
.client-site-page .project-site > .site-page-title{width:min(calc(100% - 2rem),70rem);margin:1rem auto 0;padding:1.15rem;box-sizing:border-box}
.project-site > .page-content > .toolbar-links{padding-inline:1.15rem}
@media(max-width:600px){.project-site > .page-content{width:calc(100% - 1rem)}.project-site > .site-page-title,.client-site-page .project-site > .site-page-title{width:calc(100% - 1rem)}}

.project-site .site-tabs .delivery-page-link{margin-left:auto;color:#9bc7a8;border:1px solid #4c775b;background:#41604b30;padding:.45rem .85rem}.project-site .site-tabs .delivery-page-link:hover{background:#4d775b50;color:#c2e5cc}.project-site .site-tabs .delivery-page-link[aria-current="page"]{background:#446e50;color:#edf7ef;border-color:#80ac8d}.agent-mode .project-site .site-tabs .delivery-page-link{color:#a5d4b2;border-color:#5d936c}.agent-mode .project-site .site-tabs .delivery-page-link[aria-current="page"]{color:#eef8f0;background:#365f43}

.home-motivation{color:var(--muted);font-size:1rem;line-height:1.6;margin:.7rem 0 1.8rem;max-width:60ch}

/* Personal workspace palette also colors the navigation surface. */
.workspace-personal{--sidebar-surface:#202630;--sidebar-border:#353e4c}
.workspace-personal.accent-sage{--sidebar-surface:#222b27;--sidebar-border:#38463e}
.workspace-personal.accent-clay{--sidebar-surface:#2d2523;--sidebar-border:#4b3d38}
.workspace-personal.accent-lavender{--sidebar-surface:#292531;--sidebar-border:#423b50}
.workspace-personal.accent-sand{--sidebar-surface:#2c2922;--sidebar-border:#484235}
.workspace-personal .workspace-shell .sidebar{background:var(--sidebar-surface);border-right-color:var(--sidebar-border)}
.workspace-personal .sidebar a:hover{background:var(--workspace-tint)}
.workspace-personal .sidebar a[aria-current]{background:var(--workspace-tint);box-shadow:inset 2px 0 var(--workspace-accent)}
.workspace-personal .sidebar .sidebar-account{border-color:var(--sidebar-border)}

.workspace-personal.accent-gray{--workspace-accent:#b5b7bc;--workspace-tint:#b5b7bc12;--sidebar-surface:#111213;--sidebar-border:#2a2c30}.workspace-personal .swatch-gray{background:#242527}

.studio-assistant{max-width:900px;margin:0 auto}.studio-assistant form{max-width:none}.assistant-status{padding:.8rem 1rem;border-left:2px solid #8192aa;background:#8192aa0c;font-size:.85rem}.assistant-answer{margin:1.5rem 0;padding:1.3rem;border:1px solid #414957}.assistant-answer>p{white-space:pre-wrap;line-height:1.8}.assistant-answer>a{display:block;margin:.5rem 0}.studio-assistant textarea{width:100%;min-height:7rem}

.ai-usage-card{padding:1.25rem;border:1px solid #41464e;margin:1.5rem 0}.ai-usage-card h2{margin:0}.ai-usage-card .library-heading{margin-bottom:1rem}.ai-usage-card progress{display:block;width:100%;height:12px;margin:.7rem 0;accent-color:var(--workspace-accent,#aab7cd)}.ai-usage-card dl{display:flex;flex-wrap:wrap;gap:1rem 2rem}.ai-usage-card dt{font-size:.8rem;color:#aab0ba}.ai-usage-card dd{margin:.4rem 0;font-weight:600}.ai-usage-warning{border-left:2px solid #e0b86d;padding-left:.8rem}

.account-preferences{max-width:1050px;margin:0 auto}.settings-header{margin-bottom:1.8rem}.settings-header h1{font-size:1.8rem;margin:.5rem 0}.settings-header>p:last-child{font-size:.9rem;color:var(--muted)}.settings-tabs{display:flex;gap:1.6rem;border-bottom:1px solid var(--line);margin-bottom:2rem;overflow-x:auto}.settings-tabs a{padding:.7rem 0;color:#9ca5b2;text-decoration:none;white-space:nowrap;border-bottom:2px solid transparent;font-size:.85rem}.settings-tabs a[aria-current]{color:var(--ink);border-color:var(--workspace-accent,#b6becb)}.settings-section{margin-bottom:2.2rem}.settings-section>h2{font-size:1rem;margin:0 0 .45rem}.settings-section>p{font-size:.8rem;color:#9ca5b2;margin:0 0 .8rem;line-height:1.6}.settings-group{background:#1c1d20;border:1px solid #303237;border-radius:8px;overflow:hidden}.setting-row{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,auto);align-items:center;gap:2rem;padding:1.1rem 1.2rem;border-bottom:1px solid #2a2c30;min-height:70px}.setting-row:last-child{border-bottom:0}.setting-description strong{font-size:.86rem;font-weight:550}.setting-description p{font-size:.76rem;color:#9ca5b2;margin:.35rem 0 0;line-height:1.5;max-width:47ch}.setting-control{justify-self:end;font-size:.85rem;max-width:320px;min-width:0}.setting-control input:not([type=checkbox]):not([type=radio]),.setting-control select{width:260px;max-width:100%;min-height:2rem;font-size:.83rem;padding:.35rem .55rem;background:#242529;border:1px solid #37393e}.setting-control input[type=number]{width:110px!important}.setting-control a{color:var(--ink)}.settings-color-swatches{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}.settings-color-swatches label{position:relative;display:block;width:26px;height:26px;cursor:pointer}.settings-color-swatches input{position:absolute;opacity:0;width:26px;height:26px;min-height:0;margin:0}.settings-color-swatches .workspace-swatch{width:22px;height:22px;border-radius:50%;border:1px solid #ffffff25;display:block;margin:2px}.settings-color-swatches input:checked+span{outline:2px solid var(--workspace-accent,#c5d1e4);outline-offset:3px}.settings-color-swatches input:focus-visible+span{outline:2px solid white;outline-offset:3px}.setting-switch{position:relative;display:block;width:36px;height:21px;cursor:pointer}.setting-switch input{position:absolute;opacity:0;width:36px;height:21px;margin:0;min-height:0}.setting-switch span{display:block;width:36px;height:21px;background:#55575d;border-radius:15px}.setting-switch span:after{content:'';position:absolute;width:15px;height:15px;background:#eee;border-radius:50%;top:3px;left:3px;transition:transform .15s}.setting-switch input:checked+span{background:#6a8194}.setting-switch input:checked+span:after{transform:translateX(15px)}.setting-switch input:focus-visible+span{outline:2px solid white;outline-offset:3px}.settings-save-status{font-size:.72rem;color:#929ba8;margin:.7rem 1.2rem}.settings-form-footer{display:flex;justify-content:flex-end}.settings-footnote{font-size:.8rem;color:#929ba8;max-width:65ch;line-height:1.7}.account-preferences .ai-usage-card{margin:0;background:#1c1d20;border-color:#303237;border-radius:8px}.account-preferences .ai-usage-card h2{font-size:1rem}@media(max-width:650px){.setting-row{grid-template-columns:1fr;gap:.8rem}.setting-control{justify-self:start;max-width:100%;width:100%}.setting-switch{margin-left:auto}.settings-tabs{gap:1.2rem}.settings-color-swatches{padding:.3rem 0}.setting-control input:not([type=checkbox]):not([type=radio]),.setting-control select{width:100%}}
