.brand i.brand-mark{width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;font-size:0;color:transparent}
.brand-mark img{display:block;width:100%;height:100%;object-fit:contain}
.speed-control{flex-wrap:wrap;gap:8px}
.speed-stepper{display:inline-flex;align-items:center;gap:5px;padding:4px;background:#091619;border:1px solid #395452;border-radius:12px}
.speed-step{width:38px;height:38px;border:0;border-radius:8px;background:#1d3735;color:#b5f2d9;font-size:24px;font-weight:700;line-height:1}
.speed-step:hover{background:#2a5049}
.speed-stepper input{width:70px;min-height:38px;border:0;background:transparent;color:var(--ink);text-align:center;font:700 18px Manrope,system-ui,sans-serif;appearance:textfield}
.speed-stepper input::-webkit-inner-spin-button,.speed-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.default-speed-form{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:18px 0;padding:18px;border:1px solid var(--line);border-radius:14px;background:#0c191d}
.default-speed-control{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-weight:700}
.default-speed-control>small{color:var(--muted)}
.manual-form{margin:16px 0 0;padding:18px;background:#0b1a1e;border-color:#477068}
.manual-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}
.manual-heading .eyebrow{margin:0 0 5px}
.manual-heading h3{margin:0}
.icon-button{width:40px;height:40px;border:1px solid var(--line);border-radius:10px;background:#14282d;color:var(--ink);font-size:24px}
.manual-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.manual-fields label{display:grid;gap:6px;color:#d9e9e2;font-size:13px;font-weight:700}
.manual-fields label small{display:inline;color:var(--muted);font-weight:500}
.manual-fields input{width:100%;min-width:0;min-height:46px;padding:8px 10px;border:1px solid #3c5558;border-radius:9px;background:#081518;color:var(--ink);font:600 16px Manrope,system-ui,sans-serif;color-scheme:dark}
.manual-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}
.form-error{min-height:0;margin:8px 0 0;color:#ffb4ab;font-size:13px}
.history .history-item{grid-template-columns:minmax(120px,1fr) auto auto auto;gap:14px}
.activity-row-actions{display:flex;gap:7px}
.history .history-item.editing-activity .activity-row-actions{display:none}
.activity-row-actions button{border:1px solid #47615e;border-radius:8px;background:#13272a;color:#d8ebe3;padding:8px 10px;font:600 12px Manrope,system-ui,sans-serif}
.activity-row-actions .delete-activity{color:#ffc2b9;border-color:#684747;background:#2d2022}
.activity-edit-form{grid-column:1/-1;margin:8px 0 14px}
.stamps{grid-template-columns:repeat(auto-fit,minmax(155px,1fr))}
.stamp.seal-stamp{position:relative;overflow:hidden;gap:7px;min-height:190px;padding:16px 11px;border:1px solid hsl(var(--seal-hue) 45% 37%);border-radius:16px;background:radial-gradient(circle at 50% 36%,hsl(var(--seal-hue) 35% 19%),#0b171a 73%);color:#a7bbb4}
.stamp.seal-stamp::before{content:'';position:absolute;inset:8px;border:1px dashed hsl(var(--seal-hue) 40% 39% / .72);border-radius:12px;pointer-events:none}
.stamp.seal-stamp.earned{background:radial-gradient(circle at 50% 36%,hsl(var(--seal-hue) 63% 27%),#111c1c 76%);border-color:hsl(var(--seal-hue) 75% 51%);color:#ffdf8e;box-shadow:inset 0 0 24px hsl(var(--seal-hue) 70% 45% / .12)}
.seal-shell{position:relative;z-index:1;width:62px;height:62px;object-fit:contain;filter:grayscale(1);opacity:.3}
.earned .seal-shell{filter:none;opacity:1;filter:drop-shadow(0 3px 10px #f7c44144)}
.stamp.seal-stamp strong{z-index:1;color:inherit;font-size:14px;line-height:1.3}
.stamp.seal-stamp small{z-index:1;color:var(--muted);font-size:11px}
.reward-shell{width:25px;height:25px;object-fit:contain;vertical-align:middle;filter:drop-shadow(0 2px 6px #f4c45155)}
.sidebar nav button{font-size:16px}
.sidebar nav button span{font-size:16px}
.mobile button{font-size:23px}
.mobile button span{font-size:12px}
@media(max-width:900px){.manual-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.default-speed-form{align-items:flex-start;flex-direction:column}}
@media(max-width:760px){.history .history-item{grid-template-columns:minmax(0,1fr) auto;gap:7px}.activity-row-actions{grid-column:1/-1;justify-content:flex-end}.activity-edit-form{grid-column:1/-1}.manual-form{padding:14px}.manual-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.manual-fields{grid-template-columns:1fr 1fr}.manual-fields input{font-size:15px}.speed-control{justify-content:flex-start}.default-speed-form{padding:14px}.stamps{grid-template-columns:repeat(2,minmax(0,1fr))}.stamp.seal-stamp{min-height:170px}}

.history-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}
.default-speed-form{flex-wrap:wrap}
.default-speed-form .default-speed-control{min-width:220px}
@media(max-width:760px){.history-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

.history-panel{background:none;border:0;padding:0}
.history-panel>.head{padding:8px 0}
.history-day{margin-top:26px;border:1px solid #496660;border-left:4px solid var(--teal);border-radius:16px;overflow:hidden;background:linear-gradient(145deg,#14292d,#0e1c20);box-shadow:0 8px 24px #0003}
.history-day-summary{display:flex;height:auto;min-height:0;align-items:center;justify-content:space-between;gap:16px;margin:0;padding:20px 22px;background:#1c3738;border-bottom:1px solid #496660}
.history-day-summary h3{margin:0;font-size:18px;text-transform:capitalize}
.history-day-summary small{color:var(--muted);white-space:nowrap}
.history-table-scroll{overflow-x:auto;padding:0 18px 18px;outline-offset:-3px}
.history-table{width:100%;min-width:920px;table-layout:fixed;border-collapse:collapse;font-variant-numeric:tabular-nums}
.history-session-col{width:18%}.history-value-col{width:13%}.history-actions-col{width:17%}
.history-table th,.history-table td{text-align:left;padding:16px 10px;vertical-align:middle;border-bottom:1px solid var(--line);font-size:13px}
.history-table thead th{color:var(--muted);font-size:12px;font-weight:600}
.history-table thead th>span{display:flex;align-items:center;gap:7px}
.history-table svg{width:23px;height:23px;flex:0 0 23px;fill:none;stroke:var(--teal);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.history-table .history-day-totals{background:#203d3b;color:var(--teal);font-weight:800}
.history .history-table .history-item{display:table-row}
.history-table .history-item th{padding-left:30px;font-weight:600;position:relative}
.history-table .history-item th::before{content:'↳';position:absolute;left:10px;color:#6d958b}
.history-table .history-item td{color:var(--ink)}
.history-table .history-item:last-child>*{border-bottom:0}
.history-table .history-actions{white-space:normal}
.history-table .activity-row-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.history-table .share-mini{margin-top:0}
.history-day>.activity-edit-form{margin:0 18px 18px}
@media(max-width:760px){.history-day-summary{align-items:flex-start;padding:16px;flex-direction:column;gap:6px}.history-table-scroll{padding:0 10px 10px}.history-day>.activity-edit-form{margin:0 10px 10px}}

.history-session-col{width:16%}.history-value-col{width:12%}.history-actions-col{width:24%}
.history-table .history-actions{white-space:nowrap}
.history-table .history-actions .share-mini,.history-table .activity-row-actions button{display:inline-flex;align-items:center;justify-content:center;height:34px;min-height:34px;margin:0;padding:0 9px;vertical-align:middle;box-sizing:border-box;font:600 12px Manrope,system-ui,sans-serif}
.history-table .activity-row-actions{display:inline-flex;flex-wrap:nowrap;gap:5px;margin:0 0 0 5px;vertical-align:middle}
.history-table .history-item:last-child>*{border-bottom:1px solid var(--line)}
.history-table .history-day-totals>*{border-top:2px solid #608e81;border-bottom:0}
