/* 고객 웹 0.67.0 · 고객 화면 전용 (관리자 재설계 시안과 같은 색·부품). customer.html과 기기 연결 페이지가 함께 씁니다. */
:root{
 --c-bg:#f4f6fb;--c-surface:#fff;--c-surface2:#f1f4f9;--c-border:#e3e8f1;--c-line:#eef1f6;
 --c-text:#0b1324;--c-muted:#5a6481;--c-faint:#98a1b8;
 --c-side:#0b1020;--c-side2:#141b31;--c-sidetext:#aab3c9;--c-sidefaint:#5d6785;
 --c-accent:#0d9488;--c-accentbg:#ccfbf1;--c-accentdk:#0f766e;--c-accent2:#7c3aed;--c-accent2bg:#ede9fe;
 --c-gpt:#047857;--c-gptbg:#d1fae5;--c-gemini:#2563eb;--c-geminibg:#dbeafe;
 --c-ok:#15803d;--c-okbg:#dcfce7;--c-warn:#b45309;--c-warnbg:#fef3c7;--c-bad:#b91c1c;--c-badbg:#fee2e2;
 --c-font:"Noto Sans CJK KR","Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;
 --c-side-w:248px;--c-top-h:64px;--c-tab-h:72px;
 --c-aurora:var(--c-side) url('/projects/redesign/aurora.svg?v=0620') center/cover no-repeat;
 /* api-help.css가 기대하는 이름 */
 --color-accent:var(--c-accent);--color-accent-text:var(--c-accentdk);--color-line:var(--c-border);--color-muted:var(--c-muted);
 --color-soft:var(--c-surface2);--color-surface:var(--c-surface);--color-text:var(--c-text);--color-warning:var(--c-warnbg);--color-warning-text:var(--c-warn);--font-sans:var(--c-font);
 color-scheme:light;
}
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--c-bg);color:var(--c-text);font-family:var(--c-font);font-size:14px;line-height:1.5;-webkit-text-size-adjust:100%;word-break:keep-all;overflow-wrap:break-word}
body{overflow-x:hidden}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed}
a{color:var(--c-accentdk)}
h1,h2,h3,p{margin:0}
.hidden{display:none!important}
.c-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:2px solid var(--c-accent);outline-offset:2px}
.c-ic{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* 버튼·칩 */
.c-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:0 14px;border-radius:9px;border:1px solid var(--c-border);background:var(--c-surface);color:var(--c-text);font-size:13px;font-weight:500;white-space:nowrap;text-decoration:none}
.c-btn:hover:not(:disabled){border-color:#cbd3e1;background:#fafbfd}
.c-btn.primary{background:var(--c-accent);border-color:var(--c-accent);color:#fff}
.c-btn.primary:hover:not(:disabled){background:var(--c-accentdk);border-color:var(--c-accentdk)}
.c-btn.soft{background:var(--c-accentbg);border-color:var(--c-accentbg);color:var(--c-accentdk)}
.c-btn.soft:hover:not(:disabled){background:#b5f5e6;border-color:#b5f5e6}
.c-btn.danger{background:var(--c-bad);border-color:var(--c-bad);color:#fff}
.c-btn.dangerghost{border-color:#fecaca;color:var(--c-bad)}
.c-btn.blocked,.c-btn:disabled{background:var(--c-surface2);border-color:var(--c-surface2);color:var(--c-faint)}
.c-btn.block{width:100%}
.c-btn.lg{min-height:46px;font-size:14px}
.c-btn.sm{min-height:32px;padding:0 12px}
.c-link{display:inline-flex;align-items:center;gap:4px;border:0;background:none;padding:0;color:var(--c-accentdk);font-weight:500;font-size:13px}.c-link .c-ic{width:15px;height:15px}
.c-google{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:40px;padding:0 18px;border:1px solid var(--c-border);border-radius:10px;background:#fff;color:var(--c-text);font-size:14px;font-weight:500;white-space:nowrap}
.c-google .g{display:inline-grid;place-items:center;width:22px;height:22px;border:1.6px solid #4285f4;border-radius:50%;color:#4285f4;font-weight:700;font-size:12px;line-height:1}
.c-google:disabled{background:var(--c-surface2);color:var(--c-faint)}.c-google:disabled .g{border-color:var(--c-faint);color:var(--c-faint)}
.c-google.block{width:100%}.c-google.lg{min-height:50px}
.c-chip{display:inline-flex;align-items:center;gap:6px;min-height:24px;padding:0 9px;border-radius:999px;background:var(--c-surface2);color:var(--c-muted);font-size:12px;font-weight:500;white-space:nowrap}
.c-chip.dot::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.c-chip.ok{background:var(--c-okbg);color:var(--c-ok)}.c-chip.warn{background:var(--c-warnbg);color:var(--c-warn)}.c-chip.bad{background:var(--c-badbg);color:var(--c-bad)}
.c-chip.accent{background:var(--c-accentbg);color:var(--c-accentdk)}.c-chip.violet{background:var(--c-accent2bg);color:#5b21b6}
.c-chip.gpt{background:var(--c-gptbg);color:var(--c-gpt)}.c-chip.gemini{background:var(--c-geminibg);color:var(--c-gemini)}.c-chip.slate{background:var(--c-surface2);color:#334155}
.c-seg{display:flex;flex-wrap:wrap;gap:8px}
.c-seg button{min-height:36px;padding:0 14px;border-radius:18px;border:1px solid var(--c-border);background:var(--c-surface);color:var(--c-muted);font-size:13px;font-weight:500;white-space:nowrap}
.c-seg button[aria-pressed=true]{background:var(--c-text);border-color:var(--c-text);color:#fff}
.c-seg.soft button[aria-pressed=true]{background:var(--c-accentbg);border-color:var(--c-accentbg);color:var(--c-accentdk)}
.c-field{display:grid;gap:6px;font-size:12.5px;font-weight:500;color:var(--c-muted)}
.c-input,.c-field select,.c-field input,.c-field textarea{width:100%;min-height:40px;padding:8px 12px;border:1px solid var(--c-border);border-radius:9px;background:var(--c-surface);color:var(--c-text);font-size:14px;font-weight:400}
.c-search{position:relative;display:block}
.c-search .c-ic{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--c-faint)}
.c-search input{width:100%;min-height:40px;padding:8px 12px 8px 38px;border:1px solid var(--c-border);border-radius:9px;background:var(--c-surface);font-size:14px}
.c-card{background:var(--c-surface);border:1px solid var(--c-border);border-radius:14px}
.c-card-pad{padding:20px}
.c-card-head{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.c-card-head h2{font-size:15px;font-weight:700}.c-card-head small{color:var(--c-faint);font-size:12px}
.c-muted{color:var(--c-muted);font-size:12.5px}.c-faint{color:var(--c-faint);font-size:12px}
.c-okt{color:var(--c-ok)}.c-badt{color:var(--c-bad)}.c-warnt{color:var(--c-warn)}
.c-note{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:10px;background:var(--c-surface2);color:var(--c-muted);font-size:12.5px}
.c-note.warn{background:var(--c-warnbg);color:#92400e}.c-note .c-ic{margin-top:1px}
.c-bar{height:8px;border-radius:4px;background:var(--c-line);overflow:hidden}.c-bar>span{display:block;height:100%;border-radius:4px;background:var(--c-accent)}
.c-bar.violet>span{background:var(--c-accent2)}
.c-toggle{position:relative;width:38px;height:22px;flex:none;border:0;border-radius:11px;background:#cbd2e0;padding:0}
.c-toggle::after{content:"";position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:left .15s}
.c-toggle[aria-checked=true]{background:var(--c-accent)}.c-toggle[aria-checked=true]::after{left:19px}
.c-toggle:disabled{opacity:.45}

/* 틀 */
.c-app{min-height:100dvh}
.c-side{position:fixed;inset:0 auto 0 0;z-index:20;width:var(--c-side-w);display:flex;flex-direction:column;background:var(--c-side);color:var(--c-sidetext);padding:18px 12px 14px;overflow-y:auto}
.c-brand{display:flex;align-items:center;gap:10px;padding:0 8px;margin-bottom:22px;color:#fff;text-decoration:none}
.c-brand-mark{display:grid;place-items:center;width:30px;height:30px;flex:none;border-radius:9px;background:linear-gradient(135deg,#2dd4bf,#7c3aed)}
.c-brand-mark svg{width:16px;height:16px;fill:#fff}
.c-brand strong{display:block;font-size:14.5px;line-height:1.2}.c-brand small{display:block;font-size:10px;color:var(--c-sidefaint);font-weight:500}
.c-nav{display:grid;gap:2px}
.c-nav button{position:relative;display:flex;align-items:center;gap:12px;min-height:36px;padding:0 14px;border:0;border-radius:9px;background:none;color:var(--c-sidetext);font-size:13.5px;text-align:left}
.c-nav button:hover{background:#ffffff0a}
.c-nav button[aria-current=page]{background:var(--c-side2);color:#fff;font-weight:500}
.c-nav button[aria-current=page]::before{content:"";position:absolute;left:0;top:9px;width:3px;height:16px;border-radius:2px;background:#2dd4bf}
.c-nav small{margin-left:auto;font-size:10.5px;color:var(--c-sidefaint)}
.c-start{margin-top:16px;padding:14px;border-radius:12px;background:var(--c-side2)}
.c-start-head{display:flex;justify-content:space-between;color:#fff;font-size:12.5px;font-weight:700;margin-bottom:10px}.c-start-head span{color:#5eead4}
.c-start ol{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.c-start li{display:flex;align-items:center;gap:10px;font-size:12.5px}
.c-start li i{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;border:1px solid var(--c-sidefaint);font-style:normal;font-size:11px;font-weight:700}
.c-start li.done i{background:#2dd4bf;border-color:#2dd4bf;color:var(--c-side)}.c-start li.done i .c-ic{width:13px;height:13px;stroke-width:2.6}
.c-start li.now{color:#fff;font-weight:500}
.c-side-foot{margin-top:auto;display:grid;gap:12px;padding-top:16px}
.c-side-user{display:flex;align-items:center;gap:10px;padding:12px;border-radius:12px;background:var(--c-side2)}
.c-avatar-l{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:50%;background:#334155;color:#fff;font-weight:700;font-size:15px}
.c-side-user strong{display:block;color:#fff;font-size:13px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-side-user small{display:block;font-size:11px}
.c-side-user>div{min-width:0}
.c-side-guest{padding:14px;border-radius:12px;background:var(--c-side2);font-size:12px;display:grid;gap:10px}
.c-side-guest .c-google{min-height:34px;font-size:13px}
.c-side-links{display:flex;gap:6px;padding:0 14px;font-size:11px;color:var(--c-sidefaint)}
.c-side-links button{border:0;background:none;padding:0;color:inherit;font-size:11px}.c-side-links button:hover{color:var(--c-sidetext)}
.c-wrap{margin-left:var(--c-side-w);min-height:100dvh;display:flex;flex-direction:column}
.c-top{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:16px;height:var(--c-top-h);padding:0 28px;background:var(--c-surface);border-bottom:1px solid var(--c-border)}
.c-top-title{display:flex;align-items:center;gap:14px;min-width:0;flex:1}
.c-top-title h1{font-size:18px;font-weight:700;white-space:nowrap}
.c-top-sub{display:none}
.c-top-actions{display:flex;align-items:center;gap:10px}
.c-main{flex:1;width:100%;max-width:1400px;padding:24px 28px 32px}
.c-tabbar{display:none}
.c-mobile-links{display:none}

/* 머리 그림 */
.c-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:118px;padding:24px 28px;border-radius:12px;background:var(--c-aurora);color:#fff}
.c-hero h2{font-size:22px;font-weight:700;line-height:1.35}
.c-hero p{margin-top:8px;color:#d6dcf0;font-size:13.5px}
.c-hero .c-google{margin-top:16px}
.c-hero-side{display:flex;align-items:center;gap:28px;flex:none}
.c-steps{display:flex;list-style:none;margin:0;padding:0}
.c-steps li{position:relative;width:150px;display:grid;gap:8px;font-size:12.5px;color:#aab3c9}
.c-steps li:not(:last-child)::after{content:"";position:absolute;left:36px;right:8px;top:13px;height:2px;background:#ffffff44}
.c-steps li.done:not(:last-child)::after{background:#2dd4bf}
.c-steps i{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;border:1px solid #ffffff66;background:#ffffff22;font-style:normal;font-weight:700;font-size:12px;color:#d6dcf0}
.c-steps li.done{color:#fff}.c-steps li.done i{background:#2dd4bf;border-color:#2dd4bf;color:var(--c-side)}
.c-steps li.now{color:#fff;font-weight:500}.c-steps li.now i{background:#fff;border-color:#fff;color:var(--c-side)}
.c-steps i .c-ic{width:15px;height:15px;stroke-width:2.6}
.c-steps.light li{color:var(--c-muted)}.c-steps.light li:not(:last-child)::after{background:var(--c-border)}.c-steps.light li.done:not(:last-child)::after{background:var(--c-accent)}
.c-steps.light i{background:var(--c-surface);border-color:var(--c-border);color:var(--c-faint)}
.c-steps.light li.now{color:var(--c-text)}.c-steps.light li.now i{background:var(--c-accent);border-color:var(--c-accent);color:#fff}
.c-steps.light li.done i{background:var(--c-accent);border-color:var(--c-accent);color:#fff}
.c-hero .c-btn.soft{flex:none}
.c-strip{display:flex;align-items:center;gap:12px;margin-top:16px;padding:7px 12px 7px 18px;border:1px solid var(--c-accent);border-left-width:4px;border-radius:12px;background:var(--c-surface)}
.c-strip>.c-ic{color:var(--c-accent)}
.c-strip p{flex:1;min-width:0;font-size:14px;font-weight:500}
.c-strip-actions{display:flex;gap:8px;flex:none}
.c-strip.bad{border-color:#fecaca;border-left-color:var(--c-bad)}.c-strip.bad>.c-ic{color:var(--c-bad)}

/* 프로그램 */
.c-filter{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px;margin:18px 0}
.c-filter .c-search{width:400px;max-width:100%}
.c-filter .c-count{margin-left:auto;color:var(--c-faint);font-size:12.5px}
.c-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:18px 20px}
.c-pcard{display:flex;flex-direction:column;padding:20px;background:var(--c-surface);border:1px solid var(--c-border);border-radius:14px;min-width:0}
.c-pcard.resume{border:2px solid var(--c-accent);padding:19px}
.c-pcard-top{display:flex;gap:14px;align-items:flex-start}
.c-picon{display:grid;place-items:center;width:48px;height:48px;flex:none;border-radius:12px;background:color-mix(in srgb,var(--pc) 13%,#fff);color:var(--pc);font-weight:700;font-size:20px;overflow:hidden}
.c-pcard-name{flex:1;min-width:0}
.c-pcard-name h2{font-size:16px;font-weight:700;line-height:1.35;overflow-wrap:anywhere}
.c-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.c-tags .c-chip{min-height:22px;font-size:11.5px}
.c-ver{flex:none;max-width:40%;text-align:right;color:var(--c-faint);font-size:11.5px;font-weight:500;line-height:1.6}
.c-pdesc{margin-top:14px;color:var(--c-muted);font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.c-pmeta{display:grid;gap:6px;margin-top:14px;font-size:12.5px}
.c-pmeta p{display:flex;align-items:center;gap:8px;min-width:0}
.c-pmeta .c-ic{width:16px;height:16px}
.c-sdot{width:8px;height:8px;border-radius:50%;flex:none;background:currentColor;margin:0 4px 0 2px}
.c-state-running,.c-state-healthy{color:var(--c-ok)}.c-state-stopped,.c-state-unresponsive{color:var(--c-bad)}.c-state-starting{color:var(--c-warn)}.c-state-unknown{color:var(--c-faint)}
.c-pactions{display:grid;gap:8px;margin-top:auto;padding-top:14px;border-top:1px solid var(--c-line)}
.c-pmeta+.c-pactions,.c-pdesc+.c-pactions{margin-top:14px}
.c-pcard>.c-pactions{margin-top:auto}
.c-prow{display:flex;gap:10px}.c-prow .c-btn{flex:1}.c-prow .c-btn.howto{flex:0 0 38%}
.c-spacer{flex:1;min-height:14px}

/* 상태 카드 */
.c-state{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;max-width:440px;margin:48px auto;padding:32px 28px;background:var(--c-surface);border:1px solid var(--c-border);border-radius:14px}
.c-state.inline{margin:0 auto;max-width:none;grid-column:1/-1}
.c-state-ic{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--c-surface2);color:var(--c-muted);margin-bottom:6px}
.c-state-ic .c-ic{width:22px;height:22px;stroke-width:2}
.c-state.accent .c-state-ic{background:var(--c-accentbg);color:var(--c-accent)}.c-state.bad .c-state-ic{background:var(--c-badbg);color:var(--c-bad)}.c-state.warn .c-state-ic{background:var(--c-warnbg);color:var(--c-warn)}
.c-state h2{font-size:16px;font-weight:700}
.c-state p{color:var(--c-muted);font-size:13px;line-height:1.6;white-space:pre-line}
.c-state .c-btn,.c-state .c-google{margin-top:10px;min-width:240px}
.c-loading{padding:60px 0;text-align:center;color:var(--c-muted)}

/* API 설정 */
.c-providers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.c-prov{position:relative;display:flex;flex-direction:column;gap:14px;padding:24px 20px 20px;background:var(--c-surface);border:1px solid var(--c-border);border-radius:14px;overflow:hidden;min-width:0}
.c-prov::before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:var(--prov)}
.c-prov.openai{--prov:var(--c-gpt);--provbg:var(--c-gptbg)}.c-prov.gemini{--prov:var(--c-gemini);--provbg:var(--c-geminibg)}
.c-prov-head{display:flex;align-items:center;gap:12px}
.c-pavatar{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:50%;background:var(--provbg);color:var(--prov);font-weight:700;font-size:16px}
.c-prov-head>div{flex:1;min-width:0}.c-prov-head h2{font-size:18px;font-weight:700}.c-prov-head p{color:var(--c-muted);font-size:12px}
.c-keybox{display:flex;align-items:center;gap:10px;min-height:40px;padding:0 12px;border:1px solid var(--c-border);border-radius:9px;color:var(--c-text);font-size:13.5px;letter-spacing:.5px}
.c-keybox .c-ic{color:var(--c-faint)}
.c-prov-info{display:grid;gap:4px;font-size:12.5px;color:var(--c-muted)}
.c-prov-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto}
.c-prov-actions .push{margin-left:auto}
.c-empty-key{padding:18px 20px;border:1px dashed var(--c-border);border-radius:10px;background:var(--c-surface2)}
.c-empty-key strong{display:block;font-size:14px}.c-empty-key p{margin-top:4px;color:var(--c-muted);font-size:12.5px;line-height:1.6}
.c-table-card{margin-top:24px;padding:16px 16px 18px}
.c-table-card .c-card-head{padding:0 4px}
.c-gtable{width:100%;border-collapse:separate;border-spacing:0;font-size:13.5px}
.c-gtable th{padding:9px 14px;background:var(--c-surface2);color:var(--c-muted);font-size:12px;font-weight:500;text-align:left}
.c-gtable th:first-child{border-radius:8px 0 0 8px}.c-gtable th:last-child{border-radius:0 8px 8px 0}
.c-gtable td{padding:10px 14px;border-bottom:1px solid var(--c-line);vertical-align:middle}
.c-gtable tr:last-child td{border-bottom:0}
.c-gtable td.name strong{font-weight:500}.c-gtable td.name small{margin-left:10px;color:var(--c-faint);font-size:11.5px}
.c-gtable td .cell{display:flex;align-items:center;gap:10px}.c-gtable td .cell small{color:var(--c-faint);font-size:11.5px}
.c-gtable tr.hl td{background:#f0fdfa}
.c-table-foot{display:flex;align-items:center;gap:16px;margin-top:14px;padding:0 4px}
.c-table-foot p{flex:1;color:var(--c-muted);font-size:12.5px}
.c-table-error{color:var(--c-bad);font-size:12.5px;padding:0 4px;margin-top:8px}
.c-result{font-size:12.5px;font-weight:500}

/* 대화상자 */
.c-dialog{width:640px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:0;border:0;border-radius:18px;background:var(--c-surface);color:var(--c-text);box-shadow:0 16px 48px #0b102040}
.c-dialog::backdrop{background:#0b102066}
.c-dialog[open]{display:flex;flex-direction:column}
.c-dlg-head{display:flex;align-items:center;gap:12px;padding:24px 28px 0}
.c-dlg-head h2{flex:1;font-size:21px;font-weight:700}
.c-x{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:9px;background:none;color:var(--c-muted)}.c-x:hover{background:var(--c-surface2)}
.c-dlg-body{padding:18px 28px 24px;overflow-y:auto;display:grid;gap:16px;font-size:13.5px}
.c-dlg-body p{line-height:1.65}
.c-dlg-foot{display:flex;align-items:center;gap:10px;padding:16px 28px;border-top:1px solid var(--c-line)}
.c-dlg-foot .push{margin-left:auto}
.c-radio-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.c-radio{position:relative;display:flex;align-items:center;gap:12px;min-height:52px;padding:10px 16px;border:1px solid var(--c-border);border-radius:10px;cursor:pointer}
.c-radio input{position:absolute;opacity:0;pointer-events:none}
.c-radio i{width:20px;height:20px;flex:none;border-radius:50%;border:1px solid var(--c-border);background:#fff}
.c-radio:has(input:checked){border:2px solid var(--c-accent);padding:9px 15px}
.c-radio:has(input:checked) i{border:6px solid var(--c-accent)}
.c-radio:has(input:focus-visible){outline:2px solid var(--c-accent);outline-offset:2px}
.c-radio.openai:has(input:checked){background:var(--c-gptbg);border-color:var(--c-gpt)}.c-radio.openai:has(input:checked) i{border-color:var(--c-gpt)}
.c-radio.gemini:has(input:checked){background:var(--c-geminibg);border-color:var(--c-gemini)}.c-radio.gemini:has(input:checked) i{border-color:var(--c-gemini)}
.c-radio strong{display:block;font-size:14px;font-weight:500}.c-radio small{display:block;color:var(--c-muted);font-size:12px}
.c-checks{display:grid;gap:8px;max-height:44vh;overflow:auto}
.c-check{display:flex;align-items:center;gap:12px;min-height:44px;padding:8px 14px;border:1px solid var(--c-border);border-radius:10px;cursor:pointer}
.c-check input{width:18px;height:18px;accent-color:var(--c-accent);flex:none}
.c-check small{margin-left:auto;color:var(--c-faint);font-size:11.5px}
.c-check:has(input:disabled){opacity:.55;cursor:not-allowed}
.c-dlg-error{color:var(--c-bad);font-size:13px;font-weight:500}
.c-model-list{display:grid;gap:8px;max-height:38vh;overflow:auto;overflow-wrap:anywhere}
.c-model-list article{padding:10px 14px;border:1px solid var(--c-border);border-radius:10px}
.c-model-list code{font-size:12px;color:var(--c-muted)}
.c-toast{position:fixed;right:28px;bottom:24px;z-index:60;display:flex;gap:12px;align-items:flex-start;max-width:min(420px,calc(100vw - 32px));padding:12px 16px;border-radius:12px;background:var(--c-text);color:#fff;font-size:13.5px;box-shadow:0 10px 30px #0b102040}
.c-toast .c-ic{color:#5eead4;margin-top:1px}.c-toast.error .c-ic{color:#fca5a5}

/* AI 대화 */
.c-chat{display:grid;grid-template-columns:320px minmax(0,1fr);height:calc(100dvh - var(--c-top-h));margin:-24px -28px -32px}
.c-chat-side{display:flex;flex-direction:column;gap:14px;padding:20px;background:var(--c-surface);border-right:1px solid var(--c-border);overflow-y:auto}
.c-chat-side h2{font-size:15px;font-weight:700}
.c-chat-side .c-seg button{min-height:32px;padding:0 12px;font-size:12.5px}
.c-len{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.c-len button{min-height:32px;border:1px solid var(--c-border);border-radius:8px;background:var(--c-surface);color:var(--c-muted);font-size:12.5px;font-weight:500}
.c-len button[aria-pressed=true]{background:var(--c-accentbg);border-color:var(--c-accentbg);color:var(--c-accentdk)}
.c-usage{display:grid;gap:8px;padding:14px 16px;border-radius:12px;background:var(--c-surface2)}
.c-usage-row{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.c-usage strong{font-size:20px;color:#5b21b6}
.c-chat-side .c-note.warn{margin-top:auto}.c-chat-side .c-prov-actions{margin-top:0}
.c-chat-side .c-note strong{display:block;color:var(--c-warn);font-size:13px}
.c-chat-main{display:flex;flex-direction:column;min-width:0;min-height:0}
.c-chat-head{display:flex;align-items:center;gap:12px;min-height:60px;padding:0 24px;background:var(--c-surface);border-bottom:1px solid var(--c-border)}
.c-chat-head h2{font-size:16px;font-weight:700}.c-chat-head .push{margin-left:auto}
.c-chat-pill{display:none}
.c-messages{flex:1;min-height:0;overflow-y:auto;padding:24px;display:flex;flex-direction:column;gap:18px}
.c-msg{display:flex;gap:12px;max-width:760px}
.c-msg.me{align-self:flex-end;flex-direction:column;align-items:flex-end;max-width:min(560px,80%)}
.c-msg.me .c-bubble{background:var(--c-text);color:#fff;border-color:var(--c-text)}
.c-msg.me time{color:var(--c-faint);font-size:11px}
.c-avatar{display:grid;place-items:center;width:32px;height:32px;flex:none;border-radius:50%;background:var(--c-gptbg);color:var(--c-gpt);font-weight:700;font-size:13px}
.c-msg.gemini .c-avatar{background:var(--c-geminibg);color:var(--c-gemini)}
.c-msg-head{display:flex;align-items:baseline;gap:8px;margin-bottom:6px}
.c-msg-head strong{color:var(--c-gpt);font-size:13px}.c-msg.gemini .c-msg-head strong{color:var(--c-gemini)}
.c-msg-head small{color:var(--c-faint);font-size:11px}
.c-msg>div{min-width:0}
.c-bubble{padding:12px 16px;border:1px solid var(--c-border);border-radius:14px;background:var(--c-surface);font-size:13.5px;line-height:1.6;overflow-wrap:anywhere}
.c-bubble p{margin:0 0 8px}.c-bubble p:last-child{margin:0}.c-bubble pre{overflow:auto;padding:10px;border-radius:8px;background:var(--c-surface2)}.c-bubble code{font-size:12.5px}
.c-bubble ul,.c-bubble ol{margin:4px 0;padding-left:20px}
.c-msg.pending .c-bubble{border-style:dashed;color:var(--c-muted)}
.c-msg-notice{margin-top:6px;color:var(--c-muted);font-size:12px}
.c-composer{margin:0 24px 24px;padding:14px 18px;border:1px solid var(--c-border);border-radius:14px;background:var(--c-surface)}
.c-composer textarea{width:100%;min-height:44px;max-height:180px;border:0;resize:vertical;outline:0;background:none;font-size:14px;line-height:1.5}
.c-composer-foot{display:flex;align-items:center;gap:12px;margin-top:6px}
.c-composer-foot span{flex:1;color:var(--c-faint);font-size:11.5px}
.c-chat-status{padding:0 24px 8px;color:var(--c-muted);font-size:12.5px}
.c-chat-error{padding:0 24px 8px;color:var(--c-bad);font-size:12.5px;font-weight:500}
.c-chat-empty{margin:auto;text-align:center;color:var(--c-muted)}.c-chat-empty h3{font-size:16px;color:var(--c-text);margin-bottom:6px}

/* 이용 내역 */
.c-hist-filter{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:20px}
.c-hist-filter .c-search{width:320px;max-width:100%;margin-left:auto}
.c-htable{width:100%;border-collapse:separate;border-spacing:0;font-size:13.5px}
.c-htable th{padding:9px 14px;background:var(--c-surface2);color:var(--c-muted);font-size:12px;font-weight:500;text-align:left}
.c-htable th:first-child{border-radius:8px 0 0 8px}.c-htable th:last-child{border-radius:0 8px 8px 0}
.c-htable td{padding:10px 14px;border-bottom:1px solid var(--c-line);vertical-align:middle}
.c-htable tr:last-child td{border-bottom:0}
.c-hname{display:flex;align-items:center;gap:12px;font-weight:500}
.c-hname .c-picon{width:32px;height:32px;border-radius:8px;font-size:14px}
.c-hfoot{margin-top:14px;color:var(--c-faint);font-size:12.5px}

/* 내 계정 */
.c-acc-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.c-acc-row>.c-card{padding:20px;min-width:0}
.c-profile{display:flex;align-items:center;gap:16px}
.c-profile .c-avatar-l{width:56px;height:56px;font-size:20px}
.c-profile>div{min-width:0}.c-profile strong{display:block;font-size:18px}.c-profile>div>span{display:block;color:var(--c-muted);font-size:13px;overflow-wrap:anywhere}
.c-big{font-size:24px;font-weight:700;margin:6px 0 14px}
.c-kv{display:grid;gap:10px;font-size:13px}.c-kv div{display:flex;justify-content:space-between;gap:12px}.c-kv dt{color:var(--c-muted)}.c-kv dd{margin:0;font-weight:500}
.c-devices{margin-top:24px;padding:20px}
.c-device-row{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:12px;background:var(--c-surface2)}
.c-device-row+.c-device-row{margin-top:12px}
.c-device-row .c-dic{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:50%;background:var(--c-surface)}
.c-device-row>div{flex:1;min-width:0}.c-device-row strong{display:block;font-size:14.5px}.c-device-row span{display:block;color:var(--c-muted);font-size:12.5px}
.c-danger{margin-top:24px;padding:20px 24px;border:1px solid #fecaca;border-radius:14px;background:#fff5f5}
.c-danger h2{color:var(--c-bad);font-size:16px;font-weight:700}
.c-danger p{margin:10px 0 16px;color:#7f1d1d;font-size:13px;line-height:1.7}
.c-danger-row{display:flex;align-items:center;flex-wrap:wrap;gap:16px}
.c-acc-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}

/* 768~1023: 아이콘만 있는 사이드바 */
@media (max-width:1023px) and (min-width:768px){
 :root{--c-side-w:72px}
 .c-brand>span:last-child,.c-nav span,.c-nav small,.c-start,.c-side-user>div,.c-side-guest>p,.c-side-links{display:none}
 .c-brand{justify-content:center;padding:0}
 .c-nav button{justify-content:center;padding:0}
 .c-side-user{justify-content:center;padding:8px}
 .c-side-guest{padding:8px}.c-side-guest .c-google{padding:0;min-width:0}.c-side-guest .c-google .t{display:none}
 .c-hero{flex-direction:column;align-items:flex-start}
 .c-providers,.c-acc-row{grid-template-columns:minmax(0,1fr)}
 .c-chat{grid-template-columns:260px minmax(0,1fr)}
}
/* 휴대폰 */
@media (max-width:767px){
 html,body{font-size:14px}
 .c-side{display:none}
 .c-wrap{margin-left:0;padding-bottom:calc(var(--c-tab-h) + env(safe-area-inset-bottom))}
 .c-top{height:auto;min-height:72px;padding:12px 16px;flex-wrap:wrap}
 .c-top-title{flex-direction:column;align-items:flex-start;gap:2px}
 .c-top-title h1{font-size:20px}
 .c-top-title .c-chip{display:none}
 .c-top-sub{display:block;color:var(--c-muted);font-size:11.5px}
 .c-top-actions{display:none}
 .c-main{padding:16px 16px 24px}
 .c-tabbar{position:fixed;left:0;right:0;bottom:0;z-index:30;display:grid;grid-template-columns:repeat(5,1fr);height:calc(var(--c-tab-h) + env(safe-area-inset-bottom));padding:6px 4px env(safe-area-inset-bottom);background:var(--c-surface);border-top:1px solid var(--c-border)}
 .c-tabbar button{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;min-height:56px;padding:2px 0 0;border:0;background:none;color:var(--c-muted);font-size:11px}
 .c-tabbar button .pill{display:grid;place-items:center;width:54px;height:29px;border-radius:14px}
 .c-tabbar button[aria-current=page]{color:var(--c-accent);font-weight:500}
 .c-tabbar button[aria-current=page] .pill{background:var(--c-accentbg)}
 .c-mobile-links{display:flex;justify-content:center;gap:16px;margin-top:24px}
 .c-hero{flex-direction:column;align-items:stretch;padding:18px 16px;min-height:0}
 .c-hero h2{font-size:19px}
 .c-hero .c-google{width:100%}
 .c-hero-side{display:block}
 .c-hero-side .c-steps{display:none}
 .c-hero-side .c-btn{width:100%;margin-top:4px}
 .c-strip{flex-wrap:wrap;padding:12px 14px 12px 16px;align-items:flex-start}
 .c-strip p{flex-basis:calc(100% - 40px)}
 .c-strip-actions{width:100%;padding-left:30px}
 .c-filter{gap:10px;margin:16px 0}
 .c-filter .c-search{width:100%}
 .c-filter .c-count{display:none}
 .c-seg{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;width:100%}
 .c-seg::-webkit-scrollbar{display:none}
 .c-grid{grid-template-columns:minmax(0,1fr);gap:12px}
 .c-pcard{padding:16px}
 .c-pcard .c-btn{min-height:40px}
 .c-providers{grid-template-columns:minmax(0,1fr);gap:16px}
 .c-prov{padding:22px 16px 16px}
 .c-prov-head{flex-wrap:wrap}.c-prov-head p{display:none}.c-prov-head>.c-chip{margin-left:52px;margin-top:-6px}
 .c-prov-actions .c-btn{flex:1 1 auto}.c-prov-actions .push{margin-left:0}
 .c-gtable thead{display:none}
 .c-gtable,.c-gtable tbody{display:block}
 .c-gtable tr{display:grid;grid-template-columns:1fr auto auto;gap:6px 14px;align-items:center;padding:12px 14px;margin-top:8px;border:1px solid var(--c-border);border-radius:11px}
 .c-gtable tr.hl{background:#f0fdfa;border-color:#99f6e4}.c-gtable tr.hl td{background:none}
 .c-gtable td{display:block;padding:0;border:0}
 .c-gtable td.name{grid-column:1/-1}.c-gtable td.name small{display:block;margin:0}
 .c-gtable td .cell small{display:none}
 .c-gtable td.prov::before{content:attr(data-label);display:block;color:var(--c-faint);font-size:11px;margin-bottom:2px}
 .c-table-card{padding:12px}
 .c-table-foot{position:sticky;bottom:calc(var(--c-tab-h) + env(safe-area-inset-bottom));margin:12px -12px -12px;padding:12px;background:var(--c-surface);border-top:1px solid var(--c-border);border-radius:0 0 14px 14px}
 .c-table-foot p{display:none}.c-table-foot .c-btn{flex:1;min-height:48px}
 .c-dialog{max-width:100vw;width:100vw;max-height:92dvh;margin:auto 0 0;border-radius:22px 22px 0 0}
 .c-dlg-head,.c-dlg-body,.c-dlg-foot{padding-left:20px;padding-right:20px}
 .c-radio-row{grid-template-columns:minmax(0,1fr)}
 .c-dialog .c-steps li{width:auto;flex:1}
 .c-chat{display:flex;flex-direction:column;height:calc(100dvh - 72px - var(--c-tab-h) - env(safe-area-inset-bottom));margin:-16px -16px -24px}
 .c-chat-side{display:none;position:fixed;left:0;right:0;bottom:calc(var(--c-tab-h) + env(safe-area-inset-bottom));z-index:40;max-height:70dvh;border:0;border-top:1px solid var(--c-border);border-radius:18px 18px 0 0;box-shadow:0 -12px 32px #0b102030}
 .c-chat.settings-open .c-chat-side{display:flex}
 .c-chat-side .c-note.warn{display:none}
 .c-chat-main{flex:1}
 .c-chat-head{min-height:56px;padding:0 16px}
 .c-chat-head h2,.c-chat-head .c-chip{display:none}
 .c-chat-pill{display:inline-flex;align-items:center;gap:8px;flex:1;min-width:0;min-height:36px;padding:0 14px;border:0;border-radius:18px;background:var(--c-surface2);font-size:12.5px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
 .c-chat-pill::before{content:"";width:8px;height:8px;flex:none;border-radius:50%;background:var(--c-gpt)}
 .c-chat-pill.gemini::before{background:var(--c-gemini)}
 .c-chat-pill span{overflow:hidden;text-overflow:ellipsis}
 .c-chat-warn-m{display:flex!important;margin:12px 16px 0}
 .c-messages{padding:16px}
 .c-msg.me{max-width:85%}
 .c-composer{margin:0;border-radius:0;border-width:1px 0 0;padding:12px 16px}
 .c-hist-filter .c-search{width:100%;margin-left:0}
 .c-htable thead{display:none}
 .c-htable,.c-htable tbody{display:block}
 .c-htable tr{display:grid;grid-template-columns:1fr auto;gap:4px 12px;align-items:center;padding:12px 14px;margin-top:8px;border:1px solid var(--c-border);border-radius:12px;background:var(--c-surface)}
 .c-htable td{display:block;padding:0;border:0}
 .c-htable td.h-name{grid-column:1}.c-htable td.h-act{grid-column:2;grid-row:1/3}
 .c-htable td.h-kind,.c-htable td.h-time{grid-column:1;display:inline;color:var(--c-muted);font-size:11.5px}
 .c-htable td.h-kind .c-chip{background:none;padding:0 0 0 44px;min-height:0;color:var(--c-muted);font-size:11.5px}
 .c-htable td.h-time{padding-left:44px;margin-top:-4px}
 .c-hist-card{background:none;border:0;padding:0!important}
 .c-acc-row{grid-template-columns:minmax(0,1fr);gap:16px}
 .c-devices{padding:16px}
 .c-device-row{padding:12px;flex-wrap:wrap}.c-device-row .c-btn{margin-left:58px}
 .c-danger{padding:16px}
 .c-danger-row .c-btn{width:100%}
 .c-toast{left:16px;right:16px;bottom:calc(var(--c-tab-h) + 12px + env(safe-area-inset-bottom))}
 .c-state{margin:24px auto;padding:24px 18px}
 .c-state .c-btn,.c-state .c-google{min-width:0;width:100%}
}
.c-chat-warn-m{display:none}

/* 기기 연결 페이지 (/projects/customer/desktop) */
.c-device-body{min-height:100dvh;background:var(--c-aurora);background-attachment:fixed}
.c-device{display:grid;grid-template-columns:minmax(0,1fr) 480px;gap:48px;align-items:center;max-width:1328px;min-height:100dvh;margin:0 auto;padding:48px 56px}
.c-device-intro{color:#fff;align-self:stretch;display:flex;flex-direction:column}
.c-device-intro .c-brand{padding:0}
.c-device-intro h1{margin-top:auto;font-size:44px;line-height:1.3;font-weight:700;white-space:pre-line}
.c-device-intro>p{margin-top:20px;color:#d6dcf0;font-size:17px}
.c-device-chips{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0 auto}
.c-device-chips span{display:inline-flex;align-items:center;min-height:30px;padding:0 12px;border-radius:15px;background:#ffffff33;color:#fff;font-size:13px}
.c-device-intro>p.c-device-path{margin-top:32px;color:#9aa5c4;font-size:12px;overflow-wrap:anywhere}
.c-device-card{display:flex;flex-direction:column;gap:18px;padding:34px 36px 28px;border-radius:20px;background:var(--c-surface)}
.c-device-card h2{font-size:22px;font-weight:700}
.c-code{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 24px;border-radius:14px;background:var(--c-surface2)}
.c-code strong{font-size:30px;letter-spacing:1px;white-space:nowrap}
.c-crow{display:flex;align-items:flex-start;gap:14px}
.c-crow>i{display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:50%;background:var(--c-surface2);color:var(--c-faint);font-style:normal;font-weight:700;font-size:12px}
.c-crow.ok>i{background:var(--c-okbg);color:var(--c-ok)}.c-crow.need>i{background:var(--c-warnbg);color:var(--c-warn)}
.c-crow>i .c-ic{width:15px;height:15px;stroke-width:2.6}
.c-crow>div{flex:1;min-width:0}.c-crow strong{display:block;font-size:14px}.c-crow span{display:block;color:var(--c-muted);font-size:12.5px;overflow-wrap:anywhere}
.c-crow .c-btn{flex:none}
.c-pick{display:grid;gap:10px}
.c-pick label{display:flex;align-items:center;gap:14px;min-height:50px;padding:6px 16px;border:1px solid var(--c-border);border-radius:10px;cursor:pointer}
.c-pick label:has(input:checked).openai{background:var(--c-gptbg);border-color:var(--c-gpt)}
.c-pick label:has(input:checked).gemini{background:var(--c-geminibg);border-color:var(--c-gemini)}
.c-pick input{width:20px;height:20px;accent-color:var(--c-accent);flex:none}
.c-pick strong{display:block;font-size:14px}.c-pick small{display:block;color:var(--c-muted);font-size:11.5px}
.c-pick label:has(input:disabled){opacity:.55;cursor:not-allowed}
.c-device-msg{color:var(--c-bad);font-size:13px;font-weight:500}
.c-device-foot{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:var(--c-muted);font-size:12.5px}
.c-device-result{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:24px 0 8px}
.c-device-result .c-state-ic{width:80px;height:80px}
.c-device-result h2{font-size:22px}
.c-device-result p{color:var(--c-muted);font-size:13.5px;line-height:1.7;white-space:pre-line}
.c-device-result .c-btn{margin-top:12px;width:100%}
.c-device-result.ok .c-state-ic{background:var(--c-okbg);color:var(--c-ok)}.c-device-result.warn .c-state-ic{background:var(--c-warnbg);color:var(--c-warn)}.c-device-result.bad .c-state-ic{background:var(--c-badbg);color:var(--c-bad)}
@media (max-width:1023px){
 .c-device{grid-template-columns:minmax(0,1fr);max-width:560px;padding:24px 16px;gap:20px;align-content:start}
 .c-device-intro h1{margin-top:20px;font-size:28px}
 .c-device-intro>p{font-size:14px;margin-top:10px}
 .c-device-chips{margin:14px 0 0}.c-device-path{display:none}
 .c-device-card{padding:22px 18px}
 .c-code{flex-wrap:wrap;padding:16px 18px}.c-code strong{font-size:22px}
}
