:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #162c42;
  background: #f5f7fb;
  font-synthesis: none;
  --navy: #0b2035;
  --navy-2: #0d3448;
  --teal: #08a99f;
  --teal-bright: #22cfc1;
  --orange: #f28a1a;
  --ink: #102c42;
  --muted: #63778a;
  --line: #dce5ec;
  --surface: #ffffff;
  --soft: #eef5f7;
  --danger: #a73b3b;
  --success: #147266;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #f5f7fb; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #5fded4; outline-offset: 2px; }
[hidden] { display: none !important; }

.site-header {
  min-height: 90px; padding: 12px max(24px, calc((100vw - 1260px) / 2));
  background: var(--navy); color: #fff; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; box-shadow: 0 8px 24px #07192a24;
}
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 15px; min-width: 0; }
.brand img { width: 172px; height: 64px; object-fit: contain; object-position: left center; }
.brand strong { display: block; font-size: 18px; letter-spacing: -.035em; }
.brand small { color: #a7c3cf; display: block; font-size: 11px; margin-top: 3px; }
.header-actions { display: flex; gap: 10px; align-items: center; }

main { max-width: 1260px; margin: 0 auto; padding: 28px 28px 72px; min-height: calc(100vh - 160px); }
.tabs { display: flex; gap: 7px; padding: 6px; background: #fff; border: 1px solid #e4eaf0; border-radius: 14px; margin-bottom: 26px; box-shadow: 0 5px 20px #153b4e08; overflow-x: auto; }
.tabs button { white-space: nowrap; flex: 1; background: transparent; color: #526779; border: 0; padding: 13px 14px; border-radius: 10px; font-size: 13px; font-weight: 750; }
.tabs button.active { background: var(--navy-2); color: #fff; }
.tabs button:hover:not(.active) { background: #f1f7f8; }

.hero { background: linear-gradient(115deg, #0b253d, #10576a); border-radius: 22px; padding: 43px 46px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 20px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -90px; top: -145px; width: 410px; height: 410px; border: 1px solid #ffffff2b; border-radius: 50%; box-shadow: 0 0 0 55px #ffffff08, 0 0 0 110px #ffffff05; }
.hero h1 { color: #fff; font-size: clamp(32px, 4vw, 50px); max-width: 680px; margin-bottom: 14px; }
.hero p { color: #d0e7e9; max-width: 670px; font-size: 15px; margin-bottom: 0; }
.hero-mark { position: relative; z-index: 1; width: 92px; height: 92px; display: grid; place-items: center; border: 1px solid #75d7d1; border-radius: 28px; color: #58e2d8; font-size: 55px; font-weight: 250; transform: rotate(-4deg); }
.eyebrow { display: block; font-size: 10px; color: #56d3cb; letter-spacing: .14em; font-weight: 850; margin-bottom: 6px; }
.eyebrow.dark { color: #168a89; }
.info-strip { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 20px; }
.info-strip span { background: #e8f5f5; color: #236776; border: 1px solid #d7e9ea; padding: 9px 13px; border-radius: 50px; font-size: 12px; font-weight: 700; }

.panel { background: #fff; border: 1px solid #e4eaf0; border-radius: 18px; padding: 30px; margin-bottom: 20px; box-shadow: 0 10px 35px #12314908; }
.narrow-panel { max-width: 560px; margin: 20px auto; }
.search-panel { display: grid; grid-template-columns: minmax(230px, .78fr) 1.4fr; gap: 40px; align-items: end; }
.search-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
h1, h2, h3 { color: var(--ink); letter-spacing: -.04em; line-height: 1.18; }
h1 { font-size: clamp(28px, 3vw, 38px); margin: 0 0 12px; }
h2 { font-size: 22px; margin: 0 0 16px; }
h3 { font-size: 17px; margin: 0 0 12px; }
p { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 7px 0 20px; }

.field { margin-bottom: 17px; }
.field label { display: block; color: #3a5266; font-size: 12px; font-weight: 780; margin-bottom: 8px; }
.field small { display: block; color: #7a8b99; font-size: 11px; margin-top: 6px; line-height: 1.45; }
input, select, textarea { width: 100%; color: #19364b; background: #fbfcfe; border: 1px solid #d5e0e8; border-radius: 10px; padding: 12px 13px; min-height: 46px; }
textarea { min-height: 95px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #9babb7; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }

.primary-button, .secondary-button, .accent-button, .ghost-button, .danger-button { border: 0; border-radius: 10px; padding: 12px 17px; font-weight: 780; font-size: 13px; min-height: 43px; }
.primary-button { background: var(--navy-2); color: #fff; box-shadow: 0 6px 16px #0d344826; }
.primary-button:hover { background: #15526a; }
.secondary-button { color: #23465a; background: #edf4f5; border: 1px solid #d3e3e5; }
.accent-button { color: #092638; background: #57d8cf; }
.ghost-button { color: #d9ecee; background: transparent; border: 1px solid #456174; }
.danger-button { color: #fff; background: var(--danger); }
.small-button { padding: 8px 11px; min-height: 34px; font-size: 11px; }
.full { width: 100%; }
.text-button { padding: 0; border: 0; background: transparent; color: #087d7b; font-weight: 750; text-decoration: underline; }
.icon-button { border: 0; background: #edf3f5; width: 38px; height: 38px; border-radius: 50%; font-size: 25px; line-height: 1; color: #4c6475; }
.microcopy { text-align: center; font-size: 12px; }

.flash { position: sticky; top: 12px; z-index: 20; margin: 0 auto 16px; max-width: 760px; padding: 12px 16px; border: 1px solid #c9dfdf; border-radius: 12px; background: #e9f6f4; color: #145e59; box-shadow: 0 8px 28px #0b203522; font-size: 13px; font-weight: 700; }
.flash.error { color: #8f2d2d; background: #fff0ef; border-color: #efc8c4; }
.notice { border-radius: 12px; padding: 14px 16px; margin-top: 16px; font-size: 13px; line-height: 1.55; }
.notice.success { background: #e8f6f1; color: #146b5c; border: 1px solid #c8e9df; }
.notice.warning { background: #fff7e7; color: #7d5720; border: 1px solid #edd7ad; }

.app-topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.app-topbar h1 { margin-bottom: 3px; }
.app-topbar p { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid #e2e9ee; border-radius: 15px; padding: 20px; box-shadow: 0 8px 24px #153b4e08; }
.stat b { display: block; font-size: 27px; color: #12374c; letter-spacing: -.05em; }
.stat span { display: block; margin-top: 5px; color: #718494; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.panel-head p { margin: -8px 0 0; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; }

.table-wrap { width: 100%; overflow-x: auto; border: 1px solid #e4eaf0; border-radius: 12px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; background: #fff; }
th, td { padding: 12px 13px; border-bottom: 1px solid #e9eef2; text-align: left; vertical-align: top; font-size: 12px; }
th { color: #607688; background: #f7fafb; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
tbody tr:last-child td { border-bottom: 0; }
.pill { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; background: #e7f5f3; color: #176a65; font-size: 10px; font-weight: 800; white-space: nowrap; }
.pill.pending { background: #fff2d9; color: #825a16; }
.pill.rejected, .pill.disabled { background: #fbe6e5; color: #963b3b; }
.pill.released { background: #edf1f4; color: #657886; }
.muted { color: #7c8d9a; }
.empty { color: #738897; text-align: center; padding: 35px 12px !important; }

dialog { width: min(880px, calc(100vw - 30px)); max-height: calc(100vh - 40px); border: 0; border-radius: 18px; padding: 26px; box-shadow: 0 25px 80px #06152555; }
dialog::backdrop { background: #081c2d9c; backdrop-filter: blur(3px); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.photo-grid figure { margin: 0; border: 1px solid #dde6ec; border-radius: 12px; overflow: hidden; background: #f5f7f9; }
.photo-grid img { display: block; width: 100%; height: 270px; object-fit: contain; }
.photo-grid figcaption { padding: 9px 11px; font-size: 11px; color: #647a8a; }

footer { min-height: 68px; padding: 18px max(28px, calc((100vw - 1260px) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 20px; color: #748795; border-top: 1px solid #dce5eb; background: #edf2f5; font-size: 11px; }

@media (max-width: 900px) {
  .brand span { display: none; }
  .search-panel { grid-template-columns: 1fr; gap: 10px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-header { min-height: 72px; padding: 9px 14px; }
  .brand img { width: 126px; height: 49px; }
  .header-actions .ghost-button { display: none; }
  .header-actions button { padding: 9px 11px; font-size: 11px; }
  main { padding: 16px 13px 58px; }
  .public-tabs { margin-bottom: 15px; }
  .tabs button { padding: 11px 12px; }
  .hero { padding: 30px 23px; border-radius: 17px; }
  .hero-mark { display: none; }
  .hero h1 { font-size: 32px; }
  .panel { padding: 21px 18px; border-radius: 15px; }
  .search-form, .form-grid, .form-grid.three { display: block; }
  .span-2 { grid-column: auto; }
  .search-form .primary-button { width: 100%; }
  .app-topbar { align-items: flex-start; }
  .app-topbar .secondary-button { padding: 9px 11px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .stat { padding: 15px 13px; }
  .stat b { font-size: 23px; }
  .panel-head { display: block; }
  .panel-head .button-row { margin-top: 12px; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-grid img { height: 220px; }
  footer { display: block; padding: 18px; text-align: center; }
  footer span { display: block; margin: 4px 0; }
}
