/* ==========================================================================
   PrintHub site template – dark, Printables-inspired
   Colours are CSS variables: override them in media/templates/site/printhub/css/user.css
   ========================================================================== */

:root {
  --tpl-accent: #fa6831;
  --tpl-accent-hover: color-mix(in srgb, var(--tpl-accent) 85%, #fff);
  --tpl-header-h: 64px;
  --tpl-subnav-h: 0px;
  --tpl-wrap: 1440px;
  --tpl-radius: 12px;
  --tpl-font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

:root[data-bs-theme="dark"] {
  --tpl-bg: #141518;
  --tpl-header-bg: #0f1012;
  --tpl-surface: #1e1f23;
  --tpl-soft: #27282d;
  --tpl-border: #2e3036;
  --tpl-text: #ececee;
  --tpl-muted: #9b9da6;
  --tpl-media-bg: #e2e4e8; /* light studio background behind model images */
  --tpl-star-empty: #4a4c54;

  --bs-body-bg: var(--tpl-bg);
  --bs-body-color: var(--tpl-text);
  --bs-secondary-color: var(--tpl-muted);
  --bs-tertiary-bg: var(--tpl-surface);
  --bs-secondary-bg: var(--tpl-soft);
  --bs-border-color: var(--tpl-border);
  --bs-heading-color: #fff;
  --bs-emphasis-color: #fff;
}

:root[data-bs-theme="light"] {
  --tpl-bg: #f4f4f6;
  --tpl-header-bg: #ffffff;
  --tpl-surface: #ffffff;
  --tpl-soft: #eeeef1;
  --tpl-border: #dedfe4;
  --tpl-text: #1d1e22;
  --tpl-muted: #62646d;
  --tpl-media-bg: #e2e4e8;
  --tpl-star-empty: #c8c9ce;

  --bs-body-bg: var(--tpl-bg);
  --bs-body-color: var(--tpl-text);
  --bs-border-color: var(--tpl-border);
}

:root {
  --bs-primary: var(--tpl-accent);
  --bs-link-color: var(--tpl-accent);
  --bs-link-hover-color: var(--tpl-accent-hover);
  --bs-link-color-rgb: 250, 104, 49;
  --bs-link-hover-color-rgb: 251, 135, 90;
  --bs-body-font-family: var(--tpl-font);
  --bs-border-radius: 8px;
}

body.tpl-printhub {
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--tpl-font);
  background: var(--tpl-bg);
  color: var(--tpl-text);
  -webkit-font-smoothing: antialiased;
}

.tpl-printhub a { text-decoration: none; }
.tpl-printhub a:hover { text-decoration: underline; }
.tpl-printhub h1, .tpl-printhub h2, .tpl-printhub h3 { font-weight: 700; letter-spacing: -.01em; }

.tpl-wrap {
  width: 100%;
  max-width: var(--tpl-wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.is-fluid { --tpl-wrap: none; }

.tpl-skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: .5rem 1rem;
  color: #fff;
  background: var(--tpl-accent);
  border-radius: 8px;
}

.tpl-skip:focus { top: 8px; }

.tpl-ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: currentColor;
}

/* ---------- Buttons ---------- */
.tpl-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  height: 38px;
  padding: 0 16px;
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--tpl-text);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background .15s, border-color .15s, color .15s;
}

.tpl-printhub .tpl-btn:hover { text-decoration: none; }
.tpl-btn--accent { color: #fff; background: var(--tpl-accent); }
.tpl-btn--accent:hover { color: #fff; background: var(--tpl-accent-hover); }
.tpl-btn--ghost { border-color: var(--tpl-border); }
.tpl-btn--ghost:hover { color: var(--tpl-text); background: var(--tpl-soft); }

.tpl-iconbtn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--tpl-text);
  background: none;
  border: 0;
  border-radius: 10px;
}

.tpl-iconbtn:hover { background: var(--tpl-soft); }

/* Bootstrap buttons in core views follow the accent */
.tpl-printhub .btn-primary {
  --bs-btn-bg: var(--tpl-accent);
  --bs-btn-border-color: var(--tpl-accent);
  --bs-btn-hover-bg: var(--tpl-accent-hover);
  --bs-btn-hover-border-color: var(--tpl-accent-hover);
  --bs-btn-active-bg: var(--tpl-accent);
  --bs-btn-active-border-color: var(--tpl-accent);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  border-radius: 999px;
  font-weight: 600;
}

/* ---------- Header ---------- */
.tpl-header {
  z-index: 1030;
  background: var(--tpl-header-bg);
  border-bottom: 1px solid var(--tpl-border);
  transition: box-shadow .2s;
}

.has-sticky-header .tpl-header {
  position: sticky;
  top: 0;
}

.tpl-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }

.tpl-header__bar {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--tpl-header-h);
}

.tpl-burger,
.tpl-searchbtn { display: none; }

.tpl-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--tpl-text);
  letter-spacing: -.02em;
}

.tpl-printhub .tpl-brand:hover { color: var(--tpl-text); text-decoration: none; }
.tpl-brand__icon { width: 32px; height: 32px; }
.tpl-brand__img { max-height: 40px; width: auto; }

/* Main navigation */
.tpl-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tpl-menu,
.tpl-submenu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tpl-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

.tpl-menu__item {
  position: relative;
  display: flex;
  align-items: center;
}

.tpl-menu__link {
  display: block;
  padding: 8px 12px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--tpl-muted);
  border-radius: 8px;
}

.tpl-printhub .tpl-menu__link:hover,
.tpl-menu__item.is-active > .tpl-menu__link {
  color: var(--tpl-text);
  text-decoration: none;
  background: var(--tpl-soft);
}

.tpl-menu__item.is-active > .tpl-menu__link { box-shadow: inset 0 -2px 0 var(--tpl-accent); }

.tpl-menu__toggle {
  display: grid;
  place-items: center;
  width: 24px;
  height: 32px;
  margin-left: -8px;
  padding: 0;
  color: var(--tpl-muted);
  background: none;
  border: 0;
}

.tpl-menu__toggle .tpl-ico { width: 18px; height: 18px; }

.tpl-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  min-width: 220px;
  padding: 6px;
  visibility: hidden;
  background: var(--tpl-surface);
  border: 1px solid var(--tpl-border);
  border-radius: var(--tpl-radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .4);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}

.tpl-menu__item.has-children:hover > .tpl-submenu,
.tpl-menu__item.has-children:focus-within > .tpl-submenu,
.tpl-menu__item.is-open > .tpl-submenu {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.tpl-submenu a,
.tpl-submenu span {
  display: block;
  padding: 8px 12px;
  color: var(--tpl-text);
  border-radius: 8px;
}

.tpl-printhub .tpl-submenu a:hover { text-decoration: none; background: var(--tpl-soft); }
.tpl-submenu .is-active > a { color: var(--tpl-accent); }

/* Search */
.tpl-search {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 560px;
  margin-inline: auto;
}

.tpl-search .tpl-ico {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--tpl-muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.tpl-search input {
  width: 100%;
  height: 40px;
  padding: 0 16px 0 42px;
  font-size: .95rem;
  color: var(--tpl-text);
  background: var(--tpl-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  outline: none;
  transition: border-color .15s, background .15s;
}

.tpl-search input::placeholder { color: var(--tpl-muted); }
.tpl-search input:focus { background: var(--tpl-surface); border-color: var(--tpl-accent); }

/* Header actions */
.tpl-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.tpl-search + .tpl-actions { margin-left: 0; }

.tpl-user { position: relative; }

.tpl-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  font-weight: 700;
  color: #fff;
  background: var(--tpl-accent);
  border: 2px solid transparent;
  border-radius: 50%;
}

.tpl-avatar[aria-expanded="true"] { border-color: var(--tpl-text); }

.tpl-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  display: none;
  min-width: 230px;
  padding: 6px;
  background: var(--tpl-surface);
  border: 1px solid var(--tpl-border);
  border-radius: var(--tpl-radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .4);
}

.tpl-dropdown.is-open { display: block; }

.tpl-dropdown__head {
  display: flex;
  flex-direction: column;
  padding: 8px 12px 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--tpl-border);
}

.tpl-dropdown__head span { font-size: .85rem; color: var(--tpl-muted); }

.tpl-dropdown a,
.tpl-dropdown button {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font: inherit;
  color: var(--tpl-text);
  text-align: left;
  background: none;
  border: 0;
  border-radius: 8px;
}

.tpl-printhub .tpl-dropdown a:hover,
.tpl-dropdown button:hover { text-decoration: none; background: var(--tpl-soft); }

/* Category bar */
.tpl-subnav {
  border-top: 1px solid var(--tpl-border);
}

.tpl-subnav__inner {
  display: flex;
  gap: 8px;
  padding-block: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tpl-subnav__inner::-webkit-scrollbar { display: none; }

.tpl-chip {
  flex: none;
  padding: 6px 14px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--tpl-muted);
  background: var(--tpl-soft);
  border-radius: 999px;
}

.tpl-printhub .tpl-chip:hover { color: var(--tpl-text); text-decoration: none; }
.tpl-chip.is-active { color: #fff; background: var(--tpl-accent); }
.tpl-printhub .tpl-chip.is-active:hover { color: #fff; }

/* ---------- Page layout ---------- */
.tpl-banner { margin-bottom: 24px; }

.tpl-page {
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "top" "content" "bottom";
  gap: 24px;
  padding-block: 28px 56px;
}

.tpl-page.has-left { grid-template-columns: 260px minmax(0, 1fr); grid-template-areas: "top top" "left content" "bottom bottom"; }
.tpl-page.has-right { grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "top top" "content right" "bottom bottom"; }
.tpl-page.has-left.has-right { grid-template-columns: 240px minmax(0, 1fr) 280px; grid-template-areas: "top top top" "left content right" "bottom bottom bottom"; }

.tpl-top-a { grid-area: top; }
.tpl-content { grid-area: content; min-width: 0; }
.tpl-sidebar--left { grid-area: left; }
.tpl-sidebar--right { grid-area: right; }
.tpl-bottom-a { grid-area: bottom; }

.tpl-top-a:empty, .tpl-bottom-a:empty { display: none; }
main:focus { outline: none; }

/* Module cards (style="card") */
.tpl-printhub .card {
  --bs-card-bg: var(--tpl-surface);
  --bs-card-border-color: var(--tpl-border);
  --bs-card-cap-bg: transparent;
  margin-bottom: 20px;
  border-radius: var(--tpl-radius);
}

/* Core content elements in the dark theme */
.tpl-printhub .breadcrumb { --bs-breadcrumb-divider-color: var(--tpl-muted); margin-bottom: 16px; font-size: .9rem; }
.tpl-printhub .pagination { --bs-pagination-bg: var(--tpl-surface); --bs-pagination-border-color: var(--tpl-border); --bs-pagination-color: var(--tpl-text); --bs-pagination-hover-bg: var(--tpl-soft); --bs-pagination-active-bg: var(--tpl-accent); --bs-pagination-active-border-color: var(--tpl-accent); --bs-pagination-disabled-bg: var(--tpl-bg); --bs-pagination-disabled-border-color: var(--tpl-border); }
.tpl-printhub .form-control,
.tpl-printhub .form-select { background-color: var(--tpl-soft); border-color: var(--tpl-border); }
.tpl-printhub .form-control:focus,
.tpl-printhub .form-select:focus { border-color: var(--tpl-accent); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--tpl-accent) 25%, transparent); }
.tpl-printhub fieldset { margin-bottom: 1rem; }
.tpl-printhub .com-users-login,
.tpl-printhub .com-users-registration,
.tpl-printhub .com-users-profile,
.tpl-printhub .com-users-remind,
.tpl-printhub .com-users-reset {
  max-width: 520px;
  margin-inline: auto;
  padding: 28px;
  background: var(--tpl-surface);
  border: 1px solid var(--tpl-border);
  border-radius: var(--tpl-radius);
}

/* PrintHub component: follow the template colours and sticky header */
body.tpl-printhub .printhub {
  --ph-surface: var(--tpl-surface);
  --ph-bg-soft: var(--tpl-soft);
  --ph-border: var(--tpl-border);
  --ph-muted: var(--tpl-muted);
  --ph-text: var(--tpl-text);
  --ph-page-bg: var(--tpl-bg);
  --ph-media-bg: var(--tpl-media-bg);
  --ph-media-text: #8b8f98;
  --ph-border-strong: var(--tpl-star-empty);
}

/* The header already has the model search – hide the duplicate in the component toolbar */
body.has-header-search .printhub .ph-search { display: none; }
body.has-header-search .printhub .ph-toolbar { justify-content: flex-end; }

/* The category bar replaces the component's category sidebar */
body.has-category-bar .printhub .ph-sidebar { display: none; }
body.has-category-bar .printhub .ph-layout.has-sidebar { grid-template-columns: minmax(0, 1fr); }

/* Headings/titles inside the component use the strong text colour */
body.tpl-printhub .printhub h1,
body.tpl-printhub .printhub h2 { color: var(--bs-heading-color, inherit); }

body.has-sticky-header .printhub { --ph-sticky-offset: var(--tpl-sticky-offset, var(--tpl-header-h)); }

/* ---------- Footer ---------- */
.tpl-footer {
  margin-top: auto;
  color: var(--tpl-muted);
  background: var(--tpl-header-bg);
  border-top: 1px solid var(--tpl-border);
}

.tpl-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  padding-block: 36px 20px;
}

.tpl-footer__brand { max-width: 380px; }
.tpl-footer__text { margin-top: 10px; font-size: .9rem; }

.tpl-footer__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tpl-footer__menu a { color: var(--tpl-muted); }
.tpl-printhub .tpl-footer__menu a:hover { color: var(--tpl-text); }

.tpl-footer__copy {
  padding-block: 16px 24px;
  font-size: .85rem;
  border-top: 1px solid var(--tpl-border);
}

/* ---------- Back to top ---------- */
.tpl-backtop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1020;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: var(--tpl-accent);
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s, transform .2s;
}

.tpl-backtop.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.tpl-printhub .tpl-backtop:hover { color: #fff; text-decoration: none; }

/* ---------- Error / offline pages ---------- */
.tpl-center {
  flex: 1 0 auto;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  text-align: center;
}

.tpl-center__box {
  max-width: 520px;
  padding: 36px;
  background: var(--tpl-surface);
  border: 1px solid var(--tpl-border);
  border-radius: var(--tpl-radius);
}

.tpl-center__code { font-size: 4rem; font-weight: 800; line-height: 1; color: var(--tpl-accent); }

/* ---------- Offcanvas menu (mobile) ---------- */
.tpl-oc,
.tpl-oc-backdrop { display: none; }

@media (max-width: 900px) {
  .tpl-oc-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: block;
    background: rgba(0, 0, 0, .6);
    opacity: 0;
    transition: opacity .25s;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  .tpl-oc-backdrop[hidden] { display: none; }
  .tpl-oc-backdrop.is-visible { opacity: 1; }

  .tpl-oc {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    width: min(360px, 88vw);
    color: var(--tpl-text);
    background: var(--tpl-header-bg);
    visibility: hidden;
    outline: none;
    overscroll-behavior: contain;
    transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .28s;
  }

  .tpl-oc--left { left: 0; border-right: 1px solid var(--tpl-border); transform: translateX(-100%); }
  .tpl-oc--right { right: 0; border-left: 1px solid var(--tpl-border); transform: translateX(100%); }

  .tpl-oc.is-open {
    visibility: visible;
    transform: none;
    box-shadow: 0 0 48px rgba(0, 0, 0, .55);
    transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s;
  }

  .tpl-oc.is-dragging { transition: none; }

  .tpl-oc__head {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: var(--tpl-header-h);
    padding: 0 12px 0 16px;
    border-bottom: 1px solid var(--tpl-border);
  }

  .tpl-oc__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 16px;
    overflow-y: auto;
  }

  .tpl-oc__body > * { flex: none; }
  .tpl-oc .tpl-search { max-width: none; margin: 0; }
  .tpl-oc .tpl-search input { height: 44px; font-size: 1rem; }
  .tpl-oc__cta, .tpl-oc__auth { display: flex; flex-direction: column; gap: 8px; }
  .tpl-oc__cta .tpl-btn, .tpl-oc__auth .tpl-btn { justify-content: center; height: 44px; }

  .tpl-oc__heading {
    margin: 0 0 6px;
    padding-inline: 12px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--tpl-muted);
  }

  .tpl-oc-list,
  .tpl-oc-sub,
  .tpl-oc__footlinks { margin: 0; padding: 0; list-style: none; }

  .tpl-oc-row { display: flex; align-items: stretch; }

  .tpl-oc-link {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--tpl-text);
    text-align: left;
    background: none;
    border: 0;
    border-radius: 10px;
  }

  .tpl-oc-link--btn { justify-content: space-between; width: 100%; }
  .tpl-oc-link--label { color: var(--tpl-muted); }
  .tpl-oc-link .tpl-ico { color: var(--tpl-muted); }
  .tpl-printhub .tpl-oc-link:hover,
  .tpl-oc-link:focus-visible { text-decoration: none; background: var(--tpl-soft); }

  .tpl-oc-item.is-active > .tpl-oc-row > .tpl-oc-link,
  .tpl-oc-sub .is-active > .tpl-oc-link {
    color: var(--tpl-accent);
    background: color-mix(in srgb, var(--tpl-accent) 12%, transparent);
  }

  .tpl-oc-toggle {
    display: grid;
    flex: none;
    place-items: center;
    width: 44px;
    color: var(--tpl-muted);
    background: none;
    border: 0;
    border-radius: 10px;
  }

  .tpl-oc-toggle:hover { background: var(--tpl-soft); }
  .tpl-oc-toggle .tpl-ico,
  .tpl-oc-link--btn .tpl-ico { transition: transform .2s; }
  .tpl-oc-toggle[aria-expanded="true"] .tpl-ico,
  .tpl-oc-link--btn[aria-expanded="true"] .tpl-ico { transform: rotate(180deg); }

  .tpl-oc-sub {
    display: none;
    margin: 2px 0 6px 18px;
    padding-left: 8px;
    border-left: 2px solid var(--tpl-border);
  }

  .tpl-oc-item.is-open > .tpl-oc-sub { display: block; }
  .tpl-oc-sub .tpl-oc-link { font-size: .95rem; font-weight: 500; }

  .tpl-oc__user { display: flex; align-items: center; gap: 12px; padding: 4px 12px 10px; }
  .tpl-oc__user-name { display: flex; flex-direction: column; min-width: 0; }
  .tpl-oc__user-name strong, .tpl-oc__user-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tpl-oc__user-name small { color: var(--tpl-muted); }

  .tpl-oc__foot {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--tpl-border);
  }

  .tpl-oc__footlinks { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .85rem; }
  .tpl-oc__footlinks a { color: var(--tpl-muted); }
  .tpl-oc__logout { justify-content: center; width: 100%; height: 44px; cursor: pointer; background: none; }

  body.tpl-oc-lock { overflow: hidden; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tpl-cta span, .tpl-signup { display: none; }
  .tpl-page.has-left.has-right { grid-template-columns: minmax(0, 1fr) 260px; grid-template-areas: "top top" "content right" "left left" "bottom bottom"; }
}

@media (max-width: 900px) {
  .tpl-wrap { padding-inline: 16px; }
  .tpl-header__bar { gap: 10px; }
  .tpl-burger { display: inline-grid; }

  /* Desktop menu and header search move into the offcanvas panel */
  .tpl-header .tpl-nav,
  .tpl-header .tpl-search { display: none; }
  .tpl-searchbtn { display: inline-grid; }
  .tpl-actions { margin-left: auto; }

  .tpl-page,
  .tpl-page.has-left,
  .tpl-page.has-right,
  .tpl-page.has-left.has-right {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "top" "content" "left" "right" "bottom";
  }
}

@media (max-width: 600px) {
  .tpl-brand__text { display: none; }
  .tpl-header__bar { gap: 8px; }
  .tpl-actions { gap: 6px; }
  .tpl-actions .tpl-btn { height: 36px; padding: 0 12px; font-size: .85rem; }
  .tpl-search input { padding-right: 10px; font-size: .9rem; }
}

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