/* QART AI · 브랜드 사이트·콘텐츠 화면 (2026-11-25). 다른 화면의 스타일과 섞이지 않게 st- 접두어만 쓴다. */
*{box-sizing:border-box}
body{margin:0;background:#f5f4ee;color:#14241d;font-family:'Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;font-size:14px;line-height:1.55}
a{color:#153f31}button,input,select,textarea{font:inherit;color:inherit}
.st-top{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px clamp(16px,3vw,32px);background:#fff;border-bottom:1px solid #e3e5da;position:sticky;top:0;z-index:5}
.st-logo{display:flex;align-items:center;gap:8px;font-weight:800;font-size:18px;text-decoration:none;color:#14241d}
.st-logo span{width:30px;height:30px;border-radius:9px;background:#cfe85a;color:#153f31;display:flex;align-items:center;justify-content:center}
.st-sub{color:#55625a;font-size:13px}.st-grow{flex:1 1 auto}
.st-cross{display:flex;gap:6px;flex-wrap:wrap}.st-cross a{font-size:13px;text-decoration:none;border:1px solid #d8dccd;border-radius:999px;padding:7px 12px;background:#fff}
.st-main{max-width:1240px;margin:0 auto;padding:20px clamp(16px,3vw,32px) 64px;display:flex;flex-direction:column;gap:16px}
.st-head h1{margin:0 0 4px;font-size:24px;letter-spacing:-.02em}.st-head p{margin:0;color:#55625a}
.st-tabs{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.st-tabs .grp{font-size:11px;font-weight:700;color:#4d6a12;letter-spacing:.08em;margin:0 4px 0 10px}.st-tabs .grp:first-child{margin-left:0}
.st-chip{border:1px solid #d8dccd;background:#fff;border-radius:999px;padding:8px 14px;font-size:13px;cursor:pointer;min-height:38px}
.st-chip.on{background:#153f31;border-color:#153f31;color:#fff}.st-chip small{opacity:.8;margin-left:4px}
.st-card{background:#fff;border:1px solid #e3e5da;border-radius:16px;padding:20px;min-width:0}
.st-card h2{margin:0 0 4px;font-size:17px}.st-card h3{margin:14px 0 6px;font-size:14px}
.st-note{color:#55625a;font-size:12.5px;margin:0}
.st-row{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start}.st-col{display:flex;flex-direction:column;gap:12px;min-width:0}
.st-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.st-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
.st-kpi{background:#fff;border:1px solid #e3e5da;border-radius:14px;padding:16px}.st-kpi b{display:block;font-size:24px;letter-spacing:-.02em}.st-kpi span{font-size:12px;color:#55625a}
.st-btn{border:0;background:#153f31;color:#fff;border-radius:10px;padding:10px 16px;font-size:13px;font-weight:700;cursor:pointer;min-height:42px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.st-btn.ghost{background:#fff;color:#153f31;border:1px solid #cfd5c4}.st-btn.lime{background:#cfe85a;color:#14241d}.st-btn.danger{background:#fff;color:#8a2a1d;border:1px solid #e7b9b0}
.st-btn:disabled{opacity:.45;cursor:not-allowed}.st-btn.sm{min-height:34px;padding:6px 10px;font-size:12px}
.st-pill{display:inline-block;border-radius:999px;padding:3px 10px;font-size:11px;font-weight:700;white-space:nowrap}
.st-pill.ok{background:#e3f0b3;color:#2f3f0a}.st-pill.wait{background:#fff3c4;color:#5c4600}.st-pill.no{background:#f0f0ec;color:#55625a}.st-pill.dark{background:#153f31;color:#fff}.st-pill.warn{background:#fde4df;color:#8a2a1d}
.st-field{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700}
.st-field input,.st-field select,.st-field textarea{border:1px solid #d8dccd;border-radius:10px;padding:10px 12px;font-size:14px;font-weight:400;background:#fff;width:100%}
.st-field textarea{min-height:84px;resize:vertical}.st-field small{font-weight:500;color:#55625a}.st-field small.req{color:#8a4b00}.st-field small.pub{color:#2f5a10}
.st-field .with-btn{display:flex;gap:6px}.st-field .with-btn input{flex:1}
.st-steps{display:flex;flex-wrap:wrap;gap:8px}
.st-step{flex:1 1 150px;border:1px solid #e3e5da;border-radius:12px;padding:10px 12px;background:#fff;font-size:12px;cursor:pointer;text-align:left;min-height:56px}
.st-step.on{border-color:#153f31;background:#f2f7dd}.st-step b{display:block;font-size:13px}.st-step.static{cursor:default}
.st-rep{border:1px dashed #cfd5c4;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:8px}
.st-code{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px;background:#f7f7f3;border:1px solid #e3e5da;border-radius:10px;padding:10px 12px;word-break:break-all;display:flex;justify-content:space-between;gap:8px;align-items:center}
.st-tw{overflow-x:auto;border:1px solid #eef0e8;border-radius:12px}
.st-table{width:100%;border-collapse:collapse;min-width:640px}.st-table th{font-size:11px;color:#55625a;text-align:left;background:#fafbf6;padding:9px 12px;white-space:nowrap}
.st-table td{padding:10px 12px;border-top:1px solid #eef0e8;font-size:13px;vertical-align:middle}.st-table tr.click{cursor:pointer}.st-table tr.click:hover td{background:#fafbf6}
.st-alert{border-radius:12px;padding:12px 14px;font-size:13px}.st-alert.warn{background:#fff3c4;color:#5c4600}.st-alert.err{background:#fde4df;color:#8a2a1d}.st-alert.ok{background:#e3f0b3;color:#2f3f0a}
.st-line{display:flex;gap:10px;align-items:center;justify-content:space-between;border:1px solid #eef0e8;border-radius:10px;padding:10px 12px;font-size:13px}
.st-tool{display:flex;flex-wrap:wrap;gap:6px;border:1px solid #d8dccd;border-bottom:0;border-radius:10px 10px 0 0;padding:8px;background:#fafbf6}
.st-edit{border:1px solid #d8dccd;border-radius:0 0 10px 10px;padding:16px 18px;min-height:420px;background:#fff;font-size:15px;line-height:1.75;overflow-wrap:anywhere}
.st-edit:focus{outline:2px solid #cfe85a}.st-edit h2{font-size:20px;margin:22px 0 8px}.st-edit h3{font-size:16px;margin:16px 0 6px}.st-edit img{max-width:100%;height:auto;border-radius:8px}
.st-edit table{border-collapse:collapse;width:100%;margin:10px 0}.st-edit th,.st-edit td{border:1px solid #d8dccd;padding:6px 10px;font-size:14px}.st-edit th{background:#f7f7f3}
.st-src{width:100%;min-height:420px;border:1px solid #d8dccd;border-radius:0 0 10px 10px;padding:12px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12.5px}
.st-score{font-size:44px;font-weight:800;letter-spacing:-.03em;line-height:1;color:#153f31}
.st-items{display:flex;flex-direction:column;gap:6px;font-size:13px}.st-items div{display:flex;gap:8px;align-items:baseline}.st-items small{color:#55625a}
#stToast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#14241d;color:#fff;padding:12px 18px;border-radius:12px;font-size:13px;opacity:0;pointer-events:none;transition:opacity .2s;max-width:90vw;z-index:20}
#stToast.show{opacity:1}#stToast.err{background:#8a2a1d}
dialog#stDialog{border:0;border-radius:16px;padding:22px;max-width:min(520px,92vw);width:100%}dialog#stDialog::backdrop{background:rgba(20,36,29,.45)}
#stBody{display:flex;flex-direction:column;gap:16px}button.st-kpi{font:inherit;color:inherit}
.st-hidden{display:none!important}
@media (max-width:640px){.st-top{position:static}.st-btn{width:100%}.st-row>.st-card{flex-basis:100%!important}}

.st-msgs{display:flex;flex-direction:column;gap:8px;max-height:460px;overflow-y:auto;padding:4px}
.st-msg{max-width:92%;border-radius:14px;padding:10px 12px;font-size:13px}.st-msg p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.st-msg small{display:block;margin-top:4px;font-size:11.5px;color:#55625a}.st-msg small.warn{color:#8a4b00}
.st-msg.me{align-self:flex-end;background:#153f31;color:#fff}.st-msg.ai{align-self:flex-start;background:#f2f7dd}.st-msg.wait{opacity:.7}
.st-gh{display:flex;gap:10px;justify-content:space-between;align-items:flex-start}.st-gsec{border-top:1px solid #eef0e8;padding-top:12px}.st-gsec h3{margin:0 0 6px}.st-gsec ul{margin:0;padding-left:18px}.st-gsec p{margin:0 0 4px}
.st-pre{white-space:pre-wrap;overflow-wrap:anywhere}.st-kv{display:grid;grid-template-columns:max-content 1fr;gap:4px 14px;font-size:13px}.st-kv span{color:#55625a}.st-kv b{font-weight:600;overflow-wrap:anywhere}
.st-svcs{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.st-svc{border:1px solid #e3e5da;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:4px;font-size:13px}.st-svc p{margin:0;color:#33433a}.st-svc small{color:#55625a}.st-svc a{font-size:12px;overflow-wrap:anywhere}
.st-gsec details{border:1px solid #eef0e8;border-radius:10px;padding:8px 10px;margin-bottom:6px;font-size:13px}.st-gsec summary{cursor:pointer;font-weight:600}
.st-chat textarea{border:1px solid #d8dccd;border-radius:10px;padding:10px 12px;font-size:14px;width:100%;resize:vertical;min-height:84px}

/* 단독판: 대시보드와 같은 왼쪽 메뉴 */
.dm-wrap{display:flex;align-items:flex-start}
.dm-rail{flex:0 0 76px;position:sticky;top:57px;height:calc(100vh - 57px);overflow:auto;background:#14241d;padding:8px 6px;display:flex;flex-direction:column;gap:4px}
.dm-svc{border:0;background:transparent;color:#c9d2c6;font:inherit;font-size:11px;font-weight:700;border-radius:10px;padding:9px 2px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:3px;line-height:1.25;word-break:keep-all}
.dm-svc i{font-style:normal;font-size:18px}.dm-svc:hover{background:#22382d}.dm-svc.on{background:#cfe85a;color:#14241d}
.dm-side{flex:0 0 212px;position:sticky;top:57px;height:calc(100vh - 57px);overflow:auto;padding:12px 10px 40px;border-right:1px solid #e3e5da;background:#fbfbf7}
.dm-grp{font-size:12px;font-weight:800;margin:6px 10px 8px}
.dm-nav{display:flex;justify-content:space-between;align-items:center;gap:6px;width:100%;text-align:left;border:0;background:transparent;padding:8px 10px;border-radius:10px;cursor:pointer;font:inherit;font-size:13.5px;min-height:38px;color:inherit}
.dm-nav:hover{background:#eef0e6}.dm-nav.on{background:#e3f0b3;font-weight:700}.dm-nav small{font-size:10px;color:#7a8578;white-space:nowrap}
@media (max-width:860px){.dm-wrap{display:block}.dm-rail{position:static;height:auto;flex-direction:row;overflow-x:auto;padding:6px}.dm-svc{flex:0 0 68px}.dm-side{position:static;height:auto;border-right:0;border-bottom:1px solid #e3e5da;padding-bottom:10px}.dm-bar span.n{flex-basis:96px}}
.dm-wrap .st-main{margin:0;flex:1 1 auto;min-width:0}.dm-nav .cnt{font-size:11px;font-weight:700;background:#153f31;color:#fff;border-radius:99px;padding:1px 7px}.dm-nav .cnt.z{background:#eef0e6;color:#7a8578}.dm-sub{font-size:11px;color:#7a8578;margin:12px 10px 4px;font-weight:700}
a.dm-svc{text-decoration:none}
