:root { font-family: Inter,system-ui,-apple-system,Segoe UI,sans-serif; color: #172638; background: #f3f6f9; }
* { box-sizing: border-box; }
body { margin: 0; }
button,input,select { font: inherit; }
button { cursor: pointer; }
.app { max-width: 1200px; margin: auto; padding: 24px 20px 60px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 24px; }
.logo { display: flex; gap: 12px; align-items: center; }
.symbol { background: #16344a; color: white; padding: 12px; border-radius: 15px; font-weight: 850; letter-spacing: -1px; }
.brand { font-weight: 800; font-size: 22px; }
.sub,.muted { color: #748191; font-size: 13px; }
.nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 23px; }
.grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 23px; }
.stat,.panel { background: white; border: 1px solid #e7edf3; border-radius: 17px; box-shadow: 0 4px 20px #172f4b09; }
.stat { padding: 19px; }
.stat strong { display: block; font-size: 29px; letter-spacing: -1px; margin: 7px 0; }
.stat .cap { font-size: 12px; color: #657688; }
.layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.panel { min-width: 0; padding: 22px; margin-bottom: 16px; }
.panel p { font-size: 13px; color: #738293; margin: 0 0 18px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; }
label { font-size: 12px; font-weight: 700; color: #506177; }
input,select { width: 100%; border: 1px solid #dce4eb; background: #fff; border-radius: 10px; padding: 12px 13px; min-height: 46px; color: #172638; outline: none; }
input:focus,select:focus { border-color: #3480ba; box-shadow: 0 0 0 3px #3480ba20; }
input[type=date] { min-width: 0; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th { font-size: 11px; text-transform: uppercase; color: #81909e; letter-spacing: .4px; background: #f8fafc; }
td,th { padding: 12px 10px; border-bottom: 1px solid #edf0f4; }
td { font-size: 13px; overflow-wrap: anywhere; }
.empty { text-align: center; color: #82909b; padding: 24px; }
.notice { margin-top: 20px; padding: 13px; background: #eaf0f5; border-radius: 12px; color: #536779; font-size: 12px; line-height: 1.5; }

@media (max-width: 720px) {
  .app { padding: 17px 13px 45px; }
  .top { margin-bottom: 18px; }
  .brand { font-size: 18px; }
  .grid { gap: 8px; }
  .stat { padding: 13px; }
  .stat strong { font-size: 21px; }
  .stat .cap { font-size: 11px; }
  .layout { grid-template-columns: 1fr; }
  .panel { padding: 17px; }
  .nav { gap: 4px; }
  .fields { grid-template-columns: 1fr; }
}

h1 { font-size: 1.35rem; margin: 0 0 .6rem; }
.nav a { text-decoration: none; color: #506177; font-weight: 650; border-radius: 11px; padding: 10px 13px; }
.nav a.active { color: white; background: #142e42; }
.login { max-width: 450px; margin: 2rem auto; }
.stack { display: grid; gap: 13px; }
.stack > button { justify-self: start; }
.stack.compact { margin-top: 8px; }
.account, .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.account span { font-size: .9rem; }
.primary, .secondary { border-radius: 10px; padding: 10px 15px; min-height: 44px; font-weight: 700; }
.primary { color: white; background: #142e42; border: 1px solid #142e42; }
.secondary { color: #142e42; background: #fff; border: 1px solid #a7b6c4; }
.notice { margin-bottom: 16px; padding: 12px 16px; background: #e3f4e9; border-radius: 10px; color: #205533; }
.notice.error { background: #fce9e9; color: #861d24; }
.table-wrap { overflow-x: auto; margin-top: 16px; }
.table-wrap table { width: 100%; min-width: 550px; }
.table-wrap small { color: #506177; }
.search { max-width: 420px; }
.empty, .pagination { margin-top: 16px !important; }
hr { border: 0; border-top: 1px solid #e2e8ef; margin: 20px 0; }
summary { cursor: pointer; color: #274e6c; }
code { overflow-wrap: anywhere; }
[hidden] { display: none !important; }
@media (max-width: 600px) {
  .app { padding: 14px 10px 40px; }
  .panel { padding: 14px; }
  .fields, .layout { grid-template-columns: minmax(0,1fr); }
  .top { flex-wrap: wrap; }
  .grid { gap: 6px; }
  .stat { padding: 9px; min-width: 0; }
  .nav a { padding: 10px; font-size: .9rem; }
  select, input { min-width: 0; }
}
