*{box-sizing:border-box} :root{--bg:#f7f6f2;--panel:#fffefa;--ink:#303a33;--muted:#74796f;--line:#e5e6dc;--accent:#42624d;--soft:#e9eee5;--rail:#efefe7;--title:Georgia,serif} body[data-theme=clear]{--bg:#f6f8fb;--panel:#fff;--ink:#263349;--muted:#738095;--line:#e1e7ef;--accent:#3667a8;--soft:#eaf0fa;--rail:#edf1f7;--title:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-size:14px;line-height:1.5}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #91b2c6;outline-offset:3px}button{border:0;background:none} .shell{display:grid;grid-template-columns:228px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--rail);padding:32px 22px;display:flex;flex-direction:column;gap:30px;border-right:1px solid var(--line)}.brand{font-size:23px;letter-spacing:5px;font-weight:550}.brand small{display:block;letter-spacing:1.6px;font-size:9px;color:var(--muted);margin-top:3px}.nav{display:grid;gap:5px}.nav button{display:flex;align-items:center;gap:12px;text-align:left;border-radius:9px;padding:11px 12px}.nav button.active{background:var(--panel);box-shadow:0 2px 9px #00000004;font-weight:600}.nav b{margin-left:auto;font-size:12px;color:var(--muted)}.glyph{width:20px;font-size:19px}.nav-label,.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:650;color:var(--muted)}.nav-label{padding:0 12px;margin:18px 0 6px}.sidebar-bottom{margin-top:auto;color:var(--muted);font-size:12px}.sidebar-bottom p{margin:6px 0}.badge{border:1px solid var(--line);border-radius:20px;padding:4px 9px;font-size:10px;letter-spacing:1px;display:inline-block}.workspace{min-width:0}.topbar{height:78px;display:flex;align-items:center;justify-content:space-between;padding:0 48px;border-bottom:1px solid var(--line);gap:12px}.breadcrumb{color:var(--muted);font-size:12px}.theme-picker{display:flex;border:1px solid var(--line);border-radius:8px;padding:3px;gap:2px}.theme-picker button{padding:6px 12px;font-size:12px;border-radius:5px}.theme-picker .chosen{background:var(--accent);color:white}.content{max-width:1130px;margin:auto;padding:48px 48px 80px}.page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}h1{font-family:var(--title);font-weight:400;font-size:42px;line-height:1.15;margin:10px 0}h2{font-weight:550;font-size:21px;margin:8px 0}h3{font-size:14px;font-weight:600;margin:0}.subtitle{color:var(--muted);margin:12px 0 0}.primary{background:var(--accent);color:#fff;padding:11px 17px;border-radius:7px;font-weight:500;white-space:nowrap}.quiet{padding:9px 12px;color:var(--muted)}.daily-note{display:flex;align-items:center;justify-content:space-between;padding:22px 25px;background:var(--soft);border-radius:10px;margin-bottom:30px;gap:20px}.daily-note p{margin:3px 0;color:var(--muted);font-size:12px}.progress{display:flex;gap:5px;margin-top:8px}.progress i{display:block;width:25px;height:4px;border-radius:5px;background:var(--line)}.progress i.done{background:var(--accent)}.big-count{font-family:var(--title);font-size:33px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:28px 0 12px}.section-title span{color:var(--muted);font-size:12px}.task-list{border:1px solid var(--line);background:var(--panel);border-radius:10px;overflow:hidden}.task{display:flex;gap:14px;align-items:flex-start;padding:20px 22px;border-bottom:1px solid var(--line)}.task:last-child{border:0}.check{flex:0 0 20px;height:20px;border:1.5px solid #b4bcb2;border-radius:50%;margin-top:2px;padding:0;font-size:12px}.task.completed .check{background:var(--accent);border-color:var(--accent);color:white}.task.completed .task-title{text-decoration:line-through;color:var(--muted)}.task-body{flex:1;min-width:0}.task-title{font-weight:500}.task-meta{color:var(--muted);font-size:11px;margin-top:5px;display:flex;gap:12px;flex-wrap:wrap}.task-edit{font-size:11px;color:var(--muted);padding:2px}.tag{font-size:10px;background:var(--soft);color:var(--accent);border-radius:4px;padding:2px 7px}.empty{padding:35px;text-align:center;color:var(--muted)}.footer-note{color:var(--muted);font-size:11px;margin-top:24px}.capture-inline{display:flex;gap:12px;border-bottom:1px solid var(--line);padding:0 0 20px;margin-bottom:28px}.capture-inline input{flex:1;min-width:0;background:transparent;border:0;padding:12px 4px;font-size:16px;color:var(--ink)}.project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.project-card{text-align:left;background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:25px}.project-card p{color:var(--muted);font-size:12px}.project-icon{font-size:24px;color:var(--accent);margin-bottom:20px}.partner-grid{display:grid;grid-template-columns:minmax(220px,30%) minmax(0,1fr);gap:30px}.identity{padding:26px;background:var(--panel);border:1px solid var(--line);border-radius:10px;align-self:start}.avatar{width:58px;height:58px;background:var(--soft);border-radius:50%;display:grid;place-items:center;font-family:var(--title);font-size:23px;color:var(--accent);margin-bottom:18px}.identity h2{font-family:var(--title);font-size:27px}.identity p{font-size:12px;color:var(--muted)}.identity dl{font-size:12px;overflow-wrap:anywhere}.identity dt{color:var(--muted);font-size:10px;margin-top:20px}.identity dd{margin:4px 0}.divider{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}.activity-actions{display:flex;gap:8px;flex-wrap:wrap;margin:17px 0 28px}.activity-actions button{background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:8px 14px;font-size:12px}.timeline{border-left:1px solid var(--line);margin-left:7px;padding-left:25px}.event{position:relative;padding-bottom:27px}.event:before{content:'';position:absolute;left:-30px;top:5px;border-radius:50%;width:9px;height:9px;background:var(--accent);border:2px solid var(--bg)}.event-top{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);gap:8px}.event p{margin:8px 0;font-size:13px;white-space:pre-wrap}.referral{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:15px 0;gap:15px}.referral small{color:var(--muted);display:block}.filter{border:1px solid var(--line);background:var(--panel);padding:7px;border-radius:6px;color:var(--ink)}dialog{border:1px solid var(--line);border-radius:14px;padding:28px;background:var(--panel);color:var(--ink);width:min(540px,calc(100% - 28px));max-height:90vh}dialog::backdrop{background:#1c272d55;backdrop-filter:blur(3px)}dialog header{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.icon{font-size:25px}label{display:block;font-size:12px;margin:15px 0 6px;color:var(--muted)}input,textarea,select{width:100%;border:1px solid var(--line);background:var(--bg);border-radius:6px;padding:10px;color:var(--ink)}textarea{resize:vertical;min-height:100px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}dialog footer{display:flex;justify-content:flex-end;gap:8px;margin-top:24px}.hint{font-size:11px;color:var(--muted);margin:8px 0}.warning{background:var(--soft);padding:10px;border-radius:6px;font-size:11px;color:var(--accent)}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--panel);border-radius:7px;padding:10px 18px;opacity:0;pointer-events:none;transition:opacity .2s;z-index:10}#toast.show{opacity:1}.mobile-brand{display:none} .danger{color:#965044}
@media(min-width:1450px){.content{padding-top:65px}.sidebar{padding-top:40px}}@media(max-width:950px){.shell{grid-template-columns:190px 1fr}.sidebar{padding:26px 12px}.content{padding:32px 25px}.topbar{padding:0 25px}.partner-grid{grid-template-columns:1fr}.identity{display:block}.partner-toggle{display:block!important}}.partner-toggle{display:none}@media(max-width:620px){.shell{display:block}.sidebar{padding:18px 16px 0;gap:15px;border-right:0;border-bottom:1px solid var(--line)}.brand{font-size:18px}.brand small,.sidebar-bottom,.nav-label{display:none}.nav{display:flex;overflow:auto;gap:0;margin:0 -8px}.nav button{padding:10px 9px;white-space:nowrap;font-size:12px;gap:5px;border-radius:6px 6px 0 0}.nav .glyph{display:none}.nav b{font-size:10px}.topbar{height:auto;min-height:58px;padding:10px 16px;justify-content:flex-end}.breadcrumb{display:none}.theme-picker button{font-size:11px;padding:5px 10px}.content{padding:26px 18px 60px}h1{font-size:34px}.page-head{gap:12px;margin-bottom:23px}.page-head .primary{padding:10px 12px;font-size:12px}.subtitle{font-size:12px}.daily-note{padding:17px}.task{padding:17px 14px;gap:11px}.task-title{font-size:13px}.task-edit{padding:4px}.project-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.capture-inline .primary{padding:8px 12px}.capture-inline input{font-size:14px}.identity{display:block}.partner-grid{gap:25px}.identity{padding:22px}.partner-toggle{display:none!important}.event-top{font-size:10px}}

.inline-checkbox{width:auto;margin-right:6px}
#qa-panel{margin:20px;padding:16px;background:white;color:#263349;border:1px solid #ddd;font:12px monospace}#qa-panel pre{white-space:pre-wrap;overflow-wrap:anywhere}#qa-refresh{padding:12px;border:1px solid #ddd}
.task-open{text-align:left;padding:0;cursor:pointer;border-radius:4px}.task-open:hover .task-title{text-decoration:underline}.task-note{border-left:2px solid var(--line);padding:8px 12px;margin:12px 0}.task-note small{color:var(--muted);font-size:11px}.task-note p{white-space:pre-wrap;margin:5px 0}.notes-heading{margin-top:25px}.ref-filters{display:flex;gap:6px;margin-bottom:15px}.ref-filters button{border:1px solid var(--line);border-radius:6px;padding:9px 14px;background:var(--panel)}.ref-filters button[aria-pressed=true]{background:var(--accent);color:white}.area-section{margin:28px 0}.area-section .project-card{padding:20px}.task-body{display:block}.task-open .task-title{font-size:14px}

/* Warm journal: glass is limited to navigation and control surfaces.
   Opaque colors are the default; blur is a progressive enhancement. */
body[data-theme="warm"] {
  --muted: #626c61;
  --glass: #eff1e9;
  --glass-control: #fafbf6;
  background: #f7f6f2;
}
body[data-theme="warm"] .sidebar {
  background: var(--glass);
  border-right: 1px solid #dce2d5;
  box-shadow: inset -1px 0 0 #ffffff, 5px 0 24px #303a3305;
}
body[data-theme="warm"] .topbar {
  background: var(--glass);
  border-bottom: 1px solid #dce2d5;
  box-shadow: inset 0 -1px 0 #ffffff;
}
body[data-theme="warm"] .nav button { border: 1px solid transparent; }
body[data-theme="warm"] .nav button.active {
  background: var(--glass-control);
  border-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 3px 9px #3043330a, 0 1px 2px #3043330a, inset 0 1px 0 #ffffff;
}
body[data-theme="warm"] .theme-picker,
body[data-theme="warm"] .activity-actions button,
body[data-theme="warm"] .ref-filters button {
  background: var(--glass-control);
  border: 1px solid #dce2d5;
  border-radius: 11px;
  box-shadow: inset 0 1px 0 #ffffff, 0 3px 10px #303a3308;
}
body[data-theme="warm"] .theme-picker { padding: 4px; }
body[data-theme="warm"] .theme-picker button { border-radius: 8px; }
body[data-theme="warm"] .primary,
body[data-theme="warm"] .theme-picker .chosen,
body[data-theme="warm"] .ref-filters button[aria-pressed="true"] {
  background: linear-gradient(#52705a, #42624d);
  color: #fff;
  border: 1px solid #3d5a46;
  box-shadow: inset 0 1px 0 #ffffff30, 0 3px 8px #30433316;
}
body[data-theme="warm"] .primary { border-radius: 11px; }
body[data-theme="warm"] :is(.task-list, .identity, .project-card, dialog) {
  background: #fffefa;
  border-color: #e0e4da;
  box-shadow: 0 3px 14px #303a3304;
}
body[data-theme="warm"] .timeline {
  background: #fffefa;
  border: 1px solid #e0e4da;
  border-radius: 12px;
  margin-left: 0;
  padding: 23px 22px 0 32px;
}
body[data-theme="warm"] .event::before { left: -20px; border-color: #fffefa; }
body[data-theme="warm"] .task-note { background: #f5f6ef; }
body[data-theme="warm"] :is(button,input,select,textarea):focus-visible {
  outline: 3px solid #31563f;
  outline-offset: 3px;
}
@supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
  body[data-theme="warm"] { --glass: #e9eee3c9; --glass-control: #ffffffbd; }
  body[data-theme="warm"] :is(.sidebar,.topbar,.theme-picker,.activity-actions button,.ref-filters button) {
    -webkit-backdrop-filter: blur(18px) saturate(115%);
    backdrop-filter: blur(18px) saturate(115%);
  }
  body[data-theme="warm"] .sidebar { background: linear-gradient(155deg,#ffffffcc,#e6ecdfb8),var(--glass); }
}
@media (prefers-reduced-transparency: reduce) {
  body[data-theme="warm"] { --glass: #eff1e9; --glass-control: #fafbf6; }
  body[data-theme="warm"] :is(.sidebar,.topbar,.theme-picker,.activity-actions button,.ref-filters button) {
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  body[data-theme="warm"] .sidebar { background: var(--glass); }
  dialog::backdrop { backdrop-filter: none; background: #28322bd9; }
}
@media (prefers-reduced-motion: reduce) { #toast { transition: none; } }
@media (max-width:620px) {
  body[data-theme="warm"] .sidebar { border-right: 0; }
  body[data-theme="warm"] .nav { gap: 3px; padding-bottom: 7px; }
  body[data-theme="warm"] .nav button { padding: 9px 8px; border-radius: 10px; }
  body[data-theme="warm"] .timeline { padding: 20px 16px 0 28px; }
}

/* Glass study 2: broad color planes provide something for the glass to refract.
   Text surfaces retain a dense white layer; no external images or animation. */
body[data-theme="warm"] {
  --ink: #29372e;
  --muted: #566252;
  background: linear-gradient(118deg, #d9e2cf 0%, #e4e9dd 23%, #f5f1e6 44%, #e6dccc 70%, #d5e0cd 100%);
  background-attachment: fixed;
}
body[data-theme="warm"] .shell { gap: 0; }
body[data-theme="warm"] .sidebar {
  margin: 16px 0 16px 16px;
  padding: 26px 16px;
  border: 1px solid #fffef6;
  border-radius: 22px;
  background: #eef1e7;
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 #b7c3ad55, 0 12px 30px #34452e15, 0 2px 4px #34452e0a;
}
body[data-theme="warm"] .topbar {
  margin: 16px 24px 0;
  padding: 0 24px;
  height: 64px;
  border: 1px solid #fffef6;
  border-radius: 20px;
  background: #f4f5ee;
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 #c4c9bc55, 0 8px 26px #34452e12;
}
body[data-theme="warm"] .theme-picker {
  border-color: #ffffff;
  box-shadow: inset 0 1px 2px #ffffff, inset 0 -1px 2px #7b896326, 0 4px 10px #34452e16;
}
body[data-theme="warm"] .nav button.active {
  border-color: #ffffff;
  box-shadow: inset 0 1px 2px #ffffff, inset 0 -1px 1px #98a88b30, 0 5px 12px #34452e16;
}
body[data-theme="warm"] .daily-note {
  background: #eaf0e1;
  border: 1px solid #ffffff;
  border-radius: 19px;
  box-shadow: inset 0 1px 0 #ffffff, inset 0 -1px 1px #a3b29144, 0 9px 22px #34452e10;
}
body[data-theme="warm"] :is(.task-list,.project-card,.identity,.timeline) {
  border: 1px solid #ffffff;
  border-radius: 17px;
  background: #fffefa;
  box-shadow: inset 0 2px 1px #ffffff, inset 0 -1px 0 #c1cbb84d, 0 12px 28px #34452e12, 0 2px 5px #34452e08;
}
body[data-theme="warm"] .task { border-bottom-color: #d7dfcf; }
body[data-theme="warm"] .primary { box-shadow: inset 0 1px 0 #ffffff70, inset 0 -1px 0 #203c2c55, 0 5px 12px #30433328; }
body[data-theme="warm"] .activity-actions button,
body[data-theme="warm"] .ref-filters button {
  border-color: #ffffff;
  box-shadow: inset 0 2px 1px #ffffff, inset 0 -1px 1px #8b9c7e44, 0 4px 11px #34452e16;
}
@supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
  body[data-theme="warm"] .sidebar {
    background: linear-gradient(145deg,#ffffff9e,#edf3e452 58%,#ffffff73);
    -webkit-backdrop-filter: blur(26px) saturate(125%);
    backdrop-filter: blur(26px) saturate(125%);
  }
  body[data-theme="warm"] .topbar { background: linear-gradient(120deg,#ffffffa8,#ffffff52); }
  body[data-theme="warm"] :is(.theme-picker,.nav button.active,.activity-actions button,.ref-filters button:not([aria-pressed="true"])) {
    background: linear-gradient(160deg,#ffffffd9,#ffffff6e);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    backdrop-filter: blur(18px) saturate(120%);
  }
  body[data-theme="warm"] .daily-note {
    background: linear-gradient(130deg,#fafff3ba,#dfebd58c);
    -webkit-backdrop-filter: blur(22px) saturate(115%);
    backdrop-filter: blur(22px) saturate(115%);
  }
  body[data-theme="warm"] :is(.task-list,.project-card) {
    background: linear-gradient(125deg,#ffffffed,#fffefad9);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
  body[data-theme="warm"] :is(.identity,.timeline) { background: #fffefaf2; }
}
@media (prefers-reduced-transparency: reduce) {
  body[data-theme="warm"] { background: #f3f3eb; }
  body[data-theme="warm"] .sidebar { background: #edf1e5; }
  body[data-theme="warm"] .topbar { background: #f4f5ee; }
  body[data-theme="warm"] .daily-note { background: #eaf0e1; }
  body[data-theme="warm"] :is(.theme-picker,.nav button.active,.activity-actions button,.ref-filters button:not([aria-pressed="true"]),.task-list,.project-card,.identity,.timeline) { background: #fffefa; }
  body[data-theme="warm"] :is(.sidebar,.topbar,.theme-picker,.nav button.active,.activity-actions button,.ref-filters button,.daily-note,.task-list,.project-card) { -webkit-backdrop-filter:none;backdrop-filter:none; }
}
@media (max-width:620px) {
  body[data-theme="warm"] .sidebar { margin: 10px 10px 0;padding: 15px 13px 4px;border-radius:18px; }
  body[data-theme="warm"] .topbar { margin: 9px 10px 0;padding:9px 10px;min-height:52px;height:auto;border-radius:16px; }
  body[data-theme="warm"] .nav { margin:0 -5px; }
  body[data-theme="warm"] .content { padding-top:26px; }
}

/* Roomy note composition, compact timeline reading and explicit referral outcomes. */
.activity-note { white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;margin:8px 0;max-height:55vh;overflow:auto; }
.activity-note.collapsed { display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;max-height:6em;overflow:hidden; }
.note-toggle { padding:5px 0;text-decoration:underline;font-size:12px; }
.referral-body { min-width:0;flex:1;overflow-wrap:anywhere; }
.referral-tags { display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-top:8px; }
.referral > button { align-self:start;flex-shrink:0; }
.outcome-filter { max-width:300px;margin:14px 0; }
.outcome-filter select { margin-top:5px;font-size:12px; }
.outcome-note summary { cursor:pointer;font-size:12px;margin-top:10px; }
.outcome-note p { white-space:pre-wrap;font-size:12px;max-height:240px;overflow:auto; }
.outcome-converted { background:#dcecdc;color:#294c31; }
.outcome-not_proceeded { background:#f1e5dc;color:#694535; }
dialog.activity-editor { width:min(780px,calc(100% - 28px));padding:0;overflow:hidden; }
.activity-editor #edit-form { display:flex;flex-direction:column;max-height:90vh;max-height:90dvh; }
.activity-editor header { margin:0;padding:20px 24px 12px;flex-shrink:0; }
.activity-editor #fields { padding:0 24px 18px;overflow:auto;min-height:0; }
.activity-editor footer { margin:0;padding:14px 24px;border-top:1px solid var(--line);background:var(--panel);flex-shrink:0; }
.activity-editor .meeting-notes { height:300px;min-height:220px;max-height:65vh;resize:vertical;overflow:auto;line-height:1.6; }
.expand-editor { display:block;margin:0 0 6px auto;padding:4px 0;text-decoration:underline;font-size:12px; }
dialog.expanded-editor { width:min(1100px,calc(100% - 28px)); }
.expanded-editor .meeting-notes { height:55vh; }
@media(max-width:620px) {
 .activity-editor header,.activity-editor footer { padding:14px 16px; }
 .activity-editor #fields { padding:0 16px 14px; }
 .activity-editor .meeting-notes { height:36vh;min-height:200px;font-size:16px; }
 .expanded-editor .meeting-notes { height:55vh; }
 .activity-note { max-height:45vh; }
}
.note-disclosure summary { list-style:none;cursor:pointer;font-size:12px; }
.note-preview { display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;max-height:6em;margin:8px 0; }
.more-label,.less-label { text-decoration:underline;display:inline-block;padding:5px 0; }
.note-disclosure .less-label { display:none; }
.note-disclosure[open] .less-label { display:inline-block; }
.note-disclosure[open] .more-label,.note-disclosure[open] .note-preview { display:none; }
.note-disclosure summary:focus-visible { outline:3px solid #31563f;outline-offset:3px; }

/* Selectable referrals: native button keyboard activation; notes stay independent. */
.referral[data-open-referral] { cursor:pointer;border:1px solid var(--line);border-radius:12px;padding:0;margin:10px 0;background:var(--panel); }
.referral-open { display:block;width:100%;padding:16px;text-align:left;border-radius:11px;user-select:text; }
.referral-client { display:block;font-size:14px;font-weight:600; }
.referral[data-open-referral]:hover { border-color:var(--accent);box-shadow:0 3px 12px #34452e12; }
.referral[data-open-referral]:has(.referral-open:active) { background:var(--soft);box-shadow:inset 0 1px 4px #34452e18; }
.referral-open:focus-visible { outline:3px solid var(--accent);outline-offset:3px; }
.referral .outcome-note { padding:0 16px 12px;cursor:auto; }
.referral .outcome-note summary { margin-top:0; }

/* Completion is saved before this optional visual feedback begins. */
.task.task-finishing { pointer-events:none;overflow:hidden;transform-origin:top; }
.task-finishing .check { background:var(--accent);border-color:var(--accent);color:#fff;animation:tick-pop 380ms ease-out; }
.task-finishing .task-title { text-decoration:line-through; }
.count-updated { display:inline-block;animation:count-settle 420ms ease-out; }
#toast.today-celebration { background:var(--accent);box-shadow:0 0 0 5px #91ad8a33,0 8px 30px #34452e26;animation:today-finish 750ms ease-out; }
@keyframes tick-pop { 0%{transform:scale(.7)} 60%{transform:scale(1.2)} 100%{transform:scale(1)} }
@keyframes count-settle { from{opacity:.4;transform:translateY(-5px)} to{opacity:1;transform:translateY(0)} }
@keyframes today-finish { 0%{opacity:.7;transform:translateX(-50%) scale(.96)} 55%{transform:translateX(-50%) scale(1.025)} 100%{opacity:1;transform:translateX(-50%) scale(1)} }
@media(prefers-reduced-motion:reduce) {
 .task.task-finishing,.task-finishing .check,.count-updated,#toast.today-celebration { animation:none; }
}

/* A visible, nonmodal completion reward. All decoration is local CSS/SVG. */
.completion-reward {
 position:fixed;z-index:30;left:50%;top:34%;width:min(420px,calc(100vw - 40px));
 display:flex;align-items:center;gap:20px;padding:26px 28px;border-radius:26px;
 color:#273e2e;background:linear-gradient(135deg,#fffffff5,#eef4e7ed);
 border:1px solid #fff;box-shadow:inset 0 2px 0 #fff,0 18px 70px #243a3040,0 0 0 7px #ffffff35;
 backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);
 pointer-events:none;transform:translate(-50%,-50%);animation:reward-arrive 1800ms ease both;
}
.reward-medallion { position:relative;flex:0 0 78px;height:78px;border-radius:50%;background:linear-gradient(135deg,#54795c,#294c38);box-shadow:inset 0 2px 0 #ffffff80,0 5px 18px #34533c30;animation:reward-tick-pop 650ms cubic-bezier(.2,.8,.25,1.3) both; }
.reward-medallion svg { width:100%;height:100%; }
.reward-medallion path { fill:none;stroke:#fffdf4;stroke-width:6;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:55;stroke-dashoffset:0;animation:reward-draw 500ms 120ms ease both; }
.reward-copy { min-width:0;position:relative; }
.reward-copy strong { display:block;font-size:25px;line-height:1.1;letter-spacing:-.5px; }
.reward-copy span { display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:9px;font-size:13px;line-height:1.45;overflow-wrap:anywhere; }
.reward-copy small { display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;margin-top:7px;font-size:11px;color:#51624e; }
.reward-burst { position:absolute;left:68px;top:50%;width:1px;height:1px; }
.reward-burst i { position:absolute;width:8px;height:8px;border-radius:2px;background:#78936b;animation:reward-particle 1100ms ease-out both; }
.reward-burst i:nth-child(even) { background:#b47d54;width:6px;height:11px; }
.milestone-reward { width:min(480px,calc(100vw - 40px));padding:32px;box-shadow:inset 0 2px 0 #fff,0 20px 85px #24432c50,0 0 0 12px #dce8cb66; }
.milestone-reward .reward-medallion { flex-basis:94px;height:94px; }
.milestone-reward .reward-copy strong { font-size:30px; }
.milestone-reward .reward-burst { left:80px; }
.milestone-reward .reward-burst i { width:10px;height:10px;animation-duration:1400ms; }
@keyframes reward-arrive {
 0%{opacity:0;transform:translate(-50%,-42%) scale(.88)}
 15%,86%{opacity:1;transform:translate(-50%,-50%) scale(1)}
 100%{opacity:0;transform:translate(-50%,-54%) scale(.98)}
}
@keyframes reward-tick-pop { 0%{transform:scale(.35)} 55%{transform:scale(1.14)} 80%{transform:scale(.96)} 100%{transform:scale(1)} }
@keyframes reward-draw { from{stroke-dashoffset:55} to{stroke-dashoffset:0} }
@keyframes reward-particle {
 0%,12%{opacity:0;transform:translate(0,0) scale(.4)}
 24%{opacity:1}
 75%{opacity:.9}
 100%{opacity:0;transform:translate(var(--burst-x),var(--burst-y)) rotate(var(--burst-rotate)) scale(.65)}
}
@media(max-width:620px) {
 .completion-reward { top:38%;gap:16px;padding:23px 20px; }
 .reward-medallion { flex-basis:68px;height:68px; }
 .reward-copy strong { font-size:23px; }
 .milestone-reward .reward-medallion { flex-basis:78px;height:78px; }
 .milestone-reward .reward-copy strong { font-size:26px; }
}
.completion-reward.static-reward,.static-reward * { animation:none!important; }
.static-reward .reward-burst { display:none; }
@media(prefers-reduced-motion:reduce) { .completion-reward,.completion-reward * { animation:none!important; } .reward-burst { display:none; } }
@media(prefers-reduced-transparency:reduce) { .completion-reward { background:#f4f7ed;backdrop-filter:none;-webkit-backdrop-filter:none; } }
.reward-burst i:nth-child(1) { --burst-x: 115px; --burst-y: 0px; --burst-rotate: 0deg; }
.reward-burst i:nth-child(2) { --burst-x: 100px; --burst-y: 57px; --burst-rotate: 43deg; }
.reward-burst i:nth-child(3) { --burst-x: 58px; --burst-y: 100px; --burst-rotate: 86deg; }
.reward-burst i:nth-child(4) { --burst-x: 0px; --burst-y: 115px; --burst-rotate: 129deg; }
.reward-burst i:nth-child(5) { --burst-x: -57px; --burst-y: 100px; --burst-rotate: 172deg; }
.reward-burst i:nth-child(6) { --burst-x: -100px; --burst-y: 57px; --burst-rotate: 215deg; }
.reward-burst i:nth-child(7) { --burst-x: -115px; --burst-y: 0px; --burst-rotate: 258deg; }
.reward-burst i:nth-child(8) { --burst-x: -100px; --burst-y: -57px; --burst-rotate: 301deg; }
.reward-burst i:nth-child(9) { --burst-x: -58px; --burst-y: -100px; --burst-rotate: 344deg; }
.reward-burst i:nth-child(10) { --burst-x: -0px; --burst-y: -115px; --burst-rotate: 387deg; }
.reward-burst i:nth-child(11) { --burst-x: 58px; --burst-y: -100px; --burst-rotate: 430deg; }
.reward-burst i:nth-child(12) { --burst-x: 100px; --burst-y: -58px; --burst-rotate: 473deg; }

.partner-portrait { width:128px;height:128px;border-radius:24px;overflow:hidden;display:grid;place-items:center;background:var(--soft);color:var(--accent);font:42px var(--title);margin-bottom:20px;border:2px solid #fff;box-shadow:0 5px 18px #34452e18; }
.partner-portrait img { display:block;width:100%;height:100%;object-fit:cover; }
.photo-editor .partner-portrait { margin:0 auto 16px; }
.photo-editor input[type=file] { font-size:12px; }
.profile-error { color:#8b432b;font-size:12px;white-space:pre-wrap; }
.profile-error:empty { display:none; }
.linkedin-action { display:block;color:var(--accent);font-size:13px;font-weight:600;text-decoration:underline;padding:12px 0; }
.linkedin-action:focus-visible { outline:3px solid var(--accent);outline-offset:3px; }
@media(max-width:620px) { .partner-portrait { width:104px;height:104px;border-radius:21px;font-size:36px; } }

/* Partners directory: explicit trial/demo scope, roomy tiles and compact list. */
.directory-scopes,.directory-layout { display:flex;gap:6px;flex-wrap:wrap; }
.directory-scopes button,.directory-layout button { padding:9px 13px;border:1px solid var(--line);border-radius:10px;background:var(--panel); }
.directory-scopes [aria-pressed=true],.directory-layout [aria-pressed=true] { background:var(--accent);color:white; }
.directory-notice { font-size:12px;color:var(--muted);margin:16px 0 22px;max-width:760px; }
.directory-controls { display:grid;grid-template-columns:minmax(180px,2fr) minmax(150px,1.4fr) minmax(120px,1fr);gap:10px 16px;align-items:end; }
.directory-controls label { margin:0; }
.directory-controls label input,.directory-controls label select { margin-top:6px;background:var(--panel); }
.directory-controls .needs-followup { display:flex;align-items:center;gap:8px;padding:9px 0; }
.needs-followup input { width:18px;height:18px;margin:0!important; }
.directory-layout { align-self:center; }
.partner-directory { display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:18px; }
.partner-card { display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:15px;padding:22px;border:1px solid #fff;border-radius:20px;background:linear-gradient(135deg,#fffffff0,#fffefae6);box-shadow:inset 0 1px 0 #fff,0 8px 24px #34452e12;min-width:0; }
.partner-card:hover { border-color:var(--accent);box-shadow:0 8px 24px #34452e22; }
.partner-card:active { background:var(--soft); }
.directory-portrait { width:76px;height:76px;flex:0 0 76px;border-radius:20px;display:grid;place-items:center;font:27px var(--title);background:#e1e9d8;color:#365540;overflow:hidden;border:2px solid #ffffff; }
.directory-portrait img { width:100%;height:100%;object-fit:cover; }
.tone-1 { background:#e8ddd1;color:#7b513b; }.tone-2 { background:#dce6e8;color:#3d5e69; }.tone-3 { background:#e8e4ce;color:#6b6338; }.tone-4 { background:#e4dfe9;color:#655471; }.tone-5 { background:#dce8df;color:#3c6951; }
.partner-card-main { display:flex;flex-direction:column;min-width:0;width:100%;gap:5px; }
.partner-card-main strong { font-size:17px;line-height:1.3;overflow-wrap:anywhere; }
.partner-business { font-size:12px;color:var(--muted);overflow-wrap:anywhere; }
.partner-specialty { font-size:11px;font-weight:600;color:var(--accent);margin:4px 0 10px; }
.partner-contact,.partner-next,.partner-ref-counts { font-size:11px;line-height:1.5;overflow-wrap:anywhere; }
.partner-contact,.partner-ref-counts { color:var(--muted); }
.partner-next { min-height:34px; }
.partner-next.overdue { color:#8b4e30;font-weight:600; }
.partner-ref-counts { border-top:1px solid var(--line);padding-top:10px;margin-top:5px; }
.directory-list { grid-template-columns:1fr;gap:10px; }
.directory-list .partner-card { flex-direction:row;align-items:center;padding:17px 20px; }
.directory-list .directory-portrait { width:64px;height:64px;flex-basis:64px; }
.directory-list .partner-card-main { display:grid;grid-template-columns:minmax(180px,1.4fr) minmax(150px,1fr);gap:4px 22px; }
.directory-list .partner-card-main strong,.directory-list .partner-business,.directory-list .partner-specialty { grid-column:1; }
.directory-list .partner-contact { grid-column:2;grid-row:1; }
.directory-list .partner-next { grid-column:2;grid-row:2; }
.directory-list .partner-ref-counts { grid-column:2;grid-row:3;border:0;padding:0;margin:0; }
.directory-list .partner-specialty { margin:2px 0; }
.directory-empty { text-align:center;padding:45px 20px;background:var(--panel);border-radius:18px; }
.partner-followup { padding:17px 20px;background:var(--soft);border-radius:14px;margin-bottom:20px; }
.partner-followup p { margin:5px 0 0;font-size:13px; }
#partner-heading:focus { outline:none; }
@media(max-width:620px) {
 .directory-controls { grid-template-columns:1fr 1fr;gap:12px; }
 .directory-controls label:first-child { grid-column:1/-1; }
 .directory-layout { display:none; }
 .partner-directory { grid-template-columns:1fr;gap:10px; }
 .partner-card,.directory-list .partner-card { flex-direction:row;padding:17px 14px;gap:13px;align-items:flex-start; }
 .directory-portrait,.directory-list .directory-portrait { width:58px;height:58px;flex-basis:58px;font-size:23px;border-radius:16px; }
 .partner-card-main,.directory-list .partner-card-main { display:flex;gap:4px; }
 .partner-card-main strong { font-size:15px; }
 .partner-specialty { margin:2px 0 6px; }
 .partner-next { min-height:0; }
 .partner-ref-counts { padding-top:7px;margin-top:4px; }
 .directory-scopes button { font-size:12px; }
}

/* Business performance uses its own read-only fictional ledger. */
.perf-notice { padding:22px 25px;border:1px solid #ffffff;border-radius:18px;background:linear-gradient(125deg,#ffffffbc,#eaf0e4a8);box-shadow:0 8px 22px #34452e0c; }
.perf-notice p { font-size:12px;color:var(--muted);max-width:780px; }
.perf-notice select { max-width:360px;background:var(--panel); }
.perf-section { margin:34px 0 40px; }
.perf-section > .section-title { align-items:flex-start;gap:15px; }
.perf-section > .section-title span { text-align:right;max-width:260px; }
.perf-results { display:grid;grid-template-columns:1fr 1fr;gap:18px; }
.perf-panel { min-width:0;background:linear-gradient(135deg,#fffffff2,#fffefae6);border:1px solid #fff;border-radius:18px;padding:23px;box-shadow:0 8px 26px #34452e0d; }
.perf-progress { margin-bottom:23px; }
.perf-progress > div { display:flex;justify-content:space-between;gap:18px;align-items:baseline;margin-bottom:11px; }
.perf-progress strong { font-size:13px; }
.perf-progress span { text-align:right;font-size:13px;font-weight:600; }
.perf-progress svg,.perf-forecast svg { display:block;width:100%;height:12px; }
.perf-track { fill:#e1e7db; }.perf-fill { fill:#52735a; }
.perf-progress small { display:block;color:var(--muted);margin-top:6px;font-size:11px; }
.perf-money { margin:0; }
.perf-money dt { color:var(--muted);font-size:12px;margin-top:15px; }
.perf-money dt:first-child { margin-top:0; }
.perf-money dd { margin:3px 0 0;font-size:25px;font-weight:550;letter-spacing:-.5px; }
.perf-details { margin:12px 0;border:1px solid var(--line);border-radius:12px;background:#fffefaaf; }
.perf-details summary { padding:14px 16px;cursor:pointer;font-weight:550;font-size:13px; }
.perf-details summary:focus-visible { outline:3px solid var(--accent);outline-offset:2px;border-radius:10px; }
.perf-details > .hint { padding:0 16px 12px; }
.perf-table-wrap { overflow-x:auto;max-width:100%;border-radius:10px; }
.perf-table { border-collapse:collapse;width:100%;min-width:420px;font-size:12px; }
.perf-table th,.perf-table td { padding:12px 14px;text-align:left;border-top:1px solid var(--line);vertical-align:top; }
.perf-table th { font-weight:600;font-size:11px;color:var(--muted);background:#eef1e7; }
.perf-table td { overflow-wrap:anywhere; }
.perf-forecast { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0; }
.perf-number { display:block;font-size:27px;font-weight:550;letter-spacing:-.6px;margin-top:13px; }
.perf-forecast p { font-size:12px;color:var(--muted); }
.perf-forecast .perf-panel { padding:20px; }
.perf-forecast .perf-table { min-width:360px; }
.attention-panel { margin-top:22px; }
.attention-panel h3 { margin-bottom:12px; }
.perf-ref-top { display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;font-size:14px; }
.perf-outcomes { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:22px 0 10px; }
.perf-outcomes strong { display:block;font-size:25px; }
.perf-outcomes span { display:block;font-size:11px;color:var(--muted); }
.perf-filter { display:flex;gap:10px;align-items:center;margin:0; }
.perf-filter select { width:130px;background:var(--panel); }
.perf-definitions dl { padding:0 22px 20px;font-size:12px; }
.perf-definitions dt { font-weight:600;margin-top:16px; }
.perf-definitions dd { margin:5px 0;color:var(--muted); }
@media(max-width:950px) {
 .perf-results { grid-template-columns:1fr; }
 .perf-forecast { grid-template-columns:1fr; }
 .perf-forecast .perf-table { min-width:360px; }
}
@media(max-width:620px) {
 .perf-notice,.perf-panel { padding:18px; }
 .perf-section > .section-title { flex-direction:column;gap:8px; }
 .perf-section > .section-title span { text-align:left; }
 .perf-progress > div { flex-direction:column;gap:4px; }
 .perf-progress span { text-align:left; }
 .perf-outcomes { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .perf-section { margin-bottom:28px; }
 .perf-ref-top { gap:9px; }
 .perf-money dd { font-size:24px; }
}
/* Keep amounts intact; small screens scroll the table rather than splitting digits. */
.perf-table td { white-space:nowrap;overflow-wrap:normal; }
.perf-table th { min-width:95px; }
.attention-panel .perf-table td:nth-child(n+4) { white-space:normal;min-width:170px; }
.perf-calculation { margin-top:18px; }
.perf-calculation p { font-size:13px;line-height:1.6; }
.perf-calculation .perf-table { margin-top:16px; }
.perf-details table td:nth-child(2) { max-width:360px; }

.perf-scenarios td:nth-child(2) { white-space:normal;min-width:240px;max-width:360px; }
