/* Simpel Account — the customer side of simpeltool.app: cream paper, ink buttons, quiet cards. */
:root {
  color-scheme: light;
  --canvas: #F6F1E7; --surface: #FFFCF6; --sand: #ECE5D6; --hairline: #DDD3C1;
  --ink: #2B2420; --inkSecondary: #5B514A; --inkMuted: #6C625A;
  --primary: #2B2420; --primaryStrong: #14100E; --onPrimary: #F6F1E7; --accentText: #2B2420;
  --support: #E7DFCE; --onSupport: #2B2420; --focus: #2B7BE4;
  --success: #1F6B3A; --successBg: #DDEFE2; --warning: #7D5300; --warningBg: #F6E9C9; --danger: #A3302A; --dangerBg: #F7DEDA; --info: #24527F; --infoBg: #DDE8F3;
  --shadow: 0 1px 2px rgba(43, 36, 32, .05), 0 6px 18px rgba(43, 36, 32, .05);
  --radius: 20px; --font: -apple-system, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
  --display: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif; --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --canvas: #171412; --surface: #211D1A; --sand: #2A2521; --hairline: #3A332D;
    --ink: #F3ECE2; --inkSecondary: #CFC5B9; --inkMuted: #B1A699;
    --primary: #F3ECE2; --primaryStrong: #FFFAF2; --onPrimary: #171412; --accentText: #F3ECE2;
    --support: #332D28; --onSupport: #F3ECE2; --focus: #6FA8F0;
    --success: #7FD39A; --successBg: #1E3326; --warning: #E8C06A; --warningBg: #3A2F17; --danger: #F2958C; --dangerBg: #40211F; --info: #9CC3EE; --infoBg: #1E2D3D;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #171412; --surface: #211D1A; --sand: #2A2521; --hairline: #3A332D;
  --ink: #F3ECE2; --inkSecondary: #CFC5B9; --inkMuted: #B1A699;
  --primary: #F3ECE2; --primaryStrong: #FFFAF2; --onPrimary: #171412; --accentText: #F3ECE2;
  --support: #332D28; --onSupport: #F3ECE2; --focus: #6FA8F0;
  --success: #7FD39A; --successBg: #1E3326; --warning: #E8C06A; --warningBg: #3A2F17; --danger: #F2958C; --dangerBg: #40211F; --info: #9CC3EE; --infoBg: #1E2D3D;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.5 var(--font); }
a { color: var(--accentText); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.muted { color: var(--inkMuted); }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.01em; margin: 0; }
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 19px; font-weight: 650; }
h3 { font-size: 16px; font-weight: 600; }
p { margin: 6px 0; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card + .card, .stack > * + * { margin-top: 16px; }
.grid > .card, .grid2 > .card { margin-top: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid2 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } }
.card-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; font-size: 14px; }
.kv dt { color: var(--inkMuted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.rule { border: 0; border-top: 1px solid var(--hairline); margin: 16px 0; }

/* App rows inside a licence */
.apps { display: grid; gap: 10px; }
.app { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--canvas); }
.glyph { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; color: var(--onPrimary); background: var(--primary); font-family: var(--display); }
.app .meta { font-size: 13px; color: var(--inkSecondary); }
@media (max-width: 560px) { .app { grid-template-columns: 40px minmax(0, 1fr); } .app > :last-child { grid-column: 1 / -1; } }

.macs { list-style: none; margin: 0; padding: 0; }
.macs li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hairline); flex-wrap: wrap; }
.macs li:first-child { border-top: 0; }
.macs .name { font-weight: 600; }

/* Buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--hairline); background: var(--surface); color: var(--ink);
  padding: 8px 16px; border-radius: 999px; cursor: pointer; min-height: 38px; white-space: nowrap; font-weight: 500; text-decoration: none; }
.btn:hover { background: var(--sand); }
.btn.primary { background: var(--primary); color: var(--onPrimary); border-color: var(--primary); font-weight: 600; }
.btn.primary:hover { background: var(--primaryStrong); }
.btn.quiet { border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 2px; padding: 8px 6px; }
.btn.danger { color: var(--danger); border-color: currentColor; }
.btn.sm { min-height: 30px; padding: 4px 12px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .field .label { font-size: 14px; font-weight: 600; }
.field small { color: var(--inkMuted); }
input[type=email], input[type=text], input:not([type]), select, textarea { width: 100%; border: 1px solid var(--hairline); background: var(--surface); border-radius: 10px; padding: 10px 12px; min-height: 42px; }
textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.code-input { font: 600 26px/1 var(--mono); letter-spacing: .3em; text-align: center; }
.err { color: var(--danger); background: var(--dangerBg); border-radius: 8px; padding: 8px 12px; font-size: 14px; margin-bottom: 12px; }
.note { background: var(--support); color: var(--onSupport); border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.note.warn { background: var(--warningBg); color: var(--warning); }

/* Tags */
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--sand); color: var(--inkSecondary); white-space: nowrap; font-weight: 600; }
.tag.good { background: var(--successBg); color: var(--success); }
.tag.warn { background: var(--warningBg); color: var(--warning); }
.tag.bad { background: var(--dangerBg); color: var(--danger); }
.tag.info { background: var(--infoBg); color: var(--info); }

/* Tables */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; color: var(--inkMuted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
td { padding: 12px 10px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td .row { flex-wrap: nowrap; }
@media (max-width: 720px) {
  table.cards thead { display: none; }
  table.cards tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
  table.cards td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 0; text-align: right; }
  table.cards td::before { content: attr(data-l); color: var(--inkMuted); font-size: 13px; text-align: left; }
  table.cards td.num { white-space: normal; }
  td .row { flex-wrap: wrap; justify-content: flex-end; }
}
.empty { color: var(--inkMuted); padding: 24px; text-align: center; }

/* Changelog */
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.chips a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--hairline); text-decoration: none; color: var(--inkSecondary); background: var(--surface); }
.chips a.on { background: var(--primary); color: var(--onPrimary); border-color: var(--primary); }
.rel { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--hairline); }
.rel:first-of-type { border-top: 0; }
.rel .v { font: 700 18px/1.2 var(--display); }
.rel .notes { white-space: pre-line; color: var(--inkSecondary); overflow-wrap: anywhere; }
.rel .tags { display: flex; flex-wrap: wrap; gap: 4px; }
.rel .lead-s { font-weight: 600; overflow-wrap: anywhere; }
.rel .bul { margin: 4px 0 0; padding-left: 18px; color: var(--inkSecondary); overflow-wrap: anywhere; }
.rel .bul li + li { margin-top: 2px; }
.dib { display: inline-block; }
@media (max-width: 560px) { .rel { grid-template-columns: 1fr; gap: 4px; } }

/* Sign-in */
.signin { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.signin .card { width: min(440px, 100%); padding: 28px; }
.signin .brand { margin-bottom: 18px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--inkMuted); font-size: 13px; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--hairline); }
.btn.wide { width: 100%; }

/* Modal + toast */
.scrim { position: fixed; inset: 0; background: rgba(23, 20, 18, .45); display: grid; place-items: center; padding: 16px; z-index: 20; }
.modal { background: var(--surface); border-radius: var(--radius); padding: 24px; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); }
.modal h2 { margin-bottom: 8px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--primary); color: var(--onPrimary); padding: 10px 18px; border-radius: 999px; z-index: 30; max-width: calc(100% - 32px); }

/* Receipt */
.receipt { max-width: 720px; margin: 0 auto; }
.receipt .lines td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.receipt .total td { font-weight: 700; font-size: 16px; border-top: 2px solid var(--ink); }
@media print {
  .top, .noprint { display: none !important; }
  .page { padding: 0; }
  .card { box-shadow: none; border: 0; }
  html, body { background: #fff; color: #000; }
}



/* Spacing utilities (CSP forbids inline styles). */
.mt6 { margin-top: 6px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt14 { margin-top: 14px; } .mt16 { margin-top: 16px; } .mt18 { margin-top: 18px; } .mt20 { margin-top: 20px; }
.mb8 { margin-bottom: 8px; } .mb10 { margin-bottom: 10px; } .mb12 { margin-bottom: 12px; } .mb14 { margin-bottom: 14px; } .mb16 { margin-bottom: 16px; }
.my-split { margin: 12px 0 20px; } .h-macs { margin: 18px 0 6px; } .prewrap { white-space: pre-wrap; }

/* Language picker */
select.lang { width: auto; min-height: 30px; padding: 4px 28px 4px 10px; border-radius: 999px; font-size: 13px; background: var(--surface); }
.signin .card-h { align-items: center; margin-bottom: 0; }
.signin .card-h .brand { margin-bottom: 18px; }

.grow { flex: 1; min-width: 0; }

/* Real app icons: light and dark files, switched with the theme tokens. */
.appicon { width: 40px; height: 40px; display: block; }
.appicon img { width: 40px; height: 40px; display: block; }
.appicon .ico-d { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .appicon .ico-l { display: none; } :root:not([data-theme="light"]) .appicon .ico-d { display: block; } }
:root[data-theme="dark"] .appicon .ico-l { display: none; }
:root[data-theme="dark"] .appicon .ico-d { display: block; }
.upsell { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px; border: 1px dashed var(--hairline); border-radius: 10px; }
.upsell .meta { font-size: 13px; color: var(--inkSecondary); }

.signin .row h1 { font-size: 22px; }

input.promo-in { width: 170px; min-height: 34px; padding: 6px 10px; }
.head form.row { flex-wrap: nowrap; }
.label { font-size: 14px; font-weight: 600; }
.refund-note { max-width: 280px; overflow-wrap: anywhere; }

.focus { outline: 2px solid var(--focus); outline-offset: 2px; }

/* What's new: view switch and timeline */
.seg { display: inline-flex; border: 1px solid var(--hairline); border-radius: 999px; padding: 3px; background: var(--surface); flex: none; }
.seg a { padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--inkSecondary); white-space: nowrap; font-weight: 600; }
.seg a.on { background: var(--primary); color: var(--onPrimary); }
.timeline, .timeline ol { list-style: none; margin: 0; padding: 0; }
.tl-month + .tl-month { margin-top: 20px; }
.tl-m { font-size: 15px; margin: 0 0 10px; color: var(--inkSecondary); }
.tl-month > ol { position: relative; padding-left: 28px; }
.tl-month > ol::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--hairline); border-radius: 2px; }
.tl-item { position: relative; }
.tl-item + .tl-item { margin-top: 12px; }
.tl-dot { position: absolute; left: -26px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); }
.tl-h { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tl-h .appicon { flex: none; }
.tl-title { overflow-wrap: anywhere; }
.tl-title .v { font: 700 16px/1.2 var(--display); margin-left: 4px; }
.tl-h .tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tl-body { margin-top: 10px; }
.tl-body .notes { white-space: pre-line; color: var(--inkSecondary); overflow-wrap: anywhere; }
.tl-body .lead-s { font-weight: 600; overflow-wrap: anywhere; }
.tl-body .bul { margin: 4px 0 0; padding-left: 18px; color: var(--inkSecondary); overflow-wrap: anywhere; }
@media (max-width: 560px) { .tl-month > ol { padding-left: 22px; } .tl-month > ol::before { left: 5px; } .tl-dot { left: -23px; } .seg a { padding: 6px 10px; } }

/* ===== Simpel house, pet edition (redesign 16-11-2026) =====================================================
   Paper and ink stay the house look. Personal colour comes from the pet the customer picked (html[data-pet]).
   App cards wear their own app's colour (the same six worlds as simpeltool.app). Shapes are soft and chunky, like the pets. */
:root { --me: #22825A; --meOn: #FFFFFF; --meSoft: color-mix(in srgb, var(--me) 16%, var(--surface)); --edge: color-mix(in srgb, var(--ink) 22%, transparent);
  --rail: 264px; --gap: 20px; --pad: 22px; --lift: 0 1px 0 var(--edge), 0 10px 28px -18px rgba(43, 36, 32, .45); }
:root[data-pet="sprout"] { --me: #22825A; --meOn: #FFFFFF; }
:root[data-pet="breeze"] { --me: #D89534; --meOn: #2B1D0B; }
:root[data-pet="tiles"] { --me: #2BBEDF; --meOn: #0B2A33; }
:root[data-pet="reel"] { --me: #D35678; --meOn: #2A0B15; }
:root[data-pet="tune"] { --me: #3B67B1; --meOn: #FFFFFF; }
:root[data-pet="scribe"] { --me: #E37C5D; --meOn: #2D130B; }
:root[data-pet="ink"] { --me: #393732; --meOn: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"])[data-pet="ink"] { --me: #8C857A; --meOn: #15120F; } :root:not([data-theme="light"]) { --lift: 0 1px 0 rgba(0, 0, 0, .5), 0 12px 30px -18px rgba(0, 0, 0, .8); } }
:root[data-theme="dark"][data-pet="ink"] { --me: #8C857A; --meOn: #15120F; }
:root[data-theme="dark"] { --lift: 0 1px 0 rgba(0, 0, 0, .5), 0 12px 30px -18px rgba(0, 0, 0, .8); }
:root.compact { --gap: 12px; --pad: 16px; }
:root.compact body { font-size: 14px; }
:root.compact .app { padding: 9px 10px; }
:root.compact .macs li { padding: 7px 0; }

/* App worlds (accent colours from each app's identity sheet); --wOn is the text colour that passes on --w. */
.w-macnote { --w: #F28267; --wOn: #3B1F1B; } .w-macvol { --w: #3862B2; --wOn: #FFFFFF; } .w-macget { --w: #E0507A; --wOn: #2A0B15; }
.w-macgrid { --w: #1ACCFF; --wOn: #0B2A33; } .w-macfan { --w: #E9A23B; --wOn: #3B2A17; } .w-macdrive { --w: #167A55; --wOn: #FFFFFF; } .w-macshot { --w: #B5CF2E; --wOn: #22280A; }

h1, h2, h3 { font-family: var(--display); }
h1 { font-weight: 800; letter-spacing: -.02em; }
h2 { font-weight: 750; }
.card { border-radius: var(--radius); padding: var(--pad); box-shadow: var(--lift); border-color: color-mix(in srgb, var(--hairline) 70%, transparent); }
.btn { border-radius: 14px; font-weight: 600; box-shadow: 0 2px 0 var(--edge); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--edge); }
.btn.quiet { box-shadow: none; }
.btn.primary { box-shadow: 0 2px 0 color-mix(in srgb, var(--primary) 60%, #000); }
.tag { border-radius: 8px; }

/* Shell: profile rail on the left (desktop), header + bottom dock on phones */
.shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; overflow: auto; padding: 22px 16px 18px; display: flex; flex-direction: column; gap: 18px; border-right: 1px solid var(--hairline); background: var(--canvas); }
.rail .brand { display: flex; align-items: baseline; gap: 7px; padding: 0 8px; text-decoration: none; color: var(--ink); font-family: var(--display); }
.brand b { font-weight: 900; font-size: 21px; letter-spacing: -.03em; }
.brand span { color: var(--inkSecondary); font-weight: 600; }
.me { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 18px 12px 16px; border-radius: 22px; background: var(--surface); box-shadow: var(--lift); text-decoration: none; color: var(--ink); }
.me:hover .pet-tile { transform: rotate(-4deg) scale(1.03); }
.me .nm { font: 800 18px/1.2 var(--display); max-width: 100%; overflow-wrap: anywhere; margin-top: 8px; }
.me .em { font-size: 13px; color: var(--inkMuted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me .edit { font-size: 13px; font-weight: 600; color: var(--inkSecondary); text-decoration: underline; text-underline-offset: 2px; }
.pet-tile { display: grid; place-items: center; border-radius: 28%; background: var(--me); overflow: hidden; flex: none; }
.pet-tile img { width: 88%; height: 88%; object-fit: contain; display: block; }
.pet-tile.xl { width: 96px; height: 96px; }
.pet-tile.md { width: 44px; height: 44px; border-radius: 30%; }
.pet-tile.sm { width: 34px; height: 34px; border-radius: 32%; }
@media (prefers-reduced-motion: no-preference) { .pet-tile { transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); } }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 12px; color: var(--inkSecondary); text-decoration: none; font-weight: 550; }
.nav a svg { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav a:hover { background: var(--sand); color: var(--ink); }
.nav a.on { background: var(--ink); color: var(--canvas); font-weight: 650; }
.rail-foot { margin-top: auto; display: grid; gap: 8px; padding: 0 4px; }
.rail-foot .row { justify-content: space-between; }
.env { font-size: 12px; background: var(--warningBg); color: var(--warning); padding: 3px 9px; border-radius: 8px; font-weight: 650; white-space: nowrap; justify-self: start; }
.topbar { display: none; }
.dock { display: none; }
.page { max-width: 1120px; width: 100%; margin: 0 auto; padding: 34px 36px 56px; }
.head { margin-bottom: 22px; }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--inkMuted); font-size: 13px; padding: 0 36px 32px; max-width: 1120px; margin: 0 auto; width: 100%; }
@media print { .rail, .topbar, .dock, .foot { display: none !important; } .shell { display: block; } }

@media (max-width: 980px) {
  .shell { display: block; }
  .rail { display: none; }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 6; padding: 10px 16px; background: color-mix(in srgb, var(--canvas) 92%, transparent); border-bottom: 1px solid var(--hairline); }
  .topbar .brand { text-decoration: none; color: var(--ink); display: flex; align-items: baseline; gap: 6px; font-family: var(--display); }
  .topbar .who { display: flex; align-items: center; gap: 8px; }
  .topbar a.av { display: block; text-decoration: none; }
  .page { padding: 22px 16px 120px; }
  .foot { padding: 0 16px 110px; }
  .dock { display: flex; position: fixed; z-index: 7; left: 50%; transform: translateX(-50%); bottom: max(12px, env(safe-area-inset-bottom)); gap: 4px; padding: 6px; border-radius: 26px; background: var(--ink); box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .6); max-width: calc(100% - 24px); }
  .dock a, .dock button { width: 52px; height: 48px; border-radius: 20px; display: grid; place-items: center; color: var(--canvas); background: transparent; border: 0; cursor: pointer; }
  .dock svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .dock a.on { background: var(--me); color: var(--meOn); }
  h1 { font-size: 25px; }
}
@media (prefers-reduced-transparency: reduce) { .topbar { background: var(--canvas); } }
.more-list { display: grid; gap: 4px; margin-top: 10px; }
.more-list a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; }
.more-list a:hover, .more-list a.on { background: var(--sand); }
.more-list svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Overview hero: the customer's pet on their own colour */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 26px 28px; border-radius: 26px; background: var(--me); color: var(--meOn); box-shadow: var(--lift); overflow: hidden; margin-bottom: var(--gap); }
.hero h1 { font-size: 34px; line-height: 1.1; color: var(--meOn); overflow-wrap: anywhere; }
.hero p { color: var(--meOn); max-width: 52ch; margin-top: 8px; }
.hero .sticker { width: 150px; height: 150px; transform: rotate(-7deg); filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .22)); }
.hero .sticker img { width: 100%; height: 100%; object-fit: contain; display: block; }
.stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.stat { background: var(--surface); color: var(--ink); border-radius: 14px; padding: 8px 14px; min-width: 0; }
.stat b { font: 800 20px/1.1 var(--display); display: block; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12.5px; color: var(--inkSecondary); }
.hero .row .btn { background: var(--surface); color: var(--ink); border-color: transparent; }
@media (max-width: 640px) { .hero { grid-template-columns: 1fr; padding: 22px 20px; } .hero .sticker { position: absolute; right: -8px; top: -6px; width: 92px; height: 92px; opacity: .95; } .hero h1 { font-size: 27px; padding-right: 76px; } }

/* App tiles: a coloured tab with the icon, the card below (one per app the customer owns) */
.tiles { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); margin-bottom: var(--gap); }
.tile { position: relative; border-radius: 24px; background: var(--w); padding: 46px 10px 10px; box-shadow: var(--lift); min-width: 0; display: flex; flex-direction: column; }
.tile .tab { position: absolute; top: 10px; left: 14px; right: 14px; display: flex; align-items: center; gap: 10px; color: var(--wOn); font: 800 15px/1.2 var(--display); min-width: 0; }
.tile .tab b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .tab .appicon, .tile .tab .appicon img { width: 28px; height: 28px; }
.tile .in { background: var(--surface); border-radius: 16px; padding: 14px; display: grid; gap: 10px; flex: 1; align-content: space-between; }
.tile .meta { font-size: 13px; color: var(--inkSecondary); overflow-wrap: anywhere; }
.tile .row .btn { flex: 1; }
.tile.add { background: var(--sand); }
.tile.add .tab { color: var(--ink); }
.section-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 6px 2px 12px; flex-wrap: wrap; }
.section-h h2 { font-size: 20px; }
.bento { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.bento > .card { margin-top: 0; }

/* Profile page: pet picker and look settings */
.pets { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; border: 0; padding: 0; margin: 0; }
.pets legend { font-weight: 650; margin-bottom: 10px; }
.pet-opt { position: relative; display: grid; justify-items: center; gap: 6px; padding: 10px 6px 8px; border-radius: 18px; background: var(--canvas); cursor: pointer; border: 2px solid transparent; }
.pet-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pet-opt .pet-tile { width: 62px; height: 62px; }
.pet-opt span { font-size: 13px; font-weight: 600; color: var(--inkSecondary); }
.pet-opt:has(input:checked) { border-color: var(--ink); background: var(--surface); }
.pet-opt:has(input:checked) span { color: var(--ink); }
.pet-opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.p-sprout { background: #22825A; } .p-breeze { background: #D89534; } .p-tiles { background: #2BBEDF; } .p-reel { background: #D35678; }
.p-tune { background: #3B67B1; } .p-scribe { background: #E37C5D; } .p-ink { background: #393732; }
.segctl { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--sand); border: 0; margin: 0; }
.segctl legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.segctl label { position: relative; padding: 7px 14px; border-radius: 11px; cursor: pointer; font-weight: 600; color: var(--inkSecondary); white-space: nowrap; }
.segctl input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segctl label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: 0 1px 0 var(--edge); }
.segctl label:has(input:focus-visible) { outline: 2px solid var(--focus); }
.setrow { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; padding: 14px 0; border-top: 1px solid var(--hairline); flex-wrap: wrap; }
.setrow:first-of-type { border-top: 0; }
.setrow > div:first-child { min-width: 0; flex: 1 1 220px; }
.setrow .label + .small { display: block; }
.setrow select, .setrow input:not([type=checkbox]):not([type=radio]) { width: auto; min-width: 200px; max-width: 100%; }
.preview { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: var(--me); color: var(--meOn); }
.preview b { font: 800 19px/1.2 var(--display); overflow-wrap: anywhere; }
.preview .pet-tile { background: var(--surface); }
.keyline { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--canvas); }
.keyline > span { min-width: 0; flex: 1 1 260px; }
.keyshow { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--sand); }
.keyshow .mono { font-size: 16px; font-weight: 700; letter-spacing: .04em; overflow-wrap: anywhere; min-width: 0; }

/* Coming soon: upcoming apps, no price */
.soon { display: grid; gap: 10px; align-content: start; background: var(--sand); box-shadow: none; border: 1.5px dashed color-mix(in srgb, var(--ink) 22%, transparent); }
.soon-h { display: flex; align-items: center; gap: 12px; min-width: 0; }
.soon-h b { font: 800 17px/1.2 var(--display); overflow-wrap: anywhere; }
.soon-t { margin: 0; overflow-wrap: anywhere; }
.soon .bul { margin: 0; padding-left: 18px; color: var(--inkSecondary); overflow-wrap: anywhere; }
.soon .btn { justify-self: start; }
.soon .glyph { flex: none; }
.soon-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

/* MACpack picker */
.pick { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.pick-app { align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--canvas); cursor: pointer; }
.pick-app input { margin-top: 0; }
.pick-app .appicon, .pick-app .appicon img, .pick-app .glyph { width: 28px; height: 28px; flex: none; }
.pick-app:has(input:checked) { outline: 2px solid var(--ink); }
.pick-app:has(input:disabled) { opacity: .6; }
