/* VB CV — the service interface. Hand written: no build step, one request. */
:root{
  --green:#0C9152; --green-d:#013C22; --green-50:#E6F2EC; --green-100:#C6E0D2;
  --ink:#10201A; --muted:#5B7169; --muted2:#8AA096;
  --line:#DCE8E2; --line-soft:#EDF4F0; --bg:#F6FAF8; --card:#FFFFFF;
  --danger:#B42318; --danger-bg:#FEF3F2; --danger-line:#FECDCA;
  --ok:#0C9152; --ok-bg:#E9F6EF;
  --radius:14px; --shadow:0 10px 30px rgba(2,32,20,.07); --shadow-sm:0 3px 12px rgba(2,32,20,.05);
  --font:'Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font);font-size:15px;line-height:1.55;color:var(--ink);background:var(--bg);
  -webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
h1,h2,h3{letter-spacing:-.015em;margin:0}
code.mono,.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.88em}
.wrap{max-width:1060px;margin:0 auto;padding:0 20px}
.muted{color:var(--muted)}
.small{font-size:13px}
.center{text-align:center}
.inline{display:inline}
.skip{position:absolute;left:-9999px}
.skip:focus{left:12px;top:12px;background:#fff;padding:10px 14px;border-radius:10px;z-index:20}

/* ───────── Top bar ───────── */
.topbar{background:rgba(255,255,255,.86);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);
  position:sticky;top:0;z-index:10}
.topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;height:62px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800}
/* One mark for the tab and the header: the box, gradient and glyph all live in
   assets/favicon.svg, so they cannot drift apart. */
.brand-mark{width:32px;height:32px;display:block;border-radius:9px;box-shadow:0 4px 12px rgba(12,145,82,.28)}
.brand-name{font-size:15px}
.topnav{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.navlink{font-size:14px;font-weight:600;color:var(--muted);transition:color .15s}
.navlink:hover{color:var(--ink)}
.navlink-btn{background:none;border:0;font:inherit;font-weight:600;color:var(--muted);cursor:pointer;padding:0}
.langs{display:flex;gap:2px;border:1px solid var(--line);border-radius:99px;padding:2px;background:#fff}
.lang{font-size:11px;font-weight:800;padding:3px 8px;border-radius:99px;color:var(--muted2)}
.lang-on{background:var(--green);color:#fff}

.banner{background:#FFF7E6;border-bottom:1px solid #F5E2B8;font-size:13.5px}
.banner-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;flex-wrap:wrap}

/* ───────── Buttons ───────── */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 16px;border-radius:11px;
  border:1px solid var(--line);background:#fff;color:var(--ink);font:inherit;font-size:14px;font-weight:700;
  cursor:pointer;transition:.15s;text-align:center}
.btn:hover{border-color:var(--green-100);box-shadow:var(--shadow-sm);transform:translateY(-1px)}
.btn-primary{background:linear-gradient(135deg,var(--green),var(--green-d));border-color:transparent;color:#fff}
.btn-primary:hover{filter:brightness(1.06)}
.btn-sm{padding:7px 12px;font-size:13px;border-radius:9px}
.btn-block{width:100%}
.btn-danger{color:var(--danger);border-color:var(--danger-line);background:var(--danger-bg)}
.btn-danger:hover{background:#fee4e2}
.link-underline{text-decoration:underline;font-weight:700;color:var(--green)}

/* ───────── Hero ───────── */
.hero{padding:56px 0 24px;background:linear-gradient(180deg,var(--green-50) 0%,var(--bg) 70%)}
.hero-inner{display:grid;grid-template-columns:1.15fr .85fr;gap:40px;align-items:center}
.hero h1{font-size:clamp(28px,4.2vw,44px);font-weight:800;line-height:1.12}
.lead{font-size:17px;color:var(--muted);margin:14px 0 26px;max-width:34em}
.claim{display:flex;gap:10px;flex-wrap:wrap}
.claim-field{display:flex;align-items:center;background:#fff;border:1px solid var(--line);border-radius:12px;
  padding:0 4px 0 12px;flex:1;min-width:260px;box-shadow:var(--shadow-sm)}
.claim-prefix{color:var(--muted2);font-size:14px;white-space:nowrap}
.claim-field input{border:0;outline:0;font:inherit;font-size:15px;padding:12px 6px;width:100%;background:none}
.claim-hint{margin:10px 0}

.hero-demo{display:flex;justify-content:center}
.phone{width:230px;border-radius:30px;padding:12px;background:#0d1b14;box-shadow:0 24px 60px rgba(2,32,20,.22)}
.phone-screen{background:linear-gradient(180deg,#E6F2EC,#fff);border-radius:22px;padding:22px 16px;
  display:flex;flex-direction:column;align-items:center;gap:9px}
.demo-avatar{width:52px;height:52px;border-radius:50%;background:var(--green);color:#fff;display:grid;
  place-items:center;font-weight:800;font-size:16px}
.demo-name{font-weight:800;font-size:14px}
.demo-sub{font-size:11px;color:var(--muted);margin-bottom:6px}
.demo-btn{display:block;width:100%;height:34px;border-radius:11px;background:#fff;border:1px solid var(--line)}
.demo-btn-primary{background:var(--green);border-color:var(--green)}

/* ───────── Sections ───────── */
.section{padding:40px 0}
.section.narrow{padding:48px 0}
.section-title{font-size:22px;font-weight:800;margin-bottom:20px}
.steps{list-style:none;counter-reset:s;padding:0;margin:0 0 34px;display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.steps li{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);
  border-radius:var(--radius);padding:14px 16px;font-weight:600;box-shadow:var(--shadow-sm)}
.step-num{width:26px;height:26px;flex-shrink:0;border-radius:50%;background:var(--green-50);color:var(--green-d);
  display:grid;place-items:center;font-weight:800;font-size:13px}
.features{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}
.feature{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow-sm)}
.feature h3{font-size:15px;font-weight:800;margin-bottom:7px}
.feature p{margin:0;color:var(--muted);font-size:14px}
.cta-strip{margin-top:34px;background:linear-gradient(135deg,var(--green-d),var(--green));color:#fff;
  border-radius:18px;padding:26px;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.cta-strip p{margin:0;font-weight:700}
.cta-strip code{background:rgba(255,255,255,.16);padding:2px 8px;border-radius:7px}
.cta-strip .btn-primary{background:#fff;color:var(--green-d)}

/* ───────── Cards & forms ───────── */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:20px;
  box-shadow:var(--shadow-sm);margin-bottom:18px}
.card-title{font-size:15px;font-weight:800;margin-bottom:12px}
.card-form{max-width:440px;margin-left:auto;margin-right:auto}
.card-form.wide{max-width:640px}
/* A card that stands alone under a full-width grid: centring it would leave the
   column ragged, so the card fills the row and the form inside it stays narrow
   enough to read. */
.card-form.card-full{max-width:none;margin-left:0;margin-right:0}
.card-full > .stack{max-width:520px}
.card-danger{border-color:var(--danger-line);background:var(--danger-bg)}
/* An empty state is a statement, not an unfilled container: centred and quiet, it
   reads as "nothing here" instead of as a box whose contents failed to load. */
.card-empty{padding:18px;text-align:center;color:var(--muted);font-size:14px}
.form-title{font-size:21px;font-weight:800;margin-bottom:14px}
.form-alt{margin:16px 0 0;font-size:14px;color:var(--muted);text-align:center}
.form-alt a,.field a,.prose a,.muted a{color:var(--green);font-weight:700}
.stack{display:flex;flex-direction:column;gap:14px}
.field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700}
.field.grow{flex:1}
.field input,.field select,.field textarea,.prefixed input{
  font:inherit;font-size:15px;font-weight:500;padding:11px 12px;border:1px solid var(--line);
  border-radius:11px;background:#fff;color:var(--ink);width:100%}
.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid var(--green-100);border-color:var(--green)}
.field input[type=color]{padding:4px;height:44px}
.field input[type=file]{border-style:dashed;background:var(--line-soft);font-weight:500}
.field small{font-weight:500}
.prefixed{display:flex;align-items:center;border:1px solid var(--line);border-radius:11px;background:#fff;
  padding-left:12px;overflow:hidden}
.prefixed .prefix{color:var(--muted2);font-size:13.5px;white-space:nowrap;font-weight:500}
.prefixed input{border:0;border-radius:0}
.prefixed input:focus{outline:0}
.prefixed:focus-within{outline:2px solid var(--green-100);border-color:var(--green)}
.check{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:600}
.check input{width:17px;height:17px;accent-color:var(--green)}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.grid-cards{align-items:start}
.form-actions{display:flex;gap:10px;align-items:center;margin-top:6px}
.danger-row{margin-top:14px;text-align:center}
.avatar-row{display:flex;align-items:flex-start;gap:16px}
.avatar-preview{width:72px;height:72px;border-radius:50%;object-fit:cover;flex-shrink:0;
  border:2px solid var(--line);background:var(--line-soft)}
.avatar-initials{display:grid;place-items:center;background:var(--green);color:#fff;font-weight:800;font-size:22px;border:0}

.flash{border-radius:11px;padding:11px 14px;font-size:14px;font-weight:600;margin:0 0 14px}
.flash-ok{background:var(--ok-bg);color:var(--green-d);border:1px solid var(--green-100)}
.flash-error{background:var(--danger-bg);color:var(--danger);border:1px solid var(--danger-line)}
/* Neither success nor failure: "log in to continue" is an explanation. */
.flash-info{background:var(--line-soft);color:var(--muted);border:1px solid var(--line)}

/* ───────── Dashboard ───────── */
.dash-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.dash-title{font-size:22px;font-weight:800}
.dash-url{margin:3px 0 0;font-size:14px}
.dash-url a{color:var(--green);font-weight:700}
.dash-actions{display:flex;gap:8px;flex-wrap:wrap}
/* Wrapping rather than scrolling: with five tabs the last one sat off the right edge
   in Ukrainian, and navigation you have to discover by swiping is navigation people
   do not find. Two rows cost 34 px and hide nothing. */
.tabs{display:flex;flex-wrap:wrap;gap:4px;border-bottom:1px solid var(--line);margin-bottom:20px}
.tab{padding:10px 14px;font-size:14px;font-weight:700;color:var(--muted);border-bottom:2px solid transparent;
  white-space:nowrap}
.tab:hover{color:var(--ink)}
.tab-on{color:var(--green-d);border-bottom-color:var(--green)}
.crumbs{margin:0 0 14px;font-size:14px}
.crumbs a{color:var(--muted);font-weight:700}
.panel-head-row{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:14px}

.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px;margin-bottom:18px}
.kpi-card{display:flex;flex-direction:column;gap:4px;margin:0}
.kpi-label{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.kpi{font-size:26px;font-weight:800;line-height:1.1}

.table-wrap{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow-x:auto;
  box-shadow:var(--shadow-sm);margin-bottom:16px}
.table{width:100%;border-collapse:collapse;font-size:14px}
.table th{text-align:left;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;
  color:var(--muted);padding:11px 14px;border-bottom:1px solid var(--line);white-space:nowrap}
.table td{padding:12px 14px;border-bottom:1px solid var(--line-soft);vertical-align:middle}
.table tr:last-child td{border-bottom:0}
.col-narrow{width:1%;white-space:nowrap}
.col-wrap{word-break:break-all;max-width:280px}
/* Item names and target URLs are user content too. A table column cannot shrink
   below the longest unbreakable string in it, so one long label made the whole
   table scroll sideways -- and a horizontally scrolled table hides its right-hand
   columns with no hint that they exist. */
.table td{overflow-wrap:anywhere}
/* ...but `anywhere` also lowers the element's min-content width to one character,
   and that is inherited. In a `width:1%` column the browser then squeezed the quota
   button to a single letter and set its label vertically: З/а/д/а/т/и, one per line.
   Interface labels and controls are never user content, so they opt back out: a
   label may wrap between words, never inside one. Pills are in the list because
   the same squeeze turned the status pill into "Акт/ивн/а" on a phone. */
.table td .btn,.table td button,.table td input,.table td select,
.table td .pill,.table td .badge{overflow-wrap:normal;word-break:normal}
.item-link{overflow-wrap:anywhere}
.stat-url{word-break:break-all}
.col-actions{white-space:nowrap;text-align:right}
.col-actions .btn{margin-left:6px}
.row-off{opacity:.5}
.empty{text-align:center;color:var(--muted);padding:26px 14px}
.input-order{width:72px;padding:7px 9px;border:1px solid var(--line);border-radius:9px;font:inherit;font-size:14px}
.pill{display:inline-block;background:var(--line-soft);border:1px solid var(--line);border-radius:99px;
  padding:1px 8px;font-size:11px;font-weight:700;color:var(--muted)}
.pill-accent{background:var(--green-50);border-color:var(--green-100);color:var(--green-d)}
.pill-danger{background:var(--danger-bg);border-color:var(--danger-line);color:var(--danger)}

/* The switch is 40x22 because that is what a switch looks like. A finger needs about
   44, so the label carries an invisible pad around it: the visual stays exactly as
   drawn and the thing you can hit is half again as big. */
.switch{position:relative;display:inline-block;width:40px;height:22px;cursor:pointer}
.switch::before{content:'';position:absolute;inset:-11px -6px}
.switch input{position:absolute;opacity:0;width:0;height:0}
.switch span{position:absolute;inset:0;border-radius:99px;background:var(--line);transition:.18s}
.switch span::after{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;
  background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:.18s}
.switch input:checked + span{background:var(--green)}
.switch input:checked + span::after{transform:translateX(18px)}
.switch input:focus-visible + span{outline:2px solid var(--green);outline-offset:2px}

.chart{width:100%;height:110px;display:block}
.chart .bar{fill:var(--green)}
.chart .bar-empty{fill:var(--line)}
.chart-axis{display:flex;justify-content:space-between;font-size:11px;color:var(--muted2);margin-top:6px}

.timeline{list-style:none;padding:0;margin:0;font-size:13px}
.timeline li{display:flex;gap:10px;padding:7px 0;border-bottom:1px solid var(--line-soft);flex-wrap:wrap}
.timeline li:last-child{border-bottom:0}
.tl-time{color:var(--muted2);font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px}
.tl-main{flex:1;min-width:150px}
.tl-actor{color:var(--muted)}

/* ───────── Prose (legal) ───────── */
.prose{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:26px;box-shadow:var(--shadow-sm)}
.prose h1{font-size:24px;font-weight:800;margin-bottom:6px}
.prose h2{font-size:16px;font-weight:800;margin:22px 0 6px}
.prose p{margin:0;color:var(--muted)}

/* ───────── Footer ───────── */
.footer{border-top:1px solid var(--line);background:#fff;margin-top:40px}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  padding:20px 0;font-size:13px;color:var(--muted)}
.footer-links{display:flex;gap:16px}
.footer a{font-weight:700}
.footer a:hover{color:var(--green)}

@media (max-width:820px){
  .hero-inner{grid-template-columns:1fr}
  .hero-demo{display:none}
  .grid-2{grid-template-columns:1fr}
  .topbar-inner{height:auto;padding:10px 0;flex-wrap:wrap}
}
@media (prefers-reduced-motion:reduce){
  .btn:hover{transform:none}
  *{transition:none!important}
}

/* ───────── Multilingual page editor ───────── */
.langset{border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px;margin:0}
.langset legend{font-size:13px;font-weight:800;padding:0 6px}
.lang-checks{display:flex;gap:16px;flex-wrap:wrap;margin:8px 0 12px}
.sec-label{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;
  color:var(--muted);margin:18px 0 -4px}
.langblock{border:1px solid var(--line);border-left:3px solid var(--green);border-radius:var(--radius);
  padding:14px 16px;display:flex;flex-direction:column;gap:12px;background:#fff}
.langblock-off{border-left-color:var(--line);opacity:.55}
.langblock-head{display:flex;align-items:center;gap:8px}
.pill-warn{background:#FFF7E6;border-color:#F0DCA8;color:#8A6414;cursor:help}

/* ───────── Even grids ─────────
   .card-form centres itself with auto margins, which is right for a lone login box
   but wrong inside a grid: auto margins make a grid item shrink to its content and
   float in its cell, so a row of forms ends up ragged and misaligned. Inside a grid
   the card fills its column instead, and every card in a row shares the tallest
   height so the row edges line up.

   The button deliberately follows the content rather than being pushed to the
   bottom: pushing it left a hole in the middle of the shorter cards. */
.cards,.grid-2,.grid-cards{align-items:stretch}
.cards .card,.grid-2 > .card,.grid-cards > .card{margin-bottom:0;height:100%}
.grid-2 > .card-form,.grid-cards > .card-form{max-width:none;margin-left:0;margin-right:0}
.grid-cards{gap:18px}
.cards-5{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.kpi-card{display:flex;flex-direction:column;gap:2px;justify-content:flex-start}
.kpi-foot{font-size:11.5px;color:var(--muted2);font-weight:600;margin-top:2px}

/* ───────── Period switch ───────── */
.segmented{display:inline-flex;background:#fff;border:1px solid var(--line);border-radius:11px;padding:3px;gap:2px}
.segmented-item{padding:6px 13px;border-radius:8px;font-size:13px;font-weight:700;color:var(--muted);
  transition:background-color .15s,color .15s;white-space:nowrap}
.segmented-item:hover{color:var(--ink)}
.segmented-on{background:var(--green);color:#fff}
.segmented-on:hover{color:#fff}

/* ───────── Charts ───────── */
.chart-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.chart-head .card-title{margin-bottom:0}
.chart-lg{height:180px}
.chart-grid{stroke:var(--line);stroke-width:1;vector-effect:non-scaling-stroke;stroke-dasharray:3 4}
.chart-area{fill:var(--green-50)}
.chart-line{fill:none;stroke:var(--green-100);stroke-width:1.5;vector-effect:non-scaling-stroke}
.chart-bar{fill:var(--green)}
.chart-hit{fill:transparent}
.legend{display:flex;gap:14px;font-size:12px;color:var(--muted);font-weight:600}
.legend-item{display:inline-flex;align-items:center;gap:6px}
.legend-swatch{width:11px;height:11px;border-radius:3px;display:inline-block}
.legend-views{background:var(--green-50);border:1px solid var(--green-100)}
.legend-clicks{background:var(--green)}

/* ───────── Share bars in the per-item table ───────── */
.share-cell{min-width:120px}
.sharebar{width:72px;height:8px;display:inline-block;vertical-align:middle;margin-right:8px}
.sharebar-bg{fill:var(--line-soft)}
.sharebar-fill{fill:var(--green)}
.sharenum{font-size:12.5px;font-weight:700;color:var(--muted);vertical-align:middle}

/* ───────── Phones ─────────
   Three real problems, not just narrower boxes:
   1. The header row is laid out with space-between; once it is wider than the
      screen an overflowing flex line spills out on BOTH sides, so the first nav
      item ended up left of the viewport and unreachable. Stack it instead.
   2. In the links table the Edit button sat past the horizontal scroll, so on a
      phone you could not edit a link without discovering that the table scrolls.
      The columns that are only reference data (target URL, totals, last click)
      are dropped instead — they are all visible elsewhere — and the action stays
      on screen.
   3. Four tabs did not fit, so "Account" was cut mid-word. */
@media (max-width:640px){
  .topbar-inner{flex-direction:column;align-items:stretch;gap:10px;padding:12px 0;height:auto}
  .topnav{width:100%;justify-content:flex-start;gap:14px;row-gap:8px}
  .topnav .langs{margin-left:auto}
  .banner-inner{padding:10px 0}

  .col-optional{display:none}
  .table th,.table td{padding:10px 10px}
  .col-actions .btn{margin-left:0}
  .input-order{width:60px}

  .tabs{gap:0}
  .tab{padding:10px 11px;font-size:13.5px}

  /* An odd last KPI would sit alone at half width; let it take the row. */
  .cards-5 > .card:last-child:nth-child(odd){grid-column:1/-1}

  .hero{padding:32px 0 8px}
  .lead{margin:12px 0 20px}
  .section{padding:28px 0}
  .dash-head{gap:10px}
  .dash-actions{width:100%}
  .dash-actions .btn{flex:1}
  .panel-head-row{gap:10px}
  .segmented{width:100%;justify-content:space-between}
  .segmented-item{flex:1;text-align:center}
  .card{padding:16px}
  .wrap{padding:0 16px}
}
/* The item name opens the editor. On a phone that is the only affordance: the
   Edit button would not fit next to a toggle, an order box and a wrapped label,
   and a button you have to horizontally scroll to reach is not a button. */
.item-link{display:inline-block}
.item-link:hover b{color:var(--green)}
@media (max-width:640px){
  .col-actions{display:none}
  .item-link::after{content:' ›';color:var(--muted2);font-weight:800}
}

@media (max-width:640px){
  /* The statistics table: the target URL is reference data that forces the row
     wide, and a 72px share bar next to a percentage is a luxury on a phone. */
  .stat-url{display:none}
  .share-cell{min-width:0}
  .sharebar{width:38px;margin-right:6px}

  /* Tap targets. Plain text links were 22px tall; a finger needs roughly 34.
     Padding rather than font size, so the design does not change. */
  .navlink,.navlink-btn{padding:7px 0}
  .lang{padding:9px 13px}
  .item-link{padding:5px 0}
  /* The address under the title and on each page card opens the live page: both
     were 19-20px of bare text. */
  .dash-url a,.page-card .card-title a{display:inline-block;padding:7px 0}
  .page-tool > summary{padding:9px 0}
}

@media (max-width:640px){
  /* Footer links sit next to each other; give a thumb something to land on. */
  .footer-inner{gap:10px}
  .footer-links{gap:18px}
  .footer-links a{display:inline-block;padding:6px 0}
}

/* ───────── Several pages per account ───────── */

/* Visible to a screen reader, not to the eye: the inline forms in the Pages tab and
   the quota column have no room for a written label, but they still need one. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* The switcher only appears when there is more than one page, so a normal account
   never sees it and the header keeps the height it always had. */
.banner-note{display:block;font-weight:600;opacity:.85}
.page-switch{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px}
.page-chip{display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border-radius:99px;
  border:1px solid var(--line);background:#fff;font-size:13px;font-weight:700;color:var(--muted);
  transition:border-color .15s,color .15s,background .15s}
.page-chip:hover{color:var(--ink);border-color:var(--green-100)}
.page-chip-dot{width:7px;height:7px;border-radius:50%;background:var(--line);flex:0 0 auto}
.page-chip-on{background:var(--green-50);border-color:var(--green-100);color:var(--green-d)}
.page-chip-on .page-chip-dot{background:var(--green)}
.page-chip-add{font-size:15px;font-weight:800;padding:6px 14px;color:var(--muted2)}

.quota-pill{display:inline-block;padding:5px 12px;border-radius:99px;background:var(--green-50);
  border:1px solid var(--green-100);color:var(--green-d);font-size:12px;font-weight:800;white-space:nowrap}

.page-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.page-card-head .card-title{margin-bottom:4px;word-break:break-word}
.page-card-on{border-color:var(--green-100);box-shadow:0 0 0 1px var(--green-100) inset}

/* Rename and delete are folded away: they are rare, and an open delete field next to
   every page is an invitation to a mistake. */
.page-tool{margin-top:14px;border-top:1px solid var(--line-soft);padding-top:12px}
.page-tool > summary{cursor:pointer;font-size:13px;font-weight:700;color:var(--muted);
  list-style:none;padding:4px 0}
.page-tool > summary::-webkit-details-marker{display:none}
.page-tool > summary::before{content:'▸ ';color:var(--muted2)}
.page-tool[open] > summary::before{content:'▾ '}
.page-tool > summary:hover{color:var(--ink)}
.page-tool-danger > summary{color:var(--danger)}
.page-tool .stack{margin-top:10px}

.badge{display:inline-block;padding:4px 10px;border-radius:99px;font-size:11px;font-weight:800;
  text-transform:uppercase;letter-spacing:.04em;white-space:nowrap;
  background:var(--line-soft);border:1px solid var(--line);color:var(--muted)}
.badge-on,.badge-approved{background:var(--green-50);border-color:var(--green-100);color:var(--green-d)}
.badge-pending{background:#FFF7E6;border-color:#F0DCA8;color:#8A6414}
.badge-declined{background:var(--danger-bg);border-color:var(--danger-line);color:var(--danger)}

/* Somebody else's words — the request, and the answer to it. Set apart so an admin
   reading the queue can tell at a glance what was written by whom. */
.quote{margin:0 0 14px;padding:10px 14px;border-left:3px solid var(--green-100);
  background:var(--bg);border-radius:0 10px 10px 0;font-size:14px;white-space:pre-wrap;
  overflow-wrap:anywhere}

.req-card{margin-bottom:14px}
.req-card-open{border-color:#F0DCA8;background:#FFFDF7}
.req-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.req-head .card-title{margin-bottom:4px;word-break:break-word}
.req-label{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;
  color:var(--muted2);margin:0 0 6px}
.req-actions{display:flex;gap:8px;flex-wrap:wrap}

.quota-form{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}
.quota-input{width:60px;padding:7px 9px;border:1px solid var(--line);border-radius:9px;
  font:inherit;font-size:14px;background:#fff;color:var(--ink)}
.quota-input:focus{outline:2px solid var(--green-100);border-color:var(--green)}

@media (max-width:640px){
  .page-card-head,.req-head{flex-direction:column;align-items:flex-start;gap:8px}
  .req-actions > .btn{flex:1 1 auto}
  .page-chip{padding:8px 13px}
}

/* ───────── Reordering ───────── */
/* Arrows rather than a number field: the numbers were there from the start and the
   owner never found them, because a text box does not look like a way to move a row. */
.move{display:flex;gap:4px}
.move-btn{width:30px;height:30px;display:grid;place-items:center;padding:0;cursor:pointer;
  border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--muted);
  font:inherit;font-size:14px;line-height:1;transition:border-color .15s,color .15s,background .15s}
.move-btn:hover:not(:disabled){border-color:var(--green);color:var(--green-d);background:var(--green-50)}
.move-btn:disabled{opacity:.32;cursor:default}
.col-move{width:1%;white-space:nowrap}
@media (max-width:640px){
  .move-btn{width:34px;height:34px}
}


/* ───────── Tap targets, last word ─────────
   This block sits at the end of the file on purpose: several of the controls below
   are styled in sections further up, and a media query adds no specificity, so an
   earlier override would simply lose to the later base rule. */
@media (max-width:640px){
  /* The bar stacks into two rows on a phone: 129px, or 16% of the viewport, held
     open for ever behind a scrolling list. Nothing in it is needed mid-scroll, so
     it scrolls away like the rest of the page. */
  .topbar{position:static}

  .page-tool > summary{padding:10px 0}
  .check{padding:6px 0}
  .crumbs a{display:inline-block;padding:7px 0}
  .table a.item-link,.table td > a{display:inline-block;padding:6px 0}
  .table a.pill{padding:7px 11px}
}

/* ───────── VB CV: the editor ───────── */
.wrap-wide{max-width:1280px}
.editor-bar{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center;justify-content:space-between;margin:4px 0 16px}
.subnav{display:flex;flex-wrap:wrap;gap:6px}
.subnav-item{padding:6px 12px;border-radius:99px;border:1px solid var(--line);background:#fff;font-size:13px;font-weight:700;color:var(--muted)}
.subnav-item:hover{border-color:var(--green);color:var(--ink)}
.subnav-on{background:var(--green);border-color:var(--green);color:#fff}
.subnav-on:hover{color:#fff}
.editor-copy{margin-bottom:16px}
.editor{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;align-items:start}
@media (min-width:1080px){.editor{grid-template-columns:minmax(0,560px) minmax(0,1fr)}}
.editor-form{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow-sm)}
.editor-preview{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:12px;box-shadow:var(--shadow-sm)}
@media (min-width:1080px){.editor-preview{position:sticky;top:78px}}
.preview-head{display:flex;flex-direction:column;gap:2px;margin:0 4px 10px}
.preview-frame{width:100%;height:560px;border:1px solid var(--line-soft);border-radius:10px;background:#eef3f0}
@media (min-width:1080px){.preview-frame{height:calc(100vh - 210px);min-height:520px}}

.entry{border:1px solid var(--line);border-radius:12px;padding:14px;margin:0 0 14px;background:#fff;min-width:0}
.entry-off{opacity:.62;background:var(--bg)}
.entry-head{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;justify-content:space-between;margin-bottom:10px}
.entry-head b{overflow-wrap:anywhere}
.entry-tools{display:flex;gap:6px;flex-wrap:wrap}
.entry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
.entry-wide{grid-column:1/-1}
@media (max-width:520px){.entry-grid{grid-template-columns:minmax(0,1fr)}}
.entry-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;margin:0 0 8px}
.order-list{list-style:none;margin:0;padding:0}
textarea{width:100%;font:inherit;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);resize:vertical}
textarea:focus{outline:2px solid var(--green-100);border-color:var(--green)}

.tpl-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.tpl{display:flex;flex-direction:column;gap:4px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff;cursor:pointer}
.tpl input{position:absolute;opacity:0;pointer-events:none}
.tpl:hover{border-color:var(--green)}
.tpl-on{border-color:var(--green);box-shadow:0 0 0 2px var(--green-100)}
.color-input{width:64px;height:40px;padding:2px;border:1px solid var(--line);border-radius:10px;background:#fff}

/* The little CV sheet on the home page */
.sheet-demo{position:relative;width:260px;margin:0 auto;padding:46px 22px 26px;background:#fff;border:1px solid var(--line);border-radius:12px;
  box-shadow:var(--shadow);display:flex;flex-direction:column;gap:9px;transform:rotate(2deg)}
.sheet-demo-band{position:absolute;left:0;right:0;top:0;height:30px;border-radius:12px 12px 0 0;background:var(--green)}
.sheet-demo-name{height:14px;width:60%;border-radius:4px;background:var(--ink)}
.sheet-demo-h{height:8px;width:38%;border-radius:4px;background:var(--green);margin-top:8px}
.sheet-demo-line{height:7px;border-radius:4px;background:var(--line)}
.sheet-demo-short{width:68%}
