File size: 4,239 Bytes
71d239c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/* StoryCode — a warm "code-as-storybook" look. Distinctly not default Gradio.
   Storybook serif for headings (Fraunces), clean sans for body (Inter). */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap');

:root {
  --paper: #f7f4ef;
  --card: #ffffff;
  --ink: #1d2430;
  --muted: #6b7280;
  --line: #e7e3da;
  --accent: #4b5bd6;
  --accent-dark: #3a47b0;
  --safe: #3f9b6b;
  --careful: #d8932f;
  --danger: #c2503f;
}

.gradio-container, .gradio-container * { font-family: 'Inter', system-ui, sans-serif; }
.gradio-container { background: var(--paper) !important; max-width: 1120px !important; }
footer { display: none !important; }

/* Header / wordmark */
#sc-header { display: flex; align-items: baseline; gap: 14px; padding: 10px 2px 2px; flex-wrap: wrap; }
#sc-header .mark { font-family: 'Fraunces', Georgia, serif; font-size: 34px; font-weight: 700;
  color: var(--ink); letter-spacing: -0.6px; }
#sc-header .mark .accent { color: var(--accent); }
#sc-header .tag { color: var(--muted); font-size: 15px; }

/* Cards */
.sc-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 24px; box-shadow: 0 1px 2px rgba(29,36,48,0.04); }

/* Onboarding chips */
.sc-sources { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 2px; }
.sc-chip { background: #eef0fb; color: var(--accent-dark); border: 1px solid #dfe3fa;
  border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 500; }
.sc-privacy { color: var(--muted); font-size: 13px; margin-top: 10px; }
.sc-privacy strong { color: var(--danger); }

/* Primary button — confident, square-ish, not the default pill */
button.primary, .primary button { background: var(--accent) !important; border: none !important;
  border-radius: 12px !important; font-weight: 600 !important; color: #fff !important; }
button.primary:hover, .primary button:hover { background: var(--accent-dark) !important; }

/* The Story */
.sc-story h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; color: var(--ink);
  font-size: 26px; margin: 2px 0 8px; letter-spacing: -0.3px; }
.sc-story .overview { font-size: 16px; line-height: 1.6; color: var(--ink); }
.sc-step { border-left: 3px solid var(--accent); padding: 2px 0 2px 16px; margin: 16px 0; }
.sc-step .h { font-family: 'Fraunces', serif; font-weight: 600; font-size: 17px; color: var(--ink); }
.sc-step .b { color: #353c47; font-size: 15px; line-height: 1.6; margin-top: 3px; }

/* Plain-English side panel */
.sc-plain { background: #f3f6f4; border: 1px solid #dfe8e2; border-radius: 14px; padding: 16px 18px; }
.sc-plain .label { font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--safe); }
.sc-plain .body { color: #2c3a32; font-size: 15px; line-height: 1.6; margin-top: 6px; }

/* Diagram */
.sc-diagram { background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; overflow-x: auto; }
.sc-diagram .mermaid { display: flex; justify-content: center; }

/* Safe-to-edit list */
.sc-file { display: flex; align-items: flex-start; gap: 12px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; }
.sc-file .dot { font-size: 18px; line-height: 1.4; }
.sc-file .body { flex: 1; }
.sc-file .name { font-family: 'Fraunces', serif; font-weight: 600; color: var(--ink); font-size: 15px; }
.sc-file .verdict { font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; margin-left: 8px; }
.sc-file.safe .verdict { color: var(--safe); }
.sc-file.careful .verdict { color: var(--careful); }
.sc-file.danger .verdict { color: var(--danger); }
.sc-file .reason { color: var(--muted); font-size: 14px; margin-top: 3px; line-height: 1.5; }

/* Banners */
.sc-banner { border-radius: 12px; padding: 12px 16px; font-size: 14px; line-height: 1.5; }
.sc-banner.warn { background: #fbf0e6; border: 1px solid #f0d9bf; color: #8a5a1f; }
.sc-banner.info { background: #eef0fb; border: 1px solid #dfe3fa; color: var(--accent-dark); }
.sc-legend { color: var(--muted); font-size: 13px; margin: 4px 0 14px; }