:root { --bg: #f3f5f9; --panel: #ffffff; --panel-muted: #f8fafc; --border: #d8dee8; --text: #1f2937; --text-muted: #6b7280; --accent: #2563eb; --accent-soft: #dbeafe; --success: #166534; --success-soft: #dcfce7; --warn: #92400e; --warn-soft: #fef3c7; --danger: #991b1b; --danger-soft: #fee2e2; --shadow: 0 1px 2px rgba(0,0,0,0.06), 0 8px 20px rgba(0,0,0,0.04); --radius: 12px; --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; --rail-closed: 52px; --rail-open: 230px; } * { box-sizing: border-box; } html, body { margin: 0; padding: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: var(--sans); } body { min-height: 100vh; } a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; } .app-shell { min-height: 100vh; } .sidebar { position: fixed; inset: 0 auto 0 0; width: var(--rail-closed); background: #08142f; color: #e5e7eb; overflow-x: hidden; overflow-y: auto; padding: 0.75rem 0.45rem 1rem 0.45rem; z-index: 100; transition: width 0.18s ease; } .app-shell.nav-open .sidebar { width: var(--rail-open); } .main { margin-left: var(--rail-closed); min-height: 100vh; padding: 1.25rem; transition: margin-left 0.18s ease; } .app-shell.nav-open .main { margin-left: var(--rail-open); } .sidebar-top { display: flex; align-items: center; gap: 0.7rem; min-height: 36px; margin-bottom: 1rem; } .sidebar-toggle { width: 24px; height: 18px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; flex: 0 0 24px; margin-left: 2px; } .sidebar-toggle span { display: block; width: 100%; height: 2px; background: #94a3b8; border-radius: 999px; } .sidebar-toggle:hover span { background: #e2e8f0; } .brand { font-weight: 700; font-size: 1rem; white-space: nowrap; display: none; } .sidebar-section-title { color: #94a3b8; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 1rem 0 0.5rem 0; white-space: nowrap; display: none; } .nav-list { display: flex; flex-direction: column; gap: 0.35rem; } .nav-link { display: flex; align-items: center; gap: 0.65rem; color: #e5e7eb; border-radius: 10px; padding: 0.72rem 0.6rem; white-space: nowrap; overflow: hidden; } .nav-link:hover { background: rgba(255,255,255,0.08); text-decoration: none; } .nav-link.active { background: rgba(59,130,246,0.28); color: #fff; } .nav-link-short { display: inline-flex; min-width: 1rem; justify-content: center; font-weight: 600; } .nav-link-text { display: none; } .app-shell.nav-open .brand, .app-shell.nav-open .sidebar-section-title, .app-shell.nav-open .nav-link-text { display: initial; } .app-shell:not(.nav-open) .nav-link { justify-content: center; } .topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; } .page-title { margin: 0; font-size: 1.7rem; } .page-subtitle { margin: 0.25rem 0 0 0; color: var(--text-muted); font-size: 0.95rem; } .card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; margin-bottom: 1rem; } .card-title { margin: 0 0 0.75rem 0; font-size: 1.05rem; } .button-row { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; } button, .button-link { appearance: none; border: 1px solid var(--border); background: var(--panel); color: var(--text); border-radius: 10px; padding: 0.65rem 0.95rem; cursor: pointer; font: inherit; } button:hover, .button-link:hover { background: #f3f4f6; text-decoration: none; } button.primary, .button-link.primary { background: var(--accent); color: white; border-color: var(--accent); } button.danger { background: var(--danger-soft); color: var(--danger); border-color: #fecaca; } .badges { display: flex; flex-wrap: wrap; gap: 0.5rem; } .badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 0.28rem 0.7rem; font-size: 0.82rem; border: 1px solid var(--border); background: var(--panel-muted); color: var(--text); } .badge.reviewed { background: var(--success-soft); color: var(--success); border-color: #bbf7d0; } .badge.pending { background: var(--warn-soft); color: var(--warn); border-color: #fde68a; } .badge.trashed { background: var(--danger-soft); color: var(--danger); border-color: #fecaca; } .table-wrap { overflow: auto; } table { width: 100%; border-collapse: collapse; font-size: 0.95rem; } th, td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); padding: 0.7rem 0.6rem; } th { color: var(--text-muted); font-weight: 600; font-size: 0.83rem; text-transform: uppercase; letter-spacing: 0.04em; } .grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; } .meta-grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 0.65rem 1rem; } .meta-item { background: var(--panel-muted); border: 1px solid var(--border); border-radius: 10px; padding: 0.65rem 0.8rem; } .meta-label { display: block; color: var(--text-muted); font-size: 0.78rem; margin-bottom: 0.25rem; } .preview-frame { width: 100%; height: 950px; border: 1px solid var(--border); border-radius: 10px; background: white; } .preview-image { width: 100%; max-height: 950px; object-fit: contain; border: 1px solid var(--border); border-radius: 10px; background: white; } .sticky-actions { position: sticky; top: 0; z-index: 20; background: rgba(243,245,249,0.94); padding: 0.25rem 0 0.75rem 0; } .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem 1rem; } .form-field { display: flex; flex-direction: column; gap: 0.35rem; } .form-field.full { grid-column: 1 / -1; } label { font-size: 0.86rem; color: var(--text-muted); } input[type="text"], input[type="date"], textarea { width: 100%; border: 1px solid var(--border); background: white; border-radius: 10px; padding: 0.7rem 0.75rem; font: inherit; color: var(--text); } textarea { font-family: var(--mono); line-height: 1.45; } .editor-wrap { display: grid; grid-template-columns: 4rem minmax(0, 1fr); border: 1px solid var(--border); border-radius: 0.85rem; overflow: hidden; background: #fff; align-items: stretch; } .line-numbers { margin: 0; padding: 0.9rem 0.75rem; background: var(--panel-muted); border-right: 1px solid var(--border); color: var(--text-muted); text-align: right; user-select: none; white-space: pre; overflow-y: auto; overflow-x: hidden; height: 34rem; min-height: 34rem; font: 500 0.95rem/1.55 var(--mono); scrollbar-width: none; -ms-overflow-style: none; } .line-numbers::-webkit-scrollbar { display: none; } .editor-wrap textarea { margin: 0; border: 0; border-radius: 0; resize: none; height: 34rem; min-height: 34rem; padding: 0.9rem 1rem; overflow: auto; white-space: pre; font: 500 0.95rem/1.55 var(--mono); line-height: 1.55; outline: none; } .detail-sticky-header { position: sticky; top: 0; z-index: 30; background: rgba(243,245,249,0.96); backdrop-filter: blur(8px); padding-bottom: 0.75rem; margin-bottom: 1rem; } .workspace-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(380px, 0.9fr); gap: 1rem; align-items: start; margin-bottom: 1rem; } .preview-card { position: sticky; top: 7.5rem; } .right-pane-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); padding-bottom: 0.75rem; } pre.codeblock { white-space: pre-wrap; word-break: break-word; font-family: var(--mono); background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; padding: 0.8rem; max-height: 18rem; overflow: auto; } .error-box { background: var(--danger-soft); color: var(--danger); border: 1px solid #fecaca; border-radius: 10px; padding: 0.9rem 1rem; margin-bottom: 1rem; } .empty-state { color: var(--text-muted); padding: 0.4rem 0; } .mobile-header, .sidebar-overlay { display: none !important; } @media (max-width: 1100px) { .grid-2, .form-grid, .meta-grid, .workspace-grid { grid-template-columns: 1fr; } .preview-frame { height: 720px; } .preview-card { position: static; } } .doc-header-sticky { position: sticky; top: 0; z-index: 30; background: rgba(243,245,249,0.96); backdrop-filter: blur(8px); padding-bottom: 0.75rem; margin-bottom: 1rem; } .tabbar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; } .tab-button { appearance: none; border: 1px solid var(--border); background: var(--panel); color: var(--text); border-radius: 999px; padding: 0.5rem 0.85rem; cursor: pointer; font: inherit; } .tab-button.active { background: var(--accent); color: #fff; border-color: var(--accent); } .tab-panel { display: none; } .tab-panel.active { display: block; } .queue-nav-row { display: flex; gap: 0.65rem; flex-wrap: wrap; align-items: center; margin-top: 0.75rem; } .queue-label { color: var(--text-muted); font-size: 0.9rem; }