/* The time-off page. H&H ink and yellow, the same family as the HR dashboard.
   Built for a phone first: most of the people using it are on a shop floor. */

:root {
    --y: #FEDD00;
    --y-deep: #E5C700;
    --y-wash: #FFFBE0;
    --ink: #0A0A0A;
    --ink-900: #18181B;
    --ink-700: #3F3F46;
    --ink-600: #52525B;
    --ink-500: #71717A;
    --ink-300: #D4D4D8;
    --ink-200: #E4E4E7;
    --ink-100: #F4F4F5;
    --page: #F6F6F4;
    --good: #15803D;
    --good-wash: #DCFCE7;
    --bad: #B91C1C;
    --bad-wash: #FEE2E2;
    --warn: #B45309;
    --warn-wash: #FEF3C7;
    --r: 18px;
    --r-sm: 12px;
    --shadow: 0 1px 2px rgba(10, 10, 10, 0.05), 0 12px 28px -18px rgba(10, 10, 10, 0.25);
    --ease: 180ms cubic-bezier(0.2, 0, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }

.pto-body {
    margin: 0;
    background: var(--page);
    color: var(--ink-900);
    font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

.pto-body h1, .pto-body h2 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
.pto-body h1 { font-size: 30px; font-weight: 800; }
.pto-body h2 { font-size: 20px; font-weight: 800; }
:where(.pto-body) p { margin: 0; }
:where(.pto-body) button { font-family: inherit; font-size: inherit; line-height: inherit; color: inherit; }
.pto-body [hidden] { display: none !important; }

/* ---------- top bar ---------- */

.pto-top {
    background: #fff;
    border-bottom: 1px solid var(--ink-200);
    position: sticky;
    top: 0;
    z-index: 20;
}
.pto-top-in {
    max-width: 1040px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 60px;
}
.pto-logo { height: 44px; width: auto; display: block; }
.pto-top-title {
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--y);
    white-space: nowrap;
}
.pto-top-me { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.pto-me-name { font-weight: 700; }

/* ---------- layout ---------- */

.pto-main {
    max-width: 1040px;
    margin: 0 auto;
    padding: 28px 20px 80px;
    display: grid;
    gap: 20px;
}
.pto-main.is-narrow { max-width: 480px; padding-top: 48px; }

.pto-card {
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: var(--r);
    padding: 24px;
    box-shadow: var(--shadow);
}
.pto-card > h2 { margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }

.pto-hello h1 { font-size: 32px; }
.pto-hello p { color: var(--ink-600); margin-top: 4px; }

.pto-lead { color: var(--ink-600); margin: 8px 0 18px; }
.pto-fine { color: var(--ink-500); font-size: 13.5px; margin-top: 16px; }
.pto-fine a { color: var(--ink-900); }
.pto-empty { color: var(--ink-500); }
.pto-muted { color: var(--ink-500); font-size: 13px; }
.pto-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--y); }
.pto-eyebrow.is-dark { color: var(--ink-500); }
.pto-hl { color: var(--y); }

/* ---------- controls ---------- */

.pto-label { display: block; font-weight: 700; font-size: 14px; margin: 18px 0 8px; }
.pto-label span { font-weight: 400; color: var(--ink-500); }

.pto-input {
    display: block;
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid var(--ink-300);
    border-radius: var(--r-sm);
    background: #fff;
    font: inherit;
    color: var(--ink-900);
    transition: border-color var(--ease), box-shadow var(--ease);
}
.pto-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(254, 221, 0, 0.45); }
textarea.pto-input { resize: vertical; min-height: 64px; }
.pto-code { font-size: 30px; font-weight: 800; letter-spacing: 0.4em; text-align: center; padding-left: 0.4em; font-variant-numeric: tabular-nums; }
.pto-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 14.5px; color: var(--ink-700); cursor: pointer; }
.pto-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.pto-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.pto-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: var(--r-sm);
    border: 1.5px solid transparent;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--ease), background var(--ease), box-shadow var(--ease), opacity var(--ease);
}
.pto-btn:active { transform: translateY(1px); }
.pto-btn:focus-visible, .pto-link:focus-visible, .pto-chip:focus-visible, .pto-cal-day:focus-visible, .pto-tab:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(254, 221, 0, 0.6);
}
.pto-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.pto-btn.is-wide { width: 100%; margin-top: 18px; }
.pto-btn.is-small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.pto-btn.is-primary { background: var(--y); color: var(--ink); box-shadow: 0 1px 0 var(--y-deep) inset, 0 6px 16px -8px rgba(229, 199, 0, 0.9); }
.pto-btn.is-primary:hover:not([disabled]) { background: var(--y-deep); }
.pto-btn.is-quiet { background: var(--ink-100); color: var(--ink-900); }
.pto-btn.is-quiet:hover { background: var(--ink-200); }
.pto-btn.is-approve { background: var(--good); color: #fff; }
.pto-btn.is-approve:hover:not([disabled]) { background: #126c34; }
.pto-btn.is-decline { background: var(--bad); color: #fff; }
.pto-btn.is-decline-outline { background: #fff; color: var(--bad); border-color: #f0b4b4; }
.pto-btn.is-decline-outline:hover { background: var(--bad-wash); }

.pto-link {
    background: none;
    border: 0;
    padding: 0;
    color: var(--ink-900);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    font-size: inherit;
    border-radius: 4px;
}

.pto-alert {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: var(--r-sm);
    background: var(--ink-100);
    color: var(--ink-700);
    font-size: 15px;
}
.pto-alert.is-good { background: var(--good-wash); color: #14532D; font-weight: 600; }
.pto-alert.is-bad { background: var(--bad-wash); color: #7F1D1D; font-weight: 600; }
.pto-alert.is-warn { background: var(--warn-wash); color: #78350F; }
.pto-hint { color: var(--ink-500); font-size: 14px; margin-top: 8px; }
.pto-note { background: var(--y-wash); border: 1px solid #F3E48A; border-radius: var(--r-sm); padding: 12px 16px; font-size: 15px; }

.pto-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--bad);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
}
.pto-badge.is-quiet { background: var(--ink-200); color: var(--ink-700); }

.pto-pill {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}
.pto-pill.is-pending { background: var(--warn-wash); color: #78350F; }
.pto-pill.is-approved { background: var(--good-wash); color: #14532D; }
.pto-pill.is-denied { background: var(--bad-wash); color: #7F1D1D; }
.pto-pill.is-cancelled { background: var(--ink-100); color: var(--ink-600); }

.pto-tag {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 11px;
    border-radius: 8px;
    background: var(--ink-100);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-700);
}
.pto-tag.is-warn { background: var(--warn-wash); color: #78350F; }
.pto-tag.is-bad { background: var(--bad-wash); color: #7F1D1D; }
.pto-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.pto-avatar {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--y);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.02em;
}
.pto-avatar.is-small { width: 36px; height: 36px; font-size: 13px; }

.pto-quote {
    margin: 12px 0 0;
    padding: 10px 14px;
    border-left: 3px solid var(--ink-300);
    background: var(--ink-100);
    border-radius: 0 10px 10px 0;
    font-size: 15px;
    white-space: pre-wrap;
}
.pto-quote cite { display: block; font-style: normal; font-size: 12.5px; color: var(--ink-500); margin-top: 4px; }

/* ---------- tabs ---------- */

.pto-tabs { display: inline-flex; background: var(--ink-200); border-radius: 14px; padding: 4px; gap: 4px; justify-self: start; }
.pto-tab {
    border: 0;
    background: transparent;
    padding: 10px 18px;
    border-radius: 11px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-600);
    transition: background var(--ease), color var(--ease);
}
.pto-tab.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(10, 10, 10, 0.12); }

/* ---------- the balance ---------- */

.pto-hero {
    background:
        radial-gradient(700px 300px at 100% 0%, rgba(254, 221, 0, 0.16), transparent 60%),
        var(--ink);
    color: #fff;
    border-radius: 24px;
    padding: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 28px;
    box-shadow: 0 24px 48px -24px rgba(10, 10, 10, 0.55);
}
.pto-big { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 18px; }
.pto-big-n { font-size: 92px; font-weight: 800; line-height: 0.9; letter-spacing: -0.04em; color: var(--y); font-variant-numeric: tabular-nums; }
.pto-big-of { font-size: 22px; font-weight: 700; color: #A1A1AA; }
.pto-hero-msg { font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin: 8px 0 10px; }
.pto-hero-sub { color: #D4D4D8; max-width: 60ch; }

.pto-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: #27272A; }
.pto-bar span { display: block; height: 100%; transition: width 600ms cubic-bezier(0.2, 0, 0, 1); }
.pto-bar-used { background: #71717A; }
.pto-bar-wait { background: repeating-linear-gradient(135deg, #F59E0B 0 6px, #B45309 6px 12px); }
.pto-bar-left { background: var(--y); }
.pto-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 14px; color: #D4D4D8; }
.pto-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; }
.pto-legend .is-used { background: #71717A; }
.pto-legend .is-wait { background: #F59E0B; }
.pto-legend .is-left { background: var(--y); }

.pto-hero-facts { display: grid; gap: 12px; align-content: center; }
.pto-fact { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 16px; padding: 14px 16px; }
.pto-fact-k { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #A1A1AA; }
.pto-fact-v { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.pto-fact-s { font-size: 13.5px; color: #D4D4D8; margin-top: 2px; }

/* ---------- ask for time off ---------- */

.pto-cal { border: 1px solid var(--ink-200); border-radius: 16px; padding: 14px; max-width: 460px; }
.pto-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pto-cal-title { font-weight: 800; font-size: 17px; }
.pto-cal-nav {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 0;
    background: var(--ink-100);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.pto-cal-nav[disabled] { opacity: 0.3; cursor: not-allowed; }
.pto-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px 0; }
.pto-cal-dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-500); padding: 6px 0; text-transform: uppercase; letter-spacing: 0.04em; }
.pto-cal-day {
    position: relative;
    aspect-ratio: 1 / 1;
    min-height: 42px;
    border: 0;
    background: transparent;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15.5px;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: background var(--ease);
}
.pto-cal-day:hover:not([disabled]):not(.is-in) { background: var(--ink-100); }
.pto-cal-day[disabled] { color: var(--ink-300); cursor: not-allowed; }
.pto-cal-day.is-sunday { color: var(--ink-300); }
.pto-cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--ink-300); }
.pto-cal-day.has-approved::after, .pto-cal-day.has-pending::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    border-radius: 50%;
    background: var(--good);
}
.pto-cal-day.has-pending::after { background: #F59E0B; }
.pto-cal-day.is-in { background: var(--y-wash); border-radius: 0; color: var(--ink); }
.pto-cal-day.is-in.is-sunday { color: #A1A1AA; }
.pto-cal-day.is-first, .pto-cal-day.is-last { background: var(--y); font-weight: 800; }
.pto-cal-day.is-first { border-radius: 12px 0 0 12px; }
.pto-cal-day.is-last { border-radius: 0 12px 12px 0; }
.pto-cal-day.is-first.is-last { border-radius: 12px; }
.pto-cal-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: var(--ink-500); }
.pto-cal-key i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.pto-cal-key .is-approved { background: var(--good); }
.pto-cal-key .is-pending { background: #F59E0B; }
.pto-cal-key .is-sunday { background: var(--ink-300); }

.pto-ask { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 4px 32px; align-items: start; }
.pto-ask > h2, .pto-ask > .pto-for, .pto-ask > .pto-lead { grid-column: 1 / -1; }
.pto-ask > .pto-cal { grid-row: span 9; }
.pto-ask > :not(.pto-cal):not(h2):not(.pto-for):not(.pto-lead) { grid-column: 2; }
.pto-ask > .pto-label:first-of-type { margin-top: 0; }

.pto-for { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.pto-pick {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    background: var(--ink);
    color: #fff;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 4px;
}
.pto-pick-dates { font-weight: 800; font-size: 17px; }
.pto-pick-dates span { color: #A1A1AA; font-weight: 600; }
.pto-count { display: flex; align-items: center; gap: 10px; }
.pto-count-n { text-align: center; min-width: 78px; line-height: 1.1; }
.pto-count-n strong { display: block; font-size: 28px; color: var(--y); font-variant-numeric: tabular-nums; }
.pto-count-n span { font-size: 12px; color: #D4D4D8; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.pto-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #71717A;
    background: transparent;
    color: #fff !important;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.pto-step[disabled] { opacity: 0.3; cursor: not-allowed; }

.pto-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pto-chip {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1.5px solid var(--ink-300);
    background: #fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background var(--ease), border-color var(--ease);
}
.pto-chip:hover { border-color: var(--ink-500); }
.pto-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

.pto-send { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.pto-goes { color: var(--ink-600); font-size: 15px; }

.pto-sent { display: flex; align-items: center; gap: 16px; border-color: #86EFAC; background: #F0FDF4; }
.pto-sent h2 { font-size: 19px; }
.pto-sent p { color: #14532D; margin-top: 2px; }
.pto-sent > div { flex: 1; }
.pto-sent-mark, .pto-done-mark {
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--good);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    animation: pto-pop 420ms cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes pto-pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- lists ---------- */

.pto-list, .pto-asks, .pto-soon, .pto-people, .pto-also ul { list-style: none; margin: 0; padding: 0; }

.pto-req { padding: 16px 0; border-top: 1px solid var(--ink-200); }
.pto-req:first-child { border-top: 0; padding-top: 0; }
.pto-req:last-child { padding-bottom: 0; }
.pto-req-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pto-req-dates { font-weight: 800; font-size: 17px; }
.pto-req-meta { color: var(--ink-600); margin-top: 2px; }
.pto-req-line { color: var(--ink-500); font-size: 14.5px; margin-top: 4px; }
.pto-req.is-cancelled .pto-req-dates, .pto-req.is-denied .pto-req-dates { color: var(--ink-500); }
.pto-req .pto-link { margin-top: 10px; font-size: 14.5px; color: var(--ink-600); }
.pto-confirm { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; padding: 12px 14px; background: var(--bad-wash); border-radius: var(--r-sm); }
.pto-confirm span { flex: 1 1 240px; font-weight: 600; color: #7F1D1D; }

.pto-asks { display: grid; gap: 16px; }
.pto-ask-card { border: 1.5px solid var(--ink-200); border-radius: 16px; padding: 18px; }
.pto-ask-who { display: flex; align-items: center; gap: 12px; }
.pto-ask-who > div { flex: 1; min-width: 0; }
.pto-ask-who strong { display: block; font-size: 17px; }
.pto-ask-who > div span, .pto-ask-age, .pto-soon li > div span, .pto-person-who span { color: var(--ink-500); font-size: 14px; }
.pto-ask-age { white-space: nowrap; }
.pto-ask-dates { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin-top: 14px; }
.pto-with { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--warn); text-transform: uppercase; letter-spacing: 0.05em; }
.pto-with + .pto-ask-dates { margin-top: 2px; }
.pto-also { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--warn-wash); color: #78350F; font-size: 14.5px; }
.pto-also strong { display: block; margin-bottom: 2px; }
.pto-also.is-clear { background: var(--ink-100); color: var(--ink-600); }
.pto-answer { margin-top: 4px; }
.pto-answer-btns { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.pto-answer-btns .pto-btn { flex: 1 1 140px; }

.pto-fold { display: flex; width: 100%; align-items: center; justify-content: space-between; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.pto-fold h2 { display: flex; align-items: center; gap: 10px; }
.pto-fold > span { color: var(--ink-500); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.pto-soon li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ink-200); }
.pto-soon li > div:first-of-type { flex: 1; min-width: 0; }
.pto-soon li > div strong, .pto-soon li > div span { display: block; }
.pto-soon-when { text-align: right; }
.pto-soon .pto-soon-month { border-top: 0; padding: 14px 0 2px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500); }
.pto-soon .pto-soon-month:first-child { padding-top: 0; }
.pto-soon .pto-soon-month + li { border-top: 0; }

.pto-people-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.pto-people-head h2 { margin: 0; }
.pto-search { max-width: 260px; padding: 10px 14px; }
.pto-people li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ink-200); }
.pto-people li:first-child { border-top: 0; }
.pto-person-who { flex: 1; min-width: 0; }
.pto-person-who strong, .pto-person-who span { display: block; }
.pto-person-days { width: 190px; font-size: 15px; }
.pto-person-days strong { font-size: 18px; }
.pto-mini { height: 6px; border-radius: 999px; background: var(--ink-200); margin: 5px 0 3px; overflow: hidden; }
.pto-mini span { display: block; height: 100%; background: var(--y-deep); border-radius: 999px; }

/* ---------- sign in, answer page ---------- */

.pto-signin { padding: 32px 28px; }
.pto-choices { display: grid; gap: 10px; }
.pto-choice { text-align: left; padding: 14px 16px; border-radius: var(--r-sm); border: 1.5px solid var(--ink-300); background: #fff; cursor: pointer; }
.pto-choice:hover { border-color: var(--ink); }
.pto-choice strong, .pto-choice span { display: block; }
.pto-choice span { color: var(--ink-500); font-size: 14px; }

.pto-facts { margin: 18px 0 0; border: 1px solid var(--ink-200); border-radius: 14px; overflow: hidden; }
.pto-facts > div { display: flex; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--ink-200); }
.pto-facts > div:first-child { border-top: 0; }
.pto-facts dt { flex: none; width: 96px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-500); padding-top: 3px; }
.pto-facts dd { margin: 0; font-weight: 600; }
.pto-done { text-align: center; padding: 8px 0 4px; }
.pto-done h1 { margin-top: 14px; }
.pto-done p { color: var(--ink-600); margin-top: 6px; }
.pto-done.is-bad .pto-done-mark { background: var(--bad); }

.pto-toast {
    position: fixed;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    background: var(--ink);
    color: #fff;
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 700;
    box-shadow: 0 16px 40px -12px rgba(10, 10, 10, 0.5);
    z-index: 50;
    max-width: calc(100vw - 32px);
    animation: pto-rise 240ms cubic-bezier(0.2, 0, 0, 1);
}
.pto-toast.is-good { border-left: 5px solid #4ADE80; }
.pto-toast.is-bad { border-left: 5px solid #F87171; }
@keyframes pto-rise { from { transform: translate(-50%, 12px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* ---------- phones ---------- */

@media (max-width: 820px) {
    .pto-hero { grid-template-columns: 1fr; padding: 22px; gap: 20px; }
    .pto-ask { display: block; }
    .pto-ask > .pto-cal { max-width: none; margin-bottom: 14px; }
    .pto-ask > .pto-label:first-of-type { margin-top: 18px; }
}
@media (max-width: 560px) {
    .pto-main { padding: 18px 14px 72px; gap: 14px; }
    .pto-main.is-narrow { padding-top: 24px; }
    .pto-card { padding: 18px; border-radius: 16px; }
    .pto-top-in { padding: 8px 14px; gap: 10px; }
    .pto-logo { height: 26px; }
    .pto-top-title { font-size: 11px; padding: 4px 8px; }
    .pto-me-name { display: none; }
    .pto-body h1 { font-size: 26px; }
    .pto-hello h1 { font-size: 28px; }
    .pto-big-n { font-size: 76px; }
    .pto-hero-msg { font-size: 24px; }
    .pto-send .pto-btn { width: 100%; }
    .pto-tabs { display: flex; justify-self: stretch; }
    .pto-tab { flex: 1; justify-content: center; padding: 10px 8px; }
    .pto-people li { flex-wrap: wrap; }
    .pto-person-days { width: auto; flex: 1 1 100%; padding-left: 48px; }
    .pto-people .pto-btn { margin-left: 48px; }
    .pto-soon li { flex-wrap: wrap; }
    .pto-soon-when { text-align: left; flex: 1 1 100%; padding-left: 48px; }
    .pto-ask-dates { font-size: 19px; }
    .pto-facts > div { flex-direction: column; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
    .pto-body *, .pto-body *::before, .pto-body *::after { animation: none !important; transition: none !important; }
}
