:root {
    --pt-bg: #f6f3ef;
    --pt-bg-soft: #fbfaf7;
    --pt-surface: #ffffff;
    --pt-surface-warm: #fdfbf7;
    --pt-text: #1f2523;
    --pt-text-soft: #343a36;
    --pt-muted: #6f746f;
    --pt-graphite: #242a27;
    --pt-graphite-2: #343a36;
    --pt-beige: #b49a87;
    --pt-beige-soft: #d8cfc8;
    --pt-beige-light: #eee7df;
    --pt-green: #4fa13f;
    --pt-green-dark: #2f5e35;
    --pt-green-soft: #edf6ea;
    --pt-red: #b94a48;
    --pt-red-soft: #fbefee;
    --pt-warning: #d8a33a;
    --pt-warning-soft: #fff6df;
    --pt-border: #ded6ce;
    --pt-border-strong: #c8b8aa;
    --pt-radius-lg: 22px;
    --pt-radius-md: 14px;
    --pt-shadow-soft: 0 14px 36px rgba(36, 42, 39, 0.08);
    --pt-shadow-card: 0 8px 22px rgba(36, 42, 39, 0.06);
    --bg: var(--pt-bg);
    --panel: var(--pt-surface);
    --text: var(--pt-text);
    --muted: var(--pt-muted);
    --line: var(--pt-border);
    --brand: var(--pt-green-dark);
    --accent: var(--pt-green-dark);
    --danger: var(--pt-red);
    --warn: var(--pt-warning);
    --pt-primary: var(--pt-green-dark);
    --pt-primary-soft: var(--pt-green-soft);
    --pt-success: var(--pt-green);
    --pt-success-soft: var(--pt-green-soft);
    --stat-security: #4fa13f;
    --stat-against: #b94a48;
    --stat-doubt: #d8a33a;
    --stat-not-voted: #d8cfc8;
}
* { box-sizing: border-box; }
:focus-visible {
    outline: 3px solid rgba(79, 161, 63, 0.35);
    outline-offset: 2px;
}
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--pt-text);
    background:
        radial-gradient(circle at top left, rgba(180, 154, 135, 0.18), transparent 34rem),
        linear-gradient(180deg, #f6f3ef 0%, #fbfaf7 100%);
    line-height: 1.45;
}
header {
    background: rgba(253, 251, 247, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}
nav {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
nav a { color: var(--pt-text-soft); text-decoration: none; font-weight: 600; }
nav a:hover,
nav a:focus {
    color: var(--pt-green-dark);
}
.site-nav__brand {
    color: var(--pt-graphite);
    font-weight: 700;
}
.site-nav__logout {
    margin: 0;
}
.site-nav__logout button {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--pt-text-soft);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.site-nav__logout button:hover,
.site-nav__logout button:focus {
    color: var(--pt-green-dark);
}
.site-nav__user {
    margin-left: auto;
    font-size: 14px;
}
main { max-width: 1180px; margin: 0 auto; padding: 24px 18px 56px; }
h1, h2, h3 { margin: 0 0 14px; line-height: 1.2; color: var(--pt-graphite); }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--pt-radius-md);
    padding: 18px;
    margin-bottom: 18px;
}
.page-shell,
.survey-shell,
.success-shell {
    max-width: 760px;
    margin: 0 auto;
}
.survey-block,
.survey-card,
.success-card {
    background: var(--pt-surface);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-lg);
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: var(--pt-shadow-card);
}
.survey-card--warm {
    background: linear-gradient(180deg, #ffffff 0%, var(--pt-surface-warm) 100%);
}
.survey-card--soft-green {
    background: linear-gradient(180deg, #ffffff 0%, var(--pt-green-soft) 100%);
}
.survey-card--neutral {
    background: linear-gradient(180deg, #ffffff 0%, var(--pt-surface-warm) 100%);
}
.survey-card__eyebrow {
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pt-muted);
    margin-bottom: 6px;
    font-weight: 600;
}
.question-title,
.survey-block label:first-child,
.survey-block > label {
    font-size: 17px;
    line-height: 1.3;
    margin-bottom: 10px;
    font-weight: 500;
}
.question-title {
    line-height: 1.42;
}
.question-title strong {
    font-weight: 700;
}
.survey-actions {
    margin-top: 18px;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.action-card {
    display: block;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--pt-radius-md);
    background: var(--pt-surface-warm);
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
}
.table-wrap { overflow-x: auto; }
.stat {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--pt-radius-md);
    padding: 14px;
}
.stat strong { display: block; font-size: 28px; }
table { width: 100%; border-collapse: collapse; background: var(--panel); }
th, td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 14px; }
form .field { margin-bottom: 12px; }
label { display: block; margin-bottom: 4px; font-weight: 600; }
input, select, textarea {
    width: 100%;
    max-width: 640px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 10px;
    font: inherit;
    background: #fff;
}
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(79, 161, 63, 0.16);
    border-color: var(--pt-green);
}
input:disabled, select:disabled, textarea:disabled {
    background: #eef2f6;
    color: var(--muted);
}
input[type="checkbox"] { width: auto; }
button, .button {
    display: inline-block;
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}
.badge {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 9px;
    background: var(--pt-green-soft);
    color: var(--pt-green-dark);
    font-size: 13px;
    font-weight: 700;
}
.badge.conflict { background: var(--pt-red-soft); color: var(--danger); }
.badge.duplicate { background: #fff7ed; color: var(--warn); }
.messages { list-style: none; padding: 0; margin: 0 0 16px; }
.messages li { background: var(--pt-green-soft); border: 1px solid #cbe5c5; border-radius: var(--pt-radius-md); padding: 10px; }
.offline-status {
    max-width: 1180px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-md);
    background: rgba(253, 251, 247, 0.92);
    box-shadow: var(--pt-shadow-card);
    font-size: 14px;
}
.offline-status__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--pt-green);
    box-shadow: 0 0 0 4px rgba(79, 161, 63, 0.12);
}
.offline-status.is-offline .offline-status__dot {
    background: var(--pt-warning);
    box-shadow: 0 0 0 4px rgba(216, 163, 58, 0.16);
}
.offline-status.has-error .offline-status__dot {
    background: var(--pt-red);
    box-shadow: 0 0 0 4px rgba(185, 74, 72, 0.14);
}
.offline-status__state {
    font-weight: 700;
    color: var(--pt-graphite);
}
.offline-status__queue {
    color: var(--pt-muted);
}
.offline-status__message {
    color: var(--pt-muted);
}
.offline-status__retry {
    margin-left: auto;
    padding: 7px 12px;
    background: var(--pt-warning);
    color: var(--pt-graphite);
}
.offline-form-message {
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px solid rgba(216, 163, 58, 0.35);
    border-radius: var(--pt-radius-md);
    background: var(--pt-warning-soft);
    color: var(--pt-graphite);
}
.offline-form-message.offline-status--saved {
    padding: 14px 16px;
    border-color: rgba(79, 161, 63, 0.28);
    background: var(--pt-green-soft);
    color: var(--pt-green-dark);
    font-weight: 600;
}
.offline-form-message.offline-status--saved::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    border-radius: 999px;
    background: var(--pt-green);
    color: #ffffff;
    font-weight: 800;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    max-width: 760px;
}
.choice-card {
    display: flex;
    align-items: center;
    min-height: 48px;
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-md);
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.choice-card span {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font-weight: 500;
    line-height: 1.35;
}
.choice-card:hover {
    border-color: var(--pt-border-strong);
    background: var(--pt-surface-warm);
}
.choice-card input:checked + span {
    background: var(--pt-green-soft);
    color: var(--pt-text);
    box-shadow: inset 0 0 0 2px var(--pt-green);
}
.errorlist {
    margin: 8px 0 0;
    padding: 8px 10px;
    border: 1px solid #efc2bf;
    border-radius: 10px;
    background: var(--pt-red-soft);
    color: #8f2f2d;
    list-style: none;
    font-size: 14px;
}
.form-actions,
.success-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}
.btn-pt {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.btn-pt.btn-pt-primary {
    color: #ffffff;
    background: var(--pt-green-dark);
    border-color: var(--pt-green-dark);
    box-shadow: 0 12px 24px rgba(47, 94, 53, 0.20);
}
.btn-pt.btn-pt-primary:hover,
.btn-pt.btn-pt-primary:focus {
    background: #264f2d;
    border-color: #264f2d;
}
.btn-primary {
    --bs-btn-bg: var(--pt-green-dark);
    --bs-btn-border-color: var(--pt-green-dark);
    --bs-btn-hover-bg: #264f2d;
    --bs-btn-hover-border-color: #264f2d;
    --bs-btn-active-bg: #244a2a;
    --bs-btn-active-border-color: #244a2a;
    background: var(--pt-green-dark);
    border-color: var(--pt-green-dark);
}
.btn-pt-secondary {
    color: var(--pt-graphite);
    background: rgba(255, 255, 255, 0.78);
    border-color: var(--pt-beige-soft);
}
.btn-pt-secondary:hover {
    background: #ffffff;
    border-color: var(--pt-beige);
}
.success-icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--pt-success-soft);
    color: var(--pt-success);
    font-size: 28px;
    margin-bottom: 14px;
}
.success-title {
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
    margin: 0 0 8px;
}
.success-summary {
    color: var(--pt-muted);
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 18px;
}
.object-summary {
    background: var(--pt-surface-warm);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-md);
    padding: 12px 14px;
    margin: 14px 0 18px;
}
.object-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    font-size: 14px;
}
.object-summary__label { color: var(--pt-muted); }
.object-summary__value { font-weight: 600; text-align: right; }
.landing-shell {
    max-width: 1080px;
    margin: 0 auto;
}
.landing-hero {
    min-height: 440px;
    display: grid;
    align-items: center;
    padding: 44px 32px 34px;
    border: 1px solid var(--pt-border);
    border-radius: 28px;
    background:
        radial-gradient(circle at 88% 18%, rgba(79, 161, 63, 0.16), transparent 18rem),
        linear-gradient(135deg, #fffdf8 0%, #f0e7de 54%, #edf6ea 100%);
    box-shadow: var(--pt-shadow-soft);
}
.landing-hero__inner {
    max-width: 760px;
}
.landing-hero h1 {
    font-size: clamp(34px, 6vw, 58px);
    letter-spacing: 0;
    margin-bottom: 18px;
}
.landing-hero p {
    font-size: 18px;
    color: var(--pt-muted);
    max-width: 720px;
}
.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}
.landing-section {
    margin: 24px 0;
}
.landing-card,
.about-card {
    background: linear-gradient(180deg, var(--pt-surface) 0%, var(--pt-surface-warm) 100%);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-lg);
    padding: 20px;
    box-shadow: var(--pt-shadow-card);
}
.public-thanks {
    display: grid;
    gap: 16px;
}
.public-thanks__hero {
    text-align: left;
}
.public-thanks__hero .btn-pt {
    width: 100%;
}
.thanks-card {
    background: linear-gradient(180deg, var(--pt-surface) 0%, var(--pt-surface-warm) 100%);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-lg);
    padding: 18px;
    box-shadow: var(--pt-shadow-card);
}
.thanks-card--partner {
    background: linear-gradient(180deg, #fffdf9 0%, var(--pt-beige-light) 100%);
}
.thanks-card__eyebrow {
    margin-bottom: 6px;
    color: var(--pt-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.thanks-card .btn-pt {
    width: 100%;
    margin-top: 6px;
}
.visual-preview {
    padding: 56px 0 64px;
}
.visual-preview__header {
    max-width: 760px;
    margin: 0 auto 24px;
    text-align: center;
}
.visual-preview__title {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
}
.visual-preview__lead {
    margin: 12px 0 0;
    color: var(--pt-muted);
    font-size: 17px;
    line-height: 1.55;
}
.visual-preview__frame {
    max-width: 1040px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-lg);
    background: var(--pt-surface);
    box-shadow: var(--pt-shadow-card);
}
.visual-preview__image {
    display: block;
    width: 100%;
    height: auto;
}
.landing-card__icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--pt-green-soft);
    color: var(--pt-green-dark);
    font-weight: 800;
    margin-bottom: 14px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.donut-layout {
    display: grid;
    grid-template-columns: minmax(220px, 340px) 1fr;
    gap: 28px;
    align-items: center;
}
.donut-chart {
    width: min(100%, 320px);
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto;
    position: relative;
}
.donut-chart::after {
    content: "";
    position: absolute;
    inset: 22%;
    border-radius: 50%;
    background: var(--pt-surface-warm);
    box-shadow: inset 0 0 0 1px var(--pt-border);
}
.donut-chart__center {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 14px;
}
.donut-chart__center strong {
    display: block;
    font-size: 28px;
}
.stats-legend {
    display: grid;
    gap: 10px;
}
.stats-legend__item {
    display: grid;
    grid-template-columns: 14px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--pt-border);
}
.stats-legend__swatch {
    width: 14px;
    height: 14px;
    border-radius: 999px;
}
.community-section {
    padding: 72px 0 42px;
}
.community-section__header {
    max-width: 720px;
    margin-bottom: 28px;
}
.community-section__eyebrow {
    color: var(--pt-green-dark);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0 0 10px;
}
.community-section__title {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    margin: 0 0 14px;
}
.community-section__lead {
    color: var(--pt-muted);
    font-size: 18px;
    line-height: 1.55;
    margin: 0;
}
.community-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}
.community-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
.community-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: linear-gradient(180deg, var(--pt-surface) 0%, var(--pt-surface-warm) 100%);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-lg);
    padding: 24px;
    box-shadow: var(--pt-shadow-card);
}
.community-card--featured {
    min-height: 230px;
    padding: 30px;
}
.community-card--wide {
    width: 100%;
    min-height: 0;
    padding: 28px;
}
.community-card--about {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}
.community-about__content {
    min-width: 0;
}
.community-about__media {
    width: 100%;
    align-self: stretch;
    min-height: 260px;
    max-height: 380px;
    overflow: hidden;
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-md);
    background: var(--pt-beige-light);
    box-shadow: var(--pt-shadow-card);
}
.community-about__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    max-height: 380px;
    object-fit: cover;
}
.community-card--green {
    background: linear-gradient(135deg, #ffffff 0%, var(--pt-green-soft) 100%);
    border-color: rgba(79, 161, 63, 0.22);
}
.community-card--graphite {
    background: linear-gradient(135deg, #ffffff 0%, #f1eee8 100%);
    border-color: var(--pt-border-strong);
}
.community-card--partner {
    background: linear-gradient(135deg, #ffffff 0%, var(--pt-beige-light) 100%);
}
.community-card--job {
    background:
        radial-gradient(circle at right top, rgba(79, 161, 63, 0.10), transparent 16rem),
        linear-gradient(135deg, #ffffff 0%, var(--pt-surface-warm) 100%);
    border-color: rgba(180, 154, 135, 0.42);
}
.community-card--beer {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: 24px;
    align-items: center;
}
.community-beer__content,
.community-beer__media {
    min-width: 0;
}
.community-card--beer .community-carousel {
    margin-top: 0;
}
.community-card--beer .community-carousel__image {
    height: 320px;
}
.community-card__tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(180, 154, 135, 0.16);
    color: var(--pt-green-dark);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 14px;
}
.community-card--green .community-card__tag {
    background: rgba(79, 161, 63, 0.14);
}
.community-card__title {
    font-size: 22px;
    line-height: 1.2;
    margin: 0 0 10px;
}
.community-card__text {
    color: var(--pt-muted);
    line-height: 1.55;
    margin: 0 0 20px;
}
.community-card__actions,
.community-card__link {
    margin-top: auto;
}
.community-card__link {
    color: var(--pt-green-dark);
    font-weight: 700;
    text-decoration: none;
}
.community-card__link:hover,
.community-card__link:focus {
    color: #264f2d;
    text-decoration: underline;
}
.community-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 700;
}
.community-rating__stars {
    color: var(--pt-warning);
    letter-spacing: 1px;
}
.community-rating__text {
    color: var(--pt-muted);
}
.community-carousel {
    width: 100%;
    margin-top: 20px;
}
.community-carousel__viewport {
    overflow: hidden;
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-lg);
    background: var(--pt-surface);
    box-shadow: var(--pt-shadow-card);
}
.community-carousel__track {
    display: flex;
    transition: transform 220ms ease;
    will-change: transform;
}
.community-carousel__slide {
    flex: 0 0 100%;
    min-width: 0;
    margin: 0;
}
.community-carousel__image {
    display: block;
    width: 100%;
    height: 360px;
    object-fit: cover;
}
.community-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 12px;
}
.community-carousel__button {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--pt-border);
    border-radius: 999px;
    background: var(--pt-surface);
    color: var(--pt-green-dark);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.community-carousel__button:hover,
.community-carousel__button:focus-visible {
    border-color: var(--pt-green-dark);
    background: var(--pt-green-soft);
}
.community-carousel__dots {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.community-carousel__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--pt-border);
    cursor: pointer;
}
.community-carousel__dot[aria-current="true"] {
    width: 22px;
    background: var(--pt-green-dark);
}
@media (min-width: 860px) {
    .community-card--about:has(.community-about__media) {
        grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
        align-items: center;
    }
}
.landing-final-cta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    margin: 28px 0 8px;
    padding: 28px;
    border: 1px solid rgba(79, 161, 63, 0.20);
    border-radius: var(--pt-radius-lg);
    background:
        radial-gradient(circle at right top, rgba(79, 161, 63, 0.16), transparent 18rem),
        linear-gradient(135deg, #ffffff 0%, var(--pt-green-soft) 100%);
    box-shadow: var(--pt-shadow-card);
}
.landing-final-cta h2,
.landing-final-cta p {
    margin-bottom: 0;
}
.landing-final-cta p {
    color: var(--pt-muted);
}
.resume-page {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 72px;
}
.resume-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: 28px;
    align-items: center;
    padding: 34px;
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-lg);
    background:
        radial-gradient(circle at right top, rgba(79, 161, 63, 0.14), transparent 18rem),
        linear-gradient(135deg, #ffffff 0%, var(--pt-surface-warm) 100%);
    box-shadow: var(--pt-shadow-soft);
}
.resume-eyebrow {
    margin: 0 0 10px;
    color: var(--pt-green-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.resume-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
}
.resume-hero__role {
    margin: 12px 0 0;
    color: var(--pt-graphite);
    font-size: clamp(19px, 2vw, 24px);
    font-weight: 700;
}
.resume-hero__lead {
    max-width: 720px;
    margin: 16px 0 0;
    color: var(--pt-muted);
    font-size: 18px;
    line-height: 1.55;
}
.resume-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}
.resume-contact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 18px;
    color: var(--pt-muted);
    font-weight: 700;
    line-height: 1.35;
}
.resume-contact-link {
    color: var(--pt-green-dark);
    font-weight: 700;
    text-decoration: none;
}
.resume-contact-link:hover,
.resume-contact-link:focus-visible {
    color: #264f2d;
    text-decoration: underline;
}
.resume-hero__photo {
    display: flex;
    justify-content: center;
    min-width: 0;
}
.resume-photo {
    display: block;
    width: 180px;
    max-width: 100%;
    height: 240px;
    object-fit: cover;
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-lg);
    background: var(--pt-surface);
    box-shadow: var(--pt-shadow-card);
}
.resume-photo-placeholder {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 5;
    min-height: 260px;
    padding: 20px;
    border: 1px dashed var(--pt-border-strong);
    border-radius: var(--pt-radius-lg);
    background:
        linear-gradient(135deg, rgba(216, 207, 200, 0.30), rgba(237, 246, 234, 0.72));
    color: var(--pt-muted);
    font-weight: 700;
    text-align: center;
    box-shadow: var(--pt-shadow-card);
}
.resume-section {
    margin-top: 34px;
}
.resume-section--split {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    gap: 18px;
}
.resume-section__title {
    margin: 0 0 14px;
    color: var(--pt-graphite);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.12;
}
.resume-card,
.resume-achievements li,
.resume-cta {
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-lg);
    background: linear-gradient(180deg, var(--pt-surface) 0%, var(--pt-surface-warm) 100%);
    box-shadow: var(--pt-shadow-card);
}
.resume-card {
    padding: 24px;
}
.resume-card p:last-child,
.resume-card ul:last-child {
    margin-bottom: 0;
}
.resume-achievements {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.resume-achievements li {
    padding: 18px 20px;
    color: var(--pt-text-soft);
    line-height: 1.55;
}
.resume-experience {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.resume-experience__item h3,
.resume-stack h3 {
    margin: 0 0 8px;
    font-size: 20px;
}
.resume-meta {
    color: var(--pt-muted);
    font-size: 14px;
    font-weight: 700;
}
.resume-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.resume-skill-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--pt-border);
    border-radius: 999px;
    padding: 9px 12px;
    background: var(--pt-surface);
    color: var(--pt-text-soft);
    font-weight: 700;
    line-height: 1.2;
}
.resume-stack {
    display: grid;
    gap: 20px;
}
.resume-plain-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
}
.resume-contact-card {
    display: grid;
    gap: 10px;
}
.resume-contact-card p {
    margin: 0;
}
.resume-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 16px;
}
.resume-cta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    margin-top: 36px;
    padding: 28px;
    background:
        radial-gradient(circle at right top, rgba(79, 161, 63, 0.16), transparent 18rem),
        linear-gradient(135deg, #ffffff 0%, var(--pt-green-soft) 100%);
    border-color: rgba(79, 161, 63, 0.20);
}
.resume-cta h2,
.resume-cta p {
    margin-bottom: 0;
}
.resume-cta p {
    color: var(--pt-muted);
}
.autocomplete-wrap {
    position: relative;
    max-width: 640px;
}
.autocomplete-list {
    position: absolute;
    z-index: 20;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(36, 42, 39, 0.12);
    max-height: 240px;
    overflow-y: auto;
}
.autocomplete-item {
    display: block;
    width: 100%;
    padding: 11px 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    text-align: left;
    font: inherit;
    cursor: pointer;
}
.autocomplete-item:last-child { border-bottom: 0; }
.autocomplete-item:hover, .autocomplete-item:focus { background: #f1f7f6; }
.floor-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.floor-apartment {
    border: 1px solid var(--line);
    border-radius: var(--pt-radius-md);
    padding: 14px;
    background: var(--pt-surface-warm);
}
.floor-apartment.needs-survey {
    background: #fff7ed;
    border-color: #fed7aa;
}
.floor-apartment.has-survey {
    background: var(--pt-green-soft);
    border-color: #cbe5c5;
}
.floor-apartment strong {
    display: block;
    margin-bottom: 8px;
}
.floor-apartment .button {
    margin-top: 10px;
}
.offline-survey {
    border-color: rgba(216, 163, 58, 0.35);
    background: linear-gradient(180deg, #ffffff 0%, var(--pt-warning-soft) 100%);
}
.vote-house-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}
.vote-house-card {
    display: block;
    width: 100%;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--pt-radius-lg);
    background: linear-gradient(180deg, #ffffff 0%, var(--pt-surface-warm) 100%);
    color: var(--text);
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}
.vote-house-card:hover,
.vote-house-card:focus {
    border-color: var(--pt-green);
    background: var(--pt-green-soft);
}
.back-link {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--pt-green-dark);
    text-decoration: none;
    font-weight: 600;
}
@media (max-width: 760px) {
    nav {
        gap: 10px 12px;
        padding: 12px 14px;
    }
    nav a,
    .site-nav__logout button {
        font-size: 14px;
    }
    .site-nav__brand {
        flex-basis: 100%;
        font-size: 16px;
    }
    .site-nav__user {
        width: 100%;
        margin-left: 0;
    }
    .offline-status {
        align-items: flex-start;
    }
    .offline-status__retry {
        width: 100%;
        margin-left: 0;
    }
    .two-col { grid-template-columns: 1fr; }
    th, td { padding: 8px 6px; }
    h1 { font-size: 26px; }
    h2 { font-size: 21px; }
    .panel { padding: 14px; }
    .survey-block { padding: 14px; }
    .choice-grid { grid-template-columns: 1fr; }
    .choice-card { min-height: 52px; }
    .landing-hero { min-height: auto; padding-top: 20px; }
    .landing-actions { display: grid; }
    .visual-preview {
        padding: 40px 0 48px;
    }
    .visual-preview__header {
        margin-bottom: 18px;
        text-align: left;
    }
    .visual-preview__title {
        font-size: 28px;
    }
    .donut-layout { grid-template-columns: 1fr; }
    .community-section {
        padding: 48px 0 32px;
    }
    .community-section__lead {
        font-size: 16px;
    }
    .community-featured-grid,
    .landing-final-cta {
        grid-template-columns: 1fr;
    }
    .community-card {
        min-height: 0;
        padding: 20px;
    }
    .community-card--wide {
        padding: 20px;
    }
    .community-card--beer {
        grid-template-columns: 1fr;
    }
    .community-beer__content {
        order: 1;
    }
    .community-beer__media {
        order: 2;
    }
    .community-carousel__image {
        height: 220px;
    }
    .community-card--beer .community-carousel__image {
        height: 230px;
    }
    .community-carousel__button {
        width: 36px;
        height: 36px;
    }
    .resume-page {
        width: min(100% - 28px, 1120px);
        padding: 24px 0 48px;
    }
    .resume-hero,
    .resume-section--split,
    .resume-experience,
    .resume-cta {
        grid-template-columns: 1fr;
    }
    .resume-hero,
    .resume-card,
    .resume-cta {
        padding: 20px;
    }
    .resume-hero__photo {
        order: 2;
    }
    .resume-photo {
        width: 160px;
        height: 214px;
        margin: 0 auto;
    }
    .resume-photo-placeholder {
        min-height: 220px;
        aspect-ratio: 16 / 11;
    }
    .resume-actions,
    .resume-actions .btn-pt,
    .resume-contact-list,
    .resume-contact-actions {
        width: 100%;
    }
    .resume-contact-list,
    .resume-contact-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .landing-final-cta {
        padding: 22px;
    }
    .landing-final-cta .btn-pt {
        width: 100%;
    }
}
@media (min-width: 640px) {
    .public-thanks__hero .btn-pt,
    .thanks-card .btn-pt {
        width: auto;
    }
    .success-actions {
        grid-template-columns: 1fr 1fr;
    }
    .success-actions .btn-pt-primary {
        grid-column: 1 / -1;
    }
}
