/* 贾维斯风格 · 原生网页样式包
 * 给不用 React 的页面（单文件页面、LuCI 等）使用，外观与 template/ 中的 shadcn/ui radix-nova 组件一致。
 * 规范见 ../DESIGN.md。用法：引入本文件和 jarvis.js，使用 j- 开头的类名。
 */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);
  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.97 0 0);
  --secondary-foreground: oklch(0.205 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --accent: oklch(0.97 0 0);
  --accent-foreground: oklch(0.205 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --success: oklch(0.596 0.145 163.225);
  --warning: oklch(0.666 0.179 58.318);
  --info: oklch(0.546 0.245 262.881);
  --border: oklch(0.922 0 0);
  --input: oklch(0.922 0 0);
  --ring: oklch(0.708 0 0);
  --radius: 0.625rem;
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --ring-soft: color-mix(in oklch, var(--ring) 50%, transparent);
  --card-ring: color-mix(in oklch, var(--foreground) 10%, transparent);
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
}

@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    color-scheme: dark;
    --background: oklch(0.145 0 0);
    --foreground: oklch(0.985 0 0);
    --card: oklch(0.205 0 0);
    --card-foreground: oklch(0.985 0 0);
    --popover: oklch(0.205 0 0);
    --popover-foreground: oklch(0.985 0 0);
    --primary: oklch(0.922 0 0);
    --primary-foreground: oklch(0.205 0 0);
    --secondary: oklch(0.269 0 0);
    --secondary-foreground: oklch(0.985 0 0);
    --muted: oklch(0.269 0 0);
    --muted-foreground: oklch(0.708 0 0);
    --accent: oklch(0.269 0 0);
    --accent-foreground: oklch(0.985 0 0);
    --destructive: oklch(0.704 0.191 22.216);
    --success: oklch(0.765 0.177 163.223);
    --warning: oklch(0.828 0.189 84.429);
    --info: oklch(0.707 0.165 254.624);
    --border: oklch(1 0 0 / 10%);
    --input: oklch(1 0 0 / 15%);
    --ring: oklch(0.556 0 0);
  }
}

/* ---------- 基础 ---------- */
.j-root, .j-root * { box-sizing: border-box; }
.j-root {
  margin: 0;
  min-height: 100svh;
  background: color-mix(in oklch, var(--muted) 40%, var(--background));
  color: var(--foreground);
  font: 400 14px/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
.j-root :focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring-soft); }
.j-muted { color: var(--muted-foreground); }
.j-mono { font-family: var(--font-mono); font-size: 13px; }
.j-num { font-variant-numeric: tabular-nums; }
.j-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 页面骨架 ---------- */
.j-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--border); background: color-mix(in oklch, var(--background) 95%, transparent); backdrop-filter: blur(8px); }
.j-header__inner { max-width: 1152px; margin: 0 auto; height: 56px; padding: 0 24px; display: flex; align-items: center; gap: 24px; }
.j-brand { font-weight: 600; font-size: 15px; color: inherit; text-decoration: none; }
.j-nav { display: flex; gap: 4px; }
.j-page { max-width: 1152px; margin: 0 auto; padding: 32px 24px; display: flex; flex-direction: column; gap: 24px; }
.j-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.j-page-head h1, .j-title { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; }
.j-page-head p { margin: 4px 0 0; color: var(--muted-foreground); }
.j-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.j-grid { display: grid; gap: 16px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.j-stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.j-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.j-btn.j-menu-button { display: none; margin-left: auto; }

/* ---------- 卡片 ---------- */
.j-card { display: flex; flex-direction: column; gap: 16px; padding: 16px 0; overflow: hidden; border-radius: var(--radius-xl); background: var(--card); color: var(--card-foreground); box-shadow: 0 0 0 1px var(--card-ring); font-size: 14px; min-width: 0; }
.j-card--sm { gap: 12px; padding: 12px 0; }
.j-card__header { display: grid; gap: 4px; padding: 0 16px; }
.j-card__header--row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.j-card__title { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.375; }
.j-card__desc { margin: 0; color: var(--muted-foreground); font-size: 14px; }
.j-card__content { padding: 0 16px; min-width: 0; }
.j-card__footer { display: flex; align-items: center; gap: 8px; margin-bottom: -16px; padding: 16px; border-top: 1px solid var(--border); background: color-mix(in oklch, var(--muted) 50%, transparent); }

/* ---------- 按钮 ---------- */
.j-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; height: 32px; padding: 0 10px; border: 1px solid transparent; border-radius: var(--radius-lg); background: var(--primary); color: var(--primary-foreground); font: 500 14px/1 var(--font-sans); white-space: nowrap; cursor: pointer; text-decoration: none; transition: background-color .15s, color .15s, box-shadow .15s; user-select: none; -webkit-tap-highlight-color: transparent; }
.j-btn:hover { background: color-mix(in oklch, var(--primary) 80%, transparent); }
.j-btn:active { transform: translateY(1px); }
.j-btn:disabled, .j-btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.j-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.j-btn--outline { background: var(--background); color: var(--foreground); border-color: var(--border); }
.j-btn--outline:hover, .j-btn--outline[aria-expanded="true"] { background: var(--muted); }
.j-btn--secondary { background: var(--secondary); color: var(--secondary-foreground); }
.j-btn--secondary:hover { background: color-mix(in oklch, var(--secondary), var(--foreground) 5%); }
.j-btn--ghost { background: transparent; color: var(--foreground); }
.j-btn--ghost:hover, .j-btn--ghost[aria-current="page"], .j-btn--ghost[aria-pressed="true"] { background: var(--muted); }
.j-btn--destructive { background: color-mix(in oklch, var(--destructive) 10%, transparent); color: var(--destructive); }
.j-btn--destructive:hover { background: color-mix(in oklch, var(--destructive) 20%, transparent); }
.j-btn--link { background: none; color: var(--primary); padding: 0; height: auto; text-decoration: underline; text-underline-offset: 4px; }
.j-btn--sm { height: 28px; padding: 0 10px; font-size: 13px; border-radius: min(var(--radius-md), 12px); }
.j-btn--xs { height: 24px; padding: 0 8px; font-size: 12px; border-radius: min(var(--radius-md), 10px); }
.j-btn--lg { height: 40px; padding: 0 12px; font-size: 14px; }
.j-btn--icon { width: 32px; padding: 0; }
.j-btn--block { width: 100%; }

/* ---------- 标签 ---------- */
.j-badge { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 20px; padding: 2px 8px; border: 1px solid transparent; border-radius: 999px; background: var(--primary); color: var(--primary-foreground); font: 500 12px/1 var(--font-sans); white-space: nowrap; flex-shrink: 0; }
.j-badge--secondary { background: var(--secondary); color: var(--secondary-foreground); }
.j-badge--outline { background: transparent; color: var(--foreground); border-color: var(--border); }
.j-badge--success { background: color-mix(in oklch, var(--success) 10%, transparent); color: var(--success); }
.j-badge--info { background: color-mix(in oklch, var(--info) 10%, transparent); color: var(--info); }
.j-badge--warning { background: color-mix(in oklch, var(--warning) 10%, transparent); color: var(--warning); }
.j-badge--destructive { background: color-mix(in oklch, var(--destructive) 10%, transparent); color: var(--destructive); }
@media (prefers-color-scheme: dark) {
  :root:not(.light) .j-badge--success { background: color-mix(in oklch, var(--success) 20%, transparent); }
  :root:not(.light) .j-badge--info { background: color-mix(in oklch, var(--info) 20%, transparent); }
  :root:not(.light) .j-badge--warning { background: color-mix(in oklch, var(--warning) 20%, transparent); }
  :root:not(.light) .j-badge--destructive { background: color-mix(in oklch, var(--destructive) 20%, transparent); }
}

/* ---------- 表单 ---------- */
.j-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.j-field--row { flex-direction: row; align-items: center; justify-content: space-between; }
.j-fields { display: flex; flex-direction: column; gap: 20px; }
.j-label { font-size: 14px; font-weight: 500; line-height: 1; }
.j-desc { margin: 0; color: var(--muted-foreground); font-size: 13px; }
.j-error { margin: 0; color: var(--destructive); font-size: 13px; }
.j-input, .j-select, .j-textarea { width: 100%; min-width: 0; height: 32px; padding: 4px 10px; border: 1px solid var(--input); border-radius: var(--radius-lg); background: transparent; color: var(--foreground); font: 400 14px/1.4 var(--font-sans); transition: border-color .15s, box-shadow .15s; }
.j-textarea { height: auto; min-height: 64px; padding: 8px 10px; }
.j-input::placeholder, .j-textarea::placeholder { color: var(--muted-foreground); }
.j-input:focus-visible, .j-select:focus-visible, .j-textarea:focus-visible { border-color: var(--ring); box-shadow: 0 0 0 3px var(--ring-soft); outline: none; }
.j-input[aria-invalid="true"], .j-select[aria-invalid="true"] { border-color: var(--destructive); box-shadow: 0 0 0 3px color-mix(in oklch, var(--destructive) 20%, transparent); }
.j-input:disabled, .j-select:disabled { opacity: .5; cursor: not-allowed; }
.j-select { appearance: none; -webkit-appearance: none; padding-right: 30px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; }
.j-select option { background: var(--popover); color: var(--popover-foreground); }
@media (prefers-color-scheme: dark) { :root:not(.light) .j-input, :root:not(.light) .j-select, :root:not(.light) .j-textarea { background-color: color-mix(in oklch, var(--input) 30%, transparent); } }

/* 开关：<input type="checkbox" class="j-switch"> */
.j-switch { appearance: none; -webkit-appearance: none; position: relative; width: 32px; height: 18.4px; margin: 0; border-radius: 999px; background: var(--input); cursor: pointer; flex-shrink: 0; transition: background-color .15s; }
.j-switch::after { content: ""; position: absolute; top: 1.2px; left: 1.2px; width: 16px; height: 16px; border-radius: 50%; background: var(--background); transition: transform .15s; }
.j-switch:checked { background: var(--primary); }
.j-switch:checked::after { transform: translateX(13.6px); }
@media (prefers-color-scheme: dark) { :root:not(.light) .j-switch:not(:checked)::after { background: var(--foreground); } :root:not(.light) .j-switch:checked::after { background: var(--primary-foreground); } :root:not(.light) .j-switch { background: color-mix(in oklch, var(--input) 80%, transparent); } :root:not(.light) .j-switch:checked { background: var(--primary); } }
.j-checkbox { width: 16px; height: 16px; accent-color: var(--primary); margin: 0; }

/* ---------- 表格 ---------- */
.j-table-wrap { width: 100%; overflow-x: auto; }
.j-table { width: 100%; border-collapse: collapse; font-size: 14px; caption-side: bottom; }
.j-table th { height: 40px; padding: 0 8px; text-align: left; font-weight: 500; white-space: nowrap; color: var(--foreground); border-bottom: 1px solid var(--border); }
.j-table td { padding: 8px; vertical-align: middle; border-bottom: 1px solid var(--border); }
.j-table tbody tr:last-child td { border-bottom: 0; }
.j-table tbody tr:hover { background: color-mix(in oklch, var(--muted) 50%, transparent); }
.j-table .j-right { text-align: right; }

/* 手机列表：表格在手机上改成这种「名称 + 状态 / 灰色摘要」的行 */
.j-list { display: flex; flex-direction: column; }
.j-list__item { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-top: 1px solid var(--border); }
.j-list__item:first-child { border-top: 0; }

/* ---------- 其他 ---------- */
.j-separator { height: 1px; width: 100%; background: var(--border); border: 0; margin: 0; }
.j-progress { position: relative; height: 4px; width: 100%; overflow: hidden; border-radius: 999px; background: var(--muted); }
.j-progress > span { display: block; height: 100%; background: var(--primary); transition: width .3s; }
.j-progress--success > span { background: var(--success); }
.j-progress--warning > span { background: var(--warning); }
.j-progress--destructive > span { background: var(--destructive); }
.j-tabs { display: inline-flex; align-items: center; gap: 0; height: 32px; padding: 3px; border-radius: var(--radius-lg); background: var(--muted); color: var(--muted-foreground); max-width: 100%; overflow-x: auto; }
.j-tabs > button, .j-tabs > a { height: 100%; display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border: 1px solid transparent; border-radius: var(--radius-md); background: transparent; color: color-mix(in oklch, var(--foreground) 60%, transparent); font: 500 14px/1 var(--font-sans); white-space: nowrap; cursor: pointer; text-decoration: none; }
.j-tabs > [aria-selected="true"], .j-tabs > [aria-current="page"] { background: var(--background); color: var(--foreground); box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
.j-alert { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); font-size: 14px; }
.j-alert__title { font-weight: 500; }
.j-alert--destructive { color: var(--destructive); }
.j-alert--destructive .j-alert__desc { color: color-mix(in oklch, var(--destructive) 90%, transparent); }
.j-alert--warning { color: var(--warning); }
.j-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 16px; text-align: center; color: var(--muted-foreground); border: 1px dashed var(--border); border-radius: var(--radius-lg); }
.j-skeleton { border-radius: var(--radius-md); background: var(--muted); animation: j-pulse 2s ease-in-out infinite; }
@keyframes j-pulse { 50% { opacity: .5; } }
.j-spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: j-spin .7s linear infinite; display: inline-block; }
@keyframes j-spin { to { transform: rotate(360deg); } }
.j-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.j-kv dt { color: var(--muted-foreground); }
.j-kv dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
details.j-details > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; color: var(--muted-foreground); font-weight: 500; }
details.j-details > summary::-webkit-details-marker { display: none; }
details.j-details > summary::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .15s; }
details.j-details[open] > summary::before { transform: rotate(90deg); }
.j-toast-region { position: fixed; z-index: 70; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; max-width: min(360px, calc(100vw - 32px)); }
.j-toast { padding: 12px 14px; border-radius: var(--radius-lg); background: var(--popover); color: var(--popover-foreground); box-shadow: 0 0 0 1px var(--card-ring), var(--shadow-lg); font-size: 14px; animation: j-fade-up .2s ease-out; }
.j-toast--error { color: var(--destructive); }

/* ---------- 浮层（由 jarvis.js 创建）---------- */
.j-overlay { position: fixed; inset: 0; z-index: 50; background: rgb(0 0 0 / .1); backdrop-filter: blur(4px); animation: j-fade .15s ease-out; }
.j-dialog { position: fixed; z-index: 51; top: 50%; left: 50%; transform: translate(-50%, -50%); width: calc(100% - 32px); max-width: 384px; max-height: calc(100svh - 32px); overflow: auto; display: grid; gap: 16px; padding: 16px; border-radius: var(--radius-xl); background: var(--popover); color: var(--popover-foreground); box-shadow: 0 0 0 1px var(--card-ring); font-size: 14px; animation: j-zoom .15s ease-out; }
.j-dialog--lg { max-width: 560px; }
.j-dialog__title, .j-drawer__title, .j-sheet__title { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.25; color: var(--foreground); }
.j-dialog__desc, .j-drawer__desc { margin: 4px 0 0; color: var(--muted-foreground); font-size: 14px; }
.j-dialog__footer { display: flex; justify-content: flex-end; gap: 8px; margin: 0 -16px -16px; padding: 16px; border-top: 1px solid var(--border); background: color-mix(in oklch, var(--muted) 50%, transparent); }
.j-drawer { position: fixed; z-index: 51; left: 0; right: 0; bottom: 0; max-height: 80svh; display: flex; flex-direction: column; border-top: 1px solid var(--border); border-radius: var(--radius-xl) var(--radius-xl) 0 0; background: var(--popover); color: var(--popover-foreground); font-size: 14px; padding-bottom: env(safe-area-inset-bottom); animation: j-slide-up .25s cubic-bezier(.32, .72, 0, 1); }
.j-drawer::before { content: ""; display: block; flex-shrink: 0; width: 100px; height: 4px; margin: 16px auto 0; border-radius: 999px; background: var(--muted); }
.j-drawer__header { padding: 16px; text-align: center; }
.j-drawer__body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px; }
.j-drawer__footer { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.j-drawer__footer .j-btn { height: 40px; width: 100%; }
.j-drawer__options { display: flex; flex-direction: column; padding: 0 8px 24px; overflow-y: auto; }
.j-drawer__option { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 16px; border: 0; border-radius: var(--radius-lg); background: transparent; color: var(--foreground); font: 400 16px/1.3 var(--font-sans); text-align: left; cursor: pointer; }
.j-drawer__option:hover, .j-drawer__option:active, .j-drawer__option:focus-visible { background: var(--muted); box-shadow: none; }
.j-drawer__option[aria-selected="true"]::after { content: ""; width: 20px; height: 20px; flex-shrink: 0; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.j-drawer__option:disabled { opacity: .5; }
.j-drawer__group { padding: 12px 16px 4px; color: var(--muted-foreground); font-size: 12px; }
.j-sheet { position: fixed; z-index: 51; top: 0; bottom: 0; left: 0; width: min(288px, 80vw); display: flex; flex-direction: column; gap: 16px; padding: 16px 8px; border-right: 1px solid var(--border); background: var(--popover); color: var(--popover-foreground); box-shadow: var(--shadow-lg); animation: j-slide-right .2s ease-out; overflow-y: auto; }
.j-sheet__title { padding: 0 8px; }
.j-sheet nav { display: flex; flex-direction: column; gap: 4px; }
.j-sheet nav .j-btn { justify-content: flex-start; height: 44px; font-size: 15px; }
@keyframes j-fade { from { opacity: 0; } }
@keyframes j-zoom { from { opacity: 0; transform: translate(-50%, -50%) scale(.95); } }
@keyframes j-slide-up { from { transform: translateY(100%); } }
@keyframes j-slide-right { from { transform: translateX(-100%); } }
@keyframes j-fade-up { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .j-overlay, .j-dialog, .j-drawer, .j-sheet, .j-toast { animation: none; } }
body.j-locked { overflow: hidden; }

/* ---------- 手机 ---------- */
@media (max-width: 767px) {
  .j-header__inner { padding: 0 16px; gap: 12px; }
  .j-nav--responsive { display: none; }
  .j-btn.j-menu-button { display: inline-flex; }
  .j-page { padding: 24px 16px; }
  .j-page-head { flex-direction: column; align-items: stretch; }
  .j-page-head .j-actions > .j-btn { flex: 1; }
  .j-grid { grid-template-columns: 1fr; }
  .j-grid--keep { grid-template-columns: repeat(var(--cols-mobile, 2), minmax(0, 1fr)); }
  .j-input, .j-select, .j-textarea { font-size: 16px; }
  .j-hide-mobile { display: none !important; }
  .j-btn--block-mobile { width: 100%; }
  .j-toast-region { left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); max-width: none; }
}
@media (min-width: 768px) { .j-show-mobile { display: none !important; } }
