@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --ink: #17324a;
    --muted: #6d8296;
    --blue: #2f89f6;
    --blue-deep: #1d6fe0;
    --sheet: #ffffff;
    --canvas: #d7ebfb;
    --line: #e6eef6;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body.m-body {
    min-height: 100vh;
    font-family: Outfit, "Segoe UI", sans-serif;
    font-size: 17px;
    color: var(--ink);
    background:
        radial-gradient(540px 300px at 110% -4%, #d8c6ff 0%, transparent 62%),
        radial-gradient(460px 280px at -10% 0%, #9fd6ff 0%, transparent 58%),
        linear-gradient(180deg, #e5f3ff 0%, #f6f8fc 38%, #eef2f7 100%);
}
.m-app {
    width: min(430px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding: calc(18px + env(safe-area-inset-top)) 16px calc(118px + env(safe-area-inset-bottom));
}
.m-top { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 10px; align-items: center; }
.m-logo, .m-avatar {
    width: 42px; height: 42px; border-radius: 16px; display: grid; place-items: center;
    background: #fff; overflow: hidden; text-decoration: none; color: var(--blue); font-weight: 700;
    box-shadow: 0 8px 20px rgba(33, 92, 158, .12);
}
.m-logo { grid-column: 1; justify-self: start; }
.m-logo img { width: 100%; height: 100%; object-fit: cover; }
.m-bell, .m-avatar { position: relative; }
.m-bell {
    width: 42px; height: 42px; border-radius: 16px; background: #fff; text-decoration: none;
    box-shadow: 0 8px 20px rgba(33, 92, 158, .12);
}
.m-bell::before { content: ""; position: absolute; left: 14px; top: 13px; width: 14px; height: 14px; border: 2px solid var(--blue); border-radius: 8px 8px 9px 9px; }
.m-bell i {
    position: absolute; right: 6px; top: 6px; min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 99px; background: #ff5a6a; color: #fff; font-style: normal; font-size: 10px;
    display: grid; place-items: center;
}
.m-hello { grid-column: 1 / -1; width: max-content; margin: 16px 0 0; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.72); color: var(--muted); font-size: 13px; font-weight: 650; }
.m-top h1 { grid-column: 1 / -1; margin: 0; font-size: 34px; letter-spacing: -0.04em; line-height: 1; }
.m-date { grid-column: 1 / -1; margin: 6px 0 0; color: var(--blue); font-weight: 600; font-size: 13px; }
.m-sheet { margin-top: 16px; }
.m-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.m-days::-webkit-scrollbar { display: none; }
.m-day {
    flex: 0 0 58px; border: 0; border-radius: 18px; background: rgba(255,255,255,.72);
    color: var(--ink); padding: 10px 0 8px; cursor: pointer;
}
.m-day strong { display: block; font-size: 18px; }
.m-day small { color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.m-day.is-on { background: var(--blue); color: #fff; box-shadow: 0 10px 18px rgba(47, 137, 246, .28); }
.m-day.is-on small { color: rgba(255,255,255,.8); }
.m-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.m-stat {
    background: #fff; border-radius: 22px; padding: 16px; text-decoration: none; color: inherit;
    box-shadow: 0 10px 24px rgba(33, 92, 158, .08);
}
.m-stat b { display: block; font-size: 28px; letter-spacing: -0.04em; }
.m-stat span { color: var(--muted); font-size: 13px; }
.m-head { display: flex; justify-content: space-between; align-items: center; margin: 20px 2px 10px; }
.m-head h2, .m-group { margin: 0; font-size: 18px; }
.m-head a {
    width: 36px; height: 36px; border-radius: 14px; background: var(--blue); color: #fff;
    display: grid; place-items: center; text-decoration: none; font-size: 24px; line-height: 1;
}
.m-head a[href*="presences"], .m-head a[href*="finances"] { width: auto; height: auto; background: transparent; color: var(--blue); font-size: 14px; font-weight: 650; }
.m-cards { display: grid; gap: 12px; }
.m-card {
    position: relative; display: block; background: #fff; color: inherit; text-decoration: none;
    border-radius: 24px; padding: 16px 16px 16px 18px; box-shadow: 0 12px 28px rgba(33, 92, 158, .08);
}
.m-card-bar { position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 4px; background: var(--blue); }
.m-card strong { display: block; font-size: 17px; }
.m-card em { display: block; margin-top: 3px; color: var(--blue); font-style: normal; font-size: 13px; font-weight: 600; }
.m-card p { margin: 6px 72px 0 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
.m-card time {
    position: absolute; right: 12px; bottom: 12px; background: #17324a; color: #fff;
    border-radius: 10px; padding: 5px 8px; font-size: 11px; font-weight: 650;
}
.m-card.is-hidden, .m-mod.is-hidden, .m-line.is-hidden { display: none; }
.m-bars {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; align-items: end;
    height: 168px; background: linear-gradient(180deg, #ffffff, #eef5ff); border-radius: 26px; padding: 16px 12px 10px;
    box-shadow: 0 14px 28px rgba(33, 92, 158, .1);
}
.m-bars div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; }
.m-bars i { display: block; width: 100%; max-width: 22px; border-radius: 999px; background: linear-gradient(180deg, #b9dcff, #7aaef0); min-height: 10px; }
.m-bars .is-now i { background: linear-gradient(180deg, #67e3b0, #12815c); box-shadow: 0 8px 16px rgba(18, 129, 92, .28); }
.m-bars b { font-size: 10px; color: var(--blue-deep); min-height: 12px; }
.m-bars span { font-size: 11px; color: var(--muted); }
.m-wallets { display: grid; gap: 12px; }
.m-wallet {
    display: block; text-decoration: none; color: #f4fff8; border-radius: 26px; padding: 18px;
    background: linear-gradient(145deg, #1f8a62, #146b4c 70%);
    box-shadow: 0 16px 30px rgba(20, 107, 76, .22);
}
.m-wallet span, .m-wallet small { opacity: .85; font-size: 13px; }
.m-wallet strong { display: block; margin: 10px 0 4px; font-size: 30px; letter-spacing: -0.04em; }
.m-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.m-split p { margin: 0; background: #fff; border-radius: 18px; padding: 12px; }
.m-split span { display: block; color: var(--muted); font-size: 12px; }
.m-line {
    display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
    background: #fff; border-radius: 18px; padding: 12px; margin-top: 8px; text-decoration: none; color: inherit;
}
.m-line strong, .m-line b { display: block; font-size: 14px; }
.m-line small { color: var(--muted); }
.m-line b { font-weight: 700; text-align: right; }
.m-line .hub-open { margin-top: 6px; }
.m-dot { width: 10px; height: 10px; border-radius: 99px; background: #1f8a62; }
.m-dot.is-out { background: #e15b64; }
.m-group { margin: 18px 2px 8px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-size: 12px; }
.mod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mod-tile {
    display: block; background: #fff; color: inherit; text-decoration: none; border-radius: 22px; padding: 14px 14px 16px;
    box-shadow: 0 10px 24px rgba(33, 92, 158, .08);
}
.mod-tile b { display: block; font-size: 28px; letter-spacing: -0.04em; color: #1d6fe0; }
.mod-tile strong { display: block; margin-top: 6px; font-size: 15px; line-height: 1.25; }
.hub-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; margin-bottom: 8px; }
.hub-tile { display: grid; justify-items: center; gap: 6px; text-align: center; text-decoration: none; color: inherit; }
.hub-ico {
    width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center;
    background: linear-gradient(160deg, var(--tone, #2f89f6), #16324f); color: #fff;
    box-shadow: 0 12px 20px rgba(23, 50, 74, .16);
}
.hub-ico svg { width: 26px; height: 26px; }
.hub-tile strong { font-size: 11px; line-height: 1.2; font-weight: 650; }
.hub-tile small { color: var(--muted); font-size: 11px; font-weight: 700; }
.tone-blue { --tone: #2f89f6; --tone-soft: #e7f2ff; }
.tone-indigo { --tone: #5b6cff; --tone-soft: #eceeff; }
.tone-teal { --tone: #0f9f8a; --tone-soft: #e5f7f4; }
.tone-violet { --tone: #7c6cf0; --tone-soft: #f0edff; }
.tone-green { --tone: #1f8a62; --tone-soft: #e7f6ef; }
.tone-amber { --tone: #d4891a; --tone-soft: #fff4e4; }
.tone-rose { --tone: #d45386; --tone-soft: #fdeef4; }
.tone-ink { --tone: #17324a; --tone-soft: #e8eef4; }
.hub-hero {
    display: flex; align-items: center; gap: 14px; color: #fff; border-radius: 26px; padding: 18px;
    background: linear-gradient(145deg, var(--tone, #2f89f6), #14324d);
    box-shadow: 0 16px 30px rgba(20, 50, 80, .18);
}
.hub-hero .hub-ico { width: 54px; height: 54px; background: rgba(255,255,255,.16); color: #fff; box-shadow: none; }
.hub-face { width: 64px; height: 64px; border-radius: 20px; object-fit: cover; background: rgba(255,255,255,.2); }
.id-card { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin-top: 12px; padding: 16px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #184e86, #2f89f6 55%, #123a66); box-shadow: 0 16px 28px rgba(18, 58, 102, .25); }
.id-card img, .id-card b { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.id-card small, .id-card em { display: block; font-style: normal; opacity: .85; font-size: 12px; }
.id-card strong { display: block; margin: 3px 0; font-size: 18px; }
.mark-person { background: #fff; border-radius: 22px; padding: 16px; margin-top: 12px; }
.mark-person strong { display: block; font-size: 20px; }
.mark-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.mark-choices input { position: absolute; opacity: 0; }
.mark-choices span { display: grid; place-items: center; min-height: 72px; text-align: center; border-radius: 18px; padding: 16px 8px; background: #f3f7fb; font-weight: 700; font-size: 18px; }
.mark-choices input:checked + .is-present { background: #12815c; color: #fff; }
.mark-choices input:checked + .is-late { background: #d4891a; color: #fff; }
.mark-choices input:checked + .is-absent { background: #c4475b; color: #fff; }
.mark-choices input:checked + .is-excuse { background: #5b6cff; color: #fff; }
.hub-hero span { display: block; opacity: .85; font-size: 13px; }
.hub-hero strong { display: block; margin-top: 2px; font-size: 26px; letter-spacing: -0.04em; line-height: 1.05; }
.hub-back { display: inline-block; margin: 0 0 12px; color: var(--blue-deep); font-weight: 700; text-decoration: none; }
.hub-facts { display: grid; gap: 8px; margin-top: 12px; }
.hub-facts div { background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: 0 8px 18px rgba(33, 92, 158, .06); }
.hub-facts dt { color: var(--muted); font-size: 12px; }
.hub-facts dd { margin: 2px 0 0; font-weight: 650; line-height: 1.35; white-space: pre-wrap; }
.hub-row {
    display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
    background: #fff; color: inherit; text-decoration: none; border-radius: 20px; padding: 12px;
    margin-top: 8px; box-shadow: 0 10px 22px rgba(33, 92, 158, .07);
}
.hub-row .hub-ico { width: 46px; height: 46px; border-radius: 16px; background: var(--tone-soft, #e7f2ff); box-shadow: none; }
.hub-row strong { display: block; font-size: 17px; }
.hub-row small, .hub-row em { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.3; font-style: normal; }
.hub-row time { background: var(--tone, #17324a); color: #fff; border-radius: 10px; padding: 5px 8px; font-size: 11px; font-weight: 700; }
.hub-side { display: grid; gap: 6px; justify-items: end; }
.hub-open {
    display: inline-block; background: var(--tone, #1d6fe0); color: #fff; text-decoration: none; border: 0;
    border-radius: 12px; padding: 9px 12px; font-size: 14px; font-weight: 700; font-style: normal; font-family: inherit;
}
.hub-open.is-wa { background: #1f8a62; }
.hub-actions { display: flex; gap: 8px; margin: 8px 0 0; }
.hub-tile em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--tone, #1d6fe0); }
.hub-fold { background: #fff; border-radius: 18px; margin-top: 12px; box-shadow: 0 10px 24px rgba(33, 92, 158, .08); }
.hub-fold summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hub-fold summary::-webkit-details-marker { display: none; }
.hub-fold summary::after { content: "Ouvrir"; background: #1d6fe0; color: #fff; border-radius: 12px; padding: 7px 12px; font-size: 12px; }
.hub-fold[open] summary::after { content: "Fermer"; background: #17324a; }
.hub-fold .hub-form { box-shadow: none; margin-top: 0; padding-top: 0; }
.hub-flash { background: #fff; border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; font-weight: 650; }
.hub-flash.is-error { color: #9d2340; }
.hub-form { background: #fff; border-radius: 22px; padding: 14px 14px 16px; margin-top: 14px; box-shadow: 0 10px 24px rgba(33, 92, 158, .08); }
.hub-form h2 { margin: 0; font-size: 16px; }
.hub-form label { display: grid; gap: 4px; margin-top: 10px; }
.hub-form label span { color: var(--muted); font-size: 12px; font-weight: 650; }
.hub-form input, .hub-form select, .hub-form textarea { width: 100%; border: 0; background: #f3f7fb; border-radius: 12px; padding: 12px; font: inherit; color: var(--ink); }
.hub-form button, .m-go { display: block; width: 100%; margin-top: 12px; border: 0; border-radius: 16px; padding: 14px; background: linear-gradient(160deg, #49a4ff, #1b6adf); color: #fff; font: inherit; font-weight: 700; text-align: center; text-decoration: none; box-shadow: 0 12px 20px rgba(27, 106, 223, .28); transition: transform .16s ease; }
.hub-form button:active, .m-go:active, .hub-open:active { transform: scale(.98); }
.m-go.is-wa { background: linear-gradient(160deg, #3dcf8e, #12815c); }
.punch-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; background: #fff; border-radius: 18px; padding: 12px; margin-top: 8px; }
.punch-row form { margin: 0; }
.punch-row button { border: 0; border-radius: 12px; padding: 10px 12px; font: inherit; font-weight: 700; color: #fff; background: #12815c; }
.punch-row form:last-child button { background: #1b6adf; }
.hub-out {
    width: 100%; margin-top: 16px; border: 0; border-radius: 16px; padding: 14px;
    background: #17324a; color: #fff; font: inherit; font-weight: 700;
}
.mod-full {
    display: block; margin-top: 14px; text-align: center; text-decoration: none; color: #1d6fe0; font-weight: 700;
    background: #fff; border-radius: 16px; padding: 14px;
}
body.m-body.login-body {
    min-height: 100vh;
    background: radial-gradient(900px 520px at 50% 42%, #1a2d6b 0%, #0c1430 58%, #070d22 100%);
    color: #fff;
}
.glass-stage { position: relative; min-height: 100vh; display: grid; place-items: center; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.orb-a { width: 210px; height: 210px; right: -30px; top: 8%; background: radial-gradient(circle at 32% 32%, #d7e6ff, #6aa2ff 36%, #3478ef 70%); }
.orb-b { width: 150px; height: 150px; left: -36px; top: 22%; background: radial-gradient(circle at 32% 32%, #efe8ff, #9b7cff 40%, #6337e8 72%); }
.orb-c { width: 240px; height: 240px; left: -70px; bottom: 6%; background: radial-gradient(circle at 32% 32%, #d5e4ff, #5b93f6 42%, #2456c9 74%); }
.orb-d { width: 170px; height: 170px; right: -20px; bottom: 12%; background: radial-gradient(circle at 32% 32%, #f3e9ff, #b094ff 40%, #7b54f5 74%); }
.login-card {
    position: relative; z-index: 1;
    width: min(420px, calc(100% - 28px));
    margin: 24px auto;
    padding: 28px 22px 22px;
    display: flex; flex-direction: column; align-items: center;
    background: rgba(16, 26, 59, .46);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
    backdrop-filter: blur(16px);
}
.login-brand { display: flex; flex-direction: column; align-items: center; }
.login-logo {
    width: 72px; height: 72px; object-fit: cover; border-radius: 22px; background: #fff;
    border: 4px solid rgba(255, 255, 255, .85);
}
.login-mark { margin: 10px 0 0; color: #fff; font-size: 28px; font-weight: 700; letter-spacing: .08em; }
.login-card h1 { margin: 8px 0 0; font-size: 28px; font-weight: 700; color: #fff; }
.login-lead { margin: 6px 0 0; color: rgba(255, 255, 255, .72); font-size: 14px; text-align: center; }
.login-error { align-self: stretch; margin: 14px 0 0; background: rgba(232, 75, 85, .18); color: #ffd7db; border-radius: 14px; padding: 12px 14px; }
.login-card form { width: 100%; margin-top: 18px; }
.login-slot {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px; padding: 0 8px 0 14px; margin: 0 0 12px;
}
.login-slot svg { width: 20px; height: 20px; flex: none; color: rgba(255, 255, 255, .7); }
.login-slot:focus-within { border-color: rgba(255, 255, 255, .45); box-shadow: 0 0 0 4px rgba(52, 120, 239, .25); }
.login-field { width: 100%; border: 0; background: transparent; color: #fff; padding: 16px 8px; margin: 0; font: inherit; outline: none; }
.login-field::placeholder { color: rgba(255, 255, 255, .55); }
.login-eye { border: 0; background: transparent; color: rgba(255, 255, 255, .75); width: 44px; height: 44px; display: grid; place-items: center; padding: 0; }
.login-go {
    width: 100%; border: 1px solid rgba(255, 255, 255, .22); border-radius: 14px; margin-top: 6px; padding: 15px;
    background: linear-gradient(180deg, rgba(155, 186, 255, .38), rgba(99, 55, 232, .28));
    color: #fff; font: inherit; font-weight: 700;
}
.login-go:active { transform: scale(.98); }
.login-field.login-pin { text-align: center; letter-spacing: .45em; font-size: 28px; font-weight: 700; }
.login-mail { width: 100%; margin-top: 16px; color: rgba(255,255,255,.75); }
.login-mail summary { cursor: pointer; text-align: center; }
.login-mail form { margin-top: 12px; }
.login-note { margin: 16px 0 0; color: rgba(255, 255, 255, .62); font-size: 14px; text-align: center; }
.login-or {
    width: 100%; margin: 16px 0 0; display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center;
    color: rgba(255, 255, 255, .6); font-size: 13px;
}
.login-or::before, .login-or::after { content: ""; height: 1px; background: rgba(255, 255, 255, .16); }
.login-social { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.login-social a {
    width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16); color: #fff;
    display: grid; place-items: center;
}
.login-social svg { width: 22px; height: 22px; }
.login-social .is-wa { color: #b7f0d4; }
.login-social .is-fb { color: #d6e6ff; }
.login-social .is-ig { color: #ffd0e6; }
.login-social .is-yt { color: #ffd0d4; }
.login-social .is-tt { color: #fff; }
.m-mod {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    background: #fff; color: inherit; text-decoration: none; border-radius: 18px; padding: 14px 16px; margin-top: 8px;
}
.m-mod em { font-style: normal; background: #e8f3ff; color: var(--blue-deep); border-radius: 999px; padding: 4px 10px; font-weight: 700; }
.m-search input, .m-action {
    width: 100%; border: 0; border-radius: 16px; background: #fff; color: inherit;
}
.m-search input { padding: 14px 16px; font: inherit; outline: none; }
.m-intro { color: var(--muted); font-size: 13px; }
.m-intro a { color: var(--blue-deep); }
.m-action { display: block; text-decoration: none; padding: 16px; margin-top: 10px; }
.m-action strong { display: block; }
.m-action span { color: var(--muted); font-size: 13px; }
.m-empty { color: var(--muted); background: rgba(255,255,255,.7); border-radius: 18px; padding: 16px; }
.m-tabbar {
    position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%);
    width: min(400px, calc(100% - 18px)); display: grid; grid-template-columns: repeat(4, 1fr); align-items: end;
    background: rgba(255,255,255,.94); backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.85); border-radius: 28px; padding: 8px 8px 10px;
    box-shadow: 0 18px 40px rgba(18, 48, 90, .2);
}
.m-tabbar a {
    display: grid; justify-items: center; gap: 3px; text-decoration: none; color: #7d91a6;
    text-align: center; font-size: 11px; font-weight: 700; padding: 6px 0 2px; border-radius: 18px;
    transition: transform .18s ease, background .18s ease, color .18s ease;
}
.m-tabbar svg { width: 22px; height: 22px; }
.m-tabbar .is-on { color: #fff; background: linear-gradient(160deg, #4aa2ff, #1b6adf); box-shadow: 0 8px 16px rgba(27, 106, 223, .32); }
.m-tabbar .is-fab { margin-top: -22px; color: #12815c; }
.m-tabbar .is-fab svg { width: 24px; height: 24px; padding: 12px; box-sizing: content-box; border-radius: 20px; background: linear-gradient(160deg, #3dcf8e, #12815c); color: #fff; box-shadow: 0 12px 20px rgba(18, 129, 92, .34); }
.m-tabbar .is-fab.is-on { background: transparent; box-shadow: none; color: #12815c; }
body.m-body.w-body .m-app { padding-bottom: calc(168px + env(safe-area-inset-bottom)); }
body.m-body.w-body .m-hello { color: var(--muted); }
body.m-body.w-body .m-top h1 { color: var(--ink); }
.w-flash { margin: 12px 0 0; background: #e8fff3; color: #146b4c; border-radius: 16px; padding: 12px 14px; }
.w-flash.is-error { background: #ffe8ea; color: #9d2430; }
.w-flash p { margin: 0; }
.w-start, .w-report, .w-sheet, .w-preview, .w-offer {
    display: block; background: #fff; color: inherit; text-decoration: none; border-radius: 24px;
    box-shadow: 0 12px 28px rgba(18, 58, 102, .12);
}
.w-start { padding: 18px 18px 18px 20px; margin-top: 8px; background: linear-gradient(135deg, #49a6ff 0%, #1b6adf 55%, #123a66 140%); color: #fff; box-shadow: 0 16px 28px rgba(27, 106, 223, .28); }
.w-start strong { display: block; font-size: 22px; }
.w-start span, .w-report small, .w-report em { display: block; opacity: .85; font-style: normal; }
.w-report-wrap { display: grid; justify-items: end; }
.w-report-wrap .w-report { width: 100%; margin-top: 10px; }
.w-row-send {
    margin-top: 8px; background: linear-gradient(160deg, #3dcf8e, #12815c); color: #fff;
    text-decoration: none; font-weight: 700; border-radius: 14px; padding: 10px 16px;
    box-shadow: 0 10px 18px rgba(18, 129, 92, .24);
}
.w-send-hint { margin: 8px 0 0; text-align: center; color: #5f7388; font-size: 13px; }
.w-sent-card { background: #fff; border-radius: 22px; padding: 16px 18px; margin-top: 12px; box-shadow: 0 12px 24px rgba(18, 58, 102, .1); }
.w-sent-card small, .w-sent-card strong { display: block; }
.w-sent-card strong { font-size: 20px; margin-top: 2px; }
.w-sent-card p { display: flex; gap: 12px; margin: 8px 0 0; }
.w-sent-card b { color: #12815c; font-size: 18px; }
.w-sent-card em { display: block; margin-top: 8px; color: #123a66; font-style: normal; font-weight: 700; }
.w-offline-list { display: grid; gap: 8px; }
.w-offline-list:empty { display: none; }
.w-offline-card { background: #fff8eb; border-radius: 18px; padding: 12px 14px; }
.w-offline-card strong, .w-offline-card small { display: block; }
.w-offline-card small { color: #8a5a12; margin-top: 2px; }
.w-offline-card button { margin-top: 8px; border: 0; background: transparent; color: #9d2430; font: inherit; font-weight: 700; padding: 0; }
.w-picks label.is-sent { background: #fff8eb; }
.w-sent-note { display: block; color: #8a5a12; font-style: normal; font-weight: 700; font-size: 13px; }
.m-body input, .m-body textarea, .m-body select { scroll-margin-top: 96px; scroll-margin-bottom: 170px; }
.w-next-card, .w-draft { display: block; background: #fff; border-radius: 22px; padding: 16px 18px; margin-top: 12px; text-decoration: none; color: inherit; box-shadow: 0 12px 24px rgba(18, 58, 102, .1); }
.w-next-card { border-left: 6px solid #12815c; }
.w-next-card small, .w-next-card strong, .w-draft strong, .w-draft span { display: block; }
.w-next-card strong, .w-draft strong { font-size: 20px; margin-top: 2px; }
.w-next-card a { display: block; margin-top: 12px; border-radius: 16px; padding: 14px; text-align: center; text-decoration: none; font-weight: 700; color: #fff; background: linear-gradient(160deg, #3dcf8e, #12815c); }
.w-draft { background: #fff8eb; }
.w-draft span { margin-top: 4px; color: #8a5a12; }
.hub-form .mark-tools { display: grid; gap: 10px; margin: 4px 0 14px; }
.hub-form .mark-tools input { width: 100%; border: 0; border-radius: 16px; padding: 14px 16px; background: #f3f7fb; font: inherit; }
.hub-form .mark-tools button { margin: 0; background: #123a66; box-shadow: none; }
.w-offer-sum { margin: 10px 2px 0; font-weight: 800; font-size: 20px; color: #12815c; }
#mark-save { position: sticky; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 4; }
.w-report { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px; margin-top: 10px; background: linear-gradient(180deg, #fff, #f7fbff); transition: transform .16s ease; }
.w-report:active { transform: scale(.985); }
.w-date { width: 64px; text-align: center; }
.w-date b { display: block; font-size: 26px; letter-spacing: -0.04em; color: #1d6fe0; }
.w-date small, .w-report small { color: var(--muted); font-size: 12px; }
.w-report strong { display: block; }
.w-side { display: grid; justify-items: end; gap: 6px; font-size: 12px; }
.w-side b { font-weight: 700; }
.w-pill {
    display: inline-block; border-radius: 999px; padding: 4px 8px; font-style: normal;
    font-size: 11px; font-weight: 700; background: #eef4fb; color: var(--ink);
}
.w-pill.is-ok { background: #e5f7ee; color: #146b4c; }
.w-pill.is-draft { background: #fff4d8; color: #8a5a00; }
.w-pill.is-off { background: #f3e8ea; color: #9d2430; }
.w-kpis { display: grid; grid-template-columns: .7fr 1.5fr .8fr; gap: 8px; margin-top: 12px; }
.w-kpis p { margin: 0; border-radius: 20px; padding: 14px 10px; color: #fff; box-shadow: 0 12px 22px rgba(23, 50, 74, .12); }
.w-kpis p:nth-child(1) { background: linear-gradient(160deg, #3b97ff, #184e86); }
.w-kpis p:nth-child(2) { background: linear-gradient(160deg, #2aaa78, #0d5c40); }
.w-kpis p:nth-child(3) { background: linear-gradient(160deg, #f0b429, #c47b08); }
.w-kpis b { display: block; font-size: 16px; letter-spacing: -0.03em; line-height: 1.15; }
.w-kpis span { color: rgba(255,255,255,.82); font-size: 11px; }
.w-preview details { margin-top: 8px; }
.w-preview summary { font-weight: 700; color: var(--blue-deep); cursor: pointer; }
.w-date { width: 58px; border-radius: 16px; background: #eef5ff; padding: 6px 0; }
.w-progress, .w-channels { display: flex; gap: 8px; overflow-x: auto; margin: 8px 0 14px; }
.w-progress button, .w-channels label {
    border: 0; background: #fff; border-radius: 999px; padding: 8px 12px; font: inherit; font-weight: 650; color: var(--ink);
}
.w-progress .is-on { color: #fff; }
.w-channels label:has(input:checked) { background: #1d6fe0; color: #fff; }
.w-progress .is-on { background: #1d6fe0; color: #fff; }
.w-channels label { display: flex; align-items: center; gap: 6px; }
.w-label { display: grid; gap: 6px; margin: 10px 0; font-size: 13px; font-weight: 650; }
.w-label input, .w-label select, .w-label textarea, .w-filter, .w-offer input {
    width: 100%; border: 0; border-radius: 16px; background: #fff; padding: 14px; font: inherit; color: inherit;
}
.w-chips, .w-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.w-chips label, .w-picks label { cursor: pointer; }
.w-chips input, .w-picks input { position: absolute; opacity: 0; }
.w-chips span, .w-picks span {
    display: inline-block; background: #fff; border-radius: 16px; padding: 10px 12px;
}
.w-chips input:checked + span, .w-picks input:checked + span { background: #1d6fe0; color: #fff; }
.w-counter { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 18px; padding: 10px 12px; margin-top: 8px; }
.w-counter div { display: flex; align-items: center; gap: 8px; }
.w-counter button { width: 36px; height: 36px; border: 0; border-radius: 12px; background: #e7f2ff; color: #1d6fe0; font-size: 22px; }
.w-counter input { width: 64px; border: 0; text-align: center; font: inherit; font-size: 22px; font-weight: 700; }
.w-offer { padding: 12px; margin-top: 10px; display: grid; gap: 8px; }
.w-amount { display: grid; grid-template-columns: 1fr 92px; gap: 8px; }
.w-add, .w-go {
    display: block; width: 100%; margin-top: 12px; border: 0; border-radius: 16px; background: #1d6fe0; color: #fff;
    font: inherit; font-weight: 700; padding: 15px; text-align: center; text-decoration: none;
}
.w-go-quiet { background: #fff; color: #1d6fe0; }
.w-go-send, .w-wa { background: #1f8a62; }
.w-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.w-nav button { border: 0; border-radius: 14px; padding: 12px; font: inherit; font-weight: 700; background: #fff; }
.w-nav button[data-go="next"] { background: #1d6fe0; color: #fff; }
.w-sheet { overflow: hidden; }
.w-sheet header { background: linear-gradient(160deg, #184e86, #2f89f6); color: #fff; padding: 18px; }
.w-sheet h2 { margin: 4px 0; font-size: 30px; letter-spacing: -0.04em; }
.w-counts { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.w-counts p { margin: 0; padding: 12px 4px; }
.w-counts b { display: block; font-size: 24px; }
.w-counts span, .w-sheet dt { color: var(--muted); font-size: 12px; }
.w-sheet blockquote { margin: 0; padding: 16px 18px; background: #f4f8ff; }
.w-sheet blockquote strong { display: block; font-size: 20px; }
.w-sheet dl { margin: 0; }
.w-sheet dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--line); }
.w-sheet dd { margin: 0; font-weight: 700; text-align: right; }
.w-points { margin: 0; padding: 14px 18px; }
.w-totals { display: grid; gap: 8px; padding: 14px; }
.w-totals p { margin: 0; background: #e9f8f1; border-radius: 16px; padding: 12px; }
.w-totals strong { display: block; font-size: 22px; }
.w-people { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 14px; }
.w-people span { background: #eef4fb; border-radius: 999px; padding: 6px 10px; font-size: 13px; }
.w-preview { padding: 14px; }
.w-preview pre { white-space: pre-wrap; font-family: inherit; font-size: 14px; line-height: 1.45; margin: 8px 0; }
.w-picks label { width: 100%; }
.w-picks span small { display: block; color: inherit; opacity: .75; font-weight: 500; }
.w-feature { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 16px; }
.w-feature > a:first-child {
    display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
    background: linear-gradient(165deg, #ffffff, #e7f2ff); color: inherit; text-decoration: none; border-radius: 26px; padding: 12px;
    box-shadow: 0 16px 32px rgba(18, 58, 102, .14);
}
.w-feature strong { display: block; font-size: 17px; }
.w-feature em, .w-feature small { display: block; font-style: normal; }
.w-feature em { color: var(--blue-deep); font-size: 13px; font-weight: 650; }
.w-feature-go {
    display: grid; place-items: center; min-width: 78px; padding: 8px; border-radius: 24px;
    background: linear-gradient(180deg, #3dcf8e, #12815c); color: #fff; text-decoration: none; font-weight: 700; text-align: center;
    box-shadow: 0 12px 24px rgba(18, 129, 92, .28);
}
.w-lines, .w-sent { padding: 0 14px 8px; }
.w-lines p, .w-sent p { display: flex; justify-content: space-between; gap: 10px; margin: 0; padding: 8px 0; border-top: 1px solid var(--line); }
.w-lines span, .w-sent span, .w-sent small { color: var(--muted); font-size: 13px; }
.w-dock {
    position: fixed; z-index: 6; left: 50%; transform: translateX(-50%);
    bottom: calc(78px + env(safe-area-inset-bottom));
    width: min(400px, calc(100% - 20px));
    display: grid; grid-template-columns: 1.4fr .8fr .6fr; gap: 8px;
}
.w-dock .w-go { margin: 0; box-shadow: 0 10px 22px rgba(23, 50, 74, .16); }
.w-dock:has(> :only-child) { grid-template-columns: 1fr; }
.w-count { margin: 2px 2px 8px; font-weight: 700; color: var(--blue-deep); }
.w-tools { display: flex; gap: 8px; margin: 4px 0 8px; }
.w-tools button, .w-check {
    border: 0; border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-weight: 700; padding: 8px 12px;
}
.w-check { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.w-group { margin: 14px 2px 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.w-picks label.is-dim { opacity: .38; }
.w-queue { display: grid; gap: 8px; }
.w-ready {
    display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center;
    background: #fff; color: inherit; text-decoration: none; border-radius: 18px; padding: 10px 12px;
}
.w-ready b {
    width: 28px; height: 28px; border-radius: 99px; display: grid; place-items: center;
    background: #eef4fb; color: var(--blue-deep);
}
.w-ready.is-wa b { background: #e5f7ee; color: #146b4c; }
.w-ready small { display: block; color: var(--muted); font-weight: 600; }
.w-ready.is-done { outline: 2px solid #1f8a62; }
body.m-body.w-body .w-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; overflow: visible; }
body.m-body.w-body .w-progress button { display: grid; justify-items: center; gap: 4px; background: transparent; color: var(--muted); padding: 0; border-radius: 0; }
body.m-body.w-body .w-progress button b { width: 32px; height: 32px; border-radius: 99px; display: grid; place-items: center; background: #fff; color: var(--ink); }
body.m-body.w-body .w-progress button span { font-size: 11px; }
body.m-body.w-body .w-progress .is-on { background: transparent; color: var(--blue-deep); }
body.m-body.w-body .w-progress .is-on b { background: #1d6fe0; color: #fff; }
.m-tabbar svg { display: block; width: 22px; height: 22px; margin: 0 auto 2px; }
.m-tabbar span { display: none; }
@media (max-width: 480px) {
    .m-app { width: 100%; }
    .m-top h1 { font-size: 30px; }
}
