:root {
  --paper: #f4eee5;
  --surface: #fffaf2;
  --surface-2: #f9f5ef;
  --ink: #1d1c18;
  --muted: #746e65;
  --accent: #d94a27;
  --accent-soft: #f9e5db;
  --lime: #d9ef8a;
  --line: rgba(29, 28, 24, .13);
  --green: #3f9353;
  --on-ink: #ffffff;
  --sidebar: #1d1c18;
  --sidebar-text: #ffffff;
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-width: 320px; min-height: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); transition: background .35s ease, color .35s ease; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.login-screen { min-height: 100dvh; display: grid; grid-template-columns: minmax(420px, .95fr) 1.05fr; background: var(--surface); }
.login-visual { position: relative; min-height: 100dvh; overflow: hidden; padding: 42px; background: var(--sidebar); color: var(--sidebar-text); isolation: isolate; }
.login-visual::before { content: ""; position: absolute; inset: -2%; z-index: -3; opacity: .38; background: var(--login-bg-image, url("../assets/sandwich-grid.jpg")) center / cover; filter: saturate(.82); }
.login-visual::after { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(155deg, rgba(29,28,24,.4), rgba(29,28,24,.97) 70%); }
html[data-has-login-background="true"] .login-visual::before { inset: 0; opacity: 1; filter: none; }
html[data-has-login-background="true"] .login-visual::after { display: none; }
html[data-has-login-background="true"] .login-brand { padding: 9px 13px; border-radius: 999px; background: #1d1c18; }
html[data-has-login-background="true"] .login-visual-copy { width: min(560px, calc(100% - 104px)); padding: 25px; border-radius: 22px; background: #1d1c18; }
.login-brand { display: inline-flex; align-items: center; gap: 12px; color: white; font-size: 13px; letter-spacing: .1em; text-decoration: none; }
.login-brand > span, .sidebar-brand > span, .login-mobile-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50% 50% 44% 44%; background: var(--accent); color: white; font-family: Georgia, serif; font-size: 24px; font-style: italic; transform: rotate(-7deg); }
.has-custom-avatar { background-color: var(--accent) !important; background-position: center !important; background-size: cover !important; background-repeat: no-repeat !important; color: transparent !important; font-size: 0 !important; }
.login-visual-copy { position: absolute; right: 52px; bottom: 72px; left: 52px; z-index: 2; }
.login-visual-copy > p { margin: 0 0 18px; color: var(--lime); font-size: 11px; font-weight: 900; letter-spacing: .17em; }
.login-visual-copy h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(64px, 7vw, 106px); font-weight: 400; letter-spacing: -.065em; line-height: .82; }
.login-visual-copy h1 em { color: #f06a43; font-weight: 400; }
.login-visual-copy > span { display: block; max-width: 430px; margin-top: 30px; color: rgba(255,255,255,.64); font-size: 14px; line-height: 1.6; }
.login-orbit { position: absolute; z-index: -1; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.orbit-one { width: 460px; height: 460px; top: -190px; right: -160px; }
.orbit-two { width: 680px; height: 680px; top: -300px; right: -270px; }

.login-form-side { position: relative; display: grid; min-height: 100dvh; padding: 70px 24px; place-items: center; }
.login-box { width: min(470px, 100%); }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 74px; color: var(--muted); font-size: 12px; font-weight: 800; text-decoration: none; }
.back-link:hover { color: var(--accent); }
.back-link svg { width: 18px; }
.login-mobile-mark { display: none; }
.kicker { margin: 0 0 9px; color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.login-box h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(45px, 5vw, 61px); font-weight: 400; letter-spacing: -.055em; line-height: .95; }
.login-note { margin: 18px 0 34px; color: var(--muted); font-size: 14px; }
#standalone-login-form { display: grid; gap: 18px; }
.panel-field { display: grid; gap: 8px; min-width: 0; }
.panel-field > span, .field-label { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.input-with-icon { position: relative; }
.input-with-icon > svg { position: absolute; top: 50%; left: 15px; width: 19px; color: var(--muted); pointer-events: none; transform: translateY(-50%); transition: opacity .22s ease, transform .32s cubic-bezier(.22,1,.36,1); }
.panel-field .input-with-icon input { padding-left: 46px; padding-right: 46px; transition: padding .32s cubic-bezier(.22,1,.36,1), border-color .2s ease, box-shadow .2s ease, background .35s ease, color .35s ease; }
.input-with-icon.has-value > svg { opacity: 0; transform: translate(-8px, -50%) scale(.72); }
.panel-field .input-with-icon.has-value input { padding-left: 15px; }
.panel-field input, .panel-field textarea, .panel-field select, .product-toolbar select {
  width: 100%;
  min-height: 51px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  transition: border-color .2s ease, box-shadow .2s ease, background .35s ease, color .35s ease;
}
.panel-field textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
.panel-field input:focus, .panel-field textarea:focus, .panel-field select:focus, .product-toolbar select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(217,74,39,.1); }
.password-toggle { position: absolute; top: 50%; right: 9px; width: 36px; height: 36px; display: grid; padding: 0; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transform: translateY(-50%); }
.password-toggle:hover { background: var(--paper); color: var(--ink); }
.password-toggle svg { width: 19px; }
.panel-primary { min-height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 900; cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease; }
.panel-primary:hover { background: var(--accent); transform: translateY(-1px); }
.panel-primary:disabled { opacity: .55; cursor: wait; transform: none; }
.login-button { min-height: 54px; margin-top: 5px; }
.login-error { margin: -3px 0 0; padding: 12px 14px; border-radius: 11px; background: var(--accent-soft); color: #a63017; font-size: 12px; font-weight: 800; }
.secure-note { display: flex; align-items: center; gap: 8px; margin: 24px 0 0; color: #918a80; font-size: 11px; }
.secure-note svg { width: 18px; color: var(--green); }

.panel-app { min-height: 100dvh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.panel-sidebar { position: sticky; z-index: 40; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 27px 17px 20px; border-right: 1px solid rgba(255,255,255,.08); background: var(--sidebar); color: var(--sidebar-text); }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 27px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-brand > span { width: 38px; height: 38px; flex: 0 0 auto; font-size: 21px; }
.sidebar-brand strong { display: block; font-size: 12px; letter-spacing: .08em; }
.sidebar-brand small { display: block; margin-top: 3px; color: #8f8b83; font-size: 9px; }
.sidebar-nav { display: grid; gap: 6px; margin-top: 27px; overflow-y: auto; scrollbar-width: none; }
.sidebar-nav::-webkit-scrollbar { display: none; }
.sidebar-link { width: 100%; min-height: 49px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border: 0; border-radius: 13px; background: transparent; color: #9d9991; font-size: 12px; font-weight: 800; text-align: left; cursor: pointer; transition: background .2s ease, color .2s ease; }
.sidebar-link:hover { background: rgba(255,255,255,.06); color: white; }
.sidebar-link.is-active { background: var(--accent); color: white; }
.sidebar-link svg { width: 20px; height: 20px; flex: 0 0 auto; }
.sidebar-link b { display: grid; min-width: 22px; height: 22px; margin-left: auto; padding: 0 6px; place-items: center; border-radius: 99px; background: rgba(255,255,255,.1); font-size: 9px; }
.sidebar-link.is-active b { background: rgba(255,255,255,.2); }
.sidebar-bottom { display: grid; gap: 11px; margin-top: auto; }
.connection-card { display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; background: rgba(255,255,255,.035); }
.connection-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #d8a146; box-shadow: 0 0 0 4px rgba(216,161,70,.1); }
.connection-dot.is-online { background: #65c377; box-shadow: 0 0 0 4px rgba(101,195,119,.1); }
.connection-card strong { display: block; font-size: 10px; }
.connection-card small { display: block; margin-top: 3px; color: #85817b; font-size: 8px; }
.sidebar-logout { min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 0; border-radius: 12px; background: transparent; color: #8f8b84; font-size: 11px; font-weight: 800; cursor: pointer; }
.sidebar-logout:hover { background: rgba(255,255,255,.06); color: white; }
.sidebar-logout svg { width: 18px; }

.panel-content-shell { position: relative; z-index: 0; min-width: 0; min-height: 100dvh; display: flex; flex-direction: column; isolation: isolate; }
.panel-content-shell::before { content: ""; position: fixed; z-index: -1; inset: 72px 0 78px 248px; opacity: 0; background: var(--admin-bg-image, none) center / cover; filter: saturate(.7); pointer-events: none; transition: opacity .45s ease; }
html[data-has-admin-background="true"] .panel-content-shell::before { opacity: .11; }
.panel-topbar { position: sticky; z-index: 30; top: 0; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 34px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(18px); }
.sidebar-toggle { display: none; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); place-items: center; cursor: pointer; }
.sidebar-toggle svg { width: 20px; }
.topbar-title { display: grid; gap: 2px; }
.topbar-title span { color: var(--accent); font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.topbar-title strong { font-family: Georgia, serif; font-size: 18px; font-weight: 400; }
.topbar-actions { display: flex; align-items: center; gap: 13px; }
.admin-theme-toggle { position: relative; width: 66px; height: 38px; display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; padding: 0 9px; overflow: hidden; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 76%, transparent); color: var(--ink); cursor: pointer; box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 8%, transparent); transition: border-color .3s ease, background .35s ease, transform .25s ease; }
.admin-theme-toggle:hover { border-color: var(--accent); transform: translateY(-2px); }
.admin-theme-track { position: absolute; inset: 0; pointer-events: none; }
.admin-theme-thumb { position: absolute; z-index: 0; top: 3px; left: 3px; width: 30px; height: 30px; border-radius: 50%; background: var(--surface); box-shadow: 0 5px 15px rgba(30,20,10,.16); transition: transform .5s cubic-bezier(.22,1,.36,1), background .35s ease; }
.admin-theme-icon { position: relative; z-index: 1; width: 15px; height: 15px; transition: opacity .3s ease, transform .5s cubic-bezier(.22,1,.36,1); }
.admin-theme-icon--sun { color: #e68b20; }
.admin-theme-icon--moon { color: var(--muted); opacity: .6; }
.login-theme-toggle { position: absolute; z-index: 3; top: 28px; right: 28px; }
html[data-theme="dark"] .admin-theme-thumb { background: color-mix(in srgb, var(--surface) 75%, white); transform: translateX(30px); }
html[data-theme="dark"] .admin-theme-icon--sun { opacity: .42; transform: rotate(90deg); }
html[data-theme="dark"] .admin-theme-icon--moon { color: var(--lime); opacity: 1; transform: rotate(-8deg); }
.unsaved-pill { padding: 7px 10px; border-radius: 99px; background: var(--accent-soft); color: #a63017; font-size: 9px; font-weight: 900; }
.visit-site { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 99px; font-size: 10px; font-weight: 900; text-decoration: none; }
.visit-site:hover { border-color: var(--ink); }
.visit-site svg { width: 15px; }
.admin-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); font-family: Georgia, serif; font-weight: 700; }

.panel-main { width: min(1280px, 100%); margin: 0 auto; padding: 42px 36px 120px; }
.panel-section { min-width: 0; }
html[data-motion="rich"] .panel-section { animation: section-in .62s cubic-bezier(.22,1,.36,1); }
html[data-motion="subtle"] .panel-section { animation: section-in .36s ease; }
@keyframes section-in { from { opacity: 0; filter: blur(4px); transform: translateY(16px) scale(.995); } to { opacity: 1; filter: blur(0); transform: none; } }
.section-title-row { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 31px; }
.section-title-row h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(39px, 4.2vw, 58px); font-weight: 400; letter-spacing: -.05em; line-height: .95; }
.section-title-row > div > span { display: block; margin-top: 11px; color: var(--muted); font-size: 13px; }
.today-label { margin: 0 0 5px; color: var(--muted); font-size: 11px; font-weight: 800; }
.compact-title { align-items: center; margin-bottom: 28px; }
.compact-title h1 { font-size: clamp(38px, 4vw, 52px); }
.compact-button { flex: 0 0 auto; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.stat-card { min-height: 142px; display: flex; align-items: start; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 7%, transparent) inset; }
.stat-card--accent { background: var(--ink); color: var(--on-ink); }
.stat-icon { width: 35px; height: 35px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 9px; font-weight: 900; }
.stat-card--accent .stat-icon { background: var(--accent); color: white; }
.status-icon { color: var(--green); }
.stat-card small { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.stat-card--accent small, .stat-card--accent p { color: #99958d; }
.stat-card strong { display: block; margin-top: 6px; font-family: Georgia, serif; font-size: 31px; font-weight: 400; letter-spacing: -.04em; }
.stat-card p { margin: 7px 0 0; color: var(--muted); font-size: 9px; }
.stat-card .status-live { color: var(--green); font-family: inherit; font-size: 19px; font-weight: 900; }

.dashboard-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; margin-top: 18px; }
.dashboard-card, .form-card { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.dashboard-card { padding: 25px; }
.card-heading h2, .form-card-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 25px; font-weight: 400; letter-spacing: -.03em; }
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-top: 22px; }
.quick-actions button { min-height: 116px; display: flex; align-items: start; flex-direction: column; gap: 15px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); text-align: left; cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.quick-actions button:hover { border-color: var(--accent); background: var(--surface); transform: translateY(-2px); }
.quick-actions button > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 16px; font-weight: 900; }
.quick-actions strong { display: block; font-size: 11px; }
.quick-actions small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.activity-line { display: flex; align-items: center; gap: 13px; margin-top: 23px; padding: 15px; border-radius: 14px; background: #edf5e7; }
.activity-check { width: 31px; height: 31px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: 13px; font-weight: 900; }
.activity-line strong { display: block; font-size: 10px; }
.activity-line small { display: block; margin-top: 4px; color: #6d806b; font-size: 8px; }
.activity-meta { display: flex; justify-content: space-between; padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: 10px; }
.activity-meta span { color: var(--muted); }

#brand-form-groups { display: grid; gap: 18px; }
.brand-panel-copy { margin-top: 18px; }
.contact-guide { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); border-radius: 17px; background: var(--accent-soft); }
.contact-guide > span { flex: 0 0 auto; padding: 8px 10px; border-radius: 999px; background: var(--accent); color: white; font-size: 7px; font-weight: 900; letter-spacing: .12em; }
.contact-guide strong { display: block; font-size: 11px; }
.contact-guide p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.contact-editor-list { display: grid; gap: 14px; }
.contact-editor-card { overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); transition: border-color .25s ease, transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease; }
.contact-editor-card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); transform: translateY(-2px); box-shadow: 0 16px 38px color-mix(in srgb, var(--ink) 8%, transparent); }
.contact-editor-head { display: flex; align-items: center; gap: 13px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.contact-type-badge { width: 42px; height: 42px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 13px; background: var(--accent); color: white; font-size: 8px; font-weight: 900; letter-spacing: -.02em; }
.contact-editor-head > div { min-width: 0; margin-right: auto; }
.contact-editor-head strong { display: block; overflow: hidden; font-family: Georgia, serif; font-size: 18px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.contact-editor-head small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.contact-enabled { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 8px; font-weight: 900; cursor: pointer; }
.contact-enabled input { width: 18px; height: 18px; accent-color: var(--accent); }
.contact-editor-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 18px; }
.contact-editor-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-top: 1px solid var(--line); }
.contact-editor-actions > div { display: flex; gap: 8px; }
.contact-editor-actions button:disabled { opacity: .4; pointer-events: none; }
.contact-empty { display: grid; min-height: 300px; padding: 35px; place-items: center; align-content: center; border: 1px dashed var(--line); border-radius: 20px; background: var(--surface); text-align: center; }
.contact-empty > span { width: 52px; height: 52px; display: grid; margin-bottom: 14px; place-items: center; border-radius: 16px; background: var(--accent-soft); color: var(--accent); font-size: 25px; }
.contact-empty strong { font-family: Georgia, serif; font-size: 24px; font-weight: 400; }
.contact-empty p { margin: 8px 0 20px; color: var(--muted); font-size: 9px; }
.security-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 18px; align-items: start; }
.security-form { display: grid; grid-template-columns: 1fr; gap: 17px; padding: 24px; }
.security-password-input { position: relative; }
.security-password-input input { width: 100%; padding-right: 52px; }
.security-password-input button { position: absolute; top: 50%; right: 8px; width: 38px; height: 38px; display: grid; padding: 0; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transform: translateY(-50%); transition: background .2s ease, color .2s ease, transform .2s ease; }
.security-password-input button:hover { background: var(--paper); color: var(--accent); transform: translateY(-50%) scale(1.05); }
.security-password-input svg { width: 18px; }
.password-strength { display: grid; gap: 8px; }
.password-strength > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.password-strength i { height: 5px; border-radius: 999px; background: var(--line); transition: background .25s ease, transform .35s cubic-bezier(.22,1,.36,1); }
.password-strength span { color: var(--muted); font-size: 9px; }
.password-strength[data-level="weak"] i:nth-child(-n+1) { background: #d94a27; transform: scaleY(1.2); }
.password-strength[data-level="medium"] i:nth-child(-n+2) { background: #e99c32; transform: scaleY(1.2); }
.password-strength[data-level="strong"] i:nth-child(-n+3) { background: #85a84c; transform: scaleY(1.2); }
.password-strength[data-level="excellent"] i { background: var(--green); transform: scaleY(1.2); }
.security-submit { width: 100%; min-height: 52px; }
.security-message { margin: 0; padding: 13px 15px; border-radius: 12px; font-size: 10px; font-weight: 900; line-height: 1.5; }
.security-message[data-type="error"] { border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 78%, var(--ink)); }
.security-message[data-type="success"] { border: 1px solid color-mix(in srgb, var(--green) 30%, transparent); background: color-mix(in srgb, var(--green) 13%, var(--surface)); color: var(--green); }
.security-info-card { position: sticky; top: 92px; overflow: hidden; padding: 28px; border-radius: 20px; background: var(--sidebar); color: var(--sidebar-text); box-shadow: 0 20px 55px rgba(24,18,12,.15); }
.security-info-card::before { content: ""; position: absolute; width: 230px; height: 230px; right: -100px; top: -110px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.security-lock { width: 52px; height: 52px; display: grid; margin-bottom: 29px; place-items: center; border-radius: 16px; background: var(--accent); color: white; }
.security-lock svg { width: 25px; }
.security-info-card .kicker { color: var(--lime); }
.security-info-card h2 { margin: 9px 0 22px; font-family: Georgia, serif; font-size: 31px; font-weight: 400; letter-spacing: -.04em; line-height: 1; }
.security-info-card ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.security-info-card li { position: relative; padding-left: 23px; color: #d2ccc2; font-size: 10px; line-height: 1.5; }
.security-info-card li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--lime); font-weight: 900; }
.security-warning { margin: 24px 0 0; padding: 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; background: rgba(255,255,255,.05); color: #aaa399; font-size: 9px; line-height: 1.55; }
.appearance-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 18px; }
.appearance-card, .motion-card, .panel-copy-card { grid-column: 1 / -1; }
.visual-jump-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-bottom: 18px; }
.visual-jump-list button { min-height: 92px; display: grid; grid-template-columns: 30px 1fr; align-content: center; gap: 3px 10px; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: left; cursor: pointer; transition: border-color .25s ease, background .25s ease, transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease; }
.visual-jump-list button:hover { border-color: var(--accent); background: var(--surface-2); transform: translateY(-4px); box-shadow: 0 14px 34px color-mix(in srgb, var(--ink) 9%, transparent); }
.visual-jump-list button > span { grid-row: 1 / span 2; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 8px; font-weight: 900; }
.visual-jump-list strong { font-family: Georgia, serif; font-size: 15px; }
.visual-jump-list small { color: var(--muted); font-size: 8px; }
.media-settings-groups { display: grid; gap: 18px; }
.media-group { scroll-margin-top: 92px; }
.media-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 22px; }
.media-group[data-media-group="identity"] .media-setting, .media-group[data-media-group="qr"] .media-setting { grid-column: 1 / -1; }
.media-setting { display: grid; grid-template-columns: 122px minmax(0, 1fr); align-items: center; gap: 10px 16px; padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface-2); }
.media-preview { position: relative; grid-column: 1; grid-row: 1 / span 5; width: 122px; height: 116px; display: grid; overflow: hidden; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--paper) 78%, var(--surface)); background-position: center; background-size: cover; color: var(--muted); }
.media-placement-line { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.media-placement-line b { color: var(--accent); font-size: 7px; letter-spacing: .13em; }
.media-placement-line span { color: var(--ink); font-size: 8px; font-weight: 900; text-align: right; }
.media-preview span { padding: 10px; font-size: 8px; font-weight: 900; line-height: 1.4; text-align: center; text-transform: uppercase; }
.media-preview { transition: border-color .25s ease, transform .4s cubic-bezier(.22,1,.36,1), box-shadow .35s ease; }
.media-setting:hover .media-preview { border-color: var(--accent); transform: scale(1.025) rotate(-.5deg); box-shadow: 0 14px 32px color-mix(in srgb, var(--ink) 12%, transparent); }
.media-setting--avatar .media-preview { width: 104px; height: 104px; margin-inline: 9px; border-radius: 50%; }
.media-setting-copy strong { display: block; font-family: Georgia, serif; font-size: 17px; }
.media-setting-copy p { margin: 4px 0 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.media-detail-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 9px; border-radius: 9px; background: var(--paper); font-size: 8px; }
.media-detail-line b { color: var(--accent); }
.media-detail-line span { color: var(--muted); text-align: right; }
.media-location-list { display: flex; flex-wrap: wrap; gap: 5px; }
.media-location-list span { padding: 5px 7px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 7px; font-weight: 800; }
.media-setting-controls { display: flex; align-items: center; gap: 8px; }
.media-setting-controls .image-upload-button { min-height: 36px; }
.media-setting-controls .row-control { min-height: 36px; }
.media-advanced { grid-column: 1 / -1; padding-top: 2px; }
.media-advanced summary { width: fit-content; padding: 5px 0; color: var(--muted); font-size: 8px; font-weight: 900; cursor: pointer; list-style-position: inside; }
.media-advanced[open] summary { margin-bottom: 8px; color: var(--accent); }
.media-url-field { width: 100%; }
.media-url-field input { min-height: 42px; font-size: 11px; }
.media-status { grid-column: 1 / -1; color: var(--green); font-size: 8px; font-weight: 800; }
.theme-color-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 22px 22px 0; }
.theme-color-group { min-width: 0; margin: 0; padding: 17px; border: 1px solid rgba(29,28,24,.13); border-radius: 16px; background: #fffdf8; color: #1d1c18; }
.theme-color-group--dark { border-color: rgba(255,255,255,.1); background: #211f1a; color: #fff8ec; }
.theme-color-group legend { display: flex; align-items: center; gap: 9px; padding: 0 7px; }
.theme-mode-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-style: normal; }
.theme-color-group--dark .theme-mode-icon { background: rgba(217,74,39,.18); }
.theme-color-group legend strong { display: block; font-size: 10px; }
.theme-color-group legend small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.theme-color-group--dark legend small { color: #aaa49a; }
.theme-color-group > div { display: grid; gap: 9px; margin-top: 9px; }
.color-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 8px 9px 8px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.theme-color-group:not(.theme-color-group--dark) .color-field { border-color: rgba(29,28,24,.13); background: #f9f5ef; }
.theme-color-group--dark .color-field { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.045); }
.color-field > span { font-size: 9px; font-weight: 800; }
.color-field > div { display: flex; align-items: center; gap: 8px; }
.color-field input[type="color"] { width: 32px; height: 32px; padding: 2px; border: 1px solid var(--line); border-radius: 9px; background: transparent; cursor: pointer; }
.color-field output { min-width: 59px; color: var(--muted); font-family: Consolas, monospace; font-size: 8px; text-align: right; }
.theme-color-group--dark .color-field output { color: #bcb5aa; }
.shared-color-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 16px 22px 22px; }
.motion-settings { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(320px, 1.3fr); align-items: center; gap: 22px; padding: 22px; }
.motion-demo { position: relative; min-height: 135px; display: flex; align-items: center; justify-content: center; gap: 10px; overflow: hidden; border-radius: 16px; background: var(--ink); color: var(--on-ink); }
.motion-demo i { width: 34px; height: 45px; border-radius: 10px; background: var(--accent); animation: motion-bars 1.6s ease-in-out infinite; }
.motion-demo i:nth-child(2) { height: 67px; background: var(--lime); animation-delay: -.25s; }
.motion-demo i:nth-child(3) { height: 54px; background: #f7b78e; animation-delay: -.5s; }
.motion-demo span { position: absolute; right: 0; bottom: 0; left: 0; padding: 10px; color: rgba(255,255,255,.58); font-size: 8px; text-align: center; }
.motion-demo[data-motion-style="subtle"] i { animation-duration: 3.2s; animation-name: motion-subtle; }
.motion-demo[data-motion-style="off"] i { animation: none; }
.panel-copy-card .form-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@keyframes motion-bars { 0%,100% { transform: translateY(8px) rotate(-2deg); } 50% { transform: translateY(-9px) rotate(2deg); } }
@keyframes motion-subtle { 0%,100% { opacity: .7; } 50% { opacity: 1; } }
.form-card { overflow: hidden; }
.form-card-heading { display: flex; align-items: center; gap: 14px; padding: 20px 23px; border-bottom: 1px solid var(--line); }
.form-card-heading > span { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 9px; font-weight: 900; }
.form-card-heading p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; padding: 22px; }
.panel-field--full { grid-column: 1 / -1; }

.category-table { overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); }
.category-row { display: grid; grid-template-columns: 52px 1fr 1fr 100px; align-items: center; gap: 15px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.category-row:last-child { border-bottom: 0; }
.category-index { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--paper); color: var(--muted); font-size: 9px; font-weight: 900; }
.category-row .panel-field input { min-height: 44px; }
.category-count { color: var(--muted); font-size: 10px; text-align: center; }
.row-delete, .row-control { min-height: 37px; padding: 0 13px; border: 1px solid var(--line); border-radius: 99px; background: transparent; font-size: 9px; font-weight: 900; cursor: pointer; }
.row-delete { color: #ad361e; }
.row-delete:hover, .row-control:hover { border-color: currentColor; background: var(--surface); }

.product-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) 210px auto; align-items: center; gap: 12px; margin-bottom: 17px; }
.panel-search { min-height: 47px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.panel-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(217,74,39,.1); }
.panel-search svg { width: 19px; color: var(--muted); }
.panel-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 13px; }
.product-toolbar select { min-height: 47px; }
#admin-product-result { color: var(--muted); font-size: 10px; font-weight: 900; }
.standalone-product-list { display: grid; gap: 13px; }
.product-editor { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.product-editor summary { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 12px 17px 12px 12px; cursor: pointer; list-style: none; }
.product-editor summary::-webkit-details-marker { display: none; }
.editor-image { width: 92px; height: 68px; border-radius: 12px; background: #ead7bf url("../assets/sandwich-grid.jpg") no-repeat; background-size: 300% 200%; }
.editor-summary strong { display: block; font-family: Georgia, serif; font-size: 21px; font-weight: 600; }
.editor-summary span { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.editor-price { color: var(--accent); font-size: 14px; font-weight: 900; }
.editor-chevron { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); transition: transform .2s ease; }
.product-editor[open] .editor-chevron { transform: rotate(180deg); }
.editor-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 21px; border-top: 1px solid var(--line); background: var(--surface-2); }
.product-image-source { display: grid; grid-template-columns: minmax(170px, 1fr) auto; align-items: center; gap: 13px 18px; padding: 16px; border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 15px; background: var(--surface); }
.image-source-copy small { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.image-source-actions { display: flex; align-items: center; gap: 8px; }
.image-upload-button { position: relative; min-height: 40px; display: grid; padding: 0 16px; place-items: center; overflow: hidden; border-radius: 99px; background: var(--accent); color: white; font-size: 9px; font-weight: 900; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.image-upload-button:hover { background: var(--ink); color: var(--on-ink); transform: translateY(-1px); }
.image-upload-button.is-loading { opacity: .65; cursor: wait; transform: none; }
.image-upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.image-source-actions .row-control:disabled { opacity: .42; cursor: not-allowed; }
.image-source-status { grid-column: 1 / -1; margin: 0; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.image-source-status.has-image { color: var(--green); font-weight: 800; }
.editor-actions { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; padding-top: 3px; }
.editor-actions > div { display: flex; gap: 8px; }
.empty-products { padding: 70px 20px; border: 1px dashed var(--line); border-radius: 18px; text-align: center; color: var(--muted); }
.empty-products strong { display: block; color: var(--ink); font-family: Georgia, serif; font-size: 25px; }
.empty-products p { margin: 8px 0 0; font-size: 11px; }

.qr-layout { width: min(650px, 100%); display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.qr-card { padding: 25px; border: 1px solid var(--line); border-radius: 21px; background: var(--surface); }
.qr-card-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 29px; font-weight: 400; letter-spacing: -.035em; }
.qr-card-heading > span { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.qr-code-frame { width: min(330px, 86%); margin: 25px auto 20px; padding: 17px; border: 1px solid var(--line); border-radius: 20px; background: #fffaf2; box-shadow: 0 18px 50px rgba(47,32,20,.08); }
.qr-code-frame img { display: block; width: 100%; height: auto; }
.qr-target { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.qr-target span { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.qr-target a { overflow: hidden; color: var(--accent); font-size: 10px; font-weight: 900; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.qr-actions { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 9px; margin-top: 11px; }
.qr-action { min-height: 43px; display: grid; padding: 0 12px; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 9px; font-weight: 900; text-align: center; text-decoration: none; cursor: pointer; }
.qr-action:hover { border-color: var(--accent); color: var(--accent); }
.qr-action--dark { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.qr-action--dark:hover { border-color: var(--accent); background: var(--accent); color: white; }
.qr-poster-card { display: grid; grid-template-columns: minmax(250px, .92fr) minmax(180px, .68fr); gap: 20px; }
.qr-poster-card > .qr-card-heading { grid-column: 1 / -1; }
.qr-poster-preview { position: relative; min-height: 470px; display: flex; align-items: center; overflow: hidden; flex-direction: column; padding: 25px 22px; border-radius: 17px; background: var(--sidebar); color: var(--sidebar-text); text-align: center; box-shadow: 0 20px 45px rgba(30,25,20,.16); isolation: isolate; }
.qr-poster-preview::before { content: ""; position: absolute; z-index: -2; inset: 0; opacity: .18; background: var(--qr-poster-bg-image, url("../assets/sandwich-grid.jpg")) center / cover; filter: grayscale(.45); }
.qr-poster-preview::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(155deg, rgba(29,28,24,.35), rgba(29,28,24,.94) 65%); }
.poster-mini-brand { display: flex; align-items: center; gap: 8px; align-self: flex-start; }
.poster-mini-brand i { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); font-family: Georgia, serif; font-size: 16px; }
.poster-mini-brand strong { font-size: 8px; letter-spacing: .12em; }
.qr-poster-preview > p { margin: 35px 0 8px; color: var(--lime); font-size: 8px; font-weight: 900; letter-spacing: .18em; }
.qr-poster-preview h3 { margin: 0; font-family: Georgia, serif; font-size: 33px; font-weight: 400; letter-spacing: -.045em; line-height: .94; }
.qr-poster-preview > img { width: min(190px, 76%); height: auto; margin: 25px auto 14px; padding: 8px; border-radius: 9px; background: #fffaf2; }
.qr-poster-preview > small { color: rgba(255,255,255,.62); font-size: 8px; }
.qr-poster-button { grid-column: 1; min-height: 47px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 17px; border-radius: 13px; background: var(--accent); color: white; font-size: 10px; font-weight: 900; text-decoration: none; }
.qr-poster-button:hover { background: var(--ink); color: var(--on-ink); }
.qr-poster-button span { font-size: 17px; }
.qr-tips { grid-column: 2; grid-row: 2 / span 2; display: grid; align-content: start; gap: 10px; }
.qr-tips > div { display: flex; align-items: flex-start; gap: 11px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.qr-tips b { width: 29px; height: 29px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 8px; }
.qr-tips p { margin: 0; }
.qr-tips strong { display: block; font-size: 10px; }
.qr-tips span { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.45; }

.device-switch { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); }
.device-switch button { min-height: 36px; padding: 0 13px; border: 0; border-radius: 99px; background: transparent; color: var(--muted); font-size: 9px; font-weight: 900; cursor: pointer; }
.device-switch button.is-active { background: var(--ink); color: var(--on-ink); }
.preview-stage { min-height: 680px; display: grid; padding: 28px; overflow: hidden; place-items: start center; border-radius: 22px; background: #ded7ce; }
.preview-browser { width: 100%; height: 650px; overflow: hidden; border: 1px solid rgba(0,0,0,.15); border-radius: 16px; background: white; box-shadow: 0 25px 70px rgba(42,30,20,.2); transition: width .3s ease; }
.preview-browser.is-mobile { width: 390px; max-width: 100%; }
.browser-bar { height: 37px; display: flex; align-items: center; gap: 6px; padding: 0 13px; border-bottom: 1px solid var(--line); background: #f3f0eb; }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #c9c4bd; }
.browser-bar i:first-child { background: #e87a63; }
.browser-bar span { margin-left: 8px; color: #8e887f; font-size: 8px; }
.preview-browser iframe { width: 100%; height: calc(100% - 37px); border: 0; background: var(--paper); }

.save-dock { position: fixed; z-index: 35; right: 0; bottom: 0; left: 248px; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 35px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: 0 -12px 35px color-mix(in srgb, var(--ink) 7%, transparent); backdrop-filter: blur(18px); }
.save-dock.is-context-hidden { display: none; }
.save-dock > div:first-child { display: flex; align-items: center; gap: 11px; }
.save-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(63,147,83,.1); }
.save-dock.is-dirty .save-dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(217,74,39,.1); }
.save-dock p { margin: 0; }
.save-dock strong { display: block; font-size: 10px; }
.save-dock small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.save-actions { display: flex; gap: 10px; }
.discard-button { min-height: 43px; padding: 0 17px; border: 1px solid var(--line); border-radius: 99px; background: transparent; font-size: 10px; font-weight: 900; cursor: pointer; }
.discard-button:hover { border-color: var(--ink); background: var(--surface); }
.sidebar-backdrop { display: none; }
.panel-toast { position: fixed; z-index: 100; right: 25px; top: 88px; max-width: 360px; padding: 13px 18px; border-radius: 99px; background: var(--ink); color: var(--on-ink); font-size: 11px; font-weight: 800; opacity: 0; pointer-events: none; transform: translateY(-10px); transition: opacity .2s ease, transform .2s ease; box-shadow: 0 12px 35px rgba(0,0,0,.2); }
.panel-toast.is-visible { opacity: 1; transform: translateY(0); }

html[data-theme="dark"] .login-error, html[data-theme="dark"] .unsaved-pill { color: color-mix(in srgb, var(--accent) 58%, white); }
html[data-theme="dark"] .activity-line { background: color-mix(in srgb, var(--green) 17%, var(--surface)); }
html[data-theme="dark"] .activity-line small { color: color-mix(in srgb, var(--green) 45%, var(--muted)); }
html[data-theme="dark"] .row-delete { color: color-mix(in srgb, var(--accent) 64%, white); }

html[data-motion="rich"] .login-visual::before { animation: login-image-breathe 18s ease-in-out infinite alternate; }
html[data-motion="rich"] .login-box { animation: login-box-arrive .78s .08s cubic-bezier(.22,1,.36,1) both; }
html[data-motion="rich"] .sidebar-brand { animation: sidebar-brand-arrive .65s cubic-bezier(.22,1,.36,1) both; }
html[data-motion="rich"] .sidebar-link { animation: sidebar-link-arrive .5s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(var(--nav-index, 0) * 45ms); }
html[data-motion="rich"] [data-section="dashboard"] .stat-card { animation: dashboard-card-arrive .65s cubic-bezier(.22,1,.36,1) both; }
html[data-motion="rich"] [data-section="dashboard"] .stat-card:nth-child(2) { animation-delay: 70ms; }
html[data-motion="rich"] [data-section="dashboard"] .stat-card:nth-child(3) { animation-delay: 140ms; }
html[data-motion="rich"] [data-section="dashboard"] .stat-card:nth-child(4) { animation-delay: 210ms; }
html[data-motion="rich"] .save-dock.is-dirty .save-dot { animation: save-pulse 1.8s ease-in-out infinite; }
html[data-motion="rich"][data-has-admin-background="true"] .panel-content-shell::before { animation: admin-background-drift 20s ease-in-out infinite alternate; }
html[data-motion="rich"] .media-group { animation: media-group-arrive .7s cubic-bezier(.22,1,.36,1) both; }
html[data-motion="rich"] .media-group:nth-child(2) { animation-delay: 70ms; }
html[data-motion="rich"] .media-group:nth-child(3) { animation-delay: 140ms; }
html[data-motion="rich"] .media-group:nth-child(4) { animation-delay: 210ms; }
html[data-motion="rich"] .media-setting:hover { animation: media-card-glow 1.8s ease-in-out infinite; }
@keyframes login-image-breathe { from { transform: scale(1.015); } to { transform: scale(1.085) translate3d(-1%, .5%, 0); } }
@keyframes login-box-arrive { from { opacity: 0; filter: blur(7px); transform: translateY(24px); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes sidebar-brand-arrive { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@keyframes sidebar-link-arrive { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes dashboard-card-arrive { from { opacity: 0; transform: translateY(20px) scale(.975); } to { opacity: 1; transform: none; } }
@keyframes save-pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 8%, transparent); } }
@keyframes admin-background-drift { from { background-position: 46% 48%; } to { background-position: 54% 52%; } }
@keyframes media-group-arrive { from { opacity: 0; filter: blur(6px); transform: translateY(22px); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes media-card-glow { 50% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 9%, transparent); } }

::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { clip-path: circle(0 at var(--theme-x, 90%) var(--theme-y, 42px)); animation: theme-reveal .65s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes theme-reveal { to { clip-path: circle(150vmax at var(--theme-x, 90%) var(--theme-y, 42px)); } }

:focus-visible { outline: 3px solid rgba(217,74,39,.5); outline-offset: 3px; }

@media (max-width: 1080px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .qr-layout { grid-template-columns: minmax(300px, .8fr) minmax(380px, 1.2fr); }
  .qr-poster-card { grid-template-columns: 1fr; }
  .qr-poster-card > .qr-card-heading, .qr-poster-button, .qr-tips { grid-column: 1; }
  .qr-tips { grid-row: auto; }
}

@media (max-width: 820px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-form-side { padding: 35px 22px; }
  .login-theme-toggle { top: 18px; right: 18px; }
  .login-box { width: min(480px, 100%); }
  .back-link { margin-bottom: 38px; }
  .login-mobile-mark { display: grid; margin-bottom: 30px; }

  .panel-app { display: block; }
  .panel-sidebar { position: fixed; left: 0; width: 260px; transform: translateX(-105%); transition: transform .25s ease; box-shadow: 20px 0 50px rgba(0,0,0,.22); }
  .panel-sidebar.is-open { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; z-index: 39; inset: 0; display: block; border: 0; background: rgba(20,15,11,.55); }
  .sidebar-toggle { display: grid; }
  .panel-topbar { min-height: 66px; padding: 0 17px; }
  .topbar-title { margin-right: auto; }
  .visit-site { display: none; }
  .panel-main { padding: 30px 17px 128px; }
  .panel-content-shell::before { left: 0; }
  .save-dock { left: 0; min-height: 83px; padding: 12px 17px max(12px, env(safe-area-inset-bottom)); }
  .qr-layout { grid-template-columns: 1fr; }
  .qr-code-frame { width: min(330px, 100%); }
  .motion-settings { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .login-box h2 { font-size: 47px; }
  .panel-topbar { gap: 10px; }
  .topbar-actions { gap: 8px; }
  .unsaved-pill { display: none; }
  .admin-avatar { width: 34px; height: 34px; }
  .panel-theme-toggle { width: 58px; height: 34px; padding-inline: 8px; }
  .panel-theme-toggle .admin-theme-thumb { width: 26px; height: 26px; }
  html[data-theme="dark"] .panel-theme-toggle .admin-theme-thumb { transform: translateX(26px); }
  .section-title-row { align-items: start; flex-direction: column; gap: 17px; }
  .today-label { margin: 0; }
  .section-title-row h1 { font-size: 42px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { min-height: 127px; gap: 10px; padding: 15px; }
  .stat-icon { width: 29px; height: 29px; }
  .stat-card strong { font-size: 24px; }
  .quick-actions { grid-template-columns: 1fr; }
  .quick-actions button { min-height: 78px; align-items: center; flex-direction: row; }
  .form-fields, .editor-fields { grid-template-columns: 1fr; }
  .contact-guide { align-items: flex-start; flex-direction: column; }
  .contact-editor-fields { grid-template-columns: 1fr; }
  .contact-editor-actions { align-items: stretch; flex-direction: column; }
  .contact-editor-actions > div { display: grid; grid-template-columns: 1fr 1fr; }
  .contact-editor-actions .row-delete { width: 100%; }
  .security-layout { grid-template-columns: 1fr; }
  .security-info-card { position: relative; top: auto; }
  .security-form { padding: 18px; }
  .theme-color-columns, .shared-color-fields { grid-template-columns: 1fr; }
  .visual-jump-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-settings-grid { grid-template-columns: 1fr; padding: 18px; }
  .theme-color-columns { padding: 18px 18px 0; }
  .shared-color-fields { padding: 13px 18px 18px; }
  .appearance-layout { grid-template-columns: 1fr; }
  .media-setting { grid-template-columns: 88px minmax(0, 1fr); }
  .media-preview { width: 88px; height: 88px; }
  .media-setting--avatar .media-preview { width: 78px; height: 78px; margin-inline: 5px; }
  .media-detail-line { align-items: start; flex-direction: column; gap: 3px; }
  .media-detail-line span { text-align: left; }
  .panel-field--full, .editor-actions { grid-column: 1; }
  .category-row { grid-template-columns: 38px 1fr auto; gap: 9px; padding: 12px; }
  .category-row .category-system-id { grid-column: 2 / -1; grid-row: 2; }
  .category-count { display: none; }
  .product-toolbar { grid-template-columns: 1fr; }
  #admin-product-result { padding-left: 2px; }
  .product-editor summary { grid-template-columns: 70px minmax(0,1fr) auto; gap: 11px; padding: 10px; }
  .editor-image { width: 70px; height: 57px; }
  .editor-price { display: none; }
  .editor-summary strong { font-size: 18px; }
  .editor-actions { align-items: stretch; flex-direction: column-reverse; }
  .editor-actions > div { display: grid; grid-template-columns: 1fr 1fr; }
  .product-image-source { grid-template-columns: 1fr; }
  .image-source-actions { display: grid; grid-template-columns: 1fr; }
  .image-upload-button, .image-source-actions .row-control { width: 100%; }
  .image-source-status { grid-column: 1; }
  .preview-stage { min-height: 600px; padding: 12px; }
  .preview-browser { height: 580px; }
  .qr-print-top { width: 100%; display: grid; place-items: center; text-decoration: none; }
  .qr-layout { grid-template-columns: 1fr; }
  .qr-card { padding: 19px; }
  .qr-code-frame { width: min(300px, 100%); }
  .qr-actions { grid-template-columns: 1fr 1fr; }
  .qr-action--dark { grid-column: 1 / -1; }
  .qr-poster-preview { min-height: 440px; }
  .save-dock > div:first-child { display: none; }
  .save-actions { width: 100%; display: grid; grid-template-columns: auto 1fr; }
  .save-actions .panel-primary { width: 100%; }
  .panel-toast { right: 14px; top: 77px; left: 14px; max-width: none; border-radius: 14px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
