:root {
  color-scheme: dark;
  --bg: #0b1020;
  --panel: #141d30;
  --panel2: #19243b;
  --line: #28334a;
  --text: #edf1fa;
  --muted: #93a2bc;
  --blue: #7986ff;
  --cyan: #70e2ce;
  --orange: #ffc784;
  --red: #ff8c9d;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 90% 0, #1a2850 0, transparent 45%), var(--bg);
  color: var(--text);
  font-size: 14px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #7986ff16;
}
a {
  color: var(--cyan);
  text-decoration: none;
}
.model-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; }
.model-card { margin-bottom: 16px; }
.model-active { border-color: #65d5c6; }
.model-card .actions { margin-top: 16px; }
.model-endpoint { overflow-wrap: anywhere; }
.model-name { font-weight: 600; }
.model-selector { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; margin-bottom: 20px; }
.model-selector label { flex: 1; min-width: 220px; }
.menu-sort-button { margin: 12px 0 0; align-self: flex-start; font-size: 12px; }
.mobile-menu-sort { display: none; }
.list.menu-sort-list { gap: 6px; }
.menu-sort-list .list-row { padding: 8px 10px; }
.menu-sort-list .btn { padding: 6px 9px; }
.menu-sort-actions { position: sticky; bottom: 0; background: #151f33; padding: 12px 0 0; box-shadow: 0 -10px 14px #151f33; flex-wrap: wrap; }
.douyin-guide { max-width: 1180px; }
.douyin-guide .toolbar { flex-wrap: wrap; gap: 14px; }
.douyin-guide .toolbar .meta { margin-bottom: 0; }
.guide-status { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.guide-status > div { max-width: 780px; }
.guide-status > .meta { flex-shrink: 0; text-align: right; line-height: 1.8; }
.guide-status p { line-height: 1.8; margin-bottom: 0; }
.guide-shortcuts { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.guide-shortcuts .btn { padding: 9px 14px; }
.guide-step { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-bottom: 14px; scroll-margin-top: 22px; }
.guide-step > summary { display: flex; align-items: center; gap: 16px; cursor: pointer; padding: 22px; list-style: none; border-radius: 14px; }
.guide-step > summary::-webkit-details-marker { display: none; }
.guide-step > summary::after { content: '＋'; color: var(--muted); margin-left: auto; flex-shrink: 0; font-size: 20px; }
.guide-step[open] > summary::after { content: '−'; }
.guide-step > summary:hover { background: #7986ff0a; }
.guide-step > summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.guide-step summary strong { display: block; font-size: 16px; }
.guide-step summary .meta { display: block; margin-top: 7px; line-height: 1.7; }
.guide-number { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #70e2ce44; border-radius: 12px; color: var(--cyan); background: #70e2ce0a; font-weight: 700; flex-shrink: 0; }
.guide-step-content { padding: 0 26px 24px; line-height: 1.9; overflow-wrap: anywhere; }
.guide-step-content > :first-child { margin-top: 0; }
.guide-step-content > :last-child { margin-bottom: 0; }
.guide-step-content li + li { margin-top: 8px; }
.guide-step-content h4 { margin: 22px 0 10px; font-size: 15px; color: var(--cyan); }
.guide-step-content .card-head { margin-top: 24px; flex-wrap: wrap; gap: 12px; }
.guide-template { resize: vertical; min-height: 230px; max-height: 640px; font-size: 13px; line-height: 1.85; }
.guide-step-content .table-wrap { margin-top: 14px; }
.guide-step-content .table { min-width: 560px; line-height: 1.8; }
.guide-step-content code { color: var(--cyan); }
.guide-faq dt { font-weight: 600; margin-top: 16px; }
.guide-faq dd { color: var(--muted); margin: 4px 0 0; }
.guide-sources { margin-top: 24px; padding-left: 22px; }
@media (max-width: 850px) {
  .guide-status { flex-direction: column; gap: 12px; }
  .guide-status > .meta { text-align: left; }
  .guide-step > summary { padding: 18px; gap: 12px; }
  .guide-step-content { padding: 0 18px 20px; }
}
@media (max-width: 1000px) { .model-layout { grid-template-columns: 1fr; } }
@media (min-width: 601px) { .sidebar { overflow-y: auto; } .sidebar nav { flex-shrink: 0; } }
@media (min-width: 601px) and (max-height: 850px) { .sidebar-tip { display: none; } }
.hidden {
  display: none !important;
}
.shell {
  min-height: 100vh;
  display: flex;
}
.sidebar {
  width: 236px;
  flex-shrink: 0;
  background: #080d1bd9;
  border-right: 1px solid var(--line);
  padding: 32px 17px 22px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 2;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: 1px;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-top: 5px;
}
.brand-mark {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #8291ff, #4edbc5);
  box-shadow: 0 6px 25px #5467fa30;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0;
}
.nav-label {
  font-size: 10px;
  color: #63738e;
  letter-spacing: 2px;
  margin: 42px 15px 12px;
}
.nav-item {
  width: 100%;
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  padding: 12px 14px;
  border-radius: 9px;
  text-align: left;
  margin: 3px 0;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  position: relative;
}
.nav-item > span:first-child {
  width: 20px;
  text-align: center;
  font-size: 17px;
}
.nav-item:hover {
  background: #17223a;
}
.nav-item.active {
  background: linear-gradient(90deg, #263454, #202b46);
  border-color: #35425e;
  color: #fff;
}
.nav-item.active > span:first-child {
  color: var(--cyan);
}
.nav-dot {
  display: none;
  margin-left: auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
}
.active .nav-dot {
  display: block;
}
.sidebar-tip {
  margin: 35px 9px 22px;
  padding: 15px;
  border: 1px solid #2a3851;
  border-radius: 12px;
  background: linear-gradient(135deg, #1c2946, #10182a);
}
.sidebar-tip span {
  font-size: 11px;
  color: #bcbeff;
}
.sidebar-tip p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
  margin: 8px 0 0;
}
.sidebar-foot {
  margin-top: auto;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.9;
  padding: 16px 9px 0;
  border-top: 1px solid var(--line);
}
.sidebar-foot small {
  display: block;
  margin-left: 12px;
  color: #667891;
  font-size: 9px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  margin-right: 6px;
}
.main {
  margin-left: 236px;
  padding: 31px 38px 20px;
  width: calc(100% - 236px);
  max-width: 1700px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 27px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--cyan);
  margin: 0 0 8px;
}
.topbar h1 {
  font-size: 25px;
  margin: 0;
  font-weight: 650;
  letter-spacing: 0.5px;
}
.top-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.user-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}
.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2b3d63;
  color: #c7cfff;
  font-size: 12px;
}
.ghost,
.link-button {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 11px;
}
.ghost:hover {
  border-color: #7281a2;
  color: var(--text);
}
.link-button {
  border: 0;
  color: var(--cyan);
  padding: 5px;
}
.hero {
  padding: 30px 32px;
  border: 1px solid #3c5275;
  border-radius: 16px;
  background: linear-gradient(112deg, #233855, #243351 49%, #34345b);
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  margin-bottom: 22px;
  min-height: 195px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -70px;
  width: 320px;
  height: 320px;
  border: 1px solid #8193cd26;
  border-radius: 50%;
  pointer-events: none;
}
.hero-copy {
  z-index: 1;
}
.hero h2 {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: 1px;
}
.hero p {
  color: #c0cee1;
  font-size: 12px;
  line-height: 1.8;
  margin: 0 0 20px;
}
.hero .btn {
  font-size: 11px;
}
.hero-visual {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-right: 45px;
  height: 95px;
  z-index: 1;
}
.hero-visual i {
  width: 7px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(#82e1d7, #8692ff);
  opacity: 0.8;
}
.hero-visual i:nth-child(2n) {
  height: 58px;
}
.hero-visual i:nth-child(3n) {
  height: 88px;
}
.hero-visual i:nth-child(4n) {
  height: 40px;
}
.grid {
  display: grid;
  gap: 18px;
}
.stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
}
.card {
  background: linear-gradient(135deg, #182238eb, #10192bf0);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 21px;
  min-width: 0;
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.stat-icon {
  color: #8798da;
}
.stat-value {
  font-size: 29px;
  letter-spacing: 0.5px;
  margin: 13px 0 6px;
  font-weight: 650;
}
.stat-foot {
  font-size: 10px;
  color: #7d8ca6;
}
.layout {
  grid-template-columns: 1.35fr 1fr;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.card-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: #10192b;
  border: 1px solid #25314a;
  border-radius: 9px;
  min-width: 0;
}
.list-row b {
  font-size: 12px;
}
.list-main {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #283758;
  color: #a4b8ff;
}
.meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.7;
}
.tag {
  display: inline-block;
  white-space: nowrap;
  font-size: 10px;
  color: #bcc9e5;
  background: #273654;
  padding: 4px 7px;
  border-radius: 5px;
}
.tag.good {
  color: #86e8cf;
  background: #16403c;
}
.tag.warn {
  color: #ffd18e;
  background: #483822;
}
.tag.bad {
  color: #ff9bac;
  background: #4b2637;
}
.btn {
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 9px 13px;
  color: #fff;
  font-size: 11px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.primary {
  background: linear-gradient(135deg, #7b88ff, #6071eb);
  box-shadow: 0 3px 10px #4159bb18;
}
.primary:hover {
  filter: brightness(1.1);
}
.secondary {
  background: #273551;
  border-color: #354665;
}
.danger {
  background: #542c3d;
  border-color: #734055;
  color: #ffb7c5;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.empty {
  color: var(--muted);
  font-size: 12px;
  padding: 35px 15px;
  text-align: center;
  line-height: 1.9;
}
.table-wrap {
  overflow: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
.table th,
.table td {
  padding: 14px 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 11px;
}
.table th {
  color: var(--muted);
  font-weight: 400;
  background: #121c2e;
}
.table tbody tr:last-child td {
  border-bottom: 0;
}
.table td .meta {
  font-size: 10px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 0 0 18px;
}
.toolbar h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.full {
  grid-column: 1/-1;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
input,
textarea,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid #303e58;
  border-radius: 7px;
  background: #0f192b;
  color: var(--text);
  padding: 10px 11px;
  font-size: 12px;
}
input[type="file"] {
  padding: 14px;
}
input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
  margin: 0;
}
input[type="range"] {
  padding: 0;
}
textarea {
  min-height: 125px;
  resize: vertical;
  line-height: 1.8;
}
.inline-field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: row;
  font-size: 12px;
}
.help {
  font-size: 10px;
  color: #7e90ab;
  line-height: 1.8;
  margin: 7px 0;
}
.notice {
  font-size: 11px;
  line-height: 1.9;
  padding: 12px 16px;
  border: 1px solid #3d4a66;
  border-radius: 9px;
  background: #202b443f;
  color: #becbe1;
  margin-bottom: 18px;
}
.notice.info {
  border-color: #2d5257;
  background: #1333325c;
  color: #9ddbd0;
}
.notice.error {
  border-color: #774559;
  color: #ffb6c7;
}
.error-text {
  font-size: 11px;
  color: var(--red);
  min-height: 14px;
  margin: 0;
}
.text-good {
  color: var(--cyan);
}
.text-bad {
  color: var(--red);
}
.text-muted {
  color: var(--muted);
}
.task-layout {
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.task-list {
  padding: 12px;
}
.task-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 11px;
  color: var(--text);
  margin-bottom: 6px;
}
.task-item.active {
  background: #273653;
  border-color: #405176;
}
.task-item:hover {
  background: #1e2d49;
}
.task-item b {
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.task-item .meta {
  font-size: 10px;
}
.task-editor {
  padding: 22px;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin: 4px 0 22px;
  gap: 20px;
  overflow: auto;
}
.tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  padding: 10px 0 13px;
  border-bottom: 2px solid transparent;
}
.tab.active {
  color: var(--cyan);
  border-color: var(--cyan);
}
.save-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
}
.rule-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 15px;
  margin-bottom: 13px;
  background: #111b2d;
}
.rule-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.rule-head .inline-field {
  color: var(--text);
}
.rule-head .cooldown {
  width: 135px;
  display: flex;
  flex-direction: row;
  align-items: center;
}
.rule-head .cooldown input {
  width: 65px;
  padding: 6px;
  font-size: 11px;
}
.rule-card textarea {
  min-height: 72px;
}
.pool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.voice-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.voices-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.voice-card .voice-symbol {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #374a75, #41426f);
  color: #c0c8ff;
  border-radius: 15px;
  font-size: 28px;
  margin-bottom: 20px;
}
.voice-card h3 {
  font-size: 14px;
  margin: 0 0 6px;
}
.voice-card .actions {
  margin-top: 20px;
}
.voice-card .tag {
  margin-top: 12px;
}
.tool-layout {
  grid-template-columns: 1fr 1fr;
}
.tool-output {
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 230px;
  font-size: 12px;
  line-height: 2;
  color: #cad5eb;
  background: #0e192b;
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 9px;
}
.history {
  margin-top: 20px;
}
.history details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 11px;
  line-height: 1.8;
}
.history summary {
  cursor: pointer;
  color: var(--muted);
}
.history p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}
.filters label {
  min-width: 140px;
  flex: 1;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 18px;
}
.queue-text {
  font-size: 12px;
  line-height: 1.9;
  white-space: pre-wrap;
  word-break: break-word;
}
.queue-card {
  padding: 14px;
  border: 1px solid var(--line);
  background: #101a2d;
  border-radius: 8px;
  margin-bottom: 10px;
}
.queue-card .actions {
  margin-top: 10px;
}
.session-select {
  max-width: 330px;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #233047;
  margin-top: 35px;
  padding-top: 16px;
  font-size: 9px;
  color: #62748f;
}
.toast {
  position: fixed;
  right: 30px;
  bottom: 26px;
  max-width: 500px;
  padding: 13px 18px;
  background: #263b5e;
  border: 1px solid #536c94;
  border-radius: 9px;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.2s;
  z-index: 20;
  pointer-events: none;
  font-size: 12px;
  line-height: 1.8;
}
.toast.show {
  opacity: 1;
  transform: none;
}
dialog {
  padding: 0;
  background: #151f33;
  border: 1px solid #3c4b66;
  border-radius: 15px;
  color: var(--text);
  width: min(600px, calc(100% - 30px));
  max-height: 85vh;
  box-shadow: 0 30px 100px #0008;
}
dialog::backdrop {
  background: #060a16b8;
  backdrop-filter: blur(5px);
}
#modal-content {
  padding: 25px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.modal-head h2 {
  margin: 0;
  font-size: 18px;
}
.close {
  background: transparent;
  border: 0;
  font-size: 24px;
  color: var(--muted);
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: radial-gradient(ellipse at 25% 40%, #263960, #0a1020 70%);
  align-items: center;
  padding: 60px max(6vw, 25px);
  gap: 7vw;
}
.login-story h1 {
  font-size: clamp(32px, 4vw, 60px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 3px;
  margin: 24px 0;
}
.login-story p {
  color: #b0c2dc;
  font-size: 14px;
  line-height: 2.1;
}
.login-story small {
  color: #758ba9;
  font-size: 10px;
  letter-spacing: 1px;
}
.sound-bars {
  display: flex;
  gap: 7px;
  align-items: center;
  height: 120px;
  margin: 25px 0;
}
.sound-bars i {
  height: 25px;
  width: 8px;
  border-radius: 8px;
  background: linear-gradient(var(--cyan), var(--blue));
}
.sound-bars i:nth-child(2n) {
  height: 55px;
}
.sound-bars i:nth-child(3n) {
  height: 90px;
}
.sound-bars i:nth-child(5n) {
  height: 110px;
}
.login-card {
  max-width: 420px;
  width: 100%;
  padding: 35px;
  background: #152039cc;
  border: 1px solid #354563;
  border-radius: 18px;
  box-shadow: 0 30px 70px #0002;
}
.login-card .brand {
  margin-bottom: 38px;
}
.login-card h2 {
  font-size: 23px;
  margin: 0 0 9px;
}
.login-card > p {
  color: var(--muted);
  font-size: 11px;
  margin: 0 0 28px;
}
.login-card form {
  display: grid;
  gap: 18px;
}
.login-card .btn {
  padding: 12px;
  justify-content: space-between;
}
.muted {
  color: var(--muted);
  font-size: 10px;
  display: block;
  margin-top: 20px;
}
.loading {
  padding: 60px;
  text-align: center;
  color: var(--muted);
}
audio {
  width: 100%;
  margin-top: 10px;
  height: 36px;
}
@media (min-width: 1650px) {
  .main {
    padding-left: 50px;
    padding-right: 50px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 205px;
  }
  .main {
    width: calc(100% - 205px);
    margin-left: 205px;
    padding: 25px;
  }
  .voices-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-visual {
    margin-right: 8px;
  }
  .hero h2 {
    font-size: 23px;
  }
  .task-layout {
    grid-template-columns: 175px minmax(0, 1fr);
  }
}
@media (max-width: 850px) {
  .layout,
  .tool-layout {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sidebar {
    width: 178px;
    padding: 25px 12px;
  }
  .brand {
    font-size: 17px;
  }
  .brand small {
    font-size: 8px;
  }
  .main {
    width: calc(100% - 178px);
    margin-left: 178px;
    padding: 23px;
  }
  .task-layout {
    grid-template-columns: 1fr;
  }
  .task-list {
    display: flex;
    overflow: auto;
    gap: 6px;
  }
  .task-item {
    min-width: 160px;
    margin: 0;
  }
  .hero-visual {
    display: none;
  }
  .footer {
    flex-direction: column;
    gap: 8px;
  }
  .top-actions {
    gap: 7px;
  }
  .user-badge {
    display: none;
  }
}
@media (max-width: 600px) {
  .menu-sort-button { display: none; }
  .mobile-menu-sort { display: inline-flex; }
  .sidebar {
    inset: auto 0 0;
    width: 100%;
    height: 65px;
    padding: 5px;
    background: #101a2df5;
    border: 0;
    border-top: 1px solid var(--line);
  }
  .sidebar .brand,
  .sidebar-tip,
  .nav-label,
  .sidebar-foot {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
  }
  .nav-item {
    min-width: 74px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    font-size: 9px;
    padding: 7px 5px;
    margin: 0;
  }
  .nav-item.active {
    border-color: transparent;
  }
  .nav-dot {
    display: none !important;
  }
  .main {
    width: 100%;
    margin: 0;
    padding: 20px 15px 90px;
  }
  .topbar {
    margin-bottom: 22px;
  }
  .topbar h1 {
    font-size: 22px;
  }
  .topbar .eyebrow {
    font-size: 8px;
  }
  .hero {
    padding: 24px;
    min-height: 185px;
  }
  .hero h2 {
    font-size: 23px;
  }
  .hero p {
    font-size: 11px;
  }
  .card {
    padding: 17px;
  }
  .form-grid,
  .pool-grid,
  .voices-grid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .stats {
    gap: 10px;
  }
  .stat-value {
    font-size: 25px;
  }
  .task-editor {
    padding: 16px;
  }
  .top-actions .ghost {
    font-size: 10px;
  }
  .login {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 30px 20px;
    gap: 0;
  }
  .login-story {
    display: none;
  }
  .login-card {
    padding: 28px;
  }
  .toolbar {
    align-items: flex-start;
  }
  .toolbar .actions {
    justify-content: flex-end;
  }
  .toast {
    right: 15px;
    left: 15px;
    bottom: 80px;
  }
  .tabs {
    gap: 18px;
  }
  .session-select {
    width: 100%;
    max-width: none;
  }
}
