:root {
    --ink: #252830;
    --muted: #626874;
    --green: #a74210;
    --orange: #ef8137;
    --orange-soft: #fff0e4;
    --bg: #f5f6f8;
    --line: #e7e9ed;
    --radius: 14px;
}

body { font-family: system-ui, "Segoe UI", sans-serif; }
.site-header { height: 62px; padding-inline: clamp(16px, 4vw, 48px); }
.brand { font-size: 23px; }
.brand-mark { background: linear-gradient(145deg, #ffa648, #d55318); }
.brand-dot, .eyebrow { color: var(--green); }
button:hover, .button:hover { background: #84350d; }
:is(a, button, input, textarea, select, summary):focus-visible {
    outline: 3px solid #d86624;
    outline-offset: 3px;
}

.taskora-auth-page { background: var(--orange); }
.taskora-auth-page .site-header {
    background: transparent;
    border: 0;
}
.taskora-auth-page .site-header .brand,
.taskora-auth-page .site-header nav > a,
.taskora-auth-page .site-footer,
.taskora-auth-page .site-footer a { color: #352013; }
.taskora-auth-page .site-header nav > .button { color: #fff; }
.taskora-auth-page .site-footer { border-color: #0002; }
.taskora-auth-page .site-footer small { color: inherit; }
.taskora-auth-page main { min-height: 65vh; padding: 24px 16px 44px; }
.taskora-auth-page .page-content .auth {
    width: min(100%, 480px);
    margin: 24px auto 0;
    border: 0;
    box-shadow: 0 12px 40px #7c310326;
}
.auth::before {
    content: "t" / "";
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 15px;
    background: linear-gradient(145deg, #ffad51, #d75013);
    color: white;
    font-size: 37px;
    font-weight: 800;
}
.auth h1, .auth > .eyebrow, .auth > p { text-align: center; }
.auth form > button { width: 100%; }

.app-shell { display: block; max-width: 1050px; min-height: 70vh; }
.workspace { padding: 20px clamp(14px, 3vw, 28px) 26px; }
.page-heading { margin-bottom: 18px; }
.page-heading h1 { font-size: clamp(23px, 4vw, 30px); }
.page-heading .eyebrow { letter-spacing: .12em; }
.member-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.member-shortcuts a {
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 650;
}
.member-shortcuts a[aria-current="page"] {
    background: var(--orange-soft);
    border-color: #f7c5a5;
}
.member-tabbar {
    position: fixed;
    inset: auto 0 0;
    z-index: 25;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: min(100%, 1050px);
    margin-inline: auto;
    padding: 4px 4px max(4px, env(safe-area-inset-bottom));
    border: 1px solid var(--line);
    border-radius: 14px 14px 0 0;
    background: #fff;
    box-shadow: 0 -6px 22px #222b4410;
}
.member-tabbar a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    min-height: 54px;
    border-radius: 8px;
    color: var(--muted);
    font-size: clamp(10px, 2.5vw, 12px);
}
.member-tabbar a svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.member-tabbar a[aria-current="page"] {
    background: var(--orange-soft);
    color: var(--green);
    font-weight: 750;
}
.taskora-member-page .site-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.taskora-member-page .toast { bottom: 80px; }
.stats { gap: 10px; margin-bottom: 16px; }
.stat { border-radius: 12px; padding: 14px 16px; }
.stat strong { font-size: clamp(22px, 4vw, 30px); }
.stat span { color: var(--muted); }
.stat.primary {
    background: linear-gradient(125deg, #a74210, #c2571e);
    border-color: transparent;
}
.stat.primary span, .stat.primary small { color: #fff4eb; }
.hero {
    min-height: 0;
    padding: clamp(20px, 4vw, 32px);
    background: linear-gradient(120deg, #fff3e8, #ffe0c7);
    border-color: #f7d6bf;
}
.hero .eyebrow, .hero p { color: #6d4127; }
.hero-art { min-height: 145px; }
.hero-art .orb {
    width: 125px;
    height: 125px;
    border: 18px solid #f6ad76;
    background: #ffca9e;
    color: #a74210;
    box-shadow: 0 14px 28px #a7421024;
    font-size: 62px;
}
.hero-art::before, .hero-art::after { color: #b95520; }
.badge { background: #fff1e5; border-color: #f7d7bd; color: #8a3d13; }
.badge::before { background: currentColor; }
.badge.status-approved, .badge.status-paid { color: #31562f; }
.task-row .task-icon, .task-row:nth-child(3) .task-icon {
    background: var(--orange-soft);
    color: var(--green);
}
.draw-promo, .progress-line { background: #fff8f0; border-color: #f1decf; }
.progress-line, .progress-line strong { color: #69462e; }
.panel { border-radius: 14px; }

.workspace:has(.matching-screen) {
    display: flex;
    flex-direction: column;
    padding: 0 0 24px;
}
.workspace:has(.matching-screen) > .member-shortcuts {
    order: 1;
    padding: 0 16px;
}
.matching-screen {
    background: linear-gradient(var(--orange) 0 145px, #f5f6f8 145px);
}
.matching-header {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    min-height: 54px;
    color: #382013;
}
.matching-header h1 { margin: 0; text-align: center; font-size: 19px; letter-spacing: 0; }
.matching-header a { text-align: center; color: inherit; font-size: 30px; line-height: 44px; }
.matching-body { max-width: 750px; margin-inline: auto; padding: 0 16px 16px; }
.matching-balance, .matching-panel, .matching-catalog {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    margin-bottom: 14px;
}
.matching-balance {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    box-shadow: 0 5px 18px #482c1114;
}
.matching-balance span { color: var(--muted); }
.matching-balance strong { grid-row: 2; font-size: 28px; color: var(--green); }
.matching-balance a { grid-area: 1 / 2 / 3; font-weight: 650; }
.matching-panel h2 { font-size: 17px; margin-bottom: 6px; }
.matching-panel > p { font-size: 13px; margin-bottom: 14px; }
.matching-pool { background: #fff6ed; border-radius: 10px; padding: 13px; text-align: center; }
.matching-pool h3 { font-size: 15px; margin-bottom: 7px; }
.matching-pool dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.matching-pool dl > div + div { border-left: 1px solid #efdbca; }
.matching-pool dt { font-size: 12px; color: var(--muted); }
.matching-pool dd { margin: 2px 0 0; font-size: 22px; font-weight: 750; }
.matching-start { display: flex; margin-top: 15px; width: 100%; }
.matching-panel .matching-state { margin: 15px 0 0; }
.matching-catalog summary { font-size: 14px; font-weight: 650; }
.matching-catalog .search-bar { margin-top: 14px; }
.matching-catalog .task-grid { grid-template-columns: 1fr; }
#matched-task { margin: 18px 0; scroll-margin-top: 16px; }
#matched-task > h2 { font-size: 17px; }
@media (max-width: 550px) {
    .taskora-auth-page .site-header nav > a[href$="/dashboard/"] { display: none; }
    .taskora-member-page .site-header .nav-public { display: none; }
    .stats .stat.primary { padding: 16px; }
    .hero-art { right: -35px; bottom: -48px; opacity: .38; }
    .workspace .two-col { gap: 12px; }
}

/* Carry the Taskora card layout through the public and account screens. */
.landing-wrap,
.public-page {
    width: min(calc(100% - 32px), 1050px);
    box-sizing: border-box;
    margin: clamp(20px, 4vw, 40px) auto;
}
.landing-wrap { padding: 0; }
.public-page.panel {
    max-width: 1050px;
    padding: clamp(18px, 4vw, 32px);
}
.public-page > .eyebrow { margin-bottom: 8px; }
.public-page > h1 {
    font-size: clamp(26px, 5vw, 38px);
    margin-bottom: 16px;
}
.public-page > h2 {
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.public-page > p { max-width: 74ch; }
.public-page:has(.how-steps) {
    background: linear-gradient(120deg, #fff3e8, #ffe0c7);
    border-color: #f7d6bf;
}
.public-page .how-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    counter-reset: how-step;
    list-style: none;
    margin: 24px 0;
    padding: 0;
}
.public-page .how-steps > li {
    counter-increment: how-step;
    position: relative;
    margin: 0;
    padding: 16px 16px 16px 58px;
    border: 1px solid #f7d6bf;
    border-radius: 14px;
    background: #fff;
}
.public-page .how-steps > li::before {
    content: counter(how-step, decimal-leading-zero);
    position: absolute;
    top: 16px;
    left: 16px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    background: var(--orange-soft);
    border-radius: 8px;
    color: var(--green);
    font-size: 12px;
    font-weight: 750;
}
.public-page .how-steps h2 {
    margin: 0 0 6px;
    font-size: 16px;
}
.public-page .how-steps p { font-size: 14px; }
.landing-features > .panel,
.workspace .panel,
.public-page .panel { border-color: var(--line); }
.auth #resend-verification {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.auth #resend-verification summary {
    color: var(--green);
    cursor: pointer;
    font-weight: 650;
}
.auth #resend-verification form { margin-top: 12px; }
@media (max-width: 650px) {
    .public-page .how-steps,
    .landing-features { grid-template-columns: minmax(0, 1fr); }
    .public-page .table-scroll,
    .workspace .table-scroll { max-width: 100%; overflow-x: auto; }
}
