/* =========================================================
   AhmedSoftware — light studio theme
   ========================================================= */

:root {
    --bg: #faf9f5;
    --surface: #ffffff;
    --surface-soft: #f3f1ea;
    --surface-warm: #f7f5ef;
    --ink: #14181b;
    --ink-soft: #2b3236;
    --muted: #5c666b;
    --muted-light: #667074;
    --line: #e6e4dc;
    --line-strong: #d7d3c7;
    --accent: #0b7a5c;
    --accent-dark: #075c45;
    --accent-soft: #dff5ec;
    --accent-bright: #0f9d76;
    --amber: #b7791f;
    --danger: #b42318;
    --danger-soft: #fdecea;
    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 26px;
    --radius-xl: 34px;
    --shadow-sm: 0 1px 2px rgba(20, 24, 27, 0.05);
    --shadow: 0 24px 60px -34px rgba(20, 24, 27, 0.28);
    --shadow-card: 0 18px 42px -30px rgba(20, 24, 27, 0.32);
    --max: 1120px;
    --max-wide: 1240px;
    --header-h: 76px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg {
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--accent-dark);
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
    margin: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.08;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.5rem, 5.4vw, 4.5rem);
    letter-spacing: -0.045em;
}

h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.65rem);
}

h3 {
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

p {
    text-wrap: pretty;
}

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

button {
    cursor: pointer;
}

::selection {
    background: var(--accent-soft);
    color: var(--ink);
}

:focus-visible {
    outline: 3px solid rgba(11, 122, 92, 0.42);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

.container.narrow {
    max-width: var(--max);
}

.container.narrow > * {
    max-width: 780px;
}

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

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    transform: translateY(-160%);
    transition: transform 0.18s ease;
}

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

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0.8rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 10px 24px -16px rgba(11, 122, 92, 0.9);
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

.btn-secondary {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.btn-secondary:hover {
    background: #2b3236;
    border-color: #2b3236;
    color: #fff;
}

.btn-ghost {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--ink);
}

.btn-ghost:hover {
    background: var(--surface);
    border-color: var(--ink);
    color: var(--ink);
}

.btn-block {
    width: 100%;
}

.btn-small {
    min-height: 38px;
    padding: 0.5rem 0.9rem;
    font-size: 0.84rem;
}

.btn-sub {
    margin-left: auto;
    padding-left: 12px;
    font-size: 0.76rem;
    font-weight: 600;
    opacity: 1;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

/* ---------- Shared type ---------- */

.eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 750;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.lead {
    max-width: 620px;
    color: var(--muted);
    font-size: clamp(1.02rem, 1.7vw, 1.16rem);
    line-height: 1.7;
}

.small-note {
    color: var(--muted);
    font-size: 0.88rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
}

.text-link span {
    transition: transform 0.18s ease;
}

.text-link:hover span {
    transform: translateX(3px);
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0.18rem 0.62rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.chip-category {
    border-color: transparent;
    background: var(--app-accent-soft, var(--accent-soft));
    color: var(--app-accent, var(--accent));
}

.chip-soft {
    background: var(--surface-soft);
    border-color: transparent;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid rgba(230, 228, 220, 0.8);
    background: rgba(250, 249, 245, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    text-decoration: none;
}

.brand:hover {
    color: var(--ink);
}

.brand-mark {
    flex: 0 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 18px -14px rgba(11, 122, 92, 0.9);
}

.brand-name {
    font-size: 1.08rem;
    font-weight: 750;
    letter-spacing: -0.035em;
    line-height: 1;
}

.brand-name span {
    color: var(--muted);
    font-weight: 450;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-nav a {
    position: relative;
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 550;
    text-decoration: none;
}

.site-nav a::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    content: "";
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0 96px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: 64px;
}

.hero h1 {
    max-width: 680px;
}

.hero .lead {
    margin-top: 24px;
}

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

.hero-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 30px;
    padding: 0;
    color: var(--muted);
    font-size: 0.82rem;
    list-style: none;
}

.hero-notes li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-notes li::before {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-bright);
    content: "";
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 540px;
}

.hero-orbit {
    position: absolute;
    border: 1px solid rgba(11, 122, 92, 0.13);
    border-radius: 50%;
}

.hero-orbit-one {
    width: 470px;
    height: 470px;
}

.hero-orbit-two {
    width: 560px;
    height: 560px;
    border-color: rgba(11, 122, 92, 0.07);
}

.phone-frame {
    position: relative;
    z-index: 1;
    overflow: hidden;
    width: 264px;
    padding: 10px;
    border: 1px solid #272b2e;
    border-radius: 40px;
    background: #171b1e;
    box-shadow: 0 44px 80px -38px rgba(20, 24, 27, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.phone-frame img {
    display: block;
    width: 100%;
    border-radius: 30px;
}

.phone-speaker {
    position: absolute;
    top: 15px;
    left: 50%;
    z-index: 2;
    width: 64px;
    height: 5px;
    border-radius: 999px;
    background: #2d3236;
    transform: translateX(-50%);
}

.floating-card {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 15px;
    border: 1px solid rgba(230, 228, 220, 0.9);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.floating-card strong,
.floating-card span {
    display: block;
    line-height: 1.3;
}

.floating-card strong {
    font-size: 0.8rem;
    letter-spacing: -0.01em;
}

.floating-card div span {
    color: var(--muted);
    font-size: 0.68rem;
}

.floating-card-top {
    top: 70px;
    left: 2px;
}

.floating-card-bottom {
    right: -4px;
    bottom: 74px;
}

.floating-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--accent-bright);
    box-shadow: 0 0 0 5px rgba(15, 157, 118, 0.13);
}

.floating-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-warm);
    color: var(--amber);
    font-size: 0.9rem;
}

/* ---------- Sections ---------- */

.section {
    padding: 84px 0;
}

.section-tight {
    padding: 58px 0;
}

.section-topless {
    padding-top: 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 34px;
}

.section-head h2 {
    margin-top: 2px;
}

.section-head-small {
    align-items: center;
    margin-bottom: 18px;
}

.section-head-small h2 {
    font-size: 1.4rem;
}

.page-hero {
    padding: 68px 0 42px;
}

.page-hero h1 {
    max-width: 900px;
}

.page-hero .lead {
    margin-top: 20px;
}

.page-hero .small-note {
    margin-top: 16px;
}

/* ---------- App cards ---------- */

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

.app-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 820px;
    margin-right: auto;
    margin-left: auto;
}

.app-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.app-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.app-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.app-card-link:hover {
    color: inherit;
}

.app-card-cover {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 252px;
    overflow: hidden;
    background: var(--app-accent-soft, var(--accent-soft));
}

.app-card-cover.is-screenshot::after {
    position: absolute;
    inset: auto 0 0;
    height: 50%;
    background: linear-gradient(180deg, transparent, rgba(20, 24, 27, 0.07));
    content: "";
    pointer-events: none;
}

.app-card-cover.is-screenshot img {
    position: relative;
    z-index: 1;
    width: 57%;
    height: 232px;
    border: 5px solid #1b1f22;
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    object-fit: cover;
    object-position: top;
    box-shadow: 0 22px 36px -24px rgba(20, 24, 27, 0.65);
    transform: translateY(6px);
}

.app-card-cover.is-icon img {
    width: 104px;
    height: 104px;
    border-radius: 26px;
    box-shadow: 0 22px 36px -24px rgba(20, 24, 27, 0.4);
    transform: translateY(-46px);
}

.app-icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(20, 24, 27, 0.08);
    border-radius: 50%;
    transform: translate(-50%, -66%);
}

.app-card-body {
    padding: 22px 22px 24px;
}

.app-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 13px;
}

.app-card h3 {
    margin-bottom: 7px;
    font-size: 1.32rem;
}

.app-card p {
    min-height: 3.2em;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.app-card .text-link {
    margin-top: 17px;
}

/* ---------- Feature strip ---------- */

.feature-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    padding-top: 38px;
    padding-bottom: 38px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.feature-item {
    display: flex;
    gap: 16px;
}

.feature-icon {
    display: grid;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-item h3 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.feature-item p {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

/* ---------- Split / principles ---------- */

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: center;
    gap: 64px;
}

.split-copy h2 {
    margin-bottom: 20px;
}

.split-copy p {
    max-width: 580px;
    margin-bottom: 16px;
    color: var(--muted);
}

.split-copy .btn {
    margin-top: 10px;
}

.principle-card {
    padding: 34px;
    border-radius: var(--radius-lg);
    background: var(--ink);
    color: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow);
}

.principle-label {
    margin-bottom: 18px;
    color: var(--accent-bright);
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.principle-list {
    padding: 0;
    list-style: none;
}

.principle-list li {
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
    line-height: 1.55;
}

.principle-list li:first-child {
    border-top: 0;
}

.principle-list strong {
    color: #fff;
    font-weight: 650;
}

/* ---------- CTA band ---------- */

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    padding: 46px 48px;
    border-radius: var(--radius-xl);
    background: var(--accent-soft);
}

.cta-band h2 {
    margin-bottom: 8px;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.cta-band p {
    max-width: 560px;
    color: var(--muted);
}

.cta-band .btn {
    flex: 0 0 auto;
}

/* ---------- Footer ---------- */

.site-footer {
    margin-top: 20px;
    border-top: 1px solid var(--line);
    background: var(--surface-warm);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.65fr) minmax(0, 1fr);
    gap: 56px;
}

.brand-footer {
    margin-bottom: 14px;
}

.footer-brand p {
    max-width: 340px;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-small {
    margin-top: 8px;
    color: var(--muted-light) !important;
    font-size: 0.8rem !important;
}

.footer-heading {
    margin-bottom: 14px;
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-nav,
.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.footer-nav a,
.footer-contact a {
    color: var(--muted);
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-nav a:hover,
.footer-contact a:hover {
    color: var(--ink);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--muted-light);
    font-size: 0.78rem;
}

/* ---------- Catalog ---------- */

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.search-field {
    position: relative;
    display: flex;
    align-items: center;
    width: min(320px, 100%);
    min-height: 48px;
    padding: 0 16px 0 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-field:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(11, 122, 92, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    color: var(--muted);
}

.search-icon svg {
    width: 18px;
    height: 18px;
}

.search-field input {
    width: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 0.9rem;
}

.search-field input::placeholder {
    color: var(--muted-light);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    min-height: 38px;
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.filter-chip:hover {
    border-color: var(--line-strong);
    color: var(--ink);
}

.filter-chip.is-active {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.result-count {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 0.82rem;
}

.empty-state {
    padding: 64px 24px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--surface);
    text-align: center;
}

.empty-state h2,
.empty-state h3 {
    margin-bottom: 8px;
}

.empty-state p {
    margin-bottom: 20px;
    color: var(--muted);
}

/* ---------- Detail page ---------- */

.detail-hero {
    padding: 28px 0 54px;
    background: linear-gradient(180deg, var(--app-accent-soft, var(--accent-soft)), rgba(250, 249, 245, 0) 82%);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.78rem;
}

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

.breadcrumb a:hover {
    color: var(--ink);
}

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

.detail-intro {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 30px;
}

.detail-icon {
    flex: 0 0 auto;
    width: 112px;
    height: 112px;
    border: 1px solid rgba(20, 24, 27, 0.08);
    border-radius: 28px;
    box-shadow: 0 26px 44px -30px rgba(20, 24, 27, 0.45);
}

.detail-intro-copy h1 {
    margin: 6px 0 10px;
    font-size: clamp(2.6rem, 5vw, 4.1rem);
}

.detail-intro-copy .lead {
    max-width: 720px;
}

.inline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 0;
    margin-top: 18px;
    padding: 0;
    color: var(--muted);
    font-size: 0.8rem;
    list-style: none;
}

.inline-meta li {
    display: flex;
    align-items: center;
}

.inline-meta li + li::before {
    width: 3px;
    height: 3px;
    margin: 0 12px;
    border-radius: 50%;
    background: var(--line-strong);
    content: "";
}

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

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

.detail-side {
    position: sticky;
    top: calc(var(--header-h) + 22px);
}

.gallery-section {
    margin-bottom: 42px;
}

.gallery-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 2px 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.gallery-thumb {
    flex: 0 0 auto;
    width: 176px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
    scroll-snap-align: start;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.gallery-thumb:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-card);
    transform: translateY(-3px);
}

.gallery-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 20;
    object-fit: cover;
    object-position: top;
}

.content-section {
    margin-bottom: 46px;
}

.content-section h2 {
    margin-bottom: 16px;
    font-size: clamp(1.45rem, 2.4vw, 1.8rem);
}

.content-section > p {
    margin-bottom: 14px;
    color: var(--muted);
}

.content-section > p:last-child {
    margin-bottom: 0;
}

.section-note {
    margin-top: 16px;
    padding: 14px 16px;
    border-left: 3px solid var(--app-accent, var(--accent));
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.6;
}

.clean-list {
    padding-left: 1.2rem;
    color: var(--muted);
}

.clean-list li {
    margin: 6px 0;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    padding: 0;
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.5;
}

.feature-check {
    display: grid;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    place-items: center;
    border-radius: 50%;
    background: var(--app-accent-soft, var(--accent-soft));
    color: var(--app-accent, var(--accent));
}

.feature-check svg {
    width: 13px;
    height: 13px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.data-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.data-table th,
.data-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.steps {
    margin: 0;
    padding: 0;
    counter-reset: step;
    list-style: none;
}

.steps li {
    position: relative;
    padding: 0 0 18px 48px;
    color: var(--muted);
    counter-increment: step;
}

.steps li::before {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    background: var(--app-accent-soft, var(--accent-soft));
    color: var(--app-accent, var(--accent));
    content: counter(step);
    font-size: 0.8rem;
    font-weight: 750;
}

.steps li:last-child {
    padding-bottom: 0;
}

.steps strong {
    color: var(--ink);
}

.changelog {
    border-left: 2px solid var(--line);
    padding-left: 24px;
}

.changelog-item + .changelog-item {
    margin-top: 24px;
}

.changelog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.changelog-meta strong {
    font-size: 0.92rem;
}

.changelog-meta time {
    color: var(--muted-light);
    font-size: 0.78rem;
}

.changelog .clean-list {
    font-size: 0.88rem;
}

.detail-poster {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 220px;
    margin-bottom: 42px;
    border: 1px solid rgba(20, 24, 27, 0.06);
    border-radius: var(--radius-lg);
    background: var(--app-accent-soft, var(--accent-soft));
    color: var(--app-accent, var(--accent));
    font-weight: 700;
}

.detail-poster img {
    width: 120px;
    height: 120px;
    border-radius: 30px;
    box-shadow: 0 24px 38px -28px rgba(20, 24, 27, 0.5);
}

.detail-poster span {
    font-size: 1.3rem;
    letter-spacing: -0.03em;
}

/* ---------- Download card ---------- */

.download-card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.download-kicker {
    margin-bottom: 4px;
    color: var(--app-accent, var(--accent));
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.download-card h2 {
    margin-bottom: 4px;
    font-size: 1.42rem;
}

.download-sub {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.82rem;
}

.download-card .btn-primary {
    background: var(--app-accent, var(--accent));
    border-color: var(--app-accent, var(--accent));
}

.download-card .btn-primary:hover {
    filter: brightness(0.9);
}

.download-card .btn + .btn {
    margin-top: 10px;
}

.download-fineprint {
    margin-top: 10px;
    color: var(--muted-light);
    font-size: 0.75rem;
    text-align: center;
}

.meta-list {
    margin-top: 22px;
    border-top: 1px solid var(--line);
}

.meta-list > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.8rem;
}

.meta-list dt {
    color: var(--muted);
}

.meta-list dd {
    margin: 0;
    color: var(--ink);
    font-weight: 550;
    text-align: right;
}

.meta-list code {
    font-size: 0.73rem;
}

.checksum-box {
    margin-top: 18px;
    padding: 12px 13px;
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.checksum-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.checksum-box code {
    display: block;
    overflow-wrap: anywhere;
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 0.66rem;
    line-height: 1.5;
}

.copy-button {
    padding: 3px 8px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
}

.copy-button:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.fineprint {
    margin-top: 16px;
    color: var(--muted-light);
    font-size: 0.72rem;
    line-height: 1.55;
}

.download-help {
    margin-top: 12px;
    font-size: 0.8rem;
}

/* ---------- Lightbox ---------- */

body.lightbox-open {
    overflow: hidden;
}

.lightbox {
    width: 100%;
    max-width: 100vw;
    height: 100%;
    max-height: 100vh;
    margin: 0;
    padding: 24px;
    border: 0;
    background: transparent;
}

.lightbox[open] {
    display: grid;
    place-items: center;
}

.lightbox::backdrop {
    background: rgba(10, 14, 16, 0.86);
    backdrop-filter: blur(8px);
}

.lightbox-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    max-width: 980px;
}

.lightbox img {
    max-height: 86vh;
    width: auto;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
    position: absolute;
    top: -42px;
    right: 0;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.76rem;
}

.lightbox-nav {
    display: grid;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1rem;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.18);
}

.lightbox-counter {
    position: absolute;
    bottom: -32px;
    left: 50%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.76rem;
    transform: translateX(-50%);
}

/* ---------- Contact ---------- */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
    gap: 48px;
}

.contact-main,
.contact-side {
    display: grid;
    gap: 22px;
}

.contact-card {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.contact-card-soft {
    background: var(--surface-warm);
}

.contact-card h2 {
    margin-bottom: 12px;
    font-size: 1.45rem;
}

.contact-card p {
    color: var(--muted);
}

.contact-button {
    margin-top: 22px;
    min-height: 58px;
    padding-right: 24px;
    padding-left: 24px;
}

.contact-button .btn-sub {
    margin-left: 10px;
}

.form-placeholder-note {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent-dark) !important;
    font-size: 0.8rem;
}

.contact-note {
    padding: 24px;
    border-top: 2px solid var(--ink);
    background: var(--surface);
}

.contact-note p {
    color: var(--muted);
    font-size: 0.88rem;
}

/* ---------- About ---------- */

.collection-notes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}

.collection-notes article {
    padding-top: 20px;
    border-top: 2px solid var(--ink);
}

.collection-notes h3 {
    margin-bottom: 8px;
}

.collection-notes p {
    color: var(--muted);
    font-size: 0.9rem;
}

/* ---------- Privacy / prose ---------- */

.prose {
    color: var(--muted);
}

.prose h2 {
    margin: 42px 0 14px;
    color: var(--ink);
    font-size: 1.4rem;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose p {
    margin-bottom: 14px;
}

.prose ul {
    margin: 0 0 18px;
    padding-left: 1.25rem;
}

.prose li {
    margin: 5px 0;
}

.prose code {
    padding: 1px 5px;
    border-radius: 5px;
    background: var(--surface-soft);
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 0.84em;
}

/* ---------- 404 ---------- */

.page-404 .page-hero {
    padding: 100px 0 120px;
}

.page-404 .page-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
}

/* =========================================================
   Admin
   ========================================================= */

.admin-body {
    background: #f5f3ee;
}

.admin-header {
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.admin-header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 70px;
    max-width: var(--max-wide);
}

.brand-admin .brand-mark {
    width: 32px;
    height: 32px;
}

.admin-tag {
    margin-left: 4px;
    padding: 2px 7px;
    border-radius: 5px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 0.58rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.admin-nav a {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
}

.admin-nav a:hover,
.admin-nav a[aria-current="page"] {
    color: var(--ink);
}

.admin-account {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 22px;
    border-left: 1px solid var(--line);
}

.admin-who {
    color: var(--muted);
    font-size: 0.78rem;
}

.inline-form {
    display: inline;
}

.admin-main {
    min-height: calc(100vh - 150px);
    padding: 38px 0 70px;
}

.admin-main > .container {
    max-width: var(--max-wide);
}

.admin-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
}

.admin-page-head h1 {
    font-size: 2.1rem;
}

.admin-page-head .eyebrow {
    margin-bottom: 8px;
}

.admin-muted {
    color: var(--muted);
    font-size: 0.86rem;
}

.admin-small {
    font-size: 0.76rem;
}

.admin-panel {
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.admin-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.admin-panel-head h2 {
    font-size: 1rem;
    letter-spacing: -0.015em;
}

.admin-panel-head > span {
    color: var(--muted-light);
    font-size: 0.68rem;
}

.admin-empty {
    padding: 20px 0;
    color: var(--muted-light);
    font-size: 0.82rem;
    text-align: center;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

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

.admin-grid-sidebar {
    grid-template-columns: minmax(0, 1fr) 330px;
}

.admin-grid > .admin-panel {
    margin-bottom: 0;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

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

.admin-table th {
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.admin-row-sub {
    display: block;
    margin-top: 2px;
    color: var(--muted-light);
    font-size: 0.7rem;
}

.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
}

.admin-details {
    position: relative;
}

.admin-details summary {
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    text-decoration: none;
}

.admin-details summary::-webkit-details-marker {
    display: none;
}

.admin-details summary:hover {
    text-decoration: underline;
}

.admin-details[open] {
    flex-basis: 100%;
}

.admin-details[open] summary {
    margin-bottom: 10px;
}

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

.admin-form label {
    display: grid;
    gap: 5px;
}

.admin-form label > span {
    color: var(--ink-soft);
    font-size: 0.76rem;
    font-weight: 600;
}

.admin-form label small {
    color: var(--muted-light);
    font-size: 0.68rem;
}

.admin-form input[type="text"],
.admin-form input[type="password"],
.admin-form input[type="email"] {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: var(--surface);
    font-size: 0.86rem;
}

.admin-form input:focus {
    border-color: var(--accent);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(11, 122, 92, 0.11);
}

.admin-form-compact {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
}

.status-pill.is-active {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.status-pill.is-disabled {
    background: var(--danger-soft);
    color: var(--danger);
}

.admin-flash {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
}

.admin-flash.is-ok {
    border: 1px solid #b7e4d3;
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.admin-flash.is-error {
    border: 1px solid #f3c0ba;
    background: var(--danger-soft);
    color: var(--danger);
}

.admin-flash code {
    font-family: var(--mono);
    font-size: 0.85em;
}

.admin-footer {
    padding: 20px 0 26px;
    border-top: 1px solid var(--line);
    color: var(--muted-light);
    font-size: 0.7rem;
}

/* Auth */

.admin-auth-body {
    background:
        radial-gradient(circle at 15% 20%, rgba(15, 157, 118, 0.11), transparent 42%),
        radial-gradient(circle at 85% 80%, rgba(183, 121, 31, 0.09), transparent 40%),
        #f5f3ee;
}

.admin-auth-main {
    display: grid;
    min-height: calc(100vh - 50px);
    padding: 44px 20px;
    place-items: center;
}

.admin-auth-shell {
    width: 100%;
    max-width: 430px;
}

.brand-auth {
    margin-bottom: 18px;
}

.admin-auth-card {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.admin-auth-card h1 {
    margin-bottom: 18px;
    font-size: 1.9rem;
}

.admin-auth-card .lead {
    font-size: 1rem;
}

.admin-auth-foot {
    margin-top: 18px;
    text-align: center;
}

.admin-auth-card .btn-block {
    margin-top: 4px;
}

.admin-footer-auth {
    border-top: 0;
    text-align: center;
}

/* =========================================================
   Responsive
   ========================================================= */

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

@media (max-width: 980px) {
    .hero {
        padding: 54px 0 76px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-visual {
        min-height: 480px;
    }

    .hero-orbit-one {
        width: 420px;
        height: 420px;
    }

    .hero-orbit-two {
        width: 500px;
        height: 500px;
    }

    .split {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .detail-layout {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 38px;
    }

    .detail-side {
        position: static;
        order: -1;
        width: 100%;
    }

    .download-card {
        max-width: 560px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .admin-header-inner {
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .admin-nav {
        order: 3;
        width: 100%;
        margin-left: 0;
        padding-top: 10px;
        border-top: 1px solid var(--line);
    }

    .admin-account {
        margin-left: auto;
    }

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

@media (max-width: 860px) {
    .feature-strip {
        grid-template-columns: 1fr;
        gap: 26px;
    }

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

    .admin-grid,
    .admin-grid-three {
        grid-template-columns: 1fr;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    :root {
        --header-h: 66px;
    }

    .container {
        padding: 0 18px;
    }

    .header-inner {
        min-height: var(--header-h);
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 18px 16px;
        border-bottom: 1px solid var(--line);
        background: var(--bg);
        box-shadow: 0 20px 30px -24px rgba(20, 24, 27, 0.35);
    }

    .site-header.is-nav-open .site-nav {
        display: flex;
    }

    .site-nav a {
        padding: 12px 4px;
        border-top: 1px solid var(--line);
    }

    .site-nav a:first-child {
        border-top: 0;
    }

    .site-nav a::after {
        display: none;
    }

    .site-header.is-nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .site-header.is-nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header.is-nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .hero h1 {
        font-size: clamp(2.55rem, 12vw, 3.8rem);
    }

    .hero-visual {
        min-height: 430px;
    }

    .phone-frame {
        width: 226px;
    }

    .floating-card {
        padding: 10px 12px;
    }

    .floating-card-top {
        top: 40px;
        left: 0;
    }

    .floating-card-bottom {
        right: 0;
        bottom: 42px;
    }

    .section {
        padding: 62px 0;
    }

    .section-tight {
        padding: 44px 0;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 24px;
    }

    .page-hero {
        padding: 48px 0 32px;
    }

    .catalog-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .search-field {
        width: 100%;
    }

    .detail-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .detail-icon {
        width: 88px;
        height: 88px;
        border-radius: 22px;
    }

    .detail-intro-copy h1 {
        font-size: clamp(2.5rem, 11vw, 3.4rem);
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .cta-band {
        align-items: flex-start;
        flex-direction: column;
        padding: 30px 24px;
    }

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

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .collection-notes {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-card {
        padding: 24px;
    }

    .contact-button {
        width: 100%;
    }

    .contact-button .btn-sub {
        display: none;
    }

    .lightbox {
        padding: 12px;
    }

    .lightbox-nav {
        position: absolute;
        bottom: -54px;
    }

    .lightbox-prev {
        left: 0;
    }

    .lightbox-next {
        right: 0;
    }

    .lightbox img {
        max-height: 74vh;
    }

    .admin-page-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .admin-account {
        border-left: 0;
    }

    .admin-who {
        display: none;
    }

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

    .admin-table thead {
        display: none;
    }

    .admin-table,
    .admin-table tbody,
    .admin-table tr,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table tr {
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
    }

    .admin-table tr:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .admin-table td {
        padding: 5px 0;
        border: 0;
    }

    .admin-table td[data-label]::before {
        display: block;
        margin-bottom: 2px;
        color: var(--muted-light);
        content: attr(data-label);
        font-size: 0.6rem;
        font-weight: 750;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .admin-table td:first-child {
        padding-top: 0;
    }

    .admin-table td:first-child::before {
        display: none;
    }

    .admin-table td:last-child {
        padding-top: 10px;
    }
}

@media (max-width: 600px) {
    .app-grid,
    .app-grid-two {
        grid-template-columns: 1fr;
    }

    .app-card p {
        min-height: 0;
    }

    .hero-notes {
        gap: 8px 16px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .floating-card {
        display: none;
    }

    .detail-poster {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }

    .detail-poster img {
        width: 96px;
        height: 96px;
    }

    .data-table {
        min-width: 500px;
    }

    .checksum-box code {
        font-size: 0.6rem;
    }

    .admin-header-inner {
        gap: 12px;
    }

    .brand-admin .admin-tag {
        display: none;
    }

    .admin-nav {
        gap: 16px;
        overflow-x: auto;
    }

    .admin-auth-card {
        padding: 24px;
    }
}

/* ---------- Admin telemetry ---------- */

.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.admin-kpi {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.admin-kpi-label {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-kpi-value {
    margin-top: 6px;
    color: var(--ink);
    font-size: 1.85rem;
    font-weight: 720;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.admin-kpi-value-small {
    font-size: 1.25rem;
}

.admin-kpi-note {
    margin-top: 6px;
    color: var(--muted-light);
    font-size: 0.72rem;
}

.admin-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.admin-filter-bar label {
    display: grid;
    gap: 4px;
}

.admin-filter-bar label > span {
    color: var(--ink-soft);
    font-size: 0.7rem;
    font-weight: 600;
}

.admin-filter-bar select,
.admin-filter-bar input {
    min-height: 38px;
    padding: 6px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 0.8rem;
}

.admin-filter-bar input[type="search"] {
    min-width: 210px;
}

.admin-filter-bar select:focus,
.admin-filter-bar input:focus,
.admin-form input[type="number"]:focus {
    border-color: var(--accent);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(11, 122, 92, 0.11);
}

.admin-form input[type="number"] {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: var(--surface);
    font-size: 0.86rem;
}

.admin-endpoint-list {
    display: grid;
    gap: 8px;
    margin: 14px 0;
    padding: 0;
    list-style: none;
}

.admin-endpoint-list li {
    color: var(--muted);
    font-size: 0.8rem;
}

.admin-endpoint-list code {
    color: var(--ink);
    font-size: 0.76rem;
    overflow-wrap: anywhere;
}

.admin-chart {
    display: flex;
    height: 150px;
    align-items: flex-end;
    gap: 2px;
    padding-top: 8px;
    border-bottom: 1px solid var(--line);
}

.admin-chart-bar {
    flex: 1 1 0;
    min-width: 2px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, var(--accent), #0b7a5c);
    opacity: 0.78;
}

.admin-chart-bar:hover {
    opacity: 1;
}

.admin-chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 7px;
    color: var(--muted-light);
    font-size: 0.68rem;
}

.admin-bar-row {
    display: grid;
    grid-template-columns: minmax(90px, 150px) minmax(0, 1fr) 52px;
    gap: 10px;
    align-items: center;
    margin-bottom: 9px;
}

.admin-bar-row:last-child {
    margin-bottom: 0;
}

.admin-bar-label {
    overflow: hidden;
    color: var(--ink-soft);
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-bar-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-soft);
}

.admin-bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
}

.admin-bar-count {
    color: var(--muted);
    font-size: 0.74rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.admin-props {
    display: grid;
    grid-template-columns: minmax(76px, 130px) minmax(0, 1fr);
    gap: 3px 10px;
    margin: 8px 0 0;
    font-size: 0.72rem;
}

.admin-props dt {
    color: var(--muted-light);
}

.admin-props dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.admin-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.admin-copy {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

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

@media (max-width: 760px) {
    .admin-kpi-grid {
        grid-template-columns: 1fr;
    }

    .admin-filter-bar {
        align-items: stretch;
    }

    .admin-filter-bar label,
    .admin-filter-bar input[type="search"] {
        width: 100%;
        min-width: 0;
    }

    .admin-bar-row {
        grid-template-columns: 1fr auto;
    }

    .admin-bar-label {
        grid-column: 1 / -1;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
