.certificate-nav { border-color: #e6ab57; color: #a65c0c; background: #fff4e4; font-weight: 650; }
:root[data-theme="dark"] .certificate-nav { color: #ffc779; background: #3b2b18; border-color: #8d642c; }
.cert-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 30px; border: 1px solid #a87a36; border-radius: 14px; color: #fffaf2; background: radial-gradient(ellipse at 90% 0, #8a532733, transparent 65%), linear-gradient(115deg, #22252e, #151820); margin-bottom: 18px; }
.cert-eyebrow { color: #f8bd6c; font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; margin: 0 0 7px; }
.cert-hero h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 650; letter-spacing: -.6px; }
.cert-hero p:last-child { color: #d3c7b6; margin: 9px 0 0; max-width: 630px; }
.cert-primary { background: #f7931e; border-color: #f7931e; color: #25190b; font-weight: 700; padding: 10px 18px; }
.cert-status { margin: 0 0 15px; font-size: 13px; color: var(--muted); }
.cert-status.error { color: var(--bad-fg); }
.cert-workspace { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.cert-sidebar, .cert-studio { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.cert-sidebar-head { padding: 16px; border-bottom: 1px solid var(--border); }
.cert-sidebar-head h2 { font-size: 15px; margin-bottom: 12px; }
.cert-sidebar-head input, .cert-sidebar-head select { width: 100%; margin-bottom: 9px; }
.cert-list { max-height: 640px; overflow-y: auto; padding: 7px; }
.cert-client { display: flex; gap: 10px; width: 100%; align-items: center; text-align: left; padding: 12px 10px; border: 1px solid transparent; border-radius: 7px; background: transparent; }
.cert-client:hover { background: var(--row-hover); }
.cert-client[aria-pressed="true"] { background: var(--accent-soft); border-color: #e3ab5c; }
.cert-avatar { display: grid; place-items: center; flex: 0 0 33px; height: 33px; background: #f7e5c9; color: #9c621b; border-radius: 9px; font-size: 12px; font-weight: 700; }
.cert-client-copy { min-width: 0; }
.cert-client-copy strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.cert-client-copy small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.cert-studio-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.cert-studio-head h2 { font-size: 15px; overflow-wrap: anywhere; }
.cert-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cert-preview-wrap { padding: 22px; background: repeating-conic-gradient(var(--bg) 0% 25%, var(--panel) 0% 50%) 0 / 18px 18px; }
.cert-preview { display: block; width: 100%; height: auto; aspect-ratio: 1400 / 990; box-shadow: 0 8px 30px #0002; }
.cert-controls { display: flex; flex-wrap: wrap; gap: 16px 22px; padding: 18px; border-top: 1px solid var(--border); }
.cert-control { display: flex; flex-direction: column; gap: 6px; flex: 1 1 180px; font-size: 12px; font-weight: 600; }
.cert-control input, .cert-control select { width: 100%; font-size: 13px; }
.cert-control input[type="file"] { font-size: 11px; max-width: 100%; }
.cert-logo-note { display: block; padding: 0 18px 14px; color: var(--muted); font-size: 12px; margin: 0; }
.cert-progress { width: 100%; height: 8px; accent-color: #f7931e; margin: 0 0 12px; }
.cert-empty { padding: 30px 20px; color: var(--muted); }
.cert-format { font-size: 11px; color: var(--muted); margin: 0; padding: 0 18px 16px; }
.cert-filter-count { font-size: 12px; color: var(--muted); }
@media (min-width: 1550px) { .cert-list { max-height: 740px; } }
@media (max-width: 900px) { .cert-workspace { grid-template-columns: 240px minmax(0, 1fr); } .cert-preview-wrap { padding: 10px; } }
@media (max-width: 680px) { .cert-workspace { grid-template-columns: 1fr; } .cert-list { max-height: 220px; } .cert-hero { padding: 21px; } .cert-control { flex-basis: 100%; } .cert-studio-head { align-items: start; } }
