:root {
    --bg: #f3f6fb;
    --paper: #ffffff;
    --ink: #0f172a;
    --muted: #5b6473;
    --primary: #0b6ef6;
    --primary-strong: #0857c4;
    --line: #dce4ef;
    --accent: #14b8a6;
    --danger-bg: #ffefef;
    --danger-text: #8f1d1d;
    --success-bg: #ecfdf3;
    --success-text: #146c43;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

[data-theme="dark"] {
    --bg: #0b1220;
    --paper: #101a2d;
    --ink: #e5edf9;
    --muted: #9fb0ca;
    --primary: #60a5fa;
    --primary-strong: #3b82f6;
    --line: #22314b;
    --accent: #22d3ee;
    --danger-bg: #3a1a1a;
    --danger-text: #fecaca;
    --success-bg: #123325;
    --success-text: #a7f3d0;
}

* { box-sizing: border-box; }

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% -10%, #dce8ff 0%, transparent 33%),
        radial-gradient(circle at 92% -12%, #d4fff6 0%, transparent 34%),
        var(--bg);
    min-height: 100vh;
}

[data-theme="dark"] body {
    background:
        radial-gradient(circle at 8% -10%, rgba(59, 130, 246, 0.22) 0%, transparent 36%),
        radial-gradient(circle at 92% -12%, rgba(34, 211, 238, 0.16) 0%, transparent 38%),
        var(--bg);
}

.container {
    width: min(1080px, 92vw);
    margin: 0 auto;
}

.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }

.row-between {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
    background: #111827;
    color: #fff;
    padding: 8px 10px;
    border-radius: 6px;
    z-index: 100;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 14px 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
}

[data-theme="dark"] .site-header {
    background: rgba(11, 18, 32, 0.92);
}

.nav-wrap {
    position: relative;
    min-height: 68px;
    display: grid;
    grid-template-columns: auto minmax(260px, 420px) auto;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.brand-logo {
    display: block;
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.brand-text {
    line-height: 1;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--muted);
    font: inherit;
    font-weight: 700;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    padding: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    content: "";
}

.hamburger {
    position: relative;
    transition: background-color 0.2s ease;
}

.hamburger::before {
    position: absolute;
    top: -5px;
    transition: transform 0.2s ease, top 0.2s ease;
}

.hamburger::after {
    position: absolute;
    top: 5px;
    transition: transform 0.2s ease, top 0.2s ease;
}

[data-theme="dark"] .nav-toggle {
    color: #d7e3f8;
}

.nav-toggle:hover {
    color: var(--primary);
    background: color-mix(in srgb, var(--paper) 82%, var(--primary) 18%);
}

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

.header-actions {
    margin-left: 0;
    display: none;
    align-items: center;
    gap: 10px;
}

.nav-search {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.nav-search-desktop {
    position: static;
    transform: none;
    width: 100%;
    justify-self: center;
}

.nav-search-input {
    width: 100%;
    height: 38px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--line) 85%, #ffffff 15%);
    background: color-mix(in srgb, var(--paper) 92%, #ffffff 8%);
    color: var(--ink);
    padding: 8px 14px;
    font: inherit;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.nav-search-input::placeholder {
    color: color-mix(in srgb, var(--muted) 75%, #9aa7bd 25%);
}

.nav-search-input:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--primary) 55%, #8fb7f7 45%);
    box-shadow: 0 0 0 3px rgba(11, 110, 246, 0.12);
    background: var(--paper);
}

.nav-search-btn {
    height: 38px;
    width: 38px;
    border: 1px solid color-mix(in srgb, var(--line) 82%, #ffffff 18%);
    border-radius: 999px;
    padding: 0;
    background: var(--paper);
    color: var(--muted);
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.nav-search-btn:hover {
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 40%, #9dbff3 60%);
    background: color-mix(in srgb, var(--paper) 86%, #edf4ff 14%);
}

.search-toggle {
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--muted);
    font: inherit;
    font-weight: 700;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.toggle-icon svg {
    width: 17px;
    height: 17px;
    display: block;
}

.search-toggle-mobile {
    display: none;
}

.mobile-search-panel {
    display: none;
}

.gov-topbar {
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper) 90%, #eaf2ff 10%);
}

.gov-topbar-inner {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--muted);
}

.gov-quick-links {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gov-quick-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
}

.gov-quick-links a:hover {
    color: var(--primary);
}

.gov-mainbar {
    min-height: 68px;
    display: grid;
    grid-template-columns: auto minmax(300px, 540px) auto;
    align-items: center;
    gap: 14px;
}

.gov-mainbar .header-actions {
    display: none;
}

.gov-mainbar .nav-search-desktop {
    position: static;
    transform: none;
    width: 100%;
    justify-self: center;
}

.mainbar-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.mainbar-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
    padding: 8px 4px;
}

.mainbar-link:hover {
    color: var(--primary);
}

.gov-navrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-top: 1px solid var(--line);
    padding: 6px 0;
    overflow: visible;
    position: relative;
}

.gov-navrow .main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 0;
    width: 100%;
    justify-content: center;
}

.gov-navrow .nav-list {
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
    gap: 4px;
}

.gov-navrow .nav-list a {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.9rem;
}

.gov-navrow .nav-auth-item {
    display: none;
}

.main-nav {
    display: flex;
    align-items: center;
    margin-left: 0;
    grid-column: 3;
    justify-self: end;
}

.nav-tools {
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 9px;
}

.theme-toggle {
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--muted);
    font: inherit;
    font-weight: 700;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle-mobile {
    display: none;
}

.theme-toggle:hover {
    color: var(--primary);
    background: color-mix(in srgb, var(--paper) 82%, var(--primary) 18%);
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary);
    background: #eef4ff;
}

[data-theme="dark"] .nav-list a:hover,
[data-theme="dark"] .nav-list a.active {
    background: #1b2a44;
}

.btn.btn-nav {
    min-height: 38px;
    border-radius: 9px;
    padding: 8px 12px;
    color: #fff;
    background: var(--primary);
}

.btn.btn-nav:hover {
    background: var(--primary-strong);
    color: #fff;
}

.dashboard-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper) 94%, #f3f7ff 6%);
    color: var(--muted);
    text-decoration: none;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.dashboard-icon-link:hover {
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 35%, var(--line) 65%);
    background: color-mix(in srgb, var(--paper) 86%, #eaf2ff 14%);
}

[data-theme="dark"] .dashboard-icon-link {
    background: #14233b;
    border-color: #2a3b59;
    color: #b8c7de;
}

[data-theme="dark"] .dashboard-icon-link:hover {
    color: #93c5fd;
    border-color: #3a5479;
    background: #1a2f4d;
}

.dashboard-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.dashboard-icon svg {
    width: 14px;
    height: 14px;
}

.dashboard-inline-name {
    display: inline-block;
    max-width: 120px;
    color: currentColor;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-dashboard-mobile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-dashboard-mobile .dashboard-icon svg {
    width: 14px;
    height: 14px;
}

.nav-dashboard-mobile .dashboard-inline-name {
    max-width: 156px;
    font-size: 0.9rem;
    font-weight: 700;
}

main.container {
    padding-top: clamp(14px, 2vw, 22px);
}

h1, h2, h3 {
    margin-top: 0;
    line-height: 1.2;
}

.hero {
    background: linear-gradient(140deg, #0f172a 0%, #1e3a8a 55%, #0b6ef6 100%);
    border-radius: 18px;
    color: #fff;
    padding: clamp(18px, 4vw, 32px);
    margin: 12px 0 clamp(14px, 2.2vw, 20px);
    box-shadow: 0 15px 35px rgba(17, 24, 39, 0.28);
}

.hero p {
    color: #d8e6ff;
    max-width: 780px;
    font-size: clamp(0.96rem, 2.1vw, 1.06rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.stat-row {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.stat {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    padding: 10px 12px;
}

.stat strong {
    display: block;
    font-size: 1.1rem;
}

.grid {
    display: grid;
    gap: 16px;
}

.grid.posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.card-muted {
    background: #f8fbff;
    border-style: dashed;
}

.card h2 a,
.card h3 a {
    color: var(--ink);
    text-decoration: none;
}

.card h2 a:hover,
.card h3 a:hover {
    color: var(--primary);
}

.lead-post {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 16px;
    align-items: center;
}

.lead-post .title {
    font-size: clamp(1.3rem, 3.8vw, 1.75rem);
}

.post-thumb {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--line);
    object-fit: cover;
    display: block;
    margin-bottom: 10px;
    max-height: 240px;
}

.lead-thumb {
    max-height: 340px;
}

.post-cover {
    margin-top: 10px;
    margin-bottom: 2px;
    max-height: 440px;
}

.post-title-sub {
    margin-top: 10px;
    margin-bottom: 4px;
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    line-height: 1.3;
}

.post-meta-sub {
    font-size: 0.9rem;
}

.prose {
    line-height: 1.8;
    white-space: pre-wrap;
}

.separator {
    border: 0;
    border-top: 1px solid #dce4ef;
    margin: 14px 0;
}

.post-editor-preview {
    width: min(360px, 100%);
    border-radius: 10px;
    border: 1px solid var(--line);
    display: block;
}

.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: var(--paper);
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.1);
}

.post-card .post-thumb {
    margin: 10px 10px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    width: calc(100% - 20px);
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: none;
    object-fit: cover;
    display: block;
}

.post-card .post-card-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 12px 12px 10px;
}

.auth-shell {
    margin-top: 18px;
    max-width: 560px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 14px;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.84rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.google-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: #1f2937;
    border: 1px solid #d7e1ef;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    min-height: 46px;
    font-weight: 800;
}

.google-btn:hover {
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
    color: #0f172a;
    border-color: #bfd0ea;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.google-btn .icon {
    width: 20px;
    height: 20px;
    line-height: 0;
}

.google-btn .icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

[data-theme="dark"] .google-btn {
    background: #15253d;
    color: #e5edf9;
    border-color: #2a3b59;
}

[data-theme="dark"] .google-btn:hover {
    background: #1b2f4d;
}

.auth-alt-actions {
    display: grid;
    gap: 10px;
}

.register-btn {
    width: 100%;
    text-align: center;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 800;
}

.auth-note {
    margin-top: 10px;
    text-align: center;
    font-size: 0.88rem;
}

.google-setup-note {
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    background: #f8fbff;
    color: var(--muted);
    font-size: 0.9rem;
}

[data-theme="dark"] .google-setup-note {
    background: #13243b;
    border-color: #304765;
    color: #b8c7de;
}

.post-card .post-card-body h2,
.post-card .post-card-body h3 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 1.1rem;
    line-height: 1.32;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card .post-excerpt {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--muted);
    line-height: 1.4;
    font-size: 0.92rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card .post-meta-row {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.post-card .post-date {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
}

.post-card .post-date::before {
    content: "";
    width: 14px;
    height: 14px;
    display: inline-block;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v6l4 2'/%3E%3C/svg%3E");
}

.post-card .post-cta {
    margin: 0;
    white-space: nowrap;
    padding: 7px 11px;
    font-size: 0.88rem;
    border-radius: 8px;
}

@media (max-width: 760px) {
    .grid.posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post-card .post-thumb {
        aspect-ratio: 16 / 9;
        height: auto;
    }
}

.comments-section {
    margin-top: 20px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.share-box {
    margin-top: 16px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.share-box h2 {
    margin-bottom: 8px;
}

.share-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.share-btn {
    border: 1px solid #d5e1f2;
    background: #ffffff;
    color: var(--ink);
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.share-btn .icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    border-radius: 999px;
    color: #fff;
}

.share-btn .icon svg {
    width: 12px;
    height: 12px;
    display: block;
}

.share-btn .label {
    line-height: 1;
}

.share-btn:hover {
    transform: translateY(-1px);
    background: #f3f8ff;
    border-color: #bcd0ed;
    box-shadow: 0 11px 20px rgba(15, 23, 42, 0.18);
}

.share-wa {
    background: #fff;
}

.share-fb {
    background: #fff;
}

.share-x {
    background: #fff;
}

.share-li {
    background: #fff;
}

.share-copy {
    background: #fff;
}

.icon-wa {
    background: linear-gradient(135deg, #25d366, #16a34a);
}

.icon-fb {
    background: linear-gradient(135deg, #1877f2, #1459b8);
}

.icon-x {
    background: linear-gradient(135deg, #111827, #374151);
}

.icon-li {
    background: linear-gradient(135deg, #0a66c2, #004182);
}

.icon-copy {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

[data-theme="dark"] .share-btn {
    background: #14233b;
    border-color: #2a3b59;
    color: #e5edf9;
}

[data-theme="dark"] .share-btn:hover {
    background: #1a2f4d;
    border-color: #39547c;
}

.comment-form textarea {
    min-height: 120px;
}

.comments-list {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.comment-item {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    background: #fbfdff;
}

.comment-item p {
    margin: 0;
}

.comment-item p + p {
    margin-top: 8px;
}

.meta {
    color: var(--muted);
    font-size: 0.94rem;
}

.section-head {
    margin: 20px 0 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.blog-layout {
    margin-top: 16px;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr);
    gap: 16px;
    align-items: start;
}

.blog-main {
    min-width: 0;
}

.blog-sidebar {
    position: sticky;
    top: 88px;
    display: grid;
    gap: 12px;
}

.sidebar-card h3 {
    margin-bottom: 10px;
}

.sidebar-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-links li {
    padding: 7px 0;
    border-bottom: 1px dashed var(--line);
}

.sidebar-links li:last-child {
    border-bottom: 0;
}

.sidebar-links a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
}

.sidebar-links a:hover {
    color: var(--primary);
}

h1 {
    font-size: clamp(1.6rem, 4.6vw, 2.4rem);
}

h2 {
    font-size: clamp(1.25rem, 3.2vw, 1.7rem);
}

h3 {
    font-size: clamp(1.06rem, 2.6vw, 1.2rem);
}

a.btn,
button.btn {
    display: inline-block;
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    background: var(--primary);
    color: #fff;
}

a.btn:hover,
button.btn:hover {
    background: var(--primary-strong);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0b6ef6;
    outline-offset: 2px;
}

.btn.secondary {
    background: #eaf1ff;
    color: #153269;
}

[data-theme="dark"] .btn.secondary {
    background: #1a2b45;
    color: #c7ddff;
}

.auth-shell a.btn.google-btn {
    width: 100%;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 14px;
    border: 1px solid #d7e1ef;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    color: #111827;
    font-weight: 800;
    letter-spacing: 0.1px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.auth-shell a.btn.google-btn .icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e4ebf5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.auth-shell a.btn.google-btn .icon svg {
    width: 18px;
    height: 18px;
}

.auth-shell a.btn.google-btn:hover {
    background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
    border-color: #bfd0ea;
    color: #0f172a;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
    transform: translateY(-1px);
}

[data-theme="dark"] .auth-shell a.btn.google-btn {
    background: linear-gradient(180deg, #16263f 0%, #132238 100%);
    border-color: #2a3b59;
    color: #e5edf9;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .auth-shell a.btn.google-btn .icon {
    background: #0f1d31;
    border-color: #2d425f;
}

[data-theme="dark"] .auth-shell a.btn.google-btn:hover {
    background: linear-gradient(180deg, #1b2f4d 0%, #172946 100%);
    border-color: #39547c;
}

.btn.ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
}

.btn.danger {
    background: #d92d20;
}

.form-group {
    margin-bottom: 14px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    font: inherit;
    background: #fff;
}

[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] textarea {
    background: #0f1c33;
    color: #e5edf9;
    border-color: #2a3b59;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: #8fa3c2;
}

textarea {
    min-height: 220px;
    resize: vertical;
}

.textarea-compact {
    min-height: 86px;
}

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

.flash {
    margin: 14px 0;
    padding: 11px 12px;
    border-radius: 8px;
    font-weight: 700;
}

.flash.success {
    background: var(--success-bg);
    color: var(--success-text);
}

.flash.error {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.breadcrumbs {
    margin: 10px 0 6px;
}

.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.92rem;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs li + li::before {
    content: "/";
    color: #9aa3b2;
}

.breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs [aria-current="page"] {
    color: var(--ink);
    font-weight: 700;
}

[data-theme="dark"] .breadcrumbs a {
    color: #b8c7de;
}

[data-theme="dark"] .breadcrumbs [aria-current="page"] {
    color: #ffffff;
}

.pagination {
    margin: 18px 0 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 13px;
    border-radius: 10px;
    border: 1px solid #d5e1f2;
    background: #fff;
    color: #274468;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.page-link:hover {
    border-color: #aac2e6;
    background: #f2f7ff;
}

.page-link.active {
    border-color: #0b6ef6;
    background: #0b6ef6;
    color: #fff;
    box-shadow: 0 6px 14px rgba(11, 110, 246, 0.3);
}

.page-link.ellipsis {
    border-style: dashed;
    color: #7b8ea8;
    background: #f8fbff;
    box-shadow: none;
    pointer-events: none;
}

.table-form-inline {
    margin: 0;
    display: inline;
}

.title-tight {
    margin-bottom: 4px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.table th,
.table td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid var(--line);
}

.page {
    max-width: 860px;
}

.page h1 {
    margin-bottom: 8px;
}

.page p,
.page li {
    color: var(--ink);
    line-height: 1.65;
}

.page p.meta,
.page li.meta,
.page .meta {
    color: var(--muted);
}

.bg-tool-shell {
    max-width: 1120px;
    margin: 0 auto;
}

.bg-tool-intro {
    background: linear-gradient(145deg, #0f2348 0%, #154a8a 55%, #0b6ef6 100%);
    color: #fff;
    border-color: rgba(186, 212, 255, 0.25);
    box-shadow: 0 18px 32px rgba(7, 22, 47, 0.28);
}

.bg-tool-intro h1 {
    margin-bottom: 8px;
    color: #fff;
}

.bg-tool-intro p {
    margin: 0;
    color: #dbe9ff;
}

.bg-tool-kicker {
    margin: 0 0 8px;
    letter-spacing: 0.22em;
    font-size: 0.75rem;
    font-weight: 800;
    color: #b8d6ff;
}

.bg-tool-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.bg-tool-controls h2 {
    margin-bottom: 4px;
}

.bg-file-input,
.bg-select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    font: inherit;
    background: #fff;
    color: var(--ink);
}

.bg-file-input {
    padding: 8px;
}

[data-theme="dark"] .bg-file-input,
[data-theme="dark"] .bg-select {
    background: #0f1c33;
    border-color: #2a3b59;
    color: #e5edf9;
}

.bg-tool-status {
    border: 1px solid #dbe7f8;
    border-radius: 10px;
    padding: 10px 12px;
    background: #f7fbff;
    color: #3a4c66;
    font-weight: 700;
}

.bg-tool-status.is-busy {
    border-color: #c8dcff;
    background: #edf5ff;
    color: #0d4ea8;
}

.bg-tool-status.is-success {
    border-color: #bde9d5;
    background: #effcf5;
    color: #186443;
}

.bg-tool-status.is-error {
    border-color: #efc7c7;
    background: #fff2f2;
    color: #8f1d1d;
}

[data-theme="dark"] .bg-tool-status {
    border-color: #2b3f61;
    background: #121e33;
    color: #c8d8ef;
}

[data-theme="dark"] .bg-tool-status.is-busy {
    border-color: #2f5a92;
    background: #122744;
    color: #9cc5ff;
}

[data-theme="dark"] .bg-tool-status.is-success {
    border-color: #246548;
    background: #10271e;
    color: #9ee8c3;
}

[data-theme="dark"] .bg-tool-status.is-error {
    border-color: #6a2b2b;
    background: #2a1313;
    color: #ffcece;
}

.bg-tool-progress {
    margin-top: 10px;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #eaf1fb;
    overflow: hidden;
}

.bg-tool-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0b6ef6, #14b8a6);
    transition: width 0.2s ease;
}

[data-theme="dark"] .bg-tool-progress {
    background: #1b2a44;
}

.pod-hero {
    margin-top: 16px;
    border-radius: 18px;
    border: 1px solid #d8e4f7;
    background:
        radial-gradient(circle at 10% -20%, rgba(20, 184, 166, 0.16), transparent 35%),
        radial-gradient(circle at 94% -14%, rgba(11, 110, 246, 0.18), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.pod-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.9fr);
    gap: 16px;
    align-items: start;
}

.pod-hero-eyebrow {
    margin: 0 0 8px;
    color: #0b6ef6;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
}

.pod-hero-title {
    margin-bottom: 8px;
    font-size: clamp(1.45rem, 3vw, 2.05rem);
    line-height: 1.18;
}

.pod-hero-copy {
    margin: 0;
    color: var(--muted);
    max-width: 68ch;
}

.pod-hero-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pod-hero-metrics {
    display: grid;
    gap: 9px;
}

.pod-metric {
    border: 1px solid #d8e6fa;
    background: #f4f8ff;
    border-radius: 12px;
    padding: 10px 12px;
    display: grid;
    gap: 4px;
}

.pod-metric strong {
    font-size: 0.9rem;
    color: #143b67;
}

.pod-metric span {
    font-size: 0.82rem;
    color: #567195;
}

.pod-layout {
    margin-top: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
    gap: 14px;
    align-items: start;
}

.pod-side-stack {
    display: grid;
    gap: 12px;
    position: sticky;
    top: 88px;
}

.pod-side-card {
    border-radius: 14px;
}

.pod-side-card h3 {
    margin-bottom: 8px;
}

.pod-side-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.pod-side-metrics > div {
    border: 1px solid #d8e4f7;
    background: #f6f9ff;
    border-radius: 10px;
    padding: 8px;
}

.pod-side-metrics strong {
    display: block;
    font-size: 1.05rem;
    color: #0b6ef6;
}

.pod-side-metrics span {
    font-size: 0.78rem;
    color: #5d6f89;
}

.pod-side-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 7px;
    color: #3c4f6b;
    font-size: 0.9rem;
}

.pod-addon-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}

.pod-addon-grid label {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid #d7e4f8;
    border-radius: 10px;
    background: #f7faff;
    font-weight: 600;
    color: #304a70;
    cursor: pointer;
}

.pod-addon-grid input[type="checkbox"] {
    margin: 0;
    accent-color: #0b6ef6;
}

.pod-file-previews {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.pod-file-row {
    border: 1px solid #d7e4f8;
    border-radius: 10px;
    background: #fff;
    min-height: 54px;
    padding: 6px 10px 6px 6px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 32px;
    gap: 10px;
    align-items: center;
}

.pod-file-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #d5e3f7;
    background: #f2f7ff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pod-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pod-file-type {
    font-size: 0.66rem;
    font-weight: 800;
    color: #295082;
}


.pod-file-info {
    min-width: 0;
}

.pod-file-name {
    font-size: 0.86rem;
    font-weight: 700;
    color: #1f334f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pod-file-meta {
    margin-top: 2px;
    font-size: 0.73rem;
    color: #5b6f8f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pod-preview-remove {
    position: static;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #d12a2a;
    font-size: 0;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    transition: color 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
    opacity: 0.9;
}

.pod-preview-remove:hover {
    background: transparent;
    color: #b91c1c;
    opacity: 1;
    transform: translateY(-1px);
}

.pod-preview-remove svg {
    width: 20px;
    height: 20px;
    display: block;
    transform: none;
}

.pod-thumb {
    width: 62px;
    height: 44px;
    border-radius: 7px;
    object-fit: cover;
    border: 1px solid #d5e3f7;
    display: block;
}

.pod-basic-note {
    margin-top: 0;
    margin-bottom: 10px;
}

.pod-order-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.pod-order-tab {
    border: 1px solid #d2e0f4;
    background: #f7faff;
    color: #2d466d;
    min-height: 40px;
    border-radius: 10px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.pod-order-tab:hover {
    border-color: #acc5ea;
    background: #eef5ff;
}

.pod-order-tab.active {
    border-color: #0b6ef6;
    background: #e8f1ff;
    color: #0b6ef6;
}

.pod-advanced {
    margin-top: 10px;
    border: 1px dashed #cfdcf2;
    border-radius: 11px;
    background: #f9fbff;
    padding: 8px 10px;
}

.pod-advanced > summary {
    cursor: pointer;
    font-weight: 700;
    color: #254167;
    list-style: none;
}

.pod-advanced > summary::-webkit-details-marker {
    display: none;
}

.pod-advanced > summary::after {
    content: " +";
    color: #4b6d9b;
}

.pod-advanced[open] > summary::after {
    content: " -";
}

.pod-advanced-grid {
    margin-top: 10px;
}

.pod-request-card {
    max-width: 980px;
    border-radius: 20px;
    border: 1px solid #d5e3f7;
    background:
        radial-gradient(circle at 94% -30%, rgba(11, 110, 246, 0.14), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.pod-head {
    border-bottom: 1px solid #dfebfb;
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.pod-head h2 {
    margin-bottom: 4px;
}

.pod-head-note {
    margin: 8px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #dbe8fa;
    border-radius: 999px;
    padding: 6px 11px;
    background: #f1f6ff;
    color: #1f3d67;
    font-size: 0.8rem;
    font-weight: 700;
}

.pod-head-note::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0b6ef6;
}

.pod-form {
    display: grid;
    gap: 14px;
}

.pod-quick-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.pod-quick-list span {
    border: 1px solid #d7e5f8;
    background: #f3f8ff;
    color: #2b466f;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

.pod-form-block {
    border: 1px solid #dce8fa;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    padding: 12px;
}

.pod-section-title {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
    color: #2563eb;
}

.pod-address-title {
    display: inline-block;
    text-align: left;
    color: #2563eb;
    font-weight: 700;
}

.pod-address-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.pod-address-title-btn {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.pod-address-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pod-address-help {
    margin-top: 6px;
    margin-bottom: 0;
}

.pod-address-stack {
    margin-top: 8px;
    display: grid;
    gap: 12px;
}

.pod-address-stack .form-group {
    margin: 0;
}

.pod-address-editor {
    margin-top: 8px;
    border: 1px solid #cfe0f8;
    background: #f8fbff;
    border-radius: 10px;
    padding: 10px;
}

.pod-address-mode {
    margin-top: 6px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.pod-address-list {
    margin-top: 8px;
    display: grid;
    gap: 8px;
}

.pod-address-option {
    display: block;
    margin: 0;
}

.pod-address-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pod-address-option-card {
    display: grid;
    gap: 2px;
    border: 1px solid #cfe0f8;
    background: #f6f9ff;
    border-radius: 10px;
    padding: 9px 10px;
    cursor: pointer;
    color: #1f3654;
}

.pod-address-option-card strong {
    font-size: 0.94rem;
}

.pod-address-option input[type="radio"]:checked + .pod-address-option-card {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.14);
    background: #eef5ff;
}

.pod-address-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin: 0;
}

.pod-address-radio input[type="radio"] {
    margin: 0;
    accent-color: #2563eb;
}

.pod-choice {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    margin: 0;
}

.pod-choice input[type="radio"] {
    margin: 0;
    accent-color: #2563eb;
}

.pod-saved-address {
    margin-top: 8px;
    border: 1px solid #cfe0f8;
    background: #f4f8ff;
    border-radius: 10px;
    padding: 10px 12px;
    display: grid;
    gap: 2px;
    color: #1f3654;
}

.pod-saved-actions {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.pod-mini-btn {
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
}

.pod-address-editor-actions {
    margin-top: 2px;
    display: flex;
    justify-content: flex-end;
}

.pod-payment-box {
    margin-top: 8px;
    border: 1px solid #cfe0f8;
    background: #f8fbff;
    border-radius: 10px;
    padding: 10px;
    display: grid;
    gap: 10px;
}

.pod-payment-qr-wrap {
    display: grid;
    justify-items: start;
    gap: 6px;
}

.pod-payment-qr {
    width: 180px;
    height: 180px;
    border-radius: 8px;
    border: 1px solid #d8e5f8;
    background: #fff;
}

.pod-payment-actions {
    display: grid;
    gap: 6px;
    justify-items: start;
}

.pod-payment-state {
    margin: 0;
}

.pod-payment-state.is-ok {
    color: #15803d;
    font-weight: 700;
}

.is-hidden {
    display: none !important;
}

.pod-grid {
    display: grid;
    gap: 12px;
}

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

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

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

.pod-core-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.pod-form .form-group {
    margin: 0;
}

.pod-cost-live {
    margin-top: 8px;
    font-size: 0.9rem;
}

.pod-cost-live strong {
    color: #0b6ef6;
    font-size: 0.98rem;
}

.pod-form input[type="text"],
.pod-form input[type="number"],
.pod-form textarea,
.pod-form .bg-select,
.pod-form .bg-file-input {
    border-radius: 11px;
    border: 1px solid #cbdcf5;
    background: #fff;
    min-height: 45px;
    box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.02);
}

.pod-form .bg-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5 10 12.5 15 7.5' stroke='%234a617f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 14px 14px;
    background-position: calc(100% - 12px) 50%;
}

.pod-form .bg-select::-ms-expand {
    display: none;
}

.pod-form textarea {
    min-height: 96px;
}

.pod-upload-shell {
    border: 1px dashed #b6cdee;
    border-radius: 12px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
    padding: 11px;
}

.pod-file-native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.pod-dropzone {
    border: 1px dashed #c4d8f4;
    border-radius: 12px;
    background: #ffffff;
    padding: 14px 12px;
    text-align: center;
    position: relative;
    transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.pod-dropzone.is-dragover {
    border-color: #0b6ef6;
    background: #eef5ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.pod-dropzone-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    margin: 0 auto 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(165deg, #f8fbff 0%, #e8f1ff 100%);
    border: 1px solid #c8daf6;
    box-shadow: 0 8px 18px rgba(13, 74, 167, 0.15);
    color: #0f172a;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pod-dropzone-icon svg {
    width: 30px;
    height: 30px;
}

.pod-dropzone.is-dragover .pod-dropzone-icon {
    transform: translateY(-1px) scale(1.02);
    border-color: #87b4ef;
    box-shadow: 0 10px 22px rgba(13, 74, 167, 0.24);
}

.pod-dropzone-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    color: #223b5f;
}

.pod-dropzone-sub {
    margin: 5px 0 0;
    font-size: 0.76rem;
    color: #607899;
}

.pod-dropzone-meta {
    margin: 7px 0 0;
    font-size: 0.74rem;
    color: #7488a5;
}

.pod-browse-btn {
    margin-top: 10px;
    min-height: 34px;
    border: 1px solid #b8d0f0;
    border-radius: 9px;
    padding: 7px 12px;
    background: #f0f6ff;
    color: #0b6ef6;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.pod-browse-btn:hover {
    background: #e7f0ff;
    border-color: #97bbea;
}

.pod-upload-note {
    margin: 8px 0 0;
    font-size: 0.83rem;
    color: #5b6f8f;
}

.pod-form input[type="text"]:focus,
.pod-form input[type="number"]:focus,
.pod-form textarea:focus,
.pod-form .bg-select:focus,
.pod-form .bg-file-input:focus {
    border-color: #8eb5f4;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
    outline: none;
}

.pod-submit-wrap {
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.pod-submit-btn {
    min-height: 47px;
    border-radius: 11px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #0b6ef6, #1d4ed8);
    box-shadow: 0 10px 20px rgba(29, 78, 216, 0.28);
}

.pod-submit-btn:hover {
    background: linear-gradient(135deg, #0a63df, #1e40af);
}

[data-theme="dark"] .pod-request-card {
    border-color: #2a4365;
    background: linear-gradient(180deg, #0f1c33 0%, #11233f 100%);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .pod-hero {
    border-color: #2b466b;
    background:
        radial-gradient(circle at 10% -20%, rgba(20, 184, 166, 0.18), transparent 35%),
        radial-gradient(circle at 94% -14%, rgba(96, 165, 250, 0.2), transparent 36%),
        linear-gradient(180deg, #0f1c33 0%, #11233f 100%);
}

[data-theme="dark"] .pod-hero-eyebrow {
    color: #93c5fd;
}

[data-theme="dark"] .pod-hero-copy {
    color: #adc0dd;
}

[data-theme="dark"] .pod-metric {
    border-color: #355177;
    background: #132a46;
}

[data-theme="dark"] .pod-metric strong {
    color: #d7e7ff;
}

[data-theme="dark"] .pod-metric span {
    color: #a9bedc;
}

[data-theme="dark"] .pod-side-metrics > div {
    border-color: #355177;
    background: #132a46;
}

[data-theme="dark"] .pod-side-metrics span {
    color: #a9bedc;
}

[data-theme="dark"] .pod-side-list {
    color: #c3d5ef;
}

[data-theme="dark"] .pod-file-row {
    border-color: #355279;
    background: #132944;
}

[data-theme="dark"] .pod-file-thumb {
    border-color: #355279;
    background: #193657;
}

[data-theme="dark"] .pod-file-type {
    color: #9ec6ff;
}


[data-theme="dark"] .pod-file-name {
    color: #e5edf9;
}

[data-theme="dark"] .pod-file-meta {
    color: #aec3e1;
}

[data-theme="dark"] .pod-addon-grid label {
    border-color: #34527b;
    background: #122843;
    color: #c5dbfb;
}

[data-theme="dark"] .pod-preview-item {
    border-color: #355279;
    background: #132944;
}

[data-theme="dark"] .pod-preview-cap {
    color: #aec3e1;
}

[data-theme="dark"] .pod-preview-remove {
    border-color: rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.68);
    color: #cbd5e1;
}

[data-theme="dark"] .pod-preview-remove:hover {
    background: rgba(15, 23, 42, 0.9);
    color: #f8fafc;
    border-color: rgba(147, 197, 253, 0.5);
}

[data-theme="dark"] .pod-preview-pdf {
    border-color: #355279;
    background: #0f223b;
}

[data-theme="dark"] .pod-thumb {
    border-color: #355279;
}

[data-theme="dark"] .pod-order-tab {
    border-color: #355279;
    background: #132944;
    color: #c5dbfb;
}

[data-theme="dark"] .pod-order-tab:hover {
    border-color: #4970a3;
    background: #16304f;
}

[data-theme="dark"] .pod-order-tab.active {
    border-color: #60a5fa;
    background: #183659;
    color: #93c5fd;
}

[data-theme="dark"] .pod-advanced {
    border-color: #36527a;
    background: #132844;
}

[data-theme="dark"] .pod-advanced > summary {
    color: #c5dbfb;
}

[data-theme="dark"] .pod-head {
    border-bottom-color: #2b3f61;
}

[data-theme="dark"] .pod-section-title {
    color: #93c5fd;
}

[data-theme="dark"] .pod-quick-list span {
    border-color: #34547f;
    background: #132742;
    color: #c0d9ff;
}

[data-theme="dark"] .pod-head-note {
    border-color: #34527b;
    background: #132843;
    color: #c6dbfa;
}

[data-theme="dark"] .pod-head-note::before {
    background: #60a5fa;
}

[data-theme="dark"] .pod-form-block {
    border-color: #2f4c73;
    background: linear-gradient(180deg, #11233d 0%, #102038 100%);
}

[data-theme="dark"] .pod-form input[type="text"],
[data-theme="dark"] .pod-form input[type="number"],
[data-theme="dark"] .pod-form textarea,
[data-theme="dark"] .pod-form .bg-select,
[data-theme="dark"] .pod-form .bg-file-input {
    border-color: #2f4a71;
    background: #0f1b31;
    color: #e5edf9;
}

[data-theme="dark"] .pod-form .bg-select {
    background-color: #0f1b31;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5 10 12.5 15 7.5' stroke='%23c1d6f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 14px 14px;
    background-position: calc(100% - 12px) 50%;
}

[data-theme="dark"] .pod-upload-shell {
    border-color: #32527e;
    background: linear-gradient(180deg, #12233e 0%, #0f1f36 100%);
}

[data-theme="dark"] .pod-dropzone {
    border-color: #35547e;
    background: #11243f;
}

[data-theme="dark"] .pod-dropzone.is-dragover {
    border-color: #60a5fa;
    background: #183455;
}

[data-theme="dark"] .pod-dropzone-icon {
    background: linear-gradient(165deg, #1a3558 0%, #152d4a 100%);
    border: 1px solid #345980;
    box-shadow: 0 8px 18px rgba(3, 9, 19, 0.45);
    color: #e8eef8;
}

[data-theme="dark"] .pod-dropzone-title {
    color: #d9e8ff;
}

[data-theme="dark"] .pod-dropzone-sub {
    color: #a8bfdf;
}

[data-theme="dark"] .pod-dropzone-meta {
    color: #91aacd;
}

[data-theme="dark"] .pod-choice {
    color: #d8e6fb;
}

[data-theme="dark"] .pod-saved-address {
    border-color: #35557e;
    background: #132946;
    color: #dce9ff;
}

[data-theme="dark"] .pod-address-editor {
    border-color: #35557e;
    background: #10243d;
}

[data-theme="dark"] .pod-address-option-card {
    border-color: #35557e;
    background: #132946;
    color: #dce9ff;
}

[data-theme="dark"] .pod-address-option input[type="radio"]:checked + .pod-address-option-card {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.22);
    background: #19365a;
}

[data-theme="dark"] .pod-payment-box {
    border-color: #35557e;
    background: #10243d;
}

[data-theme="dark"] .pod-payment-qr {
    border-color: #35557e;
    background: #0f1b31;
}

[data-theme="dark"] .pod-payment-state.is-ok {
    color: #86efac;
}

[data-theme="dark"] .pod-browse-btn {
    border-color: #3d608f;
    background: #173453;
    color: #9dc8ff;
}

[data-theme="dark"] .pod-browse-btn:hover {
    border-color: #5c83b8;
    background: #1d3f63;
}

[data-theme="dark"] .pod-upload-note {
    color: #a9bddb;
}

[data-theme="dark"] .pod-cost-live strong {
    color: #93c5fd;
}

.bg-preview-grid {
    display: grid;
    gap: 14px;
}

.bg-preview-card {
    padding: 12px;
}

.bg-preview-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.bg-preview-head h2 {
    margin: 0;
}

.bg-preview-stage {
    min-height: 280px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fbff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
}

[data-theme="dark"] .bg-preview-stage {
    background: #0f1a2e;
    border-color: #2a3b59;
}

.bg-preview-stage .post-thumb {
    margin: 0;
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border: 0;
    background: transparent;
}

.checkerboard {
    background-image:
        linear-gradient(45deg, #edf2fa 25%, transparent 25%),
        linear-gradient(-45deg, #edf2fa 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #edf2fa 75%),
        linear-gradient(-45deg, transparent 75%, #edf2fa 75%);
    background-size: 18px 18px;
    background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}

[data-theme="dark"] .checkerboard {
    background-image:
        linear-gradient(45deg, #1b2c45 25%, transparent 25%),
        linear-gradient(-45deg, #1b2c45 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #1b2c45 75%),
        linear-gradient(-45deg, transparent 75%, #1b2c45 75%);
}

.site-footer {
    margin-top: 36px;
    background: #0f172a;
    color: #d8deea;
    padding: 28px 0 16px;
}

[data-theme="dark"] .site-footer {
    background: #081120;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 18px;
}

.footer-grid > section {
    min-width: 0;
}

.site-footer h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 7px 0;
}

.footer-links a {
    color: #c8d2e5;
    text-decoration: none;
    display: inline-flex;
    padding: 2px 0;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    margin-top: 16px;
    padding-top: 12px;
    text-align: left;
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 860px) {
    .gov-topbar {
        display: none;
    }

    .gov-mainbar {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        min-height: 64px;
    }

    .gov-mainbar .header-actions {
        display: inline-flex;
        margin-left: auto;
    }

    .gov-mainbar .nav-search-desktop {
        display: none;
    }

    .desktop-main-actions {
        display: none;
    }

    .gov-navrow {
        border-top: 0;
        padding: 0;
        overflow: visible;
    }

    .gov-navrow .main-nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        width: min(280px, calc(100vw - 20px));
        margin-top: 0;
        z-index: 40;
    }

    .nav-wrap {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .header-actions {
        display: inline-flex;
        margin-left: auto;
    }

    .site-header {
        overflow: visible;
    }

    .nav-search-desktop {
        display: none;
    }

    .search-toggle-mobile {
        display: inline-flex;
    }

    .theme-toggle-mobile {
        display: inline-flex;
    }

    .gov-navrow .nav-auth-item {
        display: list-item;
    }

    .nav-tools {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .mobile-search-panel {
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.2s ease;
        border-top: 1px solid transparent;
    }

    .mobile-search-panel.open {
        max-height: 88px;
        border-top-color: var(--line);
    }

    .nav-search-mobile {
        width: 100%;
        padding: 10px 0;
    }

    .nav-search-mobile .nav-search-input {
        flex: 1;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        width: min(248px, calc(100vw - 20px));
        margin-top: 0;
        z-index: 40;
    }

    body.js-enabled .main-nav {
        display: block;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-6px);
        transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
    }

    body.js-enabled .main-nav.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        transition-delay: 0s;
    }

    body.js-enabled .main-nav .nav-list {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        width: 100%;
        margin: 0;
        padding: 8px;
        border-radius: 12px;
        border: 1px solid var(--line);
        background: var(--paper);
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
    }

    body.js-enabled .main-nav .nav-list a {
        width: 100%;
        justify-content: flex-start;
        min-height: 38px;
        padding: 9px 11px;
        border: 1px solid transparent;
        border-radius: 8px;
        background: transparent;
        color: var(--muted);
        font-size: 0.94rem;
        letter-spacing: 0;
        transition: color 0.14s ease, background-color 0.14s ease, border-color 0.14s ease;
    }

    [data-theme="dark"] body.js-enabled .main-nav .nav-list a {
        color: #d7e3f8;
        border-color: transparent;
    }

    body.js-enabled .main-nav .nav-list a:hover,
    body.js-enabled .main-nav .nav-list a.active {
        background: #f2f6ff;
        color: var(--primary);
        border-color: #dbe6fa;
    }

    body.js-enabled .main-nav .nav-list a.nav-dashboard-mobile {
        border: 1px solid #d6e2f7;
        background: #f0f5ff;
        color: #0b6ef6;
    }

    [data-theme="dark"] body.js-enabled .main-nav .nav-list {
        background: #101a2d;
        border-color: #2a3b59;
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
    }

    [data-theme="dark"] body.js-enabled .main-nav .nav-list a:hover,
    [data-theme="dark"] body.js-enabled .main-nav .nav-list a.active {
        background: #162742;
        border-color: #2a4468;
        color: #90bcff;
    }

    [data-theme="dark"] body.js-enabled .main-nav .nav-list a.nav-dashboard-mobile {
        background: #182c49;
        border-color: #2b4770;
        color: #93c5fd;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 35;
        display: flex;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0;
        padding: 4px 6px;
        border-top: 1px solid #d6e0ef;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        border-radius: 14px 14px 0 0;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 -8px 20px rgba(15, 23, 42, 0.12);
        backdrop-filter: blur(6px);
        padding-bottom: calc(4px + env(safe-area-inset-bottom));
    }

    [data-theme="dark"] .mobile-bottom-nav {
        background: rgba(16, 26, 45, 0.95);
        border-top-color: #2a3b59;
        box-shadow: 0 -10px 22px rgba(0, 0, 0, 0.4);
    }

    .mobile-bottom-nav a {
        min-height: 52px;
        flex: 1 1 20%;
        text-decoration: none;
        color: #5b6473;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        font-size: 0.7rem;
        font-weight: 800;
        border-radius: 12px;
        border: 1px solid transparent;
        transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    }

    [data-theme="dark"] .mobile-bottom-nav a {
        color: #b8c7de;
    }

    .mobile-bottom-nav .icon {
        width: 20px;
        height: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 0;
    }

    .mobile-bottom-nav .icon svg {
        width: 18px;
        height: 18px;
        display: block;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-bottom-nav .label {
        line-height: 1.1;
    }

    .mobile-bottom-nav a.active {
        color: #0b6ef6;
        background: #eff5ff;
        border-color: #d6e4ff;
    }

    [data-theme="dark"] .mobile-bottom-nav a.active {
        color: #89b8ff;
        background: #182c49;
        border-color: #2b4770;
    }

    .mobile-bottom-nav a:hover {
        background: #f4f8ff;
        border-color: #e1ebfb;
    }

    [data-theme="dark"] .mobile-bottom-nav a:hover {
        background: #15263f;
        border-color: #2b4467;
    }

    body {
        padding-bottom: 82px;
    }
}

.wp-admin-shell {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.wp-admin-sidebar {
    position: sticky;
    top: 86px;
    background: #1f2937;
    color: #e5e7eb;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid #334155;
}

.wp-admin-sidebar h2 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 1.1rem;
}

.wp-admin-sidebar .meta {
    color: #9ca3af;
}

.wp-admin-menu {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
}

.wp-admin-menu li {
    margin-bottom: 6px;
}

.wp-admin-menu a {
    display: block;
    text-decoration: none;
    color: #d1d5db;
    font-weight: 700;
    border-radius: 8px;
    padding: 10px 11px;
}

.wp-admin-menu a:hover {
    background: #111827;
    color: #fff;
}

.wp-admin-menu a.active {
    background: #0b6ef6;
    color: #fff;
}

.wp-admin-main {
    min-width: 0;
    display: grid;
    gap: 16px;
}

.wp-admin-topbar {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wp-admin-topbar h1 {
    font-size: 1.55rem;
    margin-bottom: 5px;
}

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

.wp-stat-card p {
    margin: 8px 0 0;
}

.wp-stat-card strong {
    font-size: 1.25rem;
}

.wp-widget-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.wp-activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wp-activity-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
}

.wp-activity-list li:last-child {
    border-bottom: 0;
}

.wp-activity-list a {
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.wp-activity-list a:hover {
    color: var(--primary);
}

.wp-role-pill {
    display: inline-flex;
    align-items: center;
    background: #eef2ff;
    color: #1e3a8a;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.wp-admin-table .actions {
    gap: 8px;
}

@media (min-width: 1400px) {
    .container {
        width: min(1220px, 90vw);
    }
}

@media (max-width: 860px) {
    .lead-post {
        grid-template-columns: 1fr;
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .footer-grid > section:first-child {
        grid-column: 1 / -1;
    }

    .stat-row {
        grid-template-columns: 1fr;
    }

    .wp-admin-shell {
        grid-template-columns: 1fr;
    }

    .wp-admin-sidebar {
        position: static;
    }

    .wp-widget-grid {
        grid-template-columns: 1fr;
    }

    .wp-stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bg-tool-layout {
        grid-template-columns: 1fr;
    }

    .pod-grid-2 {
        grid-template-columns: 1fr;
    }

    .pod-grid-3 {
        grid-template-columns: 1fr;
    }

    .pod-core-fields {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pod-hero-grid {
        grid-template-columns: 1fr;
    }

    .pod-layout {
        grid-template-columns: 1fr;
    }

    .pod-side-stack {
        position: static;
    }

    .pod-addon-grid {
        grid-template-columns: 1fr;
    }

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


    .bg-preview-stage {
        min-height: 220px;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 15px;
    }

    .nav-wrap {
        align-items: center;
        padding: 12px 0;
    }

    body:not(.js-enabled) .main-nav {
        display: flex;
    }

    body:not(.js-enabled) .nav-list {
        display: flex;
        flex-wrap: wrap;
    }

    body:not(.js-enabled) .nav-list a {
        margin-bottom: 8px;
    }

    body:not(.js-enabled) .main-nav {
        width: 100%;
        margin-top: 8px;
    }

    body:not(.js-enabled) .nav-list {
        width: 100%;
    }

    body:not(.js-enabled) .nav-list a {
        width: 100%;
        justify-content: flex-start;
    }

    .btn.btn-nav {
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding: 22px;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .btn {
        flex: 1 1 100%;
        text-align: center;
    }

    .actions .btn,
    .actions button.btn {
        flex: 1 1 100%;
        text-align: center;
    }

    .table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .wp-stat-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 170px);
        gap: 14px 44px;
        justify-content: center;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
        align-items: start;
        justify-items: start;
        position: relative;
        left: 10px;
    }

    .site-footer {
        margin-top: 24px;
        padding: 22px 0 10px;
    }

    .footer-grid > section:first-child {
        grid-column: auto;
    }

    .footer-grid > section {
        border: 0;
        border-bottom: 0;
        border-radius: 0;
        padding: 0;
        background: transparent;
        text-align: left;
        width: 170px;
    }

    .footer-grid > section:last-child {
        padding-bottom: 0;
    }

    .site-footer h3 {
        margin-bottom: 6px;
        font-size: 1.06rem;
    }

    .footer-links li {
        margin: 2px 0;
    }

    .footer-links a {
        width: auto;
        padding: 3px 0;
        font-size: 0.99rem;
        justify-content: flex-start;
    }

    .footer-bottom {
        margin-top: 12px;
        padding-top: 10px;
        text-align: center;
    }

    .footer-bottom small {
        display: block;
        line-height: 1.45;
    }

    .footer-grid > section:first-child .meta {
        margin: 0;
        font-size: 0.95rem;
        line-height: 1.45;
        max-width: 20ch;
    }

    .grid.posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .bg-tool-intro {
        padding: 18px;
    }

    .bg-preview-stage {
        min-height: 180px;
    }

    input[type="text"],
    input[type="email"],
    input[type="number"],
    input[type="password"],
    textarea {
        font-size: 16px;
    }

}

@media (max-width: 390px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 390px) {
    .grid.posts {
        grid-template-columns: 1fr;
    }

    .container {
        width: 94vw;
    }

    .brand {
        font-size: 1.1rem;
    }

    .card {
        padding: 13px;
    }
}
