:root {
  font-family:
    "Aptos",
    "Inter",
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #2d4034;
  background: #f6f7f1;
  color-scheme: light;
  --green: #284f3f;
  --muted: #88917e;
  --line: #e3e7db;
  --paper: #fffefa;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #8ead92;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.sidebar {
  width: 236px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #eef1e7;
  border-right: 1px solid #dfe5d7;
  padding: 30px 23px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.7px;
}
.brand-mark {
  display: block;
  flex-shrink: 0;
  width: 39px;
  height: 39px;
  background: var(--green);
  color: #f7f9ee;
  font-size: 26px;
  letter-spacing: -5px;
  padding: 0;
  border-radius: 12px;
  font-weight: 500;
}
.brand small {
  display: block;
  font-size: 7px;
  letter-spacing: 1.5px;
  color: #8d9582;
  font-weight: 500;
  margin-top: 2px;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #8b947e;
  margin: 45px 12px 14px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 12px 14px;
  color: #788570;
  font-size: 12px;
  font-weight: 500;
  border-radius: 9px;
  transition: background 0.15s;
}
.nav-item span {
  font-size: 18px;
  width: 18px;
  text-align: center;
}
.nav-item:hover {
  background: #e5eadc;
}
.nav-item.active {
  background: #dee7d4;
  color: #35553d;
  font-weight: 600;
}
.sidebar-note {
  margin: 42px 5px 20px;
  border: 1px solid #d8e0ca;
  border-radius: 14px;
  background: linear-gradient(135deg, #e3e9d6, #f0f2e7);
  padding: 18px;
}
.privacy-orb {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #d6e0c5;
  color: #6c8760;
  font-size: 18px;
  margin-bottom: 12px;
}
.sidebar-note strong {
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.3px;
  display: block;
  font-weight: 550;
}
.sidebar-note p {
  font-size: 11px;
  color: #8c947e;
  line-height: 1.7;
  margin: 12px 0;
}
.sidebar-note a {
  display: flex;
  justify-content: space-between;
  color: #5c7654;
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  margin-top: 16px;
}
.sidebar-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px 10px 0;
}
.sidebar-bottom button {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  background: none;
  border: 0;
  padding: 0;
  color: #818d76;
  text-align: left;
}
.sidebar-bottom button span,
.sidebar-bottom a {
  font-size: 10px;
  text-decoration: none;
}
.version {
  font-size: 8px;
  letter-spacing: 1.3px;
  color: #9ca38f;
  margin-top: 6px;
}
.main-shell {
  margin-left: 236px;
}
.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 44px;
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #98a08b;
}
.breadcrumb {
  color: #66775d;
  letter-spacing: 0;
  margin-left: 10px;
  font-size: 11px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.connection {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #edf2e5;
  border: 1px solid #dfe7d1;
  border-radius: 20px;
  padding: 6px 11px;
  font-size: 10px;
  letter-spacing: 0;
  color: #6e805e;
}
.connection i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #829968;
}
.settings-link {
  font-size: 20px;
  letter-spacing: 0;
  text-decoration: none;
  color: #79896e;
}
main {
  padding: 39px 44px 26px;
  max-width: 1550px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 33px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 500;
  color: #9a9f83;
}
h1 {
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 500;
  letter-spacing: -1.5px;
  line-height: 1.24;
  margin: 14px 0 12px;
}
h1 em {
  font-style: normal;
  color: #7d946b;
}
.page-heading p {
  font-size: 12px;
  color: #919780;
  margin: 0;
}
.hero-art {
  width: 230px;
  height: 166px;
  position: relative;
  margin-right: 5%;
  flex-shrink: 0;
}
.art-orbit {
  position: absolute;
  inset: 0;
  border: 1px solid #dce3d0;
  border-radius: 50%;
  transform: rotate(-20deg);
}
.art-card {
  position: absolute;
  width: 108px;
  height: 121px;
  border: 1px solid #d2dcc1;
  background: #e5ebd8;
  border-radius: 13px;
  left: 66px;
  top: 17px;
  transform: rotate(14deg);
}
.art-card.front {
  background: #fffefa;
  left: 43px;
  top: 29px;
  transform: rotate(-9deg);
  box-shadow: 0 8px 25px #79885512;
  padding: 21px 15px;
}
.art-card span {
  display: block;
  height: 4px;
  border-radius: 3px;
  background: #dce6cf;
  margin-bottom: 9px;
}
.art-card span:nth-child(1) {
  width: 35%;
  height: 7px;
  background: #a9bd91;
}
.art-card span:nth-child(3) {
  width: 78%;
}
.art-card i {
  font-style: normal;
  font-size: 25px;
  color: #8ca874;
  position: absolute;
  bottom: 12px;
  right: 17px;
}
.art-dot {
  position: absolute;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #d9e5c5;
  right: 0;
  top: 28px;
}
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 23px;
  align-items: start;
}
.source-column {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 23px;
  box-shadow: 0 3px 9px #4e654207;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 21px;
}
.card-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
h2 {
  font-size: 14px;
  letter-spacing: -0.2px;
  font-weight: 600;
  margin: 0;
}
.step {
  font-size: 9px;
  color: #a0ac90;
  background: #f0f3e8;
  border: 1px solid #e6ebdd;
  padding: 4px 6px;
  border-radius: 5px;
}
.subtle-button {
  border: 0;
  background: none;
  padding: 0;
  color: #8a977b;
  font-size: 10px;
  font-weight: 500;
}
.subtle-button:hover {
  color: var(--green);
}
textarea {
  width: 100%;
  resize: vertical;
  min-height: 206px;
  border: 1px solid #e8ebde;
  border-radius: 10px;
  background: #fafbf5;
  color: #3c503b;
  padding: 18px;
  line-height: 1.8;
  font-size: 12px;
}
textarea::placeholder {
  color: #a9ae9c;
}
input::placeholder {
  color: #a2ab97;
}
.editor-footer {
  display: flex;
  justify-content: space-between;
  margin: 10px 2px 17px;
  color: #a1aa93;
  font-size: 9px;
}
.source-actions {
  display: flex;
  gap: 9px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 9px;
  padding: 11px 17px;
  font-weight: 500;
  font-size: 11px;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.15s;
}
.primary {
  background: var(--green);
  color: #fffefa;
  box-shadow: 0 3px 7px #234c3917;
}
.primary:hover {
  background: #386449;
}
.soft {
  background: #e8efdc;
  border-color: #dce6d0;
  color: #617c51;
}
.soft:hover {
  background: #dfe9d1;
}
.ghost {
  background: transparent;
  border-color: #e3e8da;
  color: #839473;
}
.ghost:hover {
  background: #f0f4e8;
}
.small {
  padding: 7px 11px;
  font-size: 10px;
}
.source-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #a3aa95;
  font-size: 9px;
  margin-top: 16px;
}
.source-hint > span {
  font-size: 16px;
  color: #8b9c79;
}
kbd {
  font-family: inherit;
  background: #f0f2e8;
  border: 1px solid #e3e7d9;
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 9px;
}
.mini-tag {
  font-size: 8px;
  letter-spacing: 1px;
  color: #94a083;
  white-space: nowrap;
}
.spark {
  color: #9ab27d;
  font-size: 20px;
}
.voice-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
label {
  font-size: 10px;
  color: #8d987f;
}
select {
  display: block;
  width: 100%;
  min-width: 0;
  background: #fcfdf7;
  color: #667d55;
  border: 1px solid #e1e6d7;
  border-radius: 8px;
  padding: 10px 26px 10px 10px;
  font-size: 11px;
  margin-top: 6px;
}
label input[type="range"] {
  display: block;
  width: 100%;
  margin: 10px 0 0;
  accent-color: #789665;
  height: 4px;
  cursor: pointer;
}
.field-hint {
  color: #a1a88f;
  font-size: 10px;
  line-height: 1.75;
  margin: 13px 0 0;
}
.slider-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 20px 0;
}
.slider-fields label {
  font-size: 9px;
}
.slider-fields output {
  float: right;
  color: #6f865f;
  font-size: 10px;
}
.player {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #f1f5e9;
  border: 1px solid #e7ebdd;
  padding: 13px 12px;
  border-radius: 10px;
}
.player-signal {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 25px;
  width: 24px;
}
.player-signal i {
  background: #9db589;
  width: 3px;
  height: 8px;
  border-radius: 2px;
}
.player-signal i:nth-child(2) {
  height: 17px;
}
.player-signal i:nth-child(3) {
  height: 23px;
}
.player-signal i:nth-child(4) {
  height: 13px;
}
.player strong {
  display: block;
  font-size: 10px;
  font-weight: 550;
  color: #718661;
}
.player small {
  display: block;
  font-size: 8px;
  color: #a1ab92;
  margin-top: 2px;
}
.player-button {
  border: 1px solid #dfe5d3;
  background: #fafcf5;
  border-radius: 7px;
  padding: 4px 9px;
  color: #8a9e74;
  font-size: 13px;
}
.player-button:first-of-type {
  margin-left: auto;
}
.audio-export {
  display: block;
  margin: 13px auto 0;
  font-size: 9px;
}
.insight-card {
  min-height: 695px;
  display: flex;
  flex-direction: column;
}
.summary-options {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}
.task-status {
  font-size: 11px;
  line-height: 1.7;
  color: #849473;
  overflow-wrap: anywhere;
  min-height: 0;
  margin-top: 10px;
}
.task-status.error {
  color: #b56650;
}
.task-status:empty {
  display: none;
}
.empty-state {
  padding: 52px 4px 40px;
  text-align: center;
  flex: 1;
}
.empty-symbol {
  display: grid;
  place-items: center;
  font-size: 37px;
  color: #a0b88a;
  background: #f0f4e6;
  border: 1px solid #e5ecd8;
  width: 76px;
  height: 76px;
  border-radius: 24px;
  margin: 0 auto 23px;
  transform: rotate(-7deg);
}
.empty-state h3 {
  font-size: 15px;
  color: #7a8c6c;
  font-weight: 500;
  letter-spacing: -0.3px;
}
.empty-state p {
  font-size: 11px;
  color: #a4ab95;
  line-height: 1.9;
}
.empty-tag {
  display: inline-block;
  font-size: 8px;
  letter-spacing: 1.3px;
  color: #a6b294;
  margin-top: 17px;
}
.generated-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  color: #60724f;
  line-height: 1.95;
  padding: 22px 0;
  max-height: 440px;
  overflow: auto;
  min-height: 100px;
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 13px;
}
.chat-area {
  border-top: 1px solid #e8ebde;
  margin-top: 14px;
  padding-top: 20px;
}
.chat-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8px;
  letter-spacing: 1.2px;
  color: #a5ae96;
  margin-bottom: 10px;
}
.chat-messages {
  max-height: 310px;
  overflow: auto;
}
.message {
  border: 1px solid #e8ecdd;
  border-radius: 10px;
  background: #fafcf5;
  padding: 12px;
  margin: 10px 0;
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message.user {
  background: #ecf2e2;
  margin-left: 22px;
}
.message-label {
  font-size: 8px;
  letter-spacing: 1px;
  color: #a4b192;
  margin-bottom: 4px;
}
.prompt-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.prompt-chips button {
  background: #f3f6ec;
  border: 1px solid #e6ecd9;
  color: #92a17e;
  font-size: 9px;
  padding: 6px 9px;
  border-radius: 7px;
  cursor: pointer;
}
.chat-form {
  display: flex;
  gap: 8px;
  border: 1px solid #e1e7d6;
  border-radius: 10px;
  padding: 7px 8px 7px 13px;
  background: #fffef9;
  margin-top: 13px;
}
.chat-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: none;
  font-size: 11px;
  color: #60734f;
  outline: none;
}
.chat-form button {
  border: 0;
  border-radius: 7px;
  background: #a4b98d;
  color: white;
  font-size: 19px;
  padding: 2px 12px;
}
.bottom-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 0 0;
  font-size: 9px;
  color: #a6ae96;
}
.bottom-note a {
  text-decoration: none;
  color: #8f9f7d;
}
.studio-footer {
  display: flex;
  justify-content: space-between;
  margin: 0 44px;
  border-top: 1px solid var(--line);
  padding: 19px 0;
  color: #a7ae9a;
  font-size: 9px;
}
.compact {
  margin-bottom: 28px;
  min-height: 130px;
}
.translate-grid,
.model-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.translate-grid textarea {
  min-height: 270px;
}
.translate-grid .button {
  margin-top: 12px;
}
.form-field {
  display: block;
  margin: 15px 0;
  color: #859777;
  font-size: 11px;
}
.provider-card {
  margin-bottom: 23px;
}
.provider-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.provider-option {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #f7f9f0;
  border: 1px solid #e1e8d4;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
}
.provider-option:has(input:checked) {
  background: #edf3e2;
  border-color: #9eb689;
}
.provider-option input {
  accent-color: var(--green);
}
.provider-option strong {
  font-size: 13px;
  font-weight: 600;
  display: block;
  color: #617954;
}
.provider-option small {
  font-size: 10px;
  display: block;
  margin-top: 5px;
  color: #96a187;
}
.model-card {
  position: relative;
}
.model-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: #e5edd8;
  color: #809e67;
  font-size: 24px;
  margin-bottom: 16px;
}
.model-icon.ai {
  background: #f1ead8;
  color: #af9b62;
}
.model-card > .mini-tag {
  position: absolute;
  top: 27px;
  right: 23px;
}
.model-card h2 {
  font-size: 20px;
  font-weight: 500;
}
.model-card p {
  font-size: 12px;
  color: #96a085;
  line-height: 1.8;
  max-width: 320px;
}
.model-specs {
  display: flex;
  gap: 14px;
  font-size: 10px;
  color: #99a38c;
  margin: 15px 0;
}
.download-status {
  font-size: 11px;
  color: #728763;
  overflow-wrap: anywhere;
  min-height: 20px;
}
.model-actions {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-top: 15px;
}
progress {
  width: 100%;
  height: 6px;
  accent-color: #84a56a;
  margin-top: 12px;
}
.model-note {
  font-size: 10px;
  color: #9ca68d;
  line-height: 1.8;
  margin: 17px 0 24px;
}
.status-badge {
  font-size: 10px;
  color: #7c906e;
  background: #eaf0df;
  padding: 8px 12px;
  border: 1px solid #dfe8d1;
  border-radius: 20px;
}
.cloud-card {
  margin: 24px 0;
}
.cloud-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
}
.key-input {
  display: flex;
  border: 1px solid #e0e6d4;
  border-radius: 9px;
  background: #fafcf5;
  align-items: center;
  padding: 0 12px;
}
.key-input input {
  width: 100%;
  border: 0;
  background: none;
  padding: 12px 0;
  color: #637d52;
  font-size: 12px;
  outline: none;
  min-width: 0;
}
.key-actions {
  display: flex;
  gap: 9px;
  margin-top: 12px;
}
.key-guide {
  background: #f5f7ee;
  border: 1px solid #e8eddf;
  padding: 15px 19px;
  border-radius: 11px;
}
.key-guide h3 {
  font-size: 12px;
  font-weight: 550;
  color: #778c64;
  margin: 0;
}
.key-guide ol {
  padding-left: 16px;
  font-size: 11px;
  color: #97a28a;
  line-height: 1.9;
  margin-bottom: 0;
}
.key-guide li {
  padding-left: 4px;
  margin-bottom: 7px;
}
.key-guide a {
  color: #788e67;
}
.key-guide strong {
  font-weight: 500;
  color: #7d8f70;
}
.catalog-heading {
  margin-top: 29px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.catalog-heading h3 {
  font-size: 14px;
  font-weight: 500;
  color: #718563;
  margin: 0;
}
.catalog-heading p {
  font-size: 10px;
  color: #9ca88c;
  margin: 6px 0;
}
.catalog-filters {
  display: flex;
  gap: 19px;
  align-items: center;
  margin-top: 17px;
}
.catalog-filters input[type="search"] {
  width: 100%;
  background: #fafcf5;
  border: 1px solid #e1e7d7;
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 11px;
  color: #6a805a;
}
.catalog-filters label {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 10px;
}
.catalog-filters input[type="checkbox"] {
  accent-color: var(--green);
}
.model-details {
  background: #f3f6ec;
  border: 1px solid #e6ebda;
  color: #8d9e7b;
  border-radius: 8px;
  padding: 13px;
  font-size: 10px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.model-details:empty {
  display: none;
}
.preference-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  cursor: pointer;
}
.toggle-row strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #7e8f6d;
}
.toggle-row small {
  display: block;
  font-size: 10px;
  color: #a2ac93;
  margin-top: 4px;
}
input[role="switch"] {
  appearance: none;
  width: 34px;
  height: 20px;
  background: #dde4d1;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
input[role="switch"]:after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.15s;
}
input[role="switch"]:checked {
  background: #7e9d65;
}
input[role="switch"]:checked:after {
  transform: translateX(14px);
}
.library-controls {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 25px;
}
.library-controls .toggle-row {
  width: min(540px, 100%);
}
.history-empty {
  text-align: center;
  padding: 60px 10px;
  color: #a3ad94;
  font-size: 13px;
}
.history-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.history-item .history-content {
  flex: 1;
  min-width: 0;
}
.history-item strong {
  font-size: 13px;
  font-weight: 500;
  color: #748667;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-item p {
  font-size: 11px;
  color: #a3ac94;
  margin: 6px 0 0;
  line-height: 1.8;
}
.toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  background: #304f3a;
  color: #f5f8ee;
  padding: 14px 21px;
  border-radius: 12px;
  max-width: 420px;
  box-shadow: 0 8px 35px #253f3329;
  font-size: 12px;
  z-index: 20;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-thumb {
  background: #dce4ce;
  border-radius: 6px;
}
@media (min-width: 1550px) {
  main {
    padding-top: 48px;
  }
  .page-heading {
    margin-bottom: 42px;
  }
  .card {
    padding: 27px;
  }
  .insight-card {
    min-height: 725px;
  }
  textarea {
    min-height: 240px;
  }
  .hero-art {
    margin-right: 8%;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
    padding: 26px 16px;
  }
  .main-shell {
    margin-left: 205px;
  }
  main {
    padding: 30px 27px;
  }
  .topbar {
    padding: 0 27px;
  }
  .hero-art {
    width: 180px;
    margin-right: 0;
  }
  .card {
    padding: 18px;
  }
  .workspace-grid {
    gap: 16px;
  }
  .source-actions {
    flex-wrap: wrap;
  }
  .cloud-grid {
    gap: 22px;
  }
  .studio-footer {
    margin: 0 27px;
  }
  .mini-tag {
    font-size: 7px;
  }
}
@media (max-width: 950px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .insight-card {
    min-height: 420px;
  }
  .source-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .voice-fields {
    grid-template-columns: 1fr;
  }
  .hero-art {
    height: 150px;
  }
  .player {
    flex-wrap: wrap;
  }
  .translate-grid,
  .model-grid {
    grid-template-columns: 1fr;
  }
  .cloud-grid {
    grid-template-columns: 1fr;
  }
  .provider-options {
    grid-template-columns: 1fr;
  }
  .preference-grid {
    grid-template-columns: 1fr;
  }
  .source-column .card-heading {
    flex-wrap: wrap;
  }
  h1 {
    font-size: 34px;
  }
  .source-column textarea {
    min-height: 260px;
  }
}
@media (max-width: 720px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 17px 20px;
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }
  .brand {
    font-size: 19px;
  }
  .brand-mark {
    width: 33px;
    height: 33px;
    font-size: 23px;
  }
  .nav-label,
  .sidebar-note,
  .sidebar-bottom {
    display: none;
  }
  nav {
    flex-direction: row;
    gap: 6px;
    margin-top: 18px;
    overflow: auto;
  }
  .nav-item {
    padding: 8px 10px;
    white-space: nowrap;
    font-size: 10px;
    gap: 5px;
  }
  .nav-item span {
    font-size: 15px;
  }
  .main-shell {
    margin-left: 0;
  }
  .topbar {
    height: 54px;
    padding: 0 20px;
  }
  .topbar > span {
    font-size: 8px;
  }
  .topbar-right {
    gap: 10px;
  }
  .connection {
    font-size: 8px;
    padding: 5px 8px;
  }
  main {
    padding: 28px 20px;
  }
  .hero-art {
    display: none;
  }
  .page-heading {
    margin-bottom: 26px;
  }
  .source-column {
    display: flex;
  }
  .voice-fields {
    grid-template-columns: 1fr 1fr;
  }
  .studio-footer {
    margin: 0 20px;
    font-size: 8px;
  }
  .compact {
    min-height: 100px;
  }
  .catalog-filters {
    flex-wrap: wrap;
    gap: 12px;
  }
  .catalog-heading {
    align-items: flex-start;
  }
  .page-heading.compact {
    flex-wrap: wrap;
    gap: 15px;
  }
  .library-controls {
    align-items: flex-start;
    flex-direction: column;
  }
  .bottom-note {
    flex-direction: column;
  }
  .card {
    padding: 20px;
  }
  .toast {
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* Readable text contrast and comfortable controls, especially on smaller screens. */
label,
.form-field {
  font-size: 12px;
  color: #637456;
}
select {
  font-size: 12px;
  color: #425d36;
}
textarea {
  font-size: 14px;
  color: #344b31;
}
textarea::placeholder,
input::placeholder {
  color: #79876d;
}
.field-hint,
.page-heading p,
.sidebar-note p {
  font-size: 11px;
  color: #718164;
}
.subtle-button,
.editor-footer,
.source-hint,
.audio-export {
  font-size: 11px;
  color: #637954;
}
.mini-tag,
.eyebrow,
.nav-label,
.empty-tag {
  color: #6f805e;
  font-size: 10px;
}
.nav-item {
  font-size: 13px;
  color: #607550;
}
.button {
  font-size: 12px;
}
.button.small {
  font-size: 11px;
}
.soft {
  color: #476835;
}
.ghost {
  color: #5e764d;
}
.generated-text {
  font-size: 14px;
  color: #3d5332;
}
.empty-state h3 {
  color: #5f784b;
  font-size: 16px;
}
.empty-state p {
  font-size: 12px;
  color: #7a896b;
}
.slider-fields label,
.slider-fields output {
  font-size: 11px;
  color: #597348;
}
.player strong {
  font-size: 12px;
  color: #5b7648;
}
.player small {
  font-size: 10px;
  color: #748764;
}
.chat-heading {
  font-size: 10px;
  color: #6d815d;
}
.chat-form input {
  font-size: 12px;
}
.prompt-chips button {
  font-size: 11px;
  color: #617a4e;
}
.model-card p,
.model-specs,
.model-note,
.key-guide ol,
.catalog-heading p {
  font-size: 12px;
  color: #6e805f;
}
.model-details,
.catalog-filters label {
  font-size: 11px;
  color: #5e784b;
}
.toggle-row strong {
  font-size: 13px;
  color: #566e45;
}
.toggle-row small {
  font-size: 11px;
  color: #758866;
}
.bottom-note,
.studio-footer {
  font-size: 10px;
  color: #7a896a;
}
.local-catalog { margin: 20px 0; }
.explorer-link { display: flex; justify-content: space-between; gap: 16px; padding: 20px 24px; margin: 20px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); text-decoration: none; font-weight: 600; }
.explorer-link span { color: var(--green); }
.back-link { display: inline-block; margin-bottom: 22px; text-decoration: none; color: var(--green); }
.explorer-details { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; }
.explorer-details summary, .model-more summary { cursor: pointer; color: var(--green); font-size: 13px; }
.explorer-details .form-field { max-width: 320px; margin-top: 16px; }
.model-more { margin-top: 12px; }
#explorer .local-filters { grid-template-columns: 1fr; }
#explorer .local-model-row { padding: 24px 16px; }
@media (max-width: 640px) { .explorer-link { flex-direction: column; } }
.local-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.local-filters .toggle-label { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; font-size: 13px; }
.local-recommendation { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; background: #edf3e6; border-radius: 14px; font-size: 13px; }
.local-models-list { margin-top: 20px; }
.local-model-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 12px; border-bottom: 1px solid #e4e8de; border-radius: 12px; }
.local-model-row[data-selected="true"] { background: #f0f5ea; border: 1px solid #b8cca7; }
.local-model-row h3 { margin: 0 0 6px; font-size: 16px; }
.local-model-row p { margin: 6px 0; font-size: 13px; color: #627553; }
.local-model-row .local-model-specs, .local-model-row .local-model-meta { font-size: 12px; }
.local-model-row a { font-size: 12px; color: #4d723c; }
.local-model-row > button { flex-shrink: 0; }
.local-compatibility { display: inline-block; padding: 4px 8px; border-radius: 8px; font-size: 11px; background: #e8f1df; color: #426331; }
.local-compatibility.caution { background: #f6edda; color: #8a6024; }
.local-compatibility.blocked { background: #fae8e3; color: #9b4d3b; }
.local-compatibility.unknown { background: #edf0eb; color: #677561; }
@media (max-width: 640px) {
  .local-filters { grid-template-columns: 1fr; }
  .local-model-row { align-items: stretch; flex-direction: column; }
  .local-recommendation { align-items: stretch; flex-direction: column; }
  .local-catalog .card-heading { gap: 12px; flex-wrap: wrap; }
}
