/* bjjbuilder — shared styles for My Skills (index.html), My Logs (logs.html), Knowledge Base (kb.html) and Admin (admin.html) */

/* Colours come from these tokens. Dark is the default (see theme.js); light is used when the person picks it. */
:root,[data-theme=light]{
--ground:#F3F4F0;--surface:#fff;--hover:#E9EBE6;--ink:#15181C;--muted:#565C64;--faint:#6B7078;--line:#8A9097;--faint-line:#A3A8AE;
--rule:rgba(21,24,28,.12);--card-border:rgba(21,24,28,.14);--shadow:rgba(21,24,28,.5);--scrim:rgba(21,24,28,.38);--dot:rgba(21,24,28,.2);
--accent:#2447D8;--accent-ink:#1B37B5;--accent-soft:#A9B6EE;--on-accent:#fff;--tint:#EEF1FD;
--danger:#A12B1B;--danger-bg:#A12B1B;--danger-tint:#F6E6E3;--good:#1E7A45;
--node:#15181C;--node-ink:#fff;--edge:#15181C;--belt-edge:rgba(21,24,28,.45)}
[data-theme=dark]{
--ground:#101216;--surface:#1A1D23;--hover:#272B33;--ink:#E8EAED;--muted:#9EA4AD;--faint:#80868F;--line:#5E646E;--faint-line:#4A5059;
--rule:rgba(255,255,255,.09);--card-border:rgba(255,255,255,.12);--shadow:rgba(0,0,0,.75);--scrim:rgba(0,0,0,.6);--dot:rgba(255,255,255,.12);
--accent:#4D6CF5;--accent-ink:#AFBEFF;--accent-soft:#3A4A8F;--on-accent:#fff;--tint:#1E2647;
--danger:#FF8C78;--danger-bg:#C23F2B;--danger-tint:#3B201C;--good:#55C98F;
--node:#E6E8EC;--node-ink:#14171B;--edge:#AEB4BD;--belt-edge:rgba(255,255,255,.4)}
*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--ground);color:var(--ink);font-family:'Archivo',system-ui,-apple-system,'Segoe UI',sans-serif;font-size:16px;line-height:1.4}
[hidden]{display:none !important}
button{font:inherit;color:inherit;cursor:pointer}
button:disabled{cursor:not-allowed}
button:disabled{opacity:.45}
input,textarea{font-family:inherit}
input::placeholder,textarea::placeholder{color:var(--faint)}
input[type=checkbox]{width:18px;height:18px;margin:0;accent-color:var(--accent)}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
h1,h2,p,ul{margin:0}
a{color:var(--muted);text-decoration:none}
a:hover{color:var(--ink)}

/* ---------- top navigation ---------- */
.topbar{flex:none;position:relative;z-index:20;height:56px;padding:0 20px;display:flex;align-items:center;gap:24px;background:var(--ground);border-bottom:1px solid var(--rule)}
.brand{display:flex;align-items:center;gap:9px;font-size:19px;font-weight:800;font-stretch:118%;letter-spacing:-.01em;color:var(--ink)}
.brand span span{font-weight:500}
.topbar nav{align-self:stretch;display:flex;gap:4px}
.topbar nav>a,.topbar nav>span,.topbar .side a,.topbar .side span[aria-current]{display:flex;align-items:center;min-height:44px;white-space:nowrap}
.topbar nav>a,.topbar nav>span{padding:0 10px;font-size:15px;font-weight:600}
.topbar .side{align-self:stretch;margin-left:auto;display:flex;align-items:center;gap:16px}
.topbar .side a,.topbar .side span[aria-current]{align-self:stretch;padding:0 6px;font-size:14px;font-weight:600}
.topbar [aria-current=page]{color:var(--ink);font-weight:700 !important;box-shadow:inset 0 -3px 0 var(--accent)}

/* ---------- account ---------- */
#account{display:flex;align-items:center;gap:10px}
.google-button{display:flex;align-items:center;min-height:32px}
.account-error{max-width:220px;font-size:13px;font-weight:600;color:var(--danger)}
.account-busy{font-size:13px;font-weight:600;color:var(--muted)}
.topbar .side a.email-signin{align-self:center;min-height:32px;padding:0 12px;border:1px solid var(--card-border);border-radius:999px;font-size:13px;font-weight:700;color:var(--ink)}
.topbar .side a.email-signin:hover{border-color:var(--line)}
.account-button{width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;display:flex;align-items:center;justify-content:center}
.account-button:hover{background:var(--hover)}
.avatar{width:30px;height:30px;border-radius:50%;background:var(--ink);color:var(--ground);display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;object-fit:cover}
.account-menu{z-index:30;right:12px;top:52px;width:260px;max-width:calc(100% - 24px);padding:8px;display:flex;flex-direction:column;gap:2px}
.account-who{display:flex;flex-direction:column;margin-bottom:4px;padding:8px 10px 10px;border-bottom:1px solid var(--rule);font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.account-who strong{font-size:15px;color:var(--ink)}
.account-item{min-height:44px;padding:0 10px;border:0;border-radius:10px;background:transparent;text-align:left;font-size:14px;font-weight:600}
.account-item:hover{background:var(--hover)}
a.account-item{display:flex;align-items:center;color:var(--ink)}
a.account-admin{display:none}
.account-confirm{display:flex;flex-direction:column;gap:8px;padding:8px 10px;font-size:14px}
#save-status{font-size:13px;color:var(--muted);white-space:nowrap}
.is-booting #welcome{visibility:hidden}

/* ---------- buttons ---------- */
.primary{height:48px;padding:0 24px;border:0;border-radius:12px;background:var(--accent);color:var(--on-accent);font-size:15px;font-weight:700}
.primary:hover:not(:disabled){filter:brightness(.86)}
.primary.big{height:56px;padding:0 30px;border-radius:14px;font-size:17px}
.primary.small,.ghost.small{height:44px;border-radius:10px;font-size:14px}
.primary.small{padding:0 18px}
.ghost{height:48px;padding:0 18px;border:0;border-radius:12px;background:transparent;font-size:15px;font-weight:600}
.ghost.small{padding:0 14px}
.ghost:hover{background:var(--hover)}
.icon-button{flex:none;width:44px;height:44px;padding:0;border:0;border-radius:10px;background:transparent;display:flex;align-items:center;justify-content:center}
.icon-button:hover{background:var(--hover)}
.ghost.danger{color:var(--danger)}
.ghost.danger:hover{background:var(--danger-tint)}
.primary.danger{background:var(--danger-bg)}
.opt{border:1.5px solid var(--line);background:var(--surface);border-radius:10px;font-weight:600}
.opt:hover{border-color:var(--ink)}
.opt.is-on{border-color:var(--accent);background:var(--tint);box-shadow:inset 0 0 0 1px var(--accent)}
.field{display:flex;flex-direction:column;gap:6px}
.field.roomy{gap:10px}
.field label{font-size:13px;font-weight:600;color:var(--muted)}
.field input[type=text]{width:100%;height:48px;padding:0 14px;border:1.5px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font-size:16px}
.check{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px;font-weight:600;cursor:pointer}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chips .opt{min-height:44px;padding:0 12px;border-radius:999px;font-size:13px}
.chips .opt.is-on{box-shadow:none}
.row-end{display:flex;justify-content:flex-end;gap:8px}
.row-between{display:flex;justify-content:space-between;gap:8px}
.eyebrow{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent)}
.swatch{flex:none;position:relative;overflow:hidden;width:30px;height:12px;border-radius:2px;border:1px solid var(--belt-edge)}
.swatch i{position:absolute;right:4px;top:0;bottom:0;width:9px}
.swatch.none{border:1.5px dashed var(--faint)}

/* ---------- My Skills ---------- */
.app{display:flex;flex-direction:column;height:100vh;min-height:660px}
.workspace{position:relative;flex:1;min-height:0;display:flex}
#root{position:relative;flex:1;min-width:0;min-height:0;overflow:hidden}
#webs-toggle{margin-left:-10px;margin-right:-14px}

/* the list of webs: beside the graph on wide screens, sliding over it on phones */
#webs{flex:none;width:256px;padding:18px 12px;display:flex;flex-direction:column;gap:12px;overflow-y:auto;background:var(--surface);border-right:1px solid var(--rule);margin-left:-257px;visibility:hidden;transition:margin-left .32s cubic-bezier(.2,.7,.2,1),visibility 0s .32s}
.webs-open #webs{margin-left:0;visibility:visible;transition:margin-left .32s cubic-bezier(.2,.7,.2,1),visibility 0s}
.webs-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:0 6px}
.webs-head h2{font-size:16px;font-weight:800;font-stretch:110%}
.webs-head span{font-size:12px;font-weight:600;color:var(--muted)}
#web-new{flex:none;display:flex;align-items:center;justify-content:center;gap:8px}
.webs-note{padding:0 6px;font-size:13px;color:var(--muted)}
.web-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.web{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;border-radius:10px}
.web:hover{background:var(--ground)}
.web[aria-current]{background:var(--tint)}
.web[aria-current]::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:0 3px 3px 0;background:var(--accent)}
.web-open{min-width:0;min-height:54px;padding:7px 4px 7px 14px;border:0;border-radius:10px;background:transparent;text-align:left;display:flex;flex-direction:column;justify-content:center;gap:1px}
.web-name{font-size:14px;font-weight:700;line-height:1.3;overflow:hidden;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3}
.web[aria-current] .web-name{color:var(--accent-ink)}
.web-meta{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.web-meta b{font-weight:700;color:var(--danger)}
.web .web-more{width:36px;height:36px;margin-right:4px;color:var(--muted)}
@media (hover:hover){
.web:not(:hover):not(:focus-within):not([aria-current]) .web-more[aria-expanded=false]{opacity:0}
}
.web-tools{grid-column:1 / -1;display:flex;flex-direction:column;gap:8px;padding:2px 8px 10px 14px;font-size:13px}
.web-tools p{color:var(--ink)}
.web-tools input{width:100%;height:42px;padding:0 10px;border:1.5px solid var(--accent);border-radius:8px;background:var(--surface);color:var(--ink);font-size:14px}
.web-tools .row-end{gap:4px}
.web-tool{min-height:40px;padding:0 10px;border:0;border-radius:8px;background:transparent;text-align:left;font-size:14px;font-weight:600}
.web-tool:hover{background:var(--hover)}
.web-tool.danger{color:var(--danger)}
a.web-tool{display:flex;align-items:center;color:var(--ink)}
#grid{position:absolute;inset:0;background-image:radial-gradient(circle,var(--dot) 1px,transparent 1.5px);background-size:20px 20px;background-position:center}
#stage{position:absolute;inset:0;touch-action:none;cursor:grab}
#stage.is-panning{cursor:grabbing}
/* the graph itself: panned and zoomed as one; positions inside it are measured from its centre */
#world{position:absolute;left:50%;top:50%;width:0;height:0;transform-origin:0 0}
#zoom{z-index:6;left:20px;bottom:20px;display:flex;align-items:center;gap:2px;padding:4px;border-radius:14px}
#zoom button{min-width:36px;height:36px;padding:0 8px;border:0;border-radius:10px;background:transparent;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700}
#zoom button:hover:not(:disabled){background:var(--hover)}
#zoom-reset{min-width:58px !important;font-variant-numeric:tabular-nums}
#chip{display:flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;background:var(--surface);border:1px solid var(--card-border);font-size:13px;font-weight:600}
#chip .swatch{width:28px;height:11px}

#welcome{position:absolute;inset:0;padding:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:30px;text-align:center}
#welcome h1{font-size:clamp(34px,5.4vw,64px);line-height:1.04;font-weight:800;font-stretch:112%;letter-spacing:-.025em;text-wrap:balance}

/* question card: centred for the profile questions, docked beside the graph once it starts filling in */
#card{position:absolute;z-index:10;left:50%;top:50%;transform:translate(-50%,-50%);width:min(480px,calc(100% - 32px));transition:left .5s cubic-bezier(.2,.7,.2,1),transform .5s cubic-bezier(.2,.7,.2,1),width .5s cubic-bezier(.2,.7,.2,1)}
#card.is-docked{left:24px;transform:translate(0,-50%);width:min(420px,calc(100% - 32px))}
.card{padding:28px;background:var(--surface);border:1px solid var(--rule);border-radius:20px;box-shadow:0 30px 60px -30px var(--shadow)}
.step{display:flex;flex-direction:column;gap:20px}
.q-head{display:flex;flex-direction:column;gap:6px}
.step h2{font-size:24px;line-height:1.18;font-weight:800;font-stretch:110%;letter-spacing:-.01em;text-wrap:balance}
#step-rank h2,#step-experience h2{font-size:26px;line-height:1.15}
.step .chips{min-height:44px}
.rank-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.rank-grid .opt{display:flex;align-items:center;gap:10px;min-height:48px;padding:0 12px;font-size:15px;text-align:left}
.stripes{display:flex;flex-direction:column;gap:10px}
.stripes-head{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;font-weight:700}
.belt{flex:none;width:150px;height:20px;padding-right:14px;border-radius:3px;border:1px solid var(--belt-edge);display:flex;justify-content:flex-end}
.belt-bar{width:54px;display:flex;align-items:stretch;justify-content:center;gap:5px}
.belt-bar i{width:5px;background:#FFFFFF}
.stripe-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.stripe-grid .opt{min-height:44px;padding:0;font-size:15px;font-weight:700}
.level-list{display:flex;flex-direction:column;gap:8px}
.level-list .opt{min-height:52px;padding:0 16px;font-size:16px;text-align:left}
.error{font-size:13px;font-weight:600;color:var(--danger)}

/* graph */
.node{position:absolute;transform:translate(-50%,-50%);width:148px;min-height:48px;padding:7px 14px;border:0;border-radius:12px;background:var(--node);color:var(--node-ink);font-size:14px;font-weight:650;letter-spacing:.01em;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.node .label{display:block;overflow-wrap:anywhere;line-height:1.24}
.node.is-selectable{cursor:pointer;box-shadow:0 0 0 3px var(--ground),0 0 0 5px var(--accent-soft)}
.node.is-selected{box-shadow:0 0 0 3px var(--ground),0 0 0 6px var(--accent)}
.node.is-selecting{cursor:pointer}
.node .badge{position:absolute;left:24px;top:-11px;padding:1px 7px;border-radius:5px;background:var(--accent);color:var(--on-accent);font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase}
.node .dot{position:absolute;right:-4px;top:-4px;width:12px;height:12px;border-radius:50%;background:var(--accent);border:2px solid var(--ground)}
.belt-badge{position:absolute;left:-11px;top:-11px;width:28px;height:28px;border-radius:50%;background:#FFFFFF;border:1.5px solid rgba(21,24,28,.22);box-shadow:0 0 0 2px var(--ground),0 3px 8px -3px var(--belt-edge);display:flex;align-items:center;justify-content:center}
.belt-badge svg{display:block}
.heat-badge{position:absolute;right:-11px;bottom:-11px;width:28px;height:28px;border-radius:50%;background:var(--surface);border:1.5px solid var(--card-border);box-shadow:0 0 0 2px var(--ground),0 3px 8px -3px var(--shadow);display:flex;align-items:center;justify-content:center;font-size:15px;line-height:1}
.heat-badge.pop{animation:pop .45s both}
.node-net{font-size:13px;font-weight:600;color:var(--muted)}
.callout{position:absolute;z-index:1;width:max-content;max-width:240px;display:flex;flex-direction:column;align-items:flex-start;gap:3px;pointer-events:none}
.callout.is-left{align-items:flex-end}
.callout>span{--c:var(--muted);max-width:100%;display:flex;align-items:baseline;gap:5px;padding:3px 8px 3px 6px;border-radius:7px;background:var(--surface);border:1px solid var(--card-border);box-shadow:inset 3px 0 0 var(--c),0 4px 10px -6px var(--shadow);font-size:12px;font-weight:700;line-height:1.3;transform-origin:left center}
.callout>span>b{flex:none;width:9px;margin-left:2px;text-align:center;color:var(--c);font-weight:800}
.callout>span>span{min-width:0;white-space:pre-line;overflow-wrap:anywhere}
.callout .is-strengths{--c:var(--good)}
.callout .is-weaknesses{--c:var(--danger)}
#draft{position:absolute;transform:translate(-50%,-50%);width:148px;height:48px;padding:0 14px;border:2px dashed var(--accent);border-radius:12px;background:var(--tint);color:var(--accent-ink);font-size:14px;font-weight:650;letter-spacing:.01em;display:flex;align-items:center;justify-content:center;pointer-events:none}
#draft span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.edge{--c:var(--edge);position:absolute;height:0;border-top:2px solid var(--c);transform-origin:0 0;pointer-events:none}
.edge i{position:absolute;right:-1px;top:-6px;width:0;height:0;border-left:10px solid var(--c);border-top:5px solid transparent;border-bottom:5px solid transparent}
.edge.is-draft{border-top-style:dashed}
.edge.is-lit{--c:var(--accent)}
/* a wider band along the line takes the press, so a 2px arrow is easy to hit */
/* --z is the zoom, so the band is about 16px on screen however far in or out the web is */
.edge.can-label::before{content:'';position:absolute;left:0;right:-2px;top:calc(-1px - 8px / var(--z, 1));height:calc(16px / var(--z, 1));pointer-events:auto;cursor:pointer}
.edge.can-label:hover{--c:var(--accent)}
.edge-label{position:absolute;transform:translate(-50%,-50%);display:block;width:max-content;max-width:200px;padding:3px 10px;border:1px solid var(--card-border);border-radius:12px;background:var(--surface);color:var(--muted);font-size:12px;font-weight:650;line-height:1.25;text-align:center;overflow-wrap:anywhere;box-shadow:0 3px 8px -4px var(--shadow)}
.edge-label:hover{color:var(--ink);border-color:var(--line)}
.edge-label.is-lit{color:var(--accent-ink);border-color:var(--accent)}
.edge-label.plop{animation:plop .6s both}

/* builder chrome */
.floating{position:absolute;background:var(--surface);border:1px solid var(--card-border);border-radius:18px;box-shadow:0 16px 32px -20px var(--shadow)}
#toolbar{z-index:6;left:20px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:6px;padding:6px}
.tool{width:128px;min-height:80px;padding:10px 4px;border:0;border-radius:12px;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;font-size:13px;font-weight:600;line-height:1.2}
.tool:hover{background:var(--hover)}
.tool.is-on{background:var(--accent);color:var(--on-accent)}
.tool-public{position:relative;min-height:72px}
.tool-public::before{content:"";position:absolute;left:16px;right:16px;top:-4px;height:1px;background:var(--rule)}
.switch-graphic{position:relative;width:40px;height:24px;border-radius:999px;background:var(--line);transition:background .2s}
.switch-graphic::after{content:"";position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.35);transition:transform .32s cubic-bezier(.3,1.6,.5,1)}
.tool-public[aria-checked=true] .switch-graphic{background:var(--accent)}
.tool-public[aria-checked=true] .switch-graphic::after{transform:translateX(16px)}
.panel{z-index:6;left:176px;top:50%;transform:translateY(-50%);width:300px;padding:18px;display:flex;flex-direction:column;gap:14px}
.panel h2{font-size:18px;font-weight:800;font-stretch:110%}
.panel p{font-size:14px;color:var(--muted)}
.panel .field{gap:8px}
.panel .field input[type=text]{height:46px;padding:0 12px}
.from-row{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 4px 0 12px;border-radius:10px;background:var(--ground);font-size:14px;font-weight:600;color:var(--muted)}
.from-row b{flex:none;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.from-row span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.from-row.is-set{background:var(--tint);color:var(--accent-ink)}
.from-row .icon-button{width:36px;height:36px;color:inherit}
.from-row:not(.is-set){padding-right:12px}
.field-note{font-size:13px;color:var(--accent-ink)}
.panel .connect-done{color:var(--ink);font-weight:600}
.panel .connect-done:empty{display:none}
.panel .connect-label{align-self:flex-start;height:40px;margin:-6px 0 0 -12px;color:var(--accent-ink)}
/* labelling an arrow, in the node's panel */
.edge-edit{flex:none;display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:12px;background:var(--ground);box-shadow:inset 0 0 0 1.5px var(--accent)}
.edge-edit label{font-size:13px;font-weight:700;overflow-wrap:anywhere}
.edge-edit input[type=text]{width:100%;height:42px;padding:0 12px;border:1.5px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font:inherit;font-size:15px}
.edge-edit input[type=text]:focus{border-color:var(--accent)}
.edge-starts .opt{min-height:32px;padding:0 10px;font-size:12.5px}
.edge-edit .row-end{gap:2px}
.edge-edit .small{height:38px;padding:0 12px;font-size:13px}

/* goals: notes made into goals, in the top-left corner */
#goals{z-index:6;left:20px;top:20px;width:272px;max-height:calc(50% - 158px);min-height:46px;display:flex;flex-direction:column;overflow:hidden}
#goals.is-closed{max-height:none}
.goals-head{flex:none;display:flex;align-items:center;gap:8px;min-height:46px;padding:0 14px;border:0;border-radius:18px;background:transparent;color:var(--ink);text-align:left;font-size:14px;font-weight:800;font-stretch:110%}
.goals-head>svg:first-child{color:var(--accent)}
.goals-head .count{margin-left:auto;font-size:12px;font-weight:600;font-stretch:100%;color:var(--muted)}
.goals-head .chev{flex:none;color:var(--muted);transition:transform .2s}
#goals.is-closed .chev{transform:rotate(-90deg)}
.goals-body{min-height:0;overflow-y:auto;padding:0 8px 10px}
.goal-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.goal{display:flex;align-items:flex-start;gap:4px;border-radius:9px}
.goal-main{flex:1;min-width:0;display:flex;flex-direction:column;padding-bottom:6px}
.goal-for{display:flex;flex-wrap:wrap;gap:3px;padding:0 6px 0 2px}
.goal-node{max-width:100%;min-height:24px;padding:0 8px;border:0;border-radius:999px;background:var(--tint);color:var(--accent-ink);font-size:11.5px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.goal-node:hover{background:var(--accent-soft);color:var(--ink)}
.goal-open:disabled{opacity:1;cursor:default}
.goal-add{align-self:flex-start;min-height:36px;margin:4px 0 0;padding:0 8px;border:0;border-radius:8px;background:transparent;color:var(--accent-ink);font-size:13px;font-weight:700}
.goal-add:hover{background:var(--tint)}
.goal-undo{margin:0 0 6px;padding:8px 10px;border-radius:9px;background:var(--tint);font-size:12.5px;font-weight:600;color:var(--ink);animation:pop .4s both}
.goal-undo-button{padding:0;border:0;background:transparent;font:inherit;font-weight:800;color:var(--accent-ink);text-decoration:underline}
#goals .goals-body{display:flex;flex-direction:column}
/* adding or changing a goal */
#panel-goal textarea{width:100%;min-height:62px;padding:9px 12px;border:1.5px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font:inherit;font-size:15px;line-height:1.4;resize:vertical}
#panel-goal textarea:focus,#panel-goal input[type=text]:focus{border-color:var(--accent)}
.goal-picked{display:flex;flex-wrap:wrap;gap:4px}
.goal-picked .practice-chip button{width:26px;height:26px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;display:flex;align-items:center;justify-content:center}
.goal-picked .practice-chip button:hover{background:var(--accent-soft)}
.panel .goal-tip{font-size:12.5px}
/* a node's goals and what the logs say about it */
.node-goals{flex:none}
.node-goal-list{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.node-goal{max-width:100%;min-height:32px;padding:4px 8px 4px 4px;border:0;border-radius:8px;background:transparent;display:flex;align-items:flex-start;gap:6px;text-align:left;font-size:13px;font-weight:700;line-height:1.3}
.node-goal svg{flex:none;width:15px;height:15px;margin-top:1px;color:var(--accent)}
.node-goal:hover{background:var(--ground)}
.node-goal-add{min-height:32px;padding:0 6px;border:0;border-radius:8px;background:transparent;color:var(--accent-ink);font-size:13px;font-weight:700}
.node-goal-add:hover{background:var(--tint)}
.node-history{flex:none;display:flex;flex-direction:column;gap:3px;padding:10px 12px;border-radius:12px;background:var(--ground);font-size:13.5px}
.node-history b{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.node-history p{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;font-weight:600}
.node-history a{align-self:flex-start;font-size:13px;font-weight:700;color:var(--accent-ink)}
.node-history a:hover{color:var(--ink);text-decoration:underline}
.node-history .is-well,.move-counts .is-well{color:var(--good)}
.node-history .is-bad,.move-counts .is-bad{color:var(--danger)}
.trend-chip{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;background:var(--hover);color:var(--muted);font-size:11.5px;font-weight:800;white-space:nowrap}
.trend-chip.is-up{background:color-mix(in srgb,var(--good) 18%,transparent);color:var(--good)}
.trend-chip.is-down{background:var(--danger-tint);color:var(--danger)}
.trend-chip.is-fresh{background:var(--tint);color:var(--accent-ink)}
.goal:hover{background:var(--ground)}
.goal input[type=checkbox]{flex:none;width:20px;height:20px;margin:10px 4px 0 6px;cursor:pointer;accent-color:var(--good)}
.goal-open{flex:1;min-width:0;min-height:40px;padding:7px 8px 7px 2px;border:0;background:transparent;text-align:left;display:flex;flex-direction:column;gap:1px}
.goal-text{font-size:13.5px;font-weight:700;line-height:1.3;overflow-wrap:anywhere}
.goal-node{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.goal.is-done .goal-text{color:var(--muted);font-weight:600;text-decoration:line-through;text-decoration-thickness:1.5px}
.goals-empty{padding:2px 6px 4px;font-size:13px;color:var(--muted)}
#notes{z-index:8;right:20px;top:20px;bottom:20px;width:360px;padding:18px;display:flex;flex-direction:column;gap:12px;overflow-y:auto}
.notes-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.notes-head>div{min-width:0;display:flex;flex-direction:column;gap:3px}
.notes-head h2{font-size:20px;line-height:1.15;font-weight:800;font-stretch:110%;overflow-wrap:anywhere}
.notes-head .sub{font-size:13px;color:var(--muted)}
.notes-head .icon-button{margin:-8px -8px 0 0}
.kb-link{align-self:flex-start;display:inline-flex;align-items:center;gap:5px;min-height:28px;font-size:13px;font-weight:700;color:var(--accent-ink)}
.kb-link:hover{color:var(--ink)}

/* colour tags: the swatches in a node's panel, and the node itself */
.colors{flex:none;display:flex;align-items:flex-start;gap:10px}
.colors>span{flex:none;width:58px;padding-top:9px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.color-picks{flex:1;display:flex;flex-wrap:wrap;gap:2px}
.color-pick{width:34px;height:34px;padding:0;border:0;border-radius:50%;background:transparent;display:flex;align-items:center;justify-content:center}
.color-pick i{width:22px;height:22px;border-radius:50%;background:var(--sw,var(--node));box-shadow:inset 0 0 0 1px var(--card-border);transition:transform .15s}
.color-pick[data-color=""] i{background:linear-gradient(135deg,transparent 45%,var(--muted) 45%,var(--muted) 55%,transparent 55%),var(--surface);box-shadow:inset 0 0 0 1.5px var(--line)}
.color-pick:hover i{transform:scale(1.1)}
.color-pick.is-on i{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--ink)}
.color-pick.pop i{animation:pop .45s both}
[data-color=red]{--sw:#D93036;--sw-ink:#fff}
[data-color=orange]{--sw:#F38B32;--sw-ink:#1B1205}
[data-color=yellow]{--sw:#F5C73B;--sw-ink:#1F1A05}
[data-color=green]{--sw:#23804F;--sw-ink:#fff}
[data-color=teal]{--sw:#11817F;--sw-ink:#fff}
[data-color=blue]{--sw:#3B5BDB;--sw-ink:#fff}
[data-color=purple]{--sw:#7E4CC8;--sw-ink:#fff}
[data-color=pink]{--sw:#C93D8B;--sw-ink:#fff}
.node[data-color]:not([data-color=""]){background:var(--sw);color:var(--sw-ink)}

/* the open node's arrows in and out */
.links{flex:none;display:flex;flex-direction:column;gap:6px}
.links-row{display:flex;align-items:flex-start;gap:10px}
.links-row>b{flex:none;width:58px;padding-top:7px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.link-chips{flex:1;min-width:0;display:flex;flex-wrap:wrap;gap:5px}
.link-none{padding-top:5px;font-size:13px;color:var(--muted)}
.link-chip{max-width:100%;display:flex;align-items:center;border-radius:999px;border:1px solid var(--card-border);background:var(--surface)}
.link-go{min-width:0;min-height:32px;padding:3px 4px 3px 11px;border:0;background:transparent;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;font-size:13px;font-weight:600;text-align:left}
.link-name,.link-label{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.link-label{font-size:11.5px;font-weight:600;color:var(--muted)}
.link-chip.has-label{border-radius:12px}
.link-tag{flex:none;width:28px;height:32px;padding:0;border:0;background:transparent;color:var(--muted);display:flex;align-items:center;justify-content:center}
.link-tag:hover{color:var(--accent-ink)}
.link-go:hover{color:var(--accent-ink)}
.link-chip.has-label .link-cut{border-radius:0 12px 12px 0}
.link-cut{flex:none;width:30px;height:32px;padding:0;border:0;border-radius:0 999px 999px 0;background:transparent;color:var(--muted);display:flex;align-items:center;justify-content:center}
.link-cut:hover{background:var(--danger-tint);color:var(--danger)}

/* "this consistently works on ___ belts" */
.works{flex:none;display:flex;flex-direction:column;gap:10px;padding:12px 12px 12px 14px;border-radius:12px;background:var(--ground)}
.works-text{font-size:14px;font-weight:600}
.works-text b{font-weight:800}
.works-text b.is-blank{display:inline-block;width:52px;height:1em;vertical-align:-2px;border-bottom:2px solid var(--line)}
.works-belts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
.belt-pick{min-width:0;min-height:52px;padding:9px 4px 6px;border:1.5px solid transparent;border-radius:10px;background:var(--surface);display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:6px;font-size:11.5px;font-weight:700;color:var(--muted);transition:opacity .2s}
.belt-pick:hover{border-color:var(--line)}
.belt-pick .mini{position:relative;width:100%;max-width:44px;height:12px;border-radius:2px;border:1px solid var(--belt-edge)}
.belt-pick .mini i{position:absolute;right:5px;top:0;bottom:0;width:8px}
.works.is-set .belt-pick:not(.is-lit){opacity:.38}
.belt-pick.is-lit{color:var(--ink)}
.belt-pick.is-on,.belt-pick.is-on:hover{border-color:var(--accent);color:var(--accent-ink);box-shadow:0 0 0 1px var(--accent)}

/* notes: each one stays put until its edit button is pressed */
.note{flex:none;display:flex;flex-direction:column;gap:8px;padding:10px 10px 10px 12px;border:1.5px solid var(--line);border-radius:12px}
.note h3{display:flex;align-items:center;gap:8px;margin:0;font-size:13px;font-weight:700}
.note h3 .count{margin-left:auto;padding-right:2px;font-weight:600;color:var(--muted)}
.note-list{list-style:none;margin:0 0 0 -6px;padding:0;display:flex;flex-direction:column;gap:4px}
.note-list:empty{display:none}
.note-item{position:relative;display:flex;flex-wrap:wrap;align-items:flex-start;border-radius:9px;background:var(--ground)}
.note-list.is-sorting .note-item{transition:transform .18s cubic-bezier(.2,.7,.2,1)}
.note-list.is-sorting .note-item.is-dragging{z-index:2;transition:none;background:var(--surface);box-shadow:0 0 0 1.5px var(--accent),0 12px 24px -12px var(--shadow)}
.note-item .grip{flex:none;width:24px;height:36px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--line);display:flex;align-items:center;justify-content:center;cursor:grab;touch-action:none}
.note-item .grip:hover{color:var(--ink)}
.note-item .grip:disabled{visibility:hidden}
.is-sorting .grip{cursor:grabbing}
.note-body{flex:1;min-width:0;padding:8px 2px 8px 0;display:flex;flex-direction:column;gap:3px}
.note-text{font-size:14.5px;line-height:1.38;white-space:pre-wrap;overflow-wrap:anywhere}
.note-item.is-priority .note-text{font-weight:800}
.note-tags{display:flex;flex-wrap:wrap;gap:4px 8px;font-size:11.5px;font-weight:700}
.tag-goal{color:var(--accent-ink)}
.tag-goal.is-done{color:var(--good)}
.tag-log{font-weight:600;color:var(--muted)}
.note-item .icon-button{width:28px;height:36px;color:var(--muted)}
.note-item .goal-toggle.is-on{color:var(--accent)}
.note-item .goal-toggle.is-on svg circle:nth-child(2){fill:var(--tint)}
.note-item .icon-button:hover{color:var(--ink)}
.note-item .star svg{fill:none}
.note-item .star.is-on{color:#C98500}
.note-item .star.is-on svg{fill:#F2B529}
.note-item .share.is-on{color:var(--good)}
.note-item .share.is-mark{cursor:default;background:transparent}
a.icon-button{color:inherit}
.note-item.is-editing{flex-direction:column;align-items:stretch;gap:8px;padding:8px 8px 8px 14px;background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--accent)}
.note-item.is-editing textarea{width:100%;min-height:60px;padding:6px 8px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink);font-size:14.5px;line-height:1.38;resize:none}
.note-item.is-editing .row-between{align-items:center}
.note-item.is-editing .row-between div{display:flex;gap:4px}
.note-item.is-editing .small{height:38px}
/* links and images kept with a note: under its words, in its panel only */
.note-item .attach.is-on{color:var(--accent)}
.note-res{flex:1 0 100%;display:flex;flex-direction:column;gap:6px;padding:0 10px 9px 24px;margin-top:-4px}
.res-links,.res-images{list-style:none;margin:0;padding:0}
.res-links{display:flex;flex-direction:column;gap:2px}
.res-link{display:flex;align-items:flex-start;gap:2px}
.res-link a{display:inline-flex;align-items:flex-start;gap:5px;min-width:0;padding:3px 0;color:var(--accent-ink);font-size:13px;font-weight:650;line-height:1.35;text-decoration:underline;text-underline-offset:2px}
.res-link a svg{flex:none;margin-top:2px}
.res-link a span{min-width:0;overflow-wrap:anywhere}
.res-images{display:flex;flex-wrap:wrap;gap:8px}
.res-image{position:relative}
.res-thumb{display:block;width:64px;height:64px;padding:0;border:1px solid var(--card-border);border-radius:8px;overflow:hidden;background:var(--surface);cursor:zoom-in}
.res-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.res-missing{display:flex;align-items:center;justify-content:center;width:64px;height:64px;padding:4px;border:1px dashed var(--line);border-radius:8px;color:var(--muted);font-size:11px;font-weight:600;line-height:1.2;text-align:center}
.note-item .res-remove{width:28px;height:28px;border-radius:8px}
.res-image .res-remove{position:absolute;top:-8px;right:-8px;border-radius:50%;background:var(--surface);box-shadow:0 0 0 1px var(--line)}
.res-image{display:flex;flex-direction:column;align-items:center;gap:4px}
.res-show{height:26px;padding:0 10px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--muted);font-size:11.5px;font-weight:700}
.res-show:hover{color:var(--ink);border-color:var(--ink)}
.res-show.is-on{border-color:var(--accent);background:var(--tint);color:var(--accent-ink)}
/* images a note shows on the web: a fixed size, so where they go can be worked out before they load */
.callout-images{display:flex;flex-wrap:wrap;gap:4px}
.callout-images img{display:block;width:104px;height:78px;border:1px solid var(--card-border);border-radius:8px;background:var(--surface);object-fit:cover;box-shadow:0 4px 10px -6px var(--shadow);pointer-events:auto;cursor:zoom-in}
.callout-images img.plop{animation:pop .5s both}
.note-item.is-attaching{background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--accent)}
.res-form{flex:1 0 100%;display:flex;flex-direction:column;gap:8px;padding:0 10px 10px 24px}
.res-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.res-row input[type=url]{flex:1 1 150px;min-width:0;height:40px;padding:0 10px;border:1.5px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);font:inherit;font-size:14px}
.res-row input[type=url]:focus{border-color:var(--accent)}
.res-form .outline.small{height:40px;padding:0 12px;font-size:13.5px}
.res-form .primary.small{height:40px}
.res-hint{color:var(--muted);font-size:12.5px;font-weight:600}
/* an image full size */
.image-view{width:min(960px,calc(100% - 24px));max-height:calc(100% - 32px);padding:0;border:0;border-radius:16px;background:var(--surface);color:var(--ink);box-shadow:0 30px 60px -20px var(--shadow)}
.image-view[open]{display:flex;flex-direction:column}
.image-view::backdrop{background:var(--scrim)}
.image-view-head{flex:none;display:flex;align-items:center;gap:12px;padding:8px 8px 8px 18px;border-bottom:1px solid var(--rule)}
.image-view-name{flex:1;min-width:0;font-size:14px;font-weight:700;overflow-wrap:anywhere}
.image-view-open{flex:none;color:var(--accent-ink);font-size:13px;font-weight:700}
.image-view-frame{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:12px;background:var(--ground);overflow:auto}
.image-view-frame img{max-width:100%;max-height:calc(100vh - 140px);border-radius:6px;object-fit:contain}
.note-add{display:flex;align-items:flex-end;gap:6px}
.note-add textarea{flex:1;min-width:0;height:40px;min-height:40px;padding:9px 10px;border:1.5px dashed var(--faint-line);border-radius:9px;background:transparent;color:var(--ink);font-size:14.5px;line-height:1.38;resize:none}
.note-add textarea:focus{border-style:solid;border-color:var(--accent);background:var(--surface)}
.note-add textarea:focus-visible{outline:none}
.note-add .primary.small{height:40px;padding:0 14px}
.notes-tip{flex:none;font-size:12.5px;color:var(--muted)}
.node-delete{flex:none;padding-top:10px;border-top:1px solid var(--rule)}
.node-delete>.ghost{margin-left:-8px}
.node-delete-ask{display:flex;flex-direction:column;gap:8px;font-size:14px}
#hint{position:absolute;right:20px;bottom:18px;z-index:5;font-size:13px;color:var(--muted)}
#theme-toggle .sun{display:none}
[data-theme=light] #theme-toggle .sun{display:block}
[data-theme=light] #theme-toggle .moon{display:none}

/* ---------- Admin ---------- */
.admin{display:flex;flex-direction:column;min-height:100vh}
.admin main{flex:1;width:100%;max-width:1080px;margin:0 auto;padding:40px 20px 72px;display:flex;flex-direction:column;gap:28px}
.admin-tabs{display:flex;gap:4px;margin:-12px 0 -8px;border-bottom:1px solid var(--rule)}
.admin-tabs>a,.admin-tabs>span{display:flex;align-items:center;min-height:44px;padding:0 12px;font-size:14px;font-weight:600}
.admin-tabs>span[aria-current]{color:var(--ink);font-weight:700;box-shadow:inset 0 -3px 0 var(--accent)}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- admin: users ---------- */
.users{display:flex;flex-direction:column;gap:18px}
.user-stats{display:flex;flex-wrap:wrap;align-items:flex-end;gap:16px 40px;padding:22px 24px;background:var(--surface);border:1px solid var(--card-border);border-radius:18px}
.user-total{display:flex;flex-direction:column;gap:2px}
.user-total b{font-size:clamp(44px,6vw,64px);line-height:1;font-weight:800;font-stretch:115%;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.user-total span{font-size:14px;font-weight:700;color:var(--muted)}
.user-split{margin:0;display:flex;flex-wrap:wrap;gap:12px 32px}
.user-split div{display:flex;flex-direction:column-reverse;gap:2px}
.user-split dt{font-size:13px;color:var(--muted)}
.user-split dd{margin:0;font-size:22px;font-weight:800;font-variant-numeric:tabular-nums}
.user-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
.user-tools input{flex:1 1 280px;max-width:420px;height:44px;padding:0 14px;border:1.5px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font:inherit;font-size:15px}
.user-tools input:focus{border-color:var(--accent)}
.user-tools span{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.table-scroll{overflow-x:auto;background:var(--surface);border:1px solid var(--card-border);border-radius:16px}
.user-table{width:100%;min-width:880px;border-collapse:collapse;font-size:14px}
.user-table th{padding:0;text-align:left;border-bottom:1px solid var(--rule)}
.user-table th.num,.user-table td.num{text-align:right}
.user-table .sort{width:100%;min-height:44px;padding:0 14px;border:0;background:transparent;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);text-align:inherit;white-space:nowrap}
.user-table .sort:hover,.user-table th[aria-sort] .sort{color:var(--ink)}
.user-table th[aria-sort=descending] .sort::after{content:" ↓"}
.user-table th[aria-sort=ascending] .sort::after{content:" ↑"}
.user-table td{padding:11px 14px;border-bottom:1px solid var(--rule);vertical-align:middle;font-variant-numeric:tabular-nums;white-space:nowrap}
.user-table tbody tr:last-child td{border-bottom:0}
.user-table tbody tr:hover{background:var(--ground)}
.user-name{display:flex;align-items:center;gap:8px;font-weight:700}
.user-name a{color:var(--ink)}
.user-name a:hover{color:var(--accent-ink);text-decoration:underline}
.user-name .swatch{width:24px;height:10px}
.user-email{color:var(--muted)}
.user-tag{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;background:var(--ground);font-size:11.5px;font-weight:700;color:var(--muted)}
.user-tag.is-admin{background:var(--tint);color:var(--accent-ink)}
.user-tag.is-email{background:var(--tint);color:var(--accent-ink)}
.user-sub{font-size:12px;color:var(--muted)}

/* ---------- signing in with an email ---------- */
.auth-card{align-self:center;width:min(440px,100%);margin-top:8px;padding:28px;background:var(--surface);border:1px solid var(--card-border);border-radius:20px;display:flex;flex-direction:column;gap:18px;animation:rise .4s cubic-bezier(.2,.7,.2,1) both}
.auth-card h1{font-size:28px;line-height:1.1;font-weight:800;font-stretch:112%;letter-spacing:-.015em}
.auth-card h2{font-size:17px;font-weight:800}
.auth-modes{display:grid;grid-template-columns:1fr 1fr;padding:4px;gap:4px;border-radius:12px;background:var(--ground)}
.auth-modes button{min-height:40px;border:0;border-radius:9px;background:transparent;font-size:14px;font-weight:700;color:var(--muted)}
.auth-modes button:hover{color:var(--ink)}
.auth-modes button[aria-pressed=true]{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px var(--shadow)}
.auth-form{display:flex;flex-direction:column;gap:14px}
.auth-form input[type=email],.auth-form input[type=password],.auth-form input[type=text]{width:100%;min-width:0;height:48px;padding:0 14px;border:1.5px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font:inherit;font-size:16px}
.auth-form input:focus{border-color:var(--accent)}
.pw-row{position:relative;display:flex}
.pw-row input{padding-right:72px !important}
.pw-show{position:absolute;right:4px;top:4px;bottom:4px;padding:0 12px;border:0;border-radius:8px;background:transparent;font-size:13px;font-weight:700;color:var(--accent-ink)}
.pw-show:hover{background:var(--hover)}
.auth-submit{width:100%}
.auth-note{font-size:13.5px;line-height:1.45;color:var(--muted)}
.auth-who{font-size:15px;overflow-wrap:anywhere}
.auth-done{padding:10px 12px;border-radius:10px;background:var(--tint);color:var(--accent-ink);font-size:14px;font-weight:600}
.auth-swap{padding:0;border:0;background:transparent;font:inherit;font-weight:700;color:var(--accent-ink);text-decoration:underline}
.auth-or{display:flex;flex-direction:column;align-items:stretch;gap:14px}
.auth-rule{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--muted)}
.auth-rule::before,.auth-rule::after{content:"";flex:1;height:1px;background:var(--rule)}
.auth-google{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:48px}
.google-holder{display:flex;justify-content:center}
.google-holder:empty{display:none}
.auth-links{display:flex;flex-wrap:wrap;gap:8px 20px;font-size:14px;font-weight:700}
.auth-links a{color:var(--accent-ink)}
.auth-links a:hover{color:var(--ink);text-decoration:underline}
.admin .intro{display:flex;flex-direction:column;gap:10px;max-width:640px}
.admin h1{font-size:clamp(30px,4vw,40px);line-height:1.08;font-weight:800;font-stretch:112%;letter-spacing:-.02em}
.admin .intro p{color:var(--muted)}
.publish{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;padding:14px 18px;background:var(--surface);border:1px solid var(--card-border);border-radius:14px}
.publish p{flex:1 1 320px;font-size:14px;color:var(--muted)}
.publish p.is-dirty{color:var(--ink);font-weight:600}
.publish .actions{display:flex;flex-wrap:wrap;gap:8px}
.outline{height:44px;padding:0 16px;border:1.5px solid var(--line);border-radius:10px;background:var(--surface);font-size:14px;font-weight:700}
.outline:hover{border-color:var(--ink)}
.review{padding:22px;background:var(--surface);border:1px solid var(--card-border);border-radius:18px;display:flex;flex-direction:column;gap:12px}
.review-note{max-width:680px;font-size:14px;color:var(--muted)}
.review-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.review-row{display:grid;grid-template-columns:minmax(160px,260px) minmax(0,1fr) auto;align-items:center;gap:8px 14px;padding:10px 0;border-top:1px solid var(--rule)}
.review-row input[type=text]{width:100%;min-width:0;height:40px;padding:0 12px;border:1.5px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font-size:15px;font-weight:700}
.review-row input[type=text]:focus{border-color:var(--accent)}
.review-name{font-size:15px;font-weight:700}
.review-meta{font-size:13px;color:var(--muted)}
.review-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
.review-actions .outline{height:36px;padding:0 12px;font-size:13px}
.review-actions .ghost{height:36px;padding:0 12px;font-size:13px}
.review-rejected summary{min-height:36px;display:flex;align-items:center;font-size:14px;font-weight:700;color:var(--muted);cursor:pointer}
.review-rejected summary span{margin-left:4px;font-weight:600}
@media (max-width:760px){.review-row{grid-template-columns:minmax(0,1fr)}.review-actions{justify-content:flex-start}}
.lists{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(340px,100%),1fr));gap:20px;align-items:start}
.list-card{padding:22px;background:var(--surface);border:1px solid var(--card-border);border-radius:18px;display:flex;flex-direction:column;gap:16px}
.list-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.list-head h2{font-size:22px;font-weight:800;font-stretch:110%}
.list-head span{font-size:13px;font-weight:600;color:var(--muted)}
.add-row{display:flex;gap:8px}
.add-row input[type=text]{flex:1;min-width:0;height:46px;padding:0 12px}
.add-row .primary{flex:none;height:46px;padding:0 18px;border-radius:10px;font-size:14px}
.message{min-height:18px;font-size:13px;color:var(--muted)}
.entries{list-style:none;padding:0}
.entries li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 10px;padding:8px 0 12px;border-top:1px solid var(--rule)}
.entries .name{min-width:0;font-size:15px;font-weight:600;overflow-wrap:anywhere}
.entries .icon-button{width:36px;height:36px;color:var(--muted)}
.entries .tag-row{grid-column:1 / -1}

/* tags */
.tag-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.tag-row .hint{margin-right:2px;font-size:13px;color:var(--muted)}
.tag{min-height:32px;padding:0 10px;border:1.5px solid var(--line);border-radius:999px;background:var(--surface);font-size:12.5px;font-weight:600;color:var(--muted)}
.tag:hover:not(:disabled){border-color:var(--ink);color:var(--ink)}
.tag.is-on,.tag.is-on:hover:not(:disabled){border-color:var(--accent);background:var(--tint);color:var(--accent-ink)}
.tag.is-on::before{content:"\2713";margin-right:5px;font-weight:800}
.tag-manager{display:flex;flex-direction:column;gap:10px;padding:12px 14px;border-radius:12px;background:var(--ground)}
.tag-manager h3{margin:0;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.vocab{display:flex;flex-wrap:wrap;gap:6px}
.vocab-chip{display:flex;align-items:center;gap:6px;min-height:32px;padding:0 4px 0 10px;border-radius:999px;background:var(--surface);border:1px solid var(--card-border);font-size:13px;font-weight:600}
.vocab-chip .n{font-size:12px;color:var(--muted)}
.vocab-chip button{width:26px;height:26px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted);display:flex;align-items:center;justify-content:center}
.vocab-chip button:hover:not(:disabled){background:var(--hover);color:var(--ink)}
.vocab-confirm{flex-basis:100%;display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 10px;border-radius:10px;background:var(--surface);border:1px solid var(--card-border);font-size:13px;font-weight:600}
.vocab-confirm span{flex:1 1 180px}
.add-row.compact input[type=text]{flex:1;min-width:0;height:40px;padding:0 12px;border:1.5px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font-size:14px}
.add-row.compact .outline{flex:none;height:40px;padding:0 14px}
.empty{font-size:14px;color:var(--muted)}

/* ---------- the "Log training" form (logs.js) ---------- */
.log-dialog{width:min(560px,calc(100% - 24px));max-height:calc(100% - 32px);padding:0;border:0;border-radius:20px;background:var(--surface);color:var(--ink);box-shadow:0 30px 60px -20px var(--shadow)}
.log-dialog::backdrop{background:var(--scrim)}
.log-dialog[open]{display:flex;animation:rise .3s cubic-bezier(.2,.7,.2,1) both}
.log-form{flex:1;min-height:0;display:flex;flex-direction:column}
.log-head{flex:none;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 14px 8px 24px}
.log-title{display:flex;flex-direction:column;gap:2px}
.log-head h2{font-size:27px;font-weight:800;font-stretch:110%;line-height:1.15}
/* which of the two steps this is */
.log-progress{flex:none;display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:0 24px 10px}
.log-progress i{height:4px;border-radius:999px;background:var(--hover);transition:background .3s}
.log-progress i.is-on{background:var(--accent)}
.log-body{flex:1;min-height:0;overflow-y:auto;padding:6px 24px 8px}
.log-step{display:flex;flex-direction:column;gap:16px}
.log-step:not([hidden]){animation:rise .3s cubic-bezier(.2,.7,.2,1) both}
.log-signin{padding:4px 0 12px;color:var(--muted)}
.log-when{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:12px}
.log-form .field label{font-size:16px;font-weight:800;color:var(--ink)}
.log-form input[type=date],.log-form input[type=number],.log-form select,.log-form input[type=text]{width:100%;min-width:0;height:46px;padding:0 12px;border:1.5px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font:inherit;font-size:15px}
.log-quick{gap:4px}
.log-quick .opt{min-height:34px;padding:0 9px;font-size:12.5px;white-space:nowrap}
.log-list{margin:0;padding:12px 12px 8px 14px;border:1.5px solid var(--line);border-radius:12px;display:flex;flex-direction:column;gap:8px}
.log-list legend{padding:0 6px;margin-left:-6px;font-size:18px;font-weight:800}
.log-list legend b{display:inline-block;width:12px;text-align:center}
.log-list.is-strengths legend b{color:var(--good)}
.log-list.is-weaknesses legend b{color:var(--danger)}
.log-list ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.log-entry{display:flex;flex-direction:column;gap:6px}
.log-link{display:flex;align-items:flex-start;gap:6px}
.log-about-box{position:relative;flex:1;min-width:0}
.log-form input.log-about{height:40px;font-size:14px}
/* suggestions float under the box while it has the cursor, so showing and hiding them moves
   nothing else (a button that moved as they went would miss its press) */
.log-about-suggest{display:none;position:absolute;z-index:5;left:0;right:0;top:calc(100% + 4px);padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 14px 28px -12px var(--shadow)}
.log-about-box:focus-within .log-about-suggest:not(:empty){display:flex}
.log-about-suggest .opt{min-height:32px;padding:0 10px;font-size:12.5px}
.log-link .log-remove{margin-left:auto;width:40px;height:40px;color:var(--muted)}
.log-more{align-self:flex-start;min-height:40px;padding:0 6px;border:0;border-radius:8px;background:transparent;color:var(--accent-ink);font-size:14px;font-weight:700}
.log-more:hover:not(:disabled){background:var(--tint)}
.log-tip{font-size:13px;color:var(--muted)}
.log-hint{margin-top:-4px;font-size:13.5px;color:var(--muted)}
.log-goals{margin:0;padding:12px 12px 12px 14px;border:1.5px solid var(--line);border-radius:12px;display:flex;flex-direction:column;gap:10px}
.log-goals legend{padding:0 6px;margin-left:-6px;font-size:18px;font-weight:800}
.log-goals-scale{display:flex;justify-content:space-between;gap:8px;margin-top:-4px;font-size:12px;font-weight:600;color:var(--muted)}
.log-goals ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.log-goal{display:flex;flex-direction:column;gap:7px}
.log-goal-text{display:flex;flex-direction:column;gap:1px}
.log-goal-text b{font-size:14.5px;line-height:1.3;overflow-wrap:anywhere}
.log-goal-text span{font-size:12.5px;color:var(--muted)}
.rating{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.rate{position:relative;display:block}
.rate input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.rate span{display:flex;align-items:center;justify-content:center;height:40px;border:1.5px solid var(--line);border-radius:10px;background:var(--surface);font-size:15px;font-weight:800;color:var(--muted);transition:transform .15s}
.rate:hover span{border-color:var(--ink);color:var(--ink)}
.rate input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}
.rate input:checked+span{border-color:transparent;color:#fff;transform:scale(1.06);animation:pop .35s both}
.rate.is-1 input:checked+span{background:#C2412D}
.rate.is-2 input:checked+span{background:#C97A1E}
.rate.is-3 input:checked+span{background:#8A8F2A}
.rate.is-4 input:checked+span{background:#3F9A4E}
.rate.is-5 input:checked+span{background:#1E7A45}
/* step 1: what was worked on, and what was learned */
.log-part{margin:0;padding:12px 12px 12px 14px;border:1.5px solid var(--line);border-radius:12px;display:flex;flex-direction:column;gap:10px}
.log-part legend{padding:0 6px;margin-left:-6px;font-size:18px;font-weight:800}
.log-history{display:flex;flex-direction:column;gap:6px}
.log-history>span{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.log-history .opt{min-height:34px;padding:0 12px;font-size:13px}
.learn-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.learn-row{display:flex;flex-direction:column;gap:5px}
.learn-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px}
.learn-head label{font-size:15px;font-weight:800;overflow-wrap:anywhere}
.learn-remove{width:32px;height:32px;margin:-4px -4px -4px 0;color:var(--muted)}
.learn-row textarea{width:100%;min-height:62px;padding:9px 12px;border:1.5px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font:inherit;font-size:15px;line-height:1.4;resize:vertical}
.learn-row textarea:focus{border-color:var(--accent)}
.learn-none{font-size:13.5px;color:var(--muted)}
.learn-pick{display:flex;flex-direction:column;gap:6px}
.learn-pick .opt{min-height:34px;padding:0 10px;font-size:13px}
.practice-box{min-height:92px;padding:6px 4px 6px 6px;border:1.5px solid var(--line);border-radius:10px;background:var(--surface);display:flex;flex-wrap:wrap;align-items:center;align-content:flex-start;gap:4px;cursor:text}
.practice-box:focus-within{border-color:var(--accent)}
.log-form .practice-box input[type=text]{flex:1 1 140px;height:34px;padding:0 6px;border:0;border-radius:6px;background:transparent;font-size:15px}
.log-form .practice-box input[type=text]:focus{outline:none}
.practice-picked{display:contents;list-style:none}
.practice-chip{display:inline-flex;align-items:center;gap:2px;height:30px;padding:0 2px 0 10px;border-radius:999px;background:var(--tint);color:var(--accent-ink);font-size:13px;font-weight:700}
.practice-chip button{width:26px;height:26px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;display:flex;align-items:center;justify-content:center}
.practice-chip button:hover{background:var(--accent-soft)}
.practice-chip svg{width:11px;height:11px}
.practice-suggest .opt{min-height:34px;padding:0 10px;font-size:13px}
.log-error{margin-top:12px}
.log-foot{flex:none;display:flex;justify-content:flex-end;gap:8px;padding:12px 20px 18px;border-top:1px solid var(--rule)}

/* ---------- My Logs ---------- */
.logs-page{display:flex;flex-direction:column;min-height:100vh}
.logs-page main{flex:1;width:100%;max-width:880px;margin:0 auto;padding:36px 20px 72px;display:flex;flex-direction:column;gap:24px}
.logs-top{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 20px}
.logs-top h1{font-size:clamp(30px,4vw,40px);line-height:1.08;font-weight:800;font-stretch:112%;letter-spacing:-.02em}
.logs-top p{margin-top:6px;color:var(--muted)}
.logs-top .primary{display:flex;align-items:center;gap:8px}
.logs-tabs{display:flex;gap:4px;margin:-4px 0 -8px;border-bottom:1px solid var(--rule)}
.logs-tabs button{min-height:44px;padding:0 14px;border:0;background:transparent;font-size:15px;font-weight:600;color:var(--muted)}
.logs-tabs button:hover{color:var(--ink)}
.logs-tabs button[aria-selected=true]{color:var(--ink);font-weight:800;box-shadow:inset 0 -3px 0 var(--accent)}
.logs-view{display:flex;flex-direction:column;gap:24px}
.progress-part{display:flex;flex-direction:column;gap:12px}
.progress-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px}
.progress-head h2{font-size:22px;font-weight:800;font-stretch:110%}
.progress-head>span{margin-right:auto;font-size:14px;font-weight:700;color:var(--muted)}
.progress-head .outline{height:40px;font-size:13px}
.progress-help{max-width:70ch;margin-top:-4px;font-size:14px;color:var(--muted)}
.goal-cards{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr));gap:12px}
.goal-card{padding:16px 18px;background:var(--surface);border:1px solid var(--card-border);border-radius:16px;display:flex;flex-direction:column;gap:8px}
.goal-card h3{margin:0;font-size:16px;line-height:1.3;font-weight:800;overflow-wrap:anywhere}
.goal-card.is-done h3{color:var(--muted)}
.goal-card-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;font-size:12.5px;color:var(--muted)}
.goal-card-meta .node-chip{margin-left:0}
.goal-card-none{font-size:13.5px;color:var(--muted)}
.goal-card-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin-top:4px}
.goal-card-now{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:0 10px;font-size:14px;font-weight:700}
.goal-card-now .goal-card-sub{grid-column:2;font-size:12.5px;font-weight:500;color:var(--muted)}
.rating-badge{grid-row:span 2;width:38px;height:38px;border-radius:12px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:18px;font-weight:800}
.rating-badge.is-1{background:#C2412D}
.rating-badge.is-2{background:#C97A1E}
.rating-badge.is-3{background:#8A8F2A}
.rating-badge.is-4{background:#3F9A4E}
.rating-badge.is-5{background:#1E7A45}
.rating-chart{width:200px;max-width:100%;height:auto}
.rating-chart .grid{stroke:var(--rule);stroke-width:1}
.rating-chart .axis{fill:var(--muted);font-size:9px;font-weight:700}
.rating-chart .area{fill:var(--tint);stroke:none}
.rating-chart .line{fill:none;stroke:var(--accent);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.rating-chart .dot{fill:var(--accent)}
.rating-chart .dot.last{fill:var(--surface);stroke:var(--accent);stroke-width:2.5}
.goal-archive summary{min-height:40px;display:flex;align-items:center;font-size:14px;font-weight:700;color:var(--muted);cursor:pointer}
.goal-archive summary span{margin-left:4px;font-weight:600}
.goal-archive .goal-cards{margin-top:8px}
.progress-tools{display:flex;flex-wrap:wrap;gap:8px}
.progress-tools input,.progress-tools select{height:44px;padding:0 12px;border:1.5px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font:inherit;font-size:15px}
.progress-tools input{flex:1 1 220px;max-width:360px}
.progress-tools input:focus,.progress-tools select:focus{border-color:var(--accent)}
.move-list{list-style:none;margin:0;padding:0;background:var(--surface);border:1px solid var(--card-border);border-radius:16px;overflow:hidden}
.move-list:empty{display:none}
.move+.move{border-top:1px solid var(--rule)}
.move-head{width:100%;min-height:56px;padding:8px 16px;border:0;background:transparent;display:grid;grid-template-columns:minmax(0,1fr) 76px 132px 92px 84px;align-items:center;gap:6px 16px;text-align:left}
.move-head:hover,.move.is-open .move-head{background:var(--ground)}
.move-name{font-size:15px;font-weight:800;overflow-wrap:anywhere}
.move-counts{display:flex;gap:8px;font-size:13.5px;font-weight:800;font-variant-numeric:tabular-nums}
.week-chart{width:132px;height:40px}
.week-chart .base{stroke:var(--rule);stroke-width:1}
.week-chart .well{fill:var(--good)}
.week-chart .bad{fill:var(--danger)}
.move-last{font-size:12.5px;color:var(--muted);text-align:right;white-space:nowrap}
.move-detail{padding:4px 16px 14px;display:flex;flex-direction:column;gap:8px;background:var(--ground)}
.move-open{align-self:flex-start;font-size:13px;font-weight:700;color:var(--accent-ink)}
.move-open:hover{color:var(--ink);text-decoration:underline}
.move-entries{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.move-entries li{display:grid;grid-template-columns:14px 92px minmax(0,1fr);gap:8px;font-size:14px;line-height:1.4}
.move-entries b{font-weight:800}
.move-entries li.is-well b{color:var(--good)}
.move-entries li.is-bad b{color:var(--danger)}
.move-entries li span{color:var(--ink);overflow-wrap:anywhere}
.move-entries time{font-size:12.5px;color:var(--muted);padding-top:1px}
.logs-message{padding:16px 18px;background:var(--surface);border:1px solid var(--card-border);border-radius:14px;color:var(--muted)}
.calendar{padding:18px 18px 16px;background:var(--surface);border:1px solid var(--card-border);border-radius:18px;display:flex;flex-direction:column;gap:12px}
.cal-head{display:flex;align-items:center;gap:6px}
.cal-head h2{flex:1;font-size:20px;font-weight:800;font-stretch:110%}
.cal-head .outline{height:40px;padding:0 14px;font-size:13px}
.cal-summary{margin-top:-6px;font-size:14px;color:var(--muted)}
.cal-summary b{color:var(--ink)}
.cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.cal-dow{padding-bottom:4px;text-align:center;font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.cal-day{position:relative;min-width:0;height:52px;padding:0;border:0;border-radius:12px;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:14px;font-weight:600;color:var(--ink)}
.cal-day:hover{background:var(--ground)}
.cal-day .n{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.cal-day.is-today .n{box-shadow:inset 0 0 0 2px var(--ink)}
.cal-day.is-trained .n{background:var(--accent);color:var(--on-accent);font-weight:800}
.cal-day.is-trained.is-today .n{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--ink)}
.cal-day .dots{position:absolute;bottom:3px;display:flex;gap:3px}
.cal-day .dots i{width:4px;height:4px;border-radius:50%;background:var(--accent)}
.cal-day.is-picked{background:var(--tint);box-shadow:inset 0 0 0 1.5px var(--accent)}
.cal-day.is-future{color:var(--faint-line)}
.cal-gap{height:52px}
.log-entries{display:flex;flex-direction:column;gap:14px}
.entries-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.entries-head h2{font-size:20px;font-weight:800;font-stretch:110%}
.log-month{margin:10px 0 -4px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.log-card{padding:16px 18px;background:var(--surface);border:1px solid var(--card-border);border-radius:16px;display:flex;flex-direction:column;gap:12px}
.log-card.plop{animation:slot .38s both}
.log-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.log-card h3{margin:0;font-size:17px;font-weight:800;overflow-wrap:anywhere}
.log-card .log-meta{font-size:14px;color:var(--muted)}
.log-card header .icon-button{margin:-8px -10px 0 0;color:var(--muted)}
.log-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:12px}
.log-cols h4{margin:0 0 6px;font-size:13px;font-weight:700}
.log-cols h4 b{display:inline-block;width:12px}
.log-cols .is-strengths h4 b{color:var(--good)}
.log-cols .is-weaknesses h4 b{color:var(--danger)}
.log-cols ul{list-style:none;padding:0;display:flex;flex-direction:column;gap:6px}
.log-cols li{font-size:14.5px;line-height:1.4;overflow-wrap:anywhere}
.node-chip{display:inline-flex;align-items:center;margin-left:4px;padding:1px 8px;border-radius:999px;background:var(--tint);color:var(--accent-ink);font-size:12px;font-weight:700;vertical-align:1px}
a.node-chip:hover{color:var(--ink)}
.log-none{font-size:14px;color:var(--muted)}
.log-worked{display:flex;flex-direction:column;gap:6px}
.log-worked p{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.log-worked .node-chip{margin-left:0}
.log-worked-label{min-width:64px;font-size:13px;font-weight:700;color:var(--muted)}
.log-learned h4{margin:0 0 6px;font-size:13px;font-weight:700}
.log-learned ul{list-style:none;padding:0;display:flex;flex-direction:column;gap:6px}
.log-learned li{font-size:14.5px;line-height:1.4;overflow-wrap:anywhere}
.log-learned li .node-chip{margin:0 6px 0 0}

/* the last two weeks, above the calendar */
.trends{padding:16px 18px;background:var(--surface);border:1px solid var(--card-border);border-radius:18px;display:flex;flex-direction:column;gap:12px}
.trends-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px}
.trends-head h2{font-size:20px;font-weight:800;font-stretch:110%}
.trends-head span{font-size:14px;font-weight:700;color:var(--muted);font-variant-numeric:tabular-nums}
.trend-rows{margin:0;display:flex;flex-direction:column;gap:8px}
.trend-rows>div{display:grid;grid-template-columns:132px minmax(0,1fr);align-items:baseline;gap:4px 12px}
.trend-rows dt{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.trend-rows .is-good dt{color:var(--good)}
.trend-rows .is-bad dt{color:var(--danger)}
.trend-rows dd{margin:0;display:flex;flex-wrap:wrap;gap:6px}
.skill-chip{display:inline-flex;align-items:center;gap:4px;min-height:32px;padding:0 12px;border:1px solid var(--card-border);border-radius:999px;background:var(--ground);color:var(--ink);font-size:14px;font-weight:700}
.skill-chip:hover{color:var(--ink);border-color:var(--line)}
.skill-chip .heat,.move-name .heat{font-size:14px;line-height:1}
.trend-none,.trends-empty{font-size:14px;color:var(--muted)}
.log-ask{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-radius:10px;background:var(--ground);font-size:14px}
.log-empty{padding:28px 20px;border:1.5px dashed var(--faint-line);border-radius:16px;display:flex;flex-direction:column;align-items:flex-start;gap:12px;color:var(--muted)}

/* ---------- switches: on and off, like Public on a web ---------- */
.switch{flex:none;position:relative;width:56px;height:40px;padding:0;border:0;border-radius:10px;background:transparent}
.switch::before{content:"";position:absolute;left:6px;top:7px;width:44px;height:26px;border-radius:999px;background:var(--line);transition:background .2s}
.switch::after{content:"";position:absolute;left:9px;top:10px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.35);transition:transform .32s cubic-bezier(.3,1.6,.5,1)}
.switch[aria-checked=true]::before{background:var(--accent)}
.switch[aria-checked=true]::after{transform:translateX(18px)}
.switch.small{width:42px}
.switch.small::before{left:5px;top:12px;width:32px;height:16px}
.switch.small::after{left:7px;top:14px;width:12px;height:12px}
.switch.small[aria-checked=true]::after{transform:translateX(16px)}

/* ---------- profiles ---------- */
.profile-page{display:flex;flex-direction:column;min-height:100vh}
.profile-page main{flex:1;width:100%;max-width:880px;margin:0 auto;padding:40px 20px 80px;display:flex;flex-direction:column;gap:28px}
.profile{display:flex;flex-direction:column;gap:36px;animation:rise .4s cubic-bezier(.2,.7,.2,1) both}
.profile-note{align-self:center;width:min(460px,100%);margin-top:24px;padding:36px 28px;text-align:center;background:var(--surface);border:1px solid var(--card-border);border-radius:20px;display:flex;flex-direction:column;align-items:center;gap:10px}
.profile-note svg{color:var(--muted)}
.profile-note h1{font-size:26px;line-height:1.15;font-weight:800;font-stretch:110%;text-wrap:balance}
.profile-note p{color:var(--muted)}
.profile-banner{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:12px;background:var(--tint);color:var(--accent-ink);font-size:14px;font-weight:600}
.profile-banner svg{flex:none}
.profile-head{display:grid;grid-template-columns:184px minmax(0,1fr);gap:16px 32px;align-items:start}
.profile-id{display:flex;flex-direction:column;align-items:center}
.profile-photo{position:relative;z-index:1;width:128px;height:128px;border-radius:50%;overflow:hidden;box-shadow:0 0 0 4px var(--ground),0 0 0 5px var(--card-border)}
.profile-photo img,.profile-initial{width:100%;height:100%;display:flex;align-items:center;justify-content:center;object-fit:cover;color:#fff;font-size:52px;font-weight:800}
.profile-belt{position:relative;z-index:2;width:184px;min-height:24px;margin-top:-18px;display:flex;justify-content:center}
.profile-rank{margin-top:2px;font-size:13px;font-weight:700;color:var(--muted)}
.profile-text{min-width:0;padding-top:14px;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.profile-text h1{font-size:clamp(30px,4.2vw,44px);line-height:1.05;font-weight:800;font-stretch:112%;letter-spacing:-.02em;overflow-wrap:anywhere;text-wrap:balance}
.profile-joined{font-size:14px;color:var(--muted)}
.profile-bio{max-width:62ch;margin-top:6px;font-size:16px;line-height:1.55;white-space:pre-line;overflow-wrap:anywhere}
.profile-actions{margin-top:10px;display:flex;flex-wrap:wrap;align-items:center;gap:8px}

/* the belt under the photo ties itself on: the band, then the knot, then the tails, then each stripe */
.tied-belt{display:block;width:184px;height:auto;overflow:visible}
.tied-belt .tb-fabric{stroke:var(--belt-edge);stroke-width:1.2}
.tied-belt .tb-stitch{fill:none;stroke:rgba(0,0,0,.2);stroke-width:.8;stroke-dasharray:2.4 1.6}
.tied-belt[data-belt=black] .tb-stitch{stroke:rgba(255,255,255,.16)}
.tied-belt .tb-band,.tied-belt .tb-knot,.tied-belt .tb-tail{transform-box:view-box}
.tied-belt .tb-band{transform-origin:100px 20px;animation:tb-band .55s cubic-bezier(.2,.8,.3,1.2) both}
.tied-belt .tb-knot{transform-origin:100px 20px;animation:tb-knot .45s .32s cubic-bezier(.2,.8,.4,1.4) both}
.tied-belt .tb-tail{transform-origin:100px 27px;animation:tb-swing .8s .42s cubic-bezier(.3,1.7,.5,1) both}
.tied-belt .tb-left{--from:-58deg}
.tied-belt .tb-right{--from:58deg}
.tied-belt .tb-stripe{transform-box:fill-box;transform-origin:center;animation:tb-stripe .34s cubic-bezier(.2,.8,.4,1.5) both;animation-delay:calc(1s + var(--i) * .13s)}
@keyframes tb-band{from{transform:scaleX(.12);opacity:0}to{transform:none;opacity:1}}
@keyframes tb-knot{from{transform:scale(.3);opacity:0}to{transform:none;opacity:1}}
@keyframes tb-swing{from{transform:rotate(var(--from));opacity:0}30%{opacity:1}to{transform:none;opacity:1}}
@keyframes tb-stripe{from{transform:scale(1.9,.2);opacity:0}to{transform:none;opacity:1}}
.nogi-badge{margin-top:12px;padding:4px 12px;border-radius:999px;background:var(--ink);color:var(--ground);font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;animation:pop .45s .2s both}

/* editing a profile */
.profile-form{min-width:0;padding:22px;background:var(--surface);border:1px solid var(--card-border);border-radius:18px;display:flex;flex-direction:column;gap:18px}
.profile-form h2{font-size:20px;font-weight:800;font-stretch:110%}
.profile-form input[type=text],.profile-form textarea{width:100%;padding:0 12px;border:1.5px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font:inherit;font-size:16px}
.profile-form input[type=text]{height:46px}
.profile-form textarea{min-height:88px;padding:10px 12px;line-height:1.45;resize:vertical}
.profile-form input:focus,.profile-form textarea:focus{border-color:var(--accent)}
.pf-hint,.pf-count{font-size:12.5px;color:var(--muted)}
.pf-count{align-self:flex-end;font-variant-numeric:tabular-nums}
.pf-belt{margin:0;padding:0;border:0;display:flex;flex-direction:column;gap:10px}
.pf-belt legend{margin-bottom:8px;padding:0;font-size:13px;font-weight:600;color:var(--muted)}
.pf-belts{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.pf-belts .opt{display:flex;align-items:center;gap:10px;min-height:46px;padding:0 12px;font-size:14px;text-align:left}
.pf-stripes{display:flex;align-items:center;gap:12px}
.pf-stripes>span{flex:none;width:58px;font-size:13px;font-weight:600;color:var(--muted)}
.pf-stripes .stripe-grid{flex:1;max-width:300px}
.pf-stripes .opt{min-height:40px;font-size:15px;font-weight:700}
.pf-switches{display:flex;flex-direction:column}
.switch-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0;border-top:1px solid var(--rule)}
.switch-row b{display:block;font-size:15px}
.switch-row span{font-size:13px;color:var(--muted)}

/* public webs on a profile */
.pub-webs{display:flex;flex-direction:column;gap:14px}
.pub-webs-head{display:flex;align-items:baseline;gap:10px}
.pub-webs-head h2{font-size:22px;font-weight:800;font-stretch:110%}
.pub-webs-head span{font-size:14px;font-weight:700;color:var(--muted)}
.web-cards{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(250px,100%),1fr));gap:14px}
.web-card{height:100%;display:flex;flex-direction:column;overflow:hidden;background:var(--surface);border:1px solid var(--card-border);border-radius:16px;color:var(--ink);transition:transform .2s cubic-bezier(.2,.7,.2,1),border-color .2s}
.web-card:hover{color:var(--ink);border-color:var(--line);transform:translateY(-2px)}
.web-thumb{aspect-ratio:16/9;background-color:var(--ground);background-image:radial-gradient(circle,var(--dot) 1px,transparent 1.5px);background-size:14px 14px;border-bottom:1px solid var(--rule)}
.web-thumb svg{display:block;width:100%;height:100%}
.web-thumb .t-node{fill:var(--node)}
.web-thumb .t-edge{stroke:var(--edge);stroke-width:1.5px;vector-effect:non-scaling-stroke}
.web-card-text{padding:12px 14px 14px;display:flex;flex-direction:column;gap:3px}
.web-card-text b{font-size:15px;line-height:1.3;overflow:hidden;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}
.web-card-text span{font-size:13px;color:var(--muted)}
.pub-empty{padding:22px 20px;border:1.5px dashed var(--faint-line);border-radius:16px;color:var(--muted)}

/* someone's public web, read only */
.viewer .node{cursor:pointer}
.viewer-message{position:absolute;inset:0;z-index:7;padding:24px;display:flex;align-items:flex-start;justify-content:center}
.viewer-head{z-index:6;left:20px;top:20px;width:min(360px,calc(100% - 40px));padding:14px 18px 16px;display:flex;flex-direction:column;gap:5px}
.viewer-tags{display:flex;flex-wrap:wrap;gap:6px}
.view-only,.viewer-state{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;background:var(--ground);font-size:12px;font-weight:700;color:var(--muted)}
.viewer-state{background:var(--danger-tint);color:var(--danger)}
.viewer-head h1{font-size:20px;line-height:1.2;font-weight:800;font-stretch:110%;overflow:hidden;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3}
.viewer-by{font-size:14px;color:var(--muted)}
.viewer-by a,.viewer-own a{font-weight:700;color:var(--accent-ink)}
.viewer-by a:hover,.viewer-own a:hover{color:var(--ink);text-decoration:underline}
.viewer-own{margin-top:4px;padding-top:8px;border-top:1px solid var(--rule);font-size:13px;color:var(--muted)}
.works-line{flex:none;display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:var(--ground);font-size:14px;font-weight:700}
.viewer-notes{display:flex;flex-direction:column;gap:12px}
.viewer .note-list{margin-left:0}
.viewer .note-body{padding:8px 10px}
.tag-priority{color:#C98500}

/* ---------- Knowledge Base ---------- */
.kb-page{display:flex;flex-direction:column;min-height:100vh}
.kb-page main{flex:1;width:100%;max-width:960px;margin:0 auto;padding:36px 20px 80px;display:flex;flex-direction:column;gap:28px}
.kb-top{display:flex;flex-direction:column;gap:8px}
.kb-top h1{font-size:clamp(30px,4vw,40px);line-height:1.08;font-weight:800;font-stretch:112%;letter-spacing:-.02em}
.kb-top>p{color:var(--muted)}
.kb-page main.kb-locked{max-width:560px;padding-top:72px;gap:12px;align-items:flex-start}
.kb-locked h1{margin-bottom:4px;font-size:clamp(30px,4vw,40px);line-height:1.08;font-weight:800;font-stretch:112%;letter-spacing:-.02em}
.kb-locked p{color:var(--muted);line-height:1.5}
.kb-locked .primary{display:inline-flex;align-items:center;margin-top:8px;color:var(--on-accent)}
.kb-find{margin-top:12px;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:12px;align-items:end}
.kb-combo{position:relative}
.kb-input{position:relative;display:flex;align-items:center}
.kb-input svg{position:absolute;left:14px;color:var(--muted);pointer-events:none}
.kb-input input[type=text]{width:100%;height:52px;padding:0 14px 0 42px;border:1.5px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font:inherit;font-size:16px}
.kb-input input[type=text]:focus{border-color:var(--accent)}
.kb-from select{width:100%;height:52px;padding:0 12px;border:1.5px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font:inherit;font-size:15px}
.kb-from select:disabled{opacity:.5}
.kb-options{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 6px);max-height:340px;overflow-y:auto;margin:0;padding:6px;list-style:none;background:var(--surface);border:1px solid var(--card-border);border-radius:14px;box-shadow:0 16px 32px -16px var(--shadow)}
.kb-options li{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:0 12px;border-radius:9px;cursor:pointer;font-weight:600}
.kb-options li small{font-size:12px;font-weight:600;color:var(--muted)}
.kb-options li[aria-selected=true],.kb-options li:hover{background:var(--tint);color:var(--accent-ink)}
.kb-options .none{cursor:default;color:var(--muted);font-weight:500}
.kb-options .none:hover{background:none;color:var(--muted)}
.kb-browse{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:20px;align-items:start}
.kb-col{padding:18px 18px 12px;background:var(--surface);border:1px solid var(--card-border);border-radius:18px}
.kb-col h2{margin-bottom:8px;font-size:18px;font-weight:800;font-stretch:110%}
.kb-index{list-style:none;margin:0;padding:0;columns:2;column-gap:16px}
.kb-index li{break-inside:avoid}
.kb-index a{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:36px;padding:0 8px;margin:0 -8px;border-radius:8px;color:var(--ink);font-size:14.5px;font-weight:600}
.kb-index a:hover{background:var(--hover)}
.kb-index small{font-size:12px;font-weight:700;color:var(--accent-ink)}
.kb-entry{display:flex;flex-direction:column;gap:24px}
.kb-crumbs{font-size:14px;color:var(--muted)}
.kb-crumbs a{font-weight:600;color:var(--accent-ink)}
.kb-crumbs a:hover{color:var(--ink)}
.kb-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:24px;align-items:center;padding:18px;background:var(--surface);border:1px solid var(--card-border);border-radius:20px}
.kb-art svg{display:block;width:100%;height:auto;border-radius:14px}
.kb-intro{display:flex;flex-direction:column;gap:10px}
.kb-intro h2{font-size:clamp(26px,3.4vw,34px);line-height:1.1;font-weight:800;font-stretch:112%;letter-spacing:-.015em}
.kb-intro>p{color:var(--muted);line-height:1.5}
.kb-tags{display:flex;flex-wrap:wrap;gap:6px}
.kb-tags span{padding:2px 10px;border-radius:999px;background:var(--tint);color:var(--accent-ink);font-size:12.5px;font-weight:700}
.kb-tags:empty{display:none}
.kb-soon{align-self:flex-start;padding:3px 10px;border:1px dashed var(--faint-line);border-radius:999px;font-size:12px;font-weight:600;color:var(--muted)}
.kb-forum{display:flex;flex-direction:column;gap:14px}
.forum-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px}
.forum-head h3{margin:0;font-size:21px;font-weight:800;font-stretch:110%}
.forum-filters{display:flex;flex-wrap:wrap;gap:8px}
.segmented{display:inline-flex;padding:3px;gap:2px;border-radius:12px;background:var(--hover)}
.segmented button{min-height:36px;padding:0 12px;border:0;border-radius:9px;background:transparent;color:var(--muted);font-size:13.5px;font-weight:700}
.segmented button:hover{color:var(--ink)}
.segmented [aria-pressed=true],.segmented [aria-checked=true]{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px var(--rule)}
.forum-message{padding:14px 16px;border-radius:14px;background:var(--surface);border:1px solid var(--card-border);color:var(--muted)}
.composer{display:flex;flex-direction:column;gap:10px;padding:16px;background:var(--surface);border:1px solid var(--card-border);border-radius:16px}
.composer input[type=text],.composer textarea,.reply-form textarea{width:100%;padding:11px 12px;border:1.5px solid var(--line);border-radius:10px;background:var(--ground);color:var(--ink);font:inherit;font-size:15px;line-height:1.4;resize:vertical}
.composer input[type=text]{height:46px;font-weight:600}
.composer-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;font-size:13px;color:var(--muted)}
.posts{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.post{display:flex;gap:12px;padding:14px 16px 12px 10px;background:var(--surface);border:1px solid var(--card-border);border-radius:16px}
.post.is-linked{box-shadow:0 0 0 2px var(--accent)}
.post.plop{animation:slot .38s both}
.votes{flex:none;width:40px;display:flex;flex-direction:column;align-items:center}
.vote{width:36px;height:32px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--muted);display:flex;align-items:center;justify-content:center}
.vote:hover{background:var(--hover);color:var(--ink)}
.vote.up[aria-pressed=true]{color:#F2763A}
.vote.down[aria-pressed=true]{color:#7C8CF8}
.score{font-size:14px;font-weight:800;font-variant-numeric:tabular-nums}
.score.bump{animation:bump .35s ease-out}
.post-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.post-meta,.reply-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:12.5px;color:var(--muted)}
.post-meta .who,.reply-meta .who{font-weight:700;color:var(--ink)}
.post-meta a.who:hover,.reply-meta a.who:hover{color:var(--accent-ink);text-decoration:underline}
.kind-badge{padding:1px 8px;border-radius:6px;font-size:11.5px;font-weight:800;letter-spacing:.03em;text-transform:uppercase}
.kind-badge.is-advice{background:var(--tint);color:var(--accent-ink)}
.kind-badge.is-question{background:rgba(242,181,41,.18);color:#9A6700}
[data-theme=dark] .kind-badge.is-question{color:#F2C14E}
.kind-badge.is-note{background:rgba(85,201,143,.16);color:var(--good)}
.from-chip{padding:1px 8px;border-radius:6px;border:1px solid var(--card-border);font-weight:700;color:var(--ink)}
.text-button.from-chip{min-height:24px;padding:0 8px;border:1px solid var(--card-border);border-radius:6px;font-size:12.5px;color:var(--ink)}
.post-title{margin:0;font-size:17px;line-height:1.3;font-weight:800;overflow-wrap:anywhere}
.post-body,.reply-body{margin:0;font-size:15px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.post.is-note .post-body{padding-left:12px;border-left:3px solid var(--good)}
.post.is-note.is-weaknesses .post-body{border-left-color:var(--danger)}
.post.is-note.is-other .post-body{border-left-color:var(--line)}
.post.is-deleted .post-title,.reply.is-deleted .reply-body{font-style:italic;font-weight:500;color:var(--muted)}
.post-actions,.reply-actions{display:flex;flex-wrap:wrap;align-items:center;gap:2px;margin-left:-8px}
.text-button{min-height:34px;padding:0 8px;border:0;border-radius:8px;background:transparent;display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:var(--muted)}
.text-button:hover{background:var(--hover);color:var(--ink)}
.text-button.danger{color:var(--danger)}
.thread{display:flex;flex-direction:column;gap:12px;margin-top:4px;padding-top:12px;border-top:1px solid var(--rule)}
.reply-form{display:flex;flex-direction:column;gap:8px}
.reply-form textarea{min-height:64px;font-size:14.5px}
.reply-form .row-end{gap:4px}
.replies{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.replies .replies{margin-top:10px;padding-left:14px;border-left:2px solid var(--rule)}
.reply{display:flex;flex-direction:column;gap:4px}
.reply.plop{animation:slot .38s both}
.reply-votes{display:flex;align-items:center}
.reply-actions .vote{width:30px;height:30px}
.reply-actions .score{min-width:16px;text-align:center;font-size:13px}
.avatar-dot{width:20px;height:20px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;color:#fff}
.forum-empty{padding:26px 18px;border:1.5px dashed var(--faint-line);border-radius:16px;text-align:center;color:var(--muted)}

@media (max-width:640px){
.note-item .icon-button:not(.res-remove){width:32px}
#admin-link{display:none}
a.account-admin{display:flex}
.topbar{gap:6px;padding:0 10px}
.topbar .side{gap:2px}
.topbar nav{gap:0}
.topbar nav>a,.topbar nav>span{padding:0 7px;font-size:14px}
#webs-toggle{margin:0 -4px 0 -6px}
#theme-toggle{width:38px}
#card{transition:none}
#card.is-docked{left:50%;top:auto;bottom:12px;transform:translate(-50%,0)}
#card.is-docked .card{padding:20px}
.brand>span{display:none}
#toolbar{left:50%;top:auto;bottom:16px;transform:translateX(-50%);flex-direction:row}
.tool{width:84px;min-height:68px;font-size:12px}
.trend-rows>div{grid-template-columns:minmax(0,1fr)}
.move-head{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name counts" "chart trend";padding:10px 14px}
.move-name{grid-area:name}
.move-counts{grid-area:counts}
.move-head .week-chart{grid-area:chart}
.move-head .trend-chip{grid-area:trend;justify-self:end}
.move-last{display:none}
.move-entries li{grid-template-columns:14px minmax(0,1fr)}
.move-entries time{grid-column:2}
.move-entries li span{grid-column:2}
.tool-public::before{left:-4px;right:auto;top:14px;bottom:14px;width:1px;height:auto}
.topbar .side a.email-signin{padding:0 10px}
.auth-card{padding:22px 18px}
.admin-tabs{margin-top:-4px}
.panel{left:12px;right:12px;top:auto;bottom:104px;transform:none;width:auto}
#goals{left:8px;right:8px;top:8px;width:auto;max-height:45%}
.log-head{padding-left:18px}
.log-body{padding:6px 16px 8px}
.cal-day,.cal-gap{height:44px}
.cal-day .n{width:30px;height:30px}
#notes{left:8px;right:8px;top:auto;bottom:8px;width:auto;height:min(62%,500px)}
#webs{position:absolute;z-index:25;top:0;left:0;bottom:0;width:min(300px,86vw);margin-left:0;box-shadow:0 20px 40px -16px var(--shadow);transform:translateX(-102%);transition:transform .3s cubic-bezier(.2,.7,.2,1),visibility 0s .3s}
.webs-open #webs{transform:none;transition:transform .3s cubic-bezier(.2,.7,.2,1),visibility 0s}
#zoom{left:auto;right:8px;bottom:auto;top:62px;flex-direction:column}
#zoom-reset{min-width:36px !important;padding:0 !important;font-size:11px !important}
.kb-find,.kb-hero{grid-template-columns:minmax(0,1fr)}
.kb-index{columns:1}
.post{padding-right:12px}
#hint,#chip,#save-status,.wide-only{display:none !important}
.profile-page main{padding-top:24px}
.profile-head{grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center}
.profile-text{align-items:center;padding-top:0}
.profile-form{text-align:left;width:100%}
.viewer-head{left:8px;right:8px;top:8px;width:auto;padding:12px 14px}
.viewer #zoom{left:8px;right:auto;top:auto;bottom:12px;flex-direction:row}
.viewer #zoom-reset{min-width:52px !important}
}
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes fade{from{opacity:0}to{opacity:1}}
.card{animation:rise .4s cubic-bezier(.2,.7,.2,1) both}
#grid,.step,.node,#chip,#toolbar,.panel,#notes,#hint,#goals{animation:fade .35s ease both}

/* the plop new nodes, arrows, notes, goals and belts make */
@keyframes plop{
0%{transform:translate(-50%,-50%) scale(.25);opacity:0;animation-timing-function:cubic-bezier(.2,.8,.4,1)}
42%{transform:translate(-50%,-50%) scale(1.14);opacity:1;animation-timing-function:ease-in-out}
64%{transform:translate(-50%,-50%) scale(.94);animation-timing-function:ease-in-out}
82%{transform:translate(-50%,-50%) scale(1.03);animation-timing-function:ease-in-out}
100%{transform:translate(-50%,-50%) scale(1)}
}
@keyframes pop{
0%{transform:scale(.3);opacity:0;animation-timing-function:cubic-bezier(.2,.8,.4,1)}
45%{transform:scale(1.18);opacity:1;animation-timing-function:ease-in-out}
70%{transform:scale(.93);animation-timing-function:ease-in-out}
100%{transform:scale(1)}
}
@keyframes slot{
0%{transform:scale(.85);opacity:0;animation-timing-function:cubic-bezier(.2,.8,.4,1)}
55%{transform:scale(1.025);opacity:1}
100%{transform:scale(1)}
}
@keyframes bump{
0%{transform:scale(1)}
35%{transform:scale(1.12)}
65%{transform:scale(.96)}
100%{transform:scale(1)}
}
@keyframes ring{from{box-shadow:0 0 0 0 rgba(36,71,216,.5)}to{box-shadow:0 0 0 18px rgba(36,71,216,0)}}
@keyframes draw{from{clip-path:inset(-8px 100% -8px 0)}to{clip-path:inset(-8px -4px -8px 0)}}
.node.plop{animation:plop .6s both}
@keyframes nodebump{0%{transform:translate(-50%,-50%) scale(1)}35%{transform:translate(-50%,-50%) scale(1.09)}65%{transform:translate(-50%,-50%) scale(.97)}100%{transform:translate(-50%,-50%) scale(1)}}
.node.recolor{animation:nodebump .42s ease-out}
.node.plop::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;animation:ring .65s ease-out .1s both}
.edge.plop{animation:draw .32s cubic-bezier(.3,.7,.3,1) both}
.belt-badge.plop,.callout>span.plop{animation:pop .5s both}
.goal.plop{transform-origin:left center;animation:pop .5s both}
.belt-pick.pop{animation:bump .42s ease-out}
.note-item.plop{animation:slot .38s both}
.goal input.plop{animation:cheer .55s both}
@keyframes cheer{
0%{transform:scale(1)}
30%{transform:scale(1.45) rotate(-8deg)}
55%{transform:scale(.88) rotate(4deg)}
80%{transform:scale(1.08)}
100%{transform:scale(1)}
}
@media (prefers-reduced-motion:reduce){
.tied-belt *,.nogi-badge,.profile,.web-card,.log-step,.log-progress i{animation:none !important;transition:none !important}
.card,#grid,.step,.node,#chip,#toolbar,.panel,#notes,#hint,#goals,.log-dialog[open],.node.recolor,.score.bump,.post.plop,.reply.plop{animation:none}
.plop,.pop,.node.plop::after{animation:none !important}
#card,#webs,.note-list.is-sorting .note-item{transition:none !important}
}
