CoolFace
Apppublic

VIDraft/JGOS-Origin

sourceHugging Faceupdated 25d agoView on Hugging Face
1likes
style.css726 linesDownload Raw Back to static
1/* JGOS — 전남광주 통합특별시 시민 AI 포털 */
2@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@300;400;500;600;700;800&display=swap');
3
4* { box-sizing: border-box; margin: 0; padding: 0; }
5:root {
6  --bg: #f7f8fa;                       /* 시민포털 light */
7  --bg-2: #ffffff;
8  --panel-glass: rgba(255, 255, 255, 0.78);
9  --panel-glass-strong: rgba(255, 255, 255, 0.92);
10  --border: rgba(0, 31, 70, 0.08);
11  --border-strong: rgba(0, 31, 70, 0.16);
12  --text: #1a1f2e;
13  --text-dim: #5b6677;
14  --text-faint: #8a94a3;
15  --gov-blue: #0052a4;                 /* 정부 메인 블루 */
16  --gov-blue-dark: #003d80;
17  --gov-blue-light: #e6f0fa;
18  --gov-green: #006a4e;                /* 신뢰/sovereign 그린 */
19  --gov-orange: #c8550f;
20  --accent: #0052a4;
21  --accent-2: #0066cc;
22  --user-bg: #0052a4;
23  --user-text: #ffffff;
24  --assistant-bg: #ffffff;
25  --warn-bg: #fff7ed;
26  --warn-border: #f59e0b;
27  --warn-text: #92400e;
28  --shadow-1: 0 1px 2px rgba(0,31,70,0.06), 0 1px 3px rgba(0,31,70,0.04);
29  --shadow-2: 0 2px 8px rgba(0,31,70,0.08), 0 1px 3px rgba(0,31,70,0.04);
30  --shadow-3: 0 12px 40px rgba(0,31,70,0.10), 0 4px 12px rgba(0,31,70,0.06);
31  --radius: 12px;
32  --radius-sm: 8px;
33  --radius-lg: 16px;
34  --backdrop: saturate(180%) blur(20px);
35}
36html, body { height: 100%; }
37body {
38  background: linear-gradient(180deg, #f7f8fa 0%, #eef2f7 100%);
39  background-attachment: fixed;
40  color: var(--text);
41  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "맑은 고딕", sans-serif;
42  font-size: 15px;
43  line-height: 1.6;
44  -webkit-font-smoothing: antialiased;
45  -webkit-tap-highlight-color: transparent;
46}
47button { font-family: inherit; }
48
49#app { display: flex; height: 100vh; height: 100dvh; }
50
51/* ===== 모바일 햄버거 ===== */
52#hamburger-btn {
53  display: none;
54  position: fixed; top: 14px; left: 14px; z-index: 1000;
55  width: 40px; height: 40px;
56  background: var(--bg-2); border: 1px solid var(--border);
57  border-radius: var(--radius-sm); cursor: pointer; color: var(--text);
58  align-items: center; justify-content: center;
59  box-shadow: var(--shadow-2);
60}
61#hamburger-btn svg { width: 22px; height: 22px; }
62
63/* ===== 사이드바 ===== */
64#sidebar {
65  width: 280px; flex-shrink: 0;
66  background: var(--panel-glass);
67  backdrop-filter: var(--backdrop); -webkit-backdrop-filter: var(--backdrop);
68  border-right: 1px solid var(--border);
69  display: flex; flex-direction: column;
70  transition: transform 0.25s ease;
71}
72.sidebar-head { padding: 18px 16px 14px; border-bottom: 1px solid var(--border); }
73.brand-top {
74  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
75}
76.emblem {
77  width: 36px; height: 36px; border-radius: 8px;
78  background: var(--gov-blue); color: white;
79  display: flex; align-items: center; justify-content: center;
80  font-size: 18px; flex-shrink: 0;
81}
82.brand-title { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.2; }
83.brand-sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
84
85#new-chat-btn {
86  width: 100%; padding: 10px 14px;
87  background: var(--gov-blue); color: white;
88  border: none; border-radius: var(--radius-sm);
89  cursor: pointer; font-size: 13.5px; font-weight: 600;
90  transition: background 0.15s ease;
91}
92#new-chat-btn:hover { background: var(--gov-blue-dark); }
93
94.sidebar-section-label {
95  padding: 14px 16px 6px; font-size: 11px; font-weight: 600;
96  color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em;
97}
98#chat-list { flex: 1; overflow-y: auto; padding: 0 10px 10px; list-style: none; }
99#chat-list li {
100  padding: 9px 12px; margin-bottom: 3px;
101  border-radius: var(--radius-sm); cursor: pointer; color: var(--text);
102  font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
103  transition: background 0.15s ease;
104}
105#chat-list li:hover { background: rgba(0, 82, 164, 0.06); }
106#chat-list li.active { background: rgba(0, 82, 164, 0.12); color: var(--gov-blue); font-weight: 600; }
107
108.sidebar-foot { padding: 14px 16px; border-top: 1px solid var(--border); }
109.brand-small { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--text-dim); }
110.brand-small small { color: var(--text-faint); font-size: 10.5px; }
111
112/* ===== 메인 ===== */
113#main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: transparent; }
114
115/* ===== 상단 ===== */
116#topbar {
117  padding: 12px 24px; border-bottom: 1px solid var(--border);
118  display: flex; justify-content: space-between; align-items: center;
119  background: var(--panel-glass-strong);
120  backdrop-filter: var(--backdrop); -webkit-backdrop-filter: var(--backdrop);
121}
122.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
123#sidebar-toggle {
124  display: none; width: 36px; height: 36px;
125  background: transparent; border: none; cursor: pointer;
126  font-size: 20px; color: var(--text);
127}
128.title-block { min-width: 0; }
129.title-main {
130  font-size: 15px; font-weight: 700; color: var(--text);
131  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
132}
133.title-sub {
134  font-size: 11.5px; color: var(--text-dim); margin-top: 2px;
135}
136.status-pill {
137  font-size: 11.5px; color: #006a4e; font-weight: 600;
138  background: #e8f5ee; padding: 4px 10px; border-radius: 12px;
139  white-space: nowrap;
140}
141.status-pill.error { color: #c8550f; background: #fdf0e6; }
142
143/* ===== 메시지 영역 ===== */
144/* view-chat 래퍼: #main의 flex child로 전체 높이를 차지해야 messages/composer 레이아웃이 안정된다 */
145#view-chat { flex: 1; display: flex; flex-direction: column; min-height: 0; }
146#view-chat[hidden] { display: none; }
147#messages-wrap {
148  flex: 1; overflow-y: auto;
149  display: flex; flex-direction: column;
150}
151#messages {
152  padding: 20px 24px;
153  display: flex; flex-direction: column; gap: 14px;
154  max-width: 960px; width: 100%; margin: 0 auto;
155}
156#messages:empty { display: none; }
157
158.msg { padding: 12px 16px; border-radius: var(--radius); box-shadow: var(--shadow-1); }
159.msg.user {
160  background: var(--user-bg); color: var(--user-text);
161  align-self: flex-end; max-width: 60%; padding: 9px 14px;
162  font-size: 14px; line-height: 1.5; border-radius: 18px 18px 4px 18px;
163  box-shadow: 0 1px 3px rgba(0, 82, 164, 0.16);
164}
165.msg.assistant {
166  background: var(--assistant-bg); color: var(--text);
167  align-self: stretch; max-width: 100%;
168  border: 1px solid var(--border);
169  position: relative;
170}
171
172.msg.user a { color: #cfe4ff; }
173.msg.user code, .msg.user pre { background: rgba(255,255,255,0.18); color: #fff; }
174
175/* markdown */
176.msg h1, .msg h2, .msg h3, .msg h4 { margin: 14px 0 8px; font-weight: 600; line-height: 1.3; }
177.msg h1 { font-size: 1.45em; } .msg h2 { font-size: 1.25em; } .msg h3 { font-size: 1.1em; } .msg h4 { font-size: 1.02em; }
178.msg p { margin: 7px 0; }
179.msg ul, .msg ol { margin: 7px 0 7px 24px; }
180.msg li { margin: 3px 0; }
181.msg code {
182  background: rgba(0,31,70,0.05); padding: 2px 6px; border-radius: 5px;
183  font-family: 'SF Mono', 'JetBrains Mono', Consolas, monospace; font-size: 0.9em;
184}
185.msg pre {
186  background: #fafbfc; padding: 12px 14px; border-radius: 10px;
187  overflow-x: auto; margin: 10px 0; border: 1px solid var(--border); font-size: 13px;
188}
189.msg pre code { background: none; padding: 0; }
190.msg table { border-collapse: collapse; margin: 10px 0; width: 100%; font-size: 14px; }
191.msg th, .msg td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
192.msg th { background: var(--gov-blue-light); font-weight: 600; color: var(--gov-blue-dark); }
193.msg tr:nth-child(even) td { background: #fafbfc; }
194.msg a { color: var(--gov-blue); text-decoration: none; }
195.msg a:hover { text-decoration: underline; }
196.msg blockquote {
197  border-left: 3px solid var(--gov-blue); padding: 6px 14px; color: var(--text-dim);
198  margin: 8px 0; background: rgba(0, 82, 164, 0.04); border-radius: 0 6px 6px 0;
199}
200.msg hr { border: none; border-top: 1px solid var(--border); margin: 14px 0; }
201
202/* ===== 답변 신뢰 배지 (assistant 메시지 하단) ===== */
203.trust-badges {
204  margin-top: 12px; padding-top: 10px;
205  border-top: 1px dashed var(--border);
206  display: flex; flex-wrap: wrap; gap: 6px; font-size: 11.5px;
207}
208.trust-badges .tb {
209  display: inline-flex; align-items: center; gap: 4px;
210  padding: 3px 9px; border-radius: 10px;
211  background: var(--gov-blue-light); color: var(--gov-blue-dark);
212  font-weight: 500;
213}
214.trust-badges .tb.warn { background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-border); }
215.trust-badges .tb.green { background: #e8f5ee; color: #006a4e; }
216.trust-badges .tb.gray { background: #eef0f4; color: var(--text-dim); }
217
218/* ===== 첨부파일 카드 (user 메시지 안 분리) ===== */
219.msg-attachments-card {
220  margin-top: 10px; padding: 10px 12px;
221  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.28);
222  border-radius: 8px; display: flex; flex-direction: column; gap: 6px;
223}
224.msg.assistant .msg-attachments-card {
225  background: var(--gov-blue-light); border-color: rgba(0, 82, 164, 0.18);
226}
227.attach-card-item {
228  display: flex; align-items: center; gap: 10px; font-size: 12.5px;
229}
230.attach-card-item .ext-icon {
231  width: 32px; height: 32px; border-radius: 6px;
232  background: rgba(255,255,255,0.2); color: white;
233  display: flex; align-items: center; justify-content: center;
234  font-size: 11px; font-weight: 700; flex-shrink: 0;
235}
236.msg.assistant .attach-card-item .ext-icon {
237  background: var(--gov-blue); color: white;
238}
239.attach-card-item .meta { flex: 1; min-width: 0; }
240.attach-card-item .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
241.attach-card-item .info { font-size: 11px; opacity: 0.85; }
242.attach-card-item .status { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: rgba(0,200,100,0.16); color: #fff; }
243.msg.assistant .attach-card-item .status { background: #e8f5ee; color: #006a4e; }
244
245/* ===== 시민포털 첫 화면 ===== */
246.portal {
247  max-width: 980px; width: 100%; margin: 0 auto;
248  padding: 32px 24px 48px;
249}
250.portal-hero { text-align: center; margin-bottom: 32px; }
251.hero-emblem {
252  width: 72px; height: 72px; margin: 0 auto 18px;
253  background: linear-gradient(135deg, var(--gov-blue) 0%, var(--gov-blue-dark) 100%);
254  border-radius: 18px; color: white;
255  display: flex; align-items: center; justify-content: center;
256  font-size: 38px;
257  box-shadow: 0 8px 24px rgba(0, 82, 164, 0.22);
258}
259.hero-title {
260  font-size: 26px; font-weight: 700; line-height: 1.3; color: var(--text);
261  margin-bottom: 10px;
262}
263.hero-title strong { color: var(--gov-blue); }
264.hero-sub { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; }
265
266/* 8개 카테고리 큰 카드 */
267.cat-grid {
268  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
269  margin-bottom: 30px;
270}
271.cat-card {
272  background: var(--bg-2); border: 1px solid var(--border);
273  border-radius: var(--radius); padding: 18px 14px;
274  display: flex; flex-direction: column; align-items: center;
275  gap: 6px; cursor: pointer; text-align: center;
276  transition: all 0.18s ease;
277  box-shadow: var(--shadow-1);
278}
279.cat-card:hover {
280  transform: translateY(-2px);
281  border-color: var(--gov-blue);
282  box-shadow: var(--shadow-3);
283  background: linear-gradient(180deg, #ffffff 0%, var(--gov-blue-light) 100%);
284}
285.cat-card .cat-emoji { font-size: 32px; }
286.cat-card .cat-name { font-size: 14px; font-weight: 700; color: var(--text); }
287.cat-card .cat-desc { font-size: 11.5px; color: var(--text-dim); }
288
289/* 추천 질문 */
290.quick-section { margin-bottom: 28px; }
291.quick-label {
292  font-size: 12.5px; font-weight: 700; color: var(--text-dim);
293  text-transform: uppercase; letter-spacing: 0.05em;
294  margin-bottom: 10px; padding-left: 4px;
295}
296.quick-grid {
297  display: flex; flex-wrap: wrap; gap: 8px;
298}
299.quick-btn {
300  background: var(--bg-2); border: 1px solid var(--border);
301  border-radius: 20px; padding: 8px 14px;
302  font-size: 13px; color: var(--text); cursor: pointer;
303  transition: all 0.15s ease;
304  box-shadow: var(--shadow-1);
305}
306.quick-btn:hover {
307  background: var(--gov-blue-light); border-color: var(--gov-blue);
308  color: var(--gov-blue-dark);
309}
310
311/* 포털 하단 신뢰 표시 + NIA 문구 */
312.portal-foot {
313  margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border);
314}
315.trust-line {
316  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
317  margin-bottom: 14px;
318}
319.trust-badge {
320  font-size: 11.5px; color: var(--text-dim);
321  background: var(--bg-2); border: 1px solid var(--border);
322  padding: 4px 10px; border-radius: 10px;
323}
324.trust-disclaimer {
325  font-size: 11.5px; color: var(--text-faint); line-height: 1.65;
326  text-align: center; max-width: 780px; margin: 0 auto;
327}
328
329/* ===== 입력 영역 ===== */
330#composer {
331  border-top: 1px solid var(--border); padding: 14px 20px 14px;
332  background: var(--panel-glass-strong);
333  backdrop-filter: var(--backdrop); -webkit-backdrop-filter: var(--backdrop);
334}
335
336/* NIA K-AI 1위 출처 문구 (모든 화면 영구 표시) */
337.nia-disclaimer {
338  max-width: 960px; margin: 10px auto 0;
339  font-size: 10.5px; line-height: 1.55;
340  color: var(--text-faint);
341  text-align: center;
342  padding: 0 12px;
343  letter-spacing: -0.01em;
344}
345@media (max-width: 768px) {
346  .nia-disclaimer { font-size: 10px; padding: 0 6px; }
347}
348.warn-bar {
349  max-width: 960px; margin: 0 auto 10px;
350  background: var(--warn-bg); border: 1px solid var(--warn-border);
351  color: var(--warn-text); padding: 9px 14px; border-radius: var(--radius-sm);
352  font-size: 12.5px;
353}
354.attach-row {
355  max-width: 960px; margin: 0 auto 10px;
356  display: flex; flex-wrap: wrap; gap: 8px;
357}
358.attach-pill {
359  display: inline-flex; align-items: center; gap: 6px;
360  background: var(--bg-2); border: 1px solid var(--border);
361  padding: 6px 10px; border-radius: 16px; font-size: 12.5px; color: var(--text);
362  box-shadow: var(--shadow-1);
363}
364.attach-pill .remove {
365  background: none; border: none; cursor: pointer; color: var(--text-dim);
366  font-size: 16px; padding: 0; line-height: 1;
367}
368.attach-pill .remove:hover { color: #c8550f; }
369.attach-pill.processing { color: var(--gov-blue); }
370.attach-pill .ext { font-weight: 700; color: var(--gov-blue); font-size: 11px;
371  background: var(--gov-blue-light); padding: 2px 6px; border-radius: 4px; }
372
373.input-row {
374  display: flex; gap: 10px; align-items: flex-end;
375  max-width: 960px; margin: 0 auto;
376  background: var(--bg-2); border: 1.5px solid var(--border-strong); border-radius: 18px;
377  padding: 6px 8px 6px 14px; box-shadow: var(--shadow-2);
378}
379.input-row:focus-within { border-color: var(--gov-blue); box-shadow: 0 0 0 3px rgba(0,82,164,0.12), var(--shadow-2); }
380#attach-btn, #web-btn, #minwon-btn, #send-btn {
381  background: none; border: none; cursor: pointer;
382  padding: 10px; border-radius: 50%; transition: background 0.15s ease;
383  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
384}
385#attach-btn, #web-btn, #minwon-btn { color: var(--text-dim); font-size: 22px; }
386#attach-btn:hover, #web-btn:hover, #minwon-btn:hover { background: rgba(0,31,70,0.06); color: var(--gov-blue); }
387#web-btn.on, #minwon-btn.on { background: var(--gov-blue); color: #fff; }
388#web-btn.on:hover, #minwon-btn.on:hover { background: var(--gov-blue-dark, #003d7a); color: #fff; }
389#send-btn { background: var(--gov-blue); color: white; padding: 10px 14px; }
390#send-btn:hover { background: var(--gov-blue-dark); }
391#send-btn:disabled { background: #c7c7cc; cursor: not-allowed; }
392#send-btn svg { width: 18px; height: 18px; }
393#send-btn.stopping { background: #d93838; }
394#send-btn.stopping:hover { background: #b52d2d; }
395
396/* ===== 웹검색 출처 카드 ===== */
397.src-wrap { margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(0,31,70,0.15); }
398.src-head { font-size: 12px; font-weight: 700; color: var(--text-dim); margin-bottom: 8px; }
399.src-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
400.src-card { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1px solid rgba(0,31,70,0.12); border-radius: 10px; background: rgba(0,82,164,0.03); text-decoration: none; transition: background .15s, border-color .15s; }
401.src-card:hover { background: rgba(0,82,164,0.08); border-color: var(--gov-blue); }
402.src-num { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--gov-blue); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
403.src-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
404.src-title { font-size: 12.5px; color: var(--text); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
405.src-tag { font-size: 10.5px; color: var(--gov-blue); font-weight: 600; }
406@media (max-width: 600px) { .src-list { grid-template-columns: 1fr; } }
407#input {
408  flex: 1; padding: 10px 4px;
409  background: transparent; color: var(--text);
410  border: none; resize: none;
411  font-family: inherit; font-size: 15px; line-height: 1.5;
412  max-height: 200px; overflow-y: auto;
413}
414#input:focus { outline: none; }
415#input::placeholder { color: var(--text-faint); }
416
417/* drag-over overlay */
418#drag-overlay {
419  position: fixed; inset: 0; background: rgba(0, 82, 164, 0.06);
420  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
421  z-index: 9999; display: flex; align-items: center; justify-content: center;
422  border: 4px dashed var(--gov-blue);
423  pointer-events: auto; cursor: pointer;
424}
425#drag-overlay[hidden] { display: none !important; }
426#drag-overlay .drop-card {
427  background: var(--bg-2); padding: 30px 50px; border-radius: 20px;
428  box-shadow: var(--shadow-3); font-size: 18px; font-weight: 600; color: var(--gov-blue);
429  pointer-events: none;
430}
431#drag-overlay .drop-card small {
432  display: block; margin-top: 8px; font-size: 12px; color: var(--text-dim); font-weight: 400;
433}
434
435/* cursor blink */
436.cursor {
437  display: inline-block; width: 6px; height: 16px;
438  background: var(--gov-blue); animation: blink 0.8s infinite; vertical-align: middle;
439  margin-left: 2px; border-radius: 1px;
440}
441@keyframes blink { 50% { opacity: 0; } }
442
443/* "생각 중" 인디케이터 */
444.thinking-indicator {
445  display: inline-flex; align-items: center; gap: 8px;
446  color: var(--text-dim); font-size: 14px; font-style: italic;
447  padding: 4px 0;
448  animation: thinking-pulse 1.8s ease-in-out infinite;
449}
450.thinking-indicator .spinner {
451  width: 14px; height: 14px;
452  border: 2px solid rgba(0,82,164,0.22);
453  border-top-color: var(--gov-blue);
454  border-radius: 50%;
455  animation: spin 0.8s linear infinite;
456}
457@keyframes thinking-pulse { 0%, 100% { opacity: 0.7; } 50% { opacity: 1.0; } }
458
459/* loader spinner */
460.spinner {
461  display: inline-block; width: 12px; height: 12px;
462  border: 2px solid rgba(0,82,164,0.3); border-top-color: var(--gov-blue);
463  border-radius: 50%; animation: spin 0.8s linear infinite;
464}
465@keyframes spin { to { transform: rotate(360deg); } }
466
467/* mobile-only utility */
468.mobile-only { display: none; }
469
470/* ===== Sidebar backdrop (mobile) ===== */
471#sidebar-backdrop {
472  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
473  z-index: 90; cursor: pointer;
474}
475#sidebar-backdrop[hidden] { display: none; }
476
477/* ===== Responsive ===== */
478@media (max-width: 900px) {
479  .cat-grid { grid-template-columns: repeat(3, 1fr); }
480}
481
482@media (max-width: 768px) {
483  #hamburger-btn { display: flex; }
484  .mobile-only { display: flex; }
485
486  #sidebar {
487    position: fixed; top: 0; left: 0; height: 100vh;
488    z-index: 100; transform: translateX(-100%);
489    box-shadow: 8px 0 32px rgba(0,0,0,0.18);
490  }
491  #sidebar.open { transform: translateX(0); }
492
493  #topbar { padding: 14px 16px 14px 64px; }
494  .title-main { font-size: 14px; }
495  .title-sub { font-size: 11px; }
496
497  #messages { padding: 16px; gap: 12px; }
498  .msg.user { max-width: 80%; font-size: 13.5px; }
499
500  .portal { padding: 24px 16px 32px; }
501  .hero-emblem { width: 60px; height: 60px; font-size: 30px; border-radius: 14px; }
502  .hero-title { font-size: 20px; }
503  .hero-sub { font-size: 13px; }
504
505  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
506  .cat-card { padding: 14px 10px; }
507  .cat-card .cat-emoji { font-size: 26px; }
508  .cat-card .cat-name { font-size: 13px; }
509  .cat-card .cat-desc { font-size: 11px; }
510
511  .quick-btn { font-size: 12px; padding: 7px 12px; }
512  .trust-line { gap: 6px; }
513  .trust-badge { font-size: 10.5px; padding: 3px 8px; }
514  .trust-disclaimer { font-size: 11px; padding: 0 6px; }
515
516  #composer { padding: 10px 14px 14px; }
517  .input-row { padding: 5px 6px 5px 12px; border-radius: 16px; }
518  #input { font-size: 14.5px; }
519  #send-btn { padding: 8px 12px; }
520}
521
522@media (max-width: 480px) {
523  .cat-grid { grid-template-columns: repeat(2, 1fr); }
524  .hero-title { font-size: 18px; }
525  .msg.user { max-width: 85%; }
526}
527
528/* ===== 상단 탭 (AI 상담 / 한글문서 편집기) ===== */
529.top-tabs { display: flex; gap: 4px; margin: 0 auto; }
530.top-tab {
531  background: transparent; border: none; cursor: pointer;
532  padding: 8px 16px; border-radius: 10px; font-size: 14px; font-weight: 600;
533  color: var(--text-dim); transition: all 0.15s ease; white-space: nowrap;
534  text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
535}
536.top-tab:hover { background: rgba(0,82,164,0.06); color: var(--gov-blue); }
537.top-tab.active { background: var(--gov-blue); color: #fff; }
538
539/* ===== 한글문서 편집기 뷰 (HanSoo iframe) ===== */
540#view-hwp { flex: 1; display: flex; flex-direction: column; min-height: 0; }
541#view-hwp[hidden] { display: none; }
542.hwp-bar {
543  display: flex; justify-content: space-between; align-items: center;
544  padding: 10px 20px; border-bottom: 1px solid var(--border);
545  background: var(--panel-glass-strong);
546}
547.hwp-title { font-size: 14px; font-weight: 700; color: var(--text); }
548.hwp-title small { font-weight: 400; color: var(--text-dim); font-size: 12px; margin-left: 6px; }
549.hwp-newtab {
550  font-size: 12.5px; color: var(--gov-blue); text-decoration: none;
551  padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px;
552}
553.hwp-newtab:hover { background: var(--gov-blue-light); }
554#hwp-frame { flex: 1; width: 100%; border: none; background: #fff; }
555
556/* ===== 히어로 드롭존 (방안1) ===== */
557.hero-dropzone {
558  display: block; width: 100%; max-width: 720px; margin: 0 auto 28px;
559  background: linear-gradient(180deg, #ffffff 0%, var(--gov-blue-light) 100%);
560  border: 2px dashed var(--gov-blue); border-radius: var(--radius-lg);
561  padding: 28px 24px; cursor: pointer; text-align: center;
562  transition: all 0.18s ease;
563}
564.hero-dropzone:hover { border-color: var(--gov-blue-dark); box-shadow: var(--shadow-3); transform: translateY(-2px); }
565.hero-dropzone.dragover { background: var(--gov-blue-light); border-color: var(--gov-green); border-style: solid; }
566.hd-icon { font-size: 40px; margin-bottom: 8px; }
567.hd-main { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
568.hd-sub { font-size: 13.5px; color: var(--text-dim); margin-bottom: 12px; }
569.hd-sub strong { color: var(--gov-blue); }
570.hd-badge {
571  display: inline-block; font-size: 12.5px; font-weight: 600;
572  color: var(--gov-green); background: #e8f5ee; border: 1px solid rgba(0,106,78,0.25);
573  padding: 6px 14px; border-radius: 16px; margin-bottom: 14px;
574}
575.hd-badge strong { color: var(--gov-green); }
576/* 형식 아이콘 띠 (방안2) */
577.fmt-strip { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
578.fmt {
579  font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 6px;
580  color: #fff; letter-spacing: 0.02em;
581}
582.fmt.hwp { background: #0b57d0; }       /* 한글 = 강조 블루 */
583.fmt.pdf { background: #d93838; }
584.fmt.doc { background: #2b579a; }
585.fmt.xls { background: #217346; }
586.fmt.ppt { background: #c43e1c; }
587.fmt.csv { background: #5b6677; }
588.fmt.img { background: #8b5cf6; }
589.fmt.more { background: #e8edf3; color: var(--gov-blue); }
590
591@media (max-width: 768px) {
592  /* 모바일: 상단바 줄바꿈 + 탭을 전체폭 둘째 줄로 (3개 탭 헤더 넘침 → 레이아웃 깨짐 방지) */
593  #topbar { flex-wrap: wrap; row-gap: 8px; }
594  .title-sub { display: none; }
595  .top-tabs { order: 3; width: 100%; gap: 4px; margin: 2px 0 0; }
596  .top-tab { flex: 1; justify-content: center; padding: 8px 4px; font-size: 12px; }
597  .hero-dropzone { padding: 20px 16px; }
598  .hd-main { font-size: 15px; }
599  .hwp-bar { padding: 8px 12px; }
600  .hwp-title small { display: none; }
601}
602
603/* ===== 무료 오피스 (HanSoo 엔진 흡수 · same-origin iframe 임베디드) ===== */
604#view-office { flex: 1; display: flex; flex-direction: column; min-height: 0; }
605#view-office[hidden] { display: none; }
606#office-frame { flex: 1; width: 100%; border: 0; min-height: 0; background: #f8fafc; }
607
608/* ===== 🎨 JGOS-Image 이미지 생성 ===== */
609#view-image { flex: 1; overflow-y: auto; padding: 24px; }
610#view-image[hidden] { display: none; }
611.img-studio { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
612.img-head h2 { font-size: 20px; font-weight: 700; color: var(--text); }
613.img-head small { display: block; font-size: 12.5px; font-weight: 400; color: var(--text-dim); margin-top: 4px; }
614.img-examples { display: flex; flex-wrap: wrap; gap: 8px; }
615.img-ex { padding: 8px 14px; border: 1px solid var(--border); border-radius: 20px; background: var(--bg-2); color: var(--text); font-size: 13px; cursor: pointer; transition: all .15s; }
616.img-ex:hover { border-color: var(--gov-blue); color: var(--gov-blue); background: var(--gov-blue-light); }
617.img-input-row { display: flex; gap: 10px; align-items: flex-end; }
618#img-prompt { flex: 1; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 12px; font-family: inherit; font-size: 14px; resize: vertical; min-height: 52px; background: var(--bg-2); color: var(--text); }
619#img-gen-btn { padding: 13px 22px; background: var(--gov-blue); color: #fff; border: none; border-radius: 12px; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
620#img-gen-btn:hover { background: var(--gov-blue-dark); }
621#img-gen-btn:disabled { opacity: .5; cursor: not-allowed; }
622.img-status { padding: 12px 16px; background: var(--gov-blue-light); border-radius: 10px; font-size: 13.5px; color: var(--gov-blue-dark); text-align: center; }
623.img-result { display: flex; flex-direction: column; align-items: center; gap: 12px; }
624.img-result img { max-width: 100%; border-radius: 14px; box-shadow: var(--shadow-3); }
625.img-dl { padding: 9px 18px; background: var(--gov-green); color: #fff; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 13.5px; }
626.img-foot { font-size: 11.5px; color: var(--text-faint); text-align: center; margin-top: 4px; }
627@media (max-width: 768px) { .img-input-row { flex-direction: column; align-items: stretch; } #view-image { padding: 16px; } }
628
629/* ===== 이미지 비율 옵션 + 모래시계 프로그레스 ===== */
630.img-opts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
631.img-opt-label { font-size: 13px; font-weight: 600; color: var(--text-dim); display: inline-flex; align-items: center; gap: 6px; }
632#img-ratio { padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 10px; font-family: inherit; font-size: 13.5px; background: var(--bg-2); color: var(--text); cursor: pointer; }
633.img-hourglass { display: inline-block; animation: hourglass-flip 1.4s ease-in-out infinite; font-size: 17px; }
634@keyframes hourglass-flip { 0%,40% { transform: rotate(0deg); } 50%,90% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }
635
636/* ===== 🎓 AI 교육 (AI 시민 대학) ===== */
637#view-edu { flex: 1; overflow-y: auto; padding: 24px; }
638#view-edu[hidden] { display: none; }
639.edu-wrap { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
640.edu-head h2 { font-size: 20px; font-weight: 700; color: var(--text); }
641.edu-head small { display: block; font-size: 12.5px; font-weight: 400; color: var(--text-dim); margin-top: 4px; }
642.edu-cat-title { font-size: 14px; font-weight: 700; color: var(--gov-blue); margin-top: 6px; }
643.edu-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
644.edu-card { padding: 12px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; text-align: center; transition: all .15s; }
645.edu-card:hover { border-color: var(--gov-blue); color: var(--gov-blue); background: var(--gov-blue-light); transform: translateY(-1px); }
646.edu-teacher { border: 1px solid var(--border-strong); border-radius: 14px; padding: 14px; background: var(--panel-glass-strong); margin-top: 8px; }
647.edu-teacher-head { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
648.edu-messages { max-height: 440px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
649.edu-messages:empty { display: none; }
650.edu-msg { padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.6; }
651.edu-msg.edu-user { background: var(--gov-blue); color: #fff; align-self: flex-end; max-width: 80%; border-radius: 14px 14px 4px 14px; }
652.edu-msg.edu-ai { background: #fff; border: 1px solid var(--border); align-self: stretch; }
653.edu-msg.edu-ai table { border-collapse: collapse; width: 100%; font-size: 13px; margin: 8px 0; }
654.edu-msg.edu-ai th, .edu-msg.edu-ai td { border: 1px solid var(--border); padding: 6px 10px; }
655.edu-msg.edu-ai th { background: var(--gov-blue-light); }
656.edu-typing { color: var(--text-dim); font-size: 13px; }
657.edu-goto { text-align: center; margin: 10px 0; }
658.edu-go-btn { padding: 10px 18px; background: var(--gov-green); color: #fff; border: none; border-radius: 10px; font-weight: 700; font-size: 13.5px; cursor: pointer; }
659.edu-go-btn:hover { filter: brightness(1.08); }
660.edu-input-row { display: flex; gap: 8px; margin-top: 10px; }
661#edu-input { flex: 1; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: 10px; font-family: inherit; font-size: 14px; resize: none; background: var(--bg-2); color: var(--text); }
662#edu-send { padding: 11px 20px; background: var(--gov-blue); color: #fff; border: none; border-radius: 10px; font-weight: 700; cursor: pointer; white-space: nowrap; }
663#edu-send:hover { background: var(--gov-blue-dark); }
664.edu-foot { font-size: 11.5px; color: var(--text-faint); text-align: center; margin-top: 8px; }
665@media (max-width: 768px) { .edu-cards { grid-template-columns: repeat(2, 1fr); } #view-edu { padding: 16px; } .edu-input-row { flex-direction: column; } }
666
667/* ===== 🏛️ 행정 AX 탭 ===== */
668#view-ax { overflow-y: auto; height: 100%; }
669.ax-container { max-width: 1100px; margin: 0 auto; padding: 20px 16px; }
670.ax-header { text-align: center; margin-bottom: 28px; }
671.ax-header h2 { font-size: 1.6rem; font-weight: 700; color: #1a3a6b; margin: 0 0 8px; }
672.ax-desc { color: #555; font-size: 0.97rem; }
673.ax-demo-card { background: #fff; border: 1.5px solid #d4e4f7; border-radius: 16px; padding: 24px; margin-bottom: 24px; box-shadow: 0 2px 12px rgba(31,78,121,0.08); }
674.ax-demo-header { margin-bottom: 18px; }
675.ax-demo-badge { background: #1f4e79; color: #fff; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-right: 8px; }
676.ax-demo-badge-2 { background: #2d6a4f; }
677.ax-demo-header h3 { display: inline; font-size: 1.15rem; font-weight: 700; color: #1a3a6b; }
678.ax-demo-header p { color: #666; font-size: 0.9rem; margin: 6px 0 0; }
679.ax-files-label { font-size: 0.85rem; font-weight: 600; color: #444; margin-bottom: 10px; }
680.ax-file-icons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
681.ax-file-chip { display: flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 10px; cursor: pointer; border: 1.5px solid #d0e4f7; background: #f4f8fd; font-size: 0.83rem; font-weight: 600; transition: all 0.18s; user-select: none; }
682.ax-file-chip:hover { background: #1f4e79; color: #fff; border-color: #1f4e79; transform: translateY(-1px); box-shadow: 0 3px 10px rgba(31,78,121,0.2); }
683.ax-file-chip .ax-ext-badge { font-size: 0.7rem; padding: 1px 6px; border-radius: 5px; font-weight: 700; }
684.ax-ext-xlsx { background: #1d6f42; color: #fff; }
685.ax-ext-csv  { background: #0d7377; color: #fff; }
686.ax-ext-docx { background: #1a56a4; color: #fff; }
687.ax-ext-pptx { background: #c43e1c; color: #fff; }
688.ax-ext-pdf  { background: #b91c1c; color: #fff; }
689.ax-ext-hwpx, .ax-ext-hwp { background: #5b21b6; color: #fff; }
690.ax-upload-zone { border: 2px dashed #a8c5e8; border-radius: 12px; padding: 28px; text-align: center; cursor: pointer; transition: all 0.2s; background: #f8fafc; }
691.ax-upload-zone:hover, .ax-upload-zone.dragover { border-color: #1f4e79; background: #edf3fc; }
692.ax-upload-inner { color: #667; }
693.ax-upload-icon { font-size: 2rem; }
694.ax-upload-hint { font-size: 0.8rem; color: #999; margin-top: 5px; }
695.ax-actions { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
696.ax-btn { padding: 10px 24px; border-radius: 9px; font-size: 0.93rem; font-weight: 700; cursor: pointer; border: none; transition: all 0.18s; display: flex; align-items: center; gap: 6px; }
697.ax-btn-primary { background: #1f4e79; color: #fff; }
698.ax-btn-primary:hover:not(:disabled) { background: #163960; transform: translateY(-1px); }
699.ax-btn-primary:disabled { background: #a0b8d0; cursor: not-allowed; }
700.ax-btn-2 { background: #2d6a4f; }
701.ax-btn-2:hover:not(:disabled) { background: #1e4d38; }
702.ax-file-count { font-size: 0.85rem; color: #555; }
703.ax-result-area { margin-top: 18px; }
704.ax-result-wrap { }
705.ax-result-title { font-weight: 700; color: #1a3a6b; font-size: 0.95rem; margin-bottom: 8px; padding: 8px 12px; background: #edf3fc; border-radius: 8px; }
706.ax-table-scroll { overflow-x: auto; border-radius: 8px; border: 1px solid #d4e4f7; }
707.ax-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
708.ax-table thead tr { background: #1f4e79; color: #fff; }
709.ax-table th, .ax-table td { padding: 7px 11px; border-bottom: 1px solid #e8f0f8; white-space: nowrap; }
710.ax-table tbody tr:nth-child(even) { background: #f4f8fd; }
711.ax-table tbody tr.status-ok { color: #1d6f42; }
712.ax-table tbody tr.status-ng { opacity: 0.7; }
713.ax-table tbody tr.status-review { color: #92400e; }
714.ax-table tbody tr.status-new { color: #1a56a4; }
715#ax-modal[hidden] { display: none !important; }
716.ax-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 2000; display: flex; align-items: center; justify-content: center; }
717.ax-modal-box { background: #fff; border-radius: 16px; width: 90%; max-width: 900px; max-height: 85vh; display: flex; flex-direction: column; box-shadow: 0 8px 40px rgba(0,0,0,0.2); }
718.ax-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #e5e7eb; }
719.ax-modal-header span { font-weight: 700; font-size: 1rem; color: #1a3a6b; }
720.ax-modal-close { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: #666; }
721.ax-modal-body { overflow-y: auto; padding: 20px; flex: 1; }
722.ax-loading { text-align: center; padding: 30px; color: #888; font-size: 1.1rem; }
723.ax-source-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
724.ax-source-chip { background: #f0f4ff; border: 1px solid #c7d7f0; border-radius: 8px; padding: 4px 11px; font-size: 0.8rem; color: #1a3a6b; }
725@media (max-width: 768px) { .ax-container { padding: 12px 8px; } .ax-demo-card { padding: 14px; } .ax-file-icons { gap: 6px; } }
726