/* the tabs themselves are draft.css's .navtabs (#49, one design); here only where the profile's sit */
/* Accounts: sign-in, profiles (/u/NAME: Overview, Trophies, Badges, Links, Settings), their modals, and /admin/.
   The layout is thebookwyrm's Profile / PublicProfile / Login pages, measurement for measurement (their inline React
   styles, moved here as classes); the colours are Draft Wizard's, through bookwyrm's own token names below. */
.bw{--bw-bg:var(--bg-primary);--bw-secondary:var(--bg-hover);--bw-card:var(--bg-secondary);--bw-elevated:var(--bg-elevated);
  --bw-border:var(--border-secondary);--bw-border-muted:color-mix(in srgb,var(--border-secondary) 55%,transparent);
  --bw-text:var(--text-primary);--bw-text2:var(--text-secondary);--bw-muted:var(--text-tertiary);
  --bw-accent:var(--accent-primary);--bw-accent-dim:color-mix(in srgb,var(--accent-primary) 15%,transparent);--bw-danger:var(--status-error);--bw-success:var(--status-success);
  --bw-shadow:0 4px 24px rgba(0,0,0,.5)}
.bwpage{max-width:860px;margin:0 auto;font-size:14px;line-height:1.5}
.bw h1,.bw h2,.bw h3{font-family:inherit;text-transform:none;letter-spacing:normal}

/* bookwyrm's buttons and inputs (index.css .btn / .input / .card) */
.bw .bbtn{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border-radius:8px;font:inherit;font-size:14px;font-weight:500;cursor:pointer;border:none;text-decoration:none;transition:opacity .15s,background .15s;justify-content:center}
.bw .bbtn:hover:not(:disabled){opacity:.85}
.bw .bbtn:disabled{opacity:.5;cursor:default}
.bw .bbtn:focus-visible{outline:2px solid var(--bw-accent);outline-offset:2px}
.bw .bbtn.primary{background:var(--bw-accent);color:#fff}
.bw .bbtn.secondary{background:var(--bw-elevated);color:var(--bw-text);border:1px solid var(--bw-border)}
.bw .bbtn.ghost{background:transparent;color:var(--bw-text2);border:1px solid var(--bw-border)}
.bw .bbtn.holdbtn{background:transparent;color:var(--bw-danger);border:1px solid color-mix(in srgb,var(--bw-danger) 55%,transparent)} /* hold to confirm: outlined, so the red fill shows */
.bw .bbtn.holdbtn.holding{color:#fff}
.bw .bbtn.holdbtn:hover:not(:disabled){opacity:1;background:transparent}
.bw .bbtn.holdbtn.holding:hover{color:#fff}
.bw .bbtn.danger{background:color-mix(in srgb,var(--bw-danger) 80%,transparent);color:#fff}
.bw .binput{width:100%;padding:10px 14px;background:var(--bw-secondary);border:1px solid var(--bw-border);border-radius:8px;color:var(--bw-text);font:inherit;font-size:14px;transition:border-color .15s;box-sizing:border-box}
.bw .binput:focus{outline:none;border-color:var(--bw-accent);box-shadow:none}
.bw .binput::placeholder{color:var(--bw-muted)}
.bw select.binput{appearance:auto}
.bw textarea.binput{resize:vertical;min-height:80px;line-height:1.5}
.bw .bcard{background:var(--bw-card);border:1px solid var(--bw-border-muted);border-radius:10px;padding:1.25rem}
.bw .blabel{display:block;font-size:13px;font-weight:500;margin-bottom:5px;color:var(--bw-text2)}
.bw .bfield{margin-bottom:14px}
.bw .bmsg{border-radius:8px;padding:10px 14px;font-size:13px;margin-bottom:14px}
.bw .bmsg.error{background:color-mix(in srgb,var(--bw-danger) 12%,transparent);border:1px solid color-mix(in srgb,var(--bw-danger) 30%,transparent);color:var(--bw-danger)}
.bw .bmsg.ok{background:color-mix(in srgb,var(--bw-success) 12%,transparent);border:1px solid color-mix(in srgb,var(--bw-success) 30%,transparent);color:var(--bw-success)}
.bw .blink{color:var(--accent-text);text-decoration:none;background:none;border:0;padding:0;font:inherit;cursor:pointer}
.bw .blink:hover{text-decoration:underline}
.bw .blink.muted{color:var(--bw-muted)}
.bw .blink.danger{color:var(--bw-danger)}
.bw .iconbtn{background:none;border:none;cursor:pointer;padding:2px;color:var(--bw-muted);display:inline-flex;align-items:center}
.bw .iconbtn:hover{color:var(--bw-text)}
.bw .iconbtn svg{width:14px;height:14px}

/* Sign in / Join / Forgot (bookwyrm Login.js, Register.js, ForgotPassword.js): a 420px column, logo and wordmark */
.bw.authpage{max-width:420px;margin:0 auto;padding-top:2rem}
.authlogo{margin-bottom:20px}
.authlogo .row1{display:flex;align-items:center;justify-content:center;gap:0;padding-bottom:12px;font:700 34px/1 'JaceBeleren',serif;font-variant-caps:all-small-caps;letter-spacing:-.05em;color:var(--bw-text)} /* DRAFT [wizard] WIZARD, as in the header */
.authlogo img{height:1.35em;width:auto;margin:0 .16em;display:block;filter:var(--logo-shadow,none)}
.authlogo .word{white-space:nowrap}
.authlogo .kf{letter-spacing:.04em} .authlogo .word:first-child{margin-right:.04em} /* F-T set by eye to match D-R; T-wizard matches wizard-W */
.authlogo .rule{height:1px;background:var(--bw-border)}
.authsub{text-align:center;font-size:13px;font-weight:400;font-family:inherit;text-transform:none;letter-spacing:normal;line-height:1.5;color:var(--bw-muted);margin:0 0 1.5rem}
.authtitle{text-align:center;margin:0 0 1.5rem}
.authtitle h1{font-size:22px;font-weight:700;letter-spacing:-.03em;margin:0}
.authtitle p{font-size:13px;color:var(--bw-muted);margin:6px 0 0}
.bw .gbtn{width:100%;padding:11px 16px;margin-bottom:1.25rem}
.bw .gbtn .gmark{width:18px;height:18px}
.bw .authsubmit{width:100%;padding:11px;font-size:14px}
.pwhead{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:5px}
.pwhead .blabel{margin:0}
.bw .pwhead .blink{font-size:12px} /* .bw .blink sets font:inherit, so this needs the same weight */
.authfoot{text-align:center;font-size:13px;color:var(--bw-muted);margin:1.25rem 0 0}
.authfoot.small{font-size:12px;margin-top:.5rem}
.authnote{text-align:center;font-size:12px;color:var(--bw-muted);margin:1.5rem 0 0;padding-top:1rem;border-top:1px solid var(--bw-border-muted)}
.hint{color:var(--bw-muted);font-weight:400}
.sentbox{background:var(--bw-accent-dim);border:1px solid color-mix(in srgb,var(--bw-accent) 30%,transparent);border-radius:8px;padding:14px 16px;font-size:14px;color:var(--bw-text);text-align:center}

/* Profile: tabs across the top, a 296px sidebar, the main column (bookwyrm Profile.js styles) */
.tabcount{margin-left:4px;padding:0 6px;font-size:12px;font-weight:500;background:var(--bw-secondary);border-radius:2em;color:var(--bw-muted)}
.flash{border-radius:8px;padding:9px 14px;font-size:13px;margin-bottom:14px}
.flash.ok{background:rgba(39,174,96,.12);border:1px solid rgba(39,174,96,.3);color:#2ecc71}
.flash.error{background:color-mix(in srgb,var(--bw-danger) 12%,transparent);border:1px solid color-mix(in srgb,var(--bw-danger) 30%,transparent);color:var(--bw-danger)}
.playout{display:flex;gap:24px;margin-top:16px}
.psidebar{width:296px;flex-shrink:0}
.pmain{flex:1;min-width:0}
.hcard{margin-top:20px}
.avatarbox{position:relative;width:260px;height:260px}
.pavatar{width:260px;height:260px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:96px;font-weight:700;color:#fff;object-fit:cover;box-sizing:border-box}
.camerabtn{position:absolute;bottom:20px;right:20px;width:32px;height:32px;border-radius:50%;background:var(--bw-accent);border:2px solid var(--bw-bg);display:flex;align-items:center;justify-content:center;cursor:pointer;color:#fff;padding:0}
.camerabtn svg{width:18px;height:18px}
.camerabtn{transition:transform .15s ease,filter .15s ease,box-shadow .15s ease}
.camerabtn:hover{filter:brightness(1.2);box-shadow:0 2px 8px rgba(0,0,0,.35)} /* it's a button: it brightens and lifts under the pointer (not bigger: it would outgrow its ring) */
.camerabtn:active{transform:scale(.96)}
.vcardnames{padding:16px 0}
.fullname{font-size:24px;font-weight:600;line-height:1.25;color:var(--bw-text);margin:0;overflow-wrap:anywhere}
.fullname .pill{font-size:11px;vertical-align:middle}
.namerow{display:flex;align-items:center;gap:6px}
.namerow .iconbtn{padding:4px;border-radius:6px}.namerow .iconbtn:hover{color:var(--bw-text);background:color-mix(in srgb,var(--bw-text) 8%,transparent)}
.unamerow{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap} /* on the text's baseline: the 16px pronouns sit level with the 20px username */
.udot{color:var(--bw-muted);font-size:14px}
.upron{font-size:16px;font-style:italic;color:var(--bw-muted)}
/* your own name and pronouns: plain text until hovered, then a box that says "click to edit" (as Discord's) */
.editable{font:inherit;color:inherit;background:none;border:1px solid transparent;border-radius:8px;padding:1px 6px;margin:0 -7px;cursor:pointer;text-align:left;transition:border-color .15s,background-color .15s}
.fullname .editable{font-weight:inherit}
.upron.editable{margin:0 0 0 -4px;font-style:italic;color:var(--bw-muted);line-height:24px} /* the username's line height: a button's text otherwise sits 2-3px above the username's */
.editable:hover,.editable:focus-visible{outline:none;border-color:var(--bw-border);background:color-mix(in srgb,var(--bw-text) 4%,transparent)}
.uname{font-size:20px;font-weight:300;line-height:24px;color:var(--bw-muted)}
.pbio{margin:16px 0;font-size:16px;color:var(--bw-text);overflow-wrap:anywhere}
.followrow{margin-top:12px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.followrow .bbtn{padding:6px 18px;font-size:13px}
.followrow .iconbtn{padding:4px}
.followrow .iconbtn svg{width:16px;height:16px}
.statline{font-size:14px;display:flex;align-items:baseline;flex-wrap:wrap}
/* the counts line up with the icons below: the first number in the icons' 16px column, then the same 8px gap as theirs */
.statline b{margin-right:8px} /* every count: the same 8px before its word as the first one's */
.statline b.lead{display:inline-block;min-width:16px;text-align:center;margin-right:8px}
.statline .sdot{margin:0 6px}
.statline button{display:inline-flex;align-items:baseline}
.statline b,.statline button b{color:var(--bw-text);font-weight:600}
.statline span,.statline button{color:var(--bw-muted)}
.statline button{background:none;border:0;padding:0;font:inherit;cursor:pointer}
.statline.first{margin-top:16px}
.statline.last{margin-bottom:16px}
.vdetails{list-style:none;padding:0;margin:0}
.vdetail{padding-top:4px;font-size:14px;color:var(--bw-muted);display:flex;align-items:center;gap:8px;min-width:0}
.vdetail svg{width:16px;height:16px;flex:none}
.vdetail a{color:var(--bw-text);text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vdetail a:hover{color:var(--bw-accent)}
.bordertop{border-top:1px solid var(--bw-border-muted);padding-top:16px;margin-top:16px}
.sectiontitle{font-size:16px;font-weight:600;margin:0 0 8px;color:var(--bw-text)}
.sectionlink{padding:0;border:0;background:none;font:inherit;color:inherit;cursor:pointer}
.sectionlink:hover{color:var(--bw-accent)} /* a feed's title on Overview opens the Activity tab */
.medalrow{display:flex;flex-wrap:wrap;gap:4px}
/* A medallion: its colour comes from its emoji, with bookwyrm's slow shine passing over it */
.medallion{display:flex;align-items:center;justify-content:center;border-radius:50%;box-shadow:inset 0 0 20px rgba(0,0,0,.15),0 2px 4px rgba(0,0,0,.1);text-shadow:0 2px 4px rgba(0,0,0,.3);
  background:linear-gradient(110deg,transparent 42%,rgba(255,255,255,.15) 47%,rgba(255,255,255,.25) 50%,rgba(255,255,255,.15) 53%,transparent 58%),var(--mc);
  background-size:200% 100%,100% 100%;animation:cardIconShimmer 8s ease-in-out var(--md,0s) infinite}
.medallion>span{line-height:1;display:flex;align-items:center;justify-content:center}
@media (prefers-reduced-motion:reduce){.medallion{animation:none}}
@keyframes cardIconShimmer{0%{background-position:-200% center}100%{background-position:200% center}}
.medallion.s64{width:64px;height:64px;font-size:32px;cursor:pointer;border:0;padding:0;font-family:inherit}
.medallion.s64:focus-visible{outline:2px solid var(--bw-accent);outline-offset:2px}
.medallion.s80{width:80px;height:80px;font-size:40px;margin:0 auto 12px;box-shadow:inset 0 0 25px rgba(0,0,0,.15),0 3px 6px rgba(0,0,0,.12)}
.medallion.s96{width:96px;height:96px;font-size:48px;margin-bottom:12px}
.medallion.s36{width:36px;height:36px;font-size:18px;flex:none}
.medalgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.medalcard{border:1px solid var(--bw-border-muted);border-radius:6px;padding:16px;background:var(--bw-bg);text-align:center;transition:border-color .2s}
.medalcard:hover{border-color:var(--bw-accent)}
.medalcard h3{font-size:14px;font-weight:600;color:var(--bw-text);margin:0 0 4px}
.medalcard p{font-size:12px;color:var(--bw-muted);margin:0}
.medalcard .when{margin-top:6px;font-size:11px}
.emptytab{font-size:14px;color:var(--bw-muted)}
/* The hover card over a medallion */
.hoverpop{position:fixed;z-index:1000;width:280px;background:var(--bw-elevated);border:1px solid var(--bw-border-muted);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.4);overflow:hidden;transform:translateY(-50%)}
.hoverpop .hhead{padding:24px;display:flex;flex-direction:column;align-items:center;text-align:center;background:var(--bw-secondary)}
.hoverpop .htitle{font-size:16px;font-weight:600;color:var(--bw-text);margin-bottom:4px}
.hoverpop .hdesc{font-size:14px;color:var(--bw-muted);line-height:1.4}
.hoverpop .hhist{border-top:1px solid var(--bw-border-muted);padding:12px 16px;background:var(--bw-secondary)}
.hoverpop .hhisttitle{font-size:12px;font-weight:600;color:var(--bw-muted);margin-bottom:8px}
.hoverpop .hhistitem{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--bw-muted)}
/* Overview: stat cards, the calendar, the activity columns */
.statsgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px;margin-top:16px}
.statcard{padding:16px;border:1px solid var(--bw-border-muted);border-radius:6px}
.statcard .slabel{font-size:12px;color:var(--bw-muted);margin-bottom:4px}
.statcard .svalue{font-size:24px;font-weight:600;color:var(--bw-text);font-variant-numeric:tabular-nums}
.statcard .ssub{font-size:11px;color:var(--bw-muted);margin-top:2px}
.statcard.span2{grid-column:span 2}
.cal{padding:16px;border:1px solid var(--bw-border-muted);border-radius:6px}
.calmonths{position:relative;height:14px;margin:0 0 2px 34px}
.calmonths span{position:absolute;font-size:10px;color:var(--bw-muted)}
.calgrid{display:flex;gap:2px;width:100%;align-items:flex-start}
.caldays{display:flex;flex-direction:column;justify-content:flex-start;padding-right:6px;flex-shrink:0;width:28px;box-sizing:border-box}
.caldays span{font-size:9px;height:var(--calrow,11px);display:flex;align-items:center;color:var(--bw-muted);line-height:1}
.cal[style*="--calweeks"] .calmonths{width:var(--calweeks)}
/* the squares: one SVG (stats.js lays them out on whole screen pixels, so they all draw the same) */
.calsvg{display:block;flex:1;min-width:0;height:auto;overflow:visible}
.calsvg rect{cursor:pointer}
.calsvg rect.c0{fill:var(--bw-secondary)}
.calsvg rect.c1{fill:color-mix(in srgb,var(--bw-accent) 28%,transparent)}
.calsvg rect.c2{fill:color-mix(in srgb,var(--bw-accent) 58%,transparent)}
.calsvg rect.c3{fill:color-mix(in srgb,var(--bw-accent) 88%,transparent)}
.calsvg rect.today{fill:color-mix(in srgb,var(--bw-accent) 90%,transparent)}
.calsvg rect.future{opacity:.35;cursor:default}
.calsvg[style*="width"]{flex:none}
@media (hover:none){.calgrid{touch-action:none}} /* a finger on the grid moves the lens, not the page */
.calloupe{position:fixed;z-index:2000;width:144px;height:144px;border-radius:50%;overflow:hidden;border:2.5px solid var(--bw-accent);box-shadow:0 4px 24px rgba(0,0,0,.6);background:var(--bw-card);pointer-events:none}
.calloupegrid{position:absolute;left:0;top:0;transform-origin:0 0}
.calloupegrid rect.on{stroke:var(--bw-text);stroke-width:1.5}
.calloupecard{position:fixed;z-index:2001;width:140px;box-sizing:border-box;padding:6px 10px;border:1px solid var(--bw-accent);border-radius:8px;background:var(--bw-elevated);box-shadow:0 2px 12px rgba(0,0,0,.4);pointer-events:none}
.calloupecard .tdate{font-size:11px;font-weight:600;color:var(--bw-text)}
.calloupecard .tline{font-size:10px;color:var(--bw-accent);margin-top:2px}
.caltip{position:fixed;z-index:1000;transform:translate(-50%,-100%);background:var(--bw-elevated);border:1px solid var(--bw-border-muted);border-radius:6px;padding:8px 12px;box-shadow:var(--bw-shadow);min-width:200px;max-width:280px;pointer-events:none}
.caltip .tdate{font-size:12px;font-weight:600;color:var(--bw-text);margin-bottom:6px;border-bottom:1px solid var(--bw-border-muted);padding-bottom:6px}
.caltip .tline{font-size:11px;color:var(--bw-text2);line-height:1.4}
.caltip .tline+.tline{margin-top:3px}
.caltip .tnone{font-size:11px;color:var(--bw-muted)}
.caltip::after{content:"";position:absolute;bottom:-5px;left:50%;transform:translateX(-50%);border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid var(--bw-elevated)}
.activitycols{display:grid;grid-template-columns:1fr;gap:32px;align-items:start;margin-top:24px}
.activitycols.two{grid-template-columns:1fr 1fr}
.aitem{display:flex;align-items:flex-start;gap:12px;padding:12px 10px;border-bottom:1px solid var(--bw-border-muted);border-radius:6px;transition:background .1s}
.aitem:hover{background:var(--bw-elevated)} /* the whole row, its actions included, as Home's rows (#21) */
.aicon{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:14px;flex-shrink:0}
.aicon svg{width:14px;height:14px}
.atext{flex:1;min-width:0;font-size:14px;color:var(--bw-text2);line-height:1.4}
.atext strong{color:var(--bw-text);font-weight:600}
.atext a{color:var(--bw-text);text-decoration:none;font-weight:600}
.atext a:hover{color:var(--bw-accent)}
.astand{font-weight:600;color:var(--bw-text2)}
.astand.live{color:#60a5fa}
/* your own events: hide (still counts) or remove from your record, quiet until you reach for them */
.aacts{display:flex;gap:2px;flex-shrink:0;opacity:.55;transition:opacity .15s}
@media (hover:hover){.aacts{opacity:0}} /* as in Gmail: a row's actions show when you point at it or tab to it; touch screens always show them */
.aitem:hover .aacts,.aacts:focus-within{opacity:1}
.aact{width:28px;height:28px;display:grid;place-items:center;border:0;border-radius:6px;background:none;color:var(--bw-muted);cursor:pointer}
.aact:hover{color:var(--bw-text);background:var(--bw-secondary)}
.aact:focus-visible{outline:2px solid var(--bw-accent);outline-offset:1px}
.aact svg{width:15px;height:15px}
/* the Events tab: bookwyrm's shelf page -- a sort in the corner, sections that fold */
.evtools{display:flex;justify-content:flex-end;margin:-6px 0 8px}
.evsort{position:relative}
.evsortbtn{display:flex;align-items:center;gap:4px;font:inherit;font-size:12px;padding:4px 6px;border-radius:5px;border:0;background:none;color:var(--bw-muted);cursor:pointer}
.evsortbtn:hover{color:var(--bw-text)}
.evsortbtn svg{width:11px;height:11px;stroke-width:2.5}
.evsortbtn:focus-visible,.evsortmenu button:focus-visible,.evlabel:focus-visible{outline:2px solid var(--bw-accent);outline-offset:2px}
.evsec{padding-top:8px;margin-bottom:2rem}
.evlabel{display:flex;align-items:center;gap:6px;width:100%;margin:0 0 1rem;padding:0 0 10px;border:0;border-bottom:1px solid var(--bw-border-muted);background:none;cursor:pointer;user-select:none;
  font:inherit;font-size:11px;font-weight:600;color:var(--bw-muted);text-transform:uppercase;letter-spacing:.1em;text-align:left}
.evlabel svg{width:14px;height:14px;flex-shrink:0;opacity:.7}
.evlabel .evcount{font-weight:400;letter-spacing:normal;margin-left:2px}
.evlabel .evprivate,.evnote .evprivate{margin-left:8px;padding:1px 7px;border:1px solid var(--bw-border-muted);border-radius:10px;font-size:10px;font-weight:500;letter-spacing:normal;text-transform:none;opacity:.85} /* History: only its owner ever sees it */
.evlabel svg:last-child{width:13px;height:13px;margin-left:auto;opacity:.5;transition:transform .15s}
.evlabel[aria-expanded="false"]{margin-bottom:0}
.evlabel[aria-expanded="false"] svg:last-child{transform:rotate(-90deg)}
.evbody[hidden]{display:none}
.loadmore{display:block;width:100%;margin-top:14px;padding:9px 0;cursor:pointer;background:var(--bw-card);border:1px solid var(--bw-border);border-radius:8px;font:inherit;font-size:13px;color:var(--bw-text2);transition:background .15s,color .15s} /* bookwyrm's LoadMoreButton */
.loadmore:hover{background:var(--bw-elevated);color:var(--bw-text)}
.loadmore:focus-visible{outline:2px solid var(--bw-accent);outline-offset:2px}
/* the Events tab: invites, active, archived, removed, then the hosts */
.evnote{font-size:13px;color:var(--bw-muted);margin:-4px 0 10px}
.invbtns{display:flex;gap:8px}
.invrow{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--bw-border-muted);flex-wrap:wrap}
.invrow .aitem{flex:1;min-width:240px;border-bottom:0}
/* an event row as Home's (#23): tile, name, one quiet line; links in it look like the text around them */
.aitem.erow{align-items:center;padding:8px 10px}
.erow .htext b a,.erow .htext small a{color:inherit;text-decoration:none}
.erow .htext b a:hover,.erow .htext small a:hover{text-decoration:underline}
.erow .avatar{flex-shrink:0}
.invrow{padding-right:10px;border-radius:6px;transition:background .1s}
.invrow:hover{background:var(--bw-elevated)} /* one highlight over the event and its Accept / Decline, as every row (#21) */
.invrow .aitem:hover{background:none}
.invbtns{display:flex;gap:8px}
/* History: a timeline of your choices, newest first; the latest per event can be undone */
.hist{list-style:none;margin:0;padding:0}
.hist li{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--bw-border-muted)}
.hist .hdot{width:10px;height:10px;border-radius:50%;flex-shrink:0;background:var(--bw-muted)}
.hist .hdot.accepted{background:var(--bw-success)}
.hist .hdot.declined{background:var(--bw-danger)}
.hist .hdot.hidden{background:var(--bw-muted)}
.hist .hdot.shown{background:var(--bw-accent)}
.hist .hdot.archived{background:var(--bw-muted)}
.hist .hdot.restored{background:var(--bw-accent)}
.hist .htxt{flex:1;min-width:0;font-size:14px;color:var(--bw-text2)}
.hist .htxt b{color:var(--bw-text);font-weight:600}
.hist .htxt small{color:var(--bw-muted);font-size:12px}
.hist li.undone .htxt{opacity:.55}
.hist li.undone .htxt b{text-decoration:line-through}
.hundo{padding:4px 12px;font-size:12px}
.tagstat{font-size:12px;color:var(--bw-muted)}
.evsub{font-size:11px;font-weight:600;color:var(--bw-muted);text-transform:uppercase;letter-spacing:.1em;margin:18px 0 4px}
.atext strong a{font-weight:600}
.adate{font-size:12px;color:var(--bw-muted);margin-top:2px}
.arec{font-weight:700;color:var(--bw-text);font-variant-numeric:tabular-nums;white-space:nowrap}
/* Settings and Links (own profile) */
.settingsbox{max-width:480px}
.setsection{margin-top:28px;padding-top:20px;border-top:1px solid var(--bw-border-muted)}
.setsection>.sethead{font-size:13px;font-weight:600;color:var(--bw-text2);margin-bottom:12px}
.verified{font-size:11px;color:#27ae60;font-weight:600;white-space:nowrap}
.notverified{font-size:11px;color:var(--bw-muted);white-space:nowrap}
.inrow{display:flex;align-items:center;gap:8px}
.inrow .binput{flex:1}
/* Settings > Theme: one button per theme, its page colour with its accent as a dot (each swatch shows that theme's own tokens) */
.themepick{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:8px}
.themeopt{display:flex;flex-direction:column;align-items:center;gap:6px;min-height:40px;padding:8px 6px;border-radius:8px;border:1px solid var(--bw-border);background:var(--bw-card);color:var(--bw-text2);font:inherit;font-size:12px;cursor:pointer}
.themeopt[aria-checked="true"]{border-color:var(--bw-accent);color:var(--bw-text);box-shadow:0 0 0 1px var(--bw-accent)}
.themesw{display:flex;align-items:center;justify-content:center;width:44px;height:28px;border-radius:6px;border:1px solid var(--bw-border)}
.themesw i{width:12px;height:12px;border-radius:50%}
.themesw[data-sw="dark"]{background:#1a1b1e}.themesw[data-sw="dark"] i{background:#9333ea}
.themesw[data-sw="light"]{background:#f4f4f6}.themesw[data-sw="light"] i{background:#7c3aed}
.themesw[data-sw="sepia"]{background:#f4ecd8}.themesw[data-sw="sepia"] i{background:#9a3412}
.themesw[data-sw="midnight"]{background:#0f172a}.themesw[data-sw="midnight"] i{background:#3b82f6}
.themesw[data-sw="forest"]{background:#14201a}.themesw[data-sw="forest"] i{background:#16a34a}
.switchrow{display:flex;align-items:center;gap:10px;cursor:pointer;margin-bottom:8px}
.switch{width:36px;height:20px;border-radius:10px;background:var(--bw-border);position:relative;transition:background .2s;flex-shrink:0;border:0;padding:0;cursor:pointer}
.switch::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:left .2s}
.switch[aria-checked="true"]{background:var(--bw-accent)}
.switch[aria-checked="true"]::after{left:18px}
.switch:focus-visible{outline:2px solid var(--bw-accent);outline-offset:2px}
.switchrow span{font-size:13px;color:var(--bw-text2)}
.setdelete .delrow{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:var(--bw-text2)} /* quiet, like any other setting: the dialog holds the warning (typed, then held) */
.delbtn{flex:none;min-height:32px;padding:0 12px;border:1px solid var(--bw-border,var(--border-secondary));border-radius:8px;background:none;color:var(--bw-text2);font:inherit;font-size:13px;cursor:pointer;transition:color .15s,border-color .15s,background .15s}
.delbtn:hover,.delbtn:focus-visible{color:var(--bw-danger);border-color:color-mix(in srgb,var(--bw-danger) 50%,transparent);background:color-mix(in srgb,var(--bw-danger) 8%,transparent)}
.dangercard{border-color:color-mix(in srgb,var(--bw-danger) 50%,transparent)!important;margin-top:16px}
.dangercard .dtitle{font-size:14px;font-weight:600;margin-bottom:6px;color:#f87171}
.dangercard .dtext{font-size:13px;color:var(--bw-text2);margin-bottom:12px;line-height:1.6}
.linklist{list-style:none;margin:0 0 8px;padding:0}
.linklist li{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--bw-border-muted);flex-wrap:wrap}
.linklist .who{display:flex;align-items:center;gap:12px;flex:1;min-width:0;color:inherit;text-decoration:none}
.linklist .who span:not(.avatar){display:flex;flex-direction:column;min-width:0}
.linklist .who b{font-size:14px;font-weight:500;color:var(--bw-text)}
.linklist .who small{font-size:12px;color:var(--bw-muted)}
.linklist .bbtn,.invbtns .bbtn{padding:6px 14px;font-size:13px}
.statuspill{font-size:11px;padding:2px 8px;border-radius:2em;background:var(--bw-secondary);color:var(--bw-muted)}
.statuspill.accepted{color:var(--bw-success)}

/* Avatars (small ones: lists, menus) */
.avatar{display:inline-grid;place-items:center;flex:none;border-radius:50%;object-fit:cover;color:#fff;font-weight:700;line-height:1;background:var(--bg-tertiary);user-select:none}

/* Modals (bookwyrm's: avatar 340px, followers 400px, share 400px, edit profile 520px, delete 420px) */
.swatch{width:24px;height:24px;border-radius:50%;border:2px solid transparent;cursor:pointer;padding:0}
.swatch.on{border-color:var(--bw-text)}
.swatch:focus-visible{outline:2px solid var(--bw-accent);outline-offset:2px}
.mclose{background:none;border:none;cursor:pointer;color:var(--bw-muted);display:flex;padding:4px}
.mclose:hover{color:var(--bw-text)}
.editmodal{width:100%;max-width:520px;max-height:90vh;display:flex;flex-direction:column;background:var(--bw-card);border-radius:14px}
.editmodal .ehead{padding:20px 28px 0;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}
.editmodal .ehead span{font-size:17px;font-weight:600}
.editmodal .ebody{flex:1;overflow-y:auto;padding:0 28px 8px}
.editmodal .efoot{padding:16px 28px;border-top:1px solid var(--bw-border);display:flex;gap:10px;flex-shrink:0}
.editmodal .efoot .bbtn{flex:1}
.editmodal .eavatar{display:flex;flex-direction:column;align-items:center;margin:20px 0}
.editmodal .eavatar .avatarbox{width:120px;height:120px}
.editmodal .eavatar .pavatar{width:120px;height:120px;font-size:44px}
.editmodal .eavatar .camerabtn{bottom:4px;right:4px}
.editmodal .eavatar .swatches{display:flex;justify-content:center;gap:6px;margin-top:12px}
.editmodal .eavatar p{font-size:12px;color:var(--bw-muted);text-align:center;margin:8px 0 0}
.flabel{display:block;font-size:14px;font-weight:600;color:var(--bw-text);margin:16px 0 8px}
.finput{width:100%;padding:5px 12px;font:inherit;font-size:14px;line-height:20px;background:var(--bw-bg);border:1px solid var(--bw-border);border-radius:6px;color:var(--bw-text);box-sizing:border-box}
textarea.finput{padding:8px 12px;line-height:1.5;resize:vertical;min-height:80px}
.finput:focus{outline:none;border-color:var(--bw-accent);box-shadow:none}
.addlink{font-size:12px;color:var(--bw-accent);background:none;border:none;cursor:pointer;padding:0;font-weight:500}
.addlinkbig{font-size:13px;color:var(--bw-muted);background:none;border:1px dashed var(--bw-border);border-radius:6px;padding:7px 12px;cursor:pointer;width:100%;text-align:left}
.linkin{display:flex;gap:6px;align-items:center;margin-bottom:6px}
.linkin .finput{flex:1}

/* Phones and small tablets: the app's cards run edge to edge there (draft.css drops main's side padding), but the account
   pages have no card of their own, so they keep a 16px gutter */
@media (max-width:791px){.bwpage,.bw.authpage{padding-left:16px;padding-right:16px;box-sizing:border-box}}
/* Phones: bookwyrm's mobile profile stacks the sidebar and centres it, with a 120px avatar */
@media (max-width:760px){
  .playout{flex-direction:column}
  .psidebar{width:100%}
  .hcard{margin-top:8px;display:flex;flex-direction:column;align-items:center;text-align:center}
  .avatarbox{width:120px;height:120px}
  .pavatar{width:120px;height:120px;font-size:44px}
  .camerabtn{bottom:4px;right:4px}
  .namerow,.unamerow,.followrow,.medalrow{justify-content:center}
  .vdetails{display:flex;flex-direction:column;align-items:center}
  .statline b.lead{min-width:0} /* centred on phones: no icon column to line up with */
  .navtabs{position:sticky;top:54px;z-index:50;background:var(--bw-bg);margin:-20px -16px 16px;padding:0 16px} /* starts right under the header (the page's 20px top padding taken back), so it doesn't shift as it catches */ /* phones: the tabs stay under the header (54px, sticky) as you scroll */
  .playout:not(.tab-overview) .psidebar{display:none} /* phones: the picture, name and details only on Overview; the other tabs open on their own content */
  .medalgrid{grid-template-columns:repeat(2,1fr)}
  .activitycols.two{grid-template-columns:1fr}
  .ovactivity{display:none} /* phones: the feeds are on the Activity tab */
  .statcard.span2{grid-column:auto}
}

/* Admin (/admin/, admin.js) */
.adminlist{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:6px}
.adminlist li{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px;border:1px solid var(--border-secondary);border-radius:10px}
.adminlist .mtext{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.35}
.adminlist .mtext a{color:var(--text-primary);text-decoration:none}
.adminlist small{color:var(--text-secondary)}
.adminlist .mbtns{white-space:nowrap}
.linkbtn{background:none;border:0;padding:0;font:inherit;cursor:pointer;color:var(--accent-text);font-weight:600}
.linkbtn:hover{text-decoration:underline}
.linkbtn.danger{color:var(--status-error)}
.bannedtag{color:var(--status-error)}
.formrow{display:flex;gap:14px;flex-wrap:wrap;align-items:flex-end}
.adminform{padding:14px;border:1px dashed var(--border-secondary);border-radius:10px}
.awardform{display:flex;gap:6px;flex-basis:100%}
.awardform .field{max-width:200px;padding:8px 10px}
.awardform .btn{padding:6px 12px}
.formlabel{display:block;font-size:.85rem;font-weight:600;color:var(--text-secondary);margin:10px 0 2px}
.formmsg{margin:10px 0 0;padding:9px 12px;border-radius:8px;font-size:.9rem}
.formmsg.error{background:color-mix(in srgb,var(--status-error) 14%,transparent);color:var(--status-error);border:1px solid color-mix(in srgb,var(--status-error) 35%,transparent)}
.formmsg.ok{background:color-mix(in srgb,var(--status-success) 14%,transparent);color:var(--status-success);border:1px solid color-mix(in srgb,var(--status-success) 35%,transparent)}
.authform{display:grid;gap:4px;margin-top:10px}
.authform .btn{margin-top:14px;justify-self:start}
.authform.inline{grid-template-columns:1fr auto;gap:8px;align-items:center;margin:10px 0 6px}
.authform.inline .btn{margin:0}
.settingsh{font-size:1rem;font-weight:600;margin:24px 0 4px}

/* Keyboard focus, the same ring everywhere on these pages */
.bw a:focus-visible,.bw button:focus-visible,.bw input:focus-visible,.bw select:focus-visible,.bw textarea:focus-visible,.bw [tabindex]:focus-visible{outline:2px solid var(--bw-accent);outline-offset:2px}
.bw .iconbtn:focus-visible{border-radius:4px}
/* a private profile, as a visitor sees it; and the mark on your own */
.privcard{display:flex;flex-direction:column;align-items:center;text-align:center;padding:48px 16px 24px}
.privcard .pavatar{width:120px;height:120px;font-size:44px;margin-bottom:16px}
.privcard .uname{color:var(--bw-muted);font-size:16px}
.privnote{display:inline-flex;align-items:center;gap:8px;margin:20px 0 0;padding:10px 16px;border:1px solid var(--bw-border-muted);border-radius:10px;color:var(--bw-text2);font-size:14px}
.privnote svg{width:16px;height:16px}
.pill.privpill{background:color-mix(in srgb,var(--bw-muted) 22%,transparent);color:var(--bw-text2)}
.evsubgroup:first-of-type .evsub{margin-top:6px}
.aicon.tip{border-bottom:0;cursor:default;overflow:visible} /* the history icon's words on hover/focus (stats.js) */

.flash .flashlink{color:inherit;text-decoration:underline;text-underline-offset:3px} /* a message that takes you somewhere: the whole line is the link */

.authwelcome{max-width:520px;margin:40px auto 24px}
/* Your own picture: hover (or keyboard focus) shows "Change" over it; the camera beside it stays on top */
.avchange{position:relative;display:block;padding:0;border:0;background:none;border-radius:50%;cursor:pointer;color:inherit}
.avchange .avhover{position:absolute;inset:0;display:grid;place-items:center;border-radius:50%;background:rgba(0,0,0,.5);color:#fff;font-size:15px;font-weight:600;letter-spacing:.02em;opacity:0;transition:opacity .15s ease;pointer-events:none}
.avchange:hover .avhover,.avchange:focus-visible .avhover{opacity:1}
.avchange:focus-visible{outline:2px solid var(--bw-accent);outline-offset:3px}
.avatarbox .camerabtn{z-index:1}
@media (prefers-reduced-motion:reduce){.avchange .avhover{transition:none}}
/* Editing in place: the name (editable text), social links with a remove ×, and + Add a social link */
.nameedit{display:inline-block;border:1px solid transparent;border-radius:8px;padding:1px 6px;margin:0 -7px;outline:none;cursor:text;transition:border-color .15s;overflow-wrap:anywhere}
.nameedit:hover{border-color:var(--bw-border)}
.nameedit:focus{border-color:var(--bw-accent)} /* the name as editable text (Discord's): an outline on hover, the accent while typing */
.slinkrm{flex:none;margin-left:2px;display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;border-radius:6px;background:none;color:var(--bw-muted);cursor:pointer;opacity:.55;transition:opacity .15s}
@media (hover:hover){.slinkrm{opacity:0}} /* as the Events rows' actions (Gmail's): shown when you point at the link or tab to it; touch screens always show it */
.slink:hover .slinkrm,.slinkrm:focus-visible{opacity:1}
.slinkrm:hover{color:var(--bw-text);background:var(--bw-secondary)}
.slinkrm svg{width:14px;height:14px}
.linkedit{display:inline-block;min-width:9em;max-width:100%;border:1px solid transparent;border-radius:8px;padding:0 6px;margin-left:-4px;outline:none;color:var(--bw-text);cursor:text;overflow-wrap:anywhere;transition:border-color .15s}
.linkedit:hover{border-color:var(--bw-border)}
.linkedit:focus{border-color:var(--bw-accent)}
.linkedit.bad,.linkedit.bad:focus{border-color:var(--bw-danger);animation:fieldjiggle .4s ease} /* refused: red, and a jiggle (the site's) */
@keyframes fieldjiggle{0%,100%{transform:translateX(0)}20%{transform:translateX(-6px)}40%{transform:translateX(5px)}60%{transform:translateX(-3px)}80%{transform:translateX(2px)}}
@media (prefers-reduced-motion:reduce){.linkedit.bad{animation:none}} /* as the name: an outline on hover, the accent while typing */
.linkedit:focus-visible{outline:none} /* one stroke, as the name's and the pronouns' */
.linkedit:empty::before{content:attr(data-placeholder);color:var(--bw-muted);opacity:.7}
.pronedit:focus-visible,.nameedit:focus-visible{outline:none}
/* Pronouns: a small menu under them (bookwyrm's sort menu), and Other as editable text in their place */
.pronedit{display:inline-block;min-width:5em;border:1px solid var(--bw-accent);border-radius:8px;padding:0 6px;margin:0 0 0 -4px;outline:none;cursor:text}
.pronedit:empty::before{content:attr(data-placeholder);color:var(--bw-muted);opacity:.7}
/* Save and Cancel beside the "Link to social" line while you type */
.slinkadd .linkacts{display:none;gap:4px;margin-left:6px;flex:none}
.slinkadd.typing .linkacts{display:inline-flex}
.slinkbtn{padding:2px 8px;border:0;border-radius:6px;background:none;color:var(--bw-muted);font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.slinkbtn:hover{color:var(--bw-text);background:var(--bw-secondary)}
.slinkbtn.primary{background:var(--bw-accent);color:#fff}
.slinkbtn.primary:hover{filter:brightness(1.1);background:var(--bw-accent)}
/* Leaving the site by a profile's link (bookwyrm's): icon and title, one line, the site, Cancel / Continue */
/* Bio and location edited in place (as the name): an outline on hover, the accent while typing, a faint prompt when empty */
.inedit{display:inline-block;min-width:8em;max-width:100%;box-sizing:border-box;border:1px solid transparent;border-radius:8px;padding:0 6px;margin-left:-7px;outline:none;cursor:text;overflow-wrap:anywhere;transition:border-color .15s;white-space:pre-wrap}
p.inedit{display:block;margin:16px 0 16px -7px;padding:2px 6px}
.inedit:hover{border-color:var(--bw-border)}
.inedit:focus{border-color:var(--bw-accent)}
.inedit:empty::before{content:attr(data-placeholder);color:var(--bw-muted);opacity:.7}
.inedit.bad,.inedit.bad:focus{border-color:var(--bw-danger);animation:fieldjiggle .4s ease}
@media (prefers-reduced-motion:reduce){.inedit.bad{animation:none}}

/* the Guest profile (/u/guest): this browser's past events */
.gprof{max-width:720px;margin:24px auto 0}
.gtop{display:flex;align-items:center;gap:12px;margin-bottom:24px}
.glocked{opacity:.45;cursor:default!important}a.glocked{pointer-events:none} /* the Guest profile: there to see, not to change */
.gsign{margin:12px 0 4px}.gsign .gnote{margin:0}.gtop .fullname{margin:0}.gbtns{display:flex;gap:8px;margin-top:10px}.gbtns .bbtn{text-decoration:none}
.gav{width:56px;height:56px;border-radius:50%;object-fit:cover;background:var(--bw-elevated);flex:none} /* a picture from the set, kept in this browser */
.gtop .fullname{margin:0}.gnote{margin:4px 0 0;font-size:13px;color:var(--bw-text-secondary,var(--text-secondary));line-height:1.45;max-width:46ch}

/* a removal notice in the profile's Inbox (#27): Dispute opens a box under it */
.nrow .nacts{flex-direction:column;align-items:flex-end;gap:6px}
.nrow .nacts .row2{display:flex;gap:8px}
.nrow .nform{display:block;width:260px;max-width:100%;box-sizing:border-box;padding:8px 10px;border:1px solid var(--bw-border);border-radius:6px;background:var(--bw-bg);color:var(--bw-text);font:inherit;font-size:13px;resize:vertical}
.nrow .nform.bad{border-color:var(--status-error)}

/* the help actions under a form: quiet buttons, side by side (gallery /fontsheet/links/ 1A) */
.bw .helprow{display:flex;gap:8px;margin-top:1.25rem;padding-top:1.25rem;border-top:1px solid var(--bw-border)}.bw .helprow .bbtn{flex:1;font-size:13px;padding:8px 10px}

/* a profile's website and links as chips: one per line, never wider than it (gallery /fontsheet/links/ 5) */
.vdetail .lchip{max-width:100%;min-width:0;color:var(--bw-text)}.lchip .cn{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vdetail .lchip svg{width:13px;height:13px}
.bbtn.sm{padding:3px 10px;font-size:12px} /* a small button under a field (gallery /fontsheet/links/ 10A) */
