:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #202329;
  background: #ffffff;
  --blue: #4d6bfe;
  --blue-strong: #3158f6;
  --blue-soft: #edf3ff;
  --ink: #202329;
  --muted: #858b98;
  --line: #e8ebf1;
  --sidebar: #f6f7fb;
  --panel: #f9fafc;
  --white: #ffffff;
  --shadow: 0 12px 34px rgba(32, 35, 41, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--white);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.app-shell {
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  height: 100vh;
  min-height: 700px;
  background: var(--white);
}

.sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  align-self: start;
  height: 100vh;
  max-height: 100vh;
  background: var(--sidebar);
  border-right: 1px solid #ebeef4;
  padding: 22px 16px 16px;
}

.sidebar-head,
.sidebar-tools,
.stage-top,
.composer-actions,
.composer-left,
.composer-right,
.section-title,
.drawer-head,
.drawer-actions,
.profile-row,
.inline-actions {
  display: flex;
  align-items: center;
}

.sidebar-head,
.stage-top,
.section-title,
.drawer-head {
  justify-content: space-between;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-size: 25px;
  letter-spacing: 0;
}

.brand-mark,
.logo-orbit,
.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 780;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
}

.logo-orbit {
  width: 46px;
  height: 46px;
  font-size: 22px;
}

.app-icon {
  overflow: hidden;
  border-radius: 12px;
  background: transparent;
  box-shadow: 0 8px 20px rgba(41, 91, 255, 0.18);
}

.brand-mark.app-icon {
  border-radius: 10px;
}

.logo-orbit.app-icon {
  border-radius: 14px;
}

.app-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.ghost-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: transparent;
  color: #737b88;
  font-size: 18px;
  font-weight: 760;
  cursor: pointer;
}

.sidebar-tools .ghost-icon {
  width: 40px;
  height: 40px;
  font-size: 21px;
  color: #667085;
}

.ghost-icon:hover,
.ghost-icon.active,
.foot-action:hover {
  background: #eceff6;
  color: #333842;
}

.new-chat {
  width: 100%;
  min-height: 48px;
  margin: 26px 0 14px;
  border-radius: 24px;
  background: var(--white);
  color: #202329;
  font-weight: 660;
  box-shadow: 0 6px 18px rgba(33, 38, 49, 0.08);
  cursor: pointer;
}

.project-switcher {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
}

.project-switcher label {
  padding-left: 8px;
  color: #9298a5;
  font-size: 12px;
  font-weight: 700;
}

.project-switcher > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px 32px;
  align-items: center;
  gap: 6px;
}

.project-switcher select {
  min-width: 0;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0 10px;
  color: #252932;
  outline: 0;
}

.project-switcher .ghost-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #fff;
}

.history-search {
  display: none;
  margin-bottom: 14px;
}

.history-search.show {
  display: block;
}

.history-search input,
.login-panel input,
.user-form input,
.user-form select,
.template-editor input,
.template-editor textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  outline: none;
}

.history-search input {
  height: 38px;
  border-radius: 14px;
  padding: 0 12px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #b9c8ff;
  box-shadow: 0 0 0 3px rgba(77, 107, 254, 0.12);
}

.history-nav {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.history-list {
  display: grid;
  gap: 22px;
}

.history-group {
  display: grid;
  gap: 6px;
}

.history-group > span {
  color: #9298a5;
  font-size: 13px;
  padding: 0 8px 4px;
}

.history-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  min-height: 38px;
  border-radius: 10px;
}

.history-row:hover,
.history-row.active {
  background: #eceff6;
}

.history-item {
  width: 100%;
  min-height: 38px;
  border-radius: 10px;
  padding: 0 8px 0 10px;
  background: transparent;
  color: #252932;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.history-more {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  opacity: 0;
}

.history-row:hover .history-more,
.history-row.active .history-more,
.history-more:focus-visible {
  opacity: 1;
}

.history-more:hover {
  background: #dfe3ec;
}

.history-menu-wrap {
  position: relative;
}

.history-menu {
  position: absolute;
  top: 30px;
  right: 0;
  z-index: 40;
  display: none;
  min-width: 154px;
  border: 1px solid #d8dbe3;
  border-radius: 16px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 18px 44px rgba(21, 27, 40, 0.18);
}

.history-menu.open {
  display: grid;
}

.history-menu button {
  display: flex;
  align-items: center;
  min-height: 36px;
  gap: 8px;
  border-radius: 10px;
  padding: 0 10px;
  background: transparent;
  color: #252932;
  text-align: left;
  cursor: pointer;
}

.history-menu button:hover {
  background: #f1f1f2;
}

.history-menu button.danger {
  color: #c22d2d;
}

.history-nav {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-bottom: 12px;
}

.sidebar-foot {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #eceff4;
}

.foot-action {
  min-height: 36px;
  border-radius: 12px;
  background: transparent;
  color: #545c69;
  text-align: left;
  padding: 0 10px;
  cursor: pointer;
}

.profile-row {
  gap: 10px;
  min-height: 48px;
  padding: 6px 2px;
}

.profile-row > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.profile-row strong,
.profile-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-row strong {
  font-size: 14px;
}

.profile-row span {
  color: var(--muted);
  font-size: 12px;
}

.profile-action-button,
.logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 44px;
  height: 34px;
  gap: 5px;
  border-radius: 12px;
  background: transparent;
  color: #6f7785;
  cursor: pointer;
}

.profile-action-button:hover {
  background: #eef2ff;
  color: var(--blue-strong);
}

.logout-button:hover {
  background: #eceff6;
  color: #c22d2d;
}

.logout-icon {
  font-size: 18px;
  line-height: 1;
}

.logout-text {
  font-size: 12px;
  font-weight: 650;
}

.chat-stage {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  height: 100vh;
  position: relative;
  padding: 22px 52px 24px;
  background: #ffffff;
}

.stage-top {
  min-height: 40px;
  align-items: flex-start;
  gap: 18px;
}

#expandSidebar {
  display: none;
}

.stage-context {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 4px;
}

.stage-context h2 {
  max-width: 520px;
  overflow: hidden;
  color: #171a20;
  font-size: 16px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-mode {
  color: #4d6bfe;
  font-size: 12px;
  font-weight: 650;
}

.system-pills {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.status-pill,
.tenant-badge,
.soft-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0 12px;
  background: var(--white);
  color: #596170;
  font-size: 13px;
}

.status-pill.good {
  background: #edf8f3;
  color: #12624f;
  border-color: #cdeee3;
}

.status-pill.warn {
  background: #fff7ed;
  color: #9a5314;
  border-color: #f3dcc0;
}

.empty-hero {
  align-self: center;
  display: grid;
  justify-items: center;
  gap: 28px;
  transform: translateY(-54px);
}

.hero-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  color: #171a20;
  font-size: 30px;
  font-weight: 760;
  letter-spacing: 0;
}

h2 {
  font-size: 20px;
  letter-spacing: 0;
}

h3 {
  font-size: 14px;
  color: #343a46;
}

.suggestion-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.suggestion-chip {
  min-width: 148px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: #8a8f99;
  font-weight: 680;
  cursor: pointer;
}

.suggestion-chip:hover {
  border-color: #d7dded;
  color: #555d6b;
  box-shadow: 0 8px 22px rgba(34, 39, 52, 0.06);
}

.conversation-active {
  display: none;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  max-width: 1000px;
  width: 100%;
  justify-self: center;
  padding-top: 8px;
  overflow: hidden;
}

.conversation-active.show {
  display: grid;
}

.conversation-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
  padding: 0 78px 24px 10px;
}

.message-list::-webkit-scrollbar {
  width: 8px;
}

.message-list::-webkit-scrollbar-track {
  background: transparent;
}

.message-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(24, 30, 42, 0.26);
}

.message {
  display: grid;
  gap: 7px;
  max-width: min(760px, 88%);
}

.message.user {
  align-self: flex-end;
  max-width: min(560px, 72%);
}

.message.assistant {
  max-width: min(760px, 82%);
}

.message-role {
  color: var(--muted);
  font-size: 12px;
}

.message.user .message-role {
  text-align: right;
}

.message-bubble {
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.message.assistant .message-bubble {
  padding: 0;
  background: transparent;
  color: #252932;
  font-size: 16px;
}

.assistant-text + .assistant-text,
.assistant-text + .code-block,
.code-block + .assistant-text,
.code-block + .code-block {
  margin-top: 14px;
}

.code-block {
  overflow: hidden;
  margin: 0;
  border: 1px solid #e5e8ef;
  border-radius: 14px;
  background: #f6f7fa;
  white-space: normal;
}

.code-block figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  border-bottom: 1px solid #e5e8ef;
  padding: 0 12px 0 14px;
  color: #6f7785;
  font-size: 12px;
  font-weight: 650;
}

.code-block figcaption div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-block button {
  min-height: 28px;
  border-radius: 9px;
  padding: 0 10px;
  background: #ffffff;
  color: #4d5564;
  cursor: pointer;
}

.code-block button:hover {
  background: #eef2ff;
  color: var(--blue-strong);
}

.code-block pre {
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px;
}

.code-block code {
  font-family: "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.message.user .message-bubble {
  border-radius: 18px;
  padding: 12px 16px;
  background: var(--blue);
  color: var(--white);
}

.message-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  opacity: 0.82;
}

.message-actions button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: transparent;
  color: #7c8492;
  cursor: pointer;
}

.message-actions button:hover {
  background: #f1f3f7;
  color: #222733;
}

.recover-job-card,
.thinking-card {
  display: grid;
  gap: 14px;
  max-width: 680px;
  border: 1px solid #e6ebf4;
  border-radius: 16px;
  padding: 14px;
  background: #fbfcff;
  white-space: normal;
}

.thinking-card {
  display: block;
  width: auto;
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.thinking-card-head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #343a46;
  font-size: 14px;
  font-weight: 700;
}

.recover-job-card {
  border-color: #f3dcc0;
  background: #fffaf3;
}

.recover-job-card strong {
  color: #8a3b12;
}

.recover-job-card p {
  margin: 0;
  color: #9a5314;
  font-size: 13px;
}

.job-card-actions button:not(.danger-link) {
  min-height: 34px;
  border-radius: 11px;
  padding: 0 13px;
  background: #eef2ff;
  color: var(--blue-strong);
  font-weight: 720;
  cursor: pointer;
}

.tool-menu-divider {
  height: 1px;
  margin: 6px 12px;
  background: var(--line);
}

.template-quick-list {
  display: contents;
}

.job-partial-output {
  max-height: 180px;
  overflow: auto;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  color: #343a46;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.job-card-actions {
  display: flex;
  justify-content: flex-end;
}

.message-attachments,
.generated-assets {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  white-space: normal;
}

.file-card {
  display: grid;
  align-items: center;
  gap: 12px;
  max-width: 640px;
  border: 1px solid #e5e8ef;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fbfcff;
}

.file-card {
  grid-template-columns: 34px minmax(0, 1fr);
}

.file-card-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #eef2ff;
  color: var(--blue);
  font-weight: 750;
}

.file-card-icon svg,
.file-thumb svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.file-card strong,
.generated-file-meta strong {
  display: block;
  overflow: hidden;
  color: #252932;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-card span,
.generated-file-meta > span {
  display: block;
  overflow: hidden;
  color: #858b98;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.generated-file-meta {
  display: block;
  min-width: 0;
  text-align: left;
}

.generated-file-list {
  width: min(640px, 100%);
  overflow: hidden;
  border: 1px solid #e5e8ef;
  border-radius: 12px;
  background: #fff;
}

.generated-file-row {
  display: grid;
  min-height: 64px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  background: #fff;
  transition: background 0.16s ease;
}

.generated-file-row + .generated-file-row {
  border-top: 1px solid #eceef3;
}

.generated-file-open {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.generated-file-open:focus-visible {
  outline: 2px solid rgba(79, 104, 255, 0.42);
  outline-offset: -3px;
}

.file-type-badge {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #e3e7f0;
  border-radius: 10px;
  background: #f2f4fa;
  color: #657083;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0;
}

.generated-image-actions a {
  color: var(--blue-strong);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.generated-file-download {
  display: inline-grid;
  min-width: 56px;
  min-height: 44px;
  align-self: center;
  place-items: center;
  margin-right: 8px;
  border-radius: 10px;
  padding: 0 9px;
  color: var(--blue-strong);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease;
}

.generated-file-download:hover,
.generated-file-download:focus-visible {
  background: #eef2ff;
}

.generated-file-row:has(.generated-file-open:hover),
.generated-file-row:has(.generated-file-open:focus-visible) {
  background: #f8f9fc;
}

.generated-image-card {
  position: relative;
  width: min(var(--asset-card-width, 420px), 100%);
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #f4f6fb;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
  white-space: normal;
}

.generated-image-button {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--asset-ratio, 1 / 1);
  overflow: hidden;
  padding: 0;
  border-radius: 14px;
  background: #eef1f7;
  cursor: zoom-in;
}

.generated-image-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #eef1f7;
}

.image-hover-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(15, 23, 42, 0.28);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  transition: opacity 140ms ease;
}

.generated-image-card:hover .image-hover-mask {
  opacity: 1;
}

.generated-image-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.generated-image-card:hover .generated-image-actions,
.generated-image-actions:focus-within {
  opacity: 1;
  transform: translateY(0);
}

.generated-image-actions button,
.generated-image-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #273044;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
  cursor: pointer;
}

.generated-image-actions button:hover,
.generated-image-actions a:hover {
  background: #ffffff;
  color: var(--blue-strong);
}

.thinking-bubble {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  gap: 10px;
  border-radius: 17px;
  padding: 0 14px;
  background: #f4f6fb;
  color: #667085;
}

.thinking-dots {
  display: inline-flex;
  width: 34px;
  flex: 0 0 34px;
  align-items: center;
  gap: 5px;
}

.thinking-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  animation: thinkingPulse 1.1s infinite ease-in-out;
}

.thinking-dots i:nth-child(2) {
  animation-delay: 0.14s;
  opacity: 0.65;
}

.thinking-dots i:nth-child(3) {
  animation-delay: 0.28s;
  opacity: 0.45;
}

@keyframes thinkingPulse {
  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 1;
  }
}

.composer-shell {
  width: min(860px, calc(100vw - 420px));
  min-height: 118px;
  justify-self: center;
  position: relative;
  z-index: 20;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(35, 40, 52, 0.08);
  padding: 14px 14px 12px 18px;
  overflow: visible;
}

.composer-shell textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  max-height: 170px;
  padding: 0;
  resize: none;
  border: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
}

.composer-shell textarea:focus {
  border: 0;
  outline: none;
  box-shadow: none;
}

.composer-shell textarea::placeholder {
  color: #b3bbc8;
}

.composer-actions {
  justify-content: space-between;
  gap: 12px;
  position: relative;
}

.composer-left {
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
}

.composer-right {
  gap: 10px;
  position: relative;
}

.round-tool,
.voice-button,
.model-button {
  display: inline-grid;
  place-items: center;
  min-height: 40px;
  border-radius: 999px;
  cursor: pointer;
}

.round-tool {
  width: 40px;
  background: #f4f5f7;
  color: #14171d;
  font-size: 25px;
  font-weight: 350;
}

.model-button {
  padding: 0 18px;
  background: #f1f1f2;
  color: #8a8f98;
  font-weight: 680;
}

.voice-button {
  width: 38px;
  background: transparent;
  color: #161a22;
  font-size: 20px;
}

.file-input {
  display: none;
}

.file-tray {
  display: none;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 22px;
}

.file-tray.show {
  display: flex;
}

.file-chip {
  display: inline-flex;
  align-items: center;
  max-width: min(320px, 100%);
  min-height: 34px;
  gap: 8px;
  border: 1px solid #dfe4ee;
  border-radius: 999px;
  padding: 0 8px 0 12px;
  background: #f7f8fb;
  color: #242833;
  font-size: 13px;
}

.file-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-chip small {
  flex: none;
  color: #8b919c;
}

.file-chip button {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: transparent;
  color: #747b88;
  cursor: pointer;
}

.file-chip button:hover {
  background: #e9ebef;
  color: #171a20;
}

.round-tool:hover,
.voice-button:hover,
.model-button:hover {
  background: #e9ebef;
}

.tool-menu,
.model-menu {
  position: absolute;
  z-index: 80;
  display: none;
  border: 1px solid #d8dbe3;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(21, 27, 40, 0.16);
  padding: 10px;
}

.tool-menu.open,
.model-menu.open {
  display: grid;
}

.tool-menu {
  left: 0;
  bottom: 50px;
  width: min(640px, calc(100vw - 420px));
  gap: 2px;
}

.tool-menu button {
  display: grid;
  grid-template-columns: 30px auto 1fr;
  align-items: center;
  min-height: 48px;
  border-radius: 12px;
  padding: 0 12px;
  background: transparent;
  color: #171a20;
  text-align: left;
  cursor: pointer;
}

.tool-menu button:hover,
.model-menu button:hover {
  background: #f1f1f2;
}

.tool-menu strong {
  font-weight: 650;
}

.tool-menu span {
  color: #8b919c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-menu {
  right: 52px;
  bottom: 50px;
  width: 240px;
  max-height: min(560px, calc(100vh - 150px));
  overflow-y: auto;
  gap: 4px;
}

.model-menu-group {
  display: grid;
  gap: 3px;
}

.model-menu-group > span,
.model-menu-loading {
  padding: 7px 14px 4px;
  color: #8b919c;
  font-size: 12px;
  font-weight: 650;
}

.model-menu button {
  min-height: 40px;
  border-radius: 12px;
  padding: 0 14px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-menu .checked {
  font-weight: 760;
}

.model-menu hr {
  width: calc(100% - 20px);
  border: 0;
  border-top: 1px solid var(--line);
}

.send-button,
.login-submit {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #aebdff;
  color: var(--white);
  font-size: 24px;
  font-weight: 760;
  cursor: pointer;
}

.send-button:hover,
.login-submit:hover {
  background: var(--blue);
}

.send-button:disabled,
.login-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.work-drawer,
.admin-drawer {
  position: fixed;
  top: 24px;
  right: 18px;
  bottom: 24px;
  z-index: 120;
  display: none;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(21, 27, 40, 0.18);
  padding: 18px;
}

.work-drawer {
  width: min(760px, calc(100vw - 36px));
}

.admin-drawer {
  width: min(920px, calc(100vw - 36px));
}

.admin-drawer {
  bottom: max(24px, env(safe-area-inset-bottom));
}

.work-drawer.open,
.admin-drawer.open {
  display: block;
}

.asset-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
}

.asset-preview-modal.open {
  display: block;
}

.asset-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 18, 0.78);
}

.asset-preview-dialog {
  position: absolute;
  inset: 20px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(10, 14, 23, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.asset-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 16px 0 18px;
  color: rgba(248, 250, 252, 0.72);
  font-size: 13px;
}

.asset-preview-head > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-preview-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.asset-preview-tools a,
.asset-preview-tools button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.asset-preview-tools a:hover,
.asset-preview-tools button:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.asset-preview-tools svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.asset-preview-close {
  margin-left: 4px;
  background: rgba(255, 255, 255, 0.13) !important;
}

.asset-preview-canvas {
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: auto;
  padding: 18px;
}

.asset-preview-dialog img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.asset-preview-frame,
.asset-preview-media {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
  background: #fff;
}

.asset-preview-media {
  max-width: 100%;
  max-height: 100%;
  background: #000;
  object-fit: contain;
}

.asset-preview-audio {
  width: min(680px, 90%);
}

.asset-preview-canvas.text-preview {
  place-items: stretch;
  background: #f7f8fb;
}

.asset-preview-text {
  width: min(980px, 100%);
  min-height: 100%;
  margin: 0 auto;
  overflow: auto;
  border-radius: 10px;
  padding: 28px 32px;
  background: #fff;
  color: #20242d;
  font: 14px/1.75 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.asset-preview-unavailable {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: rgba(248, 250, 252, 0.72);
  text-align: center;
}

.asset-preview-unavailable .file-card-icon {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.asset-preview-unavailable strong {
  color: #fff;
}

.asset-preview-unavailable span:last-child {
  font-size: 12px;
}

.asset-preview-foot {
  min-height: 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 18px;
  color: rgba(248, 250, 252, 0.68);
  font-size: 12px;
}

.eyebrow {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

.drawer-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.work-drawer .drawer-head {
  position: sticky;
  top: -18px;
  z-index: 4;
  align-items: flex-start;
  min-height: 38px;
  margin: -18px -18px 0;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(229, 234, 244, 0.82);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.work-drawer .drawer-head h2 {
  font-size: 22px;
  line-height: 1.15;
}

.work-drawer .panel-section {
  margin-top: 12px;
}

.work-drawer .section-title h3 {
  font-size: 14px;
}

.work-drawer .section-title span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #f4f6fb;
  color: #596170;
  font-size: 12px;
  font-weight: 700;
}

.drawer-actions {
  gap: 8px;
  flex-wrap: wrap;
}

.drawer-actions button,
.drawer-actions .ghost-icon,
.admin-card button,
.user-form button {
  min-height: 36px;
  border-radius: 12px;
  padding: 0 12px;
  background: #eef2ff;
  color: var(--blue-strong);
  cursor: pointer;
}

.drawer-actions .ghost-icon {
  width: 36px;
  padding: 0;
  font-size: 20px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.admin-tabs button {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 14px;
  background: #f4f6fb;
  color: #596170;
  cursor: pointer;
}

.admin-tabs button.active {
  background: #eef2ff;
  color: var(--blue-strong);
  font-weight: 700;
}

.panel-section,
.user-admin,
.admin-section {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.hidden,
.admin-section.hidden,
.stats.hidden {
  display: none;
}

.job-list,
.admin-feed {
  display: grid;
  gap: 10px;
}

.users-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.job-card,
.admin-card,
.asset,
.empty-note,
.stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.job-card,
.admin-card,
.empty-note {
  padding: 13px;
}

.job-card p,
.admin-card p,
.asset p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.job-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.mini-status {
  color: var(--muted);
  font-size: 12px;
}

.danger-link {
  background: transparent;
  color: #b42318;
  cursor: pointer;
}

.admin-card .danger-link {
  background: #fff1f1;
  color: #b42318;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 12px;
}

.asset-library-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 10px;
  margin: 12px 0 10px;
}

.asset-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8faff;
  color: #7b879b;
}

.asset-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.asset-categories {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.asset-categories button {
  flex: 0 0 auto;
  min-height: 29px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f4f6fa;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.asset-categories button.active {
  border-color: #d9e1ff;
  background: #edf1ff;
  color: var(--blue);
  font-weight: 700;
}

.asset-sort {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 10px 0 12px;
  background: #fff;
  color: #7b879b;
  font-size: 12px;
}

.asset-sort select {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #252932;
  font-size: 13px;
}

.asset-activity {
  display: grid;
  gap: 8px;
}

.asset-activity:empty {
  display: none;
}

.asset-activity-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 10px;
  border: 1px solid #dfe7ff;
  border-radius: 14px;
  background: #f7f9ff;
  padding: 12px;
}

.asset-activity-card span {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-activity-card .danger-link {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.asset {
  position: relative;
  display: grid;
  overflow: hidden;
  gap: 8px;
  padding: 10px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.asset:hover,
.asset.selected {
  border-color: #d8e1ff;
  box-shadow: 0 12px 30px rgba(36, 55, 110, 0.09);
}

.asset-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 18px;
  color: #7a8497;
  font-size: 10.5px;
  line-height: 1;
}

.asset-card-top span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-card-top span:first-child {
  flex: 0 0 auto;
  max-width: 56%;
  color: #596783;
  font-weight: 750;
}

.asset-card-top span:last-child {
  min-width: 0;
}

.asset-select {
  position: absolute;
  top: 39px;
  left: 17px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 4px 12px rgba(20, 26, 40, 0.14);
}

.asset-select input {
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
}

.asset-batch-bar {
  margin-bottom: 10px;
}

.asset-batch-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  background: #fbfcff;
}

.asset-batch-inner.active {
  border-color: #d9e1ff;
  background: #f8faff;
}

.asset-batch-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.asset-batch-copy strong {
  color: #252b36;
  font-size: 13px;
}

.asset-batch-copy span {
  color: #697386;
  font-size: 11px;
}

.asset-batch-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.asset-batch-inner button {
  min-height: 28px;
  border-radius: 9px;
  padding: 0 9px;
  background: #f4f6fb;
  color: #596170;
  font-size: 12px;
  cursor: pointer;
}

.asset-batch-inner button:not(:disabled):hover {
  background: #eef2ff;
  color: var(--blue-strong);
}

.asset-batch-inner button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.asset-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  width: 100%;
  border-radius: 9px;
  background: #f3f6fb;
  color: #6d7b95;
  cursor: zoom-in;
}

.asset-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 160ms ease;
}

.asset-thumb:hover img {
  transform: scale(1.035);
}

.file-thumb {
  border: 1px solid #edf1f7;
  background: linear-gradient(180deg, #f8faff 0%, #eef3fb 100%);
  cursor: pointer;
}

.file-thumb .file-type-badge {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 36px;
  border: 1px solid #dde5f2;
  border-radius: 10px;
  background: #fff;
  color: #5d6a82;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.asset-meta {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.asset-meta strong {
  overflow: hidden;
  color: #20242c;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-meta p {
  display: -webkit-box;
  min-height: 30px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.asset-actions {
  display: grid;
  gap: 6px;
}

.asset-primary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.asset-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.asset-actions a,
.asset-actions button {
  display: grid;
  place-items: center;
  min-height: 28px;
  border-radius: 8px;
  background: #f5f7fb;
  color: var(--blue);
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.asset-primary-action {
  background: #eef2ff !important;
  color: var(--blue-strong) !important;
}

.asset-secondary-actions a,
.asset-secondary-actions button {
  flex: 1 1 auto;
  min-height: 25px;
  padding: 0 7px;
  background: transparent;
  color: #6a7283;
}

.asset-actions a:hover,
.asset-actions button:hover {
  background: #eef2ff;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.stat {
  display: grid;
  gap: 4px;
  padding: 13px;
}

.stat b {
  font-size: 18px;
}

.stat span {
  color: var(--muted);
  font-size: 12px;
}

.admin-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 16px;
  margin-top: 18px;
}

.user-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 9px;
}

.user-form.hidden {
  display: none;
}

.user-form .form-error {
  grid-column: 1 / -1;
}

.template-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px auto;
  gap: 9px;
}

.template-editor textarea {
  grid-column: 1 / -1;
  resize: vertical;
}

.template-editor button {
  min-height: 38px;
  border-radius: 12px;
  padding: 0 13px;
  background: #eef2ff;
  color: var(--blue-strong);
  font-weight: 720;
  cursor: pointer;
}

.template-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.user-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.user-card > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.user-card > div:first-child p {
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}

.user-card .user-last-login {
  margin-top: 2px;
  color: #8a93a3;
  font-size: 12px;
}

.user-card .inline-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
  margin-top: 0;
  gap: 6px;
}

.user-card .inline-actions button {
  min-height: 34px;
  padding: 0 9px;
  font-size: 14px;
  white-space: nowrap;
}

.inline-actions {
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.template-editor input,
.template-editor textarea,
.user-form input,
.user-form select {
  border-radius: 14px;
  padding: 10px 12px;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 24px;
  background: #ffffff;
}

.login-screen.show {
  display: grid;
}

.login-panel {
  display: grid;
  gap: 14px;
  width: min(420px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fbfcff;
  box-shadow: var(--shadow);
}

.login-panel .brand-mark {
  width: 48px;
  height: 48px;
}

.login-panel .brand-mark.app-icon {
  border-radius: 14px;
}

.login-panel input {
  height: 44px;
  border-radius: 14px;
  padding: 0 14px;
}

.login-submit {
  width: 100%;
  border-radius: 14px;
  font-size: 16px;
}

.login-error {
  min-height: 20px;
  color: #b42318;
  font-size: 13px;
}

.form-error {
  min-height: 18px;
  color: #b42318;
  font-size: 12px;
  line-height: 1.4;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 30;
  display: none;
  transform: translateX(-50%);
  max-width: 520px;
  border-radius: 999px;
  padding: 11px 16px;
  background: #1f2937;
  color: var(--white);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.22);
}

.app-update-banner {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
  padding: 10px 14px 10px 16px;
  border: 1px solid #c8d2ff;
  border-radius: 999px;
  background: #f4f6ff;
  color: #3547b7;
  box-shadow: 0 8px 24px rgba(50, 66, 140, .14);
  font-size: 13px;
}

.recovery-title {
  margin: 20px 0 8px;
  color: #6f778d;
  font-size: 12px;
  letter-spacing: .04em;
}

.app-update-banner button {
  border: 0;
  border-radius: 999px;
  padding: 6px 11px;
  background: #536dff;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.toast.show {
  display: block;
}

.empty-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

body.sidebar-collapsed .app-shell {
  grid-template-columns: 0 minmax(0, 1fr);
}

body.sidebar-collapsed .sidebar {
  overflow: hidden;
  padding: 0;
  border: 0;
}

body.sidebar-collapsed #expandSidebar {
  display: grid;
}

body.sidebar-collapsed .composer-shell {
  width: min(860px, calc(100vw - 96px));
}

body.sidebar-collapsed .tool-menu {
  width: min(640px, calc(100vw - 120px));
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 6;
    max-height: 52vh;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .chat-stage {
    min-height: 80vh;
    padding: 18px 18px 24px;
  }

  .composer-shell {
    width: 100%;
  }

  body.sidebar-collapsed .app-shell {
    grid-template-columns: 1fr;
  }

  body.sidebar-collapsed .sidebar {
    display: none;
  }
}

@media (max-width: 720px) {
  .chat-stage {
    padding: 14px;
  }

  .empty-hero {
    transform: none;
    gap: 18px;
  }

  .hero-title {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  h1 {
    font-size: 24px;
  }

  .suggestion-row,
  .composer-actions,
  .composer-right {
    flex-wrap: wrap;
  }

  .suggestion-chip {
    min-width: 120px;
  }

  .message-list {
    padding-right: 18px;
  }

  .message,
  .message.assistant,
  .message.user {
    max-width: 100%;
  }

  .generated-image-card {
    width: min(var(--asset-card-width, 420px), 92vw);
  }

  .generated-file-row {
    min-height: 60px;
  }

  .generated-file-open {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    padding: 9px 10px;
  }

  .file-type-badge {
    width: 36px;
    height: 36px;
  }

  .generated-file-download {
    min-width: 52px;
    margin-right: 5px;
  }

  .generated-image-actions {
    position: static;
    opacity: 1;
    transform: none;
    padding: 8px;
    background: #f8f9fb;
  }

  .generated-image-actions button,
  .generated-image-actions a {
    box-shadow: none;
  }

  .asset-preview-dialog {
    inset: 0;
    border-radius: 0;
  }

  .asset-preview-head {
    align-items: center;
    min-height: auto;
    padding: 12px;
  }

  .asset-preview-tools {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .tool-menu {
    left: 0;
    width: calc(100vw - 48px);
  }

  .send-button {
    width: 100%;
    border-radius: 16px;
  }

  .work-drawer,
  .admin-drawer {
    inset: 10px;
    width: auto;
  }

  .admin-columns,
  .stats,
  .user-form,
  .template-editor,
  .users-grid {
    grid-template-columns: 1fr;
  }

  .asset-batch-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .asset-batch-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .asset-grid {
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  }

  .asset-library-tools {
    grid-template-columns: 1fr;
  }

  .asset-categories {
    grid-column: auto;
  }
}
