/* Taipje portal: same design language as the marketing site, tuned for an app. */

@font-face { font-family: "Bricolage"; src: url("/assets/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #f1eee7;
  --paper-2: #e7e2d7;
  --sheet: #fbfaf6;
  --ink: #11110f;
  --ghost: #bdb7aa;
  --ink-2: #2b2a26;
  --muted: #6c6a62;
  --line: #d2ccbf;
  --signal: #ff4f1a;
  --wa: #25d366;
  --ok: #0f8a4b;
  --warn: #b85c00;
  --danger: #c4320a;
  --display: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.it { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.sig { color: var(--signal); }
.mono { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }

/* ---------- Top bar ---------- */
.imp-bar { background: var(--signal); color: var(--ink); font: 500 13px var(--mono); text-align: center; padding: 8px 12px; }
.imp-bar form { display: inline; }
.imp-bar button { font: inherit; background: var(--ink); color: var(--paper); border: 0; padding: 3px 10px; margin-left: 8px; cursor: pointer; }
.topbar { background: var(--paper); border-bottom: 1px solid var(--ink); position: sticky; top: 0; z-index: 20; }
.topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: baseline; gap: 0; text-decoration: none; font: 800 24px/1 var(--display); letter-spacing: -0.06em; white-space: nowrap; }
.brand i { width: 3px; height: .78em; background: var(--signal); display: inline-block; margin: 0 2px 0 1px; transform: translateY(3px); animation: blink 1.05s steps(1) infinite; }
.brand .je { color: var(--ghost); transition: color .35s var(--ease); }
.brand:hover .je { color: var(--ink); }
.brand:hover i { order: 1; }
.brand:hover small { order: 2; }
.brand small { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-left: 12px; transform: translateY(-3px); }
.area-admin .brand small { color: var(--signal); }
@keyframes blink { 50% { opacity: 0; } }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { font: 500 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: 8px 10px; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--line); }
.nav a.on { border-bottom-color: var(--signal); }
.nav .badge { display: inline-block; min-width: 18px; padding: 1px 5px; margin-left: 4px; background: var(--signal); color: var(--ink); text-align: center; font-size: 10.5px; }
.nav form { margin-left: 8px; }
.linkbtn { background: none; border: 0; padding: 8px 10px; cursor: pointer; font: 500 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.linkbtn:hover { color: var(--ink); }
@media (max-width: 860px) {
  .topbar-inner { flex-wrap: wrap; gap: 0; padding-top: 12px; }
  .nav { margin-left: 0; width: 100%; overflow-x: auto; padding: 6px 0 4px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a, .linkbtn { white-space: nowrap; }
}

/* ---------- Page ---------- */
.main { padding-top: clamp(24px, 4vw, 44px); padding-bottom: 80px; min-height: 70vh; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; padding-bottom: 18px; margin-bottom: 28px; border-bottom: 1px solid var(--ink); }
.page-head .mono { color: var(--muted); display: block; margin-bottom: 12px; }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -0.05em; }
.page-head p { margin: 10px 0 0; color: var(--ink-2); }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 40px 0 14px; }
.section-title h2 { font-size: 1.5rem; }
.foot { color: var(--muted); border-top: 1px solid var(--line); }
.foot-inner { padding-top: 28px; padding-bottom: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.invoice { padding: 14px 4px; border-bottom: 1px solid var(--line); }
.invoice-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.invoice-top .what b, .invoice-top .what span { display: block; }
.invoice .inline-form { margin-top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper); --bd: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 18px; min-height: 46px; background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font: 500 14.5px/1 var(--sans); text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--signal); transform: translateY(101%); transition: transform .4s var(--ease); }
.btn:hover { color: var(--ink); border-color: var(--signal); }
.btn:hover::before { transform: translateY(0); }
.btn .arr { font-family: var(--mono); transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-ghost { --bg: transparent; --fg: var(--ink); }
.btn-wa { --bg: var(--wa); --fg: #04210f; --bd: var(--wa); }
.btn-wa::before { background: #1db954; }
.btn-small { min-height: 34px; padding: 8px 12px; font-size: 13px; }
.btn-block { width: 100%; justify-content: space-between; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[disabled]::before { display: none; }
.btn svg { width: 19px; height: 19px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Surfaces ---------- */
.sheet { background: var(--sheet); border: 1px solid var(--ink); padding: clamp(18px, 3vw, 28px); box-shadow: 8px 8px 0 var(--ink); }
.sheet + .sheet { margin-top: 28px; }
.panel { background: var(--sheet); border: 1px solid var(--line); padding: 20px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-side { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .grid-2, .grid-3, .grid-side { grid-template-columns: 1fr; } }

.flash { border: 1px solid var(--ink); background: var(--sheet); box-shadow: inset 4px 0 0 var(--ok); padding: 12px 16px; font-weight: 500; margin-bottom: 24px; }
.error { border: 1px solid var(--danger); background: #fff; box-shadow: inset 4px 0 0 var(--danger); padding: 12px 16px; margin-bottom: 20px; color: var(--danger); font-weight: 500; }
/* Menu / products */
.item-row { grid-template-columns: 56px minmax(0, 1fr) auto; }
.thumb { width: 56px; height: 56px; background: var(--paper-2, #e9e5dc); border: 1px solid var(--line); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-row .end form { display: inline; }
.item-group .section-title { position: relative; }
.cat-tools summary { list-style: none; }
.cat-tools summary::-webkit-details-marker { display: none; }
.cat-tools-body { position: absolute; right: 0; top: 100%; z-index: 5; background: var(--sheet); border: 1px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 14px; width: min(360px, 90vw); display: grid; gap: 10px; }
.hours { display: grid; gap: 6px; }
.hours-row { display: grid; grid-template-columns: 110px 130px auto 130px auto; justify-content: start; gap: 10px; align-items: center; }
.hours-row input[type=time] { padding: 8px 10px; }
@media (max-width: 600px) {
  .item-row { grid-template-columns: 48px minmax(0, 1fr); }
  .item-row .end { grid-column: 1 / -1; }
  .hours-row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); justify-content: stretch; row-gap: 6px; padding-bottom: 8px; }
  .hours-row b, .hours-row .check { grid-column: 1 / -1; }
  .hours-row input[type=time] { width: 100%; }
}

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 18px; margin-bottom: 14px; }
.features .check { align-items: flex-start; margin-bottom: 10px; }
.field .features label.check { font: 400 15px/1.4 var(--sans); text-transform: none; letter-spacing: 0; color: var(--ink); }
.features .check input { margin-top: 3px; flex: none; }
.features .muted { font-size: 13.5px; }
.item-row s { color: var(--muted); }
.designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.design { position: relative; display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: 400 14px/1.35 var(--sans); text-transform: none; letter-spacing: 0; color: var(--ink); }
.design input { position: absolute; opacity: 0; }
.design:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink), 4px 4px 0 var(--signal); }
.design:has(input:focus-visible) { outline: 2px solid var(--signal); }
.design small { color: var(--muted); font-size: 12.5px; }
.swatch { height: 46px; border: 1px solid var(--line); display: flex; align-items: flex-end; gap: 6px; padding: 8px; margin-bottom: 6px; }
.swatch i { width: 18px; height: 18px; border-radius: 50%; }
.layout-pic { height: 46px; margin-bottom: 6px; display: grid; gap: 3px; padding: 6px; background: var(--paper-2); }
.layout-pic i { background: #fff; border: 1px solid var(--line); }
.layout-list { grid-template-rows: repeat(3, 1fr); } .layout-list i:nth-child(4) { display: none; }
.layout-grid { grid-template-columns: 1fr 1fr; }
.layout-compact { grid-template-rows: repeat(4, 1fr); } .layout-compact i { border: 0; border-bottom: 2px dotted #cfc8bb; background: none; }
.layout-feature { grid-template-rows: 1fr; } .layout-feature i:nth-child(n+2) { display: none; }
.accent-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.accent-row .check { margin: 0; }
.accent-row input[type=color] { width: 44px; height: 32px; padding: 0; border: 1px solid var(--line); background: none; }
.banner-preview { width: 100%; max-height: 260px; object-fit: cover; border: 1px solid var(--ink); }

/* Domain guide */
.guide { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.guide > li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.guide > li::before { content: "0" counter(step); font: 500 12px/1.9 var(--mono); color: var(--signal); }
.guide b { display: block; font-weight: 600; margin-bottom: 4px; }
.guide p { margin: 0; color: var(--muted); }
.ns { display: grid; gap: 8px; margin-top: 12px; }
.ns div { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--ink); background: #fff; padding: 10px 12px; }
.ns code { font: 500 15px/1.3 var(--mono); overflow-wrap: anywhere; }
.notice { border: 1px solid var(--ink); background: #fff7e8; box-shadow: inset 4px 0 0 var(--warn); padding: 14px 16px; margin-bottom: 24px; }
.empty { border: 1px dashed var(--line); padding: 28px; text-align: center; color: var(--muted); }

/* Stat tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.tile { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; display: block; }
a.tile:hover { background: var(--sheet); }
.tile .mono { color: var(--muted); }
.tile strong { display: block; font: 700 clamp(2rem, 4vw, 2.8rem)/1 var(--display); letter-spacing: -0.05em; margin-top: 10px; }
.tile strong.hot { color: var(--signal); }
.tile strong.money { font-size: clamp(1.4rem, 2.4vw, 2rem); padding-top: .35em; }

/* Website card on the customer dashboard */
.site-card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 760px) { .site-card { grid-template-columns: 1fr; } }
.site-card h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 10px 0 6px; word-break: break-word; }
.site-card dl { margin: 18px 0 0; border-top: 1px solid var(--line); }
.site-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.site-card dt { font: 500 11.5px/1.7 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.site-card dd { margin: 0; font-weight: 500; text-align: right; }
.credits { border-left: 1px solid var(--line); padding-left: 28px; display: flex; flex-direction: column; }
@media (max-width: 760px) { .credits { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; } }
.credits .big { font: 700 clamp(3.6rem, 9vw, 5.4rem)/.9 var(--display); letter-spacing: -0.06em; margin: 10px 0 6px; }
.credits .big small { font: 500 15px var(--mono); letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.meter { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 10px 0 18px; }
.meter i { height: 10px; background: var(--paper-2); border: 1px solid var(--line); }
.meter i.on { background: var(--ink); border-color: var(--ink); }
.credits .actions { margin-top: auto; }

/* Ruled lists */
.list { border-top: 1px solid var(--ink); }
.row { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s, padding .25s var(--ease); }
a.row:hover { background: var(--sheet); padding-left: 12px; }
.row .num { font: 500 12.5px var(--mono); color: var(--muted); }
.row .what { min-width: 0; }
.row .what b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .what span { color: var(--muted); font-size: 14px; }
.row .end { display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex-wrap: wrap; text-align: right; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; gap: 6px; } .row .end { justify-content: flex-start; } }

table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.data th { text-align: left; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 10px 10px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
table.data td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr.link { cursor: pointer; }
table.data tr.link:hover td { background: var(--sheet); }
table.data .r { text-align: right; }
.scroll-x { overflow-x: auto; }

/* Status chips */
.chip { display: inline-flex; align-items: center; gap: 7px; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border: 1px solid var(--line); background: var(--sheet); white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.chip-work::before { background: var(--signal); animation: pulse 1.6s ease-in-out infinite; }
.chip-warn { border-color: var(--warn); color: var(--warn); }
.chip-warn::before { background: var(--warn); }
.chip-done { border-color: var(--ok); color: var(--ok); }
.chip-done::before { background: var(--ok); }
.chip-off { color: var(--muted); }
@keyframes pulse { 50% { opacity: .3; } }

/* Timeline of a request */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--ink); }
.timeline li { position: relative; padding: 0 0 22px 22px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; background: var(--paper); border: 1px solid var(--ink); }
.timeline li.taip::before { background: var(--signal); border-color: var(--signal); }
.timeline li.system::before { background: var(--ink); }
.timeline .who { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.timeline .msg { white-space: pre-wrap; margin-top: 4px; }
.timeline li.system .msg { color: var(--muted); font-size: 14px; }
.photo { border: 1px solid var(--ink); max-width: 420px; margin-top: 12px; }
.files { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.file-img img { width: 120px; height: 120px; object-fit: cover; border: 1px solid var(--ink); display: block; }
.file-doc { display: inline-flex; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--ink); background: #fff; text-decoration: none; font-size: 14px; max-width: 100%; overflow-wrap: anywhere; }
.file-doc b { font: 600 11px var(--mono); color: var(--signal); }
.file-doc span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.file-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.file-list li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding: 6px 0; }
.file-list li span { color: var(--muted); white-space: nowrap; }

/* Forms */
.field { margin-bottom: 18px; }
.field label, .field .label { display: block; font: 500 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 7px; color: var(--ink-2); }
.field .hint { text-transform: none; letter-spacing: 0; color: var(--muted); }
.field input[type="text"], .field input[type="tel"], .field input[type="date"], .field input[type="number"], .field input[type="password"], .field input[type="url"], .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--line); border-bottom-color: var(--ink);
  border-radius: 0; padding: 12px; min-height: 46px; -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 -2px 0 var(--signal); }
.row-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 14px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 15px; margin-bottom: 18px; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.inline-form .field { margin: 0; flex: 1 1 140px; }

.dropzone { position: relative; display: grid; place-items: center; gap: 4px; text-align: center; border: 1px dashed var(--ink); background: #fff; padding: 26px 16px; cursor: pointer; }
.dropzone:hover { background: var(--sheet); }
.dropzone b { font-weight: 600; }
.dropzone small { color: var(--muted); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.preview { margin-top: 12px; max-width: 260px; border: 1px solid var(--ink); }

/* App design pictures: tiny drawings of each structure */
.app-pic { position: relative; height: 92px; margin-bottom: 6px; background: var(--paper-2); overflow: hidden; }
.app-pic i { position: absolute; background: #fff; border: 1px solid var(--line); }
.app-dock i:nth-child(1) { inset: 6px 6px auto; height: 28px; background: #e8dccb; }
.app-dock i:nth-child(2) { left: 12px; right: 12px; top: 26px; height: 18px; }
.app-dock i:nth-child(3) { left: 6px; width: calc(50% - 9px); top: 50px; height: 18px; }
.app-dock i:nth-child(4) { right: 6px; width: calc(50% - 9px); top: 50px; height: 18px; }
.app-dock i:nth-child(5) { left: 16px; right: 16px; bottom: 5px; height: 11px; border-radius: 9px; background: var(--ink); }
.app-storefront i:nth-child(1) { inset: 0 0 auto; height: 14px; }
.app-storefront i:nth-child(2) { left: 6px; right: 6px; top: 19px; height: 24px; border-radius: 6px; background: #e8dccb; }
.app-storefront i:nth-child(3) { left: 6px; width: calc(50% - 9px); top: 48px; height: 18px; border-radius: 5px; }
.app-storefront i:nth-child(4) { right: 6px; width: calc(50% - 9px); top: 48px; height: 18px; border-radius: 5px; }
.app-storefront i:nth-child(5) { left: 6px; right: 6px; top: 70px; height: 18px; border-radius: 5px; }
.app-menufirst i:nth-child(1) { inset: 0 0 auto; height: 16px; }
.app-menufirst i:nth-child(2) { left: 6px; right: 6px; top: 20px; height: 9px; border-radius: 9px; background: var(--ink); }
.app-menufirst i:nth-child(3) { left: 6px; right: 6px; top: 34px; height: 15px; }
.app-menufirst i:nth-child(4) { left: 6px; right: 6px; top: 53px; height: 15px; }
.app-menufirst i:nth-child(5) { left: 6px; right: 6px; top: 72px; height: 15px; }
.app-gallery i:nth-child(1) { inset: 0 0 auto; height: 26px; background: #e8dccb; }
.app-gallery i:nth-child(2) { left: 8px; top: 31px; width: 14px; height: 14px; border-radius: 50%; box-shadow: 20px 0 0 -1px #fff, 40px 0 0 -1px #fff; }
.app-gallery i:nth-child(3) { left: 6px; width: calc(50% - 9px); top: 50px; height: 26px; background: #d9c6ad; }
.app-gallery i:nth-child(4) { right: 6px; width: calc(50% - 9px); top: 50px; height: 26px; background: #d9c6ad; }
.app-gallery i:nth-child(5) { inset: auto 0 0; height: 11px; }
/* Loading screen pictures, animated on hover */
.loader-pic { height: 54px; margin-bottom: 6px; background: var(--paper-2); display: flex; align-items: center; justify-content: center; gap: 5px; }
.loader-pic i { display: block; }
.loader-logo i:first-child { width: 22px; height: 22px; border-radius: 7px; background: var(--ink); }
.loader-steam i { width: 4px; height: 14px; border-radius: 4px; background: var(--muted); }
.loader-steam i:nth-child(2) { height: 20px; }
.loader-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.loader-bar i:first-child { width: 60%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--ink) 45%, var(--line) 45%); }
.loader-logo i + i, .loader-bar i + i, .loader-none i { display: none; }
.design:hover .loader-logo i, .design:has(input:checked) .loader-logo i { animation: lp-pulse 1.2s ease-in-out infinite; }
.design:hover .loader-dots i, .design:has(input:checked) .loader-dots i { animation: lp-bounce .9s ease-in-out infinite; }
.loader-dots i:nth-child(2), .loader-steam i:nth-child(2) { animation-delay: .15s !important; }
.loader-dots i:nth-child(3), .loader-steam i:nth-child(3) { animation-delay: .3s !important; }
.design:hover .loader-steam i, .design:has(input:checked) .loader-steam i { animation: lp-rise 1.4s ease-in-out infinite; }
@keyframes lp-pulse { 50% { transform: scale(.85); opacity: .6; } }
@keyframes lp-bounce { 50% { transform: translateY(-7px); } }
@keyframes lp-rise { 0% { transform: translateY(4px); opacity: .2; } 50% { opacity: 1; } 100% { transform: translateY(-6px); opacity: 0; } }
/* Fonts: generic families so the portal loads nothing extra */
.font-pic { height: 54px; margin-bottom: 6px; background: var(--paper-2); display: grid; place-items: center; font-size: 28px; color: var(--ink); }
.font-elegant { font-family: Georgia, 'Times New Roman', serif; font-style: italic; }
.font-modern { font-family: system-ui, sans-serif; font-weight: 500; letter-spacing: -.03em; }
.font-friendly { font-family: ui-rounded, 'SF Pro Rounded', 'Nunito', system-ui, sans-serif; font-weight: 600; }
.font-bold { font-family: system-ui, sans-serif; font-weight: 800; letter-spacing: -.05em; }
/* Design settings: two main presets, then each part */
.part-label { display: block; margin: 18px 0 10px; }
.part-main { margin-top: 6px; font-size: 13px; }
.part-main b { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 600 12px var(--mono); }
.presets + .colors { margin-bottom: 4px; }
.look { text-align: left; }
.look.is-match { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink), 4px 4px 0 var(--signal); }
.customise { margin-top: 22px; border: 1px solid var(--line); background: #fff; padding: 0 16px; }
.customise summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; }
.customise summary::-webkit-details-marker { display: none; }
.customise summary::before { content: "+"; display: inline-block; width: 18px; font-family: var(--mono); }
.customise[open] summary::before { content: "−"; }
.customise[open] { padding-bottom: 16px; }
.customise .part-label:first-of-type { margin-top: 4px; }
.bar-pic, .head-pic { position: relative; height: 54px; margin-bottom: 6px; background: var(--paper-2); overflow: hidden; }
.bar-pic i, .head-pic i { position: absolute; display: block; }
.bar-pic i:nth-child(1), .head-pic i:nth-child(3) { left: 6px; right: 6px; top: 6px; height: 22px; background: #fff; border: 1px solid var(--line); }
.bar-floating i:nth-child(2) { left: 18%; right: 18%; bottom: 6px; height: 12px; border-radius: 9px; background: var(--ink); }
.bar-full i:nth-child(2) { left: 0; right: 0; bottom: 0; height: 13px; background: #fff; border-top: 1px solid var(--ink); }
.bar-none i:nth-child(2) { right: 8px; bottom: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); }
.head-pic i:nth-child(3) { top: auto; bottom: 4px; height: 14px; }
.head-title i:nth-child(1) { left: 6px; right: 6px; top: 6px; height: 14px; background: #fff; border-bottom: 2px solid var(--ink); }
.head-title i:nth-child(2) { left: 35%; right: 35%; top: 11px; height: 4px; background: var(--ink); border-radius: 2px; }
.head-shop i:nth-child(1) { left: 6px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); }
.head-shop i:nth-child(2) { left: 30px; top: 10px; width: 40%; height: 5px; background: var(--ink); border-radius: 2px; box-shadow: 0 7px 0 -1px #2f8f4e; }
.head-banner i:nth-child(1) { left: 0; right: 0; top: 0; height: 22px; background: #e8dccb; }
.head-banner i:nth-child(2) { left: 8px; top: 14px; width: 16px; height: 16px; border-radius: 5px; background: var(--ink); border: 2px solid var(--paper-2); }
.app-pic.look-bar-none::after, .app-pic.look-bar-full::after, .app-pic.look-bar-floating::after { content: none; }
/* Category navigation and search pictures */
.nav-pic, .search-pic { position: relative; height: 54px; margin-bottom: 6px; background: var(--paper-2); overflow: hidden; }
.nav-pic i, .search-pic i { position: absolute; display: block; }
.nav-chips i { top: 10px; height: 13px; width: 26%; border-radius: 9px; border: 1px solid var(--line); background: #fff; }
.nav-chips i:nth-child(1) { left: 6px; background: var(--ink); border-color: var(--ink); } .nav-chips i:nth-child(2) { left: 34%; } .nav-chips i:nth-child(3) { left: 63%; }
.nav-chips i:nth-child(4), .nav-tabs i:nth-child(4) { left: 6px; right: 6px; top: 30px; height: 18px; width: auto; border-radius: 3px; background: #fff; border: 1px solid var(--line); }
.nav-tabs i { top: 12px; height: 6px; width: 22%; border-radius: 3px; background: var(--muted); opacity: .5; }
.nav-tabs i:nth-child(1) { left: 6px; opacity: 1; background: var(--ink); box-shadow: 0 7px 0 -1px var(--signal); } .nav-tabs i:nth-child(2) { left: 36%; } .nav-tabs i:nth-child(3) { left: 66%; }
.nav-sidebar i { left: 6px; width: 24%; height: 7px; border-radius: 3px; background: var(--muted); opacity: .5; }
.nav-sidebar i:nth-child(1) { top: 8px; opacity: 1; background: var(--ink); } .nav-sidebar i:nth-child(2) { top: 20px; } .nav-sidebar i:nth-child(3) { top: 32px; }
.nav-sidebar i:nth-child(4) { left: 34%; right: 6px; top: 6px; bottom: 6px; width: auto; height: auto; opacity: 1; background: #fff; border: 1px solid var(--line); }
.nav-dropdown i:nth-child(1) { left: 6px; right: 6px; top: 8px; height: 16px; border-radius: 5px; background: #fff; border: 1px solid var(--ink); }
.nav-dropdown i:nth-child(2) { right: 12px; top: 13px; width: 6px; height: 6px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.nav-dropdown i:nth-child(3) { left: 12px; top: 14px; width: 30%; height: 4px; background: var(--ink); border-radius: 2px; }
.nav-dropdown i:nth-child(4) { left: 6px; right: 6px; top: 30px; height: 18px; border-radius: 3px; background: #fff; border: 1px solid var(--line); }
.search-bar i:nth-child(1) { left: 6px; right: 6px; top: 9px; height: 14px; border-radius: 9px; background: #fff; border: 1px solid var(--ink); }
.search-bar i:nth-child(2), .search-button i:nth-child(2) { left: 6px; right: 6px; top: 30px; height: 18px; border-radius: 3px; background: #fff; border: 1px solid var(--line); }
.search-button i:nth-child(1) { right: 6px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 1px solid var(--ink); }
/* Colours */
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.preset { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); background: #fff; font: 500 13px var(--sans); cursor: pointer; transition: border-color .2s, transform .2s; }
.preset:hover { border-color: var(--ink); transform: translateY(-1px); }
.preset .swatch { width: 44px; height: 26px; margin: 0; padding: 4px; gap: 3px; }
.preset .swatch i { width: 10px; height: 10px; }
.colors { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: stretch; }
.color { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 14px; }
.color input { width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); background: none; cursor: pointer; flex: none; }
.color span { display: grid; }
.color code { font: 12px var(--mono); color: var(--muted); }
.color-preview { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--pv-bg, #fbf7f1); }
.color-preview b, .color-preview span { grid-column: 1; color: var(--pv-text, #222); font-size: 14px; }
.color-preview span { opacity: .7; font-size: 13px; }
.color-preview em { grid-row: 1 / 3; grid-column: 2; font-style: normal; font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: 99px; background: var(--pv-accent, #c2410c); color: var(--pv-ink, #fff); }
.warn-line { margin: 10px 0 0; padding: 8px 12px; background: #fff4d6; border-left: 3px solid #d9a400; font-size: 14px; }
/* Closed days calendar */
.cal { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.cal-month header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 600; }
.cal-month header button { border: 1px solid var(--line); background: #fff; width: 32px; height: 32px; cursor: pointer; font-size: 16px; }
.cal-month header button:hover { border-color: var(--ink); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-grid > span { font: 500 11px var(--mono); color: var(--muted); text-align: center; padding: 4px 0; }
.cal-day { aspect-ratio: 1; border: 1px solid var(--line); background: #fff; font: 500 14px var(--sans); cursor: pointer; position: relative; transition: background .15s, color .15s, transform .15s; }
.cal-day:hover:not(:disabled) { border-color: var(--ink); transform: scale(1.06); }
.cal-day:disabled { background: transparent; color: #c4c0b6; cursor: default; border-color: transparent; }
.cal-day.is-weekly { color: var(--muted); background: var(--paper-2); }
.cal-day.is-today { box-shadow: inset 0 0 0 2px var(--signal); }
.cal-day.is-closed { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cal-day.is-closed::after { content: ''; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--signal); }
.cal-legend { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.cal-legend i { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; margin-right: 5px; border: 1px solid var(--line); }
.cal-list { margin-top: 16px; display: grid; gap: 6px; }
.cal-run { display: grid; grid-template-columns: minmax(150px, auto) 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); background: #fff; }
.cal-run b { font-size: 14px; }
.cal-run input { border: 1px solid var(--line); padding: 7px 10px; font: 14px var(--sans); min-width: 0; }
.cal-run button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 13px; text-decoration: underline; }
.logo-row { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.logo-preview { width: 72px; height: 72px; flex: none; border-radius: 18px; border: 1px solid var(--line); background: var(--paper-2); display: grid; place-items: center; overflow: hidden; font: 600 28px var(--sans); }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.row-fields.three { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 560px) { .cal-run { grid-template-columns: 1fr auto; } .cal-run input { grid-column: 1 / -1; grid-row: 2; } }

.switch-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: -6px 0 18px; padding: 12px 14px; border: 1px solid var(--line); background: #fff; }
.switch-line b::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: #2f8f4e; }
.switch-line.is-off { border-color: var(--danger); background: #fff6f4; }
.switch-line.is-off b::before { background: var(--danger); }
.btn-danger { background: var(--danger) !important; border-color: var(--danger) !important; color: #fff !important; }
.push-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.push-line small { flex-basis: 100%; }

/* Sign-in */
.auth { max-width: 520px; margin: clamp(20px, 6vw, 64px) auto 0; }
.auth h1 { font-size: clamp(2.6rem, 8vw, 4.2rem); letter-spacing: -0.055em; line-height: .95; margin: 14px 0 18px; }
.auth .lead { color: var(--ink-2); font-size: 1.08rem; margin-bottom: 26px; }
.verify-box { background: var(--ink); color: var(--paper); padding: 22px; }
.verify-box p { color: #c9c5ba; margin: 14px 0 0; font-size: 14px; }
.verify-box .code { font-family: var(--mono); font-weight: 600; letter-spacing: .08em; }
.status-line { margin: 14px 0 0; font: 500 13px/1.5 var(--mono); min-height: 1.5em; color: var(--ink-2); }
.status-line.error { color: var(--danger); }

@media (prefers-reduced-motion: reduce) {
  .brand i, .chip-work::before, .loader-pic i { animation: none !important; }
  .btn::before, .row { transition: none; }
}
