:root {
    --bg: #ffffff;
    --fg: #1f2937;
    --accent: #f59e0b;
    --muted: #6b7280;
    --border: #e5e7eb;
    --error: #dc2626;
    --success: #059669;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Pretendard",
        "Apple SD Gothic Neo", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--fg);
    background: var(--bg);
    line-height: 1.6;
}

.site-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    font-size: 1.25rem;
}

.site-nav {
    display: flex;
    gap: 16px;
    flex: 1;
}

.site-nav a {
    color: var(--fg);
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--accent);
}

.site-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.site-actions a {
    color: var(--fg);
    text-decoration: none;
}

.site-actions a:hover {
    color: var(--accent);
}

.inline-form {
    display: inline;
    margin: 0;
}

.inline-form button {
    background: none;
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.inline-form button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.site-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px;
}

.site-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    text-align: center;
}

h1 {
    margin-top: 0;
}

a {
    color: var(--accent);
}

.hint {
    color: var(--muted);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 480px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row label {
    font-weight: 600;
}

.form-row input {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
}

.form-row input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-row button {
    padding: 10px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.form-row button:hover {
    filter: brightness(0.95);
}

.error {
    color: var(--error);
}

.alert {
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 14px;
}

.alert-success {
    background: #ecfdf5;
    color: var(--success);
}

.alert-error {
    background: #fef2f2;
    color: var(--error);
}

.me-table {
    border-collapse: collapse;
    width: 100%;
    max-width: 480px;
}

.me-table th,
.me-table td {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
}

.me-table th {
    width: 100px;
    color: var(--muted);
    font-weight: 600;
}

/* F4 README editor */
.readme-editor-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.readme-editor-split textarea {
    height: 400px;
    resize: vertical;
    font-family: monospace;
    font-size: 0.9rem;
}

.readme-preview-pane {
    height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border, #ddd);
    padding: 1rem;
    border-radius: 4px;
}

.readme-actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

#readme-section {
    margin-bottom: 2rem;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
}

.team-subnav {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 1rem;
    margin: 1rem 0 1.5rem;
    background: #f3f4f6;
    border-radius: 6px;
}

.team-subnav a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
}

.team-subnav a:hover {
    color: var(--accent, #2563eb);
}

.markdown-body img,
.post-body img,
.report-preview img {
    max-width: 100%;
    height: auto;
}

.report-editor-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}
.report-editor-split textarea { height: 400px; resize: vertical; }
.report-editor-split .report-preview {
    height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    background: #fafafa;
}
