/* 2026 full product redesign */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* { scrollbar-width: thin; scrollbar-color: var(--ds-slate-700) transparent; }
html { background: var(--color-background); }
body {
  min-height: 100dvh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  background:
    radial-gradient(900px 500px at 65% -20%, rgb(124 77 255 / .11), transparent 62%),
    radial-gradient(700px 460px at 105% 72%, rgb(39 211 232 / .055), transparent 68%),
    var(--color-background);
  color: var(--color-foreground);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: linear-gradient(rgb(255 255 255 / .018) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

button, a, [role="button"] { touch-action: manipulation; }
button {
  min-height: var(--button-height);
  border-radius: var(--button-radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface-raised);
  box-shadow: var(--ds-shadow-sm);
  transition: transform var(--ds-duration-fast) var(--ds-ease), border-color var(--ds-duration-fast), background var(--ds-duration-fast), color var(--ds-duration-fast), box-shadow var(--ds-duration-fast);
}
button:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--color-border-strong); background: var(--color-surface-hover); }
button:active:not(:disabled) { transform: scale(.975); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--color-ring) !important;
  outline-offset: 2px;
}
button.primary, .send-btn {
  background: var(--button-primary-bg) !important;
  border-color: rgb(146 112 255 / .72) !important;
  color: var(--color-on-primary) !important;
  box-shadow: 0 10px 24px rgb(109 61 245 / .28) !important;
}
button.primary:hover:not(:disabled), .send-btn:hover:not(:disabled) { background: linear-gradient(135deg, var(--ds-violet-500), var(--ds-violet-700)) !important; }
button.ghost { background: transparent; box-shadow: none; }
button.danger { color: var(--color-destructive); border-color: rgb(255 97 116 / .36); }

input[type=text], input[type=password], input[type=number], textarea, select {
  min-height: var(--input-height);
  border: 1px solid var(--input-border) !important;
  border-radius: var(--ds-radius-md) !important;
  background: var(--input-bg) !important;
  color: var(--color-foreground);
  transition: border-color var(--ds-duration-fast), box-shadow var(--ds-duration-fast), background var(--ds-duration-fast);
}
input:hover, textarea:hover, select:hover { border-color: var(--color-border-strong) !important; }
input:focus, textarea:focus, select:focus { border-color: var(--ds-violet-500) !important; box-shadow: 0 0 0 3px rgb(124 77 255 / .14) !important; background: rgb(11 14 22 / .94) !important; }
label { color: var(--ds-slate-300); font-weight: 500; }
.muted { color: var(--color-muted-foreground) !important; }

/* App shell */
.app { background: transparent; }
.sidebar {
  width: var(--app-sidebar-width);
  padding: 16px 12px 14px;
  background: rgb(11 14 22 / .9);
  border-right: 1px solid var(--color-border);
  backdrop-filter: blur(20px);
}
.brand {
  height: 52px;
  padding: 0 10px 0 46px;
  display: flex;
  align-items: center;
  position: relative;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--color-foreground) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}
.brand::before {
  content: "";
  position: absolute;
  left: 8px;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--ds-violet-500), var(--ds-violet-700));
  box-shadow: 0 0 0 1px rgb(255 255 255 / .1) inset, 0 8px 20px rgb(109 61 245 / .3);
}
.brand::after { content: "AI"; position: absolute; left: 14px; color: white; font-size: 10px; font-weight: 700; letter-spacing: -.04em; }
.nav { gap: 6px; margin-top: 12px; }
.nav-item {
  min-height: 44px;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--ds-radius-md);
  color: var(--color-muted-foreground);
  cursor: pointer;
  transition: color var(--ds-duration-fast), background var(--ds-duration-fast), border-color var(--ds-duration-fast), transform var(--ds-duration-fast) var(--ds-ease);
}
.nav-item:hover { color: var(--color-foreground); background: rgb(255 255 255 / .035); transform: translateX(2px); }
.nav-item.active { color: white; background: linear-gradient(90deg, rgb(124 77 255 / .18), rgb(124 77 255 / .055)); border-color: rgb(146 112 255 / .24); box-shadow: none; }
.nav-item.active::before { content: ""; position: absolute; left: -1px; width: 3px; height: 20px; border-radius: 999px; background: var(--ds-violet-500); box-shadow: 0 0 14px rgb(146 112 255 / .7); }
.nav-item { position: relative; }
.nav-item .ic { width: 18px; height: 18px; font-size: 0; opacity: .9; background: currentColor; mask: center / contain no-repeat; }
.nav-item[data-view="chat"] .ic, .nav-item[href="/"] .ic { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8.625 12a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm3.75 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm3.75 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0ZM21 12c0 4.142-4.03 7.5-9 7.5a10.7 10.7 0 0 1-3.9-.72L3 20.25l1.47-3.675A6.94 6.94 0 0 1 3 12c0-4.142 4.03-7.5 9-7.5s9 3.358 9 7.5Z'/%3E%3C/svg%3E"); }
.nav-item[data-view="fashion"] .ic { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m9 5 3-2 3 2 4 1.5-2 4-2-1V21H9V9.5l-2 1-2-4L9 5Z'/%3E%3C/svg%3E"); }
.nav-item[data-view="tools"] .ic { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M11.42 15.17 17.25 21A2.65 2.65 0 1 0 21 17.25l-5.83-5.83M11.42 15.17l2.83-2.83-3.53-3.53.71-.71a4 4 0 0 0-5.66-5.66L3.64 4.57l3.54 3.54-.71.7 3.53 3.54 1.42 2.82Z'/%3E%3C/svg%3E"); }
.nav-item[href="/admin"] .ic, .nav-item.active:not([data-view]) .ic { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9.594 3.94c.09-.542.56-.94 1.11-.94h2.592c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a8.2 8.2 0 0 1 0 .255c-.008.378.137.75.43.992l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.6 6.6 0 0 1-.22.127c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.02-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.5 6.5 0 0 1-.22-.127c-.325-.196-.72-.257-1.075-.124l-1.217.456a1.125 1.125 0 0 1-1.37-.49L3.58 15.378a1.125 1.125 0 0 1 .26-1.431l1.003-.827c.293-.242.438-.614.43-.992a6.8 6.8 0 0 1 0-.255c.008-.379-.137-.75-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.298-2.247a1.125 1.125 0 0 1 1.369-.491l1.217.456c.355.133.75.072 1.076-.124.072-.044.146-.086.22-.127.331-.184.581-.496.644-.87l.213-1.281Z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z'/%3E%3C/svg%3E"); }
.sidebar-foot { border-top: 1px solid var(--color-border); padding: 14px 4px 0; gap: 10px; }
.user-card { padding: 10px; border: 1px solid var(--color-border); border-radius: var(--ds-radius-md); background: rgb(255 255 255 / .025); }

.main { background: transparent; min-width: 0; }
.main::before { display: none; }
.topbar {
  min-height: var(--app-topbar-height);
  height: var(--app-topbar-height);
  padding: 0 22px;
  border-bottom: 1px solid var(--color-border);
  background: rgb(7 9 15 / .66);
  backdrop-filter: blur(18px);
}
.topbar-title { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.quota-text { color: var(--ds-slate-300); background: rgb(255 255 255 / .035); border-color: var(--color-border); }

/* Chat workspace */
.chat-layout { padding: 0; gap: 0; background: transparent; }
.chat-history-panel, .config-panel { border: 0; border-radius: 0; background: rgb(11 14 22 / .56); }
.chat-history-panel { width: 252px; border-right: 1px solid var(--color-border); }
.config-panel { width: 292px; border-left: 1px solid var(--color-border); }
.chat-main { border: 0; border-radius: 0; background: transparent; }
.history-inner { padding: 18px 12px; }
.ch-head { padding: 0 4px 12px; }
.ch-title, .cp-title { color: var(--color-foreground); font-weight: 600; }
.ch-item { border: 1px solid transparent; border-radius: var(--ds-radius-md); min-height: 42px; }
.ch-item:hover { background: rgb(255 255 255 / .035); border-color: var(--color-border); }
.ch-item.active { background: rgb(124 77 255 / .12); border-color: rgb(146 112 255 / .22); }
.messages-wrap { background: transparent; }
.messages { padding: 28px clamp(18px, 4vw, 64px) 14px; }
.msg { max-width: 900px; }
.msg-bubble { border-radius: var(--ds-radius-lg); border-color: var(--color-border); background: var(--card-bg); }
.msg.user .msg-bubble { background: linear-gradient(145deg, rgb(124 77 255 / .2), rgb(15 19 29 / .92)); border-color: rgb(146 112 255 / .3); }
.msg-avatar { background: var(--color-surface-raised); border-color: var(--color-border); }
.msg.user .msg-avatar { background: var(--button-primary-bg); }
.welcome { max-width: 720px; padding: 11vh 24px 0; text-align: left; }
.welcome-badge { display: inline-flex; padding: 6px 10px; border: 1px solid rgb(39 211 232 / .24); border-radius: 999px; color: var(--color-accent); background: rgb(39 211 232 / .06); font-size: 11px; font-weight: 600; letter-spacing: .14em; }
.welcome-title { max-width: 620px; margin-top: 18px; font-size: clamp(34px, 4vw, 56px); line-height: 1.06; letter-spacing: -.045em; background: linear-gradient(120deg, #fff 12%, #c7bbff 58%, #83e9f3); -webkit-background-clip: text; color: transparent; }
.welcome-sub { margin-top: 14px; font-size: 15px; }
.composer-shell { padding: 12px clamp(18px, 4vw, 64px) 20px; background: linear-gradient(to top, var(--color-background) 66%, transparent); }
.composer { max-width: 900px; margin: 0 auto; border: 1px solid var(--color-border-strong); border-radius: var(--ds-radius-xl); background: rgb(15 19 29 / .9); box-shadow: 0 22px 60px rgb(0 0 0 / .32), 0 0 0 1px rgb(255 255 255 / .025) inset; backdrop-filter: blur(18px); }
.composer:focus-within { border-color: rgb(146 112 255 / .54); box-shadow: 0 22px 60px rgb(0 0 0 / .32), 0 0 0 3px rgb(124 77 255 / .09); }
.composer textarea { background: transparent !important; border: 0 !important; box-shadow: none !important; font-size: 14px; }
.composer-bar { border-top-color: var(--color-border); }
.composer-btn { box-shadow: none; background: transparent; border-color: transparent; }
.composer-btn:hover:not(:disabled) { background: rgb(255 255 255 / .055); }
.send-btn { border-radius: 12px !important; }
.composer-btn > span:first-child:not(:only-child) { display: none; }
.composer-btn:not(.icon)::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: currentColor;
  mask: center / contain no-repeat;
}
#agent-btn::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9.75 3.104v5.714a2.25 2.25 0 0 1-.659 1.591L5 14.5m5.25-11.396c.252.023.502.05.75.082m-.75-.082A24.3 24.3 0 0 0 8.25 3m3 5.818V5.25m0 3.568a2.25 2.25 0 0 0 .659 1.591L16 14.5m-4.75-9.25c.835.08 1.653.184 2.45.31m-5.2 8.94h7m-7 0a3 3 0 1 0 0 6h7a3 3 0 1 0 0-6'/%3E%3C/svg%3E"); }
#memory-btn::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09Zm8.446-7.189L18 9.75l-.259-1.035a3.4 3.4 0 0 0-2.456-2.456L14.25 6l1.035-.259a3.4 3.4 0 0 0 2.456-2.456L18 2.25l.259 1.035a3.4 3.4 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.4 3.4 0 0 0-2.456 2.456Z'/%3E%3C/svg%3E"); }
#think-btn::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9.663 17h4.673M12 3a6.25 6.25 0 0 0-3.995 11.06c.742.616 1.245 1.39 1.245 2.19h5.5c0-.8.503-1.574 1.245-2.19A6.25 6.25 0 0 0 12 3Z'/%3E%3Cpath stroke-linecap='round' d='M10 21h4'/%3E%3C/svg%3E"); }
#expert-btn::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Ccircle cx='12' cy='12' r='4.5'/%3E%3Ccircle cx='12' cy='12' r='1' fill='black' stroke='none'/%3E%3C/svg%3E"); }
.model-picker-btn::before { display: none; }
.popover, .modal-card, .ag-modal { border-color: var(--color-border-strong); background: rgb(15 19 29 / .96); box-shadow: var(--ds-shadow-lg); backdrop-filter: blur(22px); }
.cp-pane { padding: 18px 16px; }
.attach-cell, .agent-item, .skill-item, .panel, .fashion-reference-box, .fashion-result-box { background: var(--card-bg) !important; border-color: var(--card-border) !important; border-radius: var(--card-radius) !important; }

/* Fashion workbench */
.fashion-workbench { padding: 0; }
.fashion-main { grid-template-columns: 156px minmax(340px, 430px) minmax(400px, 1fr); gap: 0; padding: 0; border: 0; background: transparent; }
.fashion-side { padding: 16px 10px; border: 0; border-right: 1px solid var(--color-border); border-radius: 0; background: rgb(11 14 22 / .56); }
.fashion-menu-item { min-height: 42px; border: 1px solid transparent; background: transparent; box-shadow: none; color: var(--color-muted-foreground); }
.fashion-menu-item:hover { background: rgb(255 255 255 / .035); color: var(--color-foreground); }
.fashion-menu-item.active { color: white; background: rgb(124 77 255 / .14); border-color: rgb(146 112 255 / .22); }
.fashion-config { padding: 18px; border-right: 1px solid var(--color-border); overflow: auto; }
.fashion-preview-pane { padding: 18px; background: rgb(7 9 15 / .3); }
.fashion-panel { border-color: var(--color-border); background: transparent; border-radius: var(--ds-radius-lg); }
.fashion-chip, .fashion-tag { background: rgb(255 255 255 / .035); border-color: var(--color-border); color: var(--ds-slate-300); box-shadow: none; }
.fashion-chip:hover, .fashion-tag:hover { border-color: var(--color-border-strong); box-shadow: none; }
.fashion-chip.active, .fashion-tag.active { color: white; background: rgb(124 77 255 / .16); border-color: rgb(146 112 255 / .4); box-shadow: none; }

/* Admin */
.admin-main { padding: 28px clamp(18px, 3vw, 40px) !important; background: transparent !important; }
.admin-main .section { max-width: 1440px; margin: 0 auto 32px; }
.admin-main .section h2 { font-size: 18px; letter-spacing: -.02em; }
.admin-main .panel { padding: 20px; box-shadow: none; backdrop-filter: none; }
.admin-main table { font-size: 13px; }
.admin-main th { color: var(--color-muted-foreground); text-transform: uppercase; letter-spacing: .06em; font-size: 10px; }
.admin-main th, .admin-main td { padding: 12px 10px; border-bottom-color: var(--color-border); }
.admin-main tbody tr:hover { background: rgb(124 77 255 / .055) !important; }
.pill { border: 1px solid currentColor; background: transparent !important; }

/* Login */
body:has(> .card) { display: flex !important; align-items: center !important; justify-content: flex-end !important; padding: 48px max(7vw, 48px); background: radial-gradient(760px 560px at 18% 48%, rgb(124 77 255 / .16), transparent 66%), radial-gradient(560px 360px at 82% -10%, rgb(39 211 232 / .08), transparent 70%), var(--color-background) !important; }
body:has(> .card)::after { content: "把灵感变成可交付的作品\A\A对话、视觉生成与智能体协作，\A在一个专注的工作空间里完成。"; white-space: pre-wrap; position: fixed; top: 50%; left: max(7vw, 48px); width: min(520px, 40vw); transform: translateY(-50%); color: var(--ds-slate-300); font-size: 18px; line-height: 1.7; letter-spacing: -.01em; }
body:has(> .card)::before { content: "AI CHAT HUB  /  CREATIVE OS"; position: fixed; top: calc(50% - 170px); left: max(7vw, 48px); z-index: 1; color: var(--color-accent); font-size: 11px; font-weight: 600; letter-spacing: .16em; background: none; mask-image: none; }
body > .card { width: min(440px, 100%) !important; padding: 36px !important; border: 1px solid var(--color-border-strong) !important; border-radius: 24px !important; background: rgb(15 19 29 / .86) !important; box-shadow: var(--ds-shadow-lg) !important; backdrop-filter: blur(22px) !important; }
body > .card::before { border-radius: 24px !important; border-color: rgb(146 112 255 / .18) !important; }
body > .card h1 { margin-bottom: 8px !important; font-size: 30px !important; letter-spacing: -.04em !important; background: linear-gradient(120deg, white, #bcaeff 62%, #76e7f2) !important; -webkit-background-clip: text !important; color: transparent !important; }
body > .card .sub { margin-bottom: 28px !important; color: var(--color-muted-foreground) !important; }
body > .card .tabs { gap: 6px !important; padding: 4px; border: 1px solid var(--color-border) !important; border-radius: 12px; background: rgb(7 9 15 / .52); }
body > .card .tab { flex: 1; min-height: 38px; display: grid; place-items: center; padding: 0 10px !important; margin: 0 !important; border: 0 !important; border-radius: 9px; color: var(--color-muted-foreground) !important; }
body > .card .tab.active { color: white !important; background: rgb(124 77 255 / .16); box-shadow: 0 0 0 1px rgb(146 112 255 / .2) inset; }
body > .card .field { margin-bottom: 16px; }
body > .card .actions button { height: 44px !important; margin-top: 6px; }

@media (max-width: 1380px) {
  .fashion-main { grid-template-columns: 146px minmax(330px, 1fr); }
  .fashion-preview-pane { grid-column: 1 / -1; border-top: 1px solid var(--color-border); }
}
@media (max-width: 1000px) {
  :root { --app-sidebar-width: 82px; }
  .brand { padding: 0; font-size: 0; }
  .brand::before { left: 14px; }
  .brand::after { left: 20px; }
  .nav-item { justify-content: center; padding: 0; }
  .nav-item > span:last-child, .sidebar-foot .user-card { display: none; }
  .sidebar-foot button { font-size: 0; }
  .sidebar-foot button::before { content: "退出"; font-size: 12px; }
  .config-panel { display: none; }
}
@media (max-width: 760px) {
  :root { --app-sidebar-width: 0px; --app-topbar-height: 58px; }
  .app { display: block; }
  .sidebar { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; width: 100%; height: 68px; padding: 8px max(10px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); border: 0; border-top: 1px solid var(--color-border); }
  .brand, .sidebar-foot { display: none; }
  .nav { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .nav-item { min-height: 48px; flex-direction: column; gap: 2px; font-size: 10px; }
  .nav-item > span:last-child { display: block; }
  .nav-item.active::before { left: 50%; top: -8px; width: 24px; height: 3px; transform: translateX(-50%); }
  .main { height: calc(100dvh - 68px); }
  .topbar { padding: 0 14px; }
  .topbar-actions { gap: 4px; }
  .quota-text { display: none; }
  .chat-history-panel { display: none; }
  .messages { padding: 20px 14px 8px; }
  .welcome { padding: 8vh 10px 0; }
  .welcome-title { font-size: 34px; }
  .composer-shell { padding: 10px 10px 14px; }
  .composer-bar-left .composer-btn:not(.icon) span:last-child { display: none; }
  .fashion-main { grid-template-columns: 1fr; }
  .fashion-side { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--color-border); }
  .fashion-menu-item { min-width: max-content; padding: 0 14px; }
  .fashion-config { padding: 12px; border-right: 0; }
  .admin-main { padding: 18px 12px 90px !important; }
  .admin-main .panel { padding: 14px; overflow-x: auto; }
  .form-grid { grid-template-columns: 1fr !important; }
  .form-grid .full { grid-column: auto !important; }
  body:has(> .card) { padding: 18px; }
  body:has(> .card) { justify-content: center !important; }
  body:has(> .card)::after, body:has(> .card)::before { display: none; }
  body > .card { width: calc(100vw - 36px) !important; max-width: 440px !important; padding: 28px 22px !important; }
}

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