/* c00kie reminders (web) look: fixed Team HQ look - matte black, Aston red, Barlow Condensed headings + Barlow text (same as aston-hub-app theme.ts). */
:root {
  --bg: #0a0a0a; --card: #151515; --card2: #1b1b1b; --line: #262626; --sep: #262626; --line2: #3a3a3a;
  --fg: #f2f2f2; --mut: #8f8f8f; --dim: #5c5c5c;
  --brand: #e3262c; --btn: #e3262c; --press: #c41e24; --ink: #fff; --off: #3a3a3a; --knob: #fff; --icInk: #fff; --red: #e3262c;
  --fd: 'Barlow Condensed'; --fx: 'Barlow';
  --top: env(safe-area-inset-top, 0px); --bot: env(safe-area-inset-bottom, 0px);
  --barH: calc(max(var(--bot), 14px) + 59px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); overflow: hidden; }
body { font-family: var(--fx), system-ui, sans-serif; font-size: 16px; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: var(--fg); }
svg { display: block; flex: none; }
[hidden] { display: none !important; }

/* text */
.h { font-family: var(--fd), sans-serif; font-weight: 800; text-transform: uppercase; font-size: calc(var(--s, 22) * 1px); letter-spacing: .8px; line-height: 1.1; margin: 0; }
.nc { text-transform: none; }
.b { font-size: calc(var(--s, 16) * 1px); line-height: 1.35; }
.m { font-weight: 500; } .w { font-weight: 700; }
.l { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; font-size: calc(var(--s, 13) * 1px); letter-spacing: 2px; color: var(--mut); }
.mut { color: var(--mut); } .brand { color: var(--brand); } .red { color: var(--red); } .dim { color: var(--dim); }
.one { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; text-transform: uppercase; font-size: calc(var(--s, 18) * 1px); letter-spacing: 1.6px; line-height: 1; }

/* screens */
.scr { position: fixed; inset: 0; display: flex; flex-direction: column; padding-top: var(--top); background: var(--bg); }
.scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 16px 140px; }
.wrap { max-width: 640px; margin: 0 auto; width: 100%; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 10px; min-height: 56px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.row { display: flex; align-items: center; }
.gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap10 { gap: 10px; }
.flex { flex: 1; min-width: 0; }

/* buttons */
.press { transition: transform .1s, opacity .1s; }
.press:active { transform: scale(.97); opacity: .85; }
.pill { height: 48px; padding: 0 20px; border-radius: 10px; background: var(--btn); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.pill:active { background: var(--press); }
.pill.ghost { background: transparent; border: 1.5px solid var(--btn); color: var(--btn); }
.pill.small { height: 36px; padding: 0 14px; border-radius: 8px; min-width: 70px; --s: 16; }
.rbtn { width: 48px; height: 48px; border-radius: 10px; border: 1px solid var(--line2); color: var(--fg); display: inline-flex; align-items: center; justify-content: center; }
.rbtn.sm { width: 38px; height: 36px; border-radius: 8px; }
.rbtn.on { background: var(--btn); border-color: var(--btn); color: var(--ink); }
.back { height: 38px; padding: 0 6px 0 0; margin-left: -6px; color: var(--btn); display: inline-flex; align-items: center; gap: 2px; }
.back .l { color: var(--btn); font-weight: 800; --s: 19; letter-spacing: 1.5px; }
.gear { width: 38px; height: 38px; border-radius: 19px; border: 1px solid var(--line2); color: var(--fg); display: flex; align-items: center; justify-content: center; position: relative; }
.gear .dot { position: absolute; top: 0; right: 0; width: 10px; height: 10px; border-radius: 5px; background: var(--brand); }
.tog { width: 52px; height: 30px; border-radius: 8px; background: var(--off); padding: 3px; flex: none; }
.tog i { display: block; width: 24px; height: 24px; border-radius: 6px; background: var(--knob); transition: transform .25s cubic-bezier(.3, 1.5, .5, 1); }
.tog.on { background: var(--btn); } .tog.on i { transform: translateX(22px); }
.link { color: var(--brand); font-weight: 700; }

/* bottom bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px max(var(--bot), 14px); display: flex; align-items: center; justify-content: space-between; background: var(--bg); border-top: 1px solid var(--line); z-index: 5; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dots { display: flex; gap: 7px; } .dots i { width: 7px; height: 7px; border-radius: 2px; background: var(--line2); } .dots i.on { background: var(--brand); }

/* home */
.logo { height: 44px; width: auto; display: block; filter: brightness(0) invert(1); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.chip { padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line2); color: var(--mut); --s: 13; font-weight: 700; }
.chip.red { border-color: var(--red); }
.hcard { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px 11px 11px; margin-bottom: 9px; }
.hcard:active { opacity: .7; }
.hcard .h { --s: 21 !important; letter-spacing: .5px; }
.ic40 { width: 46px; height: 46px; border-radius: 10px; background: var(--brand); color: var(--icInk); display: flex; align-items: center; justify-content: center; flex: none; }
.calic { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; background: var(--card2); border: 1px solid var(--line2); flex: none; display: flex; flex-direction: column; }
.calic span { background: var(--btn); color: var(--ink); text-align: center; padding: 3px 0 2px; font: 800 10px 'Barlow Condensed'; letter-spacing: 1.5px; }
.calic b { flex: 1; display: flex; align-items: center; justify-content: center; }
.badge { min-width: 24px; height: 24px; border-radius: 12px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; padding: 0 7px; font-weight: 700; font-size: 13px; flex: none; }
.sec { margin: 18px 0 8px; display: block; }
.spacer { height: 8px; }

/* lists pager */
.pager { flex: 1; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pager::-webkit-scrollbar { display: none; }
.pager.lock, .pager.proj { overflow-x: hidden; }
.page { flex: none; width: 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow-y: auto; padding: 2px 16px 140px; }
.pager.proj .page { padding-bottom: 200px; }
.lhead { display: block; text-align: left; width: 100%; padding: 2px 0 8px; }
.avs { display: flex; align-items: center; margin-top: 8px; }
.av { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--bg); background: var(--line2); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; margin-left: -4px; }
.av:first-child { margin-left: 0; }
.ptag { margin-left: 10px; padding: 2px 8px; border-radius: 999px; background: var(--brand); color: #fff; font: 700 11px 'Barlow Condensed'; letter-spacing: 1.3px; text-transform: uppercase; }
.donebar { display: flex; justify-content: space-between; align-items: center; padding: 12px 0 4px; --s: 14; font-weight: 600; }
.ghead { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding-bottom: 4px; border-bottom: 2px solid var(--brand); }
.ghead .name { flex: 1; min-width: 0; text-align: left; }
.ghead .h { letter-spacing: 1.2px; }
.ghead .plus { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; color: var(--brand); }
.empty { text-align: center; padding: 40px 0; color: var(--mut); }

/* reminder row */
.rr { display: flex; align-items: flex-start; gap: 12px; border-radius: 8px; width: 100%; text-align: left; transition: background .3s; }
.rr.flash { background: color-mix(in srgb, var(--brand) 22%, transparent); }
.chk { width: 24px; height: 24px; margin-top: 11px; border-radius: 6px; border: 1.5px solid var(--line2); background: var(--card2); display: flex; align-items: center; justify-content: center; flex: none; color: var(--ink); position: relative; }
.chk::after { content: ""; position: absolute; inset: -10px; }
.chk.on { border-color: var(--brand); background: var(--brand); }
.chk.dim { opacity: .3; }
.rbody { flex: 1; min-width: 0; padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; min-height: 46px; }
.rbody.t { padding: 12px 0; }
.rtext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rtitle { font-weight: 700; overflow-wrap: anywhere; }
.rr.muted .rtitle { color: var(--mut); text-decoration: line-through; text-decoration-color: var(--line2); }
.meta { display: flex; align-items: center; gap: 5px; --s: 14; color: var(--mut); }
.meta.late { color: var(--red); font-weight: 700; }
.sqbtn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line2); color: var(--brand); display: flex; align-items: center; justify-content: center; flex: none; }
.sqbtn.soft { color: var(--mut); }
.addin { flex: 1; background: none; border: 0; outline: 0; padding: 12px 0; font-size: 16px; font-weight: 600; }
.addin::placeholder, input::placeholder, textarea::placeholder { color: var(--dim); }

/* project notepad: Pull-Up Pad (sits above the bar, slides up over it) */
.drawer { position: fixed; left: 0; right: 0; z-index: 6; max-width: 640px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; box-shadow: 0 -12px 30px rgba(0, 0, 0, .7); display: flex; flex-direction: column; overflow: hidden;
  top: calc(100% - var(--barH) - 84px); bottom: var(--barH); transition: top .35s cubic-bezier(.3, 1.1, .5, 1), bottom .35s cubic-bezier(.3, 1.1, .5, 1); }
.drawer.open { top: calc(var(--top) + 64px); bottom: 0; }
.dtap { padding: 8px 16px 8px; width: 100%; text-align: left; flex: none; }
.grab { width: 44px; height: 4px; border-radius: 4px; background: var(--line2); margin: 0 auto 9px; }
.dh { display: flex; align-items: center; justify-content: space-between; }
.chev { transition: transform .3s; display: flex; } .drawer.open .chev { transform: rotate(180deg); }
.saved { font-size: 12px; color: var(--mut); font-weight: 600; }
.peek { color: var(--mut); font-size: 14px; margin-top: 4px; }
.drawer.open .peek { display: none; }
#padIn { display: none; flex: 1; margin: 2px 14px calc(max(var(--bot), 12px) + 4px); background: var(--card2); border: 1px solid var(--line2); border-radius: 10px; padding: 12px 14px; font-size: 16px; line-height: 1.5; font-weight: 500; outline: 0; resize: none; }
.drawer.open #padIn { display: block; }

/* move mode */
.grip { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--mut); touch-action: none; cursor: grab; flex: none; }
.gbody { min-height: 14px; }
.lift { position: relative; z-index: 3; background: var(--card); border: 1px solid var(--line2); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .6); transform: scale(1.02); }
.gsec.lift { padding: 0 8px 8px; }

/* calendar */
.strip { display: flex; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.day { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
.day.today { border-color: var(--btn); }
.day.on { background: var(--btn); border-color: var(--btn); }
.day.on .l, .day.on .h { color: var(--ink); }
.day i { width: 6px; height: 6px; border-radius: 2px; background: var(--btn); }
.day.on i { background: var(--ink); }
.day i.no { opacity: 0; }
.sech { display: flex; align-items: center; margin-top: 20px; padding-bottom: 3px; }
.crow { transition: padding .26s, opacity .26s; position: relative; }
.crow.pick { padding-left: 16px; }
.crow.pick::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: -8px; right: -8px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 14%, transparent); }
.crow.fade { opacity: .5; }

/* settings */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.card > .l { color: var(--mut) !important; --s: 13 !important; }
.sel { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 52px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line2); width: 100%; text-align: left; }
.sel .v { flex: 1; font-weight: 700; font-size: 16px; }
.sel > svg:last-child { color: var(--btn); }
.srow { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line2); width: 100%; text-align: left; }
.srow:active { opacity: .7; }
.srow .v { flex: 1; font-weight: 700; font-size: 16px; }

/* setup */
.setup .logo { align-self: flex-start; }
.setup { display: flex; flex-direction: column; gap: 18px; padding: 16vh 24px 40px; max-width: 420px; margin: 0 auto; width: 100%; }
.seg { display: flex; gap: 8px; }
.seg button { flex: 1; height: 48px; border-radius: 10px; border: 1px solid var(--line2); color: var(--mut); font-weight: 700; }
.seg button.on { background: var(--btn); border-color: var(--btn); color: var(--ink); }
.seg.kind { width: 100%; }
.field { width: 100%; background: var(--card2); border: 1px solid var(--line2); border-radius: 10px; padding: 0 14px; height: 52px; font-size: 17px; font-weight: 600; outline: 0; }

/* layers: sheets and full pages that slide up */
.layer { position: fixed; inset: 0; z-index: 20; }
.shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); animation: fade .2s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 75%; background: var(--bg); border-top: 1px solid var(--line2); border-radius: 14px 14px 0 0; padding-bottom: calc(var(--bot) + 12px); display: flex; flex-direction: column; animation: up .25s cubic-bezier(.2, .8, .3, 1); max-width: 640px; margin: 0 auto; }
.sheet.full { top: calc(var(--top) + 10px); max-height: none; }
.shead { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 12px; }
.shead .t { font-family: 'Barlow Condensed'; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; font-size: 19px; }
.shead > :first-child { min-width: 70px; text-align: left; font-weight: 600; }
.sbody { overflow-y: auto; padding: 0 16px 8px; flex: 1; }
.pick { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pick button { display: flex; align-items: center; gap: 12px; padding-left: 16px; min-height: 52px; width: 100%; text-align: left; font-weight: 600; }
.pick button:active { background: var(--card2); }
.pick .in { flex: 1; display: flex; align-items: center; gap: 10px; align-self: stretch; padding-right: 16px; border-bottom: 1px solid var(--line); min-width: 0; }
.pick button:last-child .in { border-bottom: 0; }
.pick .in > span:first-child { flex: 1; }
.pick svg { color: var(--btn); }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

/* reminder details + list info */
.grp { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 18px; }
.inp { display: block; width: 100%; background: none; border: 0; outline: 0; padding: 12px 16px; font-size: 16px; font-weight: 600; resize: none; }
.sep { height: 1px; background: var(--line); margin-left: 16px; }
.drow { display: flex; align-items: center; gap: 12px; padding: 0 14px; min-height: 52px; width: 100%; text-align: left; font-weight: 600; }
button.drow:active { background: var(--card2); }
.drow .ic { width: 22px; display: flex; justify-content: center; color: var(--brand); }
.drow .lab { flex: 1; padding: 8px 0; }
.drow .val { color: var(--mut); max-width: 55%; font-weight: 500; }
.drow > svg:last-child { color: var(--mut); }
.native { margin: 0 14px 10px; background: var(--card2); border: 1px solid var(--line2); border-radius: 8px; padding: 7px 10px; font-size: 16px; color-scheme: dark; accent-color: var(--brand); outline: 0; }
.delbtn { width: 100%; min-height: 50px; color: var(--red); font-weight: 700; }
.bigic { width: 80px; height: 80px; border-radius: 16px; background: var(--brand); color: var(--icInk); display: flex; align-items: center; justify-content: center; }
.liname { width: 100%; text-align: center; font-family: 'Barlow Condensed'; font-weight: 800; letter-spacing: .5px; font-size: 24px; color: var(--fg); background: var(--card2); border: 1px solid var(--line2); border-radius: 10px; padding: 11px; outline: 0; }
.lidesc { width: 100%; text-align: center; font-size: 15px; color: var(--mut); background: none; border: 0; outline: 0; }
.person { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 8px; border: 1px solid var(--line2); --s: 15; font-weight: 600; }
.person .av { margin: 0; border: 0; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--bot) + 84px); background: var(--card); border: 1px solid var(--line2); border-left: 4px solid var(--red); padding: 10px 18px; border-radius: 8px; font-size: 15px; font-weight: 600; z-index: 50; pointer-events: none; white-space: nowrap; }
