/* ==========================================================================
   CareShift — professional sign-up and portal (mobile first)
   Loaded after style.css and admin.css.
   ========================================================================== */

:root { --tabbar-h: 64px; }

.small { font-size: .84rem; }
.mt-8 { margin-top: 8px; }
.mb-16 { margin-bottom: 16px; }
.optional { font-weight: 400; color: var(--muted); }
.req { font-weight: 400; color: var(--danger-strong); }
.label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
fieldset.field legend { padding: 0; }
.field-error { margin: 6px 0 0; color: var(--danger-strong); font-size: .85rem; font-weight: 600; }
.field input[aria-invalid="true"] { border-color: var(--danger-strong); }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.sub-title { font-size: 1rem; margin: 28px 0 4px; display: flex; align-items: center; gap: 8px; }

/* ==========================================================================
   Public auth pages (sign up, log in, reset, pending)
   ========================================================================== */
.pro-auth-body {
    background:
        radial-gradient(700px 400px at 100% 0%, var(--teal-tint), transparent 70%),
        radial-gradient(500px 360px at 0% 100%, var(--coral-tint), transparent 70%),
        var(--bg-soft);
    min-height: 100vh;
}
.pro-auth-header { padding: 14px 0; }
.pro-auth-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pro-auth-header .logo { height: 38px; width: auto; }
.pro-auth-header form { margin: 0; }
.pro-auth-main { display: flex; flex-direction: column; align-items: center; padding: 16px 16px 48px; }
.auth-card-wide { max-width: 680px; }
.auth-link { font-size: .9rem; font-weight: 600; text-decoration: none; }
.auth-switch { text-align: center; margin: 22px 0 0; font-size: .95rem; color: var(--muted); }
.auth-switch-quiet { margin-top: 6px; font-size: .85rem; }

/* Step indicator */
.form-steps { display: flex; gap: 4px; list-style: none; margin: 4px 0 24px; padding: 0; counter-reset: s; }
.form-steps li { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: .74rem; font-weight: 600; color: var(--muted); }
.form-steps li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); transition: background-color .2s; }
.form-steps li span { display: none; }
.form-steps li.is-done::before { background: var(--teal); }
.form-steps li.is-current::before { background: var(--coral); }
.form-steps li.is-current { color: var(--ink); }

.form-step { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.form-step > legend { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; margin-bottom: 18px; padding: 0; }
.js-steps .form-step:not(.is-active) { display: none; }
.no-js-steps .form-step + .form-step { padding-top: 24px; border-top: 1px solid var(--line); margin-top: 8px; }
.step-intro { color: var(--muted); font-size: .93rem; margin-bottom: 18px; }
.step-nav { display: flex; justify-content: space-between; gap: 10px; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line); }
.step-nav [data-step-next], .step-nav [data-step-submit] { margin-left: auto; }

/* Chips for radio / checkbox groups */
.option-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.option-chip { position: relative; cursor: pointer; }
.option-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option-chip span {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 44px; padding: 8px 14px; border-radius: 99px;
    border: 1.5px solid var(--line); background: #fff; font-size: .92rem; font-weight: 500;
    transition: border-color .15s, background-color .15s, color .15s;
}
.option-chip:hover span { border-color: var(--teal); }
.option-chip input:checked + span { border-color: var(--teal); background: var(--teal-tint); color: var(--teal-dark); font-weight: 600; }
.option-chip-check input:checked + span::before { content: "✓"; font-weight: 700; }
.option-chip input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.option-chip-sm span { min-height: 34px; padding: 4px 10px; font-size: .82rem; }

.range { width: 100%; accent-color: var(--teal); height: 32px; }

/* Uploads */
.upload-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.upload-row { position: relative; }
.upload-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-drop {
    display: flex; align-items: center; gap: 14px; cursor: pointer;
    padding: 14px 16px; border: 1.5px dashed #C9D3D9; border-radius: 12px; background: #fff;
    transition: border-color .15s, background-color .15s;
}
.upload-drop:hover { border-color: var(--teal); background: var(--teal-tint); }
.upload-input:focus-visible + .upload-drop, .upload-row:focus-within .upload-drop { outline: 3px solid var(--coral); outline-offset: 2px; }
.upload-row.has-file .upload-drop { border-style: solid; border-color: var(--teal); background: var(--teal-tint); }
.upload-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--neutral-tint); color: var(--muted); flex: none; }
.upload-row.has-file .upload-icon { background: var(--teal); color: #fff; }
.upload-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.upload-text strong { font-size: .93rem; }
.upload-text [data-file-name] { font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-cta { font-weight: 700; font-size: .85rem; color: var(--teal); }

.next-box { margin-top: 8px; padding: 16px 18px; border-radius: 12px; background: var(--bg-soft); font-size: .92rem; }
.next-box ol { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }

/* Pending page */
.status-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; list-style: none; margin: 0 0 24px; padding: 0; }
.status-track li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .78rem; font-weight: 600; color: var(--muted); position: relative; }
.status-track li span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--neutral-tint); font-size: .85rem; position: relative; z-index: 1; }
.status-track li:not(:last-child)::after { content: ""; position: absolute; top: 16px; left: 50%; width: 100%; height: 2px; background: var(--line); }
.status-track li.is-done span { background: var(--teal); color: #fff; }
.status-track li.is-done:not(:last-child)::after { background: var(--teal); }
.status-track li.is-current span { background: var(--coral); color: #fff; }
.status-track li.is-current { color: var(--ink); }

.admin-note { padding: 14px 16px; margin-bottom: 20px; border-radius: 12px; background: var(--info-tint); color: #1E3A8A; }
.admin-note p { margin: 0; }
.admin-note-label { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem; margin-bottom: 6px !important; }
.alert-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.alert-row form { margin: 0; }
.dev-panel {
    display: flex; gap: 14px; align-items: flex-start;
    margin: -6px 0 22px; padding: 16px 18px;
    border-radius: 14px; border: 1px solid #C7D7FE;
    background: linear-gradient(135deg, var(--info-tint), #F5F8FF);
}
.dev-panel-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: #fff; color: var(--info); box-shadow: var(--shadow-sm); }
.dev-panel p { margin: 0 0 10px; font-size: .9rem; color: #1E3A8A; }
.dev-panel-title { font-weight: 700; font-size: .95rem !important; margin-bottom: 4px !important; }
.dev-panel-small { margin: 8px 0 0 !important; font-size: .78rem !important; color: #3B5BA9 !important; }

.pending-section { margin-top: 8px; }
.pending-section h2 { font-size: 1.15rem; margin: 0 0 4px; }
.pending-details { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.pending-details summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; margin-bottom: 14px; }
.pending-details summary::-webkit-details-marker { display: none; }
.pending-details summary .muted { font-weight: 600; color: var(--teal); }
.pending-form { margin-top: 18px; }

.doc-checklist { list-style: none; margin: 14px 0 0; padding: 0; }
.doc-check { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.doc-check:last-child { border-bottom: 0; }
.doc-check-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--neutral-tint); color: var(--muted); flex: none; }
.doc-check-main { flex: 1; min-width: 160px; display: flex; flex-direction: column; line-height: 1.4; }
.doc-check-main strong { font-size: .93rem; }
.doc-check-main span { font-size: .8rem; color: var(--muted); }
.doc-check-main a { color: var(--teal); }
.doc-check-note { color: var(--danger-strong) !important; font-weight: 600; }
.doc-check-upload { margin: 0; }
.doc-check-upload .btn { cursor: pointer; position: relative; }
.doc-check-upload .btn:focus-within { outline: 3px solid var(--coral); outline-offset: 2px; }

/* ==========================================================================
   Portal shell
   ========================================================================== */
.pro-content { max-width: 1100px; }
.nav-count { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--coral); color: #fff; font-size: .72rem; font-weight: 700; text-align: center; line-height: 1.6; }
.topbar-bell { position: relative; }
.topbar-bell .dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); border: 2px solid var(--admin-bg); }

.tabbar { display: none; }

@media (max-width: 1024px) {
    .pro-body .admin-content { padding-bottom: calc(var(--tabbar-h) + 32px + env(safe-area-inset-bottom)); }
    .tabbar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
        display: grid; grid-template-columns: repeat(5, 1fr);
        height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background: #fff; border-top: 1px solid var(--line);
        box-shadow: 0 -6px 20px -12px rgba(16, 40, 40, .25);
    }
    .tabbar-item {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
        border: 0; background: none; color: var(--muted); text-decoration: none;
        font: 600 .7rem var(--font-main); cursor: pointer;
    }
    .tabbar-item.is-active { color: var(--teal); }
    .tabbar-icon { position: relative; }
    .tab-count-badge {
        position: absolute; top: -6px; right: -12px;
        min-width: 18px; padding: 0 5px; border-radius: 99px;
        background: var(--coral); color: #fff; font-size: .65rem; font-weight: 700; line-height: 1.6; text-align: center;
        box-shadow: 0 0 0 2px #fff;
    }
    .tab-dot { position: absolute; top: -2px; right: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 2px #fff; }
    .tabbar-icon .icon { width: 22px; height: 22px; }
    .tabbar-clock .tabbar-icon {
        display: grid; place-items: center; width: 52px; height: 52px; margin-top: -22px;
        border-radius: 50%; background: var(--coral); color: #fff;
        box-shadow: 0 8px 18px -6px rgba(242, 107, 91, .7); border: 4px solid #fff;
    }
    .tabbar-clock.is-active .tabbar-icon { background: var(--teal); box-shadow: 0 8px 18px -6px rgba(14, 124, 123, .7); }
    .pro-body .sidebar-toggle { display: none; }
}

/* ==========================================================================
   Dashboard
   ========================================================================== */
.pro-greeting { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pro-greeting p { margin: 0; }
.pro-greeting h2 { font-size: 1.8rem; margin: 0; }

.banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 16px; border-radius: 12px; text-decoration: none; font-size: .92rem; }
.banner > .icon:first-child { flex: none; }
.banner span { flex: 1; }
.banner-warning { background: var(--warning-tint); color: #78350F; border: 1px solid #FDE68A; }

.today-card {
    position: relative; overflow: hidden;
    padding: 22px; margin-bottom: 20px; border-radius: var(--radius-lg);
    background: var(--teal-deep); color: #fff;
}
.today-card::after { content: ""; position: absolute; right: -80px; top: -80px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .05); }
.today-head { display: flex; justify-content: space-between; align-items: center; }
.today-label { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #FF8A7A; }
.today-code { font-size: .8rem; color: rgba(255, 255, 255, .6); }
.today-patient { margin: 8px 0 0; font-weight: 600; color: rgba(255, 255, 255, .85); }
.today-time { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 700; margin: 2px 0 16px; line-height: 1.1; }
.today-map { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: rgba(255, 255, 255, .8); font-size: .88rem; }

.clock-btn {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; min-height: 64px; padding: 16px; border: 0; border-radius: 16px;
    font: 700 1.25rem var(--font-main); text-decoration: none; cursor: pointer;
    transition: transform .1s, box-shadow .15s, background-color .15s;
}
.clock-btn .icon { width: 26px; height: 26px; }
.clock-btn:active { transform: scale(.98); }
.clock-btn-in { background: var(--coral); color: #fff; box-shadow: 0 12px 24px -10px rgba(242, 107, 91, .8); }
.clock-btn-in:hover { background: var(--coral-dark); }
.clock-btn-out { background: var(--teal); color: #fff; box-shadow: 0 12px 24px -10px rgba(14, 124, 123, .8); }
.clock-btn-out:hover { background: var(--teal-dark); }
.clock-btn[disabled] { opacity: .6; cursor: wait; }

.pro-stats { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.panel-link-top { margin-top: 0; }

.notif-list { list-style: none; margin: 0; padding: 0; }
.notif a { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.notif:last-child a { border-bottom: 0; }
.notif-list-full .notif a { padding: 14px 22px; }
.notif-list-full .notif a:hover { background: #FAFCFC; }
.notif.is-unread .notif-body strong::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--coral); vertical-align: middle; }
.notif-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; flex: none; background: var(--teal-tint); color: var(--teal); }
.notif-direct, .notif-document { background: var(--coral-tint); color: var(--coral-dark); }
.notif-invoice, .notif-claim { background: var(--success-tint); color: var(--success); }
.notif-body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.notif-body strong { font-size: .93rem; }
.notif-body span { font-size: .85rem; color: var(--muted); }
.notif-when { font-size: .78rem; color: var(--muted); white-space: nowrap; }

/* ==========================================================================
   Offers
   ========================================================================== */
.board-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.live-count { margin: 0; color: var(--muted); }
.live-count strong { color: var(--ink); font-size: 1.1rem; }
.live-count .live-dot { font-size: 0; gap: 0; display: inline-flex; vertical-align: middle; margin-right: 6px; }
.filters { position: relative; }
.filters summary { list-style: none; }
.filters summary::-webkit-details-marker { display: none; }
.filters-body {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: min(360px, calc(100vw - 32px));
    padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.filters-actions { display: flex; justify-content: flex-end; gap: 8px; }

.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-bottom: 20px; }
.offer-card { display: flex; flex-direction: column; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .15s, opacity .2s; }
.offer-card:hover { box-shadow: var(--shadow); }
.offer-card.is-taken { opacity: .6; background: var(--bg-soft); box-shadow: none; }
.offer-card-direct { border-color: #F3B4AA; }
.offer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.offer-care { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; }
.offer-rate { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--teal); white-space: nowrap; }
.offer-rate small { font-size: .8rem; color: var(--muted); font-family: var(--font-main); font-weight: 600; }
.offer-place { display: flex; align-items: center; gap: 6px; margin: 4px 0 12px; font-size: .9rem; }
.offer-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0 0 12px; padding: 12px; border-radius: 10px; background: var(--bg-soft); }
.offer-facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--muted); }
.offer-facts dd { margin: 2px 0 0; font-size: .9rem; font-weight: 600; }
.offer-req, .offer-notes { font-size: .88rem; margin: 0 0 8px; }
.offer-notes { color: var(--muted); }
.offer-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: .8rem; }
.offer-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.taken-label { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 99px; background: var(--neutral-tint); color: var(--muted); font-weight: 700; }
.claim { position: relative; }
.claim summary { list-style: none; }
.claim summary::-webkit-details-marker { display: none; }
.claim-confirm {
    position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 10; width: min(300px, calc(100vw - 48px));
    padding: 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: .9rem;
}
.claim-confirm p { margin: 0 0 8px; }

.clash-label { display: inline-block; padding: 6px 10px; border-radius: 8px; background: var(--warning-tint); color: var(--warning); font-size: .8rem; font-weight: 600; }
.offer-actions form { margin: 0; }
.request-status { margin: 0 0 8px; padding: 8px 12px; border-radius: 8px; font-size: .86rem; background: var(--warning-tint); color: #78350F; }
.request-approved { background: var(--success-tint); color: #14532D; }
.request-declined { background: var(--danger-tint); color: #7A271A; }
.today-card-empty .today-time { font-size: 1.6rem; }
.today-card-empty .btn { position: relative; z-index: 1; margin-top: 8px; }

.countdown { display: flex; align-items: center; gap: 6px; margin: -18px -18px 14px; padding: 10px 18px; border-radius: var(--radius) var(--radius) 0 0; background: var(--coral-tint); color: var(--coral-dark); font-size: .88rem; }
.countdown.is-urgent { background: var(--danger-strong); color: #fff; }

/* ==========================================================================
   Assignments & calendar
   ========================================================================== */
.view-switch { margin-bottom: 16px; }
.segmented a { display: block; white-space: nowrap; padding: 7px 16px; border-radius: 7px; font-weight: 600; font-size: .9rem; color: var(--muted); text-decoration: none; }
.segmented a.is-on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.segmented-links { margin: 0; }

.assignment { padding: 18px; margin-bottom: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.assignment-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.assignment-head h2 { font-size: 1.25rem; margin: 2px 0 0; }
.assignment-head p { margin: 0; font-size: .82rem; }
.address-link {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 12px;
    border-radius: 12px; background: var(--teal-tint); color: var(--teal-dark); text-decoration: none; font-weight: 600; font-size: .93rem;
}
.address-link span { flex: 1; }
.instructions { padding: 12px 14px; margin-bottom: 12px; border-left: 3px solid var(--coral); background: var(--bg-soft); border-radius: 0 10px 10px 0; font-size: .9rem; }
.instructions p { margin: 4px 0 0; }

.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.cal-nav h2 { font-size: 1.15rem; margin: 0; }
.week-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.week-day { display: flex; gap: 14px; align-items: stretch; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.week-day.is-today { border-color: var(--teal); box-shadow: inset 3px 0 0 var(--teal); }
.week-date { width: 42px; flex: none; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.week-date span { font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.week-date strong { font-family: var(--font-heading); font-size: 1.4rem; }
.week-shifts { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; font-size: .9rem; }
.week-shift { padding: 6px 10px; border-radius: 8px; background: var(--teal-tint); color: var(--teal-dark); }

.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.month-dow { text-align: center; font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--muted); padding: 6px 0; }
.month-cell { min-height: 74px; padding: 6px; border-radius: 8px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.month-cell.is-other { background: transparent; border-color: transparent; color: var(--muted); }
.month-cell.is-today { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.month-num { font-size: .82rem; font-weight: 700; }
.month-shift { font-size: .7rem; font-weight: 700; padding: 1px 5px; border-radius: 4px; background: var(--teal); color: #fff; width: max-content; max-width: 100%; }

/* ==========================================================================
   Clock in / out
   ========================================================================== */
.clock-app { max-width: 520px; margin: 0 auto 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.clock-shift { padding: 20px 20px 4px; }
.clock-shift .today-label { color: var(--coral-dark); }
.clock-shift h2 { font-size: 1.5rem; margin: 4px 0 2px; }
.clock-shift-time { color: var(--muted); margin: 0 0 12px; }
.clock-panel { padding: 4px 20px 22px; }
.clock-panel h3 { font-size: 1.2rem; }
.clock-checks { display: grid; gap: 6px; margin-bottom: 16px; }
.check-line { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .9rem; color: var(--muted); }
.check-line.is-ok { color: var(--success); }
.check-line.is-bad { color: #B45309; font-weight: 600; }
.clock-small { font-size: .82rem; color: var(--muted); margin: 10px 0 0; text-align: center; }
.clock-status { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 0 0; color: var(--muted); }
.clock-status .live-dot { font-size: 0; gap: 0; }
.timer { font-family: var(--font-heading); font-size: clamp(3rem, 15vw, 4.2rem); font-weight: 700; text-align: center; margin: 4px 0 0; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.timer.is-paused { color: var(--muted); }
.clock-panel .btn-lg { margin: 14px 0 16px; min-height: 52px; }
.clock-panel .flag-line { justify-content: center; margin-top: 8px; }
.summary-list { margin: 0 0 16px; padding: 14px; border-radius: 12px; background: var(--bg-soft); display: grid; gap: 8px; }
.summary-list div { display: flex; justify-content: space-between; }
.summary-list dt { color: var(--muted); }
.summary-list dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.summary-total { padding-top: 8px; border-top: 1px solid var(--line); font-size: 1.1rem; }
.done-mark { display: grid; place-items: center; width: 72px; height: 72px; margin: 10px auto 12px; border-radius: 50%; background: var(--success-tint); color: var(--success); }
.done-mark .icon { width: 36px; height: 36px; stroke-width: 2.4; }
[data-panel="done"] { text-align: center; }
[data-panel="done"] .btn { margin-top: 10px; }
.instructions-panel { max-width: 520px; margin: 0 auto; }
.instructions-panel summary { cursor: pointer; }
.instructions-panel p { margin: 10px 0 0; }

/* ==========================================================================
   Timesheets & earnings
   ========================================================================== */
.ts-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ts-item { padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.ts-main { display: flex; align-items: center; gap: 14px; }
.ts-date { width: 44px; flex: none; display: flex; flex-direction: column; align-items: center; line-height: 1.1; padding: 6px 0; border-radius: 10px; background: var(--bg-soft); }
.ts-date span { font-size: .66rem; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.ts-date strong { font-family: var(--font-heading); font-size: 1.25rem; }
.ts-body { flex: 1; min-width: 0; }
.ts-body p { margin: 0; }
.ts-body .muted { font-size: .78rem; }
.ts-times strong { font-variant-numeric: tabular-nums; }
.ts-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ts-hours { font-family: var(--font-heading); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.ts-item .entry-comment { margin: 12px 0 0; }
.ts-item .inline-form { margin-top: 10px; }

.earn-hero { padding: 22px; margin-bottom: 20px; border-radius: var(--radius-lg); background: var(--teal-deep); color: #fff; }
.earn-amount { font-family: var(--font-heading); font-size: clamp(2.4rem, 10vw, 3.2rem); font-weight: 700; margin: 4px 0 0; line-height: 1.1; }
.earn-sub { margin: 4px 0 0; color: rgba(255, 255, 255, .8); }
.earn-hero .clock-small { text-align: left; color: rgba(255, 255, 255, .6); }

.invoice-list { list-style: none; margin: 0; padding: 0; }
.invoice-list a { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.invoice-list a:hover { background: #FAFCFC; }
.invoice-list a > div:first-child { flex: 1; display: flex; flex-direction: column; }
.invoice-list .muted { font-size: .8rem; }
.invoice-list-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: .8rem; }
.invoice-list-right strong { font-size: 1rem; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Profile & notifications
   ========================================================================== */
.profile-jump { position: sticky; top: var(--topbar-h); z-index: 5; background: var(--admin-bg); }
.pro-body .panel { scroll-margin-top: calc(var(--topbar-h) + 56px); }
.availability { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 10px 0 16px; }
.avail-day { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 10px; background: var(--bg-soft); }
.avail-day strong { font-size: .85rem; }
.narrow-form { max-width: 420px; }
.privacy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.privacy-actions form { margin: 0; padding: 16px; border-radius: 12px; background: var(--bg-soft); }
.privacy-actions p { font-size: .9rem; color: var(--muted); }
.notif-settings td { vertical-align: middle; }
.notif-settings .switch { display: inline-block; }

/* ==========================================================================
   Install as an app
   ========================================================================== */
.install-card {
    display: flex; align-items: center; gap: 14px;
    margin: 0 0 18px; padding: 14px 16px;
    border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    animation: install-in .4s ease both;
}
@keyframes install-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.install-icon { width: 52px; height: 52px; border-radius: 14px; flex: none; box-shadow: var(--shadow-sm); }
.install-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.install-text strong { font-size: .95rem; }
.install-text span { font-size: .84rem; color: var(--muted); }
.install-actions { display: flex; align-items: center; gap: 4px; }
.install-close { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.install-close:hover { background: var(--bg-soft); color: var(--ink); }
.auth-card .install-card { margin: 24px 0 0; box-shadow: none; background: var(--bg-soft); }

.app-hero { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; padding: 22px; border-radius: var(--radius-lg); background: var(--teal-deep); color: #fff; }
.app-hero img { width: 88px; height: 88px; border-radius: 22px; flex: none; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4); }
.app-hero h2 { font-size: 1.35rem; margin: 0 0 6px; }
.app-hero p { margin: 0; color: rgba(255, 255, 255, .82); }
.app-installed { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--success-tint); color: #14532D; font-weight: 600; }
.app-quick .btn { margin-top: 4px; }
.app-guides { display: grid; gap: 0; }
.app-guide.is-yours { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.app-guide .panel-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.os-chip { padding: 3px 10px; border-radius: 99px; background: var(--teal-tint); color: var(--teal-dark); font-size: .78rem; font-family: var(--font-main); }
.steps-list { margin: 0; padding-left: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps-list li { position: relative; padding-left: 40px; line-height: 1.55; counter-increment: s; }
.steps-list li::before {
    content: counter(s); position: absolute; left: 0; top: -1px;
    display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
    background: var(--teal); color: #fff; font-weight: 700; font-size: .85rem;
}
.share-glyph { display: inline-grid; place-items: center; width: 24px; height: 24px; vertical-align: -6px; border-radius: 6px; background: var(--info-tint); color: var(--info); }
.share-glyph svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app-facts li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; line-height: 1.55; }
.app-facts .icon { margin-top: 3px; color: var(--teal); }

/* ==========================================================================
   Profile picture & payment change
   ========================================================================== */
.profile-card { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.profile-photo { flex: none; }
.profile-avatar { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--teal-tint); color: var(--teal-dark); font: 700 1.8rem var(--font-heading); }
.profile-avatar.avatar-img { object-fit: cover; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line); }
.profile-avatar.is-new { box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--coral); }
.profile-main { flex: 1; min-width: 0; }
.profile-main h2 { font-size: 1.35rem; margin: 0; }
.profile-main > p { margin: 2px 0 10px; color: var(--muted); }
.profile-photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.profile-photo-actions form { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.profile-photo-actions label.btn { cursor: pointer; }
.avatar-confirm { display: inline-flex; gap: 6px; }
.profile-main .field-hint.field-error { color: var(--danger-strong); }
@media (max-width: 520px) { .profile-card { flex-direction: column; text-align: center; } .profile-photo-actions { justify-content: center; } }

.pending-change { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; padding: 14px 16px; border-radius: 12px; background: var(--warning-tint); border: 1px solid #FDE68A; }
.pending-change p { margin: 0 0 4px; }
.pending-change-title { display: flex; align-items: center; gap: 6px; font-weight: 700; color: #78350F; }
.pending-change form { margin: 0; }
.payment-edit[open] .inline-form-body { max-width: 640px; }
.privacy-download form.inline { display: inline-block; margin: 0 6px 6px 0; }

/* Admin applications: decision checklist */
.check-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
.check-list li { display: flex; align-items: center; gap: 8px; color: var(--danger-strong); }
.check-list li.ok { color: var(--success); }

/* ==========================================================================
   Small screens
   ========================================================================== */
@media (max-width: 640px) {
    .auth-card-wide { padding: 24px 18px; }
    .form-steps { gap: 3px; }
    .form-steps li { font-size: 0; }
    .form-steps li.is-current { font-size: .74rem; }
    .offer-grid { grid-template-columns: 1fr; }
    .privacy-actions { grid-template-columns: 1fr; }
    .month-cell { min-height: 52px; padding: 4px; }
    .month-shift { font-size: 0; width: 8px; height: 8px; padding: 0; border-radius: 50%; }
    .pro-greeting h2 { font-size: 1.5rem; }
    .today-time { font-size: 1.9rem; }
    .notif-list-full .notif a { padding: 12px 16px; }
    .invoice-list a { padding: 14px 16px; }
    .status-track li { font-size: .7rem; }
    .step-nav .btn-lg { padding: .85em 1.3em; }
}

@media print {
    .tabbar, .profile-jump { display: none !important; }
}
.avatar-img { object-fit: cover; padding: 0; }
.greeting-avatar { flex: none; text-decoration: none; }
.pro-greeting .greeting-text { flex: 1; }
.pro-greeting { align-items: center; gap: 14px; }

/* ---------- Clock in / out, timesheets (live) ---------- */
.clock-message { margin: 0 20px 10px; padding: 10px 12px; border-radius: 10px; background: var(--warning-tint); color: #78350F; font-size: .9rem; font-weight: 600; }
.clock-message.is-error { background: var(--danger-tint, #FEECE8); color: var(--danger-strong, #B42318); }
.clock-closed { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); color: var(--muted); font-size: .92rem; }
.clock-btn-done { background: var(--success-tint); color: var(--success); }
.clock-out-form { margin-top: 4px; }
.clock-confirm { margin-top: 14px; }
.clock-confirm[hidden] { display: none; }
.clock-confirm .btn-ghost { margin-top: 8px; }
.banner-live { background: var(--success-tint); color: #14532D; border: 1px solid #BBF7D0; }
.banner-live .live-dot { font-size: 0; gap: 0; flex: none; }
.shift-switch { display: flex; max-width: 520px; margin: 0 auto 14px; overflow-x: auto; }
.shift-switch a { flex: 1; text-align: center; }
.ts-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ts-toolbar .cal-nav { margin: 0; gap: 12px; }
.ts-toolbar .cal-nav strong { min-width: 9em; text-align: center; }
.ts-filter select { padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: .9rem; background: #fff; color: var(--ink); }
.ts-item.entry-flagged { border-left: 4px solid #D97706; }
.ts-item .flag-line { margin-top: 10px; }
@media (max-width: 640px) {
    .ts-toolbar { flex-direction: column; align-items: stretch; }
    .ts-toolbar .cal-nav { justify-content: space-between; }
}

/* ---------- Completed services (earnings) ---------- */
.service-list { list-style: none; margin: 0; padding: 0; }
.service-row { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-top: 1px solid var(--line); }
.service-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.service-main .muted { font-size: .82rem; }
.service-amount { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: .8rem; color: var(--muted); text-align: right; }
.service-amount strong { font-size: 1rem; font-variant-numeric: tabular-nums; }
.service-plus { color: var(--success); }
.service-pending { color: var(--muted); }
.service-none { color: var(--muted); text-decoration: line-through; }
@media (max-width: 640px) { .service-row { padding: 12px 16px; } }
.recover-box { flex-wrap: wrap; }
.recover-box span { flex: 1 1 260px; }

/* ---------- Work done / payout ---------- */
.work-done { margin: 14px 0 12px; padding: 14px 16px; border-radius: 12px; background: var(--bg-soft); }
.work-done-title { margin: 0 0 8px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.work-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
.work-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.work-list li > span:first-child { flex: 1; min-width: 0; }
.work-list li > span:last-child { flex: none; }
.payout-line { display: flex; align-items: flex-start; gap: 6px; margin: 6px 0 12px; font-size: .86rem; color: var(--muted); }
.payout-line .icon { flex: none; margin-top: 2px; color: var(--teal); }
.payout-line strong { color: var(--ink); }
.clock-confirm .confirm-check { margin: 4px 0 6px; }

/* ---------- Job payment / mark as done ---------- */
.job-box { margin: 14px 0 12px; padding: 14px 16px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); }
.job-box.job-open { background: var(--teal-tint); border-color: rgba(14, 124, 123, .25); }
.job-box.job-confirmed { background: var(--success-tint); border-color: #BBF7D0; }
.job-box-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.job-box .work-done-title { margin-bottom: 2px; }
.job-price { margin: 0 0 6px; font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.job-box .small { margin: 6px 0 10px; }
.job-box .inline-form-body { background: #fff; }

/* ---------- Clock in option on a job ---------- */
.clock-cta { margin: 12px 0 14px; padding: 14px 16px; border-radius: 14px; background: var(--coral-tint, #FEECE8); }
.clock-cta p { margin: 0 0 10px; }
.clock-cta .muted.small { margin-top: -6px; }
.clock-cta-open { background: var(--success-tint); }
.clock-cta-open p { display: flex; align-items: center; gap: 6px; }
.clock-cta-open .live-dot { font-size: 0; gap: 0; }
.clock-cta-later { background: var(--bg-soft); }
.clock-cta-later p:first-child { display: flex; align-items: center; gap: 6px; }
.clock-btn-wait { background: #fff; color: var(--muted); border: 1.5px dashed var(--line); cursor: default; font-size: 1rem; min-height: 52px; }
.clock-cta .clock-btn { min-height: 56px; font-size: 1.1rem; }
.assignment.is-new { box-shadow: 0 0 0 2px var(--coral); animation: claimed-pulse 1.6s ease-out 1; }
@keyframes claimed-pulse { from { box-shadow: 0 0 0 8px rgba(242, 107, 91, .35); } to { box-shadow: 0 0 0 2px var(--coral); } }
@media (prefers-reduced-motion: reduce) { .assignment.is-new { animation: none; } }

/* ---------- Offer board filters: dropdown on laptops, bottom sheet on phones ---------- */
.board-head .filters { margin-left: auto; }
.filters summary.is-active { border-color: var(--teal); background: var(--teal-tint); }
.filters-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin-left: 2px; border-radius: 99px; background: var(--teal); color: #fff; font-size: .75rem; }
.filters-backdrop { display: none; }
.filters-head { display: flex; align-items: center; justify-content: space-between; margin: -4px 0 12px; }
.filters-head strong { font-family: var(--font-heading); font-size: 1.05rem; }
.filters-body { box-sizing: border-box; width: 380px; max-width: calc(100vw - 32px); max-height: calc(100vh - 140px); overflow: auto; }
.filters-body .field { min-width: 0; }
.filters-body input, .filters-body select { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.filters-body .field-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.filters-actions { position: sticky; bottom: -18px; margin: 0 -18px -18px; padding: 12px 18px; background: #fff; border-top: 1px solid var(--line); }
.filters-actions .btn { flex: 1; justify-content: center; }

.filter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: -6px 0 16px; padding: 0; }
.filter-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 12px; border-radius: 99px; background: var(--teal-tint); color: var(--teal-dark); font-size: .86rem; font-weight: 600; text-decoration: none; }
.filter-chips a:hover { background: #d4ecea; }
.filter-chips a .icon { width: 14px; height: 14px; }
.filter-chips .filter-chips-clear { background: none; color: var(--muted); text-decoration: underline; padding-left: 4px; }

@media (max-width: 640px) {
    .board-head { flex-wrap: nowrap; align-items: flex-start; }
    .live-count { flex: 1; min-width: 0; }
    .filters { position: static; }
    .filters[open] .filters-backdrop { display: block; position: fixed; inset: 0; z-index: 90; background: rgba(15, 23, 42, .45); }
    .filters-body {
        position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 91;
        width: 100%; max-width: none; max-height: 85vh; padding: 18px 18px 0;
        border-radius: 20px 20px 0 0; border: 0; box-shadow: 0 -12px 40px rgba(15, 23, 42, .25);
        animation: sheet-up .2s ease-out;
    }
    .filters-body::before { content: ""; display: block; width: 40px; height: 4px; margin: -6px auto 12px; border-radius: 99px; background: var(--line); }
    .filters-actions { bottom: 0; margin: 8px -18px 0; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }
    .filters-body .field-row { grid-template-columns: 1fr 1fr; }
}
@keyframes sheet-up { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .filters-body { animation: none; } }
body.filters-open { overflow: hidden; }

/* ==========================================================================
   Dashboard (v2)
   ========================================================================== */
.dash { animation: dash-in .35s ease both; }
@keyframes dash-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Greeting */
.dash-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.dash-hero .avatar-lg { width: 60px; height: 60px; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }
.dash-hero-text { flex: 1; min-width: 0; }
.dash-hero p { margin: 0; }
.dash-date { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.dash-hero h2 { font-size: clamp(1.45rem, 4.5vw, 1.9rem); margin: 2px 0 4px; line-height: 1.15; letter-spacing: -.01em; }
.dash-role { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; }

/* Alerts */
.dash-alerts { display: grid; gap: 10px; margin-bottom: 20px; }
.dash-alerts:not(:has(.banner)) { display: none; }
.dash-alerts .banner { margin: 0; padding: 12px 14px 12px 12px; border-radius: 14px; transition: transform .15s, box-shadow .15s; }
.dash-alerts a.banner:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.dash .banner-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none !important; border-radius: 10px; background: rgba(255, 255, 255, .7); }
.banner-quiet { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.banner-quiet .banner-icon { background: var(--teal-tint); color: var(--teal); }

/* Layout: shift + week on the left, numbers on the right */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.dash-main, .dash-side { display: grid; gap: 20px; min-width: 0; }

/* Today's shift */
.dash .today-card {
    margin: 0; padding: 24px;
    background:
        radial-gradient(420px 260px at 110% -10%, rgba(242, 107, 91, .22), transparent 70%),
        radial-gradient(360px 240px at -10% 120%, rgba(14, 124, 123, .55), transparent 70%),
        var(--teal-deep);
    box-shadow: 0 24px 48px -24px rgba(11, 59, 58, .7);
}
.dash .today-card::after { right: -90px; top: -90px; width: 240px; height: 240px; border-width: 40px; border-color: rgba(255, 255, 255, .045); }
.dash .today-label { display: inline-flex; align-items: center; gap: 8px; }
.dash .today-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dash .today-code { padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .75); }
.dash .today-time { position: relative; z-index: 1; font-size: clamp(2.2rem, 7vw, 2.8rem); margin: 14px 0 12px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.today-dash { color: rgba(255, 255, 255, .45); font-weight: 500; }
.today-chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 18px; padding: 0; }
.today-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .12); font-size: .86rem; font-weight: 600; color: rgba(255, 255, 255, .92); }
.today-chips .icon { opacity: .75; }
.today-progress { position: relative; z-index: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.today-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #FF8A7A, var(--coral)); transition: width .6s ease; }
.today-status { position: relative; z-index: 1; margin: 8px 0 16px; font-size: .84rem; font-weight: 600; color: rgba(255, 255, 255, .7); }
.dash .clock-btn { border-radius: 18px; }
.dash .clock-btn-done { background: rgba(220, 252, 231, .95); }
.dash .today-map {
    display: flex; gap: 12px; margin-top: 14px; padding: 10px 12px;
    border-radius: 14px; background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none;
    transition: background-color .15s;
}
.dash .today-map:hover { background: rgba(255, 255, 255, .13); }
.today-map-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: rgba(255, 255, 255, .12); }
.today-map-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; font-size: .9rem; font-weight: 600; }
.today-map-text small { font-size: .74rem; font-weight: 600; color: rgba(255, 255, 255, .6); }
.dash .today-map > .icon:last-child { align-self: center; opacity: .6; }
.dash .today-card-empty .today-time { font-size: 1.7rem; margin-bottom: 4px; }
.dash .today-card-empty .today-patient { position: relative; z-index: 1; margin-bottom: 14px; }
.dash .today-card-empty .today-patient strong { color: #fff; }

/* Generic white card */
.dash-card { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.dash-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.dash-card-head h3 { margin: 0; font-size: 1.05rem; }
.dash-card-link { display: inline-flex; align-items: center; gap: 2px; font-size: .86rem; font-weight: 700; color: var(--teal); text-decoration: none; }
.dash-card-link:hover { color: var(--teal-dark); }

/* Week strip */
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; list-style: none; margin: 0; padding: 0; }
.week-strip-day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 2px; border-radius: 12px; background: var(--bg-soft); line-height: 1.15; text-align: center; }
.week-strip-dow { font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.week-strip-day strong { font-family: var(--font-heading); font-size: 1.2rem; }
.week-strip-info { font-size: .7rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.week-strip-day.has-shift { background: var(--teal-tint); }
.week-strip-day.has-shift .week-strip-info { color: var(--teal-dark); font-weight: 700; }
.week-strip-day.is-past { opacity: .55; }
.week-strip-day.is-today { background: var(--teal); color: #fff; box-shadow: 0 8px 18px -8px rgba(14, 124, 123, .8); }
.week-strip-day.is-today .week-strip-dow, .week-strip-day.is-today .week-strip-info { color: rgba(255, 255, 255, .85); }

/* Earnings */
.earn-card {
    position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px;
    padding: 20px; border-radius: var(--radius-lg); text-decoration: none; color: var(--ink);
    background: linear-gradient(140deg, #fff 30%, var(--teal-tint));
    border: 1px solid rgba(14, 124, 123, .18);
    transition: transform .15s, box-shadow .15s;
}
.earn-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.earn-card-top { display: flex; align-items: center; justify-content: space-between; }
.earn-card-label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.earn-card-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--teal); color: #fff; box-shadow: 0 8px 16px -8px rgba(14, 124, 123, .9); }
.earn-card-amount { font-family: var(--font-heading); font-size: clamp(2rem, 6vw, 2.4rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.earn-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: .86rem; color: var(--muted); }
.earn-card-foot strong { color: var(--ink); }
.earn-card-wait { padding: 2px 10px; border-radius: 99px; background: var(--warning-tint); color: var(--warning); font-weight: 600; font-size: .78rem; }

/* Stat tiles */
.dash .pro-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.dash .stat { padding: 14px; border-radius: 16px; box-shadow: var(--shadow-sm); }
.dash .stat-icon { width: 32px; height: 32px; margin-bottom: 10px; }
.dash .stat-icon .icon { width: 18px; height: 18px; }
.dash .stat-label { order: 3; font-size: .78rem; line-height: 1.3; }
.dash .stat-value { order: 2; font-size: 1.6rem; }
.dash .stat-note { order: 4; color: var(--coral-dark); font-weight: 600; }
.dash .stat-coral { border-color: #F7C3BB; background: linear-gradient(160deg, #fff 40%, var(--coral-tint)); }

/* Shortcuts */
.quick-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 10px; }
.quick-links a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: .78rem; font-weight: 600; text-align: center; transition: background-color .15s; }
.quick-links a:hover { background: var(--bg-soft); }
.quick-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--teal-tint); color: var(--teal); transition: background-color .15s, color .15s; }
.quick-links a:hover .quick-icon { background: var(--teal); color: #fff; }

@media (max-width: 1024px) {
    .dash-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .dash-hero { gap: 12px; margin-bottom: 16px; }
    .dash-hero .avatar-lg { width: 52px; height: 52px; }
    .dash-grid, .dash-main, .dash-side { gap: 16px; }
    .dash .today-card { padding: 20px 18px; }
    .week-strip { gap: 4px; }
    .week-strip-day { padding: 8px 0; }
    .week-strip-day strong { font-size: 1.05rem; }
    .week-strip-info { font-size: .62rem; }
    .dash .stat { padding: 12px; }
    .dash .stat-value { font-size: 1.35rem; }
    .dash .stat-note { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .dash, .today-progress span { animation: none; transition: none; }
}

/* ==========================================================================
   Portal pages (v2): offers, assignments, clock, timesheets, profile, notifications
   ========================================================================== */

/* ---------- Shared pieces ---------- */
.pro-body .panel { border-radius: 18px; box-shadow: var(--shadow-sm); }
.pro-body .panel-title { display: flex; align-items: center; gap: 10px; }
.panel-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--teal-tint); color: var(--teal); }
.panel-icon .icon { width: 18px; height: 18px; }

.pro-body .banner { border-radius: 14px; }
.pro-body .banner a { color: inherit; font-weight: 700; }
.pro-body .banner-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none !important; border-radius: 10px; background: rgba(255, 255, 255, .7); }

.pro-body .empty-state { padding: 48px 20px; margin-bottom: 20px; background: #fff; border: 1px dashed #C9D3D9; border-radius: 18px; }
.pro-body .empty-state h2 { font-size: 1.2rem; margin: 0 0 6px; }
.pro-body .empty-state p { max-width: 34em; margin: 0 auto 16px; }
.empty-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 16px; background: var(--teal-tint); color: var(--teal); }
.empty-icon .icon { width: 26px; height: 26px; }

.pro-body .segmented { border-radius: 12px; }
.pro-body .segmented a { border-radius: 9px; }

/* Status tabs as pills */
.pro-body .tab-list { gap: 8px; padding-bottom: 2px; border-bottom: 0; }
.pro-body .tab { padding: 8px 14px; margin: 0; border: 1px solid var(--line); border-radius: 99px; background: #fff; }
.pro-body .tab:hover { border-color: var(--teal); }
.pro-body .tab[aria-current="page"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.pro-body .tab[aria-current="page"] .tab-count { background: rgba(255, 255, 255, .22); color: #fff; }

/* Page intro with an icon */
.page-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding: 18px 20px; border-radius: 18px; background: linear-gradient(135deg, #fff 35%, var(--teal-tint)); border: 1px solid rgba(14, 124, 123, .16); }
.page-hero h2 { font-size: 1.15rem; margin: 0 0 2px; }
.page-hero p { margin: 0; color: var(--muted); font-size: .92rem; }
.page-hero-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--teal); color: #fff; box-shadow: 0 8px 18px -8px rgba(14, 124, 123, .9); }
.page-hero-coral { background: linear-gradient(135deg, #fff 35%, var(--coral-tint)); border-color: #F7C3BB; }
.page-hero-coral .page-hero-icon { background: var(--coral); box-shadow: 0 8px 18px -8px rgba(242, 107, 91, .9); }

/* ---------- Offer board & direct offers ---------- */
.board-head { align-items: center; padding: 14px 16px; margin-bottom: 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.live-count p { margin: 0; }
.live-count-num { display: flex; align-items: center; gap: 2px; font-weight: 600; }
.live-count-num strong { font-family: var(--font-heading); font-size: 1.5rem; margin-right: 4px; line-height: 1; }
.live-count-sub { font-size: .84rem; color: var(--muted); margin-top: 2px !important; }

.offer-grid { gap: 18px; }
.offer-card { position: relative; padding: 18px; border-radius: 18px; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s, opacity .2s, border-color .2s; }
.offer-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: rgba(14, 124, 123, .3); }
.offer-card.is-taken { transform: none; }
.offer-card.is-taken::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(91, 101, 115, .04) 10px 20px); pointer-events: none; }
.offer-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.offer-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 13px; background: var(--teal-tint); color: var(--teal); }
.offer-card-direct .offer-icon { background: var(--coral-tint); color: var(--coral-dark); }
.offer-title { flex: 1; min-width: 0; }
.offer-care { display: block; font-size: 1.1rem; line-height: 1.25; }
.offer-title .offer-place { margin: 3px 0 0; font-size: .86rem; color: var(--ink); }
.offer-title .offer-place .icon { color: var(--muted); flex: none; }
.offer-rate { display: flex; flex-direction: column; align-items: flex-end; font-size: 1.3rem; line-height: 1.1; }
.offer-rate small { margin-top: 2px; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

.offer-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0; margin-bottom: 14px; border: 1px solid var(--line); background: #fff; border-radius: 14px; overflow: hidden; }
.offer-facts > div { padding: 10px 12px; min-width: 0; }
.offer-facts > div + div { border-left: 1px solid var(--line); }
.offer-facts dt { display: flex; align-items: center; gap: 4px; font-size: .66rem; }
.offer-facts dt .icon { width: 12px; height: 12px; }
.offer-facts dd { font-size: .86rem; line-height: 1.35; overflow-wrap: anywhere; }
.offer-facts-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.offer-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 12px; padding: 0; }
.offer-tags li { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; background: var(--bg-soft); border: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--ink); }
.offer-tags .icon { color: var(--teal); }
.offer-notes { padding: 10px 12px; border-radius: 12px; background: var(--bg-soft); font-size: .86rem; }
.offer-foot { padding-top: 14px; }
.offer-meta { color: var(--muted); font-size: .8rem; }
.pro-body .offer-foot .btn-primary, .pro-body .claim summary { padding-inline: 1.4em; }
.pro-body .clash-label { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 6px 12px; }

/* Direct offers: countdown strip across the top */
.offer-card-direct { border-color: #F7C3BB; }
.offer-card-direct .countdown { margin: -18px -18px 16px; padding: 10px 18px; border-radius: 18px 18px 0 0; font-weight: 600; }
.countdown strong { font-variant-numeric: tabular-nums; }
.countdown-by { margin-left: auto; font-size: .78rem; font-weight: 500; opacity: .8; white-space: nowrap; }
.offer-actions { align-items: flex-start; }
.offer-actions .inline-form[open] { flex-basis: 100%; }

/* ---------- Assignments ---------- */
.view-switch { display: inline-flex; }
.assignment { padding: 20px; margin-bottom: 16px; border-radius: 18px; box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--topbar-h) + 16px); }
.assignment-head { align-items: center; gap: 14px; margin-bottom: 16px; }
.assignment-avatar { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--teal-deep); color: #fff; font: 700 1rem var(--font-heading); letter-spacing: .02em; }
.assignment-title { flex: 1; min-width: 0; }
.assignment-head h2 { margin: 0; font-size: 1.2rem; line-height: 1.25; }
.assignment-head .muted { margin: 2px 0 0; font-size: .84rem; }
.address-link { border-radius: 14px; transition: background-color .15s; }
.address-link:hover { background: #d4ecea; }
.instructions { border-radius: 0 14px 14px 0; }
.emergency-line { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--danger-tint); color: #7A271A; font-size: .88rem; }
.emergency-line .icon { flex: none; margin-top: 2px; }
.request-status { border-radius: 12px; }
.job-box { border-radius: 16px; }
.clock-cta { border-radius: 16px; }
.clock-cta .clock-btn, .assignment .clock-btn { border-radius: 14px; }

/* Week view */
.cal-nav { padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.cal-nav h2 { font-size: 1.05rem; }
.cal-nav .icon-btn { background: var(--bg-soft); }
.week-list { gap: 10px; }
.week-day { padding: 14px; border-radius: 16px; box-shadow: var(--shadow-sm); }
.week-day.is-today { box-shadow: inset 4px 0 0 var(--teal), var(--shadow-sm); }
.week-date { width: 46px; justify-content: center; padding: 6px 0; border-radius: 12px; background: var(--bg-soft); }
.week-day.is-today .week-date { background: var(--teal); color: #fff; }
.week-day.is-today .week-date span { color: rgba(255, 255, 255, .85); }
.week-shift { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 8px 12px; border-radius: 10px; border-left: 3px solid var(--teal); text-decoration: none; transition: background-color .15s; }
.week-shift:hover { background: #d4ecea; }
.week-shift.is-done { background: var(--bg-soft); border-left-color: var(--line); color: var(--muted); }
.week-shift span { font-size: .86rem; }
.week-shifts > .muted { font-size: .86rem; }

/* Month view */
.month-grid { gap: 6px; }
.month-cell { border-radius: 12px; transition: border-color .15s; }
.month-cell.is-today { background: var(--teal-tint); }
.month-cell.is-today .month-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: #fff; }
.month-shift { border-radius: 6px; }

/* ---------- Clock in / out ---------- */
.clock-app { border-radius: 24px; box-shadow: var(--shadow); border: 0; }
.clock-shift {
    position: relative; overflow: hidden; padding: 22px 20px 18px; color: #fff;
    background:
        radial-gradient(360px 220px at 110% -10%, rgba(242, 107, 91, .22), transparent 70%),
        var(--teal-deep);
}
.clock-shift::after { content: ""; position: absolute; right: -70px; top: -70px; width: 190px; height: 190px; border-radius: 50%; border: 32px solid rgba(255, 255, 255, .045); pointer-events: none; }
.clock-shift .today-label { color: #FF8A7A; display: inline-flex; align-items: center; gap: 8px; }
.clock-shift .today-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.clock-shift .today-code { padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .1); }
.clock-shift h2 { position: relative; z-index: 1; margin: 10px 0 10px; font-size: 1.6rem; color: #fff; }
.clock-shift .today-chips { margin-bottom: 14px; }
.clock-shift .address-link { position: relative; z-index: 1; margin: 0; background: rgba(255, 255, 255, .08); color: #fff; }
.clock-shift .address-link:hover { background: rgba(255, 255, 255, .14); }
.clock-message { margin: 16px 20px 0; }
.clock-panel { padding: 20px 20px 24px; }
.clock-checks { gap: 8px; }
.check-line { padding: 10px 12px; border-radius: 12px; background: var(--bg-soft); }
.check-line.is-ok { background: var(--success-tint); }
.check-line.is-bad { background: var(--warning-tint); }
.check-line .icon { flex: none; }
.clock-small { line-height: 1.5; }

.timer-ring {
    display: grid; place-items: center; align-content: center; gap: 2px;
    width: min(240px, 70vw); aspect-ratio: 1; margin: 14px auto 6px; border-radius: 50%;
    background: radial-gradient(closest-side, #fff 80%, transparent 81% 100%), conic-gradient(var(--teal) 0 100%);
    box-shadow: 0 16px 40px -20px rgba(14, 124, 123, .6);
}
.timer-ring.is-paused { background: radial-gradient(closest-side, #fff 80%, transparent 81% 100%), conic-gradient(#D97706 0 100%); }
.timer-label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.timer-ring .timer { margin: 0; font-size: clamp(2.2rem, 11vw, 3rem); }
.clock-confirm { padding: 16px; border-radius: 16px; background: var(--bg-soft); }
.clock-confirm h3 { margin-top: 0; }
.clock-confirm .summary-list { background: #fff; }
.done-mark { box-shadow: 0 0 0 10px rgba(220, 252, 231, .5); }
[data-panel="done"] h3, .clock-panel > h3 { text-align: center; }

.instructions-panel { padding: 0; overflow: hidden; }
.instructions-panel summary { display: flex; align-items: center; gap: 10px; padding: 16px 18px; list-style: none; }
.instructions-panel summary::-webkit-details-marker { display: none; }
.instructions-panel summary > .icon:last-child { margin-left: auto; color: var(--muted); transition: transform .2s; }
.instructions-panel[open] summary > .icon:last-child { transform: rotate(90deg); }
.instructions-panel p { margin: 0; padding: 0 18px 14px; }
.instructions-panel p:first-of-type { padding-top: 4px; }
.instructions-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--teal-tint); color: var(--teal); }
.shift-switch { border-radius: 12px; }

/* ---------- Timesheets ---------- */
.ts-toolbar { padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.ts-toolbar .segmented { margin: 0; }
.ts-toolbar .cal-nav { padding: 0; border: 0; background: none; }
.pro-body .stats-grid-3.pro-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pro-body .stat { border-radius: 16px; box-shadow: var(--shadow-sm); }
.ts-list { gap: 12px; }
.ts-item { padding: 14px 16px; border-radius: 16px; box-shadow: var(--shadow-sm); transition: box-shadow .15s; }
.ts-item:hover { box-shadow: var(--shadow); }
.ts-date { width: 50px; padding: 8px 0; border-radius: 12px; background: var(--teal-tint); color: var(--teal-dark); }
.ts-date span { color: var(--teal); }
.ts-body p { line-height: 1.4; }
.ts-times strong { font-family: var(--font-heading); font-size: 1.1rem; }
.ts-what { font-size: .88rem; }
.ts-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px !important; font-size: .78rem; color: var(--muted); }
.ts-meta span { display: inline-flex; align-items: center; gap: 4px; }
.ts-meta .icon { width: 13px; height: 13px; }
.ts-hours { font-size: 1.25rem; font-weight: 700; color: var(--teal-deep); }
.ts-item.entry-flagged { border-left-width: 4px; }

/* ---------- Profile ---------- */
.profile-card { position: relative; overflow: hidden; flex-wrap: wrap; padding: 22px; border-radius: 22px; border: 0; color: #fff; background: radial-gradient(420px 260px at 110% -10%, rgba(242, 107, 91, .22), transparent 70%), var(--teal-deep); box-shadow: 0 24px 48px -26px rgba(11, 59, 58, .7); }
.profile-card::after { content: ""; position: absolute; right: -80px; top: -80px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .045); pointer-events: none; }
.profile-card > * { position: relative; z-index: 1; }
.profile-avatar { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .15); }
.profile-avatar.avatar-img { box-shadow: 0 0 0 4px rgba(255, 255, 255, .2); }
.profile-main > p { color: rgba(255, 255, 255, .75); }
.profile-card .field-hint { color: rgba(255, 255, 255, .6); }
.profile-card .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, .5); }
.profile-card .btn-secondary:hover { background: rgba(255, 255, 255, .1); }
.profile-card .btn-ghost { color: rgba(255, 255, 255, .85); }
.profile-card .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.profile-facts { flex-basis: 100%; align-self: stretch; text-align: left; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 4px 0 0; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); }
.profile-facts > div { padding: 10px 14px; min-width: 0; }
.profile-facts > div + div { border-left: 1px solid rgba(255, 255, 255, .1); }
.profile-facts dt { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.profile-facts dd { margin: 2px 0 0; font-weight: 700; }
.profile-facts dd.is-ok { color: #86EFAC; }
.profile-facts dd.is-warn { color: #FDBA74; }

.profile-jump { padding: 10px 0; margin-bottom: 16px; }
.profile-jump .tab { gap: 6px; }

.doc-checklist { display: grid; gap: 8px; }
.doc-check { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.doc-check:last-child { border-bottom: 1px solid var(--line); }
.doc-verified .doc-check-icon { background: var(--success-tint); color: var(--success); }
.doc-missing .doc-check-icon, .doc-expired .doc-check-icon, .doc-rejected .doc-check-icon { background: var(--danger-tint); color: var(--danger-strong); }
.doc-missing, .doc-expired, .doc-rejected { border-color: #F7C3BB; }
.doc-expiring .doc-check-icon, .doc-pending .doc-check-icon { background: var(--warning-tint); color: var(--warning); }

.pro-body .dl-grid { padding: 14px 16px; border-radius: 14px; background: var(--bg-soft); }
.privacy-actions form, .privacy-actions .privacy-download { padding: 16px; border-radius: 14px; background: var(--bg-soft); }
.privacy-actions .privacy-download form { padding: 0; background: none; }

/* ---------- Notifications ---------- */
.notify-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notify-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.notify-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--teal-tint); color: var(--teal); }
.notify-icon .icon { width: 18px; height: 18px; }
.notify-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.notify-text strong { font-size: .93rem; }
.notify-text span { font-size: .84rem; color: var(--muted); }
.notify-on { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; background: var(--success-tint); color: var(--success); font-size: .76rem; font-weight: 700; white-space: nowrap; }
.notify-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Log out in the top bar ---------- */
.topbar-logout { margin: 0; }
.topbar-logout .btn { gap: 6px; color: var(--muted); border: 1px solid var(--line); background: #fff; }
.topbar-logout .btn:hover { color: var(--danger-strong); border-color: #F7C3BB; background: var(--danger-tint); }

/* ---------- Phones ---------- */
@media (max-width: 640px) {
    .topbar-logout .btn { width: 40px; height: 40px; padding: 0; justify-content: center; }
    .topbar-logout .btn span { display: none; }
    .page-hero { padding: 16px; gap: 12px; }
    .page-hero-icon { width: 42px; height: 42px; }
    .board-head { padding: 12px 14px; }
    .offer-card, .assignment { padding: 16px; }
    .offer-card-direct .countdown { margin: -16px -16px 14px; padding: 10px 16px; }
    .countdown-by { display: none; }
    .offer-facts-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .offer-facts-4 > div:nth-child(3) { border-left: 0; }
    .offer-facts-4 > div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .assignment-avatar { width: 42px; height: 42px; font-size: .9rem; }
    .assignment-head { flex-wrap: wrap; }
    .pro-body .stats-grid-3.pro-stats { gap: 8px; }
    .pro-body .stats-grid-3 .stat { padding: 12px; }
    .pro-body .stats-grid-3 .stat-note { display: none; }
    .ts-toolbar { padding: 8px; }
    .profile-card { padding: 20px 16px; }
    .profile-facts > div { padding: 8px 10px; }
    .profile-facts dd { font-size: .88rem; }
    .notify-list li { flex-wrap: wrap; }
    .notify-on { margin-left: 50px; }
    .notify-actions .btn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .offer-card, .offer-card:hover { transition: none; transform: none; }
}

/* ---------- Language switch placement ---------- */
.pro-auth-header-actions { display: flex; align-items: center; gap: 10px; }
.topbar-actions .lang-switch { align-self: center; }
@media (max-width: 640px) { .topbar-actions .lang-switch a { min-width: 30px; padding: 5px 7px; } }
