:root {
  color-scheme: dark;
  --bg: #0d0f0d;
  --panel: #151815;
  --panel-2: #1b1f1a;
  --line: #2b3029;
  --text: #f1f3ed;
  --muted: #9da497;
  --lime: #c8f169;
  --lime-dark: #1f2d12;
  --red: #ff8275;
  --amber: #ffc96b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 75% -10%, #29341e 0, transparent 32rem), var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.topbar { height: 68px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1180px) / 2)); position: sticky; top: 0; z-index: 10; background: rgba(13, 15, 13, .9); backdrop-filter: blur(16px); }
.brand { display: flex; gap: 10px; align-items: center; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; background: var(--lime); color: #10140c; }
nav { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 14px; }
nav a:hover { color: var(--text); }
.shell { width: min(1180px, calc(100% - 40px)); margin: 46px auto 90px; }
.eyebrow { text-transform: uppercase; font-size: 11px; color: var(--lime); letter-spacing: .14em; font-weight: 800; margin-bottom: 8px; }
h1 { margin: 0; font-size: clamp(34px, 5vw, 62px); letter-spacing: -.055em; line-height: .98; }
h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
h3 { margin: 0; font-size: 16px; }
p { color: var(--muted); line-height: 1.65; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 34px; }
.page-head p { max-width: 660px; margin: 14px 0 0; }
.button { border: 0; background: var(--lime); color: #11150d; font-weight: 800; border-radius: 11px; padding: 12px 17px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.button:hover { filter: brightness(1.07); transform: translateY(-1px); }
.button.small { padding: 9px 13px; border-radius: 9px; }
.button.secondary { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.button.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: linear-gradient(160deg, #191c18, #121512); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 18px 50px rgba(0,0,0,.12); }
.card:hover { border-color: #424a3e; }
.card-top { display: flex; justify-content: space-between; gap: 15px; align-items: start; }
.meta, .muted { color: var(--muted); font-size: 13px; }
.stats { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 20px; color: var(--muted); font-size: 13px; }
.status { display: inline-flex; border-radius: 999px; padding: 5px 9px; background: #252a23; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.status.complete { background: var(--lime-dark); color: var(--lime); }
.status.running { background: #243244; color: #8dc2ff; }
.status.failed { background: #3b2020; color: var(--red); }
.empty { text-align: center; padding: 70px 20px; border: 1px dashed var(--line); border-radius: 18px; }
.empty p { margin-bottom: 24px; }
.notice { border: 1px solid #493a22; background: #211b12; color: var(--amber); border-radius: 12px; padding: 12px 15px; margin-bottom: 22px; font-size: 13px; }
.notice.success { border-color: #496d25; background: #18230f; color: var(--lime); }
.form-card { max-width: 820px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.check-field { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #10130f; }
.check-field label { display: flex; align-items: center; gap: 10px; }
.check-field input { width: auto; }
label { font-size: 13px; color: #cfd4ca; font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #0e110e; color: var(--text); padding: 12px 13px; outline: none; }
textarea { resize: vertical; min-height: 105px; line-height: 1.5; }
textarea.guide { min-height: 230px; }
input:focus, textarea:focus, select:focus { border-color: #78933e; box-shadow: 0 0 0 3px rgba(200,241,105,.08); }
.hint { color: var(--muted); font-size: 12px; line-height: 1.5; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.profile-card .guide-preview { height: 64px; overflow: hidden; margin: 14px 0 0; font-size: 13px; }
.profile-card .models { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 16px; font-size: 12px; color: var(--muted); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 50px 0 20px; }
.section-head p { margin: 8px 0 0; }
.reference-card { border-style: dashed; background: #111411; }
.reference-tag { margin-top: 14px; padding: 8px 10px; border-radius: 8px; background: #20251d; color: #b9c3ad; font-size: 11px; line-height: 1.4; }
.style-summary { margin-top: 14px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.style-summary.complete { border-color: #466526; background: #17210f; color: #badb76; }
.style-summary.analyzing { border-color: #355575; background: #111c28; color: #9bc9f8; }
.style-summary.failed { border-color: #6b3430; background: #251514; color: #ffaaa1; }
.actions.compact { margin-top: 12px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; }
.detail-layout aside > .card + .card { margin-top: 16px; }
.score-badge { min-width: 72px; padding: 9px 11px; border-radius: 12px; display: flex; align-items: baseline; justify-content: center; gap: 3px; background: #272b24; color: var(--muted); }
.score-badge strong { font-size: 25px; line-height: 1; color: var(--text); }
.score-badge span { font-size: 10px; }
.score-badge.pass { background: var(--lime-dark); color: var(--lime); }
.score-badge.pass strong { color: var(--lime); }
.score-badge.revise { background: #332719; color: var(--amber); }
.score-badge.revise strong { color: var(--amber); }
.score-inline { color: var(--lime); font-weight: 800; }
.score-card { text-align: center; }
.score-large { font-size: 62px; font-weight: 900; line-height: 1; color: var(--lime); letter-spacing: -.06em; margin-top: 9px; }
.score-card p { margin: 6px 0 14px; }
.rewrite-card h3 { margin-bottom: 16px; }
.rewrite-card form { display: grid; gap: 13px; }
.rewrite-card textarea { min-height: 95px; }
.rewrite-card .button { width: 100%; }
.progress-track { height: 8px; background: #080a08; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-top: 18px; }
.progress-bar { height: 100%; background: var(--lime); transition: width .4s ease; }
.steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.steps .dot { width: 8px; height: 8px; border-radius: 50%; background: #3b4038; }
.steps li.done { color: #dce3d5; }
.steps li.done .dot { background: var(--lime); }
.artifact-tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 14px; }
.artifact-tabs button { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 9px; padding: 8px 10px; white-space: nowrap; cursor: pointer; }
.artifact-tabs button.active { background: var(--lime-dark); color: var(--lime); border-color: #4e692b; }
.artifact { white-space: pre-wrap; overflow-wrap: anywhere; background: #0b0d0b; border: 1px solid var(--line); border-radius: 12px; padding: 22px; min-height: 350px; max-height: 680px; overflow-y: auto; font: 15px/1.75 Georgia, serif; }
.log { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.log li { color: var(--muted); font-size: 12px; padding-left: 13px; border-left: 2px solid var(--line); }
.log time { display: block; color: #666e62; margin-bottom: 3px; }
.toast { position: fixed; right: 22px; bottom: 22px; background: #e7eadf; color: #12150f; padding: 12px 16px; border-radius: 10px; font-weight: 700; transform: translateY(20px); opacity: 0; pointer-events: none; transition: .2s ease; z-index: 20; }
.toast.show { transform: translateY(0); opacity: 1; }
.error { color: var(--red); font-size: 13px; }
.loading { color: var(--muted); padding: 70px 0; }
.login-wrap { min-height: calc(100vh - 190px); display: grid; place-items: center; }
.login-card { width: min(430px, 100%); padding: 34px; }
.login-card h1 { font-size: 46px; margin-top: 8px; }
.login-card .field { margin: 24px 0 14px; }
.login-card .button { width: 100%; margin-top: 14px; }
.brand-mark.large { width: 48px; height: 48px; font-size: 21px; margin-bottom: 24px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } .detail-layout { grid-template-columns: 1fr; } }
@media (max-width: 650px) { .shell { width: min(100% - 24px, 1180px); margin-top: 28px; } .topbar { padding: 0 14px; } nav > a:not(.button) { display: none; } .page-head { align-items: start; flex-direction: column; } .grid, .form-grid { grid-template-columns: 1fr; } .field.full { grid-column: auto; } .card { padding: 17px; } }
