:root {
  --ink: #17352a;
  --muted: #687a73;
  --line: #dce9e3;
  --soft: #f1f7f4;
  --panel: #fff;
  --primary: #16875b;
  --primary-dark: #0f6c48;
  --primary-soft: #e3f4eb;
  --danger: #d64c5e;
  --shadow: 0 18px 50px rgba(28, 34, 55, .09);
  --radius: 18px;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--soft);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: var(--soft); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
.hidden { display: none !important; }
.visually-hidden { position: fixed; left: -9999px; opacity: 0; }
.muted { color: var(--muted); }
.eyebrow { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .18em; color: rgba(255,255,255,.65); }
.eyebrow.ink { color: var(--primary); }

[data-icon] { display: inline-flex; align-items: center; justify-content: center; }
[data-icon] svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(145deg,#17875c,#0e5e40); color: #fff; font-weight: 800; font-size: 19px; box-shadow: 0 7px 18px rgba(15,108,72,.23); }
.brand b, .brand small { display: block; }
.brand b { font-size: 15px; letter-spacing: -.02em; }
.brand small { margin-top: 2px; color: #9299aa; font-size: 10px; letter-spacing: .08em; }
.brand-light { color: #fff; }
.brand-light .brand-mark { background: #fff; color: #20243a; }
.brand-light small { color: rgba(255,255,255,.58); }

button, .ghost-btn, .primary-btn, .secondary-btn { border: 0; cursor: pointer; }
.primary-btn, .secondary-btn, .ghost-btn { min-height: 42px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; font-size: 13px; font-weight: 700; text-decoration: none; transition: .18s ease; }
.primary-btn { color: #fff; background: var(--primary); box-shadow: 0 8px 22px rgba(22,135,91,.24); }
.primary-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.primary-btn:disabled { opacity: .55; transform: none; cursor: wait; }
.secondary-btn { background: #fff; color: #33394b; border: 1px solid var(--line); }
.secondary-btn:hover, .ghost-btn:hover { background: #f4f5f9; }
.ghost-btn { background: transparent; color: #50586b; }
.compact { min-height: 36px; padding: 0 12px; }
.icon-btn, .square-btn { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: transparent; cursor: pointer; }
.icon-btn:hover, .square-btn:hover { background: #f1f2f6; }
.square-btn { border: 1px solid var(--line); background: #fff; }

/* Login */
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.05fr) minmax(480px, .95fr); background: #fff; }
.login-story { position: relative; overflow: hidden; padding: 48px 56px; background:
  radial-gradient(circle at 22% 24%, rgba(73,190,137,.3), transparent 29%),
  radial-gradient(circle at 90% 78%, rgba(95,212,158,.16), transparent 30%),
  linear-gradient(142deg, #0d2a20 0%, #123d2e 58%, #17533d 100%); color: #fff; }
.login-story::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(to bottom, #000, transparent); }
.login-story > * { position: relative; z-index: 1; }
.story-copy { margin-top: clamp(100px, 19vh, 190px); max-width: 600px; }
.story-copy h1 { margin: 22px 0 20px; font-size: clamp(39px, 4.4vw, 67px); line-height: 1.17; letter-spacing: -.055em; font-weight: 650; }
.story-copy p { max-width: 490px; margin: 0; color: rgba(255,255,255,.64); font-size: 15px; line-height: 1.9; }
.story-foot { position: absolute; left: 56px; bottom: 37px; margin: 0; color: rgba(255,255,255,.35); font-size: 11px; letter-spacing: .14em; }
.story-orbit { position: absolute; z-index: 0; right: -120px; bottom: -135px; width: 440px; height: 440px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; animation: orbit 30s linear infinite; }
.story-orbit::before, .story-orbit::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; }
.story-orbit::before { inset: 62px; }.story-orbit::after { inset: 126px; }
.story-orbit i { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: #66d49f; box-shadow: 0 0 22px #66d49f; }
.story-orbit i:nth-child(1) { left: 53px; top: 74px; }.story-orbit i:nth-child(2) { right: 71px; top: 98px; }.story-orbit i:nth-child(3) { left: 110px; bottom: 56px; }
.story-orbit span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-size: 11px; line-height: 1.5; letter-spacing: .16em; color: rgba(255,255,255,.3); }
@keyframes orbit { to { transform: rotate(360deg); } }
.login-panel { display: grid; place-items: center; padding: 48px; }
.login-card { width: min(390px, 100%); }
.mobile-brand { display: none; }
.login-card h2 { margin: 12px 0 8px; font-size: 31px; letter-spacing: -.04em; }
.login-card > .muted { margin: 0 0 34px; font-size: 13px; }
.field-label { display: block; margin: 18px 0 8px; font-size: 12px; font-weight: 700; color: #4b5365; }
.input-wrap { position: relative; }
.input-wrap input, .plain-input { width: 100%; height: 49px; border: 1px solid #dfe3ec; border-radius: 11px; outline: none; background: #fff; color: var(--ink); transition: .18s; }
.input-wrap input { padding: 0 46px; }
.plain-input { padding: 0 14px; }
.input-wrap input:focus, .plain-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.field-icon { position: absolute; left: 15px; top: 15px; color: #99a1b1; }
.password-toggle { position: absolute; right: 7px; top: 7px; color: #8c94a5; }
.login-options { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; color: #979dac; font-size: 11px; }
.check-label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: #555d70; }
.check-label input { position: absolute; opacity: 0; }
.check-label span { width: 17px; height: 17px; display: inline-flex; border: 1px solid #cfd4df; border-radius: 5px; background: #fff; }
.check-label input:checked + span { border-color: var(--primary); background: var(--primary) center/12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8 3 3 6-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.form-error { min-height: 18px; margin: 13px 0 2px; color: var(--danger); font-size: 12px; }
.login-submit { width: 100%; height: 49px; margin-top: 4px; }
.login-submit i { margin-left: auto; }
.security-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 20px 0 0; color: #a1a7b5; font-size: 10px; }
.security-note svg { width: 14px; height: 14px; }

/* App shell */
.app-shell { min-height: 100vh; }
.topbar { height: 74px; padding: 0 clamp(20px, 4.2vw, 68px); background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.profile { position: relative; }
.profile-button { display: flex; align-items: center; gap: 9px; border: 0; padding: 5px 7px; background: transparent; border-radius: 11px; cursor: pointer; }
.profile-button:hover { background: #f4f5f8; }
.avatar { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; color: #fff; background: linear-gradient(140deg,#1d9668,#0f6848); font-size: 13px; font-weight: 800; }
.profile-copy { text-align: left; min-width: 65px; }.profile-copy b,.profile-copy small { display: block; }.profile-copy b { font-size: 12px; }.profile-copy small { margin-top: 2px; color: #969cad; font-size: 9px; }
.profile-button > svg { width: 14px; color: #9298a8; }
.profile-menu { position: absolute; right: 0; top: 51px; width: 218px; padding: 9px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); z-index: 50; }
.profile-menu > div { display: flex; gap: 10px; align-items: center; padding: 9px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.profile-menu p { margin: 0; }.profile-menu p b,.profile-menu p small { display: block; }.profile-menu p b { font-size: 12px; }.profile-menu p small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.profile-menu button { width: 100%; display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 9px; background: transparent; font-size: 12px; text-align: left; }.profile-menu button:hover { background: #f5f6f9; color: var(--danger); }
.workspace { width: min(1440px, calc(100% - clamp(32px, 8vw, 136px))); margin: 0 auto; padding: 46px 0 70px; }
.page-head { margin-bottom: 23px; }
.breadcrumbs { min-height: 22px; display: flex; align-items: center; gap: 7px; margin-bottom: 17px; font-size: 11px; color: #8c93a4; }
.breadcrumbs a { color: inherit; text-decoration: none; }.breadcrumbs a:hover { color: var(--primary); }.breadcrumbs svg { width: 12px; height: 12px; }.breadcrumbs .current { color: #42495a; font-weight: 650; }
.headline-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; }
.headline-row h1 { margin: 6px 0 7px; font-size: 31px; letter-spacing: -.045em; }
.headline-row .muted { margin: 0; font-size: 12px; }
.head-actions { position: relative; display: flex; align-items: center; gap: 8px; }
.primary-btn.split { width: 31px; min-width: 31px; padding: 0; margin-left: -8px; border-left: 1px solid rgba(255,255,255,.22); border-radius: 0 11px 11px 0; }
#uploadButton { border-radius: 11px 0 0 11px; }
.action-menu { position: absolute; right: 0; top: 49px; width: 204px; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); z-index: 20; }
.action-menu button { width: 100%; padding: 10px; display: flex; align-items: center; gap: 9px; background: transparent; border-radius: 8px; font-size: 12px; text-align: left; }.action-menu button:hover { background: #f5f6fa; }

.content-card { min-height: 480px; background: var(--panel); border: 1px solid #e9ebf1; border-radius: var(--radius); box-shadow: 0 8px 35px rgba(29,35,54,.045); overflow: hidden; }
.toolbar { min-height: 68px; padding: 13px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.search-box { width: min(390px, 42vw); height: 40px; border-radius: 10px; background: #f5f6f9; display: flex; align-items: center; gap: 9px; padding: 0 11px; color: #8d94a4; }
.search-box input { min-width: 0; flex: 1; height: 100%; border: 0; outline: 0; background: transparent; font-size: 12px; color: var(--ink); }
.search-box kbd { border: 1px solid #dfe2e9; border-radius: 5px; background: #fff; padding: 2px 5px; color: #a2a7b4; font: 9px inherit; }
.toolbar-actions { display: flex; align-items: center; gap: 9px; }
.select-control { height: 36px; min-width: 118px; border: 1px solid var(--line); border-radius: 9px; outline: 0; padding: 0 27px 0 10px; color: #565e70; background: #fff; font-size: 11px; }
.view-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }.view-switch button { width: 29px; height: 28px; border: 0; background: transparent; border-radius: 6px; color: #969cac; cursor: pointer; }.view-switch button.active { background: var(--primary-soft); color: var(--primary); }
.selection-bar { min-height: 49px; padding: 8px 19px; display: flex; align-items: center; justify-content: space-between; background: #edf8f2; border-bottom: 1px solid #d8eee3; font-size: 11px; }
.selection-bar > div { display: flex; gap: 5px; align-items: center; }.selection-bar button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 7px; background: transparent; font-size: 11px; }.selection-bar button:hover { background: #dff2e8; }.selection-bar .danger-text { color: var(--danger); }

.loading-state, .empty-state { min-height: 375px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; text-align: center; }
.loading-state span { width: 31px; height: 31px; border: 3px solid #dff1e7; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }.loading-state p { margin-top: 12px; color: var(--muted); font-size: 11px; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-visual { width: 78px; height: 67px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 21px; color: var(--primary); background: linear-gradient(145deg,#eaf7f0,#d9efe4); transform: rotate(-3deg); }.empty-visual svg { width: 31px; height: 31px; }.empty-visual.error { color: var(--danger); background: #fff0f1; }
.empty-state h3 { margin: 0 0 8px; font-size: 16px; }.empty-state p { max-width: 330px; margin: 0 0 19px; color: var(--muted); font-size: 11px; line-height: 1.7; }

.items-grid { padding: 20px; display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 15px; }
.item-card { position: relative; min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; cursor: pointer; transition: .18s ease; }
.item-card:hover { border-color: #abd8c3; transform: translateY(-2px); box-shadow: 0 10px 25px rgba(20,83,59,.08); }.item-card.selected { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.item-select { position: absolute; top: 11px; left: 11px; z-index: 2; opacity: 0; transition: .15s; }.item-card:hover .item-select,.item-card.selected .item-select { opacity: 1; }
.item-select label { padding: 4px; }.item-select .check-label span { width: 16px; height: 16px; }
.item-menu-button { position: absolute; right: 8px; top: 8px; z-index: 3; color: #9097a7; }
.item-visual { height: 168px; display: grid; place-items: center; margin: -3px -3px 12px; padding: 8px; border-radius: 10px; background: linear-gradient(145deg,#f7faf8,#eef5f1); overflow: hidden; }
.item-visual img { width: 100%; height: 100%; object-fit: contain; }
.file-icon { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 14px; color: var(--primary); background: var(--primary-soft); }.file-icon svg { width: 24px; height: 24px; }.file-icon.folder { color: #9a6a25; background: #fff3d8; }.file-icon.video { color: #e4556a; background: #ffeaed; }.file-icon.audio { color: #377fd0; background: #e8f3ff; }.file-icon.document { color: #547166; background: #e8f3ef; }
.item-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 700; }.item-meta { display: flex; justify-content: space-between; gap: 6px; margin-top: 6px; color: #969dac; font-size: 9px; }.item-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-context { position: fixed; width: 174px; padding: 6px; z-index: 70; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: var(--shadow); }.item-context button { width: 100%; padding: 9px; display: flex; align-items: center; gap: 8px; border-radius: 7px; background: transparent; font-size: 11px; text-align: left; }.item-context button:hover { background: #f4f5f8; }.item-context .danger { color: var(--danger); }

.items-list { padding: 0 18px 12px; }.list-head,.list-row { display: grid; grid-template-columns: 36px minmax(200px,1fr) 100px 150px 42px; align-items: center; column-gap: 10px; }.list-head { height: 43px; color: #969cac; border-bottom: 1px solid var(--line); font-size: 9px; font-weight: 700; }.list-row { min-height: 58px; border-bottom: 1px solid #eff0f4; cursor: pointer; }.list-row:hover { background: #f7fbf9; }.list-row.selected { background: #edf8f2; }.list-name { min-width: 0; display: flex; align-items: center; gap: 11px; }.list-name .file-icon { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px; }.list-name .file-icon svg { width: 17px; height: 17px; }.list-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }.list-size,.list-time { color: #858c9c; font-size: 10px; }
.content-footer { min-height: 47px; padding: 0 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: #999fac; font-size: 9px; }

/* Upload drawer */
.upload-drawer { position: fixed; right: 22px; bottom: 22px; width: min(390px,calc(100vw - 30px)); max-height: min(590px,calc(100vh - 100px)); z-index: 60; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 22px 60px rgba(22,27,44,.2); overflow: hidden; }
.drawer-head,.drawer-foot { padding: 15px 17px; display: flex; align-items: center; justify-content: space-between; }.drawer-head { border-bottom: 1px solid var(--line); }.drawer-head h3 { margin: 0; font-size: 14px; }.drawer-head p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }.drawer-foot { border-top: 1px solid var(--line); }
.upload-queue { overflow: auto; padding: 5px 15px; }.upload-item { padding: 12px 0; display: grid; grid-template-columns: 36px minmax(0,1fr) 28px; gap: 10px; align-items: center; border-bottom: 1px solid #eff0f4; }.upload-item .file-icon { width: 36px; height: 36px; border-radius: 10px; }.upload-copy { min-width: 0; }.upload-title { display: flex; justify-content: space-between; gap: 7px; font-size: 10px; }.upload-title b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.upload-title span { flex: 0 0 auto; color: var(--muted); }.progress { height: 4px; margin-top: 7px; overflow: hidden; border-radius: 4px; background: #eeeff4; }.progress i { display: block; width: 0; height: 100%; background: var(--primary); transition: width .2s; }.upload-status { margin-top: 5px; color: var(--muted); font-size: 9px; }.upload-status.error { color: var(--danger); }.retry-upload { color: var(--primary); }
.upload-status a { color: var(--primary); font-weight: 700; text-decoration: none; }
.drop-overlay { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 30px; background: rgba(11,63,43,.72); backdrop-filter: blur(7px); pointer-events: none; }
.drop-overlay > div { width: min(540px,90vw); padding: 54px 30px; border: 2px dashed rgba(255,255,255,.72); border-radius: 24px; color: #fff; background: rgba(22,135,91,.36); text-align: center; box-shadow: 0 24px 70px rgba(4,31,21,.28); }
.drop-overlay i { width: 64px; height: 64px; margin: 0 auto 17px; border-radius: 18px; background: rgba(255,255,255,.16); }.drop-overlay i svg { width: 34px; height: 34px; }.drop-overlay h2 { margin: 0 0 8px; font-size: 25px; }.drop-overlay p { margin: 0; color: rgba(255,255,255,.75); font-size: 12px; }

/* Modals */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 25px; background: rgba(17,21,34,.55); backdrop-filter: blur(5px); }
.modal { position: relative; width: min(440px,100%); border-radius: 19px; background: #fff; box-shadow: 0 26px 90px rgba(5,9,20,.3); animation: modalIn .18s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.dialog-modal,.api-modal { padding: 27px; }.modal-close { position: absolute; top: 15px; right: 15px; }.modal-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--primary); background: var(--primary-soft); }.modal h2 { margin: 16px 0 7px; font-size: 21px; letter-spacing: -.03em; }.modal > .muted { margin: 0 0 20px; font-size: 11px; line-height: 1.7; }.field-hint { min-height: 15px; margin: 6px 0 0; color: #9299aa; font-size: 9px; }.modal-actions { margin-top: 21px; display: flex; justify-content: flex-end; gap: 8px; }
.api-modal { width: min(820px,100%); max-height: min(860px,calc(100vh - 50px)); overflow: auto; }.api-modal h2 { margin-top: 9px; }.api-modal code { font-family: ui-monospace,SFMono-Regular,Menlo,monospace; }.api-key-card { display: grid; grid-template-columns: minmax(110px,.45fr) minmax(220px,1fr) auto; align-items: center; gap: 13px; margin: 18px 0 15px; padding: 14px; border: 1px solid #cfe7dc; border-radius: 12px; background: #f0f9f5; }.api-key-card span,.api-key-card small { display: block; }.api-key-card span { font-size: 11px; font-weight: 800; }.api-key-card small { margin-top: 3px; color: var(--muted); font-size: 8px; }.api-key-card > code { min-width: 0; overflow: auto; color: var(--primary-dark); font-size: 11px; font-weight: 700; white-space: nowrap; }.api-contract { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }.api-contract > div { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfc; }.api-contract span,.api-contract code { display: block; }.api-contract span { margin-bottom: 5px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .06em; }.api-contract code { overflow: hidden; color: #315045; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.api-section-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 24px; }.api-section-title b { font-size: 12px; }.api-section-title span { color: var(--muted); font: 9px ui-monospace,SFMono-Regular,Menlo,monospace; text-align: right; }.api-description { margin: 7px 0 0; color: var(--muted); font-size: 9px; line-height: 1.75; }.code-block { margin-top: 9px; overflow: hidden; border-radius: 11px; background: #10251d; }.code-block > div { padding: 9px 12px; display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); color: #b4c9c0; font-size: 9px; }.code-block button { color: #72d3a4; background: transparent; font-size: 9px; }.code-block pre { margin: 0; padding: 13px; overflow: auto; color: #e1eee8; font-size: 10px; line-height: 1.6; }.response-example,.request-schema { margin-top: 9px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #f7faf8; }.response-example > span,.request-schema > b { display: block; padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--primary-dark); font-size: 9px; font-weight: 700; }.response-example pre { margin: 0; padding: 12px; overflow: auto; color: #38544a; font-size: 9px; line-height: 1.6; }.request-schema > div { display: grid; grid-template-columns: 85px 90px 1fr; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line); align-items: center; }.request-schema > div:last-child { border-bottom: 0; }.request-schema > div > code { color: var(--primary-dark); font-size: 9px; font-weight: 800; }.request-schema span { color: #6e7c76; font-size: 8px; }.request-schema small { color: var(--muted); font-size: 8px; }.api-methods { margin-top: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; }.api-methods > div { display: grid; grid-template-columns: 62px 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }.api-methods > div:last-child { border-bottom: 0; }.api-methods > div > code { color: var(--primary); font-size: 9px; font-weight: 800; }.api-methods b,.api-methods small { display: block; }.api-methods b { color: #334b42; font: 10px ui-monospace,SFMono-Regular,Menlo,monospace; }.api-methods small { margin-top: 2px; color: var(--muted); font-size: 8px; }.api-statuses { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; }.api-statuses > div { display: grid; grid-template-columns: 42px 1fr; gap: 7px; padding: 9px 11px; border-bottom: 1px solid var(--line); }.api-statuses > div:nth-child(odd) { border-right: 1px solid var(--line); }.api-statuses > div:nth-last-child(-n+2) { border-bottom: 0; }.api-statuses code { color: var(--primary); font-size: 9px; font-weight: 800; }.api-statuses span { color: var(--muted); font-size: 8px; }.api-errors { margin: 11px 0 0; color: var(--muted); font-size: 9px; line-height: 1.8; }.api-errors code { color: var(--primary-dark); }.api-foot { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; padding: 11px; border-radius: 9px; color: #587067; background: #edf7f2; font-size: 9px; }.api-foot code { overflow-wrap: anywhere; }
.toast-region { position: fixed; right: 22px; top: 90px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }.toast { min-width: 230px; max-width: 370px; padding: 12px 14px; display: flex; align-items: center; gap: 9px; border-radius: 11px; color: #fff; background: #252a39; box-shadow: 0 11px 32px rgba(0,0,0,.18); font-size: 11px; animation: toastIn .2s ease; }.toast.success i { color: #8fe0bd; }.toast.error i { color: #ff9aa7; }@keyframes toastIn { from { opacity: 0; transform: translateX(12px); } }

@media (max-width: 920px) {
  .login-shell { grid-template-columns: 1fr; background: linear-gradient(145deg,#f1f8f4,#fff); }.login-story { display: none; }.login-panel { min-height: 100vh; padding: 28px; }.mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 48px; }.mobile-brand .brand-mark { width: 34px; height: 34px; }.login-card { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
  .workspace { width: calc(100% - 36px); padding-top: 30px; }.items-grid { grid-template-columns: repeat(auto-fill,minmax(210px,1fr)); }
}
@media (max-width: 650px) {
  .topbar { height: 65px; padding: 0 15px; }.topbar .brand small,.topbar .profile-copy,#apiHelpButton span { display: none; }.top-actions { gap: 4px; }.workspace { width: calc(100% - 22px); padding: 24px 0 45px; }.headline-row { align-items: flex-start; flex-direction: column; }.head-actions { width: 100%; }.head-actions > .secondary-btn { flex: 1; }.toolbar { align-items: stretch; flex-direction: column; }.search-box { width: 100%; }.toolbar-actions { justify-content: flex-end; }.items-grid { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 12px; gap: 9px; }.item-card { padding: 11px; }.item-visual { height: 126px; }.item-select { opacity: 1; }.items-list { padding: 0 10px 10px; }.list-head,.list-row { grid-template-columns: 29px minmax(130px,1fr) 64px 34px; }.list-head span:nth-child(4),.list-row .list-time { display: none; }.selection-bar { align-items: flex-start; gap: 8px; flex-direction: column; }.selection-bar > div { width: 100%; justify-content: flex-end; }.selection-bar button { padding: 7px; }.content-footer span:last-child { display: none; }.upload-drawer { right: 15px; bottom: 15px; }.modal-backdrop { padding: 12px; }.api-modal { max-height: calc(100vh - 24px); overflow: auto; }.api-key-card,.api-contract { grid-template-columns: 1fr; }.api-key-card .secondary-btn { width: 100%; }.api-section-title { align-items: flex-start; flex-direction: column; gap: 3px; }.request-schema > div { grid-template-columns: 75px 1fr; }.request-schema small { grid-column: 1 / -1; }.api-statuses { grid-template-columns: 1fr; }.api-statuses > div,.api-statuses > div:nth-child(odd),.api-statuses > div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }.api-statuses > div:last-child { border-bottom: 0; }.toast-region { top: 75px; right: 12px; left: 12px; }.toast { min-width: 0; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
