/* =====================================================================================================
   Ink and Sun: the shell. A rail of apps down the left, the open app's menu beside it, a top bar with the
   finder, and the All apps screen. Colours come from theme.css tokens only.
   ===================================================================================================== */

:root { --rail-w: 68px; --side-w: 244px; }

/* ---- the frame: rail | side menu | (top bar over the page) */
#app-view { display: flex; flex-direction: row; min-height: 0; height: 100vh; overflow: hidden; background: var(--page); }
.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100vh; }
.main-col > .topbar { position: relative; top: auto; }

/* ---- the rail */
.rail { flex: 0 0 var(--rail-w); width: var(--rail-w); background: var(--rail-bg); color: var(--rail-fg); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 0; overflow-y: auto; overflow-x: hidden; z-index: 41; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-brand { flex: none; width: 40px; height: 40px; margin: 0 0 10px; padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; display: grid; place-items: center; }
.rail-brand .logo { width: 34px; height: 34px; }
.rail-brand:hover { background: var(--rail-hi); }
.rail-apps, .rail-foot { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; }
.rail-sp { flex: 1; min-height: 8px; }
.rail-foot { border-top: 1px solid var(--rail-hi); padding-top: 8px; margin-top: 4px; }
.rail-item { position: relative; width: 60px; min-height: 52px; padding: 4px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; border-radius: 10px; background: none; color: var(--rail-fg); font: inherit; font-size: 11px; font-weight: 500; cursor: pointer; }
.rail-item:hover { background: var(--rail-hi); color: var(--rail-on); }
.rail-item.on { background: var(--rail-hi); color: var(--rail-on); }
.rail-item.on::before { content: ""; position: absolute; left: -4px; top: 12px; bottom: 12px; width: 4px; border-radius: 0 3px 3px 0; background: var(--amber); }
.rail-item:focus-visible, .rail-brand:focus-visible { outline: 2px solid var(--rail-on); outline-offset: -2px; background: var(--rail-hi); }
.rail-ico { display: grid; place-items: center; }
.rail-ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rail-name { max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.15; }
.rail-dot { position: absolute; top: 3px; right: 8px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--amber); color: var(--on-amber); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ---- the open app's menu */
.side { flex: 0 0 var(--side-w); width: var(--side-w); background: var(--bg); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; z-index: 40; }
.side-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 16px 12px 8px 20px; min-height: var(--header); }
.side-head .crumb { min-width: 0; }
.side .app-title { padding: 0; font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.side .app-title:hover { color: var(--ink); }
.side-x { display: none; border: 0; background: none; color: var(--muted); cursor: pointer; padding: .35rem; border-radius: 8px; }
.side-x:hover { background: var(--fill); color: var(--ink); }
.side-x svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

.side .app-menus { display: block; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 4px 10px 20px; align-self: auto; gap: 0; }
.side .menu { display: block; position: relative; height: auto; flex: none; margin-top: 2px; }
.side .menu-btn { width: 100%; height: auto; min-height: 34px; padding: 6px 10px; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: .5rem; text-align: left; color: var(--muted); font-size: .8rem; font-weight: 650; white-space: normal; box-shadow: none; }
.side .menu-btn:hover { background: var(--fill); color: var(--ink); }
.side .menu.open > .menu-btn, .side .menu-btn.on { background: none; box-shadow: none; color: var(--ink); }
.side .menu > .menu-btn::after { content: ""; width: 7px; height: 7px; flex: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .12s ease; opacity: .7; }
.side .menu.open > .menu-btn::after { transform: rotate(45deg); }
.side .menu-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
/* a group that is only its one page (Dashboard) reads as a page, not a heading */
.side .app-menus > .menu-btn[data-page] { display: flex; justify-content: flex-start; margin-top: 2px; padding-left: 10px; color: var(--ink); font-size: .88rem; font-weight: 500; }
.side .app-menus > .menu-btn[data-page].on { background: var(--gold-soft); color: var(--gold-ink); font-weight: 650; }
.side .menu-list { display: none; position: static; min-width: 0; max-height: none; overflow: visible; background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0 0 4px; margin: 0; }
.side .menu.open > .menu-list { display: block; }
.side .menu-list button { display: flex; align-items: center; width: 100%; min-height: 34px; padding: 0 10px 0 18px; border-radius: 8px; font-size: .88rem; color: var(--ink); text-align: left; }
.side .menu-list .menu-h ~ button { padding-left: 18px; }
.side .menu-list button:hover { background: var(--fill); }
.side .menu-list button.on { background: var(--gold-soft); color: var(--gold-ink); font-weight: 650; }
.side .menu-h { padding: .6rem 10px .15rem 18px; font-size: .74rem; font-weight: 650; color: var(--muted); }

/* ---- the top bar over the page */
.topbar { padding: 0 .85rem 0 .6rem; gap: .5rem; }
.side-toggle { flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.side-toggle:hover { background: var(--fill); color: var(--ink); }
.side-toggle svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.top-find { flex: 1; min-width: 0; max-width: 520px; height: 36px; display: flex; align-items: center; gap: .6rem; padding: 0 .5rem 0 .75rem; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--page); color: var(--muted); font: inherit; font-size: .88rem; text-align: left; cursor: pointer; }
.top-find:hover { border-color: var(--muted); }
.top-find svg { width: 17px; height: 17px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.top-find span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-find kbd, .find kbd { flex: none; padding: .08rem .38rem; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--bg); color: var(--muted); font: inherit; font-size: .72rem; font-weight: 600; }

/* ---- the finder: one box for pages, records and actions */
.find-back { position: fixed; inset: 0; z-index: 900; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 1rem 1rem; background: color-mix(in srgb, var(--rail-bg) 62%, transparent); }
.find { width: min(720px, 100%); max-height: 78vh; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-dialog); overflow: hidden; }
.find-box { display: flex; align-items: center; gap: .85rem; padding: 0 1.4rem; min-height: 68px; border-bottom: 1px solid var(--line); color: var(--ink); }
.find-box svg { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.find-box input { flex: 1; min-width: 0; margin: 0; border: 0 !important; background: none !important; outline: none; box-shadow: none !important; padding: 0 !important; font-size: 1.3rem; color: var(--ink); }
.find-box input::placeholder { color: var(--muted); }
.find-tabs { display: flex; flex-wrap: wrap; gap: .5rem; padding: .85rem 1.1rem .35rem; }
.find-tab { min-height: 36px; padding: 0 1.1rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg); color: var(--ink); font: inherit; font-size: .95rem; cursor: pointer; }
.find-tab:hover { background: var(--fill); }
.find-tab.on { background: var(--navy); border-color: var(--navy); color: var(--icon-fg); font-weight: 600; }
.find-list { flex: 1; min-height: 8rem; overflow-y: auto; padding: .2rem .6rem .6rem; }
.find-head { margin: .75rem .8rem .3rem; font-size: .84rem; font-weight: 650; color: var(--muted); }
.find-row { width: 100%; display: flex; align-items: center; gap: .9rem; padding: .55rem .8rem; border: 0; border-radius: 12px; background: none; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.find-row.on { background: var(--select); }
.find-ico { flex: none; width: 42px; height: 42px; border-radius: 11px; background: var(--fill); display: grid; place-items: center; color: var(--ink); }
.find-row.on .find-ico { background: var(--bg); }
.find-ico svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.find-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.find-tx b { font-size: 1.02rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.find-tx small { color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.find-kind { flex: none; font-size: .9rem; color: var(--muted); }
.find-row .find-enter { display: none; }
.find-row.on .find-enter { display: inline-block; }
.find-none, .find-note-row { margin: 1.4rem 1rem; color: var(--muted); text-align: center; }
.find-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin: 0; padding: .8rem 1.3rem; border-top: 1px solid var(--line); background: var(--page); color: var(--muted); font-size: .9rem; }
.find-foot kbd { margin-right: .15rem; }
.find-foot .find-note { margin-left: auto; }
@media (max-width: 640px) { .find-back { padding-top: 4vh; } .find-box { min-height: 58px; padding: 0 1rem; } .find-box input { font-size: 1.1rem; } .find-foot span:not(.find-note) { display: none; } .find-foot .find-note { margin-left: 0; } }

/* ---- All apps */
body.is-launcher .rail, body.is-launcher .side, body.is-launcher .side-toggle, body.is-launcher .top-find { display: none; }
body.is-launcher .topbar { justify-content: flex-end; }
.desk.launch { max-width: 1240px; justify-content: flex-start; padding: 1.5rem 2rem 5.5rem; gap: 1.25rem; }
.launch-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px) minmax(0, 1fr); align-items: center; gap: .75rem; }
.launch-brand { grid-column: 1; display: flex; align-items: center; gap: .6rem; min-width: 0; font-weight: 700; font-size: 1.02rem; }
.launch-brand .logo { width: 34px; height: 34px; flex: none; }
.launch-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.launch-search { grid-column: 2; display: flex; align-items: center; gap: .65rem; min-height: 44px; padding: 0 .9rem; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-strong); color: var(--muted); }
.launch-search:focus-within { border-color: var(--focus); box-shadow: 0 0 0 2px color-mix(in srgb, var(--focus) 30%, transparent); }
.launch-search svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.launch-search input { flex: 1; min-width: 0; margin: 0; border: 0 !important; background: none !important; outline: none; box-shadow: none !important; padding: 0 !important; font-size: .98rem; color: var(--ink); }
#launch-back { grid-column: 3; justify-self: end; display: inline-flex; align-items: center; gap: .4rem; background: var(--bg); }
#launch-back svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile-grid { margin-block: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 12px; justify-content: stretch; }
.tile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tile:hover { border-color: var(--line-strong); }
.tile { cursor: pointer; }
.tile:has(.tile-open:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.tile-open:focus-visible { outline: 0; }
/* the whole card is the button: its link covers every blank corner, the count sits above it */
.tile-open::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.tile-count { pointer-events: none; z-index: 1; }
.tile[hidden] { display: none; }
.tile-open { flex: 1; display: flex; align-items: flex-start; gap: 14px; width: 100%; min-height: 52px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.tile-open:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 10px; }
.tile-ico { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--amber); color: var(--on-amber); display: grid; place-items: center; box-shadow: none; }
.tile-ico.muted { background: var(--page); color: var(--muted); }
.tile-ico svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile-tx { min-width: 0; padding-right: 30px; display: flex; flex-direction: column; gap: 2px; }
.tile-name { font-size: .95rem; font-weight: 650; }
.tile-line { color: var(--muted); font-size: .8rem; line-height: 1.3; }
.tile-count { position: absolute; top: 12px; right: 12px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--amber); color: var(--on-amber); font-size: .78rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.launch-none { margin: 2rem 0; text-align: center; color: var(--ink); }
.desk-stage.has-wall .launch-none { padding: .5rem 1rem; border-radius: 10px; background: var(--wall-label-bg); width: fit-content; margin-inline: auto; }

/* ---- the POS till takes the whole screen */
body.till-full .rail, body.till-full .side { display: none; }

/* ---- a narrower window: the side menu opens over the page */
@media (max-width: 1000px) {
  .side { position: fixed; left: var(--rail-w); top: 0; bottom: 0; transform: translateX(calc(-100% - var(--rail-w))); transition: transform .16s ease; box-shadow: var(--shadow-pop); z-index: 60; }
  body.side-open .side { transform: none; }
  body.side-open::after { content: ""; position: fixed; inset: 0; left: calc(var(--rail-w) + var(--side-w)); background: color-mix(in srgb, var(--ink) 35%, transparent); z-index: 55; }
  .side-x { display: inline-flex; }
}
@media (min-width: 1001px) {
  body.side-off .side { display: none; }
}

/* ---- a phone: the rail runs along the top */
@media (max-width: 640px) {
  :root { --rail-w: 0px; }
  #app-view { flex-direction: column; }
  .rail { flex: none; width: 100%; flex-direction: row; align-items: center; padding: 6px 8px; gap: 2px; overflow-x: auto; overflow-y: hidden; }
  .rail-brand { margin: 0 6px 0 0; width: 36px; height: 36px; }
  .rail-apps, .rail-foot { flex-direction: row; width: auto; }
  .rail-foot { border-top: 0; border-left: 1px solid var(--rail-hi); padding: 0 0 0 6px; margin: 0 0 0 4px; }
  .rail-sp { display: none; }
  .rail-item { flex: none; width: 58px; min-height: 48px; }
  .rail-item.on::before { left: 10px; right: 10px; top: auto; bottom: -5px; width: auto; height: 3px; border-radius: 2px; }
  .main-col { height: auto; flex: 1; min-height: 0; }
  .side { left: 0; top: 0; width: min(86vw, var(--side-w)); transform: translateX(-105%); }
  body.side-open::after { left: min(86vw, var(--side-w)); }
  .top-find kbd { display: none; }
  .desk.launch { padding: 1rem 1rem 5rem; }
  .launch-bar { grid-template-columns: minmax(0, 1fr) auto; }
  .launch-brand { grid-column: 1; }
  .launch-search { grid-column: 1 / -1; grid-row: 2; }
  #launch-back { grid-column: 2; grid-row: 1; }
}

/* =========================================================================================================
   The front door: sign in, create an account, reset a password, accept an invitation. One panel of ink with the
   logo's sun on the left, the form on the canvas on the right; on a phone the panel becomes a band across the top.
   ========================================================================================================= */
.login-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: minmax(100vh, auto); place-items: stretch; padding: 0; background: var(--page); }
.login-hero { grid-column: 1; grid-row: 1; position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 2.4rem 2.8rem 13rem; color: var(--rail-on); background: var(--wall-ink); overflow: hidden; }
.login-hero .logo { height: 36px; width: auto; align-self: flex-start; color: var(--rail-on); }
.login-hero-title { margin: 0; max-width: 15ch; font-size: clamp(1.9rem, 2.7vw, 2.8rem); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.login-hero-sub { margin: 1rem 0 0; max-width: 36ch; color: var(--rail-fg); font-size: 1rem; line-height: 1.5; }
.login-wrap > .login { grid-column: 2; grid-row: 1; align-self: center; justify-self: center; width: min(420px, calc(100% - 3rem)); margin: 2.5rem 0; }
.login-wrap > .login.wide { width: min(540px, calc(100% - 3rem)); }
.login-wrap .login { padding: 2.1rem 2rem 1.8rem; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-pop); }
.login-brand .brand-mark, .login-brand .logo-mark, .login-brand .logo-inline { display: none; }
.login-brand { margin-bottom: 1.3rem; }
.login-brand.is-stack .login-sub { margin: 0; color: var(--ink); font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.login-brand .login-title { font-size: 1.5rem; }
.login-brand:not(.is-stack) .login-sub { margin-top: .3rem; font-size: .92rem; }
.login-form .field, .login-wrap .field { color: var(--ink); font-size: .86rem; font-weight: 600; }
.login .login-form .field { margin-top: .85rem; }
.login-wrap .login input[type="text"], .login-wrap .login input[type="email"], .login-wrap .login input[type="password"], .login-wrap .login input[type="tel"], .login-wrap .login select { min-height: 46px; padding: .6rem .85rem; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--page); font-size: 1rem; }
.login-wrap .login input:focus, .login-wrap .login select:focus { outline: 0; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 28%, transparent); background: var(--bg); }
.login-wrap .login .pw-wrap input { padding-right: 4.2rem; }
.login-wrap .pw-toggle { right: .5rem; border-radius: 8px; padding: .3rem .6rem; font-weight: 600; }
.login-wrap .login-submit { min-height: 48px; margin-top: 1.3rem; border-radius: 12px; font-size: 1rem; }
.login-wrap .btn.primary.login-submit:hover { filter: none; }
.login-mode { padding: 4px; gap: 4px; border: 0; border-radius: 14px; background: var(--page); }
.login-mode button { min-height: 38px; border-radius: 10px; background: none; color: var(--muted); font-size: .9rem; }
.login-mode button + button { border-left: 0; }
.login-mode button.on { background: var(--bg); color: var(--ink); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.login-link { font-weight: 600; }
.login-alt { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); text-align: center; }
.login-wrap .theme-pop { top: 1.1rem; right: 1.3rem; }
.login-wrap .lang-select { height: 38px; padding: 0 .7rem; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); }
.login-wrap .theme-pop .icon-btn { border-radius: 10px; }
@media (max-width: 900px) {
  .login-wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .login-hero { grid-column: 1; grid-row: 1; min-height: 0; padding: 1.4rem 1.4rem 5.5rem; gap: 1rem; background: radial-gradient(70% 90% at 50% 135%, color-mix(in srgb, var(--amber) 60%, transparent) 0, transparent 70%), linear-gradient(170deg, var(--rail-hi), var(--rail-bg)); }
  .login-hero-title { max-width: 22ch; font-size: 1.45rem; }
  .login-hero-sub { display: none; }
  .login-wrap > .login { grid-column: 1; grid-row: 2; align-self: start; width: min(480px, calc(100% - 2rem)); margin: -3.6rem 0 2rem; }
  .login-wrap > .login.wide { width: min(560px, calc(100% - 2rem)); }
  .login-wrap .theme-pop { top: .8rem; right: .8rem; }
  .login-wrap .lang-select, .login-wrap .theme-pop .icon-btn { background: color-mix(in srgb, var(--rail-hi) 82%, transparent); border-color: var(--rail-hi); color: var(--rail-on); }
}
@media (max-width: 480px) { .login-wrap .login { padding: 1.6rem 1.25rem 1.4rem; border-radius: 18px; } .login-hero { padding-bottom: 5rem; } }

/* ---- Settings: document templates */
.tpl-dialog { display: grid; grid-template-columns: 210px minmax(0, 1fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.tpl-list { display: flex; flex-direction: column; gap: 2px; max-height: 66vh; overflow-y: auto; padding-right: .3rem; }
.tpl-group { margin: .8rem 0 .25rem; font-size: .76rem; font-weight: 700; color: var(--muted); }
.tpl-group:first-child { margin-top: 0; }
.tpl-doc { display: flex; flex-direction: column; gap: 1px; padding: .5rem .7rem; border: 0; border-radius: 10px; background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.tpl-doc:hover { background: var(--fill); }
.tpl-doc.on { background: var(--select); }
.tpl-doc b { font-size: .9rem; font-weight: 600; }
.tpl-doc small { color: var(--muted); font-size: .76rem; }
.tpl-form { max-height: 66vh; overflow-y: auto; padding: 0 .3rem; }
.tpl-form .field { margin-top: .7rem; }
.tpl-form select, .tpl-form input[type="text"], .tpl-form textarea { margin-bottom: 0; }
.tpl-title { margin: 0 0 .2rem; font-size: 1.05rem; }
.tpl-colour { margin-top: .7rem; display: flex; flex-direction: column; gap: .35rem; }
.tpl-colour input[type="color"] { width: 3.2rem; height: 2.2rem; padding: 2px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); cursor: pointer; }
.tpl-sub { margin-left: 1.6rem; }
@media (max-width: 1100px) { .tpl-dialog { grid-template-columns: 190px minmax(0, 1fr); } .tpl-dialog .lay-preview { grid-column: 1 / -1; } }
@media (max-width: 640px) { .tpl-dialog { grid-template-columns: minmax(0, 1fr); } .tpl-list { max-height: 12rem; } }
