/* Axiom Lift — design system */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Jost:wght@300;400&display=swap');
:root{
  --bg:#050506;--surface:#0e0e11;--surface-2:#141418;--surface-3:#1b1b21;--line:rgba(255,255,255,.08);--line-2:rgba(255,255,255,.14);
  --text:#f5f5f7;--text-2:#c9c9cf;--muted:#8b8b93;--faint:#5c5c66;
  --accent:#ffffff;--accent-ink:#000;
  --person:#7c9cff;--place:#60a5fa;--goal:#f6c453;--project:#c58cff;--routine:#34d399;--value:#fb7185;--preference:#4fd1c5;--account:#ff8fa3;--decision:#ffa94d;--fact:#9aa3bb;--conversation:#6ee7b7;--insight:#fde68a;
  --r-sm:8px;--r:12px;--r-lg:18px;--r-xl:24px;
  --shadow:0 1px 0 rgba(255,255,255,.04) inset,0 20px 60px rgba(0,0,0,.5);
  --glow:radial-gradient(600px 300px at 20% -10%,rgba(124,156,255,.10),transparent 60%),radial-gradient(500px 260px at 90% 0%,rgba(79,209,197,.08),transparent 55%);
  --sidebar:248px;--topbar:60px;
  --font:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;--brand:"Jost","Inter",sans-serif;
}
*{box-sizing:border-box}
html{color-scheme:dark}
body{margin:0;background:var(--bg);color:var(--text);font:14px/1.5 var(--font);-webkit-font-smoothing:antialiased;letter-spacing:-.005em}
.main{background:var(--glow)}
a{color:inherit;text-decoration:none}
::selection{background:#fff;color:#000}
.wordmark{font-family:var(--brand);font-weight:300;letter-spacing:.34em;text-transform:uppercase;font-size:12.5px;display:flex;align-items:center;gap:12px}
.wordmark svg{width:26px;height:26px;fill:var(--text);flex:none}

/* ---- app shell ---- */
.shell{display:grid;grid-template-columns:var(--sidebar) 1fr;min-height:100vh}
.sidebar{position:sticky;top:0;height:100vh;height:100dvh;overflow:hidden;overscroll-behavior:contain;border-right:1px solid var(--line);background:var(--surface);display:flex;flex-direction:column;padding:18px 14px;gap:6px}
.sidebar .nav{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:2px;scrollbar-width:thin}
.sidebar .wordmark,.sidebar .userbox{flex:none}
.sidebar .nav a{padding:7px 12px}
@media (max-height:760px){.sidebar{padding:12px 12px;gap:3px}.sidebar .wordmark{padding:4px 10px 10px}.sidebar .nav a{padding:5px 12px;font-size:13px}}
.sidebar .wordmark{padding:6px 10px 18px}
.nav a{display:flex;align-items:center;gap:11px;padding:9px 12px;border-radius:10px;color:var(--text-2);font-weight:500;transition:.15s}
.nav a svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;opacity:.85}
.nav a:hover{background:var(--surface-2);color:var(--text)}
.nav a.active{background:var(--surface-3);color:var(--text);box-shadow:inset 0 0 0 1px var(--line-2)}
.nav .sect{padding:16px 12px 6px;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--faint)}
.sidebar .grow{flex:0}
.userchip{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;border:1px solid var(--line);background:var(--surface-2)}
.userchip .avatar{width:30px;height:30px;border-radius:50%;background:#fff;color:#000;display:grid;place-items:center;font-weight:700;font-size:13px}
.userchip b{display:block;font-weight:600;font-size:13px;line-height:1.2}.userchip small{color:var(--muted);font-size:12px}
.userbox{border:1px solid var(--line);border-radius:12px;background:var(--surface-2);overflow:hidden}
.userbox .userchip{border:0;border-radius:0;background:transparent;width:100%}
.userlinks{display:flex;border-top:1px solid var(--line)}
.userlinks a{flex:1;text-align:center;padding:8px 4px;font-size:12.5px;color:var(--muted);border-right:1px solid var(--line)}
.userlinks a:last-child{border-right:0}
.userlinks a:hover{background:var(--surface-3);color:var(--text)}
.userlinks a.out{color:#ff8a8a}
.main{min-width:0;display:flex;flex-direction:column}
.topbar{height:var(--topbar);display:flex;align-items:center;gap:14px;padding:0 26px;border-bottom:1px solid var(--line);position:sticky;top:0;background:rgba(5,5,6,.8);backdrop-filter:blur(12px);z-index:20}
.topbar h1{font-size:15px;font-weight:600;margin:0;letter-spacing:-.01em}
.topbar .crumb{color:var(--muted);font-weight:400}
.topbar .spacer{flex:1}
/* min-width:0 is required: a grid item defaults to min-content width, so one wide child (the
   stat-tile row) stretched the whole column past the viewport and cut off the right-hand tiles. */
.content{padding:26px;display:grid;gap:22px;min-width:0}
.content>*{min-width:0}
.grid{min-width:0}
.content.full{padding:0;gap:0;flex:1}
@media (max-width:900px){.shell{grid-template-columns:1fr}.sidebar{position:fixed;left:0;top:0;z-index:40;transform:translateX(-100%);transition:.2s;width:var(--sidebar)}.sidebar.open{transform:none}.menu-btn{display:inline-flex!important}}

/* ---- primitives ---- */
.btn{appearance:none;border:1px solid var(--line-2);background:var(--surface-2);color:var(--text);border-radius:10px;padding:8px 14px;font:inherit;font-weight:500;cursor:pointer;display:inline-flex;align-items:center;gap:8px;transition:.15s;white-space:nowrap}
.btn:hover{background:var(--surface-3);border-color:rgba(255,255,255,.22)}
.btn.primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.btn.primary:hover{background:#e8e8ea}
.btn.ghost{background:transparent;border-color:transparent;color:var(--text-2)}
.btn.ghost:hover{background:var(--surface-2);color:var(--text)}
.btn.sm{padding:5px 10px;font-size:13px;border-radius:8px}
.btn.danger{color:#ff8a8a;border-color:rgba(255,120,120,.3)}
.btn svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.menu-btn{display:none}
.input,.select,input[type=search],input[type=text],input[type=password]{appearance:none;background:var(--surface);border:1px solid var(--line-2);color:var(--text);border-radius:10px;padding:8px 12px;font:inherit;outline:none;transition:.15s}
.input:focus,input:focus{border-color:rgba(255,255,255,.4);box-shadow:0 0 0 3px rgba(255,255,255,.06)}
.select option{background:#151519}
.search{position:relative}.search svg{position:absolute;left:11px;top:50%;transform:translateY(-50%);width:15px;height:15px;stroke:var(--muted);fill:none;stroke-width:1.8}
.search input{padding-left:34px;width:100%}
.card{background:linear-gradient(180deg,rgba(255,255,255,.025),transparent 40%),var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:20px}
.card.pad-0{padding:0;overflow:hidden}
.card h3{margin:0 0 4px;font-size:14px;font-weight:600}
.card .sub{color:var(--muted);margin:0 0 14px;font-size:13px}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.grid{display:grid;gap:16px}
/* auto-fit rather than a fixed 4: the dashboard shows six stat tiles, and a hard 4-column grid
   pushed the last two off the right edge instead of wrapping them onto a second row. */
.g-4{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.g-3{grid-template-columns:repeat(3,1fr)}.g-2{grid-template-columns:repeat(2,1fr)}.g-21{grid-template-columns:2fr 1fr}.g-12{grid-template-columns:1fr 2fr}
@media (max-width:1100px){.g-4{grid-template-columns:repeat(2,1fr)}.g-3{grid-template-columns:1fr 1fr}}
@media (max-width:760px){.g-4,.g-3,.g-2,.g-21,.g-12{grid-template-columns:1fr}.content{padding:16px}}
.tile{background:linear-gradient(180deg,rgba(255,255,255,.03),transparent),var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:18px 20px;display:flex;flex-direction:column;gap:6px;position:relative;overflow:hidden;transition:.2s}
.tile:hover{border-color:var(--line-2);transform:translateY(-1px)}
.tile:after{content:"";position:absolute;right:-30px;top:-30px;width:110px;height:110px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.06),transparent 70%)}
.tile .n{font-size:30px;font-weight:600;letter-spacing:-.03em;line-height:1}
.tile .l{color:var(--muted);font-size:12.5px;display:flex;align-items:center;gap:8px}
.tile .l i{width:8px;height:8px;border-radius:50%;display:inline-block}
.tile .delta{color:var(--muted);font-size:12px}
.pill{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;font-size:12px;border:1px solid var(--line-2);color:var(--text-2);background:var(--surface-2)}
.pill i{width:7px;height:7px;border-radius:50%;display:inline-block}
.kind{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:600}
.dot{width:9px;height:9px;border-radius:50%;display:inline-block;flex:none}
.list{display:flex;flex-direction:column}
.row{display:flex;align-items:center;gap:14px;padding:12px 0;border-top:1px solid var(--line)}
.row:first-child{border-top:0}
.row .body{flex:1;min-width:0}
.row .body b{font-weight:600;display:block;font-size:14px}
.row .body small{display:block;color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row .meta{color:var(--muted);font-size:12.5px;white-space:nowrap}
.row .act{opacity:0;transition:.15s}.row:hover .act{opacity:1}
table.t{width:100%;border-collapse:collapse;font-size:13.5px}
table.t th{text-align:left;font-weight:600;color:var(--muted);font-size:12px;letter-spacing:.06em;text-transform:uppercase;padding:10px 14px;border-bottom:1px solid var(--line)}
table.t td{padding:11px 14px;border-bottom:1px solid var(--line);vertical-align:top}
table.t tr:hover td{background:rgba(255,255,255,.02)}
.empty{padding:34px 20px;text-align:center;color:var(--muted)}
.empty b{display:block;color:var(--text);font-weight:600;margin-bottom:4px}
.tabs{display:inline-flex;gap:4px;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:4px}
.tabs button{appearance:none;border:0;background:transparent;color:var(--text-2);padding:6px 12px;border-radius:7px;font:inherit;font-weight:500;cursor:pointer}
.tabs button.on{background:var(--surface-3);color:var(--text)}
.bar{display:grid;grid-template-columns:150px 1fr 44px;gap:12px;align-items:center;font-size:13px;padding:6px 0}
.bar i{display:block;height:8px;border-radius:4px;background:linear-gradient(90deg,#fff,rgba(255,255,255,.55))}
.bar span:last-child{text-align:right;color:var(--muted)}
.spark{display:flex;gap:2px;align-items:flex-end;height:44px}.spark i{flex:1;background:rgba(255,255,255,.75);border-radius:2px 2px 0 0;min-height:2px}
/* The single pinned toast used by Axiom.toast(). It was called .toast — the same name as the
   stacked toasts further down — so the two rules merged into one element. This half set
   opacity:0 and waited for a .show class; the stacked half never adds one and redeclares
   neither opacity nor transform. So a say() toast was painted by its 180ms entrance animation
   and then dropped straight back to invisible, which is the flash you saw: the message was
   still on screen for three more seconds, just at zero opacity.
   (web/apps.html has its own local .toast with an .on class and is unaffected.) */
.toast1{position:fixed;left:50%;bottom:22px;transform:translateX(-50%) translateY(20px);background:#fff;color:#000;padding:10px 16px;border-radius:999px;font-weight:500;opacity:0;transition:.2s;pointer-events:none;z-index:100}
.toast1.show{opacity:1;transform:translateX(-50%)}
.skeleton{background:linear-gradient(90deg,var(--surface-2),var(--surface-3),var(--surface-2));background-size:200% 100%;animation:sk 1.2s infinite;border-radius:8px;height:14px}
@keyframes sk{to{background-position:-200% 0}}
details.acc{border-top:1px solid var(--line)}details.acc summary{list-style:none;cursor:pointer;padding:12px 0;display:flex;gap:12px;align-items:center}details.acc summary::-webkit-details-marker{display:none}
.chip{border:1px solid var(--line-2);border-radius:999px;padding:3px 10px;font-size:12px;cursor:pointer;display:inline-flex;gap:6px;align-items:center;background:var(--surface-2)}.chip:hover{border-color:#fff}
.kbd{font-family:ui-monospace,Menlo,monospace;font-size:11px;border:1px solid var(--line-2);border-radius:5px;padding:1px 6px;color:var(--muted)}
.fade-in{animation:fi .35s ease both}@keyframes fi{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* ---- global search + palette ---- */
.gsearch{position:relative;display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line-2);border-radius:10px;padding:0 10px;height:36px;width:min(420px,40vw)}
.gsearch svg{width:15px;height:15px;stroke:var(--muted);fill:none;stroke-width:1.8}
.gsearch input{flex:1;background:transparent;border:0;color:var(--text);font:inherit;outline:none;padding:0}
.pal{position:fixed;inset:0;background:rgba(0,0,0,.6);backdrop-filter:blur(6px);display:none;z-index:200;align-items:flex-start;justify-content:center;padding-top:12vh}
.pal.open{display:flex}
.pal-box{width:min(680px,92vw);background:var(--surface);border:1px solid var(--line-2);border-radius:16px;box-shadow:var(--shadow);overflow:hidden;animation:fi .15s ease}
.pal-in{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--line)}
.pal-in svg{width:18px;height:18px;stroke:var(--muted);fill:none;stroke-width:1.8}
.pal-in input{flex:1;background:transparent;border:0;color:var(--text);font:inherit;font-size:16px;outline:none}
.pal-res{max-height:60vh;overflow:auto;padding:6px}
.pal-row{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;cursor:pointer}
.pal-row.on{background:var(--surface-3)}
.pal-row .body{flex:1;min-width:0}.pal-row b{display:block;font-weight:600}.pal-row small{color:var(--muted);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* full-bleed stages (graph, map) */
.content.full{display:flex;flex-direction:column;height:calc(100vh - var(--topbar));overflow:hidden}
.stage{flex:1;position:relative;min-height:0}
.stage canvas,.stage #m{position:absolute;inset:0;width:100%;height:100%}

/* ---- modern controls: no native checkboxes, radios or selects ---- */
.switch{position:relative;display:inline-flex;align-items:center;gap:9px;cursor:pointer;user-select:none;font-size:13px}
.switch input{position:absolute;opacity:0;width:0;height:0}
.switch .track{width:34px;height:20px;border-radius:999px;background:var(--surface-3);border:1px solid var(--line-2);transition:.18s;flex:none;position:relative}
.switch .track:after{content:"";position:absolute;left:2px;top:2px;width:14px;height:14px;border-radius:50%;background:var(--muted);transition:.18s}
.switch input:checked + .track{background:var(--accent);border-color:var(--accent)}
.switch input:checked + .track:after{transform:translateX(14px);background:var(--accent-ink)}
.switch input:focus-visible + .track{box-shadow:0 0 0 3px rgba(255,255,255,.15)}
.switch.sm .track{width:28px;height:17px}.switch.sm .track:after{width:11px;height:11px}
.switch.sm input:checked + .track:after{transform:translateX(11px)}

.seg{display:inline-flex;background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:3px;gap:2px}
.seg button{appearance:none;border:0;background:transparent;color:var(--muted);padding:5px 11px;border-radius:6px;font:inherit;font-size:12.5px;font-weight:500;cursor:pointer;transition:.15s}
.seg button:hover{color:var(--text)}
.seg button[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink)}

.chipset{display:flex;flex-wrap:wrap;gap:6px}
.chipset .opt{border:1px solid var(--line-2);border-radius:999px;padding:5px 12px;font-size:12.5px;cursor:pointer;color:var(--muted);background:transparent;transition:.15s;user-select:none}
.chipset .opt:hover{border-color:var(--text);color:var(--text)}
.chipset .opt.on{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}

.field{display:grid;gap:6px}
.field label{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
select,
select.select{appearance:none;background:var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8b93' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 10px center/14px;padding-right:32px}
select:focus,select.select:focus{outline:none;border-color:var(--text-2)}
select:disabled{opacity:.5;cursor:not-allowed}
/* Every text-like field, not only the ones inside a sheet. Bare inputs were falling back to the
   browser's own control — white boxes with square corners on a dark page — and each page that
   noticed fixed it with its own inline style, so no two matched. One rule, everywhere. */
input[type=text],input[type=search],input[type=url],input[type=email],input[type=password],
input[type=number],input[type=date],input[type=time],input:not([type]),textarea{
  background:var(--surface-2);border:1px solid var(--line);border-radius:10px;
  padding:8px 12px;color:var(--text);font:inherit;font-size:14px;outline:none;
  transition:border-color .15s}
input[type=text]:focus,input[type=search]:focus,input[type=url]:focus,input[type=email]:focus,
input[type=password]:focus,input[type=number]:focus,input[type=date]:focus,input[type=time]:focus,
input:not([type]):focus,textarea:focus{border-color:var(--line-2)}
input::placeholder,textarea::placeholder{color:var(--faint)}
input:disabled,textarea:disabled{opacity:.5;cursor:not-allowed}
textarea{resize:vertical;line-height:1.55}

input[type=range]{appearance:none;height:4px;border-radius:2px;background:var(--line-2);outline:none}
input[type=range]::-webkit-slider-thumb{appearance:none;width:14px;height:14px;border-radius:50%;background:var(--accent);cursor:pointer;border:0}

/* ---- phones: the same app, fitted to a narrow screen. Nothing may overflow sideways. ---- */
@media (max-width:640px){
  .content{padding:12px;max-width:100vw;overflow-x:hidden}
  main{max-width:100vw;overflow-x:hidden}
  .topbar{padding:0 12px;gap:8px}
  .topbar h1{font-size:14px;white-space:nowrap}
  .topbar .crumb{display:none}
  .gsearch{flex:1;min-width:0;max-width:none}
  .gsearch input{width:100%;min-width:0;font-size:13px;padding-right:10px}
  .gsearch kbd{display:none}
  .card{min-width:0;overflow-wrap:anywhere;padding:14px}
  .card h3{font-size:14px}
  .grid,.g-4,.g-3,.g-2,.g-21,.g-12,.cols,.two,.mgrid,.pgrid{grid-template-columns:1fr 1fr!important;gap:10px}
  .cols,.two,.pgrid{grid-template-columns:1fr!important}
  .tile{padding:12px 12px}
  .tile .n{font-size:22px}
  .tpl{grid-template-columns:1fr 1fr!important;gap:6px}
  .tpl button{padding:8px;font-size:12px}
  .row2{flex-direction:column;align-items:stretch}
  .row2 .btn{width:100%;justify-content:center}
  .row2 select{width:100%}
  textarea,input,select{max-width:100%;box-sizing:border-box}
  .form{grid-template-columns:1fr!important}
  .acts .btn{flex:1 1 auto}
  /* Tables become stacked rows: kind + name on one line, the detail beneath, the date small. */
  table{display:block;max-width:100%}
  thead{display:none}
  tbody,tr{display:block}
  tr{padding:10px 0;border-bottom:1px solid var(--line)}
  td{display:inline-block;border:0!important;padding:2px 8px 2px 0!important;vertical-align:top;white-space:normal}
  td:nth-child(3){display:block;padding-top:4px!important;color:var(--text-2)}
  td:last-child{float:right}
  .kinds,.bar .t,#kinds{display:flex;overflow-x:auto;white-space:nowrap;gap:6px;-webkit-overflow-scrolling:touch}
  #kinds button{flex:0 0 auto;white-space:nowrap}
  .gsearch{min-width:120px}
  .viewer{padding:8px}
  .vbox{width:100%;grid-template-columns:1fr!important}
}
/* A grid column is min-width:auto by default, so one wide child (a toolbar, a table) stretches the
   whole page past the phone's edge and drags the header with it. Never let that happen. */
@media (max-width:900px){
  html,body{max-width:100%;overflow-x:hidden}
  .shell{grid-template-columns:minmax(0,1fr)}
  .shell>*,.content,main,.card,.topbar,.grid>*{min-width:0}
  .topbar{min-width:0;overflow:hidden}
  .toolbar,.bar,.gbar,.controls{flex-wrap:wrap}
  input[type=search],#q{max-width:100%}
  iframe{max-width:100%}
  pre,code{white-space:pre-wrap;overflow-wrap:anywhere}
}

/* The social header. Deliberately quiet next to the page title — these are always-there links, not
   the subject of the page you are on. */
.toplinks{display:flex;gap:4px;align-items:center;margin-right:10px}
.toplink{display:flex;align-items:center;gap:6px;padding:7px 11px;border-radius:999px;font-size:13px;color:var(--muted);text-decoration:none;position:relative;white-space:nowrap}
.toplink svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.toplink:hover{color:var(--text);background:var(--surface-2)}
.toplink.on{color:var(--text);background:var(--surface-2)}
/* A dot, not a pill. The number was never the point — "something is waiting" is — and a yellow
   badge with a digit in it shouts across a header that is otherwise quiet. Six pixels of the
   accent green says the same thing and lets the rest of the bar stay calm. */
.toplink .badge{position:absolute;top:5px;right:6px;width:6px;height:6px;border-radius:50%;background:#34d399;font-size:0;text-indent:-999px;overflow:hidden;box-shadow:0 0 0 2px var(--bg)}
/* On a phone the labels go and the icons stay: three words plus a page title is a wrapped line. */
@media (max-width:820px){
  .toplink span{display:none}
  .toplink{padding:7px 9px}
  .toplinks{margin-right:4px}
}

/* ================================================================================================
   The social surface: feed, profile, marketplace.

   One system, defined once, because three pages that each invent their own card is how a product
   starts looking assembled rather than designed. Everything below is shape and rhythm — no colour
   is introduced that is not already a token above.

   No emoji anywhere. An emoji is somebody else's typeface: it renders differently on every
   platform, it carries a tone the page did not choose, and at 13px it is a smudge. Reactions and
   actions use drawn SVG on currentColor, so they inherit weight and state like text does.
   ================================================================================================ */

/* ---- the page rhythm ---- */
.social{max-width:640px;margin:0 auto}
.social.wide{max-width:940px}
/* A feed is a column of cards. The gap is the only thing separating them, so it has to be big
   enough to read as separation and small enough to read as one list. */
.stream{display:flex;flex-direction:column;gap:16px}

/* ---- a card ---- */
/* A card sat flat on the page background, which is what made a column of them read as grey soup.
   A hair of lift, and a hairline of accent down the left edge when it is yours. */
.pc{border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;position:relative;
  background:linear-gradient(180deg,rgba(255,255,255,.028),transparent 42%),var(--surface);
  box-shadow:0 1px 2px rgba(0,0,0,.25)}
.pc:hover{border-color:var(--line-2)}
.pc.own::before{content:"";position:absolute;left:0;top:0;bottom:0;width:2px;background:var(--routine);opacity:.75}
.pc .top{display:flex;gap:11px;align-items:center;padding:14px 16px 12px}
.pc .who{min-width:0;flex:1}
.pc .who b{font-size:14.5px;font-weight:600;display:block;letter-spacing:-.01em}
.pc .who .meta{display:block;color:var(--muted);font-size:12px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pc .body{padding:0 16px 14px;font-size:15px;line-height:1.6;color:var(--text);white-space:pre-wrap;overflow-wrap:anywhere}
.pc .body.cap{font-size:13.5px;color:var(--text-2);padding-top:12px;line-height:1.55}

/* ---- avatars ---- */
.av{flex:none;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-weight:600;font-size:15px;
    background:var(--surface-3);color:var(--text-2);border:1px solid var(--line);letter-spacing:-.02em;text-transform:uppercase}
.av.lg{width:76px;height:76px;font-size:30px;border-radius:22px}
.av.sm{width:26px;height:26px;font-size:11px}

/* ---- media: cropped, never stretched ----
   object-fit:cover with a fixed aspect ratio is the whole trick. A photo keeps its own proportions
   and is CROPPED to the frame; without it a portrait shot stretches to the card width and a
   landscape one leaves bars. aspect-ratio (not a fixed height) means the frame scales with the
   column on a phone. */
.media{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;
  background:linear-gradient(135deg,var(--surface-3),var(--surface-2))}
.media.tall{aspect-ratio:3/4}
.media.wide{aspect-ratio:16/9}
.media.sq{aspect-ratio:1}
.social video.media{background:#000}
.mediawrap{position:relative;display:block}
.mediawrap .play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:52px;height:52px;
  border-radius:50%;background:rgba(0,0,0,.55);backdrop-filter:blur(4px);display:grid;place-items:center;pointer-events:none}
.mediawrap .play svg{width:20px;height:20px;fill:#fff;stroke:none;margin-left:2px}
.mediawrap .dur{position:absolute;right:10px;bottom:10px;background:rgba(0,0,0,.62);color:#fff;
  border-radius:5px;padding:2px 7px;font-size:11.5px;font-variant-numeric:tabular-nums}

/* A gallery. One large with a column beside it for three, an even grid for four — the shapes
   people actually post — and every cell cropped square so the grid stays a grid. */
.gal{display:grid;gap:3px}
.gal.n2{grid-template-columns:1fr 1fr}
.gal.n3{grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr}
.gal.n3 > :first-child{grid-row:span 2}
.gal.n4{grid-template-columns:1fr 1fr}
.gal img{width:100%;height:100%;object-fit:cover;aspect-ratio:1;display:block;
  background:linear-gradient(135deg,var(--surface-3),var(--surface-2))}
.gal.n3 > :first-child{aspect-ratio:auto}
.gal .more{position:relative}
.gal .more::after{content:attr(data-more);position:absolute;inset:0;display:grid;place-items:center;
  background:rgba(0,0,0,.55);color:#fff;font-size:19px;font-weight:600;letter-spacing:-.02em}

/* ---- quote, link, question, expert ---- */
.quote{margin:2px 16px 16px;padding:2px 0 2px 16px;border-left:2px solid var(--line-2);
  font-size:18px;line-height:1.45;letter-spacing:-.015em;color:var(--text)}
.linkcard{display:block;margin:0 16px 14px;border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.linkcard:hover{background:var(--surface-2);border-color:var(--line-2)}
.linkcard .in{padding:13px 15px}
.linkcard .host{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.07em;font-weight:500}
.linkcard .t{font-size:14.5px;margin-top:4px;line-height:1.45;color:var(--text)}
.askcard{display:flex;gap:12px;align-items:flex-start;padding:0 16px 15px}
.askcard .mark{flex:none;width:26px;height:26px;border-radius:50%;background:var(--surface-3);border:1px solid var(--line);
  display:grid;place-items:center;font-size:13px;font-weight:600;color:var(--text-2)}
.askcard p{margin:0;font-size:16px;line-height:1.5;letter-spacing:-.01em}
.expcard{display:flex;gap:12px;align-items:center;margin:0 16px 14px;padding:13px 14px;
  border:1px solid var(--line);border-radius:var(--r)}
.expcard:hover{border-color:var(--line-2)}
.expcard .ic{flex:none;width:38px;height:38px;border-radius:11px;background:var(--surface-3);display:grid;place-items:center;color:var(--routine)}
.expcard .ic svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7}
.expcard b{font-size:14px;display:block}
.expcard small{display:block;color:var(--muted);font-size:12px;margin-top:2px;line-height:1.45}

/* ---- actions: drawn, not emoji ---- */
.social .acts{display:flex;gap:4px;align-items:center;padding:8px 10px;border-top:1px solid var(--line)}
.social .act{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:var(--muted);
  border-radius:999px;padding:7px 11px;font:inherit;font-size:13px;cursor:pointer;transition:background .12s,color .12s}
.social .act svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.social .act:hover{background:var(--surface-2);color:var(--text)}
.social .act .n{font-variant-numeric:tabular-nums;font-size:12.5px}
/* On: the icon fills. Colour carries meaning here and nowhere else on the card. */
.social .act.on{color:var(--text)}
.social .act.on svg{fill:currentColor;stroke:none}
.social .act.love.on{color:var(--value)}
.social .act.like.on{color:var(--person)}
.social .act.no.on{color:var(--decision)}
.social .act.no.on svg{fill:none;stroke:currentColor}
.social .act.pass{margin-left:auto}

/* ---- comments ---- */
.cmts{padding:0 16px 14px;border-top:1px solid var(--line);margin-top:-1px}
.cmt{display:flex;gap:10px;padding:12px 0 0}
.cmt .bub{background:var(--surface-2);border-radius:14px;padding:9px 13px;min-width:0}
.cmt .bub b{font-size:12.5px;font-weight:600;display:block;margin-bottom:2px}
.cmt .bub p{margin:0;font-size:13.5px;line-height:1.5;overflow-wrap:anywhere}
.cmt time{display:block;color:var(--faint);font-size:11px;margin:4px 0 0 13px}
.cwrite{display:flex;gap:9px;align-items:center;padding-top:12px}
.cwrite input{flex:1;background:var(--surface-2);border:1px solid var(--line);border-radius:999px;
  padding:10px 15px;color:var(--text);font:inherit;font-size:13.5px;min-width:0}
.cwrite input:focus{outline:none;border-color:var(--line-2)}

/* ---- compose ---- */
.compose{border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);padding:14px 16px}
.compose:focus-within{border-color:var(--line-2)}
.compose .in{display:flex;gap:12px}
.compose textarea{flex:1;width:100%;background:transparent;border:0;color:var(--text);font:inherit;
  font-size:15.5px;line-height:1.55;resize:none;outline:none;padding-top:8px;min-height:38px}
.compose textarea::placeholder{color:var(--faint)}
.compose .tools{display:flex;gap:8px;align-items:center;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.compose .tools .pick{white-space:nowrap}
.compose .tools .chipset.vis{gap:5px}
.compose .tools .chipset.vis .opt{font-size:12px;padding:5px 10px}
.compose input[type=url]{flex:1;background:var(--surface-2);border:1px solid var(--line);border-radius:999px;
  padding:9px 14px;color:var(--text);font:inherit;font-size:13px;min-width:0}
.compose .say{color:var(--muted);font-size:12.5px;margin-left:auto}

/* ---- profile ---- */
.banner{border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);overflow:hidden}
.banner .sky{height:132px;background:var(--glow),linear-gradient(160deg,var(--surface-3),var(--surface));border-bottom:1px solid var(--line)}
.banner .id{display:flex;gap:16px;align-items:flex-end;padding:0 22px;margin-top:-38px}
.banner .id .av{border:3px solid var(--surface);box-shadow:var(--shadow)}
.banner .nm{padding-bottom:6px;min-width:0;flex:1}
.banner .nm h1{margin:0;font-size:22px;letter-spacing:-.02em;line-height:1.2}
.banner .nm .handle{color:var(--muted);font-size:13px;margin-top:3px}
.banner .act-row{display:flex;gap:8px;padding:16px 22px 0;flex-wrap:wrap}
.banner .bio{padding:14px 22px 0;font-size:14.5px;line-height:1.6;color:var(--text-2);max-width:60ch}
.stats{display:flex;gap:0;padding:18px 22px 20px;flex-wrap:wrap}
.stat{padding-right:26px;margin-right:26px;border-right:1px solid var(--line)}
.stat:last-child{border-right:0;margin-right:0;padding-right:0}
.stat b{display:block;font-size:20px;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.stat span{display:block;color:var(--muted);font-size:12px;margin-top:2px}

/* ---- tabs that look like tabs ---- */
.tabbar{display:flex;gap:2px;border-bottom:1px solid var(--line);margin:22px 0 18px;overflow-x:auto;scrollbar-width:none}
.tabbar::-webkit-scrollbar{display:none}
.tabbar button{border:0;background:transparent;color:var(--muted);font:inherit;font-size:13.5px;font-weight:500;
  padding:11px 15px;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap}
.tabbar button:hover{color:var(--text-2)}
.tabbar button.on{color:var(--text);border-bottom-color:var(--text)}
.tabbar .n{color:var(--faint);font-size:12px;margin-left:6px;font-variant-numeric:tabular-nums}

/* ---- section headings inside a page ---- */
.sechead{display:flex;align-items:baseline;gap:10px;margin:26px 0 12px}
.sechead h2{margin:0;font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.sechead .rule{flex:1;height:1px;background:var(--line)}

/* ---- marketplace ----
   Named .xtile, not .tile: .tile is already the stats tile above, complete with a decorative
   ::after blob. Two different components sharing a class is how cards end up overlapping. */
.social .grid{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(268px,1fr))}
.xtile{border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);padding:18px;display:flex;flex-direction:column;gap:11px}
.xtile:hover{border-color:var(--line-2)}
.xtile .hd{display:flex;gap:11px;align-items:flex-start}
.xtile .ic{flex:none;width:40px;height:40px;border-radius:12px;background:var(--surface-3);display:grid;place-items:center;color:var(--routine)}
.xtile .ic svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}
.xtile h3{margin:0;font-size:15px;letter-spacing:-.01em}
.xtile .by{color:var(--muted);font-size:12px;margin-top:2px}
.xtile p{margin:0;font-size:13.5px;line-height:1.55;color:var(--text-2);flex:1}
.xtile .foot{display:flex;gap:14px;align-items:center;color:var(--faint);font-size:12px;font-variant-numeric:tabular-nums}
.xtile .foot .sp{flex:1}

/* ---- empty states that say something ---- */
.blank{border:1px dashed var(--line-2);border-radius:var(--r-lg);padding:44px 28px;text-align:center}
.blank b{display:block;font-size:15.5px;margin-bottom:7px;letter-spacing:-.01em}
.blank p{margin:0 auto;max-width:42ch;color:var(--muted);font-size:13.5px;line-height:1.6}
.blank .btn{margin-top:16px}

/* ---- skeletons, so a slow feed is not a blank screen ---- */
@keyframes sk{0%{opacity:.5}50%{opacity:.85}100%{opacity:.5}}
.sk{background:var(--surface-2);border-radius:6px;animation:sk 1.4s ease-in-out infinite}
.skcard{border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);padding:16px}
.skcard .row{display:flex;gap:11px;align-items:center;margin-bottom:14px}

@media (max-width:600px){
  .pc .body{font-size:15px}
  .banner .id{padding:0 16px}
  .banner .bio,.banner .act-row{padding-left:16px;padding-right:16px}
  .stats{padding:16px}
  .stat{padding-right:18px;margin-right:18px}
}

/* ================================================================================================
   Feed layout: a column of posts with a rail beside it.

   The single centred column wasted half a desktop screen and gave people nowhere to see who they
   are connected to. The rail carries the things you glance at — your own numbers, who is there,
   what just happened — and collapses away entirely on a phone, where a sidebar is just scroll.
   ================================================================================================ */
/* The column carries the reading; the rail is furniture. 1120px made the posts too wide to scan —
   a line of text past about 70 characters is measurably harder to read, and a photo blown to 780px
   is a photo you look AT rather than through. Two thirds and a third. */
/* Asked for twice. The column is capped in ABSOLUTE terms, not as a fraction — a fraction of a
   wide monitor is still too wide to read, which is why 2fr/1fr did not fix it. 560px is about 70
   characters at this size, which is where a line stops being comfortable. */
.social.feedlay{max-width:900px}
.feedgrid{display:grid;grid-template-columns:minmax(0,560px) minmax(0,1fr);gap:26px;align-items:start;justify-content:center}
/* Sticky, and SCROLLABLE. Sticky alone pins the top of a rail that is taller than the window, so
   its bottom is unreachable — you could see the first few people and never the rest. */
.rail{position:sticky;top:78px;max-height:calc(100vh - 96px);overflow-y:auto;overscroll-behavior:contain;
  display:flex;flex-direction:column;gap:14px;padding-right:2px;scrollbar-width:thin}
.rail::-webkit-scrollbar{width:6px}
.rail::-webkit-scrollbar-thumb{background:var(--line-2);border-radius:3px}
.rail .box{border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;
  background:linear-gradient(180deg,rgba(255,255,255,.025),transparent 40%),var(--surface)}
.rail .box > h3{margin:0;padding:14px 16px 11px;font-size:12px;font-weight:600;text-transform:uppercase;
  letter-spacing:.08em;color:var(--muted);border-bottom:1px solid var(--line)}
.rail .box .in{padding:6px}
.rail .who{display:flex;gap:10px;align-items:center;padding:8px 10px;border-radius:10px;min-width:0}
.rail .who:hover{background:var(--surface-2)}
.rail .who b{font-size:13.5px;font-weight:500;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rail .who small{display:block;color:var(--muted);font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rail .mine{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line)}
.rail .mine > div{background:var(--surface);padding:13px 15px}
.rail .mine b{display:block;font-size:21px;letter-spacing:-.02em;font-variant-numeric:tabular-nums;line-height:1.1;color:var(--routine)}
.rail .mine span{display:block;color:var(--muted);font-size:11.5px;margin-top:3px}
.rail .act-line{display:flex;gap:10px;padding:9px 12px;font-size:12.5px;color:var(--text-2);line-height:1.45;align-items:flex-start}
.rail .act-line .av{margin-top:1px}
.rail .who .av{width:32px;height:32px;font-size:13px}
.rail .act-line em{color:var(--muted);font-style:normal}
.rail .more{display:block;padding:10px 16px;font-size:12.5px;color:var(--muted);border-top:1px solid var(--line)}
.rail .more:hover{color:var(--text)}
@media (max-width:980px){ .feedgrid{grid-template-columns:minmax(0,1fr)} .rail{display:none} }

/* ---- in-app sheets, instead of prompt() and confirm() ----
   A browser dialog is the operating system's furniture in the middle of your app: it cannot be
   styled, it blocks the page, and it says the hostname at the top. Everything that used to be a
   prompt is now a sheet that belongs to the page. */
.sheetwrap{position:fixed;inset:0;z-index:80;display:grid;place-items:end center;
  background:rgba(0,0,0,.55);backdrop-filter:blur(3px);animation:fade .16s ease}
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes rise{from{transform:translateY(14px);opacity:.4}to{transform:none;opacity:1}}
.sheet{width:min(520px,100%);background:var(--surface);border:1px solid var(--line-2);
  border-radius:var(--r-xl) var(--r-xl) 0 0;padding:22px 22px 20px;animation:rise .18s cubic-bezier(.2,.8,.3,1);
  max-height:88vh;overflow:auto}
@media (min-width:620px){ .sheetwrap{place-items:center} .sheet{border-radius:var(--r-xl)} }
.sheet h3{margin:0 0 6px;font-size:17px;letter-spacing:-.015em}
.sheet .why{margin:0 0 16px;color:var(--muted);font-size:13.5px;line-height:1.6}
.sheet textarea,.sheet input[type=text]{width:100%;background:var(--surface-2);border:1px solid var(--line);
  border-radius:12px;padding:12px 14px;color:var(--text);font:inherit;font-size:14.5px;line-height:1.55;
  resize:vertical;outline:none}
.sheet textarea:focus,.sheet input[type=text]:focus{border-color:var(--line-2)}
.sheet .row{display:flex;gap:9px;align-items:center;margin-top:16px}
.sheet .row .sp{flex:1}
.sheet .quoted{border-left:2px solid var(--line-2);padding:2px 0 2px 13px;margin:0 0 16px;
  color:var(--text-2);font-size:13.5px;line-height:1.55;max-height:120px;overflow:hidden}

/* ---- toast: a result you can see without a dialog ---- */
.toasts{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);z-index:90;display:flex;
  flex-direction:column;gap:8px;align-items:center;pointer-events:none}
.toasts .toast{position:static;opacity:1;transform:none;pointer-events:none;
  background:var(--surface-3);border:1px solid var(--line-2);border-radius:999px;
  padding:10px 18px;font-size:13.5px;color:var(--text);box-shadow:var(--shadow);animation:rise .18s ease}


/* ---- getting back ----
   Every social page was a one-way trip: you could reach a profile from the feed and then had only
   the browser's back button, which is not a thing people look for inside an app. */
.backrow{display:flex;align-items:center;gap:10px;margin:-4px 0 16px}
.back{display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:13px;
  border:1px solid var(--line);border-radius:999px;padding:7px 13px 7px 10px;background:var(--surface)}
.back:hover{color:var(--text);border-color:var(--line-2)}
.back svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}


/* ---- waiting, inline in the feed ----
   A full-width panel of chores at the top of People was the wrong shape and the wrong place. These
   are things one person sent YOU: they belong in the stream, at the width of a post, decided as you
   come to them. */
.social .waitcard{border:1px solid var(--line-2);border-radius:var(--r-lg);overflow:hidden;
  background:linear-gradient(125deg,rgba(52,211,153,.08),transparent 55%),var(--surface)}
.social .waitcard .tag{display:flex;align-items:center;gap:8px;padding:11px 16px 0;color:var(--routine);
  font-size:11.5px;font-weight:600;text-transform:uppercase;letter-spacing:.07em}
.social .waitcard .tag svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.9}
.social .waitcard .who2{display:flex;gap:11px;align-items:center;padding:11px 16px}
.social .waitcard .who2 b{font-size:14.5px;display:block}
.social .waitcard .who2 small{display:block;color:var(--muted);font-size:12px;margin-top:2px}
.social .waitcard .said{padding:0 16px 13px;font-size:14px;line-height:1.6;color:var(--text-2)}
.social .waitcard .acts2{display:flex;gap:10px;flex-wrap:wrap;padding:12px 16px;border-top:1px solid var(--line);align-items:center}
.social .waitcard .acts2 .hint2{color:var(--faint);font-size:11.5px;margin-left:auto;text-align:right;line-height:1.4;max-width:52%}
.social .labels{display:flex;gap:6px;flex-wrap:wrap;padding:0 16px 12px}
.social .lbl{border:1px solid var(--line);border-radius:999px;padding:3px 9px;font-size:11px;color:var(--muted)}
.social .lbl.live{color:var(--value);border-color:rgba(251,113,133,.35)}


/* ---- links inside cards ----
   A heading that navigates somewhere has to look like it does. These read as plain text, so the
   marketplace looked unclickable even though every tile linked through. */
.social .xtile h3 a,.social .pcard h3 a,.social .pc .who b a{color:inherit;text-decoration:none}
.social .xtile h3 a:hover,.social .pcard h3 a:hover,.social .pc .who b a:hover{text-decoration:underline;text-underline-offset:2px}
.social .xtile{cursor:pointer;transition:border-color .14s,transform .14s}
.social .xtile:hover{transform:translateY(-1px)}
.social .xtile h3::after{content:"›";color:var(--faint);font-weight:400;margin-left:5px}

/* ---- the rail's own rows are destinations too ---- */
.rail .act-line{cursor:default}
.rail .act-line.go{cursor:pointer;border-radius:9px}
.rail .act-line.go:hover{background:var(--surface-2)}


/* ---- the work / personal lens ----
   A switch, not a filter menu: it changes what the whole page is about, so it belongs at the top
   where you can see which half of your life you are looking at. */
.lens{display:inline-flex;gap:2px;background:var(--surface-2);border:1px solid var(--line);
  border-radius:999px;padding:3px;margin-bottom:16px}
.lens button{border:0;background:transparent;color:var(--muted);font:inherit;font-size:13px;
  padding:7px 15px;border-radius:999px;cursor:pointer;white-space:nowrap}
.lens button:hover{color:var(--text)}
.lens button.on{background:var(--surface);color:var(--text);box-shadow:0 1px 2px rgba(0,0,0,.3)}
.lens button.on[data-l=work]{color:var(--person)}
.lens button.on[data-l=personal]{color:var(--routine)}
.lensnote{color:var(--faint);font-size:12px;margin:-8px 0 16px}

/* A side, marked on a thing. Quiet — it is a label, not a warning. */
.sidetag{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--line);
  border-radius:999px;padding:2px 8px;font-size:10.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.sidetag.work{color:var(--person);border-color:rgba(124,156,255,.3)}
.sidetag.personal{color:var(--routine);border-color:rgba(52,211,153,.3)}


/* ---- the feed, made to look at ----
   The column read as a wall of text with the occasional picture in it. Media is what a feed is for,
   so it gets the room, and everything around it gets quieter. */
.social .pc .cardbody img.media,.social .pc .cardbody video.media{border-radius:0}
/* A post that is ONLY a picture needs no padding fighting it. */
.social .pc:has(.cardbody > img.media:only-child) .top{padding-bottom:10px}
/* Words, when there are words, want to be readable rather than shouted. */
.social .pc .body{font-size:15.5px;line-height:1.62;letter-spacing:-.003em}
.social .pc .body.cap{font-size:14px;color:var(--text-2);line-height:1.55}
/* The why strip, when it appears at all, sits under the card as a footnote — not above the words
   as a headline. */
.social .why{order:99;border-top:1px solid var(--line);padding-top:10px;margin:0 16px;opacity:.75}
.social .why:hover{opacity:1}
.social .pc{display:flex;flex-direction:column}
.social .pc .top{order:1}
.social .pc .cardbody{order:2}
.social .pc form.edit{order:3}
.social .pc .acts{order:4}
.social .pc .cmts{order:5}


/* ---- @ mentions in the composer ----
   A strip of names, not a gallery of faces: choosing who sees a post is part of writing it, and a
   row of avatars is a lot of furniture for a decision that is usually one name. */
.social .mentions{display:flex;gap:6px;flex-wrap:wrap;align-items:center;flex:1;min-width:0}
.social .mentions button{border:1px solid var(--line);background:var(--surface-2);color:var(--text-2);
  border-radius:999px;padding:5px 11px;font:inherit;font-size:12.5px;cursor:pointer}
.social .mentions button:hover{border-color:var(--line-2);color:var(--text)}
.social .mentions button i{font-style:normal;color:var(--faint);font-size:11.5px}
.social .mentions em{font-style:normal;color:var(--muted);font-size:12px}

/* ---- naming who can see a picture ----
   Choosing people is part of the same decision as choosing "Chosen people", so it happens in
   place, under the buttons, rather than in a dialog you have to leave the picture for. */
.whobox{margin:8px 0 2px}
.whobox .chosen{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.whobox .chosen:empty{display:none}
.whobox .chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line-2);
  background:var(--surface-2);color:var(--text);border-radius:999px;padding:4px 10px;font-size:12.5px;cursor:pointer}
.whobox .chip i{font-style:normal;color:var(--faint);font-size:11.5px}
.whobox .chip b{font-weight:400;color:var(--muted);font-size:14px;line-height:1}
.whobox .chip:hover{border-color:var(--line-2);color:var(--text)}
.whobox .chip:hover b{color:var(--text)}
.whobox .none{color:var(--muted);font-size:12.5px}
.whobox .whoq{width:100%;box-sizing:border-box;border:1px solid var(--line);background:var(--surface-2);
  color:var(--text);border-radius:9px;padding:8px 11px;font:inherit;font-size:13px}
.whobox .whoq:focus{outline:none;border-color:var(--line-2)}
.whobox .whoq::placeholder{color:var(--faint)}
.whobox .whohits{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.whobox .whohits:empty{display:none}
.whobox .whohits button{border:1px solid var(--line);background:transparent;color:var(--text-2);
  border-radius:999px;padding:4px 10px;font-size:12.5px;cursor:pointer}
.whobox .whohits button:hover{border-color:var(--line-2);color:var(--text);background:var(--surface-2)}
.whobox .whohits button i{font-style:normal;color:var(--faint);font-size:11.5px}
.whobox .whohits button.at{border-color:var(--accent,#34d399);color:var(--text);background:var(--surface-2)}
.whobox .saved{margin:8px 0 0;color:var(--muted);font-size:12px;min-height:15px}
.social .mentions button.at{border-color:var(--accent,#34d399);color:var(--text);background:var(--surface-2)}

/* ---- the link "anybody with the link" means ----
   The label promised a link with nowhere to get one. It appears only when the picture is
   actually public, because a link shown for a private one would describe access that does
   not exist. */
.linkbox{margin:8px 0 2px}
.linkbox .lwhy{margin:0 0 7px;color:var(--muted);font-size:12.5px}
.linkbox .lurl{width:100%;box-sizing:border-box;border:1px solid var(--line);background:var(--surface-2);
  color:var(--text-2);border-radius:9px;padding:8px 11px;font:inherit;font-size:12px}
.linkbox .lcopy{margin-top:7px;border:1px solid var(--line-2);background:var(--surface-2);color:var(--text);
  border-radius:999px;padding:5px 13px;font-size:12.5px;cursor:pointer}
.linkbox .lcopy:hover{border-color:var(--accent,#34d399)}
.linkbox .lsaid{margin-left:9px;color:var(--muted);font-size:12px}

/* ---- who owns what: the questions on the help page ----
   Written as questions because that is how somebody arrives at them — having just been refused
   something, or about to share and wanting to know what travels. */
.owns{display:flex;flex-direction:column;gap:1px;background:var(--line);border-radius:var(--r-lg);overflow:hidden}
.own{background:var(--surface)}
.own summary{padding:13px 16px;cursor:pointer;font-size:13.5px;font-weight:500;color:var(--text);list-style:none;display:flex;align-items:center;gap:9px}
.own summary::-webkit-details-marker{display:none}
.own summary::before{content:"+";color:var(--muted);font-weight:400;font-size:15px;line-height:1;width:11px;flex:0 0 auto}
.own[open] summary::before{content:"\2212"}
.own summary:hover{background:var(--surface-2)}
.own p{margin:0;padding:0 16px 15px 36px;color:var(--text-2);font-size:12.5px;line-height:1.65}
