/* Nineteen shared welcome layouts. Each theme owns its colors in either app mode. */
.checkin-settings,.checkin-welcome-screen{max-width:560px;margin:0 auto}
.checkin-welcome,.welcome-design-option{--welcome-paper:#faf8ee;--welcome-ink:#243f35;--welcome-muted:#56675e;--welcome-accent:#5650bd}
.checkin-welcome{position:relative;isolation:isolate;display:flex;flex-direction:column;overflow:hidden;border:1px solid #66765d22;border-radius:26px;background:var(--welcome-paper);color:var(--welcome-ink);box-shadow:0 10px 34px #14271e0b}
.welcome-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;z-index:1}
.welcome-status{font-size:13px;font-weight:600;padding:5px 10px;background:#e1eddf;border-radius:30px;color:#2e5943}
.welcome-wordmark{font-size:12px;font-weight:600;letter-spacing:.03em;color:var(--welcome-muted)}
.welcome-art{height:170px;overflow:hidden;flex:none}
.welcome-art img{width:100%;height:100%;object-fit:cover;object-position:center 48%;display:block}
.welcome-copy{position:relative;padding:22px 24px 12px;text-align:center}
.welcome-copy .welcome-kicker,.workflow .welcome-copy .welcome-kicker{margin:0 0 12px;font-size:13px;line-height:1.7;color:var(--welcome-muted);font-weight:600}
.welcome-copy .welcome-thought,.workflow .welcome-copy .welcome-thought{margin:0;font-family:'Noto Sans Khmer',sans-serif;font-size:26px;line-height:1.8;font-weight:600;letter-spacing:0;color:var(--welcome-ink);overflow-wrap:anywhere}
.welcome-copy .welcome-reflection,.workflow .welcome-copy .welcome-reflection{margin:14px 0 0;font-family:'Noto Sans Khmer',sans-serif;font-size:16px;line-height:1.95;color:var(--welcome-muted);overflow-wrap:anywhere}
.welcome-footer{position:relative;padding:10px 22px 14px;margin-top:auto;z-index:1}
.welcome-footer .welcome-receipt,.workflow .welcome-footer .welcome-receipt{margin:0 0 12px;text-align:center;font-size:12px;line-height:1.7;color:var(--welcome-muted);overflow-wrap:anywhere}
.welcome-footer>button.primary,.workflow .welcome-footer>button.primary{display:block;width:100%;min-height:48px;border:0;border-radius:16px;background:var(--welcome-accent);color:#fff;box-shadow:0 5px 16px #30217118;font-size:17px}
.welcome-footer .welcome-countdown,.workflow .welcome-footer .welcome-countdown{margin:10px 0 0;font-size:12px;line-height:1.7;text-align:center;color:var(--welcome-muted)}
.welcome-progress{height:3px;margin:10px auto 0;width:74px;overflow:hidden;border-radius:9px;background:#8b87b333}
.welcome-progress span{display:block;width:100%;height:100%;background:var(--welcome-accent);transform-origin:left;animation:welcome-clock 60s linear forwards}
@keyframes welcome-clock{to{transform:scaleX(0)}}
/* Garden: full-width curved photograph and a calm centered message. */
.welcome-garden .welcome-art{border-radius:0 0 48% 10%/0 0 14% 9%;height:180px}
.welcome-garden .welcome-copy:before{content:'✧';position:absolute;top:8px;right:16px;color:#91a586;font-size:24px}
/* Riverside: a tall arched postcard, with a paper message overlapping its base. */
.welcome-riverside{--welcome-paper:#fff0df;--welcome-ink:#65432e;--welcome-muted:#795b48;--welcome-accent:#aa5834}
.welcome-riverside .welcome-status{background:#ffe2bc;color:#754522}
.welcome-riverside .welcome-art{height:200px;margin:0 20px;border-radius:130px 130px 12px 12px}
.welcome-riverside .welcome-copy{margin:-27px 14px 0;padding:20px 16px 14px;border:1px solid #b68c6b2b;border-radius:18px;background:#fffaf2;box-shadow:0 8px 16px #7e51270a}
.welcome-riverside .welcome-copy .welcome-kicker{margin-bottom:8px}
.welcome-riverside .welcome-copy .welcome-thought{font-size:25px}
.welcome-riverside .welcome-footer{padding-top:18px}
/* Studio: typography first, offset framed art, lilac and citrus accents. */
.welcome-studio{--welcome-paper:#eeebfc;--welcome-ink:#393060;--welcome-muted:#65597e;--welcome-accent:#5c45b6}
.welcome-studio .welcome-status{background:#dad3f5;color:#49377b}
.welcome-studio .welcome-copy{order:1;text-align:left;padding:12px 25px 18px}
.welcome-studio .welcome-copy:before{content:'“';position:absolute;right:22px;top:-28px;font-family:Georgia,serif;font-size:100px;line-height:1;color:#7d68bf22;z-index:-1}
.welcome-studio .welcome-art{order:2;height:155px;margin:0 22px 8px 35px;border-radius:45px 12px 45px 12px;box-shadow:-10px 7px 0 #d8e493}
.welcome-studio .welcome-footer{order:3;padding-top:18px}
/* Rooftop: immersive twilight photo behind a legible indigo gradient. */
.welcome-rooftop{--welcome-paper:#252a4e;--welcome-ink:#fff8ec;--welcome-muted:#e4dced;--welcome-accent:#f4d29a;min-height:605px;border-color:#4e4a6c}
.welcome-rooftop .welcome-art{position:absolute;inset:38px 0 auto;height:235px;z-index:-2}
.welcome-rooftop .welcome-art img{object-position:50% 35%}
.welcome-rooftop:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#151c3e45 0px,#1d204f00 100px,#232541b0 210px,#232541 280px)}
.welcome-rooftop .welcome-top{margin-bottom:170px}
.welcome-rooftop .welcome-status{background:#ffedcfed;color:#59442a}
.welcome-rooftop .welcome-wordmark{color:#fff}
.welcome-rooftop .welcome-copy{padding-top:24px;text-align:left}
.welcome-rooftop .welcome-copy .welcome-kicker{color:#f7d9a4}
.welcome-rooftop .welcome-footer>button.primary,.workflow .welcome-rooftop .welcome-footer>button.primary{color:#302d48}
.welcome-rooftop .welcome-progress{background:#ffffff29}
.welcome-design-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:20px 0}
.welcome-design-option,.workflow .welcome-design-option{display:flex;flex-direction:column;align-items:stretch;text-align:left;padding:0;overflow:hidden;border:1px solid #7b76872a;border-radius:20px;background:var(--welcome-paper);color:var(--welcome-ink);box-shadow:none}
.welcome-design-option img{display:block;width:100%;height:100px;object-fit:cover}
.welcome-design-option strong{font-size:16px;padding:12px 12px 4px;font-weight:600}
.welcome-design-option>span{padding:0 12px 12px;font-size:13px;color:var(--welcome-muted)}
.welcome-design-option.welcome-rooftop{min-height:0}
.welcome-design-option.welcome-rooftop:after{display:none}
.checkin-settings>p.note,.workflow .checkin-settings>p.note{font-size:16px;line-height:1.8;background:none;padding:0;margin:14px 0}
@media(max-width:360px){.welcome-top{padding:12px;gap:6px}.welcome-status{font-size:12px}.welcome-wordmark{font-size:11px}.welcome-copy{padding:18px 16px 10px}.welcome-copy .welcome-thought,.workflow .welcome-copy .welcome-thought{font-size:24px}.welcome-art,.welcome-garden .welcome-art{height:155px}.welcome-riverside .welcome-art{height:175px;margin:0 12px}.welcome-riverside .welcome-copy{margin-inline:8px;padding:16px 12px 12px}.welcome-studio .welcome-copy{padding:10px 18px 16px}.welcome-studio .welcome-art{height:135px;margin-right:16px;margin-left:26px}.welcome-footer{padding-inline:16px}.welcome-rooftop{min-height:580px}.welcome-rooftop .welcome-art{height:220px}.welcome-rooftop .welcome-top{margin-bottom:150px}.welcome-design-grid{gap:10px}.welcome-design-option strong{font-size:14px}}
@media(min-width:700px){.workflow .welcome-art,.workflow .welcome-garden .welcome-art,.workflow .welcome-riverside .welcome-art{height:260px}.workflow .welcome-studio .welcome-art{height:230px}.workflow .welcome-rooftop .welcome-top{margin-bottom:190px}}
@media(prefers-reduced-motion:reduce){.welcome-progress span{animation:none}}
/* Lotus: circular portrait, quiet concentric rings, centered jade typography. */
.welcome-lotus{--welcome-paper:#eaf5ee;--welcome-ink:#194f47;--welcome-muted:#456b61;--welcome-accent:#29786d}
.checkin-welcome.welcome-lotus{background:radial-gradient(ellipse at 50% 30%,#ffffff 0 29%,#cde5d966 29.3% 30%,transparent 30.3%),var(--welcome-paper)}
.checkin-welcome.welcome-lotus .welcome-art{width:200px;height:200px;align-self:center;border-radius:50%;border:7px solid #fff;box-shadow:0 0 0 8px #c8e2d9}
.welcome-lotus .welcome-copy{padding-top:26px}.welcome-lotus .welcome-thought{font-weight:600}
/* Bamboo: diagonal landscape and a vertical line carrying the message. */
.welcome-bamboo{--welcome-paper:#f4f0da;--welcome-ink:#35472d;--welcome-muted:#5b6445;--welcome-accent:#546a39}
.checkin-welcome.welcome-bamboo{border-radius:8px 38px 8px 38px}
.checkin-welcome.welcome-bamboo .welcome-art{height:210px;clip-path:polygon(0 0,100% 0,100% 82%,0 100%)}
.welcome-bamboo .welcome-copy{margin:4px 20px 14px;padding:8px 0 8px 15px;text-align:left;border-left:3px solid #abb578}
.welcome-bamboo .welcome-footer>button.primary{border-radius:8px 22px 8px 22px}
/* Coast: type above the horizon, ocean image at the base of a wave. */
.welcome-coast{--welcome-paper:#e9f7fa;--welcome-ink:#205368;--welcome-muted:#456c79;--welcome-accent:#246d86}
.welcome-coast .welcome-copy{order:1;padding-top:8px;padding-bottom:22px}
.checkin-welcome.welcome-coast .welcome-art{order:2;height:175px;border-radius:45% 0 0 0/20% 0 0 0}
.welcome-coast .welcome-footer{order:3;background:#fff7e7;padding-top:18px}
.welcome-coast .welcome-status{background:#cfe9ef;color:#245c6d}
/* Library: an editorial side portrait beside a large typographic column. */
.welcome-library{--welcome-paper:#f5eee3;--welcome-ink:#58383b;--welcome-muted:#775a57;--welcome-accent:#823f48}
.checkin-welcome.welcome-library{display:grid;grid-template-columns:27% minmax(0,1fr);border-radius:10px}
.welcome-library .welcome-top,.welcome-library .welcome-footer{grid-column:1/-1}
.checkin-welcome.welcome-library .welcome-art{grid-column:1;grid-row:2;height:100%;min-height:280px;border-radius:0 45px 0 0}
.welcome-library .welcome-copy{grid-column:2;grid-row:2;text-align:left;padding:12px 15px 22px}
.welcome-library .welcome-copy .welcome-thought{font-size:24px}
.welcome-library .welcome-copy .welcome-kicker{border-top:2px solid #ad7e7b;padding-top:12px}
.welcome-library .welcome-footer{padding-top:20px}.welcome-library .welcome-status{background:#ead8d5;color:#713943}
/* Coffee: an inset polaroid, paper tape, and a warm letter below it. */
.welcome-coffee{--welcome-paper:#ede1ce;--welcome-ink:#583e2c;--welcome-muted:#725b48;--welcome-accent:#825437}
.checkin-welcome.welcome-coffee .welcome-art{position:relative;height:185px;margin:7px 26px 0 23px;overflow:visible;border:9px solid #fffaf1;border-bottom-width:22px;transform:rotate(-3deg);box-shadow:0 7px 14px #6848291a}
.welcome-coffee .welcome-art:after{content:'';position:absolute;width:70px;height:22px;background:#d5b681aa;left:calc(50% - 35px);top:-19px;transform:rotate(7deg)}
.welcome-coffee .welcome-copy{text-align:left;margin:20px 20px 8px;padding:8px 3px 18px;border-bottom:1px dashed #b2997a}
.welcome-coffee .welcome-status{background:#dfd0b8;color:#61482e}
/* Rain: window panes above a floating slate message panel. */
.welcome-rain{--welcome-paper:#dfe9ed;--welcome-ink:#294957;--welcome-muted:#506673;--welcome-accent:#3d657b}
.checkin-welcome.welcome-rain .welcome-art{position:relative;height:215px;margin:0 18px;border:5px solid #f5fafc;border-radius:15px 15px 0 0}
.welcome-rain .welcome-art:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent 49%,#f5fafc 49% 51%,transparent 51%);border-bottom:5px solid #f5fafc}
.welcome-rain .welcome-copy{margin:-24px 32px 12px;padding:20px 14px;border-radius:10px;background:#f6fafb;box-shadow:0 9px 20px #29495715;text-align:left}
.welcome-rain .welcome-status{background:#c4dce4;color:#284b60}
/* Mountain: panoramic ridgeline inside a geometric summit frame. */
.welcome-mountain{--welcome-paper:#eff3f1;--welcome-ink:#244b47;--welcome-muted:#526d67;--welcome-accent:#35695e}
.checkin-welcome.welcome-mountain .welcome-art{height:200px;clip-path:polygon(0 20%,35% 0,64% 14%,100% 0,100% 100%,0 100%);margin-top:5px}
.welcome-mountain .welcome-copy{padding-top:18px;background:linear-gradient(145deg,#d8e6df80,transparent 65%)}
.welcome-mountain .welcome-copy .welcome-kicker{display:inline-block;border-bottom:2px solid #abc0b3;padding-bottom:10px}
.welcome-mountain .welcome-footer{border-top:1px solid #b5ccc366;padding-top:16px}
/* Craft: checkerboard accents and a bold cropped-corner photo. */
.welcome-market{--welcome-paper:#fff0d0;--welcome-ink:#633d31;--welcome-muted:#7c5744;--welcome-accent:#af523a}
.checkin-welcome.welcome-market .welcome-art{height:180px;margin:0 16px;clip-path:polygon(0 0,86% 0,100% 22%,100% 100%,14% 100%,0 78%)}
.welcome-market .welcome-copy{text-align:left;margin:15px 16px 12px;padding:18px;border:2px solid #dba779;background:#fffaf0;box-shadow:6px 6px 0 #d6977440}
.welcome-market .welcome-top{border-top:10px solid #dc9b78;border-image:repeating-linear-gradient(90deg,#dc9b78 0 18px,#f9dba1 18px 36px) 10}
.welcome-market .welcome-status{background:#f7d6a2;color:#74482a}
/* Lantern: an illuminated portrait capsule framed in gold on plum. */
.welcome-lantern{--welcome-paper:#38283f;--welcome-ink:#fff0d8;--welcome-muted:#e3ccdc;--welcome-accent:#f1cd8b}
.checkin-welcome.welcome-lantern .welcome-art{height:190px;margin:0 25px;border-radius:90px 90px 12px 12px;border:2px solid #d3aa68;box-shadow:0 0 28px #dfa35433}
.welcome-lantern .welcome-copy{margin:16px 16px 10px;padding:18px 10px;border-top:1px solid #cdb07a77;border-bottom:1px solid #cdb07a77}
.welcome-lantern .welcome-status{background:#f4d6a2;color:#5a3c31}
.welcome-lantern .welcome-footer>button.primary,.workflow .welcome-lantern .welcome-footer>button.primary{color:#3e2944}
/* Blossom: a soft scalloped image and petal-shaped quote surface. */
.welcome-blossom{--welcome-paper:#fae9e6;--welcome-ink:#6b414d;--welcome-muted:#805d63;--welcome-accent:#9f5369}
.checkin-welcome.welcome-blossom .welcome-art{height:185px;margin:0 12px;border-radius:70px 18px 70px 18px}
.welcome-blossom .welcome-copy{background:#fff9f3;margin:16px 14px 12px;padding:20px 15px;border-radius:18px 45px 18px 45px}
.welcome-blossom .welcome-status{background:#efd0d4;color:#794052}
@media(max-width:360px){.checkin-welcome.welcome-lotus .welcome-art{width:170px;height:170px}.welcome-rain .welcome-copy{margin-inline:17px}.welcome-library .welcome-copy{padding-inline:10px}.welcome-library .welcome-copy .welcome-thought{font-size:24px}.checkin-welcome.welcome-coffee .welcome-art{margin-inline:20px;height:165px}}
@media(min-width:700px){.checkin-welcome.welcome-library{grid-template-columns:35% minmax(0,1fr)}.checkin-welcome:is(.welcome-bamboo,.welcome-coast,.welcome-coffee,.welcome-rain,.welcome-mountain,.welcome-market,.welcome-lantern,.welcome-blossom) .welcome-art{height:250px}}
/* Fresh energy: acid lime, heavy ink, an offset photo and decisive type. */
.welcome-neon{--welcome-paper:#ddff7a;--welcome-ink:#152016;--welcome-muted:#35432c;--welcome-accent:#17211a}
.checkin-welcome.welcome-neon{border:3px solid #17211a;border-radius:12px;box-shadow:6px 6px 0 #17211a}
.welcome-neon .welcome-top{border-bottom:3px solid #17211a;padding:14px 16px}
.welcome-neon .welcome-status{background:#17211a;color:#ddff7a;border-radius:6px}
.checkin-welcome.welcome-neon .welcome-art{height:190px;margin:17px 22px 7px 16px;border:3px solid #17211a;border-radius:6px;box-shadow:6px 6px 0 #17211a}
.welcome-neon .welcome-copy{text-align:left;padding:20px 19px 14px}
.welcome-neon .welcome-copy .welcome-kicker{display:inline-block;border-bottom:3px solid #17211a;padding-bottom:6px}
.welcome-neon .welcome-copy .welcome-thought{font-weight:700}
.welcome-neon .welcome-footer>button.primary{border-radius:6px;box-shadow:none}
/* Next wave: pearlescent orbit, dark violet, a quiet translucent message. */
.welcome-orbit{--welcome-paper:#211b38;--welcome-ink:#f5efff;--welcome-muted:#d4c6eb;--welcome-accent:#c1acff}
.checkin-welcome.welcome-orbit{background:radial-gradient(ellipse at 85% 10%,#674cad88,transparent 55%),radial-gradient(ellipse at 5% 80%,#22647766,transparent 55%),#211b38;border:1px solid #a695d766;border-radius:34px}
.welcome-orbit .welcome-status{background:#d4c7ff;color:#322450}
.checkin-welcome.welcome-orbit .welcome-art{height:205px;margin:3px 18px;border-radius:110px 110px 24px 24px;border:2px solid #d0c2ff;box-shadow:0 0 24px #b19af93b}
.welcome-orbit .welcome-copy{margin:20px 16px 10px;padding:22px 17px;background:#ffffff0e;border:1px solid #bfaed649;border-radius:24px;box-shadow:inset 0 1px 0 #e3dbff33}
.welcome-orbit .welcome-footer>button.primary,.workflow .welcome-orbit .welcome-footer>button.primary{background:linear-gradient(115deg,#c1b1ff,#b5e8e4);color:#211b38;border-radius:30px}
/* Good vibes: a typography-first coral zine and a tilted sticker illustration. */
.welcome-pop{--welcome-paper:#ffd3cf;--welcome-ink:#512d38;--welcome-muted:#754a52;--welcome-accent:#793d56}
.checkin-welcome.welcome-pop{border:2px solid #793d56;border-radius:24px}
.welcome-pop .welcome-status{background:#fff4bc;color:#512d38;border:1px solid #793d56;transform:rotate(-3deg)}
.welcome-pop .welcome-copy{order:1;padding:10px 23px 20px;text-align:left}
.welcome-pop .welcome-copy .welcome-kicker{display:inline-block;background:#fff4bc;border:1px solid #793d56;border-radius:30px;padding:5px 12px;transform:rotate(-2deg)}
.checkin-welcome.welcome-pop .welcome-art{position:relative;order:2;height:180px;margin:0 24px 16px 20px;overflow:visible;border:6px solid #fff8ee;border-radius:8px;transform:rotate(2deg);box-shadow:5px 5px 0 #793d5640}
.welcome-pop .welcome-art img{border-radius:3px}
.welcome-pop .welcome-art:after{content:'✦';position:absolute;bottom:-17px;right:-13px;font-size:48px;line-height:1;color:#ffdd71;text-shadow:1px 1px 0 #793d56,-1px -1px 0 #793d56}
.welcome-pop .welcome-footer{order:3;padding-top:8px}
.welcome-pop .welcome-footer>button.primary{border-radius:32px}
/* Focus mode: cobalt bento tiles, cream typography and a peach action. */
.welcome-bento{--welcome-paper:#2855d9;--welcome-ink:#fff9ec;--welcome-muted:#e1e9ff;--welcome-accent:#ffcfb3}
.checkin-welcome.welcome-bento{padding:10px;gap:10px;border:0;border-radius:28px;background:#2855d9}
.welcome-bento .welcome-top{display:grid;grid-template-columns:1fr 1fr;padding:0;gap:10px}
.welcome-bento .welcome-status,.welcome-bento .welcome-wordmark{display:flex;justify-content:center;align-items:center;text-align:center;min-height:52px;border-radius:16px;padding:8px;font-size:12px}
.welcome-bento .welcome-status{background:#ffcbb7;color:#283768}.welcome-bento .welcome-wordmark{background:#e8edff;color:#284caf}
.checkin-welcome.welcome-bento .welcome-art{height:205px;border-radius:18px}
.welcome-bento .welcome-copy{--welcome-ink:#1d315a;--welcome-muted:#52627f;background:#fff9ec;border-radius:18px;padding:22px 18px;text-align:left}
.welcome-bento .welcome-copy .welcome-kicker{color:#2d55c1}
.welcome-bento .welcome-footer{padding:5px 3px 4px}
.welcome-bento .welcome-footer>button.primary,.workflow .welcome-bento .welcome-footer>button.primary{background:#ffcfb3;color:#26365a;border-radius:16px}
/* Your next move: monochrome editorial ticket, a confident arrow and lime action. */
.welcome-mono{--welcome-paper:#f5f4ec;--welcome-ink:#171a17;--welcome-muted:#555b50;--welcome-accent:#d8fa7b}
.checkin-welcome.welcome-mono{border:2px solid #171a17;border-radius:8px}
.welcome-mono .welcome-top{padding:15px 16px;border-bottom:2px solid #171a17}
.welcome-mono .welcome-status{background:#171a17;color:#f5f4ec;border-radius:3px}
.welcome-mono .welcome-wordmark{color:#171a17;font-weight:800}
.checkin-welcome.welcome-mono .welcome-art{height:155px;border-bottom:2px solid #171a17}
.welcome-mono .welcome-copy{text-align:left;padding:16px 20px 22px}
.welcome-mono .welcome-copy:before{content:'↗';display:block;font-family:Arial,sans-serif;font-size:58px;font-weight:400;line-height:1;margin-bottom:7px;color:#171a17}
.welcome-mono .welcome-copy .welcome-thought{font-weight:700}
.welcome-mono .welcome-footer{border-top:2px dashed #171a17;padding-top:16px}
.welcome-mono .welcome-footer>button.primary,.workflow .welcome-mono .welcome-footer>button.primary{background:#d8fa7b;color:#171a17;border:2px solid #171a17;border-radius:6px;box-shadow:3px 3px 0 #171a17}
@media(max-width:360px){.welcome-orbit .welcome-copy{padding-inline:13px;margin-inline:12px}.checkin-welcome.welcome-neon .welcome-art{height:165px}.welcome-neon .welcome-copy{padding-inline:16px}.welcome-pop .welcome-copy{padding-inline:18px}.checkin-welcome.welcome-pop .welcome-art{height:155px;margin-inline:18px}.checkin-welcome.welcome-bento .welcome-art{height:170px}.welcome-bento .welcome-copy{padding-inline:14px}}
@media(min-width:700px){.checkin-welcome:is(.welcome-neon,.welcome-orbit,.welcome-bento) .welcome-art{height:260px}.checkin-welcome.welcome-pop .welcome-art{height:235px}.checkin-welcome.welcome-mono .welcome-art{height:190px}}

/* Screen design system shared by the App, Telegram Mini App and management.
   Page styles consume these roles; print layouts keep their own paper units. */
:root {
  --text-badge:12px;
  --text-support:16px;
  --text-body:18px;
  --text-heading:20px;
  --text-title:22px;
  --text-page:28px;
  /* Functional displays: the live clock and device pairing code. */
  --text-display:32px;
  --text-clock:48px;
  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:16px;
  --space-5:20px;
  --space-6:24px;
  --space-8:32px;
  --radius-control:12px;
  --radius-card:16px;
  --radius-badge:8px;
  --control-height:44px;
  --body-leading:1.6;
  --heading-leading:1.45;
  --ui-ink:var(--ink,var(--text));
  --ui-accent:var(--primary,var(--purple));
  --ui-soft:var(--primary-soft,var(--soft-purple));
  --ui-background:var(--bg,var(--background));
  /* Keep rem-based spacing and specialized text sizes stable as body text grows. */
  font-size:16px;
}
:root[lang=km] { --body-leading:1.8;--heading-leading:1.7; }
body { font-size:var(--text-body);line-height:var(--body-leading); }
button,input,select,textarea { font-family:inherit;line-height:var(--body-leading); }
h1,h2,h3,h4,h5,h6 { font-weight:600;line-height:var(--heading-leading);overflow-wrap:anywhere; }
h1,.page-head h1,html[lang=km] h1 { font-size:var(--text-page); }
h2,h3,h4,.workflow h2,.workflow h3 { font-size:var(--text-heading); }
h5,h6 { font-size:var(--text-body); }
#sheet-title,.sheet-header h2,.workflow-heading h1,dialog .dialog-head h2 { font-size:var(--text-title);line-height:var(--heading-leading); }
html[lang=km] :is(h1,h2,h3,h4,.eyebrow,.nav-heading) { letter-spacing:0; }
p { font-size:var(--text-body);line-height:var(--body-leading); }
small,.field-hint,.workflow .field-hint { font-size:var(--text-support);line-height:var(--body-leading); }
:is(.message-card,.welcome-message,.notification-item) p { font-size:var(--text-body); }
.settings-row .label,.workflow .settings-row .label,.choice strong { font-size:var(--text-body); }
.settings-row small,.workflow .settings-row small,.choice small { font-size:var(--text-support); }
.company-menu-section>h3,.company-feature-section>h2,.account-section>h3 { font-size:var(--text-support); }
.nav-item,html[lang=km] .nav-item { font-size:var(--text-badge); }
.metric-grid strong,.stat strong,.metric strong,.service-stat strong,.service-metric strong { font-weight:600; }

/* Every control has a readable label and a dependable touch/focus target. */
button,.primary,.secondary,.workflow button,.workflow .management-table button,
.text-button,.segments button,.detail-tabs button,.table-footer button,
.login-footer button,.workflow-breadcrumb button,.notification-banner button {
  min-height:var(--control-height);
}
.primary,.secondary,.workflow .primary,.workflow .secondary {
  font-size:var(--text-body);font-weight:600;border-radius:var(--radius-control);
  padding:10px var(--space-4);line-height:var(--body-leading);gap:var(--space-2);
  overflow-wrap:anywhere;white-space:normal;
}
.primary,.workflow .primary { box-shadow:none; }
.icon-button,.topbar .avatar,.workflow-close,.detail-head .icon-button {
  width:44px;height:44px;min-width:44px;min-height:44px;flex-shrink:0;
}
.sheet-header,.workflow-heading { align-items:flex-start;gap:var(--space-3); }
.sheet-header h2 { margin-right:0; }
.sheet-header .icon-button,.workflow-close { font-size:var(--text-page);line-height:1; }
.text-button,.sheet-back,.workflow .sheet-back { display:inline-flex;align-items:center;gap:var(--space-2); }
.text-button,.sheet-back,.workflow-breadcrumb { font-size:var(--text-support); }
.button-row,.button-stack,.staff-actions,.setup-navigation,.hours-selection-tools {
  gap:var(--space-2);
}
.button-row>*,.button-stack>*,.staff-actions>* { min-width:0;max-width:100%; }
.segments { gap:var(--space-1);border-radius:var(--radius-control); }
.segments button { min-width:0;padding:var(--space-2);font-size:var(--text-support); }
.staff-tab,.workflow-tabs button,.detail-tabs button { font-size:var(--text-support);line-height:var(--body-leading); }
.staff-tabs,.workflow-tabs { gap:var(--space-2); }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,
textarea:focus-visible,summary:focus-visible,.workflow button:focus-visible {
  outline:3px solid var(--ui-accent);outline-offset:3px;
}
button:disabled { cursor:not-allowed; }

/* Inputs use body text sizing on every surface, including filters and sign-in. */
label,.field,.workflow .field { font-size:var(--text-support);line-height:var(--body-leading); }
.field,.workflow .field { gap:var(--space-2); }
input:not([type=checkbox]):not([type=radio]),select,textarea,
.field input,.field select,.field textarea,.workflow .field input,.workflow .field select,.workflow .field textarea,
.filters input,.filters select {
  font-size:var(--text-body);font-weight:400;min-height:44px;height:auto;
  border-color:var(--line);border-radius:var(--radius-control);
  padding:10px var(--space-3);max-width:100%;
}
.search { padding:var(--space-1) var(--space-3);align-items:center;border-radius:var(--radius-control); }
.search input { border-radius:0;padding:var(--space-2) 0; }
input[type=checkbox],input[type=radio],.workflow input[type=checkbox],.workflow input[type=radio] {
  width:20px;height:20px;min-height:20px;flex-shrink:0;accent-color:var(--action);padding:0;
}
.check-field,.workflow .check-field,.check-row,.weekday-list label {
  min-height:44px;font-size:var(--text-body);line-height:var(--body-leading);gap:var(--space-2);
}
.workflow .check-field+.check-field { margin-top:0; }
.field-hint { font-weight:400; }
.form-error,.field-error,.workflow .form-error,.workflow .field-error {
  font-size:var(--text-support);line-height:var(--body-leading);color:var(--status-danger);overflow-wrap:anywhere;
}
.form-grid,.history-controls,.filter-grid,.admin-filters,.workflow .form-grid,.workflow .filter-grid,.workflow .history-controls {
  gap:var(--space-4);
}
.workflow form { gap:var(--space-5) var(--space-6); }
.form-actions,.workflow .form-actions { gap:var(--space-3);margin-top:var(--space-5); }
.form-actions .primary { min-height:48px; }
fieldset,.workflow fieldset { border-radius:var(--radius-control);padding:var(--space-4); }
legend { font-size:var(--text-support);font-weight:600; }
/* These are layout wrappers, rather than bordered input groups. */
fieldset.workdays,fieldset.setup-methods { padding:0;border:0; }

/* Common card, list and disclosure rhythm; shell scrolling/safe areas stay local. */
.panel,.detail-pane,.metric,.stat,.feature-card,.personal-summary,.day-welcome,
.clock-card,.plan-card,.work-details,.company-paper,.schedule-person,.setup-review,
.workflow .panel,.workflow details,.workflow .branch-card,.workflow .notification-item,
.workflow .plan-card,.workflow .candidate,.workflow .message-card,.workflow .reward-card,
.workflow .time-review-day,.workflow .staff-day,.workflow .profile-read-section,
.service-console-panel,.service-company-list {
  border-radius:var(--radius-card);
}
.app-shell .panel:not(.settings-list):not(.record-list),.plan-card,.day-welcome-copy,
.notice-card,.message-card,.recognition,.company-paper,.profile-read-section {
  padding:var(--space-4);
}
.settings-list { padding:0 var(--space-4); }
.settings-row { padding:var(--space-4) 0;gap:var(--space-3); }
.workflow .settings-row { padding:var(--space-4) var(--space-5);gap:var(--space-3); }
.record,.workflow .record,.workflow .report-person { padding:var(--space-4);gap:var(--space-3);font-size:var(--text-body); }
.record small,.workflow .record small { font-size:var(--text-support); }
.record>*,.detail-row>*,.feature-card>*,.staff-header>*,.photo-profile>* { min-width:0; }
.record-times { white-space:normal; }
.detail-row { padding:var(--space-3) 0;font-size:var(--text-support);gap:var(--space-4); }
.detail-row strong { overflow-wrap:anywhere; }
.section-heading,.workflow .section-heading { margin:var(--space-6) 0 var(--space-3);gap:var(--space-3); }
.section-heading h2,.workflow .section-heading h2 { margin:0; }
.page-head { margin-bottom:var(--space-6); }
.work-details,.workflow details { padding:var(--space-4);margin:var(--space-4) 0; }
summary { cursor:pointer;font-size:var(--text-body);line-height:var(--body-leading); }
.work-details>summary,.workflow details>summary { min-height:44px;padding-block:var(--space-2); }
.work-details[open]>summary,.workflow details[open]>summary { margin-bottom:var(--space-3); }
.choice { padding:var(--space-4);gap:var(--space-3);border-radius:var(--radius-control); }
.quick { border-radius:var(--radius-control);font-size:var(--text-support);line-height:var(--body-leading); }
.stats,.metric-grid,.quick-actions { gap:var(--space-3); }

/* Feedback uses the same semantic palette in both themes. */
.note,.notice,.workflow .note,.service-empty {
  font-size:var(--text-support);line-height:var(--body-leading);padding:var(--space-3) var(--space-4);
  border-radius:var(--radius-control);color:var(--muted);background:var(--ui-background);
}
.note,.workflow .note { margin:var(--space-4) 0; }
.error,.error-note { color:var(--status-danger);background:var(--status-danger-bg);font-size:var(--text-support); }
.badge,.pill,.status,.status-label,.service-chip,.workflow .status,.workflow .pill {
  font-size:var(--text-badge);line-height:var(--body-leading);font-weight:600;
  padding:var(--space-1) var(--space-2);border-radius:var(--radius-badge);max-width:100%;
  white-space:normal;overflow-wrap:anywhere;
}
.empty,.workflow .empty { padding:var(--space-8) var(--space-4); }
.empty h3 { font-size:var(--text-heading);color:var(--ui-ink);margin:0 0 var(--space-2); }
.empty p { font-size:var(--text-support);line-height:var(--body-leading); }
.loading,.boot { font-size:var(--text-body);line-height:var(--body-leading); }
#toast,.inline-feedback,.workflow .inline-feedback { font-size:var(--text-support);line-height:var(--body-leading);border-radius:var(--radius-control); }
#toast { max-width:calc(100% - 32px);overflow-wrap:anywhere; }

/* One status vocabulary on every surface. Text remains the source of meaning. */
:root :is(.status,.badge,.pill,.tracking-status):not([class*=tone-]) {
  color:var(--status-neutral);background:var(--status-neutral-bg);
}
:root :is(.status,.badge,.pill):is(.pending,.pending_peer,.pending_review,.needs_review,.invited,.overdue,.submitted,.warn,.amber) {
  color:var(--status-warning);background:var(--status-warning-bg);
}
:root :is(.status,.badge,.pill):is(.active,.approved,.completed,.accepted,.good,.green) {
  color:var(--status-success);background:var(--status-success-bg);
}
:root :is(.status,.badge,.pill):is(.failed,.rejected,.suspended,.blocked,.bad,.red) {
  color:var(--status-danger);background:var(--status-danger-bg);
}
:root :is(.status,.badge,.pill,.status-label,.tracking-status,.agent-chip)[class*=tone-] {
  color:var(--status-fg);background:var(--status-bg);
}
.settings-row .status-label { display:table;width:fit-content;margin-top:8px; }
/* Highlight only rows waiting for attention; completed history keeps a quiet surface. */
:root .settings-row:has(.status-label.tone-warning),
:root .request-item.tone-warning {
  background:var(--status-warning-bg);box-shadow:inset 3px 0 var(--status-warning);
}
:root .settings-row:has(.status-label.tone-warning) { padding-inline:12px;border-radius:var(--radius-control); }
:root .settings-row:has(.status-label.tone-warning) small { color:var(--status-warning); }
:root .request-item.tone-warning td small { color:var(--status-warning); }
:root .time-review-day.request-item {
  padding:var(--space-4);margin-block:var(--space-3);border-radius:var(--radius-control);
}
:root .request-item.selected { outline:2px solid var(--status-important);outline-offset:-2px; }
:root .notification-item.unread,:root .notice-card.notice-unread {
  background:var(--status-important-bg);border-inline-start:4px solid var(--status-important);
  border-radius:var(--radius-control);padding:var(--space-4);margin-block:var(--space-3);
}
:root .notification-item.unread>small { color:var(--status-important); }
:root :is(.notification-item.unread,.notice-card.notice-unread) p { color:var(--ui-ink); }
:root .notification-banner {
  background:var(--status-important-bg);border-color:var(--status-important);
  border-inline-start-width:4px;color:var(--ui-ink);
}
.notification-banner .status-label { margin-bottom:8px; }
:root .notification-banner p,:root .notification-banner-dismiss { color:var(--status-important); }
:root .notification-banner-dismiss { border-color:var(--status-important); }
:root .notification-button.has-unread { color:var(--status-important);background:var(--status-important-bg); }
:root .notification-button.has-unread i { background:var(--status-important); }
.notification-button.has-unread:after { display:none; }
:root .header-actions .count { color:var(--status-important);background:var(--status-important-bg); }
:root #toast,:root .inline-feedback {
  color:var(--status-fg,var(--status-info));background:var(--status-bg,var(--status-info-bg));
  border:1px solid currentColor;border-inline-start-width:4px;
}

/* Management tables keep compact supporting text without shrinking inputs. */
table,.management-table table { font-size:var(--text-support);line-height:var(--body-leading); }
th,.management-table thead th,.workflow .management-table :is(th,td),td small {
  font-size:var(--text-support);line-height:var(--body-leading);
}
.table-scroll,.management-table { max-width:100%; }
.main-shell .topbar { padding-inline:var(--space-6);gap:var(--space-3); }
.main-shell .company-picker { flex:1;min-width:0;gap:var(--space-2); }
.main-shell .company-picker select { flex:1;min-width:0;text-overflow:ellipsis; }
.main-shell .role-tag { flex-shrink:0;white-space:nowrap;padding-left:var(--space-2); }
.main-shell .header-actions { flex-shrink:0;gap:var(--space-2); }
.main-shell .header-actions button { font-size:var(--text-support);white-space:nowrap;overflow-wrap:normal; }
.main-shell .header-actions .identity { padding-left:var(--space-2);gap:var(--space-2); }
.table-footer { flex-wrap:wrap;font-size:var(--text-support);gap:var(--space-3); }
.filters { gap:var(--space-3); }
.filters button { height:auto;min-height:44px;font-size:var(--text-support); }
.panel-head,.panel-body,.detail-head,.detail-body { padding:var(--space-5); }
.workflow #sheet-content { padding:var(--space-6); }
.workflow-heading { padding:var(--space-5) var(--space-6); }
.workflow .feature-card { padding:var(--space-6); }
.service-page-head h2 { font-size:var(--text-title); }
.service-page :is(.settings-row,.service-company-row) { font-size:var(--text-body); }
.service-task-table td small,.service-recent-activity small { font-size:var(--text-support); }

@media(max-width:1280px) {
  .dashboard-grid { grid-template-columns:minmax(0,1fr); }
  .dashboard-grid>.side-stack { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-4);align-items:start; }
}
@media(max-width:420px) {
  .account-profile { display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center; }
  .account-profile>div { grid-column:2; }
  .account-profile>.secondary { grid-column:2;justify-self:start; }
  .account-profile>.settings-row { grid-column:1/-1; }
}
@media(max-width:360px) {
  .stats,.metric-grid,.quick-actions { gap:var(--space-2); }
  .form-grid,.history-controls,.filter-grid,.admin-filters { grid-template-columns:minmax(0,1fr); }
  .record { padding:var(--space-3); }
  .photo-profile { flex-wrap:wrap; }
  .photo-profile>button { min-width:140px; }
}

/* Option 1: a compact management rhythm on every shared surface. */
:root { --radius-control:8px;--radius-card:12px; }
.field,.workflow .field { gap:6px;margin-bottom:16px;font-weight:500; }
.field-required { color:var(--muted);font-size:var(--text-support); }
.page-head { margin-bottom:20px; }
.settings-row,.workflow .settings-row { padding-block:12px; }
.settings-row small,.workflow .settings-row small { margin-top:3px;line-height:1.6; }
.company-menu-section,.company-feature-section { margin:20px 0; }
.company-menu-section>h3,.company-feature-section>h2 { font-size:var(--text-support);color:var(--muted);margin:0 0 8px; }
.menu-directory .panel { overflow:hidden; }
.menu-directory .settings-row { min-height:56px; }
.menu-directory .settings-row:last-child { border-bottom:0; }
.menu-search { max-width:480px; }
.menu-search input { width:100%;background:var(--surface);color:var(--ui-ink);border:1px solid var(--line); }
.menu-search-status { color:var(--muted);font-size:var(--text-support);margin:0 0 12px; }
.menu-directory [hidden] { display:none!important; }
.more-menu-group { margin:0 0 20px; }
.more-menu-group>h2 { font-size:var(--text-support);color:var(--muted);margin:0 0 8px; }
.feature-grid { gap:12px; }
.feature-card { min-height:88px;padding:16px;box-shadow:none; }
.staff-actions .primary { background:var(--action);color:var(--on-action); }
.panel.staff-capacity { padding:16px;display:grid;gap:8px;margin-bottom:16px;border-inline-start:3px solid var(--warning,#a66b25); }
.staff-capacity p { margin:0;color:var(--muted); }
.staff-capacity>button { justify-self:start; }
.form-actions { border-top:1px solid var(--line);padding-top:16px; }
.form-actions .primary { border-radius:8px; }
/* Time pairs stay together even on a narrow phone. Other long fields can stack. */
.form-grid:has(> .field input[type=time]),.workflow .form-grid:has(> .field input[type=time]) { grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
.form-grid:has(> .field input[type=time]) .field input[type=time] { min-width:0;padding-inline:8px; }
.company-hours .hours-days,.workflow .company-hours .hours-days { grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-bottom:20px; }
.weekday-toggle { position:relative;min-width:0;cursor:pointer; }
.weekday-toggle input { position:absolute;opacity:0;width:1px;height:1px; }
.weekday-toggle span { display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 0;border:1px solid var(--line);border-radius:7px;font-size:13px;background:var(--surface);color:var(--ui-ink); }
.weekday-toggle input:checked+span { background:var(--action);border-color:var(--action);color:var(--on-action); }
.weekday-toggle input:focus-visible+span { outline:3px solid var(--ui-accent);outline-offset:2px; }
.company-hours .hours-steps { margin-bottom:12px; }
.company-hours .hours-context { margin:0 0 8px;font-size:var(--text-support); }
.company-hours h3 { font-size:var(--text-body);margin:16px 0 10px; }
.company-hours .field-guidance { margin:0 0 16px; }
.company-hours .hours-apply { border:0;padding:0;margin:0 0 20px; }
.company-hours .hours-apply legend { font-size:var(--text-body);margin:0 0 8px; }
.company-hours .hours-apply .check-field { padding:10px 12px;margin:4px 0;border-radius:8px; }
.company-hours .hours-apply .check-field:has(:checked) { background:var(--ui-soft); }
.company-hours .hours-person { padding-block:12px; }
.company-hours .hours-selection-tools { gap:8px; }
.company-hours .hours-selection-tools button { min-height:44px;font-size:var(--text-support);padding:8px; }
.lunch-compact { border-block:1px solid var(--line);padding:8px 0;margin:20px 0; }
.switch-field { justify-content:space-between;gap:16px; }
.switch-field span { flex:1; }
.switch-field input[type=checkbox],.workflow .switch-field input[type=checkbox] { appearance:none;position:relative;width:44px;height:26px;min-height:26px;border:0;border-radius:20px;background:var(--muted);cursor:pointer; }
.switch-field input::after { content:'';position:absolute;inset:3px auto 3px 3px;width:20px;border-radius:50%;background:#fff; }
.switch-field input[type=checkbox]:checked,.workflow .switch-field input[type=checkbox]:checked { background:var(--action); }
.switch-field input:checked::after { left:21px; }
/* Native details remain a usable fallback where modal dialogs are unavailable. */
.context-help,.workflow details.context-help { display:block;grid-column:1/-1;padding:0;margin:0 0 12px;border:0;border-radius:0;background:transparent; }
.context-help>summary,.workflow details.context-help>summary { width:fit-content;margin-left:auto;min-height:44px;padding:8px 4px;color:var(--ui-accent);font-size:var(--text-support);font-weight:500;list-style:none; }
.context-help>summary::-webkit-details-marker { display:none; }
.context-help>summary::before { content:'?';display:inline-grid;place-items:center;border:1px solid currentColor;width:18px;height:18px;border-radius:50%;font-size:12px;margin-right:6px; }
.context-help-body { padding:12px 0; }
.context-help-dialog { display:none;position:fixed;inset:auto 0 0;width:min(100%,560px);max-width:100%;max-height:calc(100dvh - 72px - env(safe-area-inset-top));margin:0 auto;padding:0;border:1px solid var(--line);border-radius:16px 16px 0 0;background:var(--surface);color:var(--ui-ink);box-shadow:0 16px 48px #0003;overflow:hidden; }
.context-help-dialog[open] { display:flex;flex-direction:column; }
.context-help-dialog::backdrop { background:#161b3266; }
.context-help-dialog>header { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line);flex-shrink:0; }
.context-help-dialog h2 { font-size:20px;margin:0; }
.context-help-dialog [data-help-close] { min-width:44px;min-height:44px;background:var(--surface);color:var(--ui-ink);border:1px solid var(--line);border-radius:8px; }
.context-help-dialog header [data-help-close] { font-size:24px; }
.context-help-scroll { padding:16px 20px;overflow-y:auto;overscroll-behavior:contain; }
.context-help-dialog :is(p,.form-guidance,.page-guidance) { margin:0 0 16px;font-size:var(--text-support);line-height:1.8;color:var(--muted); }
.context-help-dialog h3 { font-size:var(--text-body);margin:0 0 10px; }
.context-help-dialog details { border-block:1px solid var(--line);padding:12px 0;margin:16px 0; }
.context-help-dialog summary { min-height:44px;font-size:var(--text-support); }
.context-help-dialog>footer { padding:12px 20px max(16px,env(safe-area-inset-bottom));border-top:1px solid var(--line); }
.context-help-dialog footer button { width:100%; }
.lunch-help-steps { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;list-style:none;counter-reset:punch;padding:0;margin:16px 0 20px; }
.lunch-help-steps li { counter-increment:punch;text-align:center;font-size:13px; }
.lunch-help-steps li::before { content:counter(punch);display:grid;place-items:center;width:36px;height:36px;margin:0 auto 8px;background:var(--ui-soft);color:var(--ui-accent);border-radius:50%;font-size:var(--text-body); }
@media(min-width:760px) { .context-help-dialog { inset:0;margin:auto;max-height:min(80dvh,720px);border-radius:12px; }.company-hours { max-width:760px; }.company-hours .hours-days { max-width:480px; } }
#sheet-content>.sheet-back:has(+.context-help) { float:left;margin-bottom:0; }
#sheet-content>.context-help { min-height:44px; }
#sheet-content>.context-help+* { clear:both; }
.company-hours .hours-steps li { flex-direction:row;justify-content:center;gap:5px;font-size:12px; }
.company-hours .hours-steps li>span { width:24px;height:24px;flex-shrink:0; }
.workflow-tools { border:1px solid var(--line);border-radius:8px;padding:8px 12px;margin:0 0 16px; }
.workflow-tools>summary { min-height:36px;font-size:var(--text-support);color:var(--muted);padding:6px; }
.workflow-tools .workflow-tabs { margin:8px 0 0;border:0;padding:0; }

/* Option 1 consistency: ordinary cards own padding; list/table wrappers do not. */
#sheet-content .panel:not(.settings-list):not(.record-list):not(:has(>.panel-head,>.panel-body,>.table-scroll,>.management-table)) {
  padding:var(--space-4);
}
.panel.record-list { padding:0; }
.panel :is(h2,h3):first-child { margin-top:0; }
:is(.hours-summary,.hours-person-changes,.agent-message,.agent-empty,.agent-profile-card,.agent-plan,.agent-invoice,.subscription-next,.setup-review,.service-console-panel) {
  border-radius:var(--radius-card);
}
.button-row>button,.button-stack>button,.form-actions>button,.agent-actions>button { margin-bottom:0; }

/* A grid gap replaces child margins, so desktop forms do not double their spacing. */
.workflow form { gap:var(--space-4) var(--space-6); }
.workflow form>.field { margin:0; }
.workflow form>:is(.note,.form-guidance,.context-help,.check-field) { margin-block:0; }
.workflow form>.form-actions { margin-top:0; }
.workflow form>button { justify-self:start;width:auto; }
.form-grid>.field,.workflow .form-grid>.field { margin-bottom:0; }
.form-grid { margin-bottom:var(--space-4); }
.workflow form>.form-grid { margin-bottom:0; }

/* Filters stay with their fields; only a saving/sending action needs a fixed footer. */
form.view-filter { margin-bottom:var(--space-4); }
form.view-filter>.form-actions,.workflow form.view-filter>.form-actions {
  position:static;margin-top:0;padding:0;border:0;box-shadow:none;background:transparent;
}
form.view-filter>.form-actions>button { width:auto;min-height:44px; }
.workflow form.view-filter>.field { margin-bottom:0; }
.workflow .guidance-details { padding:12px 16px; }
.workflow .guidance-details>summary { margin-bottom:0; }
.field-guidance.form-field-note { margin:0; }
form:has(.form-field-note) .form-field-note+button { margin-top:8px; }
.service-workspace :is(.billing-queues,.billing-settings-tabs) button[aria-current=page] {
  background:var(--action);border-color:var(--action);color:var(--on-action);
}
.service-page .monitor-card:is(.paused,.unknown) { border-color:var(--line);border-inline-start-color:var(--status-neutral); }

/* Attendance date filters and staff groups share the same layout on all surfaces. */
.attendance-history { min-width:0; }
.attendance-history .history-controls label { min-width:0; }
.attendance-history .history-staff-filter { min-width:0;grid-column:1/-1; }
.history-summary { color:var(--muted);font-size:var(--text-support);margin:14px 0; }
.app-shell .history-staff-group,.history-staff-group { padding:0!important;overflow:hidden;margin-bottom:16px; }
.history-staff-group>header { display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:16px;border-bottom:1px solid var(--line); }
.history-staff-group>header h3 { margin:0;overflow-wrap:anywhere;min-width:0; }
.history-staff-group>header span { color:var(--muted);white-space:nowrap;font-size:var(--text-support); }
.history-empty { padding:20px; }
/* Shared leave balance list and read-only breakdown. */
.leave-balance-list,.leave-balance-breakdown{min-width:0;max-width:100%}
.leave-balance-card{border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:16px;margin:16px 0;min-width:0;overflow-wrap:anywhere}
.leave-balance-card h3,.leave-balance-card h4{margin:0 0 8px}.leave-balance-meta,.leave-type-state{color:var(--muted);overflow-wrap:anywhere}.leave-type-state{display:block;margin-top:5px}
.leave-balance-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}.leave-balance-metrics span{min-width:0;overflow-wrap:anywhere;background:var(--hover,var(--surface));padding:12px;border-radius:10px}.leave-balance-metrics strong{display:block;font-size:var(--text-page);margin-top:7px}
.leave-balance-actions,.leave-balance-pagination{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.leave-balance-actions button,.leave-balance-pagination button{width:auto;max-width:100%;min-height:44px}.leave-balance-pagination{margin:18px 0;justify-content:space-between}.leave-balance-pagination .note{margin:0;flex:1;text-align:center}
.leave-balance-credits,.leave-balance-requests{margin-top:24px;min-width:0}.leave-balance-entry{padding:16px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.leave-balance-entry h4{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px}.leave-balance-entry p{margin:6px 0;color:var(--muted)}
.workflow .leave-balance-list .management-table tbody th{min-width:140px;max-width:220px;white-space:normal;overflow-wrap:anywhere}.workflow .leave-balance-list .management-table td:last-child{min-width:160px}.workflow .leave-balance-list .management-table td:last-child button{display:block}
@media(max-width:520px){.leave-balance-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.workflow .leave-balance-list .management-table tbody th{position:static;max-width:180px}.leave-balance-actions>*{flex:1}}

/* Keep review decisions reachable while a long employee list scrolls underneath. */
#sheet-content:has(.company-hours .hours-review) { padding-bottom:0; }
#sheet .company-hours .hours-review>form { display:block; }
#sheet .company-hours .hours-review-actions,
#sheet .company-hours .hours-review>form>.form-actions {
  position:sticky;bottom:0;z-index:3;display:flex;flex-wrap:wrap;gap:10px;
  margin-top:20px;padding:12px 0 calc(12px + max(var(--safe-bottom,0px),env(safe-area-inset-bottom,0px)) + var(--content-bottom,0px));
  background:var(--surface);border-top:1px solid var(--line);
  box-shadow:0 -8px 16px var(--surface);
}
#sheet .company-hours .hours-review-actions>button,
#sheet .company-hours .hours-review>form>.form-actions>button {
  flex:1;min-height:44px;min-width:0;margin:0;white-space:normal;overflow-wrap:anywhere;
}
@media(max-width:520px){
  #sheet .company-hours .hours-review-actions { flex-direction:column; }
}


#sheet.welcome-sheet[open]{position:fixed;inset:0;width:100%;max-width:none;height:var(--app-height,100dvh);max-height:none;margin:0;padding:0;border:0;border-radius:0;background:var(--surface,#f5f6fa)}
#sheet.welcome-sheet>.sheet-handle,#sheet.welcome-sheet>.sheet-header,#sheet.welcome-sheet>.workflow-heading{display:none}
#sheet.welcome-sheet>#sheet-content{flex:1;min-height:0;padding:calc(max(var(--safe-top,0px),env(safe-area-inset-top)) + var(--telegram-top,0px)) max(0px,var(--content-right,0px)) calc(max(var(--safe-bottom,0px),env(safe-area-inset-bottom)) + var(--content-bottom,0px)) max(0px,var(--content-left,0px));overflow:auto;scrollbar-gutter:auto}
#sheet.welcome-sheet .checkin-welcome-screen{min-height:100%;max-width:760px;display:flex;flex-direction:column}
#sheet.welcome-sheet .checkin-welcome{flex:1;border-radius:0;min-height:100%;box-shadow:none}
#sheet.welcome-sheet .welcome-art{flex-shrink:0}
#sheet.welcome-sheet .welcome-footer{padding-bottom:22px}

/* Profile overview; preserve shared navigation and safe areas. */
.profile-overview{display:grid;gap:16px;padding:8px 0 20px}
.profile-overview .profile-identity{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.profile-identity>div{min-width:0;overflow-wrap:anywhere}
.profile-identity h3{margin:4px 0;font-size:var(--text-heading);line-height:1.5}
.profile-identity small,.profile-identity p{color:var(--muted);margin:0}
.profile-identity button{width:auto;flex:none;min-height:44px;margin:0}
.profile-caption{font-size:var(--text-support);line-height:1.7;color:var(--muted);margin:12px 0;overflow-wrap:anywhere}
.profile-overview .profile-caption,.profile-overview .panel{margin:0}
.profile-overview .profile-sections{padding:0 16px}
.profile-overview .settings-row{min-height:76px;padding:16px 0}
.profile-overview .settings-row:last-child,.profile-overview .profile-read-section:last-child{border-bottom:0}
.profile-request-card{border:1px solid var(--line);border-left:4px solid var(--sage,var(--teal));border-radius:12px;background:var(--surface);padding:16px}
.profile-request-card h3{font-size:var(--text-body);margin:0 0 4px}
.profile-request-card ul{list-style:none;padding:0;margin:10px 0 0}
.profile-request-card li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;padding:6px 0;font-size:var(--text-support)}
.profile-request-card strong{color:var(--muted);font-weight:600}
.profile-overview .profile-read-section{padding:16px 0;margin:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}
.profile-overview .profile-read-section h3{font-size:var(--text-body);margin:0 0 8px}
.profile-read-field{margin-top:10px;overflow-wrap:anywhere}
.profile-read-field strong{display:block;font-size:var(--text-support);color:var(--muted)}
.profile-read-field p{white-space:pre-wrap;margin:2px 0 0}
.profile-privacy{border-top:1px solid var(--line);padding-top:12px}
@media(max-width:360px){.profile-overview .profile-identity{gap:10px;padding:12px}.profile-identity button{max-width:40%;white-space:normal}}

/* Saved checkout receipt: the shell retains Telegram safe areas and scrolling. */
.checkout-complete{max-width:30rem;margin:0 auto;padding:4px 0 12px;overflow-wrap:anywhere}
.checkout-success{display:flex;align-items:center;gap:10px;color:var(--primary,#6956c9)}
.checkout-success>span{display:grid;place-items:center;flex:0 0 32px;height:32px;border-radius:50%;background:var(--primary-soft,#eeebfa);font-size:20px;font-weight:700}
.checkout-success p{margin:0;font-size:1.05rem;font-weight:700;line-height:1.6}
.checkout-company{margin:16px 0 10px;font-weight:650}
.checkout-time{margin:0;display:flex;flex-direction:column;gap:2px}
.checkout-time>span,.checkout-zone{font-size:.85rem;color:var(--muted,#727184)}
.checkout-time strong{font-size:2.6rem;line-height:1.2;font-variant-numeric:tabular-nums;letter-spacing:-.03em}
.checkout-date{margin:8px 0 2px;white-space:nowrap;font-size:.94rem}
.checkout-zone{margin:3px 0 0}
.checkout-session{margin-top:20px;padding:16px;border:1px solid var(--border,#e2dfed);border-radius:16px}
.checkout-session h3{margin:0 0 14px;font-size:1rem}
.checkout-session dl{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin:0}
.checkout-session dt{font-size:.85rem;color:var(--muted,#727184)}
.checkout-session dd{margin:5px 0 0;font-size:1.25rem;font-weight:700;font-variant-numeric:tabular-nums}
.checkout-session dd small{display:block;margin-top:4px;font-size:.78rem;font-weight:400}
.checkout-duration{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-top:16px;padding-top:14px;border-top:1px solid var(--border,#e2dfed)}
.checkout-duration strong{white-space:nowrap;font-variant-numeric:tabular-nums}
.checkout-next{font-size:.85rem;margin:12px 0}
.checkout-notes{margin-top:12px;font-size:.88rem;color:var(--muted,#727184)}
.checkout-note{border-bottom:1px solid var(--border,#e2dfed)}
.checkout-note summary{min-height:44px;padding:12px 0;box-sizing:border-box;cursor:pointer;line-height:1.5}
.checkout-note p{margin:2px 0 12px;line-height:1.6}
.checkout-reason{white-space:pre-wrap;overflow-wrap:anywhere}
.checkout-actions{display:grid;gap:4px;margin-top:20px}
.checkout-actions button{width:100%;min-height:48px;justify-content:center;text-align:center}
.checkout-attendance-link{border:0;background:transparent;color:var(--primary,#6956c9);font-weight:600;padding:12px 4px}
.checkout-complete :focus-visible{outline:2px solid var(--primary,#6956c9);outline-offset:3px}
.checkout-success p{color:inherit}
.checkout-time strong{color:var(--primary,#6956c9)}

/* Text uses the company date format; the native picker keeps ISO form values. */
.date-control{position:relative;display:block;min-width:0;width:100%}
.date-control>input[data-date-display]{width:100%;min-width:0;padding-inline-end:3rem}
.date-control>.date-picker{position:absolute;inset-inline-end:0;top:0;bottom:0;width:2.75rem;min-width:0;opacity:0;cursor:pointer;padding:0}
.date-control>.date-picker::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;cursor:pointer}
.date-picker-icon{position:absolute;inset-inline-end:.9rem;top:50%;transform:translateY(-50%);pointer-events:none;font-size:1.25rem}
.date-control:has(.date-picker:focus-visible){outline:2px solid var(--primary,#6366f1);outline-offset:2px;border-radius:12px}

.date-picker-icon svg{display:block;width:1.15rem;height:1.15rem}

/* Balances first: compact controls, readable availability, optional management. */
.leave-balance-top{display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px;align-items:end}
.leave-balance-list [data-form=balance-year]{gap:10px;margin:0}
.leave-balance-list [data-form=balance-year]>.form-actions{display:none}
.leave-balance-list [data-form=balance-year]>.form-error:empty{display:none}
.leave-balance-filters,.leave-balance-tools{margin:8px 0}
.leave-balance-filters>summary,.leave-balance-tools>summary{min-height:44px;display:flex;align-items:center;color:var(--action);font-weight:600;cursor:pointer}
.leave-balance-filters>summary::after,.leave-balance-tools>summary::after{content:'⌄';margin-left:auto}
.leave-balance-filters .filter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
.leave-balance-updated,.leave-balance-count{margin:8px 0;color:var(--muted);font-size:var(--text-support)}
.leave-balance-person{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px}
.leave-balance-list .leave-balance-card{margin:12px 0;padding:14px}
.leave-balance-list .leave-balance-card h4{font-size:var(--text-body);font-weight:500;color:var(--muted)}
.leave-balance-available{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;background:var(--sage-soft,#edf5ef);color:var(--text);padding:12px;border-radius:12px;margin:12px 0}
.leave-balance-available>strong{font-size:var(--text-page);font-variant-numeric:tabular-nums}
.leave-balance-available small{font-size:var(--text-body);font-weight:500}
.leave-balance-small-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}
.leave-balance-small-metrics span{color:var(--muted);font-size:var(--text-support);overflow-wrap:anywhere}
.leave-balance-small-metrics strong{display:block;color:var(--text);font-size:var(--text-body);font-weight:600;margin-top:4px}
.leave-balance-context{font-size:var(--text-support);color:var(--muted);margin:8px 0}
.leave-balance-context p{margin:4px 0}
.leave-balance-people{max-height:260px;overflow:auto;border:1px solid var(--line);border-radius:12px;padding:12px}
.leave-balance-people label{min-height:44px;display:flex;align-items:center;gap:10px}
.leave-balance-people input{width:auto;min-height:0}
.leave-adjustment-preview article{padding:12px 0;border-bottom:1px solid var(--line)}
.leave-adjustment-preview h3{margin:0}
[data-theme=dark] .leave-balance-available{background:#253d32;color:var(--text)}
@media(min-width:800px){.leave-balance-list [data-balance-results] .management-table{margin-top:12px}.leave-balance-top{grid-template-columns:130px minmax(0,1fr)}}
.leave-balance-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:140px;flex:1 1 140px;word-break:normal;overflow-wrap:normal;padding:10px 12px}
.leave-balance-actions button svg{flex:none;width:18px;height:18px}
.leave-balance-available.balance-negative{background:var(--soft-red);color:var(--danger)}

/* Shared rewards workspace: App, Telegram and Desktop. */
.reward-workspace{max-width:880px;margin:auto;min-width:0}.reward-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.reward-tabs button{flex:1;min-height:44px}.reward-tabs button[aria-pressed=true]{background:var(--primary,#4f46a5);color:#fff}.reward-panel{padding:18px;border:1px solid var(--line,#dfe3eb);border-radius:18px;margin:12px 0;background:var(--surface);overflow-wrap:anywhere}.reward-panel h3{margin:4px 0 10px}.reward-prize{background:var(--primary-soft,var(--soft-purple))}.reward-value{font-size:1.5rem;font-weight:700}.reward-value span{font-size:1rem;font-weight:400}.reward-panel progress{width:100%;accent-color:#677c69;height:12px}.reward-rules{margin:16px 0}.reward-workspace summary{min-height:44px;padding:10px 0;cursor:pointer}.reward-person{padding:8px 14px;border-bottom:1px solid var(--line,#dfe3eb);overflow-wrap:anywhere}.reward-person summary{display:flex;flex-wrap:wrap;gap:7px 14px;align-items:center}.reward-person summary strong{flex:1 1 180px}.reward-status{padding:3px 9px;border-radius:12px;background:var(--primary-soft,var(--soft-purple));font-size:.85rem}.reward-status.is-eligible{background:var(--teal-soft,var(--soft-sage));color:var(--teal,var(--sage))}.reward-shift,.reward-counts{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:8px 0}.reward-shift{border-bottom:1px solid var(--line,#dfe3eb)}.reward-counts span{padding:7px 10px;background:var(--primary-soft,var(--soft-purple));border-radius:10px}.reward-award{text-align:center;background:var(--primary-soft,var(--soft-purple))}.reward-award>span{display:block;font-size:2rem}.reward-award>small,.reward-badge small{display:block}.reward-badge{padding:12px 0;border-bottom:1px solid var(--line,#dfe3eb)}.reward-workspace form{margin:12px 0}.reward-workspace .form-actions{flex-wrap:wrap}

/* Rewards: show one next action before optional detail. */
.reward-workspace h2{font-size:1.25rem;line-height:1.4;margin:6px 0 12px}.reward-workspace .reward-tabs{flex-wrap:nowrap;gap:6px;margin-bottom:14px}.reward-workspace .reward-tabs button{min-width:0;padding:10px 8px;font-size:.95rem}.reward-week-heading{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:start;justify-content:space-between;margin:6px 0 14px}.reward-week-heading>div{display:grid;gap:3px}.reward-week-heading small{color:var(--muted)}.reward-week-heading strong{font-size:.9rem}.reward-week-heading>details{font-size:.9rem;max-width:100%}.reward-week-heading>details[open]{flex:1 1 100%}.reward-week-heading summary{padding:0;min-height:30px}.reward-week-heading form{margin-bottom:0}.reward-steps{display:flex;list-style:none;padding:0;margin:12px 0;gap:6px}.reward-steps li{flex:1;font-size:.78rem;line-height:1.45;display:grid;gap:6px;justify-items:start;color:var(--muted)}.reward-steps li>span{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;border:1px solid var(--line);font-weight:700}.reward-steps li[aria-current=step]{color:var(--text);font-weight:700}.reward-steps li[aria-current=step]>span{background:var(--primary);color:#fff;border-color:var(--primary)}.reward-steps .is-done>span{background:var(--teal-soft,var(--soft-sage));color:var(--teal,var(--sage))}.reward-next-card{border-color:var(--primary);margin-top:14px}.reward-next-card>small{display:block;color:var(--muted)}.reward-next-card>p{margin:10px 0 16px}.reward-next-card>.primary,.reward-next-card .form-actions button{width:100%;justify-content:center}.reward-next-card form{margin-bottom:0}.reward-selected{display:flex;align-items:center;gap:12px;padding:12px 0}.reward-selected>span,.reward-symbol{font-size:1.8rem}.reward-selected>div{display:grid;gap:5px}.reward-selected strong{font-size:1.1rem}.reward-week-summary{display:flex;gap:8px 18px;justify-content:space-between;flex-wrap:wrap;padding:8px 0;font-size:.9rem;color:var(--muted)}.reward-workspace .reward-counts{justify-content:start;gap:6px}.reward-counts button{padding:8px 10px;font-size:.82rem;min-height:40px}.reward-people>summary{font-weight:700;display:flex;gap:10px;align-items:center}.reward-people>summary:before{content:'▸';color:var(--primary)}.reward-people[open]>summary:before{content:'▾'}.reward-people>summary span{font-weight:400;color:var(--muted)}.reward-people form{padding-bottom:10px}.reward-person summary strong{flex-basis:100%}.reward-person summary{gap:5px 12px}.reward-status.needs-review{background:var(--primary-soft,var(--soft-purple))}.reward-record-review{margin-top:16px}.reward-record-review>summary{font-weight:600}.reward-pagination{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-top:12px}.reward-goal{display:flex;align-items:baseline;gap:10px;margin:20px 0 8px;flex-wrap:wrap}.reward-goal>strong{font-size:2rem;line-height:1.2}.reward-goal>span{color:var(--muted)}.reward-next{font-weight:600}.reward-caption{color:var(--muted);line-height:1.6;margin:10px 0 18px}.reward-help{padding-left:22px;line-height:1.65}.reward-help li{margin-bottom:10px}.reward-empty{text-align:center}.reward-empty>span{font-size:2rem}.reward-feedback{padding:12px 14px;border-radius:12px;background:var(--teal-soft,var(--soft-sage));color:var(--text)}.reward-setup>form>.form-actions{position:sticky;bottom:0;padding:12px 0;background:var(--surface);z-index:1}.reward-example{padding:10px;border-radius:10px;background:var(--primary-soft,var(--soft-purple))}.reward-award .reward-status{display:inline-block;margin-top:14px}.reward-workspace>details.reward-panel{padding-top:8px;padding-bottom:8px}.reward-workspace .reward-rules{color:var(--muted)}
@media(min-width:700px){.reward-steps li{display:flex;align-items:center;font-size:.95rem}.reward-person summary strong{flex-basis:180px}.reward-next-card>.primary{width:auto;min-width:220px}.reward-next-card .form-actions button{width:auto;min-width:220px}.reward-week-heading strong{font-size:1rem}}

/* A quiet, readable celebration below the workday action; no motion or photos. */
.reward-celebration{--award-ink:#302b49;--award-muted:#696275;--award-line:#e9dfcf;position:relative;display:grid;justify-items:center;gap:0;margin:16px 0;padding:20px 22px 18px;border:1px solid var(--award-line);border-radius:24px;background:radial-gradient(ellipse at 50% 0,#fff0c8a6,transparent 62%),linear-gradient(140deg,#fffdf8,#f5f2ff);color:var(--award-ink);text-align:center;overflow-wrap:anywhere;min-width:0;box-shadow:0 5px 20px #4b396108}
.reward-celebration-art{width:118px;height:87px}.reward-celebration-art svg{display:block;width:100%;height:100%}.reward-celebration-copy{min-width:0;max-width:540px;width:100%}.reward-celebration .reward-celebration-kicker{font-size:.68rem;letter-spacing:.1em;font-weight:700;color:var(--award-muted);margin:8px 0 6px;line-height:1.7}.reward-celebration h2{font-size:1.65rem;line-height:1.45;letter-spacing:-.025em;margin:0 0 12px;color:var(--award-ink)}.reward-celebration-person{display:flex;align-items:center;justify-content:center;gap:9px;min-width:0}.reward-celebration-person strong{font-size:1.08rem;line-height:1.6;min-width:0}.reward-celebration-avatar{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:50%;background:#e8e1f6;color:#64508c;font-size:.74rem;font-weight:700}.reward-celebration .reward-celebration-week{font-size:.76rem;color:var(--award-muted);margin:5px 0 14px}.reward-celebration .reward-celebration-gift{font-size:.98rem;font-weight:600;line-height:1.65;margin:0 auto;max-width:440px}.reward-celebration .reward-celebration-thanks{color:var(--award-muted);font-size:.8rem;line-height:1.65;margin:9px 0 17px}.reward-celebration-footer{display:grid;align-self:center;gap:9px;width:100%;max-width:340px}.reward-celebration-footer>.primary{width:100%;justify-content:center;min-height:46px;background:#5b4fce;color:#fff;border:1px solid #5b4fce;border-radius:12px;font-weight:600}.reward-celebration-footer>.primary:hover{background:#4e42ba}.reward-celebration-footer>.primary:focus-visible{outline:3px solid #9d87e4;outline-offset:3px}.reward-celebration-footer small{font-size:.72rem;line-height:1.6;color:var(--award-muted)}
[data-theme=dark] .reward-celebration{--award-ink:#f4efff;--award-muted:#c3bbce;--award-line:#544753;background:radial-gradient(ellipse at 50% 0,#8c6b2329,transparent 62%),linear-gradient(140deg,#302b30,#29263e)}[data-theme=dark] .reward-celebration-avatar{background:#49405e;color:#eee5ff}
.management-home>.reward-celebration{margin:0 0 16px}
@media(min-width:900px){.management-home>.reward-celebration{grid-template-columns:130px minmax(0,1fr) minmax(180px,240px);gap:24px;text-align:left;padding:24px 30px}.management-home .reward-celebration-person{justify-content:start}.management-home .reward-celebration-copy p{margin-left:0}.management-home .reward-celebration-thanks{margin-bottom:0}.management-home .reward-celebration-footer{text-align:center}.management-home .reward-celebration h2{font-size:1.7rem}}

/* The owner's four monthly totals keep a predictable reading order. */
.monthly-report-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(min-width:1100px){.workflow .monthly-report-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}}
