@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700;900&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --ink: #172019;
    --muted: #6f776f;
    --paper: #f2f0e9;
    --panel: #fffefa;
    --accent: #e8ff47;
    --line: #d9d8d0;
    --danger: #a62727;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: 'Noto Sans SC', sans-serif;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .26;
    background-image: radial-gradient(#566057 0.6px, transparent 0.6px);
    background-size: 5px 5px;
}

.page-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(300px, .92fr) minmax(440px, 1.08fr);
    min-height: 100vh;
}

.intro {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(30px, 5vw, 76px);
    overflow: hidden;
    background: var(--ink);
    color: #f8f6ee;
}

.intro::after {
    content: 'BUG';
    position: absolute;
    left: -2vw;
    bottom: 4vh;
    color: transparent;
    font: 900 clamp(120px, 20vw, 300px)/.7 'Space Grotesk', sans-serif;
    -webkit-text-stroke: 1px rgba(255,255,255,.08);
    transform: rotate(-7deg);
    pointer-events: none;
}

.brand, .status-line, .panel-heading, .field-label {
    font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
    letter-spacing: .08em;
}

.brand { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--accent); color: var(--ink); border-radius: 50%; font-size: 16px; }
.intro-copy { position: relative; z-index: 1; max-width: 650px; }
.eyebrow { margin: 0 0 26px; color: var(--accent); font: 600 12px/1 'Space Grotesk', sans-serif; letter-spacing: .18em; }
h1 { margin: 0; font: 900 clamp(54px, 7vw, 112px)/.92 'Noto Sans SC', sans-serif; letter-spacing: -.075em; }
h1 em { color: var(--accent); font-style: normal; }
.lead { max-width: 520px; margin: 34px 0 0; color: #aeb5af; font-size: 16px; line-height: 1.9; }
.status-line { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; color: #9ba39d; font-size: 11px; }
.status-line span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(232,255,71,.1); }

.form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(36px, 7vw, 110px);
    background: rgba(255,254,250,.88);
    backdrop-filter: blur(4px);
}

.panel-heading { display: flex; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 700; }
.step { color: var(--muted); }
.field { display: block; padding: 30px 0 24px; border-bottom: 1px solid var(--line); }
.field-label { display: flex; gap: 15px; margin-bottom: 16px; font-size: 13px; font-weight: 700; }
.field-label b { color: #9ba099; font-weight: 500; }
input, textarea { width: 100%; padding: 0; border: 0; outline: 0; resize: vertical; color: var(--ink); background: transparent; font: 600 21px/1.55 'Noto Sans SC', sans-serif; }
textarea { min-height: 170px; }
input::placeholder, textarea::placeholder { color: #b8bbb5; font-weight: 400; }
input:focus, textarea:focus { caret-color: #7f9300; }
.field:focus-within { border-bottom-color: var(--ink); }
.field small { display: block; margin-top: 12px; color: #999e98; font-size: 12px; }
.notice { display: grid; gap: 4px; margin-top: 22px; padding: 16px 18px; border-left: 4px solid; font-size: 13px; }
.notice.success { border-color: #859900; background: #f5f9d8; }
.notice.error { color: var(--danger); border-color: var(--danger); background: #fff0ef; }
.submit-button { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 30px; padding: 20px 23px; border: 1px solid var(--ink); color: var(--ink); background: var(--accent); cursor: pointer; font: 700 15px 'Noto Sans SC', sans-serif; transition: transform .18s ease, box-shadow .18s ease; }
.submit-button:hover { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--ink); }
.arrow { font: 600 24px 'Space Grotesk', sans-serif; }

@media (max-width: 860px) {
    .page-shell { grid-template-columns: 1fr; }
    .intro { min-height: 56vh; padding: 30px 26px 44px; }
    .intro-copy { margin: 80px 0 65px; }
    h1 { font-size: clamp(52px, 16vw, 82px); }
    .form-panel { padding: 48px 26px 64px; }
}

@media (max-width: 480px) {
    .intro { min-height: 520px; }
    .lead { font-size: 14px; }
    input, textarea { font-size: 18px; }
    textarea { min-height: 150px; }
}

.admin-body { background: #e9e7df; }
.brand.dark { color: var(--ink); }
.login-shell { display: grid; place-items: center; min-height: 100vh; padding: 28px; }
.login-card { width: min(100%, 500px); padding: clamp(30px, 6vw, 60px); border: 1px solid var(--ink); background: var(--panel); box-shadow: 12px 12px 0 var(--ink); }
.login-eyebrow { margin-top: 70px; color: #829600; }
.login-title { font-size: clamp(46px, 8vw, 74px); }
.login-lead { color: var(--muted); line-height: 1.7; }
.login-form { margin-top: 36px; }
.field.compact { padding: 20px 0 16px; }
.field.compact input { font-size: 18px; }
.back-link { display: inline-block; margin-top: 28px; color: var(--muted); font-size: 13px; text-decoration: none; }
.back-link:hover { color: var(--ink); }
.admin-header { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(22px, 5vw, 72px); border-bottom: 1px solid var(--ink); background: rgba(242,240,233,.94); backdrop-filter: blur(8px); }
.admin-actions { display: flex; align-items: center; gap: 20px; font-size: 13px; }
.admin-actions a, .admin-actions button { color: var(--ink); background: none; border: 0; padding: 0; font: inherit; text-decoration: none; cursor: pointer; }
.admin-actions button { color: var(--danger); }
.admin-main { width: min(1180px, calc(100% - 44px)); margin: 0 auto; padding: 76px 0 100px; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; padding-bottom: 38px; border-bottom: 2px solid var(--ink); }
.admin-heading h1 { font-size: clamp(54px, 9vw, 118px); }
.report-count { display: grid; justify-items: end; }
.report-count strong { font: 700 clamp(40px, 6vw, 76px)/1 'Space Grotesk', sans-serif; }
.report-count span { color: var(--muted); font-size: 12px; }
.report-list { display: grid; }
.report-card { display: grid; grid-template-columns: 120px minmax(170px, .7fr) minmax(280px, 1.3fr); gap: 34px; padding: 34px 0; border-bottom: 1px solid #b9bab3; }
.report-meta { display: flex; flex-direction: column; justify-content: space-between; gap: 30px; color: var(--muted); font: 500 11px 'Space Grotesk', sans-serif; }
.report-id { color: var(--ink); font-size: 15px; font-weight: 700; }
.report-device { display: flex; flex-direction: column; gap: 8px; }
.report-device span { color: var(--muted); font-size: 11px; }
.report-device strong { font-size: 18px; overflow-wrap: anywhere; }
.report-card p { margin: 0; font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.empty-state { padding: 100px 0; text-align: center; }
.empty-state > span { color: #b5b7af; font: 700 80px/1 'Space Grotesk', sans-serif; }
.empty-state h2 { margin: 18px 0 4px; }
.empty-state p { color: var(--muted); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 22px; padding-top: 35px; font-size: 13px; }
.pagination a { color: var(--ink); text-decoration: none; border-bottom: 1px solid; }
.pagination span { color: var(--muted); }

@media (max-width: 760px) {
    .admin-main { padding-top: 48px; }
    .admin-heading { align-items: flex-end; }
    .report-card { grid-template-columns: 80px 1fr; gap: 20px; }
    .report-card p { grid-column: 1 / -1; padding-left: 100px; }
}

@media (max-width: 520px) {
    .login-card { box-shadow: 7px 7px 0 var(--ink); }
    .admin-header { align-items: flex-start; gap: 15px; }
    .admin-actions { flex-direction: column; align-items: flex-end; gap: 7px; }
    .admin-heading h1 { font-size: 54px; }
    .report-count strong { font-size: 42px; }
    .report-card { grid-template-columns: 1fr; }
    .report-meta { flex-direction: row; gap: 10px; }
    .report-card p { grid-column: auto; padding-left: 0; }
}
