:root { --ink: #1A1A1A; --soft: #5C5C58; --line: #D4D4CF; --panel: #F4F4F1; --fill: #E6E6E1; --acc: #2F5BD3; --ok: #2E7D4F; --warn: #B4561F; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: #FFFFFF; font-size: 15px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.38; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
a { color: var(--acc); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* top bar */
header.top { position: sticky; top: 0; z-index: 20; background: #FFFFFF; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 28px; border-bottom: 1px solid var(--line); }
/* wide windows: the four steps sit at the exact center of the window */
@media (min-width: 1260px) { header.top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); } header.top > .brandwrap { justify-self: start; } header.top > nav { justify-self: center; } header.top > .tools { justify-self: end; } }
@media (min-width: 1260px) and (max-width: 1439px) { header.top { gap: 10px; padding: 12px 20px; } header.top .pill { padding: 0 13px; gap: 8px; } .tools { gap: 6px; } .tbtn { padding: 0 11px; } .savest { width: 66px; } }
.brand { font-weight: 900; font-size: 22px; letter-spacing: 0.05em; line-height: 1; white-space: nowrap; text-transform: uppercase; border: 0; background: transparent; padding: 6px 0; color: var(--ink); cursor: pointer; }
.ctahero { transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.ctahero:hover, .ctahero:focus-visible { transform: translateY(-2px); filter: brightness(0.9); box-shadow: 0 8px 20px rgba(43, 91, 216, 0.28); }
@media (prefers-reduced-motion: reduce) { .ctahero:hover, .ctahero:focus-visible { transform: none; } }
.brand:hover { text-decoration: underline; text-underline-offset: 4px; }
.brandwrap { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.beta { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--acc); line-height: 1; padding-top: 1px; }
/* medium windows: logo and tools on the first row, the four steps centered on the second */
@media (min-width: 701px) and (max-width: 1259px) { header.top { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand tools" "nav nav"; row-gap: 10px; column-gap: 16px; } header.top > .brandwrap { grid-area: brand; justify-self: start; } header.top > nav { grid-area: nav; justify-self: center; } header.top > .tools { grid-area: tools; justify-self: end; } }
nav.steps { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #FFFFFF; color: var(--soft); font-weight: 600; font-size: 14px; }
.pill .num { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; font-size: 12px; background: var(--panel); }
.pill.done { color: var(--ink); }
.pill.on { background: var(--acc); border-color: var(--acc); color: #FFFFFF; }
.pill.on .num { background: rgba(255,255,255,.22); }
.tools { display: flex; align-items: center; gap: 8px; }
.tbtn { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: #FFFFFF; font-size: 13px; font-weight: 500; }
.linkbtn { border: 0; background: transparent; font-weight: 600; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; min-height: 40px; padding: 0 8px; }

.sitefoot { margin-top: -16px; border-top: 1px solid var(--line); padding: 24px 28px; text-align: center; }
.sitefoot p { margin: 0; font-size: 13px; color: #6F6F6A; }
main { max-width: 1360px; margin: 0 auto; padding: 32px 28px 64px; }
h1 { margin: 0; font-size: 34px; letter-spacing: -0.02em; }
.lead { margin: 8px 0 0; color: var(--soft); font-size: 15px; }
.label { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
.small { font-size: 12px; color: var(--soft); }
.cols { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; margin-top: 24px; }
.col-main { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.col-side { flex: 1 1 420px; min-width: 0; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; display: flex; flex-direction: column; gap: 14px; background: var(--panel); border-radius: 18px; padding: 22px; }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: #FFFFFF; }
.card.focus { border-color: var(--ink); }
.mini-post { width: 100%; max-width: 170px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.mini-post .mp-h { font-size: 7px; font-weight: 700; letter-spacing: .12em; color: var(--soft); }
.mini-post .mp-t { font-size: 12px; font-weight: 800; line-height: 1.15; color: var(--ink); }
.mini-post .mp-s { font-size: 8px; color: var(--soft); }
.mini-post .mp-f { display: flex; justify-content: space-between; font-size: 6px; color: var(--soft); margin-top: 3px; }
canvas.homecv { height: auto; width: calc((100% - 16px) / 3); max-height: 96px; object-fit: contain; border-radius: 5px; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.chktag { position: absolute; top: -7px; right: -7px; z-index: 2; font-size: 11px; font-weight: 700; color: #FFFFFF; background: var(--warn); border-radius: 6px; padding: 2px 6px; }
.chktag.inline { position: static; }
.fmtbar { display: flex; gap: 4px; }
.gnum.fail { position: relative; }
.gnum.fail::before { content: ''; position: absolute; top: -4px; right: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--warn); border: 2px solid #FFFFFF; }
.chkbadge button { border: 0; background: transparent; color: inherit; font: inherit; padding: 0 1px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.allg { min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: #FFFFFF; font: inherit; font-size: 14px; font-weight: 600; }
.allg[aria-pressed=true] { background: var(--acc); border-color: var(--acc); color: #FFFFFF; }
.addcard { align-self: start; position: sticky; top: 0; border: 1.5px dashed #B9B9B3; border-radius: 16px; display: flex; flex-direction: column; gap: 14px; padding: 14px 12px; }
.addbtn { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--soft); font: inherit; font-size: 14px; font-weight: 600; min-height: 140px; border-radius: 12px; }
.addbtn:hover { color: var(--ink); background: #F4F4F0; }
.cpairs { display: flex; flex-wrap: wrap; gap: 6px; }
.cpair { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 8px; border-radius: 999px; border: 1px solid var(--line); background: #FFFFFF; font: inherit; font-size: 12px; font-weight: 600; }
.cpair[aria-pressed=true] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.cdots { display: inline-flex; } .cdots i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); } .cdots i + i { margin-left: -5px; }
.pastebox { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.pastebox input { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; min-height: 36px; padding: 0 8px; }
.pastebox.row1 { flex-direction: row; flex-wrap: wrap; align-items: center; border-top: 0; padding-top: 0; margin-bottom: 14px; justify-content: flex-end; }
.pastebox.row1 input { width: 220px; }
.cols.export { margin-top: 20px; gap: 32px; flex-wrap: nowrap; }
.xbar { min-height: 53px; }
.xbar .numrow { display: flex; gap: 6px; }
.xmain { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.xgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 20px; padding-top: 6px; }
.xgrid canvas { width: 100%; height: auto; display: block; }
.xcard { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.xname { display: flex; }
.xdl { width: 24px; height: 22px; min-height: 0; border: 0; background: transparent; color: var(--soft); display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.xdl:hover { color: var(--acc); }
.xname { justify-content: flex-end; }
.xcard { gap: 2px !important; }
.xcard .thumb { cursor: zoom-in; }
.xlight .xmsg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(20,20,20,.85); color: #FFFFFF; font-size: 16px; font-weight: 600; padding: 12px 20px; border-radius: 999px; opacity: 0; transition: opacity .2s; pointer-events: none; white-space: nowrap; }
.xlight .xmsg.on { opacity: 1; }
.col-side canvas[data-fsopen] { cursor: zoom-in; }
.xlight canvas { display: block; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.xlight .xnav { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font: inherit; font-size: 20px; cursor: pointer; flex: none; }
.xlight .xnav:disabled { opacity: .3; cursor: default; }
.xname input { flex: 1; min-width: 0; min-height: 38px; font-size: 13px; }
.xname .iconbtn { flex: 0 0 38px; width: 38px; height: 38px; font-size: 16px; }
.xfile { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xpanel { flex: 0 0 400px; position: sticky; top: 84px; background: var(--panel); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.xsec { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.pflight { display: flex; flex-direction: column; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.xpanel .btn.acc + .btn { margin-bottom: 2px; }
.pfrow { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.pfrow > div { display: flex; flex-direction: column; gap: 2px; }
.pfic { flex: 0 0 22px; height: 22px; border-radius: 50%; color: #FFFFFF; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.pfic.ok { background: var(--ok); } .pfic.warn { background: var(--warn); }
.pfx .linkbtn { font-size: 13px; min-height: 28px; padding: 0; }
@media (max-width: 1200px) { .xgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px) { .cols.export { flex-wrap: wrap; } .xpanel { flex: 1 1 100%; position: static; } .xgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.listpts { display: grid; grid-template-columns: 1fr; gap: 10px; }
.listpts .stepper { flex-wrap: wrap; }
.ttlrow { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.setname-in:focus, .setname-in:focus-visible { outline: none !important; box-shadow: 0 0 0 3px rgba(47,91,211,.18) !important; }
.setwrap { display: flex; flex-direction: column; gap: 1px; border-left: 1px solid #D6D6D0; padding-left: 16px; min-height: 40px; justify-content: center; }
.setlab { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #9A9A92; }
.ttlrow h1 { margin-bottom: 0; }
.setname { border: 0; background: transparent; padding: 0; min-height: 0; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); cursor: text; display: inline-flex; align-items: center; gap: 7px; max-width: 520px; text-align: left; }
.setname:hover { color: var(--acc); }
.setname:hover .pen { color: var(--acc); }
.setname .pen { color: #9A9A92; flex: none; }
.setname-in { font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); border: 1px solid var(--acc) !important; border-radius: 6px !important; padding: 0 6px; height: 24px; min-height: 0 !important; margin: 0 0 0 -7px; width: 340px; background: #FFFFFF; max-width: 100%; }
.btn[data-flip][aria-pressed=true] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
html { overflow-y: scroll; }
html::-webkit-scrollbar { width: 12px; }
html::-webkit-scrollbar-track { background: #F4F4F0; }
html::-webkit-scrollbar-thumb { background: #C9C9C1; border-radius: 999px; border: 3px solid #F4F4F0; }
html::-webkit-scrollbar-thumb:hover { background-color: #9A9A92; }
.edcol .editor { flex: 1 1 auto; min-height: 0; max-height: none; position: static; }
.editor::-webkit-scrollbar, .pvpane::-webkit-scrollbar, .col-side::-webkit-scrollbar, .tbox::-webkit-scrollbar { width: 10px; height: 10px; }
.editor::-webkit-scrollbar-track, .pvpane::-webkit-scrollbar-track, .col-side::-webkit-scrollbar-track, .tbox::-webkit-scrollbar-track { background: transparent; }
.editor::-webkit-scrollbar-thumb, .pvpane::-webkit-scrollbar-thumb, .col-side::-webkit-scrollbar-thumb, .tbox::-webkit-scrollbar-thumb { background: #C9C9C1; border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
.editor::-webkit-scrollbar-thumb:hover, .pvpane::-webkit-scrollbar-thumb:hover, .col-side::-webkit-scrollbar-thumb:hover, .tbox::-webkit-scrollbar-thumb:hover { background-color: #9A9A92; }
@supports not selector(::-webkit-scrollbar) { .editor, .pvpane, .col-side, .tbox { scrollbar-width: thin; scrollbar-color: #C9C9C1 transparent; } }
.startgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.startcard { border: 2px solid var(--line); border-radius: 16px; background: var(--panel); padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
.startcard:hover, .startcard:focus-visible { border-color: var(--acc); }
.startcard canvas { width: 100%; height: auto; border-radius: 6px; display: block; }
.edcol.ghost { opacity: .45; pointer-events: none; user-select: none; filter: grayscale(1); }
.emptystyle { min-height: 420px; border: 2px dashed #D6D6D0; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px; text-align: center; }
.emptystyle .addbtn { font-size: 18px; }
@media (max-width: 760px) { .startgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lnote { display: block; margin-top: -4px; }
.setbar { margin-top: 18px; border-bottom: 1px solid var(--line); padding: 0 0 12px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.setleft { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 auto; }
.numrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gnum { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #FFFFFF; font: inherit; font-size: 14px; font-weight: 600; cursor: grab; }
.numrow.many { gap: 4px; } .numrow.many .gnum { width: 34px; font-size: 13px; border-radius: 9px; }
.gnum[aria-pressed=true] { background: var(--acc); border-color: var(--acc); color: #FFFFFF; }
.gnum.dragging { opacity: .4; } .gnum.drop-before { box-shadow: -3px 0 0 0 var(--acc); } .gnum.drop-after { box-shadow: 3px 0 0 0 var(--acc); }
.vdiv { width: 1px; height: 24px; background: var(--line); margin: 0 6px; }
.pm { border: 0; background: transparent; min-width: 36px; min-height: 40px; font: inherit; font-size: 22px; font-weight: 500; color: var(--ink); border-radius: 8px; }
.pm:hover:not(:disabled) { background: #FFFFFF; } .pm:disabled { opacity: .3; }
.cols.create { gap: 48px; margin-top: 10px; flex-wrap: nowrap; }
.cols.create > .col-layout, .cols.create > .col-words, .cols.create > .col-side { flex: 0 0 calc((100% - 96px) / 3); min-width: 0; box-sizing: border-box; }
.cols.create > .col-layout { gap: 16px; }
.cols.create > .col-words { gap: 20px; }
.cols.create > .col-layout > .colhead + .accsec { margin-top: -8px; }
.col-words { flex: 0 1 400px; min-width: 300px; display: flex; flex-direction: column; gap: 16px; }
.cols.create.all .col-words [data-card] { cursor: pointer; }
.col-layout { flex: 0 1 340px; min-width: 280px; display: flex; flex-direction: column; gap: 12px; }
.cols.create .col-side { padding-top: 10px; }
.cols.create .col-words, .cols.create .col-layout { padding-top: 10px; }
.colhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px; width: 100%; }
.colh { margin: 0; font-size: 18px; font-weight: 700; display: flex; align-items: baseline; gap: 10px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.navarrow { width: 36px; min-height: 36px; border-radius: 50%; font-size: 16px; }
.navarrow:disabled { opacity: .3; }
.colsub { font-size: 13px; font-weight: 500; color: var(--soft); }
.pvhead { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.thumbs.five { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.thumbs.five .thumb .tag { min-width: 18px; height: 18px; font-size: 10px; top: -6px; left: -6px; }
.tbox { height: 280px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 16px; display: flex; flex-direction: column; gap: 10px; background: #FFFFFF; }
.tgroup { margin: 2px 0 0; font-size: 12px; font-weight: 600; color: var(--soft); }
.tgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tpick { width: 100%; border: 0; background: transparent; padding: 0; font: inherit; text-align: left; display: flex; flex-direction: column; gap: 6px; }
.tpick canvas { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); display: block; }
.tpick span { font-size: 12px; font-weight: 500; line-height: 1.25; }
.tpick[aria-pressed=true] canvas { outline: 2px solid var(--acc); outline-offset: 2px; }
.tpick[aria-pressed=true] span { font-weight: 700; }
#libbtn[aria-current=page] { color: var(--acc); }
.savest { font-size: 12px; color: var(--soft, #5E5E58); margin-right: 4px; white-space: nowrap; display: inline-block; width: 84px; text-align: right; }
.savest.bad { width: auto; }
.savest.bad { color: #B3261E; font-weight: 600; }
.lib { display: flex; flex-direction: column; gap: 20px; }
.libtools { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.libsearch { min-height: 42px; width: 300px; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; font: inherit; font-size: 14px; }
.libtools select { min-height: 40px; }
.libtools { min-height: 59px; }
.libtools .btn { min-height: 42px; padding-top: 0; padding-bottom: 0; }
.libtabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); }
.libtabs button { border: 0; background: transparent; font: inherit; font-size: 15px; font-weight: 600; padding: 10px 14px; border-bottom: 3px solid transparent; margin-bottom: -1px; color: var(--soft, #5E5E58); }
.libtabs button[aria-selected=true] { color: var(--ink, #141414); border-bottom-color: var(--acc); }
.libcount { font-size: 12px; font-weight: 600; background: #F0F0EC; border-radius: 999px; padding: 2px 8px; margin-left: 4px; }
.libh { margin: 6px 0 -6px; font-size: 18px; }
.libempty { border: 2px dashed var(--line); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; gap: 6px; width: calc((100% - 44px) / 3); min-width: 280px; box-sizing: border-box; }
@media (max-width: 900px) { .libempty { width: 100%; } }
.favcv { height: 170px; width: auto; max-width: 100%; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.startgrid.saved .startcard span { font-size: 13px; }
.savelink.on { color: #8A6A00; text-decoration: none; opacity: 1; }
.bwrap { display: flex; flex-direction: column; gap: 18px; }
.bsec { border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.bsec input[type=text], .bsec select { min-height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 14px; width: 100%; max-width: 520px; background: #FFF; }
.libh2 { margin: 0; font-size: 20px; }
.bh3 { margin: 0; font-size: 15px; }
.bhelp { margin: 0 0 6px; }
.bgrid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bcols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.bcol { display: flex; flex-direction: column; gap: 8px; min-width: 0; position: relative; }
.bhf { margin-top: 10px; border: 1px dashed var(--line); border-radius: 10px; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; max-width: 420px; background: #FAFAF7; }
.bhfmid { height: 70px; background: #EFEEE9; border-radius: 6px; }
.bempty { border: 2px dashed var(--line); border-radius: 12px; background: transparent; min-height: 120px; font: inherit; font-weight: 600; cursor: pointer; }
.bempty:hover, .badd:hover { border-color: var(--acc); }
.lcard { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.ltiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ltile { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.limg { height: 80px; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 10px; overflow: hidden; }
.limg img { max-width: 100%; max-height: 100%; object-fit: contain; }
.limg.sm { height: 44px; width: 70px; padding: 6px; flex: 0 0 auto; }
.ltl { font-size: 11.5px; }
.lacts { display: flex; gap: 10px; flex-wrap: wrap; }
.lacts .linkbtn, .bswa .linkbtn { min-height: 26px; padding: 0; font-size: 12.5px; }
.laddl { max-height: 300px; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.lrow { position: relative; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; }
.lrow b { flex: 1; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .libdots { position: static; width: 30px; height: 30px; }
.bsw { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #FFF; }
.bchip { width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(0,0,0,.12); flex: 0 0 auto; }
.bswt { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: 13.5px; }
.bswt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bswa { display: flex; gap: 10px; }
.badd { border: 2px dashed var(--line); border-radius: 10px; background: transparent; min-height: 44px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.bneut { display: grid; grid-auto-flow: column; grid-template-rows: repeat(4, auto); grid-auto-columns: minmax(0, 260px); gap: 8px; }
.bfontpv { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 6px; max-width: 640px; }
.bmade { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.bwarn { margin: 0; font-size: 12.5px; background: #FFF6DD; border: 1px solid #EBD38A; border-radius: 8px; padding: 8px 10px; }
.berr { margin: 10px 0 0; font-size: 13px; background: #FDECEA; border: 1px solid #E9A79F; color: #8A1C12; border-radius: 8px; padding: 10px 12px; }
.lupv { display: flex; flex-direction: column; gap: 10px; }
.lupv .limg img { max-height: 120px; }
.bchk { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 14px; }
@media (max-width: 900px) { .bgrid3, .bcols3 { grid-template-columns: 1fr; } .bmade { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body.quickmode .smallnote, body.quickmode #nav, body.quickmode #undo, body.quickmode #redo, body.quickmode #savest { display: none !important; }
.quick { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; padding-bottom: 30px; }
.quick h1 { margin: 0; font-size: 24px; }
.qhero { display: flex; flex-direction: column; gap: 12px; text-align: center; align-items: center; padding-top: 10px; }
.qhero h1 { font-size: 32px; line-height: 1.1; }
.qhero p { margin: 0; }
.qhimg canvas { width: 220px; height: auto; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.qbig { width: 100%; min-height: 54px; font-size: 17px; }
.qhome { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.qrow { display: flex; gap: 12px; align-items: center; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: #FFF; padding: 8px; font: inherit; }
.qrow img, .qblank { width: 52px; height: 65px; object-fit: cover; border-radius: 6px; background: #EEE; flex: 0 0 auto; }
.qrow > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qrow b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qlinks { display: flex; gap: 20px; justify-content: center; margin-top: 8px; }
.qhead { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px; }
.qhead h1 { font-size: 22px; }
.qback { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #FFF; font-size: 18px; }
.qlead { margin: 0; }
.qgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.qgrid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.qcard { display: flex; flex-direction: column; gap: 4px; align-items: stretch; text-align: left; border: 2px solid var(--line); border-radius: 12px; background: #FFF; padding: 8px; font: inherit; }
.qcard canvas { width: 100%; height: auto; border-radius: 6px; }
.qcard b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qcard.sm b { font-size: 12px; }
.qcard[aria-pressed=true] { border-color: var(--acc); box-shadow: 0 0 0 2px var(--acc); }
.qnewstyle { border: 2px dashed var(--line); border-radius: 12px; background: transparent; padding: 16px; font: inherit; font-weight: 600; display: flex; flex-direction: column; gap: 2px; }
.qpv { display: flex; justify-content: center; }
.qpv canvas { border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.1); max-width: 100%; height: auto; }
.qsw { display: flex; flex-wrap: wrap; gap: 10px; }
.qdot { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.qdot[aria-pressed=true] { box-shadow: 0 0 0 3px #FFF, 0 0 0 5px var(--acc); }
.qfont { border: 1px solid var(--line); border-radius: 10px; background: #FFF; padding: 6px 12px; font-size: 22px; display: flex; flex-direction: column; align-items: center; }
.qfont span { font-family: Inter, sans-serif; font-size: 11px; }
.qfont[aria-pressed=true] { border-color: var(--acc); box-shadow: 0 0 0 2px var(--acc); }
.quick textarea, .quick input[type=text] { width: 100%; font: inherit; font-size: 16px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.qfoot { position: sticky; bottom: 0; padding: 10px 0 4px; background: linear-gradient(rgba(255,255,255,0), #FFF 30%); }
.qsaved { text-align: center; color: #2E7D4F; font-weight: 600; margin: 4px 0; }
.qtip { text-align: center; border-top: 1px solid var(--line); padding-top: 12px; }
.qset { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 14px; }
.qset canvas { border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.1); max-width: 100%; height: auto; }
.menuwrap { position: relative; }
body.pagemode .smallnote { display: none !important; }
@media (max-width: 760px) { .libtabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; } .libtabs button { flex: none; } }
@media (max-width: 700px) { #libbtn { display: none !important; } }
.menubtn { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #FFF; border-radius: 999px; padding: 4px 12px 4px 4px; font: inherit; font-size: 14px; font-weight: 600; min-height: 40px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #F0F0EC; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.avatar.ini { background: var(--acc); color: #FFF; font-size: 12px; font-weight: 700; }
.menupop { position: absolute; right: 0; top: calc(100% + 8px); width: 230px; background: #FFF; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.14); padding: 6px; z-index: 50; display: flex; flex-direction: column; }
.menupop[hidden] { display: none; }
.menupop button { text-align: left; border: 0; background: transparent; padding: 10px 12px; border-radius: 8px; font: inherit; font-size: 14px; }
.menupop button:hover, .menupop button[aria-current=page] { background: #F4F4F0; }
.menusep { border-top: 1px solid var(--line) !important; border-radius: 0 0 8px 8px !important; margin-top: 4px; }
.signbtns { display: flex; flex-direction: column; gap: 10px; }
.signbtns .btn { width: 100%; min-height: 48px; }
.bgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal input[type=email], .bgrid2 input { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 14px; }
.menuwho { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: flex; flex-direction: column; }
.pg { display: flex; flex-direction: column; gap: 18px; max-width: 1100px; }
.pghead h1 { margin: 0; }
.pghead p { margin: 6px 0 0; font-size: 14px; }
.ptog { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.ptog .check { align-items: center; }
.ptog .check .bx { margin-top: 0; }
.ptog p { margin: -10px 0 4px 34px; }
.req { font-size: 11px; color: #8A1C12; font-weight: 600; margin-left: 4px; }
.plancard { display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; max-width: 640px; }
.dangerbtn { color: #FFF !important; background: #B3261E !important; border-color: #B3261E !important; }
.bsec .dangerbtn { color: #B3261E !important; background: #FFF !important; }
.modal .dangerbtn { color: #FFF !important; background: #B3261E !important; }
.hvids { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.hvid { display: flex; flex-direction: column; gap: 4px; }
.hvthumb { aspect-ratio: 16/9; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.hvthumb span { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.pg.hpg { max-width: none; }
.hcols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.hcontact .row .btn { width: 100%; }
.hnote { grid-template-columns: auto 1fr !important; }
.hnote .small, .hnote .linkbtn { grid-column: 2; justify-self: start; }
.hnote .linkbtn { min-height: 0; padding: 0; font-size: 12.5px; }
.hfaq { border-top: 1px solid var(--line); padding: 10px 0; }
.hfaq summary { cursor: pointer; font-weight: 600; font-size: 14.5px; }
.hfaq p { margin: 8px 0 0; line-height: 1.55; font-size: 14px; }
.hnotes { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.hnote { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: start; font-size: 14px; }
.htag { font-size: 11px; font-weight: 700; background: #F0F0EC; border-radius: 999px; padding: 2px 8px; }
.xname { align-items: center; gap: 6px; margin-top: 6px; }
.xname .xgname { flex: 1 1 auto; width: auto; min-width: 0; margin: 0; min-height: 32px; height: 32px; font-size: 12.5px; }
.xgname { width: 100%; margin-top: 6px; min-height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; font-size: 13px; }
.pg input[type=text] { min-height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 14px; }
body.notips [data-tip]:hover::after, body.notips [data-tip]:focus-visible::after, body.notips [data-tip]:hover::before, body.notips [data-tip]:focus-visible::before { display: none !important; }
body.notips .tipline { display: none !important; }
@media (max-width: 900px) { .hvids { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hcols { grid-template-columns: 1fr; } }
.upgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.upgrid.pick { grid-template-columns: repeat(5, minmax(0, 1fr)); max-height: 56vh; overflow: auto; padding: 2px; }
.upcard { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; text-align: left; border: 0; background: transparent; padding: 0; font: inherit; }
button.upcard { cursor: pointer; }
button.upcard:hover .upimg, button.upcard:focus-visible .upimg { outline: 2px solid var(--acc); }
.upimg { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #F0F0EC; border: 1px solid var(--line); }
.upimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upcard .libdots { top: 6px; right: 6px; width: 30px; height: 30px; }
.upcard .libpop { top: 40px; }
.uptags { display: flex; flex-wrap: wrap; gap: 4px; }
.uptag { border: 1px solid var(--line); background: #FFF; border-radius: 999px; padding: 2px 8px; font: inherit; font-size: 11.5px; }
.uptag.add { border-style: dashed; color: var(--soft, #5E5E58); }
.lgpos { display: grid; grid-template-columns: repeat(3, 36px); gap: 6px; }
.lgpos button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: #FFF; display: flex; align-items: center; justify-content: center; padding: 0; }
.lgpos button span { width: 10px; height: 10px; border-radius: 3px; background: #D5D5D0; }
.lgpos button[aria-checked=true] { border-color: var(--acc); box-shadow: 0 0 0 2px var(--acc); }
.lgpos button[aria-checked=true] span { background: var(--acc); }
@media (max-width: 1100px) { .upgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .upgrid, .upgrid.pick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bfcur { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; max-width: 520px; min-height: 52px; }
.bfcur > span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ftools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ftools .libsearch { width: 100%; }
.flist { max-height: 58vh; overflow: auto; display: flex; flex-direction: column; margin-top: 8px; border-top: 1px solid var(--line); }
.frow { display: grid; grid-template-columns: 180px 1fr auto; gap: 16px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.fmeta { display: flex; flex-direction: column; gap: 2px; }
.fon { color: var(--acc); font-weight: 700; }
.fsample { font-size: 26px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facts { display: flex; gap: 6px; }
.fhint { padding: 14px 4px 4px; font-size: 14px; }
@media (max-width: 800px) { .frow { grid-template-columns: 1fr; gap: 6px; } .ftools { grid-template-columns: 1fr; } }
.qlogo { width: 64px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #FFF; padding: 6px; font: inherit; font-size: 12.5px; display: flex; align-items: center; justify-content: center; }
.qlogo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.qlogo.on { border-color: var(--acc); box-shadow: 0 0 0 2px var(--acc); }
.liblist { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; }
.librow { display: grid; grid-template-columns: 190px minmax(0, 2.2fr) 1fr 0.8fr 1fr 1fr 48px; gap: 16px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #FFF; font: inherit; text-align: left; }
.librow:last-child { border-bottom: 0; border-radius: 0 0 14px 14px; }
.librow:hover:not(.lrhead) { background: #FAFAF7; }
.lrhead { background: #F6F6F2; border-radius: 14px 14px 0 0; font-size: 12.5px; font-weight: 600; color: var(--soft, #5E5E58); padding: 8px 14px; }
.lract { text-align: center; }
.librow { grid-template-columns: 190px minmax(0, 2.2fr) 1fr 0.8fr 1fr 1fr 64px; }
.librow.upl { grid-template-columns: 90px minmax(0, 1.6fr) minmax(0, 2fr) 0.8fr 0.7fr 0.8fr 64px; }
.librow:not(.lrnew) > span:last-child { display: flex; justify-content: center; }
.lrsort { border: 0; background: transparent; font: inherit; font-weight: 600; color: inherit; padding: 0; text-align: left; cursor: pointer; }
.lrsort.on { color: var(--ink, #141414); }
.lrthumbs { display: flex; gap: 6px; border: 0; background: transparent; padding: 0; cursor: pointer; height: 64px; align-items: center; }
.lrthumbs img, .lrthumbs .libblank { height: 60px; width: auto; max-width: 56px; object-fit: contain; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.lrthumbs .libblank { width: 48px; height: 60px; }
.lrname { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; border: 0; background: transparent; padding: 0; font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.lrname b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.lrsz { font-weight: 600; }
.lrdots { position: static !important; }
.librow .libpop { top: 40px; right: 0; }
.lrnewin { display: flex; align-items: center; gap: 12px; }
.lrnew { grid-template-columns: 190px 1fr; cursor: pointer; border: 0; border-bottom: 1px solid var(--line); width: 100%; }
.lrnew .plus { width: 34px; height: 34px; border-radius: 50%; background: var(--acc); color: #FFF; display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
@media (max-width: 900px) { .librow { grid-template-columns: 70px minmax(0, 1fr) 48px; } .librow > span:nth-child(n+3):not(:last-child) { display: none; } .lrthumbs img:not(:first-child) { display: none; } }
.librow.upl { grid-template-columns: 90px minmax(0, 1.6fr) minmax(0, 2fr) 0.8fr 0.7fr 0.8fr 48px; }
.upthumb { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: #F0F0EC; display: block; }
.upthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) { .librow.upl { grid-template-columns: 70px minmax(0, 1fr) 48px; } .librow.upl > span:nth-child(n+3):not(:last-child) { display: none; } }
.librow.trw { grid-template-columns: 90px minmax(0, 2fr) 0.8fr 1fr 0.8fr 220px; }
.trpv { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: #F0F0EC; display: flex; align-items: center; justify-content: center; }
.trpv img, .trpv canvas { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: cover; display: block; }
.trpv img[src^="data"] { width: 100%; height: 100%; }
.tracts { display: flex; gap: 12px; align-items: center; justify-content: flex-end !important; }
.tracts .linkbtn { color: #B3261E; min-height: 0; font-size: 13px; }
.trsoon { color: #B3261E; font-weight: 600; }
.toastbtn { border: 0; background: transparent; color: #FFF; font: inherit; font-weight: 700; text-decoration: underline; margin-left: 10px; cursor: pointer; pointer-events: auto; }
.toast { pointer-events: auto; }
@media (max-width: 900px) { .librow.trw { grid-template-columns: 70px minmax(0, 1fr) auto; } .librow.trw > span:nth-child(n+3):not(:last-child) { display: none; } }
.lfrows { display: flex; flex-direction: column; gap: 8px; }
.lfempty { margin: 0; }
.tbox.empty { height: auto !important; min-height: 0 !important; max-height: none !important; padding: 12px 14px !important; }
.lfrow { align-items: center; }
.lfyours { font-size: 12.5px; font-weight: 600; color: var(--soft, #5E5E58); margin-right: 2px; }
body.phonemode .menuwrap, body.phonemode .tools, body.phonemode .smallnote, body.phonemode footer:not(.sitefoot) { display: none !important; }
.phonepg { max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 8px 4px 30px; }
.phonepg canvas { width: 190px; height: auto; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.phonepg h1 { margin: 6px 0 0; font-size: 32px; line-height: 1.08; }
.phlead { margin: 0; font-size: 16px; color: var(--soft, #5E5E58); }
.phbox { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; background: #FAFAF7; box-sizing: border-box; }
.phbox h2 { margin: 0; font-size: 20px; }
.phbox p { margin: 0 0 6px; line-height: 1.5; }
.phbtn { width: 100%; min-height: 50px; font-size: 16px; display: flex; align-items: center; justify-content: center; text-decoration: none; box-sizing: border-box; }
.phbtn[disabled] { opacity: .5; }
.phinput { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font: inherit; font-size: 16px; box-sizing: border-box; background: #FFF; }
.phchk { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: 14px; line-height: 1.4; margin: 2px 0 4px; }
.phchk input { width: 20px; height: 20px; margin: 0; flex: none; }
.phsent { color: #2E7D4F; font-weight: 700; font-size: 17px; margin: 4px 0 !important; }
.librow.fvr { grid-template-columns: 90px minmax(0, 1.6fr) 0.8fr minmax(0, 1.6fr) 0.8fr 64px; }
.fvcv { max-width: 100%; max-height: 100%; width: auto !important; height: 100% !important; }
.libthumbs .fvtype { position: absolute; left: 10px; top: 10px; bottom: auto; height: auto; }
@media (max-width: 900px) { .librow.fvr { grid-template-columns: 70px minmax(0, 1fr) 48px; } .librow.fvr > span:nth-child(n+3):not(:last-child) { display: none; } }
.addcta { min-height: 52px; padding: 0 30px; font-size: 17px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.pgnums { display: flex; gap: 4px; }
.pgnum { min-width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #FFF; font: inherit; font-size: 14px; font-weight: 600; }
.pgnum.on { background: var(--ink, #141414); color: #FFF; border-color: var(--ink, #141414); }
.pgcount { margin-left: 8px; }
.libgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 22px; }
.libcard { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.libthumbs { position: relative; height: 210px; background: #F4F4F0; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; cursor: pointer; overflow: hidden; }
.libthumbs:hover, .libthumbs:focus-visible { border-color: var(--acc); }
.libthumbs img, .libblank { width: auto; height: auto; max-height: 160px; max-width: calc((100% - 16px) / 3); object-fit: contain; border-radius: 5px; box-shadow: 0 2px 8px rgba(0,0,0,.08); background: #E6E6E1; display: block; }
.libblank { width: 110px; height: 150px; max-width: none; }
.libcur { position: absolute; left: 10px; top: 10px; font-size: 11.5px; font-weight: 600; background: #FFFFFF; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.libdots { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; background: #FFFFFF; border: 1px solid var(--line); font-size: 17px; line-height: 1; padding: 0; }
.libcard .libdots[data-tip] { position: absolute; }
.libpop { position: absolute; right: 8px; top: 48px; width: 230px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.14); padding: 6px; z-index: 20; display: flex; flex-direction: column; }
.libpop button { text-align: left; border: 0; background: transparent; padding: 10px 12px; border-radius: 8px; font: inherit; font-size: 14px; }
.libpop button:hover, .libpop button:focus-visible { background: #F4F4F0; }
.libpop button.danger { color: #B3261E; }
.libname { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.libmeta { line-height: 1.5; }
.libnew { height: 210px; border: 2px dashed var(--line); border-radius: 14px; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font: inherit; cursor: pointer; padding: 12px; text-align: center; }
.libnew:hover, .libnew:focus-visible { border-color: var(--acc); }
.libnew .plus { width: 46px; height: 46px; border-radius: 50%; background: var(--acc); color: #FFFFFF; font-size: 26px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 1100px) { .libgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .libgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tcell { position: relative; }
.tcell .tstar[data-tip] { position: absolute; }
.tstar { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: 15px; line-height: 1; padding: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .12s; cursor: pointer; }
.tcell:hover .tstar, .tstar:focus-visible, .tcell.isfav .tstar { opacity: 1; }
.tcell.isfav .tstar { color: #B7791F; }
@media (hover: none) { .tstar { opacity: 1; } }
.lset { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.accsec { display: flex; flex-direction: column; gap: 12px; }
.accbody { display: flex; flex-direction: column; gap: 12px; }
.lset .accbody { gap: 20px; }
.lset .flabel + .seg { margin-top: 6px; }
.acchead { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px; }
.accbtn { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 0; padding: 4px 0; margin: 0; font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); cursor: pointer; min-height: 32px; }
.accbtn:hover span { text-decoration: underline; text-underline-offset: 3px; }
.accbtn .chev { transition: transform .15s ease; flex: none; }
.accbtn[aria-expanded="false"] .chev { transform: rotate(-90deg); }
.lextras { display: flex; flex-direction: column; gap: 12px; }
.lextras .arrrow { flex-wrap: wrap; }
@media (max-width: 1100px) { .cols.create { flex-wrap: wrap; gap: 36px; } .cols.create > .col-words, .cols.create > .col-layout { flex: 1 1 100%; } .cols.create > .col-side { flex: 1 1 100%; position: static; max-height: none; } }
.mdhint { margin: -4px 0 0; font-size: 12px; line-height: 1.4; }
.fmtrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.msgtools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gchips { display: flex; flex-wrap: wrap; gap: 6px; }
.gchips button { min-width: 40px; min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: #FFFFFF; font-size: 14px; font-weight: 600; }
.gchips button[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.fmt { width: 32px; height: 30px; border-radius: 7px; border: 1px solid var(--line); background: #FFFFFF; font-size: 14px; padding: 0; color: var(--ink); }
.fmt:hover { border-color: var(--ink); }
.fmt .shd { font-weight: 800; text-shadow: 1px 2px 2px rgba(0,0,0,.55); }
.fmt .mkr { background: linear-gradient(transparent 30%, #FFE066 30%, #FFE066 88%, transparent 88%); color: var(--ink); padding: 0 3px; font-weight: 700; font-size: 13px; }
.fmt[aria-pressed=true] .mkr { color: #1A1A1A; }
.fmt[aria-pressed=true] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.fmt[aria-pressed=true] .hl { background: var(--acc); color: #FFFFFF; }
.fmt .hl { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 5px; background: #DCE5FB; color: var(--acc); font-weight: 800; line-height: 1; }
.grip { cursor: grab; font-size: 18px; line-height: 1; color: var(--soft); padding: 4px 2px; user-select: none; }
.card.dragging { opacity: .45; }
.card.drop-before { box-shadow: 0 -3px 0 0 var(--acc); }
.card.drop-after { box-shadow: 0 3px 0 0 var(--acc); }
.hfbox { gap: 14px; padding: 12px 18px; }
.box { border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--panel); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .flabel { font-size: 12px; color: var(--soft); }
input[type=text], textarea, select { font-size: 14px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #FFFFFF; min-width: 0; }
textarea { line-height: 1.45; resize: vertical; }
select { min-height: 42px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #FFFFFF; font-size: 13px; font-weight: 500; }
.seg button[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.btn { min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: #FFFFFF; font-weight: 600; font-size: 15px; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.btn.acc { background: var(--acc); border-color: var(--acc); color: #FFFFFF; }
.btn.sm { min-height: 40px; font-size: 13px; padding: 0 14px; }
.iconbtn { width: 34px; min-height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #FFFFFF; font-size: 14px; }
.textbtn { min-height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: #FFFFFF; font-size: 12px; color: var(--soft); }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #FFFFFF; font-size: 18px; }
.stepper .n { font-size: 18px; font-weight: 600; min-width: 28px; text-align: center; }
.check { display: flex; align-items: flex-start; gap: 12px; border: 0; background: transparent; padding: 0; text-align: left; min-height: 44px; font-weight: 600; }
.check .bx { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 6px; border: 1.5px solid var(--soft); background: #FFFFFF; color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.check[data-act=guides] .bx { margin-top: 0; }
.check[aria-checked=true] .bx { background: var(--acc); border-color: var(--acc); }
.foot { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; gap: 12px; }
.badge { font-size: 11px; font-weight: 700; color: #FFFFFF; background: var(--ok); border-radius: 6px; padding: 3px 7px; }
.badge.bad { background: var(--warn); }
pre.code { margin: 0; font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.6; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; padding: 14px; white-space: pre-wrap; word-break: break-all; }

/* previews */
.col-side > canvas.gfx { width: auto; max-width: 100%; max-height: calc(100vh - 300px); margin: 0 auto; }
.col-side .thumbs canvas.gfx { max-height: 220px; width: auto; max-width: 100%; margin: 0 auto; }
.gfx { display: block; width: 100%; height: auto; border-radius: 10px; background: var(--fill); }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-top: 6px; }
.thumb { position: relative; border: 0; padding: 0; background: transparent; border-radius: 10px; }
.thumb .tag { position: absolute; top: -7px; left: -7px; z-index: 2; min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--ink); background: #FFFFFF; border: 1px solid var(--line); border-radius: 999px; padding: 0 6px; }
.thumb .ctag { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); right: auto; z-index: 2; font-size: 11px; font-weight: 700; color: #FFFFFF; background: #D9822B; border-radius: 6px; padding: 2px 6px; }
.thumb.sel canvas { box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 5px var(--acc); }
.thumb.dim canvas { opacity: 0.5; }

/* home */
.hero h1 { font-size: 52px; line-height: 1.05; letter-spacing: -0.03em; }
.hero p { margin: 14px 0 0; font-size: 19px; color: var(--soft); }
.hero p.herobody { margin-top: 10px; font-size: 16px; line-height: 1.6; max-width: 640px; }
.sizewrap { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; margin-top: 24px; }
.sizewrap .sizes { flex: 1 1 560px; margin: 0; }
.countbox { flex: 0 1 360px; display: flex; flex-direction: column; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.gnum.still { display: inline-flex; align-items: center; justify-content: center; cursor: default; }
.countlab { display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; font-size: 14px; font-weight: 500; }
.countlab .countin { min-height: 40px; height: 40px; }
.countin { width: 64px; min-height: 44px; text-align: center; font: inherit; font-size: 18px; font-weight: 600; border: 1px solid var(--line); border-radius: 10px; background: #FFFFFF; -moz-appearance: textfield; }
.countin::-webkit-outer-spin-button, .countin::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qpick { min-width: 52px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #FFFFFF; font: inherit; font-size: 14px; font-weight: 600; }
.qpick[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.homegrid { display: flex; gap: 56px; align-items: center; padding: 40px 0 8px; }
.homehero { flex: 0 0 calc(55% - 28px); display: flex; flex-direction: column; gap: 16px; }
.homehero h1 { font-size: 56px; line-height: 1.04; }
.hero.homehero p { margin: 0; }
.hero p.herobye { color: var(--ink); font-size: 16px; font-weight: 600; margin-top: -6px; }
.hero p.herosub { color: var(--ink); font-size: 21px; line-height: 1.4; font-weight: 500; }
.homegrid .stepcards { flex: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; gap: 16px; }
.homegrid .stepcards .vis { height: 124px; }
.homegrid.stacked .stepcards { grid-template-columns: 1fr; gap: 12px; }
.homegrid.stacked .scard { flex-direction: row; align-items: center; gap: 22px; padding: 14px 20px 14px 14px; border-radius: 16px; }
.homegrid.stacked .scard .vis { flex: 0 0 240px; height: 128px; }
.homegrid.stacked .scard .txt { display: flex; flex-direction: column; gap: 6px; }
.homegrid.stacked .scard .txt h2 { display: flex; }
.homegrid.stacked .scard .txt p { margin: 0; }
.pathpanel { flex: 1; background: var(--panel); border-radius: 22px; padding: 26px 28px; }
.pathlab { margin: 0 0 18px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--acc); }
.pathlist { list-style: none; margin: 0; padding: 0; }
.pathlist li { display: flex; gap: 18px; align-items: flex-start; position: relative; padding-bottom: 18px; }
.pathlist li:last-child { padding-bottom: 0; }
.pathlist li:not(:last-child)::after { content: ''; position: absolute; left: 17px; top: 42px; bottom: 6px; width: 2px; background: #D6D6D0; }
.pathlist .pn { flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #FFFFFF; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.pathlist .ptxt { flex: 1; display: flex; flex-direction: column; gap: 0; min-width: 0; }
.pathlist h2 { margin: 0; font-size: 19px; line-height: 36px; }
.pathlist p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--soft); }
.pathlist .pvis { flex: 0 0 160px; height: 84px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pathlist .pvin { transform: scale(.72); transform-origin: center; width: 260px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pathlist canvas.homecv { max-height: 110px; }
.pathlist .pvis { flex-basis: 196px !important; height: 100px !important; }
.pathlist li:not(:first-child) .pvin { transform: none; width: 168px; gap: 6px; }
.pathlist li:not(:first-child) canvas.homecv { width: calc((100% - 12px) / 3); max-height: none; }
@media (max-width: 640px) { .pathlist .pvis { display: none; } }
@media (max-width: 1100px) { .homegrid { flex-direction: column; align-items: stretch; gap: 32px; } .homehero { flex: none; } }
@media (max-width: 640px) { .homegrid .stepcards { grid-template-columns: 1fr; } .homegrid.stacked .scard { flex-direction: column; align-items: stretch; } .homegrid.stacked .scard .vis { flex: none; } .homehero h1 { font-size: 40px; } }
.stepcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 36px 0 0; padding: 0; list-style: none; }
.stepcards li { display: flex; }
.stepcards .scard.still, .stepcards .scard.still:hover { transform: none !important; box-shadow: none !important; cursor: default; }
.stepcards .scard { flex: 1; width: 100%; border: 0; text-align: left; font: inherit; color: inherit; background: var(--panel); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 12px; transition: transform .18s ease, box-shadow .18s ease; }
.stepcards .scard:hover, .stepcards .scard:focus-visible { transform: scale(1.04); box-shadow: 0 14px 30px rgba(0,0,0,.12); }
@media (prefers-reduced-motion: reduce) { .stepcards .scard { transition: box-shadow .18s ease; } .stepcards .scard:hover, .stepcards .scard:focus-visible { transform: none; } }
.stepcards .vis { height: 140px; border-radius: 12px; background: #FFFFFF; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; position: relative; overflow: hidden; }
.stepcards h2 { margin: 0; font-size: 19px; display: flex; align-items: center; gap: 10px; }
.stepcards h2 .n { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; font-size: 13px; background: var(--ink); color: #FFFFFF; }
.stepcards p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--soft); }

/* size */
.sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.sizecard { border: 2px solid var(--line); border-radius: 18px; padding: 22px; background: #FFFFFF; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.sizecard[aria-pressed=true] { border-color: var(--acc); background: #F3F6FD; }
.sizecard .shapes { position: relative; width: 90px; height: 160px; }
.sizecard .shapes > div { position: absolute; left: 0; bottom: 0; width: 90px; border-radius: 10px; box-sizing: border-box; }
.sizecard .shape { background: var(--fill); border: 2px solid #C9C9C1; z-index: 2; }
.sizecard .ghost { border: 2px dashed #B4B2A9; z-index: 3; }

/* layout rows */
.lrow { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.lrow .pv { flex: 0 0 200px; }
.lctl { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.trio { display: flex; flex-wrap: wrap; gap: 18px 0; }
.trio > div { display: flex; flex-direction: column; gap: 8px; padding: 0 20px; border-left: 1px solid var(--line); }
.trio > div:first-child { padding-left: 0; border-left: 0; }
.extras { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; background: var(--panel); border-radius: 12px; padding: 14px; }

/* style */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-top: 22px; }
.tab { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #FFFFFF; font-weight: 600; font-size: 14px; }
.tab[aria-selected=true] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.dash { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px dashed var(--soft); background: #FFFFFF; font-weight: 600; font-size: 14px; }
.editor { flex: 0 0 400px; min-width: 0; background: var(--panel); border-radius: 18px; padding: 8px 20px 20px; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; overscroll-behavior: contain; }
.pvpane { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; padding: 4px 10px 10px 12px; }
.pvpane canvas.gfx { width: auto; max-width: 100%; max-height: calc(100vh - 290px); margin: 0 auto; }
.pvpane .thumbs canvas.gfx { max-height: calc(100vh - 330px); }
.pvpane .cmpcard canvas.gfx { max-height: calc(100vh - 320px); }
.picker { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.picker input[type=color] { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 10px; padding: 2px; background: #FFFFFF; cursor: pointer; }
.picker .hex { width: 104px; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; }
.warnline { display: flex; align-items: center; gap: 8px; font-size: 13px; background: #FBEDE4; border-radius: 10px; padding: 6px 10px; white-space: nowrap; }
.warnline .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); flex: none; }
.edpill { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: #FFFFFF; font-size: 14px; font-weight: 600; }
.edcol { flex: 0 0 400px; min-width: 0; position: sticky; top: 84px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; gap: 14px; }
.edcol .editor { flex: 1 1 auto; position: static; max-height: none; min-height: 0; }
.aanote { margin: 0; padding: 6px 12px 0; line-height: 1.5; flex: none; }
@media (max-width: 1100px) { .edcol { flex: 1 1 100%; position: static; max-height: none; } }
.editor details { border-top: 1px solid var(--line); padding: 12px 0; }
.editor summary { cursor: pointer; font-size: 14px; font-weight: 600; min-height: 28px; }
.editor .sec { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }
.editor .sub { font-size: 12px; font-weight: 600; margin-top: 4px; }
.shared[data-off=true] { opacity: 0.38; pointer-events: none; }
.sw { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sw button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); padding: 0; font-weight: 700; font-size: 14px; }
.sw button[aria-checked=true] { box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--ink); }
.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pair { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #FFFFFF; min-height: 58px; }
.pair[aria-pressed=true] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.arrrow { display: flex; flex-wrap: wrap; gap: 8px; }
.arrbtn { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; min-width: 92px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #FFFFFF; color: #9A978F; font-size: 12px; }
.arrbtn span { color: var(--ink); font-weight: 600; }
.arrbtn[aria-pressed=true] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); color: var(--acc); }
.sw button.warn::before { content: '!'; position: absolute; top: -5px; right: -5px; width: 15px; height: 15px; border-radius: 50%; background: var(--warn); color: #FFFFFF; font-size: 10px; font-weight: 800; line-height: 15px; text-align: center; border: 1.5px solid #FFFFFF; }
.sw button { position: relative; }
.warndot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--warn); color: #FFFFFF; font-size: 10px; font-weight: 800; line-height: 14px; text-align: center; vertical-align: 1px; }
.pvnav { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 10px; align-items: center; }
.pvnav .iconbtn { width: 44px; min-height: 44px; border-radius: 50%; font-size: 18px; }
.pvnav .iconbtn:disabled { opacity: .3; }
.sw button.riso { position: relative; background: #F7F3EA; overflow: visible; }
.sw button.riso i { position: absolute; width: 15px; height: 15px; border-radius: 50%; mix-blend-mode: multiply; }
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: #1A1A1A; color: #FFFFFF; font-size: 12px; font-weight: 600; line-height: 1; padding: 6px 8px; border-radius: 6px; white-space: nowrap; z-index: 40; pointer-events: none; font-style: normal; letter-spacing: 0; }
.gradrow { display: flex; flex-wrap: wrap; gap: 6px; }
.gradsw { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: transparent; padding: 2px; font-size: 11px; font-weight: 600; color: var(--soft); }
.gradsw span { display: block; width: 46px; height: 32px; border-radius: 8px; border: 1px solid var(--line); }
.gradsw[aria-checked=true] span { box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--ink); }
.gradsw[aria-checked=true] { color: var(--ink); }
.dirrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dirsw { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); padding: 0; }
.dirsw[aria-pressed=true] { box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--ink); }
.sw button.autochip { width: auto; border-radius: 999px; padding: 0 12px; background: #FFFFFF; font-size: 13px; font-weight: 600; color: var(--ink); }
.sw button.plus { border: 1.5px dashed var(--soft); background: #FFFFFF; font-size: 18px; position: relative; overflow: hidden; }
.sw button.plus input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.custom-bar { display: flex; align-items: center; gap: 8px; font-size: 13px; background: #FFF4E5; border-radius: 10px; padding: 8px 12px; }
.custom-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: #D9822B; }
input[type=range] { width: 100%; accent-color: var(--ink); }
.cmpgrid { display: grid; gap: 16px; }
.cmpcard { display: flex; flex-direction: column; gap: 10px; background: var(--panel); border-radius: 16px; padding: 14px; border: 2px solid transparent; }
.cmpcard.on { border-color: var(--ink); }
.lane { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.lane .thumb { display: block; }
.lane canvas.gfx { width: 100%; height: auto; max-height: none !important; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(26,26,26,.5); display: flex; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow: auto; }
.modal > section { width: 100%; max-width: 1180px; background: #FFFFFF; border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.25); padding: 26px 30px 30px; }
.modal.small > section { max-width: 620px; }
.about p { font-size: 15px; line-height: 1.55; margin: 0 0 12px; }
.about ol { font-size: 15px; }
.about .big { font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; margin: 14px 0 14px; }
.about h3 { font-size: 15px; margin: 18px 0 6px; }
.about ol { margin: 0 0 8px; padding-left: 22px; line-height: 1.6; }
.modal.big { align-items: center; padding: 20px; }
.modal.big > section { width: auto; max-width: none; display: flex; flex-direction: column; gap: 12px; padding: 18px 22px 20px; }
.bigrow { display: flex; align-items: center; gap: 16px; }
.bigrow canvas.gfx { border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.navbtn { width: 48px; min-height: 48px; border-radius: 50%; font-size: 20px; flex: none; }
.optgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 18px; margin: 14px 0 0; padding: 0; list-style: none; }
.optgroup { margin: 26px 0 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.optag { display: inline-block; vertical-align: middle; margin-left: 4px; font-size: 11px; font-weight: 600; color: var(--acc); border: 1px solid var(--acc); border-radius: 999px; padding: 1px 8px; }
.optgrid h3 { margin: 8px 0 0; font-size: 14px; }
.optpick { display: block; width: 100%; text-align: left; background: transparent; border: 2px solid transparent; border-radius: 12px; padding: 6px; margin: -8px; width: calc(100% + 16px); cursor: pointer; font: inherit; color: inherit; }
.optpick:hover { border-color: var(--line); background: var(--panel); }
.optpick:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.optpick[aria-pressed="true"] { border-color: var(--acc); }
.photopos { display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.settools { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; }
.wordnote { margin: 6px 0 0; min-height: 1em; }
.sztag { display: block; font-style: normal; font-size: 11px; font-weight: 600; color: var(--soft); margin-top: 2px; }
.optcur { display: inline-block; vertical-align: middle; margin-left: 4px; font-size: 11px; font-weight: 600; color: #FFFFFF; background: var(--acc); border-radius: 999px; padding: 2px 8px; }
.soon { aspect-ratio: 4 / 5; border-radius: 10px; background: repeating-linear-gradient(45deg, #EEEEEA 0 10px, #F4F4F1 10px 20px); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--soft); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #FFFFFF; padding: 12px 18px; border-radius: 12px; font-size: 14px; z-index: 60; }
.smallnote { display: none; margin: 12px 16px 0; padding: 12px 14px; border-radius: 12px; background: #FFF4E5; border: 1px solid #F0D4A8; font-size: 14px; line-height: 1.45; color: #3B2A20; }
@media (max-width: 760px) { .smallnote { display: block; } }
.fbcall { margin: 0 0 18px; padding: 16px 18px; border-radius: 14px; background: #F3EEE5; border: 1px solid #E3D8C6; }
.fbcall h3 { margin: 0 0 4px !important; font-size: 17px; }
.fbcall p { margin: 0 0 12px; }
.fbcall .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (max-width: 1100px) { .stepcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .optgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .editor { flex: 1 1 100%; } }
/* medium windows have a two-row header, so sticky panels start lower */
@media (min-width: 1101px) and (max-width: 1259px) { .col-side, .xpanel, .editor, .pvpane, .edcol { top: 134px; } .col-side, .editor, .pvpane, .edcol { max-height: calc(100vh - 150px); } }

/* Phone page: logo centered at the top. */
body.phonemode header.top { display: flex !important; justify-content: center; }
body.phonemode header.top > .brandwrap { justify-self: center; }
/* Phone page: a fanned hand of five example graphics. */
.phfan { position: relative; width: 100%; max-width: 360px; height: 222px; margin: 0 auto 4px; }
.phfan canvas { position: absolute; left: 50%; top: 4px; width: 140px !important; height: auto; border-radius: 8px; box-shadow: 0 8px 22px rgba(0,0,0,.16); transform-origin: 50% 120%;
  transform: translateX(calc(-50% + var(--i) * 36px)) rotate(calc(var(--i) * 6deg)) translateY(calc((var(--i) * var(--i)) * 4px)); z-index: calc(10 - var(--i) * var(--i)); }
@media (max-width: 360px) { .phfan canvas { width: 130px !important; } .phfan { height: 220px; } }
/* Export: a very light stroke so white or light graphics stand apart from the page. */
.xcard .thumb canvas.gfx { box-shadow: 0 0 0 1px #E3E3DE; }
/* Home: tighter four-step panel. */
.pathlist li { padding-bottom: 12px; }
.pathlist .pvis { height: 80px !important; }
.pathlist li:first-child .pvin { transform: scale(.6); }
.pathlist li:not(:first-child) .pvin { width: 150px; }
.pathlist li:not(:last-child)::after { top: 40px; bottom: 2px; }
/* Style: briefly mark the graphic you just came back from. */
.thumb.flash canvas { box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 5px var(--acc); transition: box-shadow .3s; }
/* Uploads: hover to see a photo full size. */
.upimg { position: relative; cursor: zoom-in; }
.upzoom { position: absolute; left: 6px; bottom: 6px; width: 30px; height: 30px; min-height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.18); opacity: 0; transition: opacity .15s; cursor: pointer; }
.upcard:hover .upzoom, .upzoom:focus-visible { opacity: 1; }
@media (hover: none) { .upzoom { opacity: 1; } }
.upbig { max-width: calc(100vw - 220px); max-height: calc(100vh - 180px); border-radius: 10px; display: block; background: #222; }
.infolist { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 14px; min-width: 0; }
.infolist dt { color: var(--soft); white-space: nowrap; }
.infolist dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
/* Admin */
.adm .libtabs { margin-top: 18px; }
.admwrap { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
.admsec { background: var(--panel, #F4F4F1); border-radius: 16px; padding: 20px 22px; }
.admsec .libh2 { margin: 0 0 12px; }
.admgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.admstat { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.admstat b { font-size: 28px; line-height: 1.1; }
.admchg { font-size: 18px; } .admchg.up { color: #2E7D4F; } .admchg.down { color: #C0392B; }
.admcols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admbar { display: grid; grid-template-columns: 110px 1fr 90px; gap: 12px; align-items: center; margin: 8px 0; font-size: 14px; }
.admtrack { height: 12px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.admtrack div { height: 100%; background: var(--acc); border-radius: 999px; }
.admsrc { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.admsrc li span { display: inline-block; min-width: 160px; }
.admtable { overflow: auto; margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; max-height: calc(100vh - 300px); }
.admtable table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.admtable th { position: sticky; top: 0; background: #F4F4F1; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); padding: 0; }
.admsort { border: 0; background: transparent; font: inherit; font-weight: 700; padding: 10px 12px; cursor: pointer; white-space: nowrap; }
.admtable td { padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admtable tbody tr { cursor: pointer; } .admtable tbody tr:hover { background: #F7F7F3; }
.admlabel { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #EAEAE5; }
.admlabel.founder { background: var(--acc); color: #FFFFFF; }
.admnote { color: var(--soft); }
.uptag.on { background: var(--acc); color: #FFFFFF; border-color: var(--acc); }
@media (max-width: 1100px) { .admgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .admcols { grid-template-columns: 1fr; } }
.admpick { display: flex; flex-direction: column; align-items: flex-end; }
.admdates input[type=date] { min-height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: inherit; font-size: 14px; background: #FFFFFF; }
.admdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); margin-left: 6px; vertical-align: middle; }
/* Beta tag is a button now: opens the beta survey. */
button.beta { border: 0; background: transparent; font-family: inherit; cursor: pointer; padding: 4px 2px; border-radius: 6px; min-height: 0; }
button.beta:hover, button.beta:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
/* Footer */
.sitefoot { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footlinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 13.5px; }
.footlinks a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footlinks a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Changelog and legal pages */
.legal { max-width: 760px; }
.chday { display: flex; flex-direction: column; gap: 10px; }
.chday .libh2 { margin: 10px 0 0; }
.chitem { display: grid; grid-template-columns: 86px 1fr; gap: 14px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #FFFFFF; }
.chitem h3 { margin: 0; font-size: 16px; }
.chitem p { margin: 4px 0 0; line-height: 1.5; }
.chwhy { color: var(--soft); }
.chtag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: #EAEAE5; color: var(--ink); text-align: center; }
.chtag.new { background: var(--acc); color: #FFFFFF; } .chtag.improved { background: #DCEBDF; color: #1F5A33; } .chtag.fixed { background: #F6E3C8; color: #7A4A0B; }
.chtag.bug { background: #F6D6D0; color: #8A2A1B; } .chtag.idea { background: #E6E0F7; color: #3E2C7A; } .chtag.help { background: #DCEBF7; color: #1D4A7A; }
.legalsec h2 { font-size: 20px; margin: 8px 0 6px; }
.legalsec p, .legalsec li { line-height: 1.6; font-size: 15px; }
.legalsec ul { padding-left: 20px; margin: 6px 0; display: flex; flex-direction: column; gap: 6px; }
/* Beta survey */
.svq { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.svl { margin: 0; font-size: 15px; }
.svq textarea { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; resize: vertical; }
/* Admin feedback */
.fbitem { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 10px; }
.fbitem.done { opacity: .6; }
@media (max-width: 640px) { .chitem { grid-template-columns: 1fr; } }
/* sharing */
.xshare { display: flex; flex-direction: column; gap: 8px; }
.shlink { display: flex; gap: 8px; }
.shlink input { flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 14px; background: #F7F7F4; }
.shstale { margin-top: 14px; background: #FFF6E0; border: 1px solid #F0DFA8; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.linkbtn.danger { color: #B3261E; }
.shbusy { display: flex; align-items: center; gap: 12px; margin: 18px 0 10px; font-weight: 600; }
.shspin { width: 20px; height: 20px; border-radius: 50%; border: 3px solid #E3E3DE; border-top-color: var(--acc, #2F5BD3); animation: shspin .8s linear infinite; }
@keyframes shspin { to { transform: rotate(360deg); } }
.pg.shpg { max-width: none; }
.shhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.shhead h1 { margin: 0; }
.shhead .small { margin: 6px 0 0; }
.shgrid { display: grid; gap: 18px; }
.shimg { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px #E3E3DE; display: block; }
.shimg img { width: 100%; height: auto; display: block; background: #F0F0EC; }
.shbig { max-height: calc(100vh - 140px); max-width: calc(100vw - 160px); border-radius: 8px; display: block; }
.shcta { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: #F2F2EE; border-radius: 16px; padding: 22px 24px; }
.shcta div { display: flex; flex-direction: column; gap: 4px; }
.shcta span { font-size: 14px; color: var(--soft, #5F5F5A); }
.shgone h1 { margin: 0; }
.shgone p { margin: 0; }
@media (max-width: 700px) {
  .shbig { max-width: calc(100vw - 32px); max-height: calc(100vh - 160px); }
  .xlight .shbig ~ .xnav, .xlight [data-shstep] { display: none; }
  .shcta .btn, .shacts, .shacts .btn { width: 100%; }
}
/* comments on shared sets */
.shmode { display: flex; flex-direction: column; gap: 6px; }
.shmode .seg { align-self: flex-start; }
.shcell { display: flex; flex-direction: column; gap: 8px; }
.shcbtn { align-self: flex-start; border: 1px solid var(--line); background: #FFFFFF; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; }
.shcbtn:hover { border-color: var(--ink); }
.shhint { margin: -6px 0 0; }
.shappr { margin: 10px 0 0; color: var(--ok); font-weight: 600; font-size: 14px; line-height: 1.6; }
.shappr.own { background: #EAF5EE; border-radius: 12px; padding: 10px 14px; margin: 14px 0 0; display: flex; flex-direction: column; gap: 4px; }
.shappr.own .small { font-weight: 400; }
.shfullsec { background: transparent; box-shadow: none; max-width: none; padding: 0; display: flex; align-items: center; gap: 22px; }
.shstage { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.shfullsec.withcom .shbig { max-width: calc(100vw - 600px); }
.shpanel { background: #FFFFFF; border-radius: 16px; padding: 18px; width: 360px; max-height: calc(100vh - 80px); display: flex; flex-direction: column; gap: 12px; }
.shpanel h2 { margin: 0; font-size: 18px; }
.shcoms { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; min-height: 40px; }
.shcom { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; background: #FFFFFF; }
.shcom.done { opacity: .6; }
.shcom p { margin: 0; font-size: 14px; line-height: 1.5; white-space: normal; }
.shcomh { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.shform { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.shwho { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shwho input, .shform textarea { min-height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 14px; width: 100%; }
.shwho input[type=email] { grid-column: 1 / -1; }
.shform textarea { resize: vertical; }
.shinbox { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 220px); overflow-y: auto; }
.shgrp { display: flex; flex-direction: column; gap: 8px; }
.shgrph { display: flex; align-items: center; gap: 10px; }
.shgrph img { width: 44px; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.libshare { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.lbadge { font-size: 11.5px; font-weight: 600; background: #F0F0EC; color: var(--soft); border-radius: 999px; padding: 3px 9px; border: 0; }
.lbadge.hot { background: var(--acc); color: #FFFFFF; cursor: pointer; }
.lbadge.ok { background: #EAF5EE; color: var(--ok); }
@media (max-width: 900px) {
  .shfullsec { flex-direction: column; overflow-y: auto; max-height: 100vh; padding: 16px 0; }
  .shfullsec.withcom .shbig { max-width: calc(100vw - 32px); max-height: 60vh; }
  .shpanel { width: calc(100vw - 32px); max-height: none; }
  .shfullm { align-items: flex-start !important; overflow-y: auto; }
}
.modal section.shfullsec { background: transparent; box-shadow: none; max-width: none; padding: 0; }
/* editing together */
#lockbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 60; background: #1A1A1A; color: #FFFFFF; border-radius: 999px; padding: 10px 18px; font-size: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.18); max-width: calc(100vw - 40px); }
body.setlocked .edcol, body.setlocked .pvpane, body.setlocked .col-side, body.setlocked .xgrid, body.setlocked .setbar { pointer-events: none; opacity: .55; }
body.setlocked #undo, body.setlocked #redo { pointer-events: none; opacity: .3; }
.edlist { display: flex; flex-direction: column; gap: 8px; }
.edrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.edrow div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.edrow b { overflow-wrap: anywhere; }
/* review decisions */
.shdecs { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.shdec { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.shdec > div { display: flex; flex-direction: column; gap: 2px; }
.shdec p { margin: 4px 0 0; line-height: 1.5; }
.shdec.ok { background: #EAF5EE; } .shdec.ok .shdeci { background: var(--ok); }
.shdec.warn { background: #FFF6E0; } .shdec.warn .shdeci { background: #B7791F; }
.shdec.bad { background: #FBE9E7; } .shdec.bad .shdeci { background: #B3261E; }
.shdec.old { opacity: .55; }
.shdeci { flex: none; width: 22px; height: 22px; border-radius: 50%; color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.decpick { display: flex; flex-direction: column; gap: 8px; }
.decopt { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: #FFFFFF; border-radius: 12px; padding: 12px 14px; font-weight: 600; text-align: left; }
.decopt .shdeci { background: #B9B9B4; }
.decopt[aria-checked=true] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.decopt.ok[aria-checked=true] .shdeci { background: var(--ok); } .decopt.warn[aria-checked=true] .shdeci { background: #B7791F; } .decopt.bad[aria-checked=true] .shdeci { background: #B3261E; }
.decnote { width: 100%; margin-top: 12px; min-height: 70px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; resize: vertical; }
.lbadge.bad { background: #FBE9E7; color: #B3261E; }
button.libname { display: block; border: 0; background: none; padding: 0; text-align: left; font: inherit; font-weight: 600; color: inherit; cursor: pointer; width: 100%; }
button.libname:hover { text-decoration: underline; text-underline-offset: 3px; }
.libthumbs { cursor: pointer; }
.shsync { margin: 10px 0 0; display: flex; align-items: center; gap: 8px; }
.shspin.sm { width: 14px; height: 14px; border-width: 2px; }
/* admin usage */
.admmeters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admmeter { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.admmeter .admtrack { height: 10px; border-radius: 999px; background: #ECECE7; overflow: hidden; }
.admmeter .admtrack div { height: 100%; border-radius: 999px; }
.admmeter.ok .admtrack div { background: var(--ok); } .admmeter.warn .admtrack div { background: #D69E2E; } .admmeter.bad .admtrack div { background: #B3261E; }
.admflag { font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 4px 12px; }
.admflag.ok { background: #EAF5EE; color: var(--ok); } .admflag.warn { background: #FFF6E0; color: #8A5A00; } .admflag.bad { background: #FBE9E7; color: #B3261E; }
@media (max-width: 900px) { .admmeters { grid-template-columns: 1fr; } }
/* view as */
#viewasbar { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: #8A1C12; color: #FFFFFF; display: flex; justify-content: center; align-items: center; gap: 16px; padding: 8px 16px; font-size: 14px; }
#viewasbar button { background: #FFFFFF; color: #8A1C12; border: 0; border-radius: 999px; padding: 5px 14px; font: inherit; font-weight: 600; cursor: pointer; }
body.viewas { padding-top: 40px; }
.admviewas { display: flex; gap: 12px; align-items: center; margin: 16px 0 0; padding: 12px 14px; background: #F4F4F1; border-radius: 12px; }
.admviewas .small { line-height: 1.4; }
.shtip { background: #EEF3FD; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.shcbtn:disabled { opacity: .5; }
.plansoon { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 900px; }
.plansoonc { border: 1px dashed var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 900px) { .plansoon { grid-template-columns: 1fr; } }
/* welcome + errors */
ol.welcome { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; line-height: 1.5; }
.admerr { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; }
.admerr summary { cursor: pointer; padding: 12px 14px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.admerr summary b { flex: 1 1 300px; overflow-wrap: anywhere; }
.admerrn { font-weight: 700; color: #B3261E; min-width: 36px; }
.admerrb { padding: 0 14px 14px; }
.admerrb pre { background: #F4F4F1; border-radius: 8px; padding: 10px; font-size: 12px; overflow: auto; max-height: 220px; white-space: pre-wrap; }
/* photo upload status */
.phstat { position: fixed; left: 20px; bottom: 20px; z-index: 90; display: flex; gap: 12px; align-items: center; background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: 0 8px 28px rgba(0,0,0,.12); max-width: 360px; font-size: 14px; }
.phstat div { display: flex; flex-direction: column; gap: 2px; }
.phstat span:not(.shspin):not(.phok) { color: var(--soft, #5F5F5A); font-size: 13px; line-height: 1.4; }
.phstat.warn { border-color: #F0DFA8; background: #FFFBEF; }
.phstat.ok { border-color: #CFE7D7; }
.phok { width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: none; }
@media (max-width: 700px) { .phstat { left: 12px; right: 12px; bottom: 12px; max-width: none; } }
