/* Layout: paper-and-ink identity shared with the board — squared-paper bands, navy ink accent, Onest UI, Caveat for handwriting. */
:root {
  --paper: #FBFCFE; --paper2: #F4F6FA; --white: #FFFFFF; --line: #E3E6EC; --line2: #D9DEE7; --hover: #F2F4F8;
  --ink: #1B1E24; --muted: #5B6372; --accent: #1F3A8A; --accent-ink: #142761; --accent-soft: #EAF0FB; --accent-line: #C9D6F0;
  --red: #D23A2F; --green: #1E8A4C; --orange: #E07A12; --danger: #C62F25; --ok-bg: #E6F6EC; --ok-ink: #14653A; --warn-bg: #FFF4DB; --warn-ink: #5C4100;
  --grid: rgba(56, 104, 186, .14);
  --ui: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  --r: 12px; --shadow: 0 6px 24px rgba(20, 30, 50, .08);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--ui); font-size: 16px; line-height: 1.55; }
[hidden] { display: none !important; }
a { color: var(--accent); }
a:hover { color: var(--accent-ink); }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #2F6BFF; outline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.kratka { background-color: var(--paper); background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px), linear-gradient(to bottom, var(--grid) 1px, transparent 1px); background-size: 24px 24px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.brand img { height: 36px; width: auto; display: block; flex: none; }
.brand .bt { display: flex; align-items: baseline; gap: 6px; }
.brand b, .brand span { line-height: 1.1; }
.brand b { font-size: 21px; font-weight: 700; color: var(--accent); letter-spacing: -.01em; }
.brand span { font-size: 14px; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a.link { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 500; }
.nav a.link:hover { background: var(--hover); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line2); border-radius: 10px; background: var(--white); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn:hover { background: #F6F8FB; color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); color: #fff; }
.btn.danger { color: var(--danger); }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* hero */
.hero { border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 64px 72px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 700; }
.hero h1 em { font-style: normal; font-family: var(--hand); font-weight: 700; color: var(--accent); font-size: 1.12em; }
.hero .lead { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 54ch; }
.hero .ctas { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.mock { background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 48px rgba(20, 30, 50, .12); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.mock-bar b { color: var(--ink); font-size: 14px; }
.mock-bar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-ink); font-weight: 600; font-size: 12px; }
.mock-bar .live i { width: 8px; height: 8px; border-radius: 50%; background: #34C759; }
.mock svg { display: block; width: 100%; height: auto; }

/* sections */
.section { padding-block: 72px; }
.section.alt { background: var(--white); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(28px, 3.6vw, 38px); }
.section .sub { margin-top: 10px; color: var(--muted); font-size: 17px; max-width: 60ch; }
.features { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; gap: 10px; }
.feature .fi { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.feature h3 { font-size: 18px; }
.feature p { color: var(--muted); font-size: 15px; }
.steps { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; list-style: none; padding: 0; }
.steps li { position: relative; padding: 22px 22px 22px 70px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 20px; top: 18px; font-family: var(--hand); font-size: 40px; font-weight: 700; line-height: 1; color: var(--accent); }
.steps h3 { font-size: 17px; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* pricing */
.plans { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 14px; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan .tag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.plan h3 { font-size: 22px; }
.plan .who { color: var(--muted); font-size: 15px; }
.plan .price { font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan .yearly { margin-top: -8px; color: var(--muted); font-size: 14px; }
.interval { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line2); border-radius: 12px; background: var(--paper2); align-self: flex-start; }
.interval button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; font-size: 14px; font-weight: 600; color: var(--muted); }
.interval button[aria-pressed=true] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(20, 30, 50, .12); }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { margin-top: 3px; color: var(--green); }
.trial { margin-top: 16px; color: var(--muted); font-size: 15px; }
.faq { margin-top: 28px; display: grid; gap: 12px; max-width: 760px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin-top: 8px; color: var(--muted); }
.foot { padding-block: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; background: var(--white); }
.foot .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.foot a { color: var(--muted); }

/* auth */
.auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.auth main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px)); }
.card { width: min(440px, 100%); padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.card h1 { font-size: 26px; }
.card .muted { color: var(--muted); font-size: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .flabel { font-size: 14px; font-weight: 600; }
.input { min-height: 46px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 10px; background: #fff; font-size: 16px; width: 100%; min-width: 0; }
.input:focus { border-color: var(--accent); }
.radios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.radio { display: flex; align-items: center; gap: 8px; padding: 12px; border: 1px solid var(--line2); border-radius: 10px; cursor: pointer; font-size: 15px; font-weight: 500; }
.radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.radio input, .check input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; flex: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.err { color: var(--danger); font-size: 14px; min-height: 1.2em; }
.okmsg { padding: 12px 14px; border-radius: 10px; background: var(--ok-bg); color: var(--ok-ink); font-size: 14px; }
.links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }

/* dashboard */
.app main { padding-block: 32px 64px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bar h1 { font-size: 30px; }
.planstrip { margin-top: 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.planstrip .pill { padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; }
.planstrip .txt { flex: 1; min-width: 200px; color: var(--muted); font-size: 15px; }
.alert { margin-top: 16px; padding: 12px 16px; border-radius: 10px; font-size: 15px; }
.alert.ok { background: var(--ok-bg); color: var(--ok-ink); }
.alert.warn { background: var(--warn-bg); color: var(--warn-ink); }
.block { margin-top: 36px; display: flex; flex-direction: column; gap: 14px; }
.block h2 { font-size: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.bcard { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .15s, border-color .15s; }
.bcard:hover { border-color: var(--accent-line); box-shadow: var(--shadow); color: inherit; }
.bcard .thumb { height: 120px; border-bottom: 1px solid var(--line); position: relative; }
.bcard .thumb .hand { position: absolute; left: 14px; bottom: 10px; font-family: var(--hand); font-size: 26px; font-weight: 700; color: var(--accent); line-height: 1; max-width: calc(100% - 28px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcard .thumb.dark .hand { color: #F4F1E8; }
.bcard .meta { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.bcard b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcard small { color: var(--muted); font-size: 13px; }
.titlebox { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.baractions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fgrid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.fcard { display: flex; align-items: center; gap: 14px; min-height: 80px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit; transition: box-shadow .15s, border-color .15s; }
.fcard:hover { border-color: var(--accent-line); box-shadow: var(--shadow); color: inherit; }
.fcard .ficon { width: 50px; height: 42px; flex: none; color: var(--accent); }
.fcard .meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fcard b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fcard small { color: var(--muted); font-size: 13px; }
.newfolder { min-height: 80px; border: 1.5px dashed var(--line2); border-radius: 14px; background: transparent; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 15px; }
.newfolder:hover { background: var(--accent-soft); border-color: var(--accent-line); }
.bitem { position: relative; display: flex; flex-direction: column; }
.bitem .bcard { flex: 1; }
.movebtn { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, .94); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.movebtn:hover { background: #fff; border-color: var(--accent-line); color: var(--accent); }
.choices { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; }
.choices .radio { justify-content: flex-start; }
select.input { padding-right: 8px; }
.newcard { min-height: 190px; border: 1.5px dashed var(--line2); border-radius: 14px; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 15px; }
.newcard:hover { background: var(--accent-soft); border-color: var(--accent-line); }
.empty { padding: 20px; border: 1px dashed var(--line2); border-radius: 12px; color: var(--muted); font-size: 15px; background: var(--white); }
.usermenu { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; line-height: 1; text-align: center; }

/* dialogs */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(20, 26, 40, .4); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal .card { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; }
.modal .card.wide { width: min(820px, 100%); }
.actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.mplans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mplans .plan { padding: 20px; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }

/* legal pages */
.doc main { padding-block: 40px 72px; }
.doc article { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.doc h1 { font-size: 34px; }
.doc h2 { font-size: 20px; margin-top: 14px; }
.doc .muted { color: var(--muted); margin-top: -6px; }
.doc ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.doc .fill { padding: 2px 6px; border-radius: 4px; background: var(--warn-bg); color: var(--warn-ink); font-weight: 600; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 40px 48px; gap: 32px; }
  .features, .plans, .steps { grid-template-columns: minmax(0, 1fr); }
  .mplans { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .nav a.link { display: none; }
  .section { padding-block: 52px; }
  .radios { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .bcard, .fcard { transition: none; } }

/* e-mail confirmation */
.mailicon { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.card .muted.small { font-size: 13px; }
.resendbox { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }

/* admin panel */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 20px; }
.stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); text-align: left; font: inherit; color: inherit; }
button.stat { cursor: pointer; }
button.stat:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.stat b { font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); }
.afilters { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.afilters .input { max-width: 420px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { min-height: 34px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 999px; background: var(--white); font-size: 14px; font-weight: 500; color: var(--ink); }
.chips button[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: #fff; }
.ulist { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); overflow: hidden; }
.urow { display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 0.9fr) 112px; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.urow:first-child { border-top: 0; }
.urow.head { background: var(--paper2, #F4F6FA); font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding-block: 9px; }
.urow.off { background: #FBF4F4; }
.uwho { display: flex; align-items: center; gap: 10px; min-width: 0; }
.uwho .avatar { flex: none; }
.uwho > div { display: flex; flex-direction: column; min-width: 0; }
.uwho b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uwho small, .ucell small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.ucell { display: flex; flex-direction: column; gap: 2px; font-size: 14px; min-width: 0; }
.ucell.act { align-items: flex-end; }
.utags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.tag { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--paper2, #F1F3F6); color: var(--muted); }
.tag.blue { background: var(--accent-soft); color: var(--accent); }
.tag.warn { background: var(--warn-bg); color: var(--warn-ink); }
.tag.red { background: #FDE8E7; color: #B42318; }
.ucell .pill { align-self: flex-start; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #F1F3F6; color: var(--muted); }
.ucell .pill.p-tutor { background: var(--accent-soft); color: var(--accent); }
.ucell .pill.p-student { background: #E8F6EE; color: #1E7A45; }
.ulist .empty { padding: 20px 16px; }
.uhead { display: flex; align-items: flex-start; gap: 14px; }
.uhead > div { flex: 1; min-width: 0; }
.uhead h1 { font-size: 22px; }
.avatar.big { width: 48px; height: 48px; font-size: 20px; flex: none; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.ubtns { display: flex; flex-wrap: wrap; gap: 8px; }
.umsg .alert { margin-top: 0; display: flex; flex-direction: column; gap: 8px; }
.ublist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; max-height: 220px; overflow-y: auto; }
.ublist li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 14px; }
.ublist li:first-child { border-top: 0; }
.ublist small { color: var(--muted); white-space: nowrap; }
/* table columns after "Osoba" are centred, header labels too */
.urow > :not(:first-child):not(:last-child) { text-align: center; }
.ucell { align-items: center; }
.ucell .pill { align-self: center; }
.ucell.act { align-items: flex-end; }
#count { margin-top: 10px; }
@media (max-width: 900px) {
  .urow > :not(:first-child):not(:last-child) { text-align: left; }
  .ucell { align-items: flex-start; }
  .ucell .pill { align-self: flex-start; }
  .urow.head { display: none; }
  .urow { grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .uwho { grid-column: 1 / -1; }
  .ucell::before { content: attr(data-l); font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
  .ucell.act { grid-column: 1 / -1; align-items: stretch; }
  .ucell.act::before { content: none; }
}

/* header: home link hides on narrow phones (the logo also leads home) */
@media (max-width: 560px) { .usermenu .homebtn { display: none; } }

/* role colours: administrator red, tutor green, student blue */
.avatar.r-admin, .dot.r-admin { background: #D23A2F; }
.avatar.r-tutor, .dot.r-tutor { background: #1E8A4C; }
.avatar.r-student, .dot.r-student { background: #2563EB; }
.n-admin { color: #D23A2F; }
.n-tutor { color: #1E8A4C; }
.n-student { color: #2563EB; }
.legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); margin: 0; }
.legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: -8px; }

/* profile pictures */
.avatar { overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.xl { width: 72px; height: 72px; font-size: 28px; }
.picrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.picbtns { display: flex; gap: 8px; flex-wrap: wrap; }

/* folder emoji */
/* folder card: drawing with the emoji on the front, small emoji button in the corner */
.fitem { position: relative; display: flex; }
.fitem .fcard { flex: 1; min-width: 0; padding-right: 52px; }
.fpic { position: relative; width: 58px; height: 49px; flex: none; display: block; }
.fpic .ficon { width: 100%; height: 100%; display: block; }
.fem { position: absolute; left: 50%; top: 63%; transform: translate(-50%, -50%); font-size: 23px; line-height: 1; pointer-events: none; }
.fembtn { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--muted); display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.fembtn:hover { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.fembtn .cur { font-size: 18px; line-height: 1; }
.emojis { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; }
.emojis button { height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font-size: 22px; line-height: 1; padding: 0; cursor: pointer; }
.emojis button.none { grid-column: span 2; font-size: 13px; font-weight: 600; color: var(--muted); }
.emojis button:hover { background: var(--hover, #F2F4F8); }
.emojis button[aria-checked=true] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.emoji-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.emoji-own { width: 84px; min-height: 40px; text-align: center; font-size: 20px; }
.card > .alert { margin-top: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.card > .alert .input { width: 100%; font-size: 14px; }

/* the round picture inside the account button keeps a little air around it */
.usermenu .avatar { width: 28px; height: 28px; font-size: 13px; margin-left: -8px; }

/* pricing: four plans, school calculator */
.plans.plans4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.plans4 .plan { padding: 22px; gap: 12px; }
.plan .phead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan .phead .tag { align-self: center; }
.plan .price span { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .pnote, .scard .pnote { margin-top: -6px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.plan .pnote.muted { font-size: 13px; }
.plan .psave { margin-top: -6px; color: var(--green); font-size: 14px; font-weight: 700; }
.plan .extra { margin-top: 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.plan ul { flex: none; }
.plan .btn { margin: 4px 0 6px; }
.compare { margin-top: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; }
.compare summary { cursor: pointer; font-weight: 600; }
.ctable { margin-top: 12px; overflow-x: auto; }
.ctable table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.ctable th, .ctable td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.ctable tbody th { text-align: left; font-weight: 500; }
.ctable thead th { font-size: 13px; color: var(--muted); }
.school .sgrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px; align-items: start; }
.scard { display: flex; flex-direction: column; gap: 14px; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.scard.calc { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.scard h2 { font-size: 22px; }
.scard .price { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.scard .price span { font-size: 16px; font-weight: 500; color: var(--muted); }
.scard ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.scard li { display: flex; gap: 10px; align-items: flex-start; }
.scard li svg { margin-top: 3px; color: var(--green); }
.calc .interval { display: flex; align-self: stretch; gap: 6px; padding: 4px; background: var(--paper2, #F1F3F6); border-radius: 12px; }
.calc .interval button { flex: 1; min-height: 40px; white-space: nowrap; border: 0; border-radius: 9px; background: transparent; font-weight: 600; font-size: 14px; color: var(--ink); }
.calc .interval button small { color: var(--green); font-weight: 700; margin-left: 4px; }
.calc .interval button[aria-pressed=true] { background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.calc .seats { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.calc .seats div:first-child { display: flex; flex-direction: column; }
.calc .seats small { color: var(--muted); font-size: 13px; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line2); background: var(--white); font-size: 20px; line-height: 1; }
.stepper input { width: 64px; height: 40px; text-align: center; font-size: 17px; font-weight: 700; border: 1px solid var(--line2); border-radius: 10px; }
.calc .lines { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.calc .line { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.calc .line span:last-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.calc .total { display: flex; flex-direction: column; align-items: flex-end; }
.calc .total small { color: var(--muted); font-size: 13px; }
.calc .total b { font-size: 30px; letter-spacing: -.02em; }
.sfields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sfields label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sfields label.wide { grid-column: 1 / -1; }
.sfields textarea { height: auto; padding: 8px 12px; resize: vertical; font: inherit; }
.btn.big { min-height: 50px; font-size: 16px; }
@media (max-width: 1080px) { .plans.plans4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .plans.plans4, .school .sgrid, .sfields { grid-template-columns: minmax(0, 1fr); } }
