:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #192b23;
  background: #f2f3ec;
  --green: #235742;
  --border: #d8dfd3;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
  padding: .65rem max(1.25rem, calc((100% - 74rem) / 2));
  background: #192b23;
  color: #f5f7ef;
}
.brand { color: inherit; text-decoration: none; font-weight: 800; font-size: 1.3rem; white-space: nowrap; }
.brand span { color: #b9df9c; font-weight: 500; }
.account { display: flex; align-items: center; gap: 1rem; min-width: 0; }
#email { overflow: hidden; text-overflow: ellipsis; }
main { width: min(100% - 2.5rem, 74rem); margin: 2rem auto 4rem; }
.access { display: grid; grid-template-columns: 1.2fr 1fr; align-items: stretch; gap: 1rem; max-width: 60rem; margin: clamp(1rem, 9vw, 7rem) auto 0; }
.access-intro {
  border-radius: 1.15rem;
  padding: clamp(1.8rem, 5vw, 4rem);
  background: radial-gradient(ellipse at 90% 10%, #37674e, transparent 65%), #192b23;
  color: #f5f7ef;
  display: grid;
  align-content: center;
}
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.08; letter-spacing: -.055em; }
h2 { font-size: 1.3rem; letter-spacing: -.025em; }
.access-intro p { margin-top: 1.15rem; max-width: 29ch; color: #dce9d7; line-height: 1.55; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 1rem; padding: 1.2rem; min-width: 0; }
#credentials { padding: clamp(1.35rem, 4vw, 2.5rem); align-content: center; }
form { display: grid; gap: 1rem; }
label { display: grid; gap: .4rem; min-width: 0; font-size: .875rem; font-weight: 650; }
input, select, button { font: inherit; border-radius: .55rem; padding: .66rem .75rem; min-width: 0; }
input, select { width: 100%; background: #fbfcf9; border: 1px solid var(--line, rgba(59, 58, 166, 0.14)); color: inherit; }
button { border: 1px solid transparent; background: var(--green); color: white; font-weight: 650; width: fit-content; cursor: pointer; }
button:hover:not(:disabled) { filter: brightness(1.15); }
button:disabled { opacity: .58; cursor: default; }
.secondary { border-color: #a6b9ac; background: transparent; }
:focus-visible { outline: 3px solid #598848; outline-offset: 3px; }
.message { color: #345a46; line-height: 1.45; overflow-wrap: anywhere; }
.message:empty { display: none; }
.message[data-error="true"] { color: #9d3422; }
#workspace { display: grid; gap: 1rem; }
.price-nav {display:flex; flex-wrap:wrap; gap:.4rem; background:#1e342b; color:white; padding:.65rem; border-radius:.65rem;}
.price-nav a {color:inherit; padding:.65rem; text-decoration:none; border-radius:.4rem;}
.price-nav a[aria-current] {background:#385342; font-weight:700;}
.import-preview {max-width:min(40rem,94vw); max-height:85vh; color:#192b23; border:1px solid #b5c6b7; border-radius:.8rem; padding:1.4rem;}
.import-preview p,.import-preview button {margin:.65rem .5rem .2rem 0;}
.documents ul { display: grid; gap: .55rem; margin: .8rem 0 0; padding-left: 1.2rem; }
.documents a { color: var(--green); font-weight: 650; overflow-wrap: anywhere; }
.filters { display: grid; grid-template-columns: 1fr 1fr auto; gap: .85rem; align-items: end; }
.operations { display: grid; gap: .75rem; }
summary { cursor: pointer; font-weight: 700; width: fit-content; }
details form { margin-top: 1rem; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr)); gap: .85rem; }
fieldset { border: 1px solid var(--border); border-radius: .6rem; padding: .85rem; }
legend { padding: 0 .35rem; }
.prices > p { margin-top: .75rem; }
.prices > p:empty { display: none; }
.table-scroll { overflow-x: auto; margin-top: .8rem; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--border); }
th { background: #f2f5ef; }
th:nth-child(n+3), td:nth-child(n+3) { text-align: right; white-space: nowrap; }
@media (max-width: 650px) {
  .access, .filters { grid-template-columns: 1fr; }
  .access-intro br { display: none; }
  .account { gap: .5rem; font-size: .85rem; }
}
