:root {
    --ink: #182019;
    --muted: #687068;
    --pine-950: #0d2119;
    --pine-900: #123024;
    --pine-800: #173c2c;
    --pine-700: #24533c;
    --moss: #7f9b69;
    --moss-light: #dce6cf;
    --cream: #f5eddc;
    --cream-deep: #e9dcc2;
    --paper: #fffdf7;
    --white: #ffffff;
    --gold: #d79142;
    --gold-dark: #ad6726;
    --amber: #f4b85e;
    --red: #a9443a;
    --red-light: #f8e2df;
    --blue-light: #e3eff4;
    --border: #ded9cc;
    --border-dark: rgba(255, 255, 255, 0.13);
    --shadow-sm: 0 8px 22px rgba(30, 39, 31, 0.08);
    --shadow-md: 0 22px 60px rgba(24, 39, 28, 0.13);
    --shadow-warm: 0 24px 70px rgba(49, 30, 13, 0.28);
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --display: Georgia, 'Times New Roman', serif;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background-image: linear-gradient(rgba(75, 89, 70, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(75, 89, 70, 0.025) 1px, transparent 1px);
    background-size: 24px 24px;
    content: '';
    pointer-events: none;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

button,
select {
    cursor: pointer;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--ink);
    font-family: var(--display);
    line-height: 1.08;
}

h1 {
    font-size: clamp(2.7rem, 6vw, 5.5rem);
    letter-spacing: -0.045em;
}

h2 {
    margin-bottom: 0.65rem;
    font-size: clamp(2rem, 4vw, 3.35rem);
    letter-spacing: -0.035em;
}

h3 {
    margin-bottom: 0.55rem;
    font-size: 1.35rem;
}

p {
    color: var(--muted);
}

code {
    padding: 0.13em 0.38em;
    border: 1px solid #ddd3c0;
    border-radius: 5px;
    color: var(--pine-800);
    background: #f4efe5;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.9em;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.narrow {
    width: min(790px, calc(100% - 40px));
}

.section {
    padding: 86px 0;
}

.panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--gold-dark);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.eyebrow.light {
    color: #f6c879;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #79b56e;
    box-shadow: 0 0 0 4px rgba(121, 181, 110, 0.18);
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 8px;
    left: 8px;
    padding: 10px 15px;
    border-radius: 8px;
    color: var(--white);
    background: var(--pine-800);
    transform: translateY(-140%);
}

.skip-link:focus {
    transform: translateY(0);
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 750;
    line-height: 1;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button:focus-visible,
.nav-link:focus-visible,
.brand:focus-visible,
.icon-button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(215, 145, 66, 0.35);
    outline-offset: 2px;
}

.button-primary {
    border-color: var(--gold);
    color: #23170b;
    background: linear-gradient(180deg, #f5bb64, #d99643);
    box-shadow: 0 7px 18px rgba(181, 103, 36, 0.22), inset 0 1px rgba(255, 255, 255, 0.45);
}

.button-primary:hover {
    background: linear-gradient(180deg, #fac574, #df9d4a);
    box-shadow: 0 10px 25px rgba(181, 103, 36, 0.28);
}

.button-ghost {
    border-color: rgba(255, 255, 255, 0.22);
    color: var(--cream);
    background: rgba(255, 255, 255, 0.05);
}

.button-quiet {
    border-color: var(--border);
    color: var(--pine-800);
    background: var(--white);
}

.button-quiet:hover {
    border-color: #bdad8d;
    background: #fbf7ee;
}

.button-cream {
    color: var(--pine-950);
    background: var(--cream);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.button-small {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.88rem;
}

.button-large {
    min-height: 54px;
    padding: 0 25px;
}

.button[disabled] {
    cursor: not-allowed;
    opacity: 0.48;
    transform: none;
}

.full-width {
    width: 100%;
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid var(--border-dark);
    color: var(--cream);
    background: rgba(13, 33, 25, 0.95);
    box-shadow: 0 8px 32px rgba(6, 20, 14, 0.16);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.brand img {
    width: 53px;
    height: 53px;
    object-fit: contain;
}

.brand span {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand strong {
    color: var(--cream);
    font-family: var(--display);
    font-size: 1.2rem;
}

.brand small {
    margin-top: 4px;
    color: #afbdaf;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-menu,
.main-nav,
.header-actions {
    display: flex;
    align-items: center;
}

.site-menu {
    gap: 34px;
}

.main-nav {
    gap: 5px;
}

.header-actions {
    gap: 8px;
}

.nav-link {
    position: relative;
    padding: 11px 14px;
    border-radius: 8px;
    color: #bdc9be;
    font-size: 0.93rem;
    font-weight: 700;
    transition: color 160ms ease, background 160ms ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--cream);
    background: rgba(255, 255, 255, 0.07);
}

.nav-link.active::after {
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--amber);
    content: '';
    transform: translateX(-50%);
}

.account-pill {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 9px;
    padding: 5px 12px 5px 6px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    color: var(--cream);
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
    font-weight: 700;
}

.account-avatar {
    display: inline-grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: var(--pine-950);
    background: var(--amber);
    font-size: 0.8rem;
    font-weight: 900;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 42px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: transparent;
}

.menu-toggle > span:not(.sr-only) {
    display: block;
    height: 2px;
    margin: 4px 0;
    border-radius: 2px;
    background: var(--cream);
}

.toast-region {
    position: fixed;
    z-index: 150;
    top: 90px;
    left: 50%;
    display: grid;
    width: min(620px, calc(100% - 30px));
    gap: 8px;
    transform: translateX(-50%);
}

.alert {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 16px;
    border: 1px solid;
    border-radius: 11px;
    box-shadow: var(--shadow-sm);
    font-size: 0.93rem;
}

.alert-success {
    border-color: #adc7a2;
    color: #224627;
    background: #e7f2e1;
}

.alert-error {
    border-color: #ddb5af;
    color: #742f27;
    background: var(--red-light);
}

.alert-info {
    border-color: #b6cfd9;
    color: #284f61;
    background: var(--blue-light);
}

.alert ul {
    margin: 8px 0 0;
}

.alert-close {
    flex: 0 0 auto;
    padding: 0 3px;
    border: 0;
    background: none;
    font-size: 1.3rem;
    line-height: 1;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: var(--cream);
    background: radial-gradient(circle at 80% 40%, rgba(199, 139, 66, 0.15), transparent 28%), linear-gradient(135deg, #0c2118 0%, #16382a 56%, #1d4431 100%);
}

.hero::before,
.page-hero::before {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image: linear-gradient(30deg, transparent 42%, rgba(255, 255, 255, 0.13) 43%, rgba(255, 255, 255, 0.13) 44%, transparent 45%), linear-gradient(-30deg, transparent 42%, rgba(255, 255, 255, 0.08) 43%, rgba(255, 255, 255, 0.08) 44%, transparent 45%);
    background-size: 64px 64px;
    content: '';
    pointer-events: none;
}

.hero::after {
    position: absolute;
    right: -12%;
    bottom: -210px;
    left: -12%;
    height: 320px;
    border-radius: 50% 50% 0 0;
    background: var(--paper);
    content: '';
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 640px;
    align-items: center;
    grid-template-columns: minmax(0, 1.08fr) minmax(350px, 0.92fr);
    gap: 70px;
    padding-top: 56px;
    padding-bottom: 90px;
}

.hero-copy h1 {
    max-width: 720px;
    margin-bottom: 23px;
    color: var(--cream);
}

.hero-copy h1 em {
    color: var(--amber);
    font-weight: 400;
}

.hero-copy > p {
    max-width: 650px;
    margin-bottom: 30px;
    color: #cbd4c9;
    font-size: 1.13rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero .button-quiet {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--cream);
    background: rgba(255, 255, 255, 0.055);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 38px;
    color: #9daf9f;
    font-size: 0.82rem;
}

.hero-trust span:not(:first-child) {
    padding-left: 22px;
    border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.hero-trust strong {
    display: block;
    color: #e8e3d6;
    font-size: 0.98rem;
}

.hero-art {
    position: relative;
    display: grid;
    min-height: 430px;
    place-items: center;
}

.hero-art > img {
    position: relative;
    z-index: 2;
    width: min(390px, 88%);
    filter: drop-shadow(0 28px 26px rgba(0, 0, 0, 0.33));
}

.logo-glow {
    position: absolute;
    width: 370px;
    height: 370px;
    border: 1px solid rgba(255, 217, 151, 0.18);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 177, 83, 0.18), rgba(245, 177, 83, 0.02) 56%, transparent 68%);
}

.logo-glow::before,
.logo-glow::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: '';
}

.logo-glow::before { inset: -33px; }
.logo-glow::after { inset: 30px; }

.floating-note {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    color: #f2eadb;
    background: rgba(11, 30, 22, 0.82);
    box-shadow: var(--shadow-warm);
    backdrop-filter: blur(10px);
    font-size: 0.83rem;
    font-weight: 750;
}

.floating-note span {
    color: var(--amber);
}

.note-one { top: 68px; right: 10px; }
.note-two { bottom: 52px; left: 0; }

.section-heading {
    margin-bottom: 34px;
}

.section-heading p {
    max-width: 620px;
    margin-bottom: 0;
}

.section-heading.centered {
    max-width: 680px;
    margin-right: auto;
    margin-bottom: 50px;
    margin-left: auto;
    text-align: center;
}

.row-heading,
.page-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.process-section {
    padding-top: 52px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.process-card {
    position: relative;
    min-height: 270px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.78);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.process-card::after {
    position: absolute;
    right: -26px;
    bottom: -30px;
    width: 110px;
    height: 110px;
    border-radius: 30px;
    background: var(--moss-light);
    content: '';
    opacity: 0.55;
    transform: rotate(18deg);
}

.step-number {
    position: absolute;
    top: 24px;
    right: 26px;
    color: #d8d3c8;
    font-family: var(--display);
    font-size: 2.15rem;
}

.step-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 25px;
    place-items: center;
    border: 1px solid #e7c696;
    border-radius: 14px;
    color: var(--gold-dark);
    background: #fcf1df;
    font-size: 1.3rem;
    font-weight: 900;
}

.process-card p {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

.latest-section,
.muted-section {
    border-top: 1px solid #e3ddd1;
    border-bottom: 1px solid #e3ddd1;
    background: #f4f0e7;
}

.text-link,
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--pine-700);
    font-weight: 800;
}

.text-link:hover,
.back-link:hover {
    color: var(--gold-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.image-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 8px 24px rgba(30, 38, 31, 0.065);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.image-card-preview {
    position: relative;
    display: grid;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    place-items: center;
    background: linear-gradient(135deg, #e7e1d5, #f7f4ed);
}

.image-card-preview::after {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.5);
    content: '';
    pointer-events: none;
}

.image-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 250ms ease;
}

.image-card:hover .image-card-preview img {
    transform: scale(1.035);
}

.category-badge {
    position: absolute;
    z-index: 2;
    top: 13px;
    left: 13px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    color: var(--white);
    background: rgba(17, 48, 35, 0.84);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.13);
    backdrop-filter: blur(8px);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.image-card-body {
    display: flex;
    min-height: 88px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 17px;
}

.image-card-body h3 {
    margin: 0 0 4px;
    overflow: hidden;
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-card-body h3 a:hover {
    color: var(--gold-dark);
}

.image-card-body p {
    margin: 0;
    font-size: 0.75rem;
}

.icon-button {
    display: inline-grid;
    width: 41px;
    height: 41px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--pine-700);
    background: #faf8f3;
    transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.icon-button:hover {
    border-color: #cbb891;
    background: #f7ecd8;
    transform: translateY(-2px);
}

.icon-button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.submit-section {
    padding-top: 78px;
}

.submit-banner {
    position: relative;
    display: flex;
    min-height: 260px;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 52px 58px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    color: var(--white);
    background: linear-gradient(120deg, var(--pine-950), var(--pine-700));
    box-shadow: var(--shadow-md);
}

.submit-banner::before {
    position: absolute;
    right: -120px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    content: '';
}

.submit-banner > * {
    position: relative;
    z-index: 1;
}

.submit-banner h2 {
    color: var(--cream);
}

.submit-banner p {
    max-width: 620px;
    margin-bottom: 0;
    color: #bdc9bd;
}

.site-footer {
    padding: 36px 0;
    border-top: 1px solid var(--border);
    background: #ece6da;
}

.footer-inner,
.footer-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner strong {
    font-family: var(--display);
}

.footer-inner p {
    margin: 2px 0 0;
    font-size: 0.82rem;
}

.footer-links {
    color: var(--muted);
    font-size: 0.8rem;
}

.footer-links a {
    color: var(--pine-700);
    font-weight: 750;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: var(--cream);
    background: linear-gradient(135deg, var(--pine-950), var(--pine-700));
}

.page-hero > .container {
    position: relative;
    z-index: 1;
    padding-top: 72px;
    padding-bottom: 65px;
}

.page-hero h1 {
    margin-bottom: 10px;
    color: var(--cream);
    font-size: clamp(2.6rem, 5vw, 4.25rem);
}

.page-hero p {
    max-width: 680px;
    margin-bottom: 0;
    color: #c5d1c4;
    font-size: 1.04rem;
}

.compact-hero > .container {
    padding-top: 60px;
    padding-bottom: 42px;
}

.result-count {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid #d4cab7;
    border-radius: 999px;
    color: var(--muted);
    background: #f8f4eb;
    font-size: 0.78rem;
    font-weight: 800;
}

.page-hero .result-count {
    border-color: rgba(255, 255, 255, 0.2);
    color: #d6ded4;
    background: rgba(255, 255, 255, 0.07);
}

.filter-bar {
    display: grid;
    margin-top: 38px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.09);
    grid-template-columns: minmax(230px, 1fr) minmax(190px, 0.35fr) auto auto;
    gap: 9px;
    backdrop-filter: blur(12px);
}

.search-field {
    position: relative;
}

.search-field svg {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: #718076;
    stroke-linecap: round;
    stroke-width: 1.8;
    transform: translateY(-50%);
}

.search-field input,
.select-field select {
    width: 100%;
    height: 46px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--ink);
    background: #fffdf8;
}

.search-field input {
    padding: 0 14px 0 43px;
}

.select-field select {
    padding: 0 34px 0 13px;
}

.gallery-section {
    min-height: 380px;
}

.empty-state {
    padding: 65px 28px;
    text-align: center;
}

.empty-state p {
    max-width: 550px;
    margin-right: auto;
    margin-left: auto;
}

.empty-icon {
    margin-bottom: 16px;
    color: var(--gold);
    font-size: 2.5rem;
}

.detail-section {
    min-height: 70vh;
}

.detail-section .back-link {
    margin-bottom: 28px;
}

.detail-grid {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
    gap: 58px;
}

.detail-preview {
    display: grid;
    min-height: 520px;
    padding: 30px;
    place-items: center;
    background: linear-gradient(145deg, #eee9df, #fbfaf5);
}

.detail-preview img {
    max-height: 650px;
    object-fit: contain;
    filter: drop-shadow(0 16px 18px rgba(23, 31, 25, 0.14));
}

.detail-copy {
    padding-top: 12px;
}

.static-badge {
    position: static;
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--pine-800);
    background: var(--moss-light);
    box-shadow: none;
}

.detail-copy h1 {
    margin-bottom: 17px;
    font-size: clamp(2.4rem, 5vw, 4rem);
}

.detail-description {
    font-size: 1.06rem;
}

.metadata-grid {
    display: grid;
    margin: 28px 0;
    padding: 21px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    grid-template-columns: 1fr 1fr;
    gap: 19px 30px;
}

.metadata-grid div {
    display: grid;
    gap: 3px;
}

.metadata-grid dt {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.metadata-grid dd {
    margin: 0;
    font-weight: 750;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 26px;
}

.tag-list span {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--pine-700);
    background: #e9eee4;
    font-size: 0.75rem;
    font-weight: 700;
}

.copy-panel {
    margin: 28px 0 15px;
    padding: 19px;
    border: 1px solid #d9c7a6;
    border-radius: 13px;
    background: #fbf3e4;
}

.copy-panel label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 850;
}

.copy-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.copy-row input {
    min-width: 0;
    height: 46px;
    padding: 0 12px;
    border: 1px solid #d8cdb9;
    border-radius: 8px;
    background: var(--white);
    font-family: Consolas, Monaco, monospace;
    font-size: 0.77rem;
}

.copy-panel p {
    margin: 8px 0 0;
    font-size: 0.78rem;
}

.external-link {
    font-size: 0.85rem;
}

.copy-toast {
    position: fixed;
    z-index: 300;
    right: 22px;
    bottom: 22px;
    padding: 11px 17px;
    border-radius: 10px;
    color: var(--white);
    background: var(--pine-900);
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition: opacity 180ms ease, transform 180ms ease;
    font-size: 0.88rem;
    font-weight: 750;
}

.copy-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.guide-hero {
    text-align: center;
}

.guide-hero .container {
    padding-top: 90px;
    padding-bottom: 90px;
}

.guide-hero p {
    margin-right: auto;
    margin-left: auto;
}

.guide-steps {
    position: relative;
    display: grid;
    gap: 42px;
}

.guide-steps::before {
    position: absolute;
    top: 29px;
    bottom: 29px;
    left: 27px;
    width: 1px;
    background: #d8cbb3;
    content: '';
}

.guide-step {
    position: relative;
    display: grid;
    align-items: start;
    grid-template-columns: 56px 1fr;
    gap: 28px;
}

.guide-step > span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border: 1px solid #dfb975;
    border-radius: 50%;
    color: var(--gold-dark);
    background: #fff7e8;
    box-shadow: 0 0 0 7px var(--paper);
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 700;
}

.guide-step h2 {
    margin-top: 6px;
    font-size: 1.75rem;
}

.guide-step .button {
    margin-top: 4px;
}

.tip-box {
    display: flex;
    gap: 17px;
    margin-top: 60px;
    padding: 22px 24px;
    border: 1px solid #bfcdae;
    border-radius: 14px;
    background: #edf3e7;
}

.tip-box > span {
    color: var(--gold-dark);
    font-size: 1.6rem;
}

.tip-box p {
    margin: 2px 0 0;
}

.auth-page {
    min-height: calc(100vh - 76px);
    padding: 62px 20px;
    background: radial-gradient(circle at 18% 15%, rgba(223, 163, 82, 0.11), transparent 28%), #eef0e8;
}

.auth-shell {
    display: grid;
    width: min(1020px, 100%);
    min-height: 620px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #ccd0c3;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-md);
    grid-template-columns: 0.9fr 1.1fr;
}

.auth-visual {
    position: relative;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 55px;
    overflow: hidden;
    color: var(--cream);
    background: radial-gradient(circle at 70% 25%, rgba(236, 170, 81, 0.18), transparent 35%), linear-gradient(145deg, var(--pine-950), var(--pine-700));
}

.auth-visual > img {
    margin: -20px auto 20px;
    filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.3));
}

.auth-visual h1 {
    margin-bottom: 16px;
    color: var(--cream);
    font-size: clamp(2.25rem, 4vw, 3.3rem);
}

.auth-visual > p,
.auth-point p {
    color: #c8d3c7;
}

.auth-point {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    padding-top: 23px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    font-size: 0.8rem;
}

.auth-point > span {
    display: grid;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: var(--pine-950);
    background: var(--amber);
    font-weight: 900;
}

.auth-point p {
    margin: 0;
}

.auth-form-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 55px 65px;
}

.auth-form-heading {
    margin-bottom: 25px;
}

.auth-form-heading h2 {
    font-size: 2.4rem;
}

.auth-form-heading p a {
    color: var(--gold-dark);
    font-weight: 750;
}

.stack {
    display: grid;
    gap: 18px;
}

.field {
    display: grid;
    gap: 7px;
}

.field > span,
.field > label {
    color: #303831;
    font-size: 0.81rem;
    font-weight: 800;
}

.field em {
    color: var(--muted);
    font-weight: 500;
}

.field input,
.field select,
.field textarea,
.role-form select {
    width: 100%;
    border: 1px solid #d4d2c9;
    border-radius: 9px;
    background: #fffefa;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input,
.field select {
    height: 47px;
    padding: 0 13px;
}

.field textarea {
    min-height: 90px;
    padding: 11px 13px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #bc864a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(215, 145, 66, 0.14);
}

.field small {
    color: #7b817b;
    font-size: 0.72rem;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 61px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    padding: 5px 7px;
    border: 0;
    color: var(--pine-700);
    background: transparent;
    transform: translateY(-50%);
    font-size: 0.72rem;
    font-weight: 800;
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.auth-fine-print {
    margin: 22px 0 0;
    text-align: center;
    font-size: 0.7rem;
}

.account-hero > .container {
    padding-top: 64px;
    padding-bottom: 54px;
}

.account-grid {
    display: grid;
    align-items: start;
    grid-template-columns: 290px 1fr;
    gap: 28px;
}

.profile-card {
    padding: 28px;
    text-align: center;
}

.profile-avatar {
    display: grid;
    width: 84px;
    height: 84px;
    margin: 0 auto 17px;
    place-items: center;
    border: 5px solid #f5ead6;
    border-radius: 50%;
    color: var(--pine-950);
    background: var(--amber);
    font-family: var(--display);
    font-size: 2.2rem;
    font-weight: 800;
}

.profile-card h2 {
    margin-bottom: 8px;
    font-size: 1.7rem;
}

.role-badge,
.visibility-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.67rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.role-member { color: #495a49; background: #e6ece2; }
.role-staff { color: #76531d; background: #fae9c9; }
.role-admin { color: #6c3029; background: #f5deda; }

.profile-card dl {
    margin: 25px 0;
    padding: 18px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.profile-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 0;
    font-size: 0.78rem;
}

.profile-card dt { color: var(--muted); }
.profile-card dd { margin: 0; overflow-wrap: anywhere; font-weight: 700; }
.profile-card .button,
.profile-card form { margin-top: 9px; }

.account-form {
    padding: 38px;
}

.form-grid {
    display: grid;
    gap: 17px;
}

.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-wide {
    grid-column: 1 / -1;
}

.form-divider {
    position: relative;
    margin: 8px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.form-divider span {
    position: relative;
    top: -13px;
    padding: 0 12px;
    color: var(--muted);
    background: var(--white);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.staff-hero .page-heading-row {
    align-items: center;
}

.staff-grid {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
}

.upload-panel {
    padding: 38px;
}

.upload-dropzone {
    position: relative;
    display: grid;
    min-height: 190px;
    place-items: center;
    align-content: center;
    overflow: hidden;
    border: 2px dashed #c9b790;
    border-radius: 14px;
    background: #fcf7ed;
    text-align: center;
    transition: border-color 160ms ease, background 160ms ease;
}

.upload-dropzone:hover {
    border-color: var(--gold);
    background: #fff5e2;
}

.upload-dropzone input {
    position: absolute;
    z-index: 3;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
}

.upload-icon {
    display: grid;
    width: 43px;
    height: 43px;
    margin-bottom: 10px;
    place-items: center;
    border-radius: 12px;
    color: var(--pine-800);
    background: #e6eddf;
    font-size: 1.3rem;
    font-weight: 900;
}

.upload-dropzone small {
    color: var(--muted);
    font-size: 0.75rem;
}

.upload-preview {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ece8de;
}

.upload-dropzone.has-preview .upload-preview {
    display: block;
}

.upload-dropzone.has-preview .upload-icon,
.upload-dropzone.has-preview strong,
.upload-dropzone.has-preview small {
    z-index: 2;
    opacity: 0;
}

.staff-sidebar {
    display: grid;
    gap: 18px;
}

.import-card,
.staff-note {
    padding: 25px;
}

.import-count {
    display: grid;
    width: 55px;
    height: 55px;
    margin-bottom: 17px;
    place-items: center;
    border-radius: 14px;
    color: var(--gold-dark);
    background: #fbebcf;
    font-family: var(--display);
    font-size: 1.8rem;
    font-weight: 700;
}

.import-card p,
.staff-note p {
    font-size: 0.84rem;
}

.staff-note {
    display: flex;
    gap: 13px;
    border-color: #d5c69f;
    background: #f8f1df;
}

.staff-note > span {
    display: grid;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #6d4b19;
    background: #edd49d;
    font-size: 0.8rem;
    font-weight: 900;
}

.management-list {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
}

.management-row {
    display: grid;
    min-height: 82px;
    align-items: center;
    padding: 11px 14px;
    grid-template-columns: 62px minmax(180px, 1fr) auto 41px auto;
    gap: 15px;
}

.management-row + .management-row {
    border-top: 1px solid var(--border);
}

.management-row > img {
    width: 60px;
    height: 56px;
    border-radius: 8px;
    background: #eeeae1;
    object-fit: contain;
}

.management-title {
    display: grid;
    min-width: 0;
}

.management-title strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.management-title span {
    color: var(--muted);
    font-size: 0.75rem;
}

.visibility-badge.visible { color: #2e6335; background: #e1efdc; }
.visibility-badge.hidden { color: #6c5552; background: #eee5e3; }

.member-list {
    overflow: hidden;
}

.member-row {
    display: grid;
    min-height: 74px;
    align-items: center;
    padding: 12px 20px;
    grid-template-columns: minmax(240px, 1fr) 120px 95px 230px;
    gap: 16px;
}

.member-row + .member-row {
    border-top: 1px solid var(--border);
}

.member-header {
    min-height: 46px;
    color: var(--muted);
    background: #f5f2eb;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.member-identity {
    display: flex;
    align-items: center;
    gap: 11px;
}

.member-identity div {
    display: grid;
}

.member-identity small {
    color: var(--muted);
}

.role-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px;
}

.role-form select {
    min-width: 105px;
    height: 38px;
    padding: 0 8px;
}

.light-link {
    margin-bottom: 18px;
    color: #cbd6ca;
}

.centered-page {
    display: grid;
    min-height: 70vh;
    padding: 70px 20px;
    place-items: center;
}

.error-card {
    width: min(600px, 100%);
    padding: 55px;
    text-align: center;
}

.error-card h1 {
    font-size: 2.8rem;
}

.installer-body {
    min-height: 100vh;
    padding: 50px 20px 90px;
    background: radial-gradient(circle at 15% 0%, rgba(219, 149, 64, 0.13), transparent 28%), #edf0e8;
}

.installer-shell {
    width: min(920px, 100%);
    margin: 0 auto;
}

.installer-brand {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 12px;
    margin: 0 auto 42px;
}

.installer-brand img {
    width: 72px;
    height: 72px;
}

.installer-brand span {
    display: grid;
}

.installer-brand strong {
    color: var(--pine-900);
    font-family: var(--display);
    font-size: 1.4rem;
}

.installer-brand small {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.installer-heading {
    max-width: 700px;
    margin: 0 auto 34px;
    text-align: center;
}

.installer-heading h1,
.installer-success h1 {
    margin-bottom: 15px;
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.installer-card {
    padding: 42px;
}

.installer-card fieldset {
    min-width: 0;
    margin: 0;
    padding: 0 0 30px;
    border: 0;
    border-bottom: 1px solid var(--border);
}

.installer-card legend {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    margin-bottom: 24px;
    color: var(--ink);
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 700;
}

.installer-card legend span {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 50%;
    color: var(--pine-900);
    background: #f3d69e;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 900;
}

.installer-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.installer-submit p {
    max-width: 480px;
    margin: 0;
    font-size: 0.8rem;
}

.installer-success {
    max-width: 680px;
    margin: 70px auto 0;
    text-align: center;
}

.success-mark {
    display: grid;
    width: 66px;
    height: 66px;
    margin: 0 auto 24px;
    place-items: center;
    border-radius: 50%;
    color: #2f6334;
    background: #dcefd8;
    font-size: 2rem;
    font-weight: 900;
}

@media (max-width: 980px) {
    .site-menu { gap: 12px; }
    .nav-link { padding-right: 10px; padding-left: 10px; }
    .hero-grid { grid-template-columns: 1fr 0.8fr; gap: 25px; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-preview { min-height: 400px; }
    .staff-grid { grid-template-columns: 1fr; }
    .staff-sidebar { grid-template-columns: 1fr 1fr; }
    .member-row { grid-template-columns: minmax(210px, 1fr) 95px 200px; }
    .member-row > :nth-child(2) { display: none; }
    .auth-form-wrap { padding-right: 42px; padding-left: 42px; }
    .auth-visual { padding: 42px; }
}

@media (max-width: 780px) {
    .container,
    .narrow { width: min(100% - 28px, 1180px); }
    .section { padding: 64px 0; }
    .menu-toggle { display: block; }
    .site-menu {
        position: absolute;
        top: 76px;
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        padding: 18px 20px 22px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background: var(--pine-950);
        box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
    }
    .site-menu.open { display: grid; gap: 14px; }
    .main-nav { align-items: stretch; flex-direction: column; }
    .header-actions { justify-content: flex-start; padding-top: 13px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
    .nav-link.active::after { display: none; }
    .hero { min-height: auto; }
    .hero::after { display: none; }
    .hero-grid { grid-template-columns: 1fr; gap: 20px; padding-top: 76px; padding-bottom: 70px; }
    .hero-copy { text-align: center; }
    .hero-copy > p { margin-right: auto; margin-left: auto; }
    .hero-actions,
    .hero-trust { justify-content: center; }
    .hero-art { min-height: 320px; }
    .hero-art > img { width: min(310px, 75vw); }
    .logo-glow { width: 280px; height: 280px; }
    .note-one { top: 25px; right: 7%; }
    .note-two { bottom: 20px; left: 7%; }
    .process-grid { grid-template-columns: 1fr; }
    .process-card { min-height: 230px; }
    .submit-banner { align-items: flex-start; flex-direction: column; padding: 40px; }
    .filter-bar { grid-template-columns: 1fr 1fr; }
    .search-field { grid-column: 1 / -1; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual { min-height: 420px; }
    .auth-visual > img { width: 155px; }
    .account-grid { grid-template-columns: 1fr; }
    .profile-card { max-width: none; }
    .installer-submit { align-items: stretch; flex-direction: column; }
}

@media (max-width: 580px) {
    body { font-size: 15px; }
    .section { padding: 52px 0; }
    .hero-copy h1 { font-size: 3rem; }
    .hero-trust span:not(:first-child) { padding-left: 0; border-left: 0; }
    .hero-trust { gap: 14px 24px; }
    .floating-note { font-size: 0.7rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .row-heading,
    .page-heading-row { align-items: flex-start; flex-direction: column; gap: 16px; }
    .submit-banner { padding: 32px 26px; }
    .footer-inner,
    .footer-links { align-items: flex-start; flex-direction: column; }
    .filter-bar { grid-template-columns: 1fr; }
    .search-field { grid-column: auto; }
    .detail-preview { min-height: 310px; padding: 15px; }
    .metadata-grid { grid-template-columns: 1fr; }
    .copy-row { grid-template-columns: 1fr; }
    .guide-step { grid-template-columns: 45px 1fr; gap: 18px; }
    .guide-step > span { width: 45px; height: 45px; }
    .guide-steps::before { left: 22px; }
    .auth-page { padding: 0; }
    .auth-shell { border: 0; border-radius: 0; }
    .auth-visual { min-height: 390px; padding: 36px 27px; }
    .auth-form-wrap { padding: 42px 26px; }
    .two-columns { grid-template-columns: 1fr; }
    .account-form,
    .upload-panel,
    .installer-card { padding: 27px 22px; }
    .staff-sidebar { grid-template-columns: 1fr; }
    .management-row { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; }
    .management-row > img { width: 50px; height: 50px; }
    .management-row .visibility-badge,
    .management-row > .icon-button { display: none; }
    .management-row form { grid-column: 2 / -1; }
    .management-row form .button { width: 100%; }
    .member-list { border: 0; background: transparent; box-shadow: none; }
    .member-header { display: none; }
    .member-row { margin-bottom: 12px; padding: 18px; border: 1px solid var(--border) !important; border-radius: 12px; background: var(--white); grid-template-columns: 1fr auto; }
    .member-row > :nth-child(3) { justify-self: end; }
    .member-row .role-form { grid-column: 1 / -1; }
    .installer-body { padding-right: 12px; padding-left: 12px; }
    .installer-brand { margin-bottom: 28px; }
    .error-card { padding: 38px 23px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
