:root {
  color-scheme: dark;
  --bg: #080808;
  --panel: #141414;
  --panel-2: #1d1b1a;
  --line: #303030;
  --muted: #9a9a9a;
  --text: #f5f5f5;
  --soft: #c7c7c7;
  --accent: #ff3933;
  --accent-2: #ff5a4f;
  --blue: #2f86ff;
  --danger-bg: #351314;
  --radius: 8px;
  --sidebar: 248px;
  --topbar: 56px;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
.hidden { display: none !important; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar);
  display: flex; flex-direction: column;
  background: #101010; border-right: 1px solid var(--line); z-index: 50;
}
.brand {
  height: 54px; display: flex; align-items: center; gap: 4px;
  padding: 0 12px; border: 0; background: transparent; text-align: left;
}
.brand-rp { color: var(--accent); font-weight: 900; font-size: 23px; }
.brand-title { font-weight: 800; font-size: 15px; }
.version-pill { margin-left: auto; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; color: #dcdcdc; background: #1d1d1d; font-size: 11px; }
.side-tabs { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--line); }
.side-tabs button { height: 48px; border: 0; background: transparent; font-weight: 800; }
.side-tabs button.active { border-bottom: 2px solid #fff; }
.side-block { padding: 14px 10px; border-bottom: 1px solid #242424; }
.side-title { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.icon-button, .round-button, .avatar-button { border: 1px solid var(--line); background: #171717; border-radius: 8px; min-width: 34px; height: 34px; }
.icon-button:hover, .round-button:hover, .avatar-button:hover { border-color: #555; }
.side-list { display: grid; gap: 8px; overflow: auto; max-height: calc(100vh - 270px); }
.empty-text { color: var(--muted); font-size: 13px; margin: 8px 0; }
.room-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 8px; align-items: center; padding: 8px; border-radius: 8px; background: #161616; border: 1px solid transparent; }
.room-row:hover { border-color: #393939; }
.room-thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: #2a2422; display: grid; place-items: center; color: var(--accent); font-weight: 900; }
.room-name { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-meta { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.delete-room { border: 0; background: transparent; color: #aaa; padding: 5px; }
.sidebar-footer { margin-top: auto; }
.live-panel { margin-top: 0; border-top: 1px solid var(--line); }
.live-panel h3 { margin: 0 0 8px; font-size: 13px; display: flex; justify-content: space-between; }
.live-user { display: flex; gap: 8px; align-items: center; padding: 8px; border: 1px solid #2a2a2a; border-radius: 8px; background: #171717; }
.live-avatar { width: 26px; height: 26px; border-radius: 50%; background: #3a2a55; display: grid; place-items: center; }
.side-balance { margin-top: 0; padding: 12px 8px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.7; }
.side-balance-row { display: block; padding-right: 28px; }
.side-balance-empty { color: var(--muted); padding-right: 28px; }

.content-shell { grid-column: 2; min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 40; height: var(--topbar); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: rgba(8,8,8,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.page-title { font-size: 18px; font-weight: 900; display: flex; gap: 10px; align-items: center; }
.back-button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #111; display: inline-grid; place-items: center; padding: 0; }
.back-button svg { width: 18px; height: 18px; fill: none; stroke: #f4f4f4; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.global-model-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  margin-right: 2px;
  white-space: nowrap;
}
.global-model-control {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
}
.global-model-label {
  color: #d8d8d8;
  font-size: 12px;
  font-weight: 800;
}
.global-model-select {
  width: 118px;
  height: 34px;
  min-height: 34px;
  padding: 0 28px 0 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}
.global-model-apply {
  height: 34px;
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}
.global-model-divider {
  color: #555;
  font-size: 13px;
  font-weight: 800;
}
.api-key-button {
  width: 44px;
  height: 36px;
  display: grid;
  grid-template-rows: 19px 10px;
  place-items: center;
  gap: 0;
  padding: 4px 0 3px;
}
.api-key-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #f1f1f1;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.api-key-label {
  color: #b9c8ff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}
.avatar-button { width: 36px; height: 36px; border-radius: 50%; color: #8c67ff; background: radial-gradient(circle at 50% 35%, #6545b8, #1b1628 70%); }
@media (max-width: 1280px) {
  .global-model-label { display: none; }
  .global-model-select { width: 108px; }
}
@media (max-width: 1040px) {
  .global-model-selector { display: none !important; }
}
.profile-menu { position: fixed; top: 52px; right: 14px; width: 260px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #1a1a1a; box-shadow: 0 18px 50px rgba(0,0,0,.5); z-index: 80; }
.profile-menu h3 { margin: 0 0 10px; }
.menu-muted { color: var(--muted); font-size: 13px; }
.menu-stack { display: grid; gap: 10px; margin-top: 14px; }
.check-row { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #171717; }

.view-root { flex: 1; min-width: 0; }
.view-container { width: min(100%, 1180px); margin: 0 auto; padding: 28px 36px 90px; }
.panel { border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, #151515, #101010); padding: 20px; }
.api-panel { display: grid; gap: 12px; }
.field-label { display: block; color: #b9c8ff; font-size: 12px; font-weight: 800; margin-bottom: 7px; }
.field, .textarea, select {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #050505;
  min-height: 44px; padding: 0 14px; outline: none;
}
.field:focus, .textarea:focus, select:focus { border-color: #666; }
.textarea { padding: 12px 14px; resize: vertical; min-height: 110px; line-height: 1.55; }
.ai-usage-note {
  display: block;
  margin: 4px 0 10px;
  text-align: right;
  color: #8f8f8f;
  font-size: 8pt;
  line-height: 1.2;
}
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row > .grow { flex: 1 1 auto; }
.button { min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; background: #171717; font-weight: 800; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.secondary { background: #fff; color: #111; border-color: #fff; }
.button.danger { background: var(--danger-bg); border-color: #703030; color: #ff8c84; }
.button.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.hint { color: var(--muted); font-size: 13px; }
.warning-text { color: var(--accent-2); font-size: 13px; font-weight: 800; }
.hero { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(135deg, #2b2422, #151515); }
.hero h1 { margin: 0 0 8px; font-size: 26px; }
.library-head { display: flex; align-items: center; justify-content: space-between; margin: 30px 0 14px; }
.library-head h2 { margin: 0; font-size: 22px; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 10px; }
.chip { border: 1px solid #444; border-radius: 999px; background: transparent; padding: 10px 16px; font-weight: 800; white-space: nowrap; }
.chip.active { background: var(--accent); border-color: var(--accent); }
.notice { border: 1px solid #5a2929; background: #2b1212; color: #ffd9d6; padding: 14px 16px; border-radius: 8px; margin: 16px 0; }
.main-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 42px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.main-tab {
  min-width: 76px;
  height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #bcbcbc;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.main-tab:hover {
  color: #fff;
  background: rgba(255,255,255,.07);
}
.main-tab.is-active {
  color: #fff;
  background: linear-gradient(180deg, #ff3a38, #e92b2b);
  box-shadow: 0 8px 24px rgba(255,55,55,.22);
}
.community-page {
  width: 100%;
  min-height: calc(100vh - var(--topbar));
  padding: 28px 36px 120px;
}
.community-shell {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
}
.community-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.community-head h1 {
  margin: 0 0 8px;
  font-size: 30px;
}
.community-head p {
  margin: 0;
  color: var(--muted);
}
.community-write {
  min-width: 92px;
}
.community-tabbar {
  display: flex;
  gap: 6px;
  margin: 16px 0 12px;
}
.community-tabbar button {
  height: 38px;
  min-width: 110px;
  border: 1px solid #383838;
  border-radius: 8px;
  background: #121212;
  color: #d9d9d9;
  font-weight: 900;
}
.community-tabbar button.is-active {
  background: #ff3737;
  border-color: #ff3737;
  color: #fff;
}
.community-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(420px, 640px);
  align-items: end;
  gap: 18px;
  margin-bottom: 10px;
}
.community-board-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.community-board-title strong {
  font-size: 19px;
}
.community-board-title span {
  color: var(--muted);
  font-size: 13px;
}
.community-search {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 74px;
  gap: 8px;
}
.community-search select,
.community-search input {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050505;
  padding: 0 12px;
}
.community-board {
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
  background: #0d0d0d;
}
.community-table-head,
.community-table-row {
  display: grid;
  grid-template-columns: 78px 104px minmax(260px, 1fr) 150px 92px 72px 72px;
  align-items: center;
  gap: 10px;
}
.community-table-head {
  min-height: 42px;
  padding: 0 16px;
  background: #181818;
  color: #9aa0a8;
  font-size: 12px;
  font-weight: 900;
  border-bottom: 1px solid #2d2d2d;
}
.community-table-row {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid #242424;
  background: transparent;
  text-align: left;
  color: #ddd;
}
.community-table-row:hover {
  background: #151515;
}
.community-table-row.is-notice {
  background: rgba(255,57,57,.045);
}
.community-no,
.community-category {
  color: #aaa;
  font-size: 13px;
  font-weight: 800;
}
.community-table-row.is-notice .community-no,
.community-table-row.is-notice .community-category {
  color: #ff7777;
}
.community-title-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.community-title-cell strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.community-title-cell em {
  color: #ff6b6b;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}
.community-author,
.community-date,
.community-number {
  color: #bdbdbd;
  font-size: 13px;
}
.community-number {
  text-align: right;
}
.community-empty-row {
  display: grid;
  gap: 5px;
  padding: 34px 16px;
  color: #aaa;
  text-align: center;
}
.community-empty-row strong {
  color: #eee;
}
.community-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}
.community-pages {
  display: flex;
  gap: 4px;
}
.community-pages button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #111;
  color: #ddd;
  font-weight: 900;
}
.community-pages button.is-active {
  background: #ff3737;
  border-color: #ff3737;
  color: #fff;
}
.api-key-page {
  max-width: 1040px;
}
.api-key-manager {
  display: grid;
  gap: 22px;
}
.api-key-page-head,
.api-key-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.api-key-page-head h1,
.api-key-section h2 {
  margin: 0;
}
.api-key-list {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}
.api-key-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101010;
}
.api-key-row-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 44px;
  grid-template-areas: "provider default remove";
  column-gap: 12px;
  row-gap: 24px;
  align-items: start;
}
.api-key-card-two-line .api-key-row-grid {
  grid-template-areas:
    "provider default remove"
    ". admin .";
}
.api-key-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.api-key-field span {
  color: #b9c8ff;
  font-size: 12px;
  font-weight: 800;
  line-height: 14px;
}
.api-key-field input,
.api-key-field select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050505;
  padding: 0 13px;
}
.api-key-field input:disabled,
.api-key-field select:disabled {
  opacity: .8;
  color: #d7d7d7;
}
.api-key-provider-field {
  grid-area: provider;
  width: min(100%, 220px);
}
.api-key-default-field {
  grid-area: default;
}
.api-key-admin-field {
  grid-area: admin;
}
.api-key-single-field {
  grid-area: default;
}
.icon-action-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #171717;
  display: inline-grid;
  place-items: center;
  padding: 0;
  align-self: end;
}
.api-key-remove-button {
  grid-area: remove;
  align-self: start;
  justify-self: end;
  margin-top: 35px;
}
.api-key-card-two-line .api-key-remove-button {
  align-self: start;
}
.icon-action-button.is-invisible {
  visibility: hidden;
  pointer-events: none;
}
.icon-action-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #f5f5f5;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.icon-action-button:hover {
  border-color: #555;
}
.icon-action-button.danger {
  background: #351010;
  border-color: #803030;
}
.icon-action-button.danger svg {
  stroke: #ff9c9c;
}
.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }
.story-card { min-width: 0; }
.story-cover { width: 100%; aspect-ratio: 3 / 4; border-radius: 8px; background: #2a2523; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); object-fit: cover; margin-bottom: 10px; }
.story-title { font-size: 15px; font-weight: 900; line-height: 1.35; min-height: 40px; }
.story-meta { color: var(--muted); font-size: 13px; margin: 6px 0; }
.story-actions { display: flex; gap: 6px; margin-top: 10px; }
.blurred { filter: blur(5px); pointer-events: none; user-select: none; opacity: .55; }

.builder { width: min(100%, 980px); margin: 0 auto; padding: 28px 28px 120px; }
.builder h1 { margin: 0 0 24px; font-size: 26px; }
.form-section { border: 1px solid var(--line); border-radius: 8px; padding: 18px; margin-bottom: 16px; background: #101010; }
.form-section h2 { margin: 0 0 14px; font-size: 18px; }
.required::before { content: "* "; color: var(--accent); }
.form-grid { display: grid; gap: 14px; }
.profile-preview { white-space: pre-wrap; color: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #080808; }
.bottom-bar { position: fixed; left: var(--sidebar); right: 0; bottom: 0; min-height: 72px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 34px; background: rgba(8,8,8,.92); border-top: 1px solid var(--line); z-index: 70; backdrop-filter: blur(12px); }

.chat-page { height: calc(100vh - var(--topbar)); display: grid; grid-template-rows: 1fr auto; }
.chat-scroll { overflow-y: auto; padding: 32px 24px 22px; }
.chat-inner { width: min(100%, 820px); margin: 0 auto; display: grid; gap: 22px; }
.message { line-height: 1.8; white-space: pre-wrap; color: #ddd; }
.message.user { justify-self: end; background: #2b2b2b; border-radius: 999px; padding: 12px 18px; color: #fff; }
.suggestions { display: grid; justify-items: end; gap: 10px; }
.suggestion { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.suggestion button { border: 0; background: #2b2b2b; border-radius: 999px; padding: 11px 17px; font-weight: 800; }
.chat-compose { position: sticky; bottom: 0; padding: 14px 24px 18px; background: linear-gradient(180deg, transparent, #080808 22%); }
.compose-box { width: min(100%, 820px); margin: 0 auto; border: 1px solid var(--line); border-radius: 8px; background: #050505; display: grid; grid-template-columns: 1fr 46px; align-items: end; padding: 10px; }
.compose-box textarea { min-height: 42px; max-height: 180px; resize: none; border: 0; background: transparent; outline: none; padding: 10px; line-height: 1.45; }
.send-button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 18px; }

.modal-backdrop { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.72); backdrop-filter: blur(9px); z-index: 1000; padding: 22px; }
.community-detail-backdrop {
  align-items: flex-start;
  overflow: auto;
  padding: 64px 24px;
}
.community-detail-modal {
  width: min(1080px, calc(100vw - 48px));
  max-height: calc(100vh - 96px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #151515;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}
.community-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 14px;
}
.community-detail-head h2 { margin: 0; font-size: 22px; line-height: 1.35; }
.community-detail-meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.community-detail-content { line-height: 1.75; color: #e8e8e8; font-size: 15px; word-break: break-word; }
.community-detail-content img { max-width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); }
.auth-modal { width: min(100%, 560px); max-height: calc(100vh - 44px); overflow: auto; border: 1px solid #3a3a3a; border-radius: 8px; background: #20201f; padding: 22px; box-shadow: 0 24px 80px rgba(0,0,0,.65); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.modal-head h2 { margin: 0; font-size: 25px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0; }
.tabs button { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #111; font-weight: 900; }
.tabs button.active { background: var(--accent); border-color: var(--accent); }
.auth-form { display: grid; gap: 12px; }
.password-line { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 8px; }
.password-line .field { min-width: 0; height: 44px; }
.password-line .button { height: 44px; min-height: 44px; padding: 0 10px; white-space: nowrap; }
.code-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, .9fr); gap: 8px; }
.terms { border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: grid; gap: 9px; background: #181818; }
.terms label { display: flex; gap: 8px; align-items: center; font-weight: 800; font-size: 13px; }
.link-button { border: 0; background: transparent; color: #ddd; text-decoration: underline; padding: 8px; font-weight: 800; }

#toast-root { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(760px, calc(100vw - 32px)); display: grid; gap: 10px; z-index: 50000; pointer-events: none; }
.toast { pointer-events: auto; border: 1px solid #86506a; background: #351522; color: #f5dce7; border-radius: 14px; padding: 13px 15px; display: grid; grid-template-columns: 1fr auto; gap: 12px; max-height: 36vh; overflow: auto; white-space: pre-wrap; line-height: 1.45; box-shadow: 0 16px 44px rgba(0,0,0,.38); opacity: 1; transition: opacity .35s ease, transform .35s ease; }
.toast.is-hiding { opacity: 0; transform: translateY(8px); }
.toast.info { border-color: #365f79; background: #101b2a; color: #dcefff; }
.toast.success { border-color: rgba(52,211,153,.38); background: #10291c; color: #d8ffe7; }
.toast-actions { display: flex; gap: 6px; align-self: start; }
.toast-actions button { border: 1px solid rgba(255,255,255,.6); background: transparent; border-radius: 8px; padding: 6px 10px; font-weight: 800; }

@media (max-width: 760px) {
  :root { --sidebar: 0px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .content-shell { grid-column: 1; }
  .view-container, .builder { padding-left: 18px; padding-right: 18px; }
  .main-tabs { max-width: 100%; overflow-x: auto; }
  .main-tab { min-width: 72px; }
  .community-page { padding: 18px 12px 100px; }
  .community-head { align-items: stretch; flex-direction: column; }
  .community-toolbar { grid-template-columns: 1fr; }
  .community-search { grid-template-columns: 1fr; }
  .community-table-head { display: none; }
  .community-table-row {
    grid-template-columns: 58px 76px minmax(0, 1fr);
    grid-template-areas:
      "no category title"
      ". author author"
      ". date stat";
    row-gap: 7px;
    padding: 12px;
  }
  .community-no { grid-area: no; }
  .community-category { grid-area: category; }
  .community-title-cell { grid-area: title; }
  .community-author { grid-area: author; }
  .community-date { grid-area: date; }
  .community-number { display: none; }
  .bottom-bar { left: 0; }
  .row { flex-direction: column; align-items: stretch; }
  .code-line, .password-line { grid-template-columns: 1fr; }
  .api-key-row-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "provider"
      "default"
      "admin"
      "remove";
  }
  .api-key-provider-field,
  .api-key-single-field {
    width: 100%;
    grid-column: auto;
  }
  .icon-action-button {
    width: 100%;
  }
}
