:root {
    --bg: #fafafa;
    --panel: #ffffff;
    --panel-soft: #f5f5f5;
    --line: #eaeaea;
    --line-strong: #d4d4d4;
    --text: #111111;
    --muted: #666666;
    --faint: #8a8a8a;
    --accent: #111111;
    --accent-soft: #f2f2f2;
    --warn: #9a6700;
    --danger: #b42318;
    --radius: 6px;
    --shadow: 0 8px 24px rgba(0, 0, 0, .06);
    --spring: cubic-bezier(.16, 1, .3, 1);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: Pretendard, "Pretendard Variable", "Apple SD Gothic Neo", sans-serif;
    letter-spacing: 0;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
}

button,
input,
select {
    font: inherit;
    letter-spacing: 0;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 2px;
}

.app-shell {
    display: grid;
    grid-template-columns: 284px minmax(0, 1fr);
    min-height: 100dvh;
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100dvh;
    overflow-y: auto;
    padding: 20px;
    border-right: 1px solid var(--line);
    background: var(--panel);
}

.brand {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.brand h1 {
    margin: 0;
    font-size: 18px;
    line-height: 1.05;
    font-weight: 700;
}

.brand p,
.sidebar-footer p,
.meta-line {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.brand-mark,
.provider-mark {
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--panel);
    color: var(--text);
    font-family: "Geist Mono", "JetBrains Mono", Consolas, monospace;
    font-weight: 700;
}

.brand-mark {
    width: 38px;
    height: 38px;
    font-size: 12px;
}

.side-section {
    display: grid;
    gap: 10px;
}

.eyebrow {
    margin: 0;
    color: var(--faint);
    font-family: "Geist Mono", "JetBrains Mono", Consolas, monospace;
    font-size: 10px;
    text-transform: uppercase;
}

.workspace {
    min-width: 0;
    padding: 20px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto;
    gap: 10px;
    padding-bottom: 14px;
    background: var(--bg);
}

.search-box {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.search-box input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}

.search-box kbd {
    color: var(--faint);
    font-family: "Geist Mono", "JetBrains Mono", Consolas, monospace;
    font-size: 11px;
}

.topbar-actions {
    display: flex;
    gap: 8px;
}

.topbar-actions select {
    min-width: 150px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    color: var(--text);
    padding: 0 10px;
}

.summary-strip {
    display: grid;
    grid-template-columns: 1.7fr repeat(3, minmax(108px, .4fr));
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.summary-strip article {
    min-width: 0;
    padding: 13px 14px;
    border-right: 1px solid var(--line);
}

.summary-strip article:last-child {
    border-right: 0;
}

.summary-strip strong {
    display: block;
    font-family: "Geist Mono", "JetBrains Mono", Consolas, monospace;
    font-size: 22px;
    line-height: 1;
}

.summary-strip span,
.summary-lead h2 {
    color: var(--muted);
    font-size: 12px;
}

.summary-lead h2 {
    margin: 6px 0 0;
    font-weight: 500;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

.content-main {
    min-width: 0;
    scroll-margin-top: 120px;
}
