/* EMARK. Layout device: the three slanted bars of the logo mark, used as cut-vinyl edges. */
:root {
  --navy: #071824;
  --navy-2: #0f2b3e;
  --navy-3: #1a3d54;
  --cyan: #36b4c8;
  --cyan-deep: #0f6f81;
  --paper: #eff4f7;
  --white: #ffffff;
  --ink: #10242f;
  --mute: #4c6170;
  --line: #cfdbe2;
  --hi: #f5d90a;
  --danger: #a4262c;
  --ok: #17693f;
  --display: 'Sofia Sans Extra Condensed', 'Arial Narrow', sans-serif;
  --body: 'Sofia Sans', 'Segoe UI', Arial, sans-serif;
  --slant: 2.6vw;
  --gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1; margin: 0 0 0.5em; color: var(--navy); letter-spacing: 0.002em; }
h1 { font-size: clamp(2.9rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.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: absolute; left: 12px; top: -60px; z-index: 100; background: var(--hi); color: var(--navy); padding: 10px 16px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; }
.narrow { max-width: 760px; }
[hidden] { display: none !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 24px; border: 2px solid transparent; font: 700 1.05rem/1.1 var(--body); text-decoration: none; cursor: pointer; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); transition: background-color .15s ease, color .15s ease; }
.btn:focus-visible { clip-path: none; }
.btn-small { min-height: 40px; padding: 6px 18px; font-size: 0.98rem; }
.btn-cyan { background: var(--cyan); color: var(--navy); }
.btn-cyan:hover { background: var(--white); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--cyan-deep); color: var(--white); }
.btn-ghost { background: var(--paper); border-color: var(--paper); color: var(--navy); }
.btn-ghost:hover { background: var(--line); border-color: var(--line); color: var(--navy); }
.btn-ghost-light { background: rgba(255,255,255,.14); color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--navy); }
.btn-danger { background: var(--white); border-color: var(--danger); color: var(--danger); clip-path: none; }
.btn-danger:hover { background: var(--danger); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.text-link { font-weight: 700; color: var(--cyan-deep); }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--cyan); font-weight: 700; }
.back-link:hover { color: var(--white); }
.back-link-dark { color: var(--cyan-deep); }
.back-link-dark:hover { color: var(--navy); }

/* Header */
.site-header { background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; flex-wrap: wrap; }
.brand img { width: 150px; }
.nav-area { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 20px; }
.main-nav { display: flex; gap: clamp(14px, 2vw, 28px); }
.main-nav a { color: var(--white); text-decoration: none; font-weight: 600; padding: 22px 0 19px; border-bottom: 3px solid transparent; }
.main-nav a:hover { color: var(--cyan); }
.main-nav a.is-active { border-bottom-color: var(--cyan); }
.header-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lang-form { display: flex; gap: 2px; margin: 0; }
.lang-form button { background: none; border: 0; color: #b9cad5; font: 700 0.9rem var(--body); padding: 8px 6px; min-width: 32px; min-height: 36px; cursor: pointer; }
.lang-form button:hover { color: var(--white); }
.lang-form button[aria-pressed="true"] { color: var(--cyan); text-decoration: underline; text-underline-offset: .3em; }
.tool-link { background: none; border: 0; padding: 6px 2px; color: var(--white); font: 600 0.98rem var(--body); text-decoration: none; cursor: pointer; }
.tool-link:hover { color: var(--cyan); }
.inline-form { margin: 0; display: inline; }
.menu-button { display: none; margin-left: auto; align-items: center; gap: 10px; background: none; border: 0; color: var(--white); font: 700 1rem var(--body); min-height: 44px; cursor: pointer; }
.menu-bars { display: block; width: 26px; height: 16px; background: linear-gradient(var(--white) 0 3px, transparent 3px 6.5px, var(--cyan) 6.5px 9.5px, transparent 9.5px 13px, var(--white) 13px 16px); transform: skewY(-8deg); }
@media (max-width: 1080px) {
  .menu-button { display: inline-flex; }
  .nav-area { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding: 4px 0 18px; }
  .nav-area.is-open { display: flex; }
  .main-nav { flex-direction: column; gap: 0; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--navy-3); }
  .main-nav a.is-active { color: var(--cyan); border-bottom-color: var(--navy-3); }
}

/* Hero: the logo's three bars carry the headline */
.hero { position: relative; background: var(--navy); overflow: hidden; }
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 35%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(7,24,36,.9) 10%, rgba(7,24,36,.5) 38%, rgba(7,24,36,0) 56%); }
/* On phones the bars can't share space with the sign, so the photo sits below the copy. */
@media (max-width: 760px) {
  .hero { display: flex; flex-direction: column-reverse; }
  .hero-photo { position: relative; aspect-ratio: 16 / 10; }
  .hero-photo::after { display: none; }
  .hero-photo img { object-position: 80% 40%; }
  .hero .hero-grid { min-height: 0; padding-block: 28px 32px; }
}
.hero-grid { position: relative; display: grid; align-content: center; gap: 30px; min-height: min(84vh, 780px); padding-block: clamp(40px, 7vw, 80px); }
.hero-bars { display: grid; gap: 0.1em; margin: 0; font-size: clamp(3.4rem, 10.5vw, 8.6rem); line-height: 0.92; font-weight: 900; }
.bar { display: block; width: fit-content; padding: 0.06em 0.62em 0.1em 0.3em; clip-path: polygon(0 12%, 100% 0, calc(100% - 0.28em) 88%, 0 100%); }
.bar-one { background: var(--white); color: var(--navy); }
.bar-two { background: var(--cyan); color: var(--navy); margin-left: -0.05em; }
.bar-three { background: var(--white); color: var(--navy); margin-left: 0.5em; }
.hero-copy { max-width: 34rem; color: var(--white); font-size: 1.2rem; }
.hero-copy p { margin-bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  .bar { animation: cut-in .55s cubic-bezier(.2,.7,.2,1) both; }
  .bar-two { animation-delay: .1s; }
  .bar-three { animation-delay: .2s; }
  @keyframes cut-in { from { transform: translateX(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* Sections */
.section { padding-block: clamp(52px, 8vw, 104px); }
.section-paper { background: var(--paper); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.page-head { background: var(--navy); color: var(--white); padding-block: clamp(44px, 7vw, 84px) clamp(56px, 8vw, 96px); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%); }
.page-head h1 { color: var(--white); }
.lead { font-size: clamp(1.15rem, 2vw, 1.35rem); max-width: 42rem; margin-bottom: 0; }

/* Services */
.services-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); }
.services-intro { position: sticky; top: 96px; align-self: start; }
.service-rows li { border-top: 2px solid var(--navy); }
.service-rows li:last-child { border-bottom: 2px solid var(--navy); }
.service-rows a { display: grid; gap: 2px; padding: 16px 12px 16px 0; text-decoration: none; color: var(--navy); transition: padding .18s ease, background-color .18s ease; }
.service-rows a:hover { background: var(--cyan); padding-left: 16px; color: var(--navy); }
.service-name { font: 800 clamp(2rem, 4.4vw, 3.3rem)/1 var(--display); }
.service-apps { color: var(--mute); font-size: 1rem; }
.service-rows a:hover .service-apps { color: var(--navy); }
@media (max-width: 860px) {
  .services-layout { grid-template-columns: 1fr; }
  .services-intro { position: static; }
}

.service-list { display: grid; gap: clamp(44px, 6vw, 80px); }
.service-item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.service-item:nth-child(even) .service-photo { order: 2; }
.service-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%); }
.service-item h2 a { color: var(--navy); text-decoration: none; }
.service-item h2 a:hover { color: var(--cyan-deep); }
.tick-list { margin: 0 0 1em; display: grid; gap: 6px; }
.tick-list li { position: relative; padding-left: 26px; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 16px; height: 6px; background: var(--cyan); transform: skewY(-14deg); }
@media (max-width: 760px) {
  .service-item { grid-template-columns: 1fr; }
  .service-item:nth-child(even) .service-photo { order: 0; }
}

.service-hero { background: var(--navy); color: var(--white); padding-block: clamp(36px, 6vw, 72px); }
.service-hero h1 { color: var(--white); }
.service-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.service-hero-photo img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%); }
.service-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); }
@media (max-width: 860px) {
  .service-hero-grid, .service-body { grid-template-columns: 1fr; }
}

/* Portfolio */
.work-mosaic { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.work-mosaic figure { margin: 0; grid-column: span 6; }
.work-mosaic figure:nth-child(6n+1), .work-mosaic figure:nth-child(6n+4) { grid-column: span 7; }
.work-mosaic figure:nth-child(6n+2), .work-mosaic figure:nth-child(6n+3) { grid-column: span 5; }
.work-mosaic img { width: 100%; height: clamp(220px, 27vw, 400px); object-fit: cover; }
.work-mosaic figcaption { padding-top: 8px; font-weight: 600; }
.work-mosaic-small figure, .work-mosaic-small figure:nth-child(n) { grid-column: span 6; }
.work-mosaic-small img { height: clamp(200px, 22vw, 320px); }
@media (max-width: 760px) {
  .work-mosaic figure, .work-mosaic figure:nth-child(n), .work-mosaic-small figure:nth-child(n) { grid-column: 1 / -1; }
  .work-mosaic img { height: auto; aspect-ratio: 16 / 10; }
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { border: 2px solid var(--navy); background: var(--white); color: var(--navy); font: 700 1rem var(--body); padding: 8px 16px; min-height: 44px; cursor: pointer; }
.chip:hover { background: var(--paper); }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px 16px; }
.gallery-item { display: block; width: 100%; padding: 0; border: 0; background: var(--paper); cursor: zoom-in; overflow: hidden; }
.gallery-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .25s ease; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-caption { margin: 8px 0 0; display: grid; }
.gallery-caption span { color: var(--mute); font-size: .95rem; }
.lightbox { width: min(100vw, 1400px); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: auto; padding: 16px; border: 0; background: var(--navy); color: var(--white); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; }
.lightbox::backdrop { background: rgba(7,24,36,.92); }
.lightbox figure { margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; min-height: 0; }
.lightbox img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.lightbox-bar, .lightbox-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lightbox-bar p { margin: 0; }

/* Studio promotion */
.studio-band { background: var(--navy); color: var(--white); clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%); }
.studio-band h2 { color: var(--white); }
.studio-band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.studio-band-art img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%); }
.steps { counter-reset: step; display: grid; gap: 12px; margin: 0 0 24px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; align-items: baseline; }
.steps li::before { content: counter(step); font: 900 2rem/1 var(--display); color: var(--cyan); }
.form-aside .steps li::before { color: var(--cyan-deep); }
.fine-print { font-size: .94rem; margin: 18px 0 0; color: #b9cad5; }
@media (max-width: 860px) { .studio-band-grid { grid-template-columns: 1fr; } }

.contact-band { background: var(--cyan); color: var(--navy); padding-block: clamp(36px, 5vw, 60px); }
.contact-band-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.contact-band h2 { margin: 0; }
.contact-band-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 700; }
.contact-band a:not(.btn) { color: var(--navy); }
.contact-band .btn-cyan { background: var(--navy); color: var(--white); }
.contact-band .btn-cyan:hover { background: var(--white); color: var(--navy); }

/* Prose pages */
.prose { max-width: 42rem; }
.prose-wide { max-width: 50rem; }
.prose h2 { margin-top: 1.1em; font-size: clamp(1.8rem, 3vw, 2.3rem); }
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); }
.timeline ol { border-left: 4px solid var(--cyan); padding-left: 20px; display: grid; gap: 20px; }
.timeline time { display: block; font: 800 2rem/1.1 var(--display); color: var(--navy); }
.capability-list { columns: 2; column-gap: 40px; }
.capability-list li { break-inside: avoid; border-top: 1px solid var(--line); padding: 10px 0; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } .capability-list { columns: 1; } }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); }
.contact-list { margin: 0; }
.contact-list > div { display: grid; grid-template-columns: 8em 1fr; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.contact-list dt { color: var(--mute); }
.contact-list dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.map-box { background: var(--paper); padding: 28px; display: grid; gap: 14px; justify-items: start; align-content: center; min-height: 320px; }
.map-box p { margin: 0; }
.map-box.is-loaded { padding: 0; }
.map-box iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* Forms */
.form-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); }
.form { display: grid; gap: 18px; }
.form > .btn { justify-self: start; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.field { display: block; min-width: 0; }
.field label, fieldset legend { font-weight: 700; }
.optional { color: var(--mute); font-size: .92rem; }
.field input, .field select, .field textarea, .form > select, .form > textarea, .admin-card select, .admin-card textarea, .inline-rename input {
  display: block; width: 100%; margin-top: 4px; min-height: 46px; padding: 9px 12px; border: 2px solid #8fa3b0; border-radius: 0; background: var(--white); color: var(--ink); font: 400 1rem var(--body);
}
input:focus, select:focus, textarea:focus { border-color: var(--navy); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"], .input-validation-error { border-color: var(--danger) !important; }
.field-help { display: block; color: var(--mute); font-size: .94rem; margin-top: 4px; }
.field-error, .field-validation-error { display: block; color: var(--danger); font-weight: 600; font-size: .96rem; margin-top: 4px; }
.field-validation-valid { display: none; }
.check-field { display: flex; align-items: center; gap: 10px; }
.check-field input { width: 22px; height: 22px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 16px; border-left: 6px solid; margin: 0 0 16px; background: var(--paper); }
.alert-error { border-color: var(--danger); }
.alert-warn { border-color: var(--hi); background: #fffbdb; }
.alert-ok { border-color: var(--ok); }
.validation-summary ul { display: grid; gap: 4px; }
.validation-summary-valid { display: none; }
.attached-design { border: 2px solid var(--navy); padding: 14px 18px; margin: 0; }
.attached-previews { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 8px; }
.attached-previews img { width: 200px; height: auto; border: 1px solid var(--line); background: var(--paper); }
.form-aside { background: var(--paper); padding: 24px; align-self: start; }
.form-aside h2 { font-size: 2.1rem; }
@media (max-width: 860px) { .form-layout { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } .form-row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.reference-ticket { display: grid; gap: 4px; background: var(--navy); color: var(--white); padding: 20px 24px; margin-bottom: 28px; clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%); }
.reference-ticket strong { font: 900 clamp(2.4rem, 7vw, 4rem)/1 var(--display); color: var(--cyan); }
.status-list { display: grid; gap: 8px; margin-bottom: 18px; }
.status-list li { padding: 10px 14px; border-left: 6px solid var(--line); background: var(--paper); }
.status-list .ok { border-color: var(--ok); }
.status-list .warn { border-color: var(--hi); }

.section-auth { background: var(--paper); }
.auth-box { max-width: 480px; background: var(--white); padding: clamp(20px, 4vw, 36px); }
.auth-box h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); }
.auth-box > p { margin-top: 14px; margin-bottom: 0; }

/* Account */
.spaced { margin-top: 56px; }
.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.design-card { border: 1px solid var(--line); padding: 12px; display: grid; gap: 10px; align-content: start; }
.design-thumb { display: block; background: var(--paper); }
.design-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.design-meta h3 { margin: 0 0 4px; font-size: 1.5rem; }
.design-meta p { margin: 0; color: var(--mute); font-size: .96rem; }
.inline-rename { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.inline-rename input { margin: 0; min-height: 40px; }
.site-confirm { border: 3px solid var(--navy); padding: 24px; max-width: min(92vw, 440px); }
.site-confirm::backdrop { background: rgba(7,24,36,.6); }
.site-confirm form { margin: 0; display: flex; gap: 10px; justify-content: flex-end; }

/* Tables and details */
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.data-table th { text-align: left; font-size: .94rem; color: var(--mute); border-bottom: 2px solid var(--navy); padding: 8px 10px; white-space: nowrap; }
.data-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.row-actions { text-align: right; }
.row-actions form { margin: 0; }
.status { display: inline-block; padding: 2px 10px; font-weight: 700; font-size: .92rem; background: var(--paper); color: var(--navy); border-left: 5px solid var(--mute); white-space: nowrap; }
.status-new { border-color: var(--cyan); }
.status-reviewing { border-color: #6c5ce7; }
.status-quoted { border-color: #b7860b; }
.status-approved, .status-completed { border-color: var(--ok); }
.status-inproduction { border-color: var(--navy); }
.status-cancelled { border-color: var(--danger); }
.detail-list { margin: 0 0 24px; }
.detail-list > div { display: grid; grid-template-columns: minmax(8em, 1fr) 3fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.detail-list dt { color: var(--mute); }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
.file-list { display: grid; gap: 6px; margin-bottom: 16px; }

/* Admin */
.admin-nav { background: var(--paper); border-bottom: 2px solid var(--navy); }
.admin-nav .wrap { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.admin-nav a { color: var(--navy); font-weight: 700; text-decoration: none; padding: 12px 0; border-bottom: 3px solid transparent; }
.admin-nav a.is-active { border-bottom-color: var(--cyan-deep); }
.admin-body { padding-block: 32px 72px; }
.admin-body h1 { font-size: clamp(2.3rem, 5vw, 3.2rem); }
.admin-body h2 { font-size: 1.9rem; margin-top: 1em; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-head h1 { margin: 0; }
.admin-filter { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; margin-bottom: 16px; }
.admin-filter .field { flex: 1 1 200px; }
.admin-columns { display: grid; grid-template-columns: minmax(0, 8fr) minmax(280px, 4fr); gap: 36px; }
.admin-card { background: var(--paper); padding: 16px 18px; margin-bottom: 18px; }
.admin-card h2 { margin: 0 0 10px; font-size: 1.6rem; }
.admin-card .btn-ghost { background: var(--white); border-color: var(--navy); clip-path: none; margin-top: 12px; }
.history { display: grid; gap: 10px; margin-top: 12px; font-size: .97rem; }
.history small { color: var(--mute); }
.pager { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.admin-form { max-width: 1040px; }
.admin-thumb { width: 96px; height: 64px; object-fit: cover; }
.admin-preview { width: 320px; margin-bottom: 4px; }
.lang-fieldset, .view-editor { border: 1px solid var(--line); padding: 12px 16px 16px; margin: 0; display: grid; gap: 12px; }
.view-editor-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); gap: 20px; align-items: start; }
.view-editor-grid > div:first-child { display: grid; gap: 14px; }
.print-preview { position: relative; background: var(--paper); border: 1px solid var(--line); }
.print-preview img { width: 100%; height: 100%; object-fit: fill; }
.print-preview-area { position: absolute; border: 2px dashed var(--cyan-deep); background: rgba(54,180,200,.22); }
.print-preview-area.is-ellipse { border-radius: 50%; }
@media (max-width: 860px) { .admin-columns, .view-editor-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy); color: #d8e3ea; padding-block: 48px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand img { width: 190px; margin-bottom: 14px; }
.footer-brand p { max-width: 24rem; }
.site-footer h2 { color: var(--white); font: 700 1rem var(--body); margin-bottom: 10px; }
.site-footer a { display: block; color: #d8e3ea; padding: 3px 0; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--cyan); }
.site-footer address { font-style: normal; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
