:root {
  color-scheme: light;
  --ink: #172039;
  --muted: #7b849b;
  --line: #e7e9f1;
  --surface: rgba(255,255,255,.88);
  --purple: #6656e8;
  --purple-dark: #5143d3;
  --purple-soft: #efedff;
  --green: #178b68;
  --green-soft: #e8f8f1;
  --amber: #ba7319;
  --amber-soft: #fff4dc;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: #f6f7fb; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.ambient { position: fixed; border-radius: 999px; filter: blur(10px); pointer-events: none; opacity: .7; }
.ambient-one { width: 420px; height: 420px; left: -160px; top: -200px; background: radial-gradient(circle, #ddd8ff 0%, transparent 70%); }
.ambient-two { width: 500px; height: 500px; right: -220px; top: 80px; background: radial-gradient(circle, #e4f0ff 0%, transparent 70%); }
.shell { position: relative; width: min(1440px, calc(100% - 48px)); margin: 0 auto; padding-bottom: 70px; }
.topbar { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(225,227,236,.85); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 13px; background: linear-gradient(145deg, #7160ed, #5142ca); box-shadow: 0 10px 28px rgba(90,72,218,.28); display: grid; place-items: center; transform: rotate(-4deg); }
.brand-mark::before, .brand-mark::after, .brand-mark span { content: ""; display: block; width: 4px; border-radius: 6px; background: white; position: absolute; }
.brand-mark::before { height: 11px; transform: translate(-8px, 5px); opacity: .72; }
.brand-mark span { height: 20px; }
.brand-mark::after { height: 28px; transform: translate(8px, -4px); opacity: .82; }
.brand strong { display: block; font-size: 17px; letter-spacing: -.02em; }
.brand small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.top-actions { display: flex; align-items: center; gap: 14px; }
.secure-badge { display: inline-flex; align-items: center; gap: 8px; color: #657087; background: rgba(255,255,255,.72); border: 1px solid var(--line); padding: 8px 12px; border-radius: 999px; font-size: 12px; }
.secure-badge i { width: 7px; height: 7px; background: #25a67c; border-radius: 50%; box-shadow: 0 0 0 4px #dcf6ed; }
.avatar { width: 39px; height: 39px; border: 0; border-radius: 50%; background: #222a42; color: #fff; font-weight: 700; font-size: 12px; }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; z-index: 2; }
.login-card { width: min(420px, 100%); padding: 38px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.93); box-shadow: 0 24px 80px rgba(36,44,73,.12); backdrop-filter: blur(18px); }
.login-card .login-mark { display: grid; margin-bottom: 28px; }
.login-card h1 { font-size: 28px; margin: 0; letter-spacing: -.04em; }
.login-card > p:not(.eyebrow):not(.inline-error) { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 12px 0 26px; }
.login-card input { margin-bottom: 4px; }
.inline-error { min-height: 18px; color: #cf4d58; font-size: 10px; margin: 7px 0; line-height: 1.5; }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 52px 2px 34px; }
.eyebrow { margin: 0 0 9px; color: var(--purple); font-weight: 750; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(32px, 4vw, 49px); line-height: 1.08; letter-spacing: -.048em; font-weight: 760; }
.hero-copy { margin: 14px 0 0; max-width: 680px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.primary-button { border: 0; color: #fff; background: linear-gradient(135deg, var(--purple), var(--purple-dark)); border-radius: 13px; padding: 13px 18px; font-weight: 700; box-shadow: 0 12px 28px rgba(87,70,210,.25); }
.primary-button span { font-size: 20px; vertical-align: -1px; margin-right: 6px; font-weight: 400; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 18px; }
.stat-card { position: relative; overflow: hidden; min-height: 110px; padding: 21px 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 10px 35px rgba(41,49,77,.045); display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 15px; }
.stat-card::after { content: ""; position: absolute; width: 100px; height: 100px; right: -40px; top: -45px; border-radius: 50%; background: #f0efff; opacity: .65; }
.stat-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: #f0efff; color: var(--purple); font-size: 22px; font-weight: 700; }
.pulse-icon span { width: 12px; height: 12px; background: var(--purple); border-radius: 50%; box-shadow: 0 0 0 7px rgba(102,86,232,.12); }
.stat-card strong { font-size: 27px; line-height: 1; margin-right: 9px; letter-spacing: -.04em; }
.stat-card div > span { color: #5f687e; font-size: 13px; }
.stat-card small { color: #9aa1b2; font-size: 11px; white-space: nowrap; z-index: 1; }
.rocket-icon { background: #eaf8f3; color: var(--green); }
.clock-icon { background: #fff3e4; color: #c37622; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.list-panel, .add-panel { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 14px 44px rgba(45,54,83,.05); }
.list-panel { padding: 24px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 19px; }
.section-heading h2, .add-heading h2 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.section-heading p, .add-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.filter-tabs { display: flex; background: #f2f3f8; border-radius: 10px; padding: 3px; }
.filter-tabs button { border: 0; background: transparent; color: #838ba0; padding: 7px 11px; border-radius: 8px; font-size: 11px; }
.filter-tabs button.active { color: var(--ink); background: #fff; box-shadow: 0 2px 8px rgba(43,51,74,.08); font-weight: 700; }
.filter-tabs b { margin-left: 4px; color: #a3a8b6; }
.app-list { border-top: 1px solid var(--line); }
.app-row { min-height: 105px; display: grid; grid-template-columns: 48px minmax(190px,1.35fr) minmax(74px,.55fr) 26px minmax(74px,.55fr) minmax(90px,.75fr) 34px; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); }
.app-row:last-child { border-bottom: 0; }
.app-icon { width: 43px; height: 43px; border-radius: 13px; display: grid; place-items: center; color: white; font-size: 17px; font-weight: 800; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.icon-violet { background: linear-gradient(145deg,#9271e8,#6246b9); }
.icon-coral { background: linear-gradient(145deg,#ff927d,#e85d6f); }
.icon-mint { background: linear-gradient(145deg,#4ec7a3,#16866a); }
.app-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.app-title h3 { margin: 0; font-size: 13px; }
.app-main code { display: block; margin-top: 7px; color: #9198aa; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; border-radius: 999px; padding: 5px 8px; font-weight: 700; }
.status i { width: 5px; height: 5px; border-radius: 50%; }
.waiting { color: #7152c3; background: #f0ebff; }.waiting i { background: #7a5dd0; }
.review { color: var(--amber); background: var(--amber-soft); }.review i { background: #d78a27; }
.done { color: var(--green); background: var(--green-soft); }
.version-block small, .last-check small, .complete-version small { display: block; color: #9ba2b2; font-size: 9px; margin-bottom: 6px; }
.version-block strong { font-size: 13px; }
.version-block.target strong { color: var(--purple); }
.version-arrow { color: #b4b8c5; text-align: center; }
.last-check span { color: #626b80; font-size: 11px; }
.more-button { border: 0; background: transparent; color: #9da3b3; letter-spacing: 2px; padding: 8px; }
.first-release-note { grid-column: 3 / 6; display: flex; align-items: center; gap: 10px; }
.first-release-note span { color: #cf7c1b; background: #fff3df; padding: 6px 9px; border-radius: 8px; font: 700 11px ui-monospace, monospace; }
.first-release-note small { color: #8f96a7; font-size: 10px; }
.complete-version { grid-column: 3 / 6; display: flex; align-items: center; gap: 10px; }
.complete-version > span { width: 27px; height: 27px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-weight: 800; }
.complete-version strong { font-size: 12px; }
.completed-row { opacity: .82; }
.add-panel { padding: 24px; }
.add-heading { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.add-symbol { width: 39px; height: 39px; border-radius: 12px; background: var(--purple-soft); color: var(--purple); display: grid; place-items: center; font-size: 22px; }
form { padding-top: 20px; }
.field-label, fieldset legend { display: block; margin: 0 0 8px; color: #525b70; font-size: 10px; font-weight: 750; }
.input-wrap { position: relative; margin-bottom: 19px; }
.input-wrap span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--purple); font-size: 11px; }
input, select { width: 100%; height: 42px; border: 1px solid #dfe2eb; border-radius: 10px; background: #fbfcfe; color: var(--ink); padding: 0 12px; outline: none; font-size: 11px; transition: .18s ease; }
#created-by { margin-bottom: 18px; }
.input-wrap input { padding-left: 32px; }
input:focus, select:focus { border-color: #8175e6; box-shadow: 0 0 0 3px rgba(102,86,232,.10); background: #fff; }
input::placeholder { color: #b3b8c6; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.choice-card { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid #e2e4ec; border-radius: 11px; margin-bottom: 8px; cursor: pointer; transition: .18s ease; }
.choice-card input { position: absolute; opacity: 0; }
.choice-dot { width: 16px; height: 16px; border: 1.5px solid #c8ccd7; border-radius: 50%; flex: 0 0 auto; }
.choice-card strong, .choice-card small { display: block; }
.choice-card strong { font-size: 11px; }.choice-card small { color: #9299aa; font-size: 9px; margin-top: 4px; }
.choice-card.active-choice { border-color: #8276e4; background: #faf9ff; }
.active-choice .choice-dot { border: 5px solid var(--purple); }
.target-field { margin-bottom: 18px; }
select { margin-bottom: 18px; appearance: none; background-image: linear-gradient(45deg,transparent 50%,#9198aa 50%),linear-gradient(135deg,#9198aa 50%,transparent 50%); background-position: calc(100% - 16px) 18px,calc(100% - 12px) 18px; background-size:4px 4px; background-repeat:no-repeat; }
.submit-button { width: 100%; height: 43px; border: 0; border-radius: 11px; color: #fff; background: linear-gradient(135deg,var(--purple),var(--purple-dark)); font-size: 11px; font-weight: 750; display: flex; justify-content: center; align-items: center; gap: 10px; box-shadow: 0 10px 22px rgba(87,70,210,.2); }
.form-footnote { color: #9aa1b1; font-size: 9px; line-height: 1.6; text-align: center; margin: 14px 4px 0; }
.form-footnote span { color: var(--purple); margin-right: 5px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 20; transform: translate(-50%, 20px); padding: 11px 16px; border-radius: 11px; color: #fff; background: #252d45; box-shadow: 0 14px 35px rgba(25,31,49,.25); font-size: 11px; opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.app-row.disabled-row { opacity: .5; }
.row-actions { display: flex; gap: 3px; justify-content: end; }
.icon-button { width: 29px; height: 29px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #8e96a9; font-size: 13px; }
.icon-button:hover { border-color: var(--line); background: #f7f7fb; color: var(--purple); }
.status.error { color: #c54e5b; background: #ffedf0; }
.status.error i { background: #d85965; }
.empty-state { padding: 52px 20px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; color: var(--ink); margin-bottom: 7px; }
.skeleton-row { height: 90px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, transparent, rgba(238,239,246,.75), transparent); background-size: 220% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }

@media (max-width: 1100px) {
  .workspace { grid-template-columns: 1fr; }
  .add-panel { max-width: none; }
}
@media (max-width: 820px) {
  .shell { width: min(100% - 28px, 720px); }
  .stats { grid-template-columns: 1fr; }
  .stat-card { min-height: 88px; }
  .app-row { grid-template-columns: 44px 1fr auto; padding: 15px 0; gap: 10px; }
  .app-main { grid-column: 2; }
  .version-block, .version-arrow, .first-release-note, .complete-version { grid-row: 2; grid-column: 2; }
  .version-block.target { grid-column: 2; margin-left: 100px; }
  .version-arrow { margin-left: 72px; }
  .last-check { grid-column: 2; grid-row: 3; }
  .more-button { grid-column: 3; grid-row: 1; }
  .hero { align-items: start; flex-direction: column; padding-top: 35px; }
}
@media (max-width: 520px) {
  .secure-badge { display: none; }
  .topbar { height: 72px; }
  .hero h1 { font-size: 34px; }
  .primary-button { width: 100%; }
  .list-panel, .add-panel { padding: 18px; }
  .section-heading { align-items: start; gap: 12px; flex-direction: column; }
}
