:root { color-scheme: light; font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f5f7fa; color: #17212b; --ink: #17212b; --muted: #6e7b87; --line: #e2e8ed; --blue: #2368d5; --teal: #13a891; --coral: #ed775d; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #f5f7fa; }
button, input, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 46%) 1fr; background: white; }
.brand-panel { position: relative; overflow: hidden; padding: 42px 54px; color: white; background: #172d3d; display: flex; flex-direction: column; justify-content: space-between; }
.brand-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(140deg, transparent 25%, rgba(19,168,145,.32), transparent 72%); pointer-events: none; }
.brand-lockup { display: flex; align-items: center; gap: 12px; font-size: 22px; position: relative; z-index: 1; }
.brand-lockup img { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; }
.brand-copy { position: relative; z-index: 1; max-width: 520px; padding: 12vh 0; }
.brand-copy h1 { margin: 0 0 16px; font-size: 48px; line-height: 1.15; letter-spacing: 0; }
.brand-copy p { margin: 0; font-size: 18px; line-height: 1.8; color: #c9d8e0; }
.art-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; position: relative; z-index: 1; transform: rotate(-8deg) translate(28px, 28px); }
.art-grid span { display: block; aspect-ratio: 1; background: #13a891; border: 1px solid rgba(255,255,255,.18); }
.art-grid span:nth-child(2) { background: #ed775d; } .art-grid span:nth-child(3) { background: #efbf4e; } .art-grid span:nth-child(4) { background: #3676cf; }
.auth-main { display: grid; place-items: center; padding: 32px; }
.auth-box { width: min(420px, 100%); }
.segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: #eef2f5; border-radius: 8px; margin-bottom: 38px; }
.segmented button { border: 0; padding: 10px; background: transparent; color: var(--muted); border-radius: 6px; }
.segmented button.active { background: white; color: var(--ink); box-shadow: 0 1px 4px rgba(20,36,48,.1); font-weight: 700; }
.auth-box h2 { font-size: 28px; margin: 0 0 8px; } .subtle { color: var(--muted); margin: 0 0 30px; }
label { display: grid; gap: 8px; margin-bottom: 18px; font-size: 14px; font-weight: 600; }
input, textarea { border: 1px solid #ccd6dd; border-radius: 7px; background: white; color: var(--ink); outline: none; transition: border .15s, box-shadow .15s; }
input { height: 46px; padding: 0 13px; } input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(35,104,213,.12); }
.primary { border: 0; border-radius: 7px; background: var(--blue); color: white; font-weight: 700; padding: 12px 20px; } .primary:hover { background: #1958ba; } .wide { width: 100%; }
.error { color: #c34134; min-height: 20px; font-size: 13px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 16px 18px; background: #152a39; color: white; display: flex; flex-direction: column; }
.brand-lockup.small { padding: 0 8px 26px; font-size: 19px; } .brand-lockup.small img { width: 34px; height: 34px; }
nav { display: grid; gap: 6px; } .nav-item { display: flex; gap: 12px; align-items: center; height: 44px; border: 0; border-radius: 6px; padding: 0 14px; background: transparent; color: #b9c9d2; text-align: left; }
.nav-item.active, .nav-item:hover { background: #254353; color: white; } .nav-item span { width: 20px; text-align: center; color: #59cbb7; }
.user-card { margin-top: auto; padding: 14px 8px 0; border-top: 1px solid #2c4654; display: grid; grid-template-columns: 36px 1fr 28px; gap: 10px; align-items: center; min-width: 0; }
.user-card > span { width: 36px; height: 36px; display: grid; place-items: center; background: var(--teal); border-radius: 50%; font-weight: 700; } .user-card div { min-width: 0; } .user-card strong, .user-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .user-card small { color: #94aab6; margin-top: 3px; } .user-card button { border: 0; color: #9fb2bc; background: transparent; font-size: 19px; }
.workspace { min-width: 0; padding: 0 38px 48px; }
header { height: 94px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); margin-bottom: 28px; } header h1 { font-size: 22px; margin: 0 0 4px; } header p { margin: 0; color: var(--muted); font-size: 13px; }
.credit-button { margin-left: auto; display: grid; grid-template-columns: auto auto; gap: 0 10px; border: 1px solid var(--line); background: white; border-radius: 7px; padding: 9px 13px; text-align: left; color: var(--muted); } .credit-button strong { color: var(--coral); } .credit-button small { grid-column: 1 / -1; margin-top: 3px; }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); background: white; border-radius: 6px; font-size: 21px; color: var(--muted); } #menuButton { display: none; }
.mode-tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--line); } .mode-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 12px 18px; color: var(--muted); } .mode-tabs button.active { border-color: var(--blue); color: var(--blue); font-weight: 700; }
.composer { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 24px; box-shadow: 0 8px 28px rgba(22,40,53,.05); }
.composer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; } .eyebrow { color: var(--teal); font-weight: 700; font-size: 12px; } .composer h2 { font-size: 18px; margin: 6px 0 18px; }
textarea { width: 100%; min-height: 180px; padding: 15px; resize: vertical; line-height: 1.7; } .composer-actions { display: flex; gap: 12px; margin-top: 16px; }
.model-button { min-width: 220px; display: grid; grid-template-columns: 1fr auto; text-align: left; gap: 2px 10px; border: 1px solid var(--line); background: white; border-radius: 7px; padding: 8px 12px; } .model-button span { grid-column: 1; font-size: 11px; color: var(--muted); } .model-button strong { grid-column: 1; font-size: 14px; } .model-button b { grid-column: 2; grid-row: 1 / 3; align-self: center; } .generate { margin-left: auto; min-width: 130px; }
.task-message { min-height: 20px; margin: 12px 0 0; font-size: 13px; color: var(--muted); } .task-message.error { color: #c34134; }
.recent-section { margin-top: 30px; } .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; } .section-heading h2 { font-size: 18px; margin: 0; } .text-button { border: 0; background: transparent; color: var(--blue); } .secondary { border: 1px solid var(--line); background: white; border-radius: 6px; padding: 8px 13px; }
.empty-state { min-height: 180px; border: 1px dashed #cbd5dc; display: grid; place-content: center; gap: 8px; text-align: center; color: var(--muted); background: rgba(255,255,255,.45); } .empty-state strong { color: var(--ink); }
.task-list, .ledger-list { display: grid; gap: 10px; } .task-row, .ledger-row { background: white; border: 1px solid var(--line); padding: 15px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; border-radius: 7px; } .task-kind { width: 42px; height: 42px; display: grid; place-items: center; background: #e9f2fd; color: var(--blue); border-radius: 6px; font-weight: 700; } .task-row p { margin: 4px 0 0; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .status { font-size: 12px; color: var(--muted); }
.balance-band { padding: 24px; background: #183343; color: white; display: grid; grid-template-columns: 1fr auto; margin-bottom: 28px; } .balance-band span { color: #acc2ce; } .balance-band strong { grid-column: 1; font-size: 38px; margin-top: 8px; } .balance-band small { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #c9d7dd; }
.ledger-row strong.positive { color: var(--teal); } .ledger-row strong.negative { color: var(--coral); }
.overlay { position: fixed; inset: 0; background: rgba(9,20,29,.45); z-index: 5; }
@media (max-width: 800px) { .auth-shell { grid-template-columns: 1fr; } .brand-panel { min-height: 260px; padding: 28px; } .brand-copy { padding: 35px 0 20px; } .brand-copy h1 { font-size: 34px; } .art-grid { position: absolute; width: 260px; right: -40px; bottom: -60px; opacity: .55; } .auth-main { padding: 34px 22px; } .app-shell { display: block; } .sidebar { position: fixed; left: -250px; z-index: 10; width: 232px; transition: left .2s; } .sidebar.open { left: 0; } .workspace { padding: 0 16px 34px; } header { height: 82px; margin-bottom: 20px; } #menuButton { display: block; } header p { display: none; } .credit-button span, .credit-button small { display: none; } .credit-button { display: block; } .composer { padding: 17px; } textarea { min-height: 210px; } .composer-actions { align-items: stretch; } .model-button { min-width: 0; flex: 1; } .generate { min-width: 108px; } }
@media (max-width: 430px) { .brand-panel { min-height: 230px; } .brand-copy h1 { font-size: 30px; } .brand-copy p { font-size: 15px; max-width: 270px; } .composer-actions { flex-direction: column; } .generate { margin-left: 0; width: 100%; } .mode-tabs button { flex: 1; padding: 11px 4px; } .task-row { grid-template-columns: auto 1fr; } .task-row .status { grid-column: 2; } }

