@charset "UTF-8";
:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #25332d;
  background: #f2f5f3;
  font-size: 16px;
  --muted: #637269;
  --ink: #25332d;
  --line: #dce4de;
  --brand: #173f35;
  --paper: #fff;
  --wine: #8a2940;
  --cream: #f2f5f3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  letter-spacing: -0.04em;
}
h2 {
  font-size: 1.15rem;
}
p {
  line-height: 1.6;
}
small {
  display: block;
  font-size: 0.875rem;
  color: #637269;
  line-height: 1.45;
}
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  font-weight: 750;
  color: #637269;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 650;
  margin-bottom: 18px;
}
input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd7cf;
  border-radius: 9px;
  min-height: 46px;
  background: #fff;
  color: #25332d;
}
input[type='checkbox'],
input[type='radio'] {
  width: 20px;
  min-height: 20px;
  accent-color: #173f35;
}
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #83b99e66;
  border-color: #317156;
}
button,
.btn {
  min-height: 44px;
  border: 1px solid #cbd7cf;
  border-radius: 9px;
  padding: 10px 15px;
  background: #fff;
  color: #25332d;
  font-weight: 650;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.primary,
.market-primary {
  background: #173f35 !important;
  color: white !important;
  border-color: #173f35 !important;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 16px;
}
.form-grid label {
  margin-bottom: 0;
}
.error {
  color: #aa263f;
  font-size: 0.95rem;
}
.help {
  font-size: 0.875rem;
  color: #637269;
}
.loading {
  max-width: 700px;
  margin: 20vh auto;
  padding: 24px;
  text-align: center;
}
.skip {
  position: absolute;
  left: -10000px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 50;
  background: #fff;
  padding: 12px;
}
.app-header {
  min-height: 88px;
  padding: 16px max(24px, calc((100vw - 1320px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #173f35;
  color: #fff;
  border-bottom: 4px solid #c39954;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 750;
}
.brand small {
  font-size: 0.65rem;
  letter-spacing: 0.13em;
  color: #cee0d3;
  margin-top: 5px;
}
.app-header nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
}
.app-header nav a {
  text-decoration: none;
}
.logout {
  background: transparent;
  color: white;
  border-color: #ffffff50;
  font-size: 0.875rem;
}
.app-main {
  padding: 30px 24px 60px;
  max-width: 1320px;
  margin: auto;
  min-height: 75vh;
}
.app-footer {
  font-size: 0.8rem;
  color: #637269;
  padding: 24px;
  text-align: center;
  border-top: 1px solid #dde5df;
}
.app-footer span {
  display: block;
  margin-top: 6px;
}
.panel {
  background: #fff;
  border: 1px solid #dce4de;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
}
.narrow {
  max-width: 660px;
  margin: auto;
}
.back {
  font-size: 0.9rem;
}
.panel h1 {
  margin-top: 12px;
}
.account-list details {
  border: 1px solid #dce4de;
  border-radius: 10px;
  margin: 12px 0;
  overflow: hidden;
}
.account-list summary {
  padding: 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.account-list summary span {
  color: #637269;
  font-size: 0.85rem;
}
.account-list form {
  padding: 20px;
  border-top: 1px solid #dce4de;
}
.account-list textarea {
  margin-top: 12px;
}
.document-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 14px;
  margin-top: 26px;
}
.document {
  justify-content: space-between;
  padding: 18px;
  text-align: left;
}
.document span {
  font-size: 0.8rem;
  color: #637269;
}
.empty-state {
  color: #637269;
}
.login-page {
  max-width: 1120px;
  min-height: 100vh;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 80px;
  padding: 48px 30px;
}
.login-intro h1 {
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
  color: #173f35;
}
.login-intro > p:not(.eyebrow) {
  max-width: 440px;
  color: #637269;
  font-size: 1.05rem;
}
.login-logo {
  margin-bottom: 30px;
}
.login-dates {
  margin-top: 38px;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  color: #173f35;
}
.login-dates span {
  display: block;
  letter-spacing: 0;
  font-weight: 450;
  margin-top: 9px;
  font-size: 0.95rem;
  color: #637269;
}
.login-card {
  padding: 36px;
  background: #fff;
  border: 1px solid #dce4de;
  border-radius: 20px;
  box-shadow: 0 22px 70px #173f350b;
}
.login-card h2 {
  font-size: 1.7rem;
  margin: 10px 0;
}
.login-card > p:not(.eyebrow) {
  color: #637269;
}
.login-card form {
  margin-top: 28px;
}
.login-card .primary {
  width: 100%;
}
.login-card .help {
  margin-top: 26px;
  font-size: 0.85rem;
}
#message {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  background: #173f35;
  color: #fff;
  padding: 15px 20px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 50;
}
#message.visible {
  opacity: 1;
}
dialog {
  border: 1px solid #cbd7cf;
  border-radius: 14px;
  max-width: 90vw;
  width: 700px;
  padding: 26px;
}
dialog pre {
  white-space: pre-wrap;
  font: inherit;
  line-height: 1.6;
}
.dialog-close {
  float: right;
}
.market table {
  width: 100%;
  border-collapse: collapse;
}
.market td,
.market th {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #e4e9e5;
}
.market .market-muted {
  font-size: 0.875rem;
}
.market .market-fields {
  align-items: end;
}
.market .market-fields label {
  min-width: 0;
}
.market-nav a {
  font-size: 0.9rem;
}
.market-form-error:empty {
  display: none;
}
.market .market-card p {
  margin: 10px 0;
}
.market .market-card small {
  font-weight: 400;
}
.market summary {
  cursor: pointer;
  min-height: 44px;
  padding: 10px 0;
}
@media (max-width: 680px) {
  .app-header {
    padding: 13px 16px;
    gap: 12px;
    flex-wrap: wrap;
    min-height: 76px;
  }
  .brand {
    font-size: 0.96rem;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .brand small {
    font-size: 0.58rem;
  }
  .app-header nav {
    width: 100%;
    justify-content: flex-end;
    gap: 18px;
    font-size: 0.85rem;
  }
  .logout {
    padding: 7px 10px;
    min-height: 36px;
  }
  .app-main {
    padding: 22px 14px 42px;
  }
  .panel {
    padding: 20px;
  }
  .login-page {
    display: block;
    padding: 30px 18px;
    min-height: 100svh;
  }
  .login-logo {
    display: none;
  }
  .login-intro h1 {
    font-size: 2rem;
    line-height: 1.12;
    margin: 10px 0 16px;
  }
  .login-intro h1 br:nth-of-type(2) {
    display: none;
  }
  .login-intro > p:not(.eyebrow) {
    display: none;
  }
  .login-dates {
    display: none;
  }
  .login-card {
    padding: 24px;
    margin-top: 26px;
    border-radius: 15px;
  }
  .login-card h2 {
    font-size: 1.5rem;
  }
  .login-card .eyebrow {
    font-size: 0.7rem;
  }
  .account-list summary {
    display: block;
  }
  .account-list summary span {
    display: block;
    margin-top: 6px;
  }
  .account-list form {
    padding: 15px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .app-footer {
    font-size: 0.75rem;
  }
  .market .market-heading {
    display: block;
  }
  .market .market-actions {
    margin-top: 15px;
  }
  .market .market-nav {
    margin-right: -14px;
  }
  .market .market-line {
    min-width: 0;
  }
}
@media print {
  .app-header,
  .app-footer,
  #message,
  .market-nav,
  .market-actions {
    display: none !important;
  }
  .app-main {
    padding: 0;
    max-width: none;
  }
  body {
    background: #fff;
  }
}
