:root {
  --ink: #18251D;
  --ink-2: #2B3A31;
  --mint: #B7FF72;
  --mint-d: #9BEA4F;
  --bg: #F0F2F5;
  --card: #FFFFFF;
  --line: #DFE4E0;
  --line-2: #EBEEEC;
  --muted: #66716A;
  --soft: #F6F8F7;
  --danger: #C2412D;
  --ok: #16834A;
  --warn: #B26A00;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(24, 37, 29, .05), 0 8px 24px rgba(24, 37, 29, .06);
  --brand: #18251D;
  --hi: #B7FF72;
  --hi-d: #9BEA4F;
  --on-hi: #18251D;
  --tint: #F1FBE7;
  --ring: rgba(183, 255, 114, .55);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hide-sm { }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(240, 242, 245, .86); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(24, 37, 29, .06); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand img { height: 34px; width: auto; }
.topnav { display: flex; gap: 4px; align-items: center; }
.navbtn { background: none; border: 0; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.navbtn:hover { background: rgba(24, 37, 29, .06); }
.count { background: var(--brand); color: var(--hi); font-size: 11px; border-radius: 20px; padding: 1px 7px; min-width: 20px; text-align: center; }

/* Hero */
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 34px; padding-bottom: 22px; flex-wrap: wrap; }
.hero h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 10px; font-weight: 800; }
.lead { margin: 0; max-width: 620px; color: var(--ink-2); font-size: 17px; }
.hero-points { list-style: none; display: flex; gap: 18px; padding: 0; margin: 0; flex-wrap: wrap; font-weight: 600; font-size: 14px; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.tick { width: 18px; height: 18px; border-radius: 6px; background: var(--brand); position: relative; flex: none; }
.tick::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid var(--hi); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Studio */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; padding-bottom: 56px; }
.pane-edit { min-width: 0; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.docinfo { display: flex; align-items: center; gap: 10px; }
.toolbar-actions { display: flex; gap: 8px; }
.badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; background: #FFF1D6; color: var(--warn); text-transform: uppercase; letter-spacing: .04em; }
.badge.paid { background: #DDF5E6; color: var(--ok); }
.badge.overdue { background: #FBE3DE; color: var(--danger); }
.saved { font-size: 13px; color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 18px 18px 16px; margin: 0 0 14px; box-shadow: var(--shadow); min-width: 0; }
.card legend { float: left; width: 100%; padding: 0; margin: 0 0 14px; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em; }
.card > :not(legend) { clear: both; }
.step { width: 24px; height: 24px; border-radius: 8px; background: var(--brand); color: var(--hi); display: inline-grid; place-items: center; font-size: 12px; font-weight: 800; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.span2 { grid-column: span 2; }
.f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.f > span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.f em { font-style: normal; color: var(--muted); font-weight: 500; }
input:not([type=checkbox]):not([type=file]), select, textarea { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 12px; font-size: 14.5px; outline: none; transition: border-color .15s, box-shadow .15s; min-width: 0; }
textarea { resize: vertical; min-height: 44px; line-height: 1.45; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2318251D' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
input::placeholder, textarea::placeholder { color: #A3ACA6; }
.check { display: flex; gap: 9px; align-items: center; font-size: 14px; margin-top: 12px; cursor: pointer; color: var(--ink-2); }
.check input { width: 17px; height: 17px; accent-color: var(--ink); }
.combo { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.combo:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.combo input, .combo select { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.combo input { flex: 1 1 0; width: auto; }
.combo select { width: auto; flex: none; border-left: 1px solid var(--line-2) !important; background-color: var(--soft); }
.combo .taxlabel { flex: 1.2; border-right: 1px solid var(--line-2) !important; }
.combo .suffix { display: grid; place-items: center; padding: 0 12px; background: var(--soft); color: var(--muted); font-weight: 600; border-left: 1px solid var(--line-2); }

/* Logo */
.logo-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.logo-drop { width: 168px; height: 72px; border: 1.5px dashed #C6CEC8; border-radius: 12px; display: grid; place-items: center; cursor: pointer; background: var(--soft); overflow: hidden; transition: border-color .15s, background .15s; }
.logo-drop:hover, .logo-drop.drag { border-color: var(--brand); background: var(--tint); }
.logo-drop img { max-width: 150px; max-height: 58px; object-fit: contain; }
.logo-empty { text-align: center; line-height: 1.2; }
.logo-empty strong { display: block; font-size: 14px; }
.logo-empty small { color: var(--muted); font-size: 12px; }
.link { background: none; border: 0; color: var(--danger); font-weight: 600; cursor: pointer; padding: 0; font-size: 13px; }

/* Client picker */
.client-pick { margin-bottom: 12px; }
.client-pick input { background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2366716A' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center; padding-left: 36px; }

/* Items */
.items-head, .item { display: grid; grid-template-columns: minmax(0, 1fr) 70px 104px 104px 34px; gap: 8px; align-items: start; }
.items-head { font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 2px 6px; }
.items-head span:nth-child(n+2):not(:last-child) { text-align: right; }
.item { padding: 8px 0; border-top: 1px solid var(--line-2); }
.item > * { min-width: 0; }
.item textarea { min-height: 42px; height: 42px; resize: none; overflow: hidden; }
.item input { text-align: right; }
.item .amt { padding: 10px 2px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .rm { width: 34px; height: 42px; border: 0; background: none; border-radius: 9px; cursor: pointer; color: #9AA39D; display: grid; place-items: center; }
.item .rm:hover { background: #FBE3DE; color: var(--danger); }
.item .save-item { grid-column: 1 / -1; justify-self: start; margin-top: -2px; background: none; border: 0; padding: 0; font-size: 12px; color: var(--muted); cursor: pointer; font-weight: 600; }
.item .save-item:hover { color: var(--ink); }
.items-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; }
.preset { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 5px 6px 5px 12px; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.preset:hover { border-color: var(--brand); }
.preset .del { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; color: #9AA39D; font-size: 14px; line-height: 1; }
.preset .del:hover { background: #FBE3DE; color: var(--danger); }

.sumbox { margin: 16px 0 0; padding: 14px 16px; background: var(--soft); border-radius: 12px; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-variant-numeric: tabular-nums; font-size: 14px; }
.sumbox dt { color: var(--muted); }
.sumbox dd { margin: 0; text-align: right; font-weight: 600; }
.sumbox .big { font-size: 17px; font-weight: 800; color: var(--ink); padding-top: 6px; border-top: 1px solid var(--line); }

/* Themes */
.themes { display: flex; gap: 10px; flex-wrap: wrap; }
.theme { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 12px 8px 8px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 13.5px; }
.theme .sw { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; }
.theme .sw i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.theme[aria-checked=true] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }

/* Buttons */
.btn { border: 0; border-radius: 12px; padding: 11px 18px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; line-height: 1.2; text-decoration: none; transition: transform .06s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn.sm { padding: 8px 13px; font-size: 13.5px; border-radius: 10px; }
.btn.mint { background: var(--hi); color: var(--on-hi); box-shadow: inset 0 -2px 0 rgba(24, 37, 29, .12); }
.btn.mint:hover { background: var(--hi-d); }
.btn.dark { background: var(--brand); color: #fff; }
.btn.dark:hover { filter: brightness(1.15); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--brand); }
.btn.danger { color: var(--danger); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Summary side card */
.pane-side { position: sticky; top: 80px; min-width: 0; }
.side-card { background: var(--brand); color: #fff; border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 14px 40px rgba(24, 37, 29, .18); }
.side-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 4px; }
.side-top small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .62); font-weight: 600; }
.side-top strong { font-size: 30px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--hi); line-height: 1.15; word-break: break-all; }
.side-num { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .08); border-radius: 8px; padding: 4px 8px; white-space: nowrap; }
.side-sum { margin: 0 0 6px; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; font-variant-numeric: tabular-nums; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.side-sum dt { color: rgba(255, 255, 255, .62); }
.side-sum dd { margin: 0; text-align: right; font-weight: 600; }
.side-note { margin: 4px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .62); line-height: 1.45; }
.btn.full { width: 100%; justify-content: center; }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: #E9EEEA; }
.btn.outline { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.btn.outline:hover { border-color: var(--hi); color: var(--hi); }

/* Preview modal */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(13, 20, 16, .62); display: flex; justify-content: center; align-items: stretch; padding: 24px; animation: fade .15s ease; }
.modal-panel { width: min(860px, 100%); background: #E6EAE7; border-radius: 18px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 18px; letter-spacing: -0.02em; }
.modal-head small { color: var(--muted); font-size: 12.5px; }
.modal-acts { display: flex; gap: 8px; align-items: center; }
.paper-stack { flex: 1; overflow: auto; padding: 22px; display: flex; flex-direction: column; gap: 18px; align-items: center; scrollbar-width: thin; }
.paper-stack svg { width: 100%; max-width: 794px; height: auto; display: block; border-radius: 4px; box-shadow: 0 1px 2px rgba(24, 37, 29, .08), 0 14px 40px rgba(24, 37, 29, .16); background: #fff; flex: none; }

/* Custom dropdown */
.cs { position: relative; min-width: 0; }
.cs select, .dp input[type=date] { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; padding: 0; border: 0; }
.cs-btn { width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 34px 10px 12px; font-size: 14.5px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; line-height: 1.45; }
.cs-btn::after { content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; border: solid var(--ink); border-width: 0 1.7px 1.7px 0; transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.cs.open .cs-btn::after { transform: translateY(-25%) rotate(225deg); }
.cs-btn:focus-visible, .cs.open .cs-btn { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); outline: none; }
.cs-panel { position: absolute; left: 0; top: calc(100% + 6px); z-index: 60; min-width: 100%; width: max-content; max-width: min(340px, 86vw); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(24, 37, 29, .16); padding: 6px; animation: pop .12s ease; }
.cs-panel.up { top: auto; bottom: calc(100% + 6px); }
.cs-panel.right { left: auto; right: 0; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.cs-search { width: 100%; border: 1px solid var(--line-2) !important; border-radius: 10px !important; padding: 8px 10px !important; margin-bottom: 6px; font-size: 14px !important; box-shadow: none !important; background: var(--soft) !important; }
.cs-list { max-height: 264px; overflow: auto; scrollbar-width: thin; }
.cs-opt { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 9px; cursor: pointer; font-size: 14px; white-space: nowrap; }
.cs-opt:hover, .cs-opt.active { background: var(--tint); }
.cs-opt[aria-selected=true] { font-weight: 700; }
.cs-opt[aria-selected=true]::after { content: ""; width: 5px; height: 10px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); margin-right: 3px; flex: none; }
.cs-empty { padding: 10px; color: var(--muted); font-size: 13.5px; }
.combo .cs { flex: none; }
.combo .cs-btn { border: 0; border-left: 1px solid var(--line-2); border-radius: 0; background: var(--soft); box-shadow: none !important; }

.dp-btn.ph { color: #A3ACA6; }
.dp-btn::after { width: 15px; height: 15px; border: 0; transform: translateY(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318251D' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat; right: 12px; }
.cs.open .dp-btn::after { transform: translateY(-50%); }
.dp-panel { width: 288px; padding: 12px; }
.dp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.dp-head strong { font-size: 15px; letter-spacing: -0.01em; }
.dp-nav { width: 32px; height: 32px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; font-size: 20px; line-height: 1; color: var(--ink); display: grid; place-items: center; padding-bottom: 3px; }
.dp-nav:hover { border-color: var(--brand); background: var(--tint); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.dp-wd { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.dp-day { aspect-ratio: 1; border: 0; background: none; border-radius: 10px; cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.dp-day:hover { background: var(--tint); }
.dp-day.today { box-shadow: inset 0 0 0 1.5px var(--brand); font-weight: 700; }
.dp-day.sel { background: var(--brand); color: var(--hi); font-weight: 700; box-shadow: none; }
.dp-foot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-2); }
.dp-foot button { border: 0; background: none; font-weight: 700; font-size: 13px; cursor: pointer; padding: 6px 8px; border-radius: 8px; color: var(--ink); }
.dp-foot button:hover { background: var(--soft); }
.term-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.term-chips button { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 3px 10px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.term-chips button:hover { border-color: var(--brand); color: var(--ink); }
.f > label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.check em.opt { font-style: normal; color: var(--muted); }
.ship-fields { margin-top: 12px; }

/* Content */
.content { padding-top: 40px; padding-bottom: 40px; border-top: 1px solid rgba(24, 37, 29, .07); }
.content h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.03em; margin: 0 0 18px; line-height: 1.15; }
.content > p { max-width: 760px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--hi); color: var(--on-hi); font-weight: 800; margin-bottom: 12px; }
.steps strong { display: block; margin-bottom: 6px; font-size: 16px; }
.steps span { color: var(--ink-2); font-size: 14.5px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.features article { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border-top: 3px solid var(--brand); }
.features h3 { margin: 0 0 6px; font-size: 16.5px; letter-spacing: -0.01em; }
.features p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.theme-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 20px; }
.theme-card { background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 10px; cursor: pointer; border: 1.5px solid transparent; text-align: left; }
.theme-card:hover { border-color: var(--brand); }
.theme-card .mini { aspect-ratio: 210 / 297; border-radius: 4px; overflow: hidden; border: 1px solid var(--line-2); position: relative; background: #fff; }
.theme-card .mini b { position: absolute; left: 0; right: 0; top: 0; height: 4%; }
.theme-card .mini i { position: absolute; right: 9%; top: 9%; width: 32%; height: 5%; border-radius: 2px; }
.theme-card .mini u { position: absolute; left: 9%; right: 9%; top: 40%; height: 4%; border-radius: 2px; }
.theme-card .mini s { position: absolute; right: 9%; width: 40%; top: 72%; height: 6%; border-radius: 3px; }
.theme-card .mini em { position: absolute; left: 9%; right: 9%; height: 1.5%; background: #E8ECE9; }
.theme-card span { display: block; font-weight: 700; font-size: 14px; margin-top: 8px; }
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: #fff; border-radius: 12px; padding: 0 18px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 600; font-size: 20px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 0 0 16px; color: var(--ink-2); }

.footer { background: var(--brand); color: rgba(255, 255, 255, .82); padding: 36px 0 110px; margin-top: 20px; }
.footer-in { display: flex; flex-direction: column; gap: 6px; }
.footer-logo { margin-bottom: 8px; height: 32px; width: auto; }
.footer p { margin: 0; }
.footer .muted { color: rgba(255, 255, 255, .55); }

/* Drawers */
.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(13, 20, 16, .45); display: flex; justify-content: flex-end; animation: fade .15s ease; }
.drawer[hidden] { display: none; }
.drawer-panel { width: min(560px, 100%); height: 100%; background: var(--bg); display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0, 0, 0, .15); animation: slide .2s ease; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(30px); opacity: .6; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); background: #fff; }
.drawer-head h2 { margin: 0; font-size: 20px; letter-spacing: -0.02em; }
.x { border: 0; background: var(--soft); width: 36px; height: 36px; border-radius: 10px; font-size: 22px; cursor: pointer; line-height: 1; }
.drawer-tools { padding: 14px 22px 4px; display: flex; flex-direction: column; gap: 10px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 6px 13px; font-size: 13px; font-weight: 600; cursor: pointer; }
.chip.active { background: var(--brand); border-color: var(--brand); color: var(--hi); }
.hist-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 22px 6px; }
.hist-stats div { background: #fff; border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow); }
.hist-stats small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.hist-stats strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.hist-list { flex: 1; overflow: auto; padding: 8px 22px 16px; display: flex; flex-direction: column; gap: 10px; }
.hcard { background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.hcard.current { outline: 2px solid var(--hi-d); }
.hcard h3 { margin: 0; font-size: 15px; letter-spacing: -0.01em; }
.hcard .sub { color: var(--muted); font-size: 13px; }
.hcard .amt { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.hcard .acts { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.hcard .acts button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 5px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.hcard .acts button:hover { border-color: var(--brand); }
.hcard .acts .del:hover { border-color: var(--danger); color: var(--danger); }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.drawer-foot { display: flex; gap: 8px; padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--brand); color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: all .2s; z-index: 100; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast b { color: var(--hi); }

.mobile-bar { display: none; }

@media (max-width: 1080px) {
  .grid3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .theme-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .studio { grid-template-columns: 1fr; gap: 0; }
  .pane-side { display: none; }
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--brand); color: #fff; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); justify-content: space-between; align-items: center; gap: 10px; }
  .mobile-bar small { display: block; font-size: 11px; color: rgba(255, 255, 255, .62); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
  .mobile-bar strong { color: var(--hi); font-size: 18px; font-variant-numeric: tabular-nums; }
  .mb-acts { display: flex; gap: 8px; }
  .mb-acts .btn { padding: 10px 14px; }
  .toast { bottom: 90px; }
  .modal { padding: 0; }
  .modal-panel { border-radius: 0; }
  .paper-stack { padding: 12px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  .hide-sm { display: none; }
  .brand img { height: 28px; }
  .navbtn { padding: 8px 9px; }
  .hero { padding-top: 20px; padding-bottom: 14px; }
  .hero-points { display: none; }
  .lead { font-size: 15.5px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .card { padding: 16px 14px 14px; }
  .items-head { display: none; }
  .item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 34px; grid-template-areas: "d d rm" "q r r" "a a a"; }
  .item textarea { grid-area: d; }
  .item .qty { grid-area: q; }
  .item .rate { grid-area: r; }
  .item .amt { grid-area: a; text-align: left; padding: 2px 2px 0; }
  .item .amt::before { content: "Amount  "; color: var(--muted); font-weight: 600; }
  .item .rm { grid-area: rm; }
  .item input { text-align: left; }
  .steps, .features { grid-template-columns: 1fr; }
  .theme-strip { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .hist-stats { padding: 10px 14px 6px; }
  .hist-list, .drawer-tools { padding-left: 14px; padding-right: 14px; }
  .toolbar-actions .btn { padding: 8px 11px; }
}
@media print {
  body * { visibility: hidden; }
  .paper-stack, .paper-stack * { visibility: visible; }
  .modal, .modal-panel { position: static; display: block; background: none; padding: 0; box-shadow: none; }
  .paper-stack { position: absolute; left: 0; top: 0; width: 100%; overflow: visible; gap: 0; padding: 0; }
  .paper-stack svg { box-shadow: none; border-radius: 0; page-break-after: always; }
  @page { size: A4; margin: 0; }
}

.footer-links { display: flex; gap: 18px; flex-wrap: wrap; margin: 6px 0 4px !important; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--hi); }

/* Custom colour */
.theme.custom .sw { background: conic-gradient(#ff5f6d, #ffc371, #b7ff72, #47c4ff, #8e7dff, #ff5f6d); }
.theme.custom.set .sw { background: var(--brand); }
.theme.custom input[type=color] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.theme.custom { position: relative; }
.custom-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.custom-row label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.custom-row .hex { width: 120px !important; font-family: ui-monospace, Menlo, Consolas, monospace; text-transform: uppercase; }
.custom-row .swatch { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; padding: 0; overflow: hidden; background: none; }
.custom-row .swatch input { width: 56px; height: 56px; margin: -8px; border: 0; padding: 0; cursor: pointer; }

/* Colour picker */
.custom-row .cs.cp { flex: none; }
.custom-row .swatch { display: block; }
.cp-panel { width: 260px; padding: 12px; }
.cp-sv { position: relative; height: 150px; border-radius: 10px; cursor: crosshair; touch-action: none; }
.cp-dot { position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 2px 6px rgba(0, 0, 0, .3); transform: translate(-50%, -50%); pointer-events: none; }
.cp-hue { -webkit-appearance: none; appearance: none; width: 100% !important; height: 14px; border-radius: 10px !important; margin: 12px 0 10px; padding: 0 !important; border: 0 !important; background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00) !important; box-shadow: none !important; cursor: pointer; }
.cp-hue::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 1px solid rgba(0, 0, 0, .2); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.cp-hue::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1px solid rgba(0, 0, 0, .2); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.cp-presets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.cp-presets button { aspect-ratio: 1; border-radius: 9px; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); transition: transform .1s; }
.cp-presets button:hover { transform: scale(1.08); }
.cp-panel .dp-foot { align-items: center; }

/* Hero highlights as pills */
.hero { display: block; }
.hero-points { margin-top: 16px; gap: 8px; font-size: 13px; }
.hero-points li { background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px 6px 8px; gap: 7px; box-shadow: var(--shadow); color: var(--ink-2); }
.hero-points .tick { width: 18px; height: 18px; border-radius: 50%; background: var(--hi); }
.hero-points .tick::after { left: 6.5px; top: 3.5px; width: 4px; height: 8px; border-color: var(--on-hi); }

/* Footer */
.footer { padding: 56px 0 28px; margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 40px; }
.foot-brand p { margin: 14px 0 18px; max-width: 360px; color: rgba(255, 255, 255, .72); font-size: 14.5px; line-height: 1.6; }
.foot-brand .footer-logo { height: 34px; width: auto; margin: 0; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h3 { margin: 4px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .5); font-weight: 700; }
.foot-col a { color: rgba(255, 255, 255, .86); text-decoration: none; font-size: 14.5px; font-weight: 500; width: fit-content; }
.foot-col a:hover { color: var(--hi); }
.foot-maker .maker { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.foot-maker p { margin: 0; color: rgba(255, 255, 255, .62); font-size: 13.5px; line-height: 1.55; }
.foot-maker .maker-link { color: var(--hi); font-weight: 700; font-size: 13.5px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: rgba(255, 255, 255, .55); }
.foot-bottom a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--hi); }
.foot-bottom a:hover { color: var(--hi); }
@media (max-width: 980px) {
  .footer { padding-bottom: 100px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .foot-maker { grid-column: 1 / -1; }
}
.hero-points li { align-items: center; padding: 6px 14px 6px 6px; font-weight: 600; }
.hero-points .tick { display: grid; place-items: center; width: 22px; height: 22px; }
.hero-points .tick::after { position: static; left: auto; top: auto; width: 5px; height: 9px; margin-top: -2px; border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* Bigger logo */
.topbar-in { height: 72px; }
.brand img { height: 44px; width: auto; }
.pane-side { top: 88px; }
@media (max-width: 640px) {
  .topbar-in { height: 64px; }
  .brand img { height: 36px; }
  .topnav .navbtn[data-open="clients"] { display: none; }
}
@media (max-width: 380px) {
  .brand img { height: 32px; }
}
.foot-bottom strong { color: #fff; }

/* SEO content blocks */
.answer { background: #fff; border-radius: 18px; padding: 28px; box-shadow: var(--shadow); border-left: 5px solid var(--brand); }
.answer h2 { margin-bottom: 12px; }
.answer-lead { font-size: 17.5px; line-height: 1.65; margin: 0 0 20px; max-width: 900px; color: var(--ink); }
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.facts li { background: var(--soft); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.facts strong { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.facts span { font-weight: 600; font-size: 14.5px; }
.checklist { margin: 16px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; counter-reset: c; }
.checklist li { counter-increment: c; background: #fff; border-radius: 12px; padding: 12px 14px 12px 50px; position: relative; box-shadow: var(--shadow); font-size: 14.5px; color: var(--ink-2); }
.checklist li::before { content: counter(c); position: absolute; left: 12px; top: 11px; width: 26px; height: 26px; border-radius: 8px; background: var(--brand); color: var(--hi); font-weight: 800; font-size: 12.5px; display: grid; place-items: center; }
.checklist strong { color: var(--ink); }
.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.uses article { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.uses h3 { margin: 0 0 6px; font-size: 16px; }
.uses p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.more-link { margin: 18px 0 0; }
.more-link a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--hi-d); text-decoration-thickness: 3px; text-underline-offset: 4px; }
@media (max-width: 1080px) { .facts, .uses { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .facts, .uses, .checklist { grid-template-columns: 1fr; } .answer { padding: 20px; } }
