:root { --ink:#18334a; --muted:#648096; --line:#c9dce3; --paper:#fff; --sea:#078bbd; --sea-dark:#05658a; --sand:#fff6dc; --soft:#f4fbfd; --shadow:0 12px 32px rgba(12,70,94,.12); }
* { box-sizing:border-box; }
body { margin:0; min-width:320px; background:#dceef2; color:var(--ink); font:14px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; }
button,select { font:inherit; } button { cursor:pointer; }
.app-shell { min-height:100vh; display:grid; grid-template-rows:62px 1fr; }
.app-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:10px 22px; background:rgba(255,255,255,.96); border-bottom:1px solid var(--line); box-shadow:0 2px 12px rgba(24,51,74,.07); }
.brand { display:flex; align-items:center; gap:10px; color:inherit; text-decoration:none; }.brand-mark { display:grid; place-items:center; width:34px; height:34px; border-radius:11px; background:linear-gradient(135deg,#ffcb4d,#ef7b36); color:white; font-size:19px; }.brand strong,.brand small { display:block; }.brand small { color:var(--muted); font-size:11px; font-weight:700; }
.header-actions,.toolbar-row,.sequence-actions,.export-actions { display:flex; align-items:center; gap:8px; }.save-state { color:var(--muted); font-size:12px; font-weight:700; }
.editor-layout { min-height:0; display:grid; grid-template-columns:238px minmax(400px,1fr) 320px; gap:14px; padding:14px; }.panel { min-width:0; background:var(--paper); border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow); }.agent-panel,.compose-panel { padding:16px; }.candidates-panel { padding:16px; }
.panel-title { display:flex; align-items:center; gap:8px; margin-bottom:8px; }.panel-title span { display:grid; place-items:center; width:24px; height:24px; border-radius:8px; background:#e3f6fb; color:var(--sea-dark); font-size:11px; font-weight:900; }.panel-title h1,.panel-title h2 { margin:0; font-size:15px; }.panel-copy,.hint { margin:0 0 14px; color:var(--muted); font-size:12px; }.panel-copy code { font-size:11px; }
.agent-tabs { display:grid; gap:8px; }.agent-tab { width:100%; display:flex; align-items:center; gap:10px; padding:9px; text-align:left; border:1px solid transparent; border-radius:11px; background:transparent; color:var(--ink); font-weight:800; }.agent-tab:hover { background:#f3fbfd; }.agent-tab.active { border-color:#9bd9e8; background:#e9faff; color:var(--sea-dark); }.agent-tab b { display:grid; place-items:center; min-width:30px; height:30px; border-radius:9px; background:var(--sand); color:#ab6811; font-size:12px; }
.toolbar-row { justify-content:space-between; margin-bottom:8px; }.toolbar-row label,.field { display:grid; gap:5px; color:var(--muted); font-size:12px; font-weight:800; }.toolbar-row select,.field select { min-height:34px; padding:0 8px; border:1px solid var(--line); border-radius:8px; color:var(--ink); background:white; }.counter { color:var(--muted); font-size:12px; font-weight:800; }
.candidate-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(124px,1fr)); gap:10px; max-height:calc(100vh - 175px); overflow:auto; padding:2px; }.candidate { position:relative; min-width:0; padding:7px; border:2px solid transparent; border-radius:12px; background:#f9fcfd; }.candidate:hover { border-color:#b9e3ed; }.candidate.selected { border-color:var(--sea); background:#e9faff; }.candidate img { display:block; width:100%; aspect-ratio:1; object-fit:contain; background:conic-gradient(#f2f6f7 25%,#fff 0 50%,#f2f6f7 0 75%,#fff 0) 0/16px 16px; border-radius:8px; }.candidate span { display:block; margin-top:5px; overflow:hidden; color:var(--muted); font-size:11px; font-weight:800; text-align:center; text-overflow:ellipsis; white-space:nowrap; }.candidate i { position:absolute; top:5px; right:5px; display:grid; place-items:center; width:22px; height:22px; border-radius:50%; background:var(--sea); color:white; font-style:normal; font-size:11px; font-weight:900; box-shadow:0 2px 7px rgba(0,90,120,.26); }
.sequence { display:flex; min-height:88px; gap:7px; overflow-x:auto; padding:8px 0; }.sequence-item { flex:0 0 62px; padding:4px; border:2px solid transparent; border-radius:9px; background:#f5fafb; }.sequence-item.active { border-color:#f1993f; background:#fff5e9; }.sequence-item img { width:100%; aspect-ratio:1; object-fit:contain; }.sequence-item span { display:block; color:var(--muted); font-size:10px; font-weight:800; text-align:center; }.sequence-empty { align-self:center; color:var(--muted); font-size:12px; }
.button { min-height:36px; padding:0 11px; border:1px solid var(--line); border-radius:8px; background:white; color:var(--ink); font-weight:800; }.button:hover:not(:disabled) { border-color:var(--sea); background:#effbfe; }.button:disabled { cursor:not-allowed; opacity:.48; }.button.primary { width:100%; margin:10px 0; border-color:var(--sea-dark); background:var(--sea); color:white; }.button.primary:hover:not(:disabled) { background:var(--sea-dark); }.button.ghost { min-height:32px; color:var(--muted); }
.preview-label { display:flex; justify-content:space-between; margin-top:10px; color:var(--muted); font-size:12px; font-weight:800; }.sheet-scroll { position:relative; min-height:136px; margin:7px 0 12px; overflow:auto; border:1px dashed var(--line); border-radius:10px; background:conic-gradient(#eef4f5 25%,#fff 0 50%,#eef4f5 0 75%,#fff 0) 0/18px 18px; }.sheet-scroll canvas { display:none; image-rendering:auto; }.sheet-scroll.has-sheet canvas { display:block; }.sheet-scroll.has-sheet #empty-preview { display:none; }.sheet-scroll p { margin:0; padding:48px 18px; color:var(--muted); font-size:12px; text-align:center; }.export-actions { justify-content:stretch; }.export-actions .button { flex:1; }
@media (max-width:980px) { .editor-layout { grid-template-columns:220px minmax(0,1fr); }.compose-panel { grid-column:1/-1; }.candidate-grid { max-height:none; }.sheet-scroll { min-height:190px; } }
@media (max-width:650px) { .app-header { padding:10px 14px; }.save-state { display:none; }.editor-layout { display:block; padding:10px; }.panel { margin-bottom:10px; }.agent-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); }.agent-tab { font-size:12px; }.candidate-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
