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

:root {
    color-scheme: light;
    --bg: #f0f4f8;
    --surface: #ffffff;
    --surface2: #f7f9fc;
    --border: #dde3ed;
    --navy: #1a2744;
    --accent: #1e6fff;
    --green: #16a34a;
    --green-bg: #f0fdf4;
    --green-border: #bbf7d0;
    --red: #dc2626;
    --text: #1a2744;
    --muted: #64748b;
    --label: #94a3b8;
}

body { background: var(--bg); color: var(--text); font-family: 'Segoe UI', Arial, sans-serif; min-height: 100vh; }

.topbar { background: var(--navy); padding: 7px 32px; font-size: 11px; color: rgba(255,255,255,0.6); display: flex; align-items: center; gap: 8px; }

header { background: var(--navy); padding: 0 32px; display: flex; align-items: center; }
.header-inner { display: flex; align-items: center; gap: 18px; padding: 20px 0; border-bottom: 3px solid var(--accent); flex: 1; }
.logo-wrap { width: 54px; height: 54px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 2px solid rgba(255,255,255,0.2); }
.logo-wrap svg { width: 28px; height: 28px; fill: #fff; }
.header-text h1 { font-size: 17px; font-weight: 700; color: #fff; }
.header-text p { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 3px; }
.header-law { margin-left: auto; background: rgba(30,111,255,0.25); border: 1px solid rgba(30,111,255,0.5); border-radius: 8px; padding: 8px 16px; text-align: right; }
.header-law span { display: block; font-size: 10px; color: rgba(255,255,255,0.5); }
.header-law strong { font-size: 13px; color: #fff; }

.main { max-width: 1140px; margin: 0 auto; padding: 32px 24px 48px; }

.status-banner { border-radius: 16px; padding: 0; display: flex; overflow: hidden; margin-bottom: 28px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.status-stripe { width: 7px; flex-shrink: 0; background: var(--green); }
.status-content { background: var(--surface); flex: 1; padding: 24px 28px; display: flex; align-items: center; gap: 20px; }
.status-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--green-bg); border: 2px solid var(--green-border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.status-icon svg { width: 26px; height: 26px; stroke: var(--green); }
.status-main h2 { font-size: 22px; font-weight: 800; color: var(--green); }
.status-main p { font-size: 13px; color: var(--muted); margin-top: 5px; }
.status-meta { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.status-meta .law-badge { background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 20px; white-space: nowrap; }
.status-meta .time-badge { font-size: 11px; color: var(--muted); }

.grid { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.card-head { padding: 16px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; background: var(--surface2); }
.card-head-num { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.card-head h3 { font-size: 14px; font-weight: 700; color: var(--text); }
.card-head p { font-size: 11px; color: var(--muted); }
.card-body { padding: 20px 22px; }

.doc-preview-wrap { display: flex; flex-direction: column; gap: 8px; }
.doc-preview { background: var(--surface2); border: 2px dashed var(--border); border-radius: 12px; padding: 12px; cursor: pointer; transition: border-color 0.2s; }
.doc-preview:hover { border-color: var(--accent); }
.doc-img { width: 100%; border-radius: 6px; box-shadow: 0 4px 20px rgba(0,0,0,0.12); display: block; }
.doc-zoom-hint { font-size: 11px; color: var(--label); text-align: center; }

.status-chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 20px; padding: 4px 12px; font-size: 11px; font-weight: 700; margin-left: auto; background: var(--green-bg); border: 1px solid var(--green-border); color: var(--green); }

.info-table { width: 100%; border-collapse: collapse; }
.info-table tr { border-bottom: 1px solid var(--border); }
.info-table tr:last-child { border-bottom: none; }
.info-table td { padding: 12px 4px; vertical-align: middle; }
.info-table td:first-child { font-size: 12px; color: var(--muted); width: 45%; font-weight: 500; }
.info-table td:last-child { font-size: 13px; color: var(--text); font-weight: 700; text-align: right; }
.info-table td:last-child.navy { color: var(--navy); font-size: 14px; }

.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.cert-cell { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.cert-cell.full { grid-column: 1 / -1; }
.cert-cell label { display: block; font-size: 11px; color: var(--label); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 8px; font-weight: 600; }
.cert-cell span { font-size: 14px; color: var(--text); font-weight: 700; line-height: 1.5; }

.section-divider { font-size: 11px; color: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin: 18px 0 12px; display: flex; align-items: center; gap: 8px; }
.section-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9999; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox-close { position: absolute; top: 14px; right: 16px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); color: #fff; font-size: 18px; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 1; transition: background 0.2s; }
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-img-wrap { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: default; }
.lightbox-img-wrap img { max-width: 92vw; max-height: 92vh; object-fit: contain; display: block; border-radius: 4px; box-shadow: 0 8px 48px rgba(0,0,0,0.6); transform-origin: center; transition: transform 0.1s; user-select: none; -webkit-user-drag: none; }

footer { text-align: center; padding: 24px; font-size: 11px; color: var(--label); border-top: 1px solid var(--border); background: var(--surface); }

@media (max-width: 768px) {
    .topbar { padding: 6px 16px; font-size: 10px; }
    header { padding: 0 16px; }
    .header-inner { flex-wrap: wrap; gap: 12px; padding: 16px 0; }
    .header-law { margin-left: 0; width: 100%; text-align: left; }
    .header-text h1 { font-size: 14px; }
    .main { padding: 16px 12px 32px; }
    .status-content { flex-wrap: wrap; gap: 14px; padding: 18px 16px; }
    .status-main h2 { font-size: 17px; }
    .status-meta { margin-left: 0; align-items: flex-start; width: 100%; flex-direction: row; flex-wrap: wrap; gap: 6px; }
    .grid { grid-template-columns: 1fr; gap: 16px; }
    .card-head { padding: 13px 16px; flex-wrap: wrap; gap: 8px; }
    .card-body { padding: 16px; }
    .cert-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .cert-cell { padding: 11px; }
    .cert-cell label { font-size: 10px; }
    .cert-cell span { font-size: 13px; }
}

@media (max-width: 480px) {
    .header-text h1 { font-size: 13px; line-height: 1.3; }
    .logo-wrap { width: 44px; height: 44px; }
    .logo-wrap svg { width: 22px; height: 22px; }
    .status-icon { width: 46px; height: 46px; }
    .status-main h2 { font-size: 15px; }
    .cert-grid { grid-template-columns: 1fr; }
    .cert-cell.full { grid-column: 1; }
    .info-table { display: block; }
    .info-table tr { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--border); }
    .info-table tr:last-child { border-bottom: none; }
    .info-table td { padding: 2px 4px; width: 100% !important; text-align: left !important; }
    .info-table td:first-child { font-size: 10px; color: var(--label); padding-bottom: 4px; }
    .info-table td:last-child { font-size: 13px; font-weight: 700; }
    .info-table td:last-child.navy { font-size: 13px; }
    footer { padding: 16px; font-size: 10px; }
}
