:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #17252d;
  background: #f5f6f8;
  font-synthesis: none;
  --muted: #687982;
  --border: #e2e7e9;
  --teal: #087f79;
  --ink: #17252d;
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: var(--teal);
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #66c9bf;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.1px;
  line-height: 1.2;
  margin-bottom: 10px;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 15px;
  margin-bottom: 12px;
}
p {
  line-height: 1.6;
}
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
  line-height: 1.6;
}
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.6px;
  color: var(--muted);
}
.brand {
  font-size: 20px;
  font-weight: 730;
  letter-spacing: -0.6px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: #fff;
}
.brand-mark {
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #4ee0b3;
  color: #153331;
  width: 34px;
  height: 34px;
  font-weight: 800;
  font-size: 20px;
}
.brand-dot {
  width: 6px;
  height: 6px;
  background: #4ee0b3;
  border-radius: 50%;
  margin-left: auto;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  background: #13292d;
  color: #c0d1d3;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.sidebar .brand {
  padding: 0 9px;
  margin-bottom: 48px;
}
.sidebar-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #7b9a9e;
  margin: 0 12px 13px;
}
.nav-link {
  color: #adc0c3;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 12px 13px;
  width: 100%;
  text-align: left;
  font-size: 13px;
  margin-bottom: 5px;
}
.nav-link .nav-icon {
  font-size: 18px;
  width: 22px;
  text-align: center;
}
.nav-link:hover {
  background: #1f3b3f;
  color: white;
}
.nav-link.active {
  background: #24494a;
  color: #8af1d1;
  font-weight: 650;
}
.sidebar-bottom {
  margin-top: auto;
}
.connection {
  border-top: 1px solid #2a4246;
  margin-top: 16px;
  padding: 22px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.connection small {
  display: block;
  color: #7b9a9e;
  font-size: 10px;
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status-dot {
  width: 7px;
  height: 7px;
  flex: none;
  background: #58dcae;
  border-radius: 50%;
}
.workspace {
  margin-left: 236px;
}
.topbar {
  height: 78px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}
.breadcrumb {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb span {
  color: #bac3c6;
}
.breadcrumb strong {
  color: var(--ink);
  font-weight: 550;
}
.topbar-end {
  display: flex;
  align-items: center;
  gap: 16px;
}
.owner-badge {
  font-size: 11px;
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--muted);
}
.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0eee5;
  color: #8d7655;
  font-size: 12px;
  font-weight: 700;
}
main {
  max-width: 1600px;
  margin: auto;
  padding: 36px 40px 50px;
  min-height: calc(100vh - 134px);
}
footer {
  padding: 18px 40px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: #8d999f;
  display: flex;
  justify-content: space-between;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading p {
  font-size: 13px;
  margin: 0;
  color: var(--muted);
}
.heading-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.primary,
.secondary,
.danger,
.quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  border: 1px solid transparent;
}
.primary {
  background: #087f79;
  color: #fff;
  box-shadow: 0 2px 3px #087f7914;
}
.primary:hover {
  background: #066b66;
}
.secondary {
  background: white;
  border-color: #d9e2e5;
  color: #425960;
}
.secondary:hover {
  background: #f3f7f6;
}
.danger {
  color: #b24444;
  background: #fff0ef;
  border-color: #f3d8d5;
}
.quiet {
  background: transparent;
  color: var(--teal);
  padding: 8px;
}
.icon-button {
  border: 1px solid var(--border);
  background: #fff;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #687982;
  font-size: 15px;
  display: grid;
  place-items: center;
}
.mobile-toggle {
  display: none;
}
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 5px #17252d02;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.panel-heading h2,
.panel-heading h3 {
  margin: 0;
}
.grid {
  display: grid;
  gap: 20px;
}
.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}
.stat {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 13px;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 14px;
}
.stat strong {
  display: block;
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 650;
}
.stat small {
  color: var(--muted);
  font-size: 10px;
}
.stat-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #e8f7f2;
  color: var(--teal);
  font-size: 16px;
}
.hero {
  border: 1px solid #d3e8e1;
  border-radius: 16px;
  background: linear-gradient(110deg, #edf8f2, #f8faf4);
  padding: 30px 34px;
  margin-bottom: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}
.hero h2 {
  font-size: 24px;
  margin: 10px 0;
}
.hero p {
  font-size: 13px;
  color: #5f7773;
  margin-bottom: 20px;
  max-width: 580px;
}
.hero-art {
  font-size: 85px;
  color: #67b8a1;
  transform: rotate(-14deg);
  padding: 0 25px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 13px;
  color: inherit;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px #17252d09;
}
.tool-card h3 {
  margin: 0;
  font-size: 16px;
}
.tool-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.tool-symbol {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: #eaf6f4;
  color: #087f79;
  border-radius: 11px;
  font-size: 23px;
}
.tool-symbol.music {
  background: #fff3de;
  color: #ad7e26;
}
.tool-symbol.video {
  background: #f0ecfa;
  color: #8b78ad;
}
.section-space {
  margin-top: 26px;
}
.toolbar {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.search {
  max-width: 330px;
}
.chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.chip {
  background: transparent;
  color: #74848b;
  border: 0;
  padding: 8px 13px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
}
.chip.active {
  background: #e4f2ed;
  color: var(--teal);
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
  color: #425960;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dce3e6;
  background: #fff;
  color: #1d323b;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  min-height: 40px;
}
input::placeholder,
textarea::placeholder {
  color: #9ca9af;
}
textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}
input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  accent-color: #087f79;
}
input[type="file"] {
  padding: 8px;
  font-size: 11px;
}
select[multiple] {
  height: 130px;
}
.field {
  margin-bottom: 18px;
}
.field small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
}
.check-field {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  margin: 12px 0 18px;
}
.check-field label {
  margin: 0;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
}
.form-actions .muted {
  font-size: 11px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 650;
  background: #f0f3f5;
  color: #78878f;
}
.badge.green,
.badge.succeeded {
  color: #257c62;
  background: #e6f5eb;
}
.badge.failed,
.badge.unknown_provider_result {
  color: #b44f43;
  background: #fff0ed;
}
.badge.queued,
.badge.planning,
.badge.submitting,
.badge.waiting_provider,
.badge.saving_outputs {
  color: #986b28;
  background: #fff6e4;
}
.notice {
  background: #fff8ea;
  border: 1px solid #efdfbc;
  border-radius: 10px;
  padding: 14px 16px;
  color: #8b6d36;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.notice.info {
  background: #edf7f5;
  border-color: #d1e7e0;
  color: #426e64;
}
.error {
  color: #bc4d43;
  font-size: 12px;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
th {
  font-size: 10px;
  letter-spacing: 0.6px;
  color: #8a969c;
  font-weight: 600;
  text-transform: uppercase;
  padding: 11px 12px;
  background: #fafbfb;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 15px 12px;
  border-bottom: 1px solid #edf0f2;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}
.truncate {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table-title {
  font-weight: 600;
  color: #2d424a;
}
.table-sub {
  display: block;
  font-size: 10px;
  color: #8a999f;
  margin-top: 4px;
}
.empty {
  padding: 50px 20px;
  text-align: center;
  color: #8c9ba2;
  font-size: 13px;
}
.empty strong {
  display: block;
  color: #455f69;
  font-size: 16px;
  margin-bottom: 8px;
}
.loading {
  padding: 70px;
  text-align: center;
  color: #78918d;
  font-size: 13px;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.media-card {
  border: 1px solid var(--border);
  border-radius: 13px;
  background: white;
  overflow: hidden;
}
.media-visual {
  height: 196px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef1f3;
  position: relative;
}
.media-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.media-visual video {
  width: 100%;
  height: 100%;
}
.media-visual.audio {
  background: linear-gradient(145deg, #f6f0e4, #edf1ee);
  flex-direction: column;
  padding: 16px;
  gap: 15px;
}
.audio-art {
  font-size: 45px;
  color: #a6b6a8;
  letter-spacing: 8px;
}
audio {
  width: 100%;
  height: 32px;
}
.media-body {
  padding: 16px;
}
.media-title {
  font-size: 12px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 8px;
}
.media-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #8b999f;
  margin-bottom: 12px;
}
.media-actions {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.media-actions button {
  font-size: 10px;
  padding: 7px 9px;
}
.media-role {
  position: absolute;
  left: 12px;
  top: 12px;
  background: #fffffff0;
  box-shadow: 0 1px 8px #17252d10;
}
.skill-layout {
  display: grid;
  grid-template-columns: 275px minmax(0, 1fr);
  gap: 22px;
}
.skill-list {
  padding: 12px;
}
.skill-item {
  width: 100%;
  text-align: left;
  background: white;
  border: 0;
  border-radius: 8px;
  padding: 15px 12px;
  color: #29434c;
  margin-bottom: 4px;
}
.skill-item:hover {
  background: #f5f8f7;
}
.skill-item.active {
  background: #eaf5f0;
}
.skill-item strong {
  display: block;
  font-size: 12px;
}
.skill-item small {
  font-size: 10px;
  color: #84969e;
  display: block;
  margin-top: 6px;
}
.file-editor {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
}
.file-tree {
  background: #f7f9fa;
  border-right: 1px solid var(--border);
  padding: 10px;
  min-width: 0;
}
.file-button {
  font-size: 10px;
  background: transparent;
  border: 0;
  color: #6d8088;
  padding: 9px 6px;
  border-radius: 5px;
  text-align: left;
  width: 100%;
  overflow-wrap: anywhere;
}
.file-button.active {
  background: #e3ede9;
  color: #277b67;
}
.file-editor textarea {
  border: 0;
  border-radius: 0;
  min-height: 280px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.file-editor textarea:focus {
  outline-offset: -3px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.detail-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8b999f;
  margin-bottom: 6px;
}
.detail-value {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.code-block {
  background: #f6f8f9;
  border: 1px solid #e8edef;
  border-radius: 8px;
  padding: 14px;
  font:
    11px/1.7 ui-monospace,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 400px;
  overflow: auto;
}
.trajectory {
  border-left: 2px solid #e1ece8;
  margin: 14px 0 0 8px;
  padding-left: 24px;
}
.trace-event {
  position: relative;
  margin-bottom: 18px;
}
.trace-event:before {
  content: "";
  position: absolute;
  left: -30px;
  top: 4px;
  width: 10px;
  height: 10px;
  border: 2px solid white;
  border-radius: 50%;
  background: #74b7a1;
}
.trace-event summary {
  font-size: 12px;
  cursor: pointer;
}
.trace-event time {
  font-size: 10px;
  color: #8b999f;
  margin-left: 10px;
}
.trace-event pre {
  max-height: 240px;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  width: min(960px, calc(100vw - 36px));
  max-height: 88vh;
  box-shadow: 0 20px 100px #10262d30;
  color: var(--ink);
}
dialog::backdrop {
  background: #10262d80;
  backdrop-filter: blur(4px);
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
dialog h2 {
  margin: 0 0 22px;
}
.tabbar {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin: 22px 0;
}
.tabbar button {
  border: 0;
  background: transparent;
  padding: 9px 13px;
  border-radius: 7px;
  color: #7d9096;
  font-size: 12px;
}
.tabbar button.active {
  background: #e9f5f0;
  color: #177b67;
}
#toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 100;
  background: #163f38;
  color: white;
  border: 1px solid #357065;
  padding: 14px 20px;
  border-radius: 10px;
  box-shadow: 0 6px 30px #10262d25;
  font-size: 12px;
  max-width: 450px;
  display: none;
}
#toast.visible {
  display: block;
}
#toast.error-toast {
  background: #8d3732;
  border-color: #b95650;
}
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: #fff;
}
.login-art {
  background: #132e31;
  color: #f1faf5;
  padding: 45px 55px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}
.login-art h1 {
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 550;
  letter-spacing: -2px;
  line-height: 1.15;
  margin: 18px 0 25px;
}
.login-art .eyebrow {
  color: #8bcbb6;
}
.login-art p {
  color: #9bbab8;
  font-size: 15px;
}
.login-art > small {
  color: #709793;
  font-size: 11px;
}
.art-orbits {
  display: flex;
  gap: 22px;
  margin-top: 35px;
}
.art-orbits span {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 1px solid #476b65;
  border-radius: 22px;
  color: #9ee8c9;
  font-size: 33px;
  transform: rotate(-8deg);
}
.art-orbits span:nth-child(2) {
  transform: rotate(8deg);
  color: #e4cf99;
}
.login-form {
  max-width: 380px;
  margin: auto;
  width: 100%;
  padding: 25px;
}
.login-form h2 {
  font-size: 30px;
  margin: 15px 0 12px;
}
.login-form p {
  font-size: 13px;
}
.login-form label {
  margin-top: 30px;
}
.login-form button {
  width: 100%;
  justify-content: space-between;
  margin: 20px 0;
  padding: 13px 16px;
}
.login-form small {
  display: block;
}
.copy-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.list-heading {
  margin: 25px 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.list-heading h2 {
  font-size: 17px;
  margin: 0;
}
.full-width {
  grid-column: 1/-1;
}
.key-display {
  border: 1px solid #d9e9df;
  background: #f2faf5;
  padding: 16px;
  border-radius: 9px;
  margin: 16px 0;
}
.key-display code {
  font-size: 12px;
  word-break: break-all;
}
.spaced {
  margin-bottom: 20px;
}
.progress-note {
  font-size: 11px;
  color: #739088;
}
.infrastructure {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  font-size: 12px;
  gap: 16px;
  overflow-wrap: anywhere;
}
.infrastructure dt {
  color: #8b999f;
}
.infrastructure dd {
  margin: 0;
}
.table-action {
  background: none;
  border: 0;
  color: #087f79;
  font-size: 11px;
  padding: 6px;
}
.upload-zone {
  border: 1px dashed #cbdcd5;
  border-radius: 9px;
  background: #f7fbf8;
  padding: 16px;
  margin: 15px 0;
}
.section-note {
  font-size: 12px;
  color: #819197;
  margin: -5px 0 20px;
}
.checkbox-list {
  max-height: 170px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
}
.reference-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
  margin-bottom: 10px;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.skeleton {
  background: linear-gradient(90deg, #f1f5f3, #e9f0ed, #f1f5f3);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
  height: 18px;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (max-width: 1200px) {
  .stats {
    gap: 12px;
  }
  .grid.three {
    grid-template-columns: 1fr 1fr;
  }
  .sidebar {
    width: 210px;
  }
  .workspace {
    margin-left: 210px;
  }
  main {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .skill-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}
@media (max-width: 900px) {
  .grid.two {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .hero-art {
    display: none;
  }
  .skill-layout {
    grid-template-columns: 1fr;
  }
  .skill-list {
    display: flex;
    overflow: auto;
  }
  .skill-item {
    min-width: 190px;
    width: 190px;
    margin: 0 5px 0 0;
  }
  .sidebar {
    width: 190px;
    padding: 25px 12px;
  }
  .workspace {
    margin-left: 190px;
  }
  .hero {
    padding: 24px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .login-art {
    padding: 35px;
  }
  .file-editor {
    grid-template-columns: 130px 1fr;
  }
}
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    visibility: hidden;
    width: 236px;
    transition: transform 0.2s;
  }
  .sidebar.open {
    visibility: visible;
    transform: translateX(0);
    box-shadow: 0 0 0 100vw #13292d66;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 64px;
    padding: 0 18px;
  }
  .mobile-toggle {
    display: grid;
    margin-right: 10px;
  }
  .breadcrumb {
    margin-right: auto;
    gap: 8px;
    font-size: 10px;
  }
  .topbar-end {
    gap: 8px;
  }
  .owner-badge {
    display: none;
  }
  main {
    padding: 24px 18px;
  }
  h1 {
    font-size: 27px;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
  }
  .heading-actions {
    width: 100%;
  }
  .grid.three {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .stat strong {
    font-size: 25px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .search {
    max-width: 100%;
  }
  .media-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .media-visual {
    height: 155px;
  }
  .media-visual.audio {
    padding: 8px;
  }
  .audio-art {
    font-size: 30px;
  }
  .media-actions {
    flex-wrap: wrap;
  }
  .media-body {
    padding: 12px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .panel {
    padding: 18px;
  }
  .file-editor {
    grid-template-columns: 1fr;
  }
  .file-tree {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    overflow: auto;
  }
  .file-button {
    min-width: 150px;
  }
  .login-wrap {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  .login-form {
    padding: 35px;
    max-width: 420px;
  }
  .infrastructure {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  footer {
    padding: 18px;
  }
  footer span {
    display: none;
  }
  .hero {
    padding: 22px;
  }
  .hero h2 {
    font-size: 21px;
  }
  .reference-row {
    grid-template-columns: 1fr;
  }
  .dialog-top {
    margin-bottom: 16px;
  }
  dialog {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.media-detail .media-visual {
  height: min(50vh, 480px);
}
.media-detail .media-visual.audio {
  height: 180px;
}
.media-detail .media-visual audio {
  max-width: 600px;
}

/* MCP catalog and documentation editor */
.tool-layout {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}
.tool-list {
  display: grid;
  gap: 6px;
  margin-top: 16px;
}
.tool-list button {
  text-align: left;
  overflow-wrap: anywhere;
  justify-content: flex-start;
  font-size: 13px;
  font-weight: 650;
  border-radius: 9px;
  padding: 10px 12px;
}
.tool-list button.active {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}
.tool-editor {
  min-width: 0;
  display: grid;
  gap: 20px;
}
.tool-input {
  border-top: 1px solid var(--border, #ddd);
  padding: 14px 0;
}
.tool-input summary {
  cursor: pointer;
  padding: 6px 0;
  overflow-wrap: anywhere;
}
.tool-preview {
  max-height: 560px;
  overflow: auto;
}
@media (max-width: 800px) {
  .tool-layout {
    grid-template-columns: 1fr;
  }
  .tool-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
