:root {
    --navy: #14251f;
    --navy-soft: #1d3930;
    --green: #167451;
    --green-light: #dff2e9;
    --amber: #dca632;
    --paper: #f5f3ec;
    --white: #fff;
    --ink: #202a26;
    --muted: #6e7a74;
    --line: #e1e6e1;
    --red: #b44943;
    --blue: #3777ae;
    --sidebar: 250px;
    --shadow: 0 14px 40px rgba(28, 50, 40, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 94% 2%, rgba(220, 166, 50, .13), transparent 25rem),
        linear-gradient(135deg, #f8f7f1, #f1f4ef);
    font-family: Candara, "Trebuchet MS", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    display: flex;
    width: var(--sidebar);
    flex-direction: column;
    padding: 28px 18px 20px;
    color: rgba(255,255,255,.72);
    background:
        radial-gradient(circle at 5% 5%, rgba(255,255,255,.08), transparent 15rem),
        linear-gradient(170deg, var(--navy-soft), var(--navy));
}
.brand { display: flex; align-items: center; gap: 12px; margin: 0 5px 42px; }
.brand-mark {
    display: grid; width: 43px; height: 43px; place-items: center;
    border-radius: 13px 13px 13px 4px; color: var(--navy);
    background: var(--amber); font-family: Georgia, serif; font-weight: 800;
}
.brand > span:last-child, .sidebar-profile > span:nth-child(2) { display: flex; flex-direction: column; }
.brand strong { color: var(--white); font-family: Georgia, serif; font-size: 16px; }
.brand small, .sidebar-profile small { margin-top: 3px; color: rgba(255,255,255,.45); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.nav-label { margin: 0 13px 10px; color: rgba(255,255,255,.33); font-size: 9px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.nav-label.secondary { margin-top: 30px; }
.sidebar nav { display: grid; gap: 7px; }
.sidebar nav a { display: flex; min-height: 46px; align-items: center; gap: 11px; padding: 0 13px; border-radius: 12px; font-size: 13px; font-weight: 700; transition: .16s ease; }
.sidebar nav a:hover { color: var(--white); transform: translateX(2px); }
.sidebar nav a.active { color: var(--white); background: rgba(255,255,255,.1); box-shadow: inset 3px 0 var(--amber); }
.sidebar nav a > span:nth-child(2) { flex: 1; }
.sidebar nav a > b { display: grid; min-width: 23px; height: 23px; place-items: center; padding: 0 5px; border-radius: 7px; color: var(--navy); background: var(--amber); font-size: 10px; }
.nav-icon { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 7px; font-family: Georgia, serif; font-size: 10px; }
.muted { opacity: .72; }
.sidebar-profile { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 15px 5px 0; border-top: 1px solid rgba(255,255,255,.08); }
.avatar { display: grid; flex: 0 0 auto; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: var(--navy); background: #f4e8bd; font-family: Georgia, serif; font-weight: 800; }
.sidebar-profile strong { color: var(--white); font-size: 12px; }
.sidebar-profile i { width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: #72d49d; box-shadow: 0 0 0 4px rgba(114,212,157,.1); }
.backdrop { display: none; }

main { width: calc(100% - var(--sidebar)); max-width: 1540px; min-height: 100vh; margin-left: var(--sidebar); padding: 0 38px 25px; }
.topbar { display: flex; min-height: 100px; align-items: center; justify-content: space-between; gap: 20px; }
.title-group { display: flex; align-items: center; gap: 14px; }
.title-group > div > span { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.title-group h1 { margin: 4px 0 0; font-family: Georgia, serif; font-size: 30px; letter-spacing: -.04em; }
.title-group button { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: rgba(255,255,255,.8); font-size: 20px; }
.admin-identity { display: flex; align-items: center; gap: 10px; }
.admin-identity > div { display: flex; flex-direction: column; }
.admin-identity strong { font-size: 12px; }
.admin-identity small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.admin-identity .avatar { color: var(--white); background: var(--green); }

.flash { display: flex; align-items: center; gap: 11px; margin-bottom: 17px; padding: 13px 16px; border: 1px solid; border-radius: 12px; font-size: 13px; animation: slide-down .3s ease; }
.flash b { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; }
.flash span { flex: 1; }
.flash button { border: 0; color: inherit; background: none; font-size: 20px; }
.flash.success { border-color: #bfdfcf; color: #176243; background: #e5f4ec; }
.flash.success b { color: var(--white); background: var(--green); }
.flash.error { border-color: #edc9c6; color: #993e39; background: #fae9e7; }
.flash.error b { color: var(--white); background: var(--red); }

.hero { position: relative; display: grid; grid-template-columns: 1fr 290px; min-height: 250px; align-items: center; gap: 50px; overflow: hidden; padding: 38px 42px; border-radius: 23px; color: var(--white); background: linear-gradient(105deg,#183d30,#116b49); box-shadow: var(--shadow); }
.hero::before, .hero::after { position: absolute; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; content: ""; }
.hero::before { right: 23%; bottom: -180px; width: 350px; height: 350px; }
.hero::after { top: -120px; right: -80px; width: 300px; height: 300px; }
.hero > div, .hero > aside { position: relative; z-index: 1; }
.kicker, .section-title span { color: #b9dfcd; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero h2 { margin: 9px 0 13px; font-family: Georgia, serif; font-size: clamp(30px,4vw,43px); line-height: 1.08; letter-spacing: -.045em; }
.hero p { max-width: 650px; margin: 0; color: rgba(255,255,255,.67); font-size: 14px; line-height: 1.65; }
.hero aside { display: grid; min-height: 175px; align-content: center; padding: 25px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(7,38,25,.25); backdrop-filter: blur(8px); }
.hero aside > span { color: #c5dfd2; font-size: 11px; }
.hero aside strong { margin-top: 5px; font-family: Georgia,serif; font-size: 54px; line-height: 1; }
.hero aside small { margin-top: -18px; margin-left: 65px; color: rgba(255,255,255,.58); }
.hero aside a { display: flex; align-items: center; justify-content: space-between; margin-top: 23px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.12); color: #f3d37c; font-size: 11px; font-weight: 800; }

.overview, .queue { margin-top: 31px; }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.section-title span { color: var(--green); }
.section-title h2 { margin: 4px 0 0; font-family: Georgia,serif; font-size: 22px; letter-spacing: -.035em; }
.section-title p { margin: 0; color: var(--muted); font-size: 11px; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.metrics article { position: relative; display: grid; min-height: 155px; padding: 20px; overflow: hidden; border: 1px solid rgba(20,55,42,.07); border-radius: 15px; background: rgba(255,255,255,.84); box-shadow: 0 7px 23px rgba(27,51,40,.05); }
.metrics article::after { position: absolute; right: -25px; bottom: -35px; width: 100px; height: 100px; border-radius: 50%; background: currentColor; content: ""; opacity: .05; }
.metrics i { color: var(--green); font-family: Georgia,serif; font-size: 11px; font-style: normal; }
.metrics span { align-self: end; color: var(--muted); font-size: 11px; font-weight: 700; }
.metrics strong { font-family: Georgia,serif; font-size: 31px; line-height: 1; }
.metrics small { color: var(--muted); font-size: 10px; }
.metrics .waiting i { color: var(--blue); }
.metrics .rejected i { color: var(--red); }
.metrics .approved i { color: var(--green); }
.metrics .total i { color: var(--amber); }

.queue { padding: 25px; border: 1px solid rgba(20,55,42,.07); border-radius: 20px; background: rgba(255,255,255,.78); box-shadow: var(--shadow); }
.queue-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; padding: 6px; border-radius: 13px; background: #f0f2ed; }
.tabs { display: flex; gap: 3px; overflow-x: auto; }
.tabs a { display: inline-flex; min-height: 37px; align-items: center; gap: 7px; padding: 0 12px; border-radius: 9px; color: var(--muted); font-size: 11px; font-weight: 800; white-space: nowrap; }
.tabs a b { display: grid; min-width: 20px; height: 20px; place-items: center; border-radius: 6px; background: #dde3de; font-size: 9px; }
.tabs a.active { color: var(--white); background: var(--navy-soft); box-shadow: 0 5px 14px rgba(20,50,38,.16); }
.tabs a.active b { color: var(--navy); background: var(--amber); }
.search { display: flex; min-width: 320px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.search input { min-width: 0; flex: 1; padding: 0 10px; border: 0; outline: none; color: var(--ink); background: transparent; font-size: 11px; }
.search button { min-height: 31px; padding: 0 13px; border: 0; border-radius: 7px; color: var(--white); background: var(--green); font-size: 10px; font-weight: 800; }

.review-list { display: grid; gap: 11px; }
.review-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); transition: border-color .18s ease,box-shadow .18s ease; }
.review-card[open] { border-color: #b9d4c7; box-shadow: 0 12px 30px rgba(28,61,45,.08); }
.review-card summary { display: grid; grid-template-columns: 100px minmax(230px,1.4fr) minmax(280px,1fr) 165px 25px; align-items: center; gap: 17px; padding: 17px 18px; cursor: pointer; list-style: none; }
.review-card summary::-webkit-details-marker { display: none; }
.date, .outlet > div, .status { display: flex; flex-direction: column; }
.date strong { font-size: 12px; }
.date small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.outlet { display: flex; min-width: 0; align-items: center; gap: 11px; }
.outlet > span { display: grid; flex: 0 0 auto; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: var(--green); background: var(--green-light); font-family: Georgia,serif; font-weight: 800; }
.outlet strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.outlet small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.quick-facts { display: grid; grid-template-columns: 1.4fr .8fr .6fr; gap: 12px; }
.quick-facts span { display: flex; flex-direction: column; gap: 3px; }
.quick-facts small, .status > small { color: var(--muted); font-size: 9px; }
.quick-facts strong { font-size: 11px; white-space: nowrap; }
.quick-facts strong.attention { color: var(--red); }
.status { align-items: flex-start; gap: 5px; }
.status > span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; font-size: 9px; }
.status > span i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-blue { color: #27699f; background: #e0effb; }
.status-green { color: #176946; background: #def2e7; }
.status-red { color: #a43e38; background: #fae5e2; }
.status-yellow { color: #895a05; background: #fff0c9; }
.status-gray { color: #606b65; background: #ebefec; }
.chevron { color: var(--muted); font-size: 20px; transition: transform .18s ease; }
.review-card[open] .chevron { transform: rotate(180deg); }

.review-body { padding: 0 18px 18px; border-top: 1px solid var(--line); background: linear-gradient(180deg,#fbfcfa,#fff); }
.report-meta { display: flex; align-items: center; gap: 35px; padding: 16px 3px; }
.report-meta span { display: flex; flex-direction: column; gap: 3px; }
.report-meta small { color: var(--muted); font-size: 9px; }
.report-meta strong { font-size: 11px; }
.report-meta > a { margin-left: auto; color: var(--green); font-size: 10px; font-weight: 800; }
.evaluations { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.evaluations article { display: flex; min-height: 120px; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.evaluations article > b { display: grid; flex: 0 0 auto; width: 25px; height: 25px; place-items: center; border-radius: 7px; color: var(--green); background: var(--green-light); font-family: Georgia,serif; font-size: 9px; }
.evaluations small { color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.evaluations p { margin: 8px 0 0; color: #46564e; font-size: 11px; line-height: 1.55; }
.decision { display: grid; grid-template-columns: 180px minmax(240px,1fr) auto; align-items: center; gap: 15px; margin-top: 12px; padding: 15px; border: 1px solid #c9ded3; border-radius: 13px; background: #edf7f1; }
.decision > div:first-child span { color: var(--green); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.decision > div:first-child p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.decision textarea { width: 100%; padding: 10px 12px; resize: vertical; border: 1px solid #cfdbd4; border-radius: 9px; outline: none; color: var(--ink); background: var(--white); font-size: 10px; }
.decision textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,116,81,.09); }
.decision-actions { display: flex; gap: 7px; }
.decision-actions button { min-height: 38px; padding: 0 14px; border: 1px solid; border-radius: 9px; font-size: 10px; font-weight: 800; }
.decision-actions .reject { border-color: #e5beba; color: var(--red); background: var(--white); }
.decision-actions .approve { border-color: var(--green); color: var(--white); background: var(--green); box-shadow: 0 7px 17px rgba(22,116,81,.18); }
.history { margin-top: 12px; padding: 15px; border-radius: 11px; background: #f0f2ef; }
.history > b { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.history p { margin: 6px 0 0; font-size: 11px; }

.empty { display: grid; min-height: 260px; place-items: center; align-content: center; text-align: center; }
.empty > span { display: grid; width: 55px; height: 55px; place-items: center; border-radius: 17px; color: var(--green); background: var(--green-light); font-size: 24px; }
.empty h3 { margin: 15px 0 4px; font-family: Georgia,serif; }
.empty p { margin: 0; color: var(--muted); font-size: 11px; }
.empty a { margin-top: 14px; color: var(--green); font-size: 10px; font-weight: 800; }
.pagination { display: flex; align-items: center; justify-content: space-between; margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--line); }
.pagination a { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font-size: 10px; font-weight: 800; }
.pagination span { color: var(--muted); font-size: 10px; }
.pagination .disabled { pointer-events: none; opacity: .35; }
footer { display: flex; justify-content: space-between; padding: 23px 3px 0; color: var(--muted); font-size: 9px; }

@keyframes slide-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1180px) {
    .hero { grid-template-columns: 1fr 240px; }
    .metrics { grid-template-columns: repeat(2,1fr); }
    .review-card summary { grid-template-columns: 90px 1fr 150px 24px; }
    .quick-facts { display: none; }
    .decision { grid-template-columns: 1fr 1.5fr; }
    .decision-actions { grid-column: 1/-1; justify-content: flex-end; }
}
@media (max-width: 850px) {
    .sidebar { width: min(82vw,285px); transform: translateX(-105%); transition: transform .2s ease; }
    body.menu-open { overflow: hidden; }
    body.menu-open .sidebar { transform: translateX(0); }
    .backdrop { position: fixed; inset: 0; z-index: 45; display: block; pointer-events: none; background: rgba(10,25,19,.52); opacity: 0; transition: opacity .2s; }
    body.menu-open .backdrop { pointer-events: auto; opacity: 1; }
    main { width: 100%; margin-left: 0; padding: 0 20px 24px; }
    .title-group button { display: block; }
    .hero { grid-template-columns: 1fr; }
    .hero aside { display: none; }
    .queue-tools { align-items: stretch; flex-direction: column; }
    .search { min-width: 0; }
    .review-card summary { grid-template-columns: 85px 1fr 23px; }
    .review-card summary .status { grid-column: 2; }
    .evaluations { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
    main { padding: 0 13px 20px; }
    .topbar { min-height: 84px; }
    .admin-identity > div { display: none; }
    .title-group h1 { font-size: 23px; }
    .hero { min-height: 275px; padding: 29px 24px; }
    .hero h2 { font-size: 31px; }
    .hero p { font-size: 12px; }
    .metrics { gap: 9px; }
    .metrics article { min-height: 140px; padding: 16px; }
    .queue { padding: 20px 13px; }
    .section-title { align-items: flex-start; }
    .review-card summary { grid-template-columns: 72px 1fr 20px; gap: 9px; padding: 14px 12px; }
    .outlet > span { display: none; }
    .status > small { display: none; }
    .review-body { padding: 0 12px 13px; }
    .report-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .report-meta > a { margin: 0; }
    .decision { display: flex; align-items: stretch; flex-direction: column; }
    .decision-actions { display: grid; grid-template-columns: 1fr 1fr; }
    footer { align-items: center; flex-direction: column; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto!important; animation-duration: .01ms!important; transition-duration: .01ms!important; } }
