:root {
    --bg-page: #f5f5f7;
    --bg-header: #ffffff;
    --bg-panel: #ffffff;
    --bg-panel-alt: #f0f1f4;
    --border-subtle: #dde0e5;
    --border-strong: #c2c6cf;
    --border-accent: #9ca3af;
    --text-main: #111827;
    --text-muted: #6b7280;
    --accent-main: #f97316;
    --accent-soft: #fed7aa;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-page);
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(0, 0, 0, 0.015) 3px,
            rgba(0, 0, 0, 0.015) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 3px,
            rgba(0, 0, 0, 0.012) 3px,
            rgba(0, 0, 0, 0.012) 4px
        ),
        radial-gradient(
            ellipse 120% 80% at 50% -20%,
            rgba(254, 215, 170, 0.15),
            transparent 50%
        );
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---- Boot sequence overlay (styling wie Hauptseite) ---- */
/* Standard: ausgeblendet, damit beim Skip nichts aufblitzt */
.boot-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-page);
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0, 0, 0, 0.015) 3px, rgba(0, 0, 0, 0.015) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(0, 0, 0, 0.012) 3px, rgba(0, 0, 0, 0.012) 4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}

/* Nur setzen, wenn Boot wirklich gezeigt wird (nicht beim Skip) – erscheint sofort, kein Fade-in */
.boot-screen.boot-visible {
    opacity: 1;
    pointer-events: auto;
    transition: none;
}

/* Fade-out nur beim Ausblenden nach abgeschlossener Animation */
.boot-screen.boot-complete {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease-out;
}

/* Beim Skip: keine Fade-Animation (Overlay war nie sichtbar) */
.boot-screen.boot-skipped {
    transition: none;
}

.boot-screen-inner {
    padding: 2rem;
    width: 100%;
    max-width: 28rem;
}

/* Prompt: Startbildschirm vor der Boot-Animation */
.boot-prompt {
    display: none;
    position: relative;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    text-align: center;
}

.boot-prompt::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-main), var(--accent-soft));
    border-radius: 6px 0 0 6px;
}

.boot-prompt-active .boot-prompt {
    display: block;
}

.boot-prompt-active .boot-panel {
    display: none !important;
}

.boot-prompt-badge {
    font-size: 0.7rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.boot-prompt-title {
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.boot-prompt-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.02em;
    margin-bottom: 1.75rem;
}

.boot-prompt-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.boot-prompt-cta-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}

.boot-prompt-kbd {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    background: var(--accent-main);
    color: #fff;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
    cursor: pointer;
    appearance: none;
}

.boot-prompt-kbd:hover {
    filter: brightness(1.08);
}

.boot-prompt-kbd:active {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    transform: translateY(1px);
}

.boot-prompt-tagline {
    font-size: 0.68rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.8;
}

.boot-panel {
    position: relative;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: scale(0.98) translateY(4px);
    transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

.boot-panel::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 0;
    background: var(--accent-main);
    border-radius: 4px 0 0 4px;
    transition: height 0.4s ease-out 0.1s;
}

.boot-panel.boot-panel-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.boot-panel.boot-panel-visible::before {
    height: 100%;
}

.boot-build {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-size: 0.65rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    opacity: 0.7;
}

.boot-title {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.boot-logo {
    color: var(--accent-main);
    font-family: 'Courier New', monospace;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.4rem;
    background: var(--accent-soft);
    border-radius: 3px;
}

.boot-compendium {
    color: var(--text-main);
}

.boot-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.boot-status {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    min-height: 1.5em;
    margin-bottom: 0.75rem;
}

.boot-status-text {
    color: var(--text-main);
}

.boot-tagline {
    font-size: 0.7rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-main);
    margin-bottom: 0.9rem;
    min-height: 1.2em;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

.boot-tagline.boot-tagline-visible {
    opacity: 1;
    transform: translateY(0);
}

.boot-progress {
    height: 4px;
    background: var(--border-subtle);
    border-radius: 2px;
    overflow: hidden;
}

.boot-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent-main), var(--accent-soft));
    border-radius: 2px;
    transition: width 0.15s ease-out;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.35);
}

.header {
    background: var(--bg-header);
    border-bottom: 2px solid var(--border-subtle);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-main);
    opacity: 0.4;
}

.header-content {
    max-width: 1024px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.ficsit-logo {
    color: var(--accent-main);
    font-family: 'Courier New', monospace;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.4rem;
    background: var(--accent-soft);
    border-radius: 3px;
}

.compendium-text {
    color: var(--text-main);
}

.site-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.02em;
    margin-top: 0.25rem;
}

/* Shift tracker (top right) */
.shift-tracker {
    flex-shrink: 0;
    text-align: right;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
}

.shift-tracker-hint {
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.2s ease, color 0.2s ease;
    margin: 0;
}

.shift-tracker-hint:hover {
    color: var(--accent-main);
    text-decoration-color: var(--accent-main);
}

.shift-tracker-logged-in {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
}

.shift-tracker-time {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-main);
    letter-spacing: 0.05em;
}

.shift-tracker-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.shift-tracker-btn {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-panel);
    color: var(--text-main);
    cursor: pointer;
    font-family: inherit;
}

.shift-tracker-btn:hover {
    background: var(--accent-soft);
    border-color: var(--accent-main);
}

.shift-tracker-link {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    background: none;
    border: none;
    color: var(--accent-main);
    cursor: pointer;
    font-family: inherit;
    text-decoration: underline;
}

.shift-tracker-link:hover {
    color: var(--text-main);
}

/* Shift history modal */
.shift-history-modal .auth-modal-content {
    max-width: 480px;
}

.shift-cumulative {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-main);
    margin-bottom: 1rem;
}

.shift-history-list {
    max-height: 60vh;
    overflow-y: auto;
}

.shift-history-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.8rem;
}

.shift-history-range {
    color: var(--text-muted);
}

.shift-history-dur {
    font-weight: 600;
    color: var(--accent-main);
}

.main-content {
    flex: 1;
    max-width: 1024px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    width: 100%;
}

.section {
    margin-bottom: 3rem;
}

.core-philosophy {
    margin-bottom: 2.5rem;
}

.core-philosophy-inner {
    border-left: 3px solid var(--accent-main);
    padding: 0.5rem 0 0.5rem 0.75rem;
    text-align: left;
}

.core-philosophy-line {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-main);
}

.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--border-subtle);
    position: relative;
}

.section-header-row .section-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.section-header-row .section-title::after {
    display: none;
}

.card-add-btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    border: 1px solid var(--accent-main);
    background: var(--accent-soft);
    color: var(--text-main);
    cursor: pointer;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
}

.card-add-btn:hover {
    background: var(--accent-main);
    color: #fff;
}

.section-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-main);
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--border-subtle);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent-main);
}

.section-icon {
    font-size: 0.8rem;
    color: var(--accent-main);
    font-family: 'Courier New', monospace;
}

.section + .section {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: 2rem;
}

.tools-grid,
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.card {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-left: 4px solid transparent;
    border-radius: 4px;
    padding: 1.1rem 1.2rem;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    border-left-color: var(--accent-main);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    color: var(--text-main);
}

.card-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
    line-height: 1.6;
}

.card-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-main);
    text-decoration: none;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: var(--accent-soft);
    border-radius: 3px;
    transition: all 0.2s ease;
}

.card-link::after {
    content: '→';
    font-size: 0.9em;
}

.card-link:hover {
    background: var(--accent-main);
    color: #fff;
    text-decoration: none;
    transform: translateX(2px);
}

.tool-card {
    position: relative;
}

.plan-card {
    position: relative;
}

.card-wrapper {
    position: relative;
}

.card-delete-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: none;
    border-radius: 3px;
    background: var(--border-subtle);
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-delete-btn:hover {
    background: #dc2626;
    color: #fff;
}

.card-modal-title {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.card-modal form label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
}

.card-modal form input {
    width: 100%;
    padding: 0.4rem 0.5rem;
    border-radius: 3px;
    border: 1px solid var(--border-subtle);
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

.card-form-error {
    margin-top: 0.5rem;
}

.plan-number {
    position: absolute;
    top: auto;
    bottom: 0.5rem;
    right: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    font-weight: 700;
    background: var(--bg-panel);
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--border-subtle);
    border-radius: 3px;
    box-shadow: var(--shadow-sm);
}

.footer {
    border-top: 2px solid var(--border-subtle);
    padding: 1rem 1.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--bg-header);
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-link-btn {
    background: none;
    border: none;
    color: var(--accent-main);
    font-family: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.2s ease;
}

.footer-link-btn:hover {
    text-decoration-color: var(--accent-main);
}

.loading,
.empty-state {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    padding: 2.5rem 0;
    font-family: 'Courier New', monospace;
}

.auth-status-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    text-transform: none;
}

.auth-button {
    font-size: 0.7rem;
    padding: 0.25rem 0.7rem;
    border-radius: 3px;
    border: 1px solid var(--accent-main);
    background: var(--accent-main);
    color: #fff;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-button-secondary {
    background: transparent;
    color: var(--accent-main);
}

.auth-button:hover {
    box-shadow: var(--shadow-sm);
}

.auth-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.auth-modal-open {
    display: flex;
}

.auth-modal-content {
    background: var(--bg-panel);
    border-radius: 6px;
    padding: 1.5rem;
    max-width: 520px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle);
    position: relative;
}

.auth-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    cursor: pointer;
}

.auth-view {
    display: none;
}

.auth-view.active {
    display: block;
}

.auth-view-title {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-view form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-view input {
    padding: 0.5rem 0.6rem;
    border-radius: 3px;
    border: 1px solid var(--border-subtle);
    font-size: 0.9rem;
}

.auth-view-switch {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-link-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    color: var(--accent-main);
    cursor: pointer;
    text-decoration: underline;
}

.auth-link-btn:hover {
    color: var(--text-main);
}

.auth-error {
    font-size: 0.7rem;
    color: #b91c1c;
    min-height: 1.2em;
}

.editor-container {
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-panel);
    box-shadow: var(--shadow-sm);
}

.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-panel-alt);
}

.editor-toolbar button {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    border: 1px solid var(--border-subtle);
    background: #fff;
    cursor: pointer;
}

.editor-toolbar button:hover {
    background: var(--accent-soft);
}

.editor-status {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.editor-content {
    padding: 0.9rem 1rem;
    font-size: 0.85rem;
}

.editor-content[contenteditable="true"] {
    outline: none;
    background: #fffaf5;
}

.editor-input {
    width: 100%;
    min-height: 8rem;
    padding: 0.9rem 1rem;
    font-size: 0.85rem;
    font-family: inherit;
    line-height: 1.6;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    background: var(--bg-panel);
    color: var(--text-main);
    resize: vertical;
    box-sizing: border-box;
}

.editor-display {
    min-height: 2rem;
}

.editor-history {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    border: 1px solid var(--border-subtle);
    background: #fff;
    cursor: pointer;
}

.editor-history:hover {
    background: var(--accent-soft);
}

/* History Modal */
.history-modal .auth-modal-content {
    max-width: 700px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.history-list {
    overflow-y: auto;
    flex: 1;
    padding: 0.5rem 0;
}

.history-item {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.2s ease;
}

.history-item:hover {
    background: var(--bg-panel-alt);
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.history-version {
    font-weight: 600;
    color: var(--accent-main);
    font-size: 0.85rem;
}

.history-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}

.history-item-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.history-user {
    color: var(--text-muted);
}

.history-summary {
    color: var(--text-main);
    font-style: italic;
}

.history-item-actions {
    display: flex;
    gap: 0.5rem;
}

.history-view-btn {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    border: 1px solid var(--border-subtle);
    background: #fff;
    cursor: pointer;
    color: var(--accent-main);
}

.history-view-btn:hover {
    background: var(--accent-soft);
}

.history-view {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.history-view-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.history-back-btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    border: 1px solid var(--border-subtle);
    background: #fff;
    cursor: pointer;
    color: var(--text-main);
}

.history-back-btn:hover {
    background: var(--bg-panel-alt);
}

.history-view-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: var(--bg-panel-alt);
    border-radius: 3px;
    font-size: 0.85rem;
    line-height: 1.6;
}

.history-view-actions {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
}

@media (max-width: 640px) {
    .header-content {
        padding: 1.25rem 1rem;
    }

    .main-content {
        padding: 1.5rem 1rem 2.5rem;
    }

    .tools-grid,
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
