@import "https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap";

/* src/style.css */
:root {
  color: #151a17;
  background: #f4f1e8;
  font-family:
    "Manrope",
    system-ui,
    sans-serif;
  font-synthesis: none;
  --ink: #151a17;
  --muted: #68706a;
  --line: #d5d2c8;
  --paper: #fbfaf5;
  --acid: #d9ff4f;
  --blue: #2254d8;
  --danger: #b92f22;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #f4f1e8;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  border-radius: 0;
}
[hidden] {
  display: none !important;
}
.eyebrow {
  margin: 0;
  color: var(--blue);
  font: 500 10px/1.3 "DM Mono", monospace;
  letter-spacing: .13em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 30px;
  background: var(--ink);
  color: var(--acid);
  font: 500 13px/1 "DM Mono", monospace;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(430px, .8fr);
  background:
    linear-gradient(rgba(21, 26, 23, .032) 1px, transparent 1px),
    linear-gradient(
      90deg,
      rgba(21, 26, 23, .032) 1px,
      transparent 1px),
    #f4f1e8;
  background-size: 32px 32px;
}
.login-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 9vw, 140px);
}
.login-brand .brand-mark {
  margin-bottom: 72px;
}
.login-brand h1 {
  max-width: 820px;
  margin: 18px 0 24px;
  font-size: clamp(58px, 7vw, 100px);
  line-height: .94;
  letter-spacing: -.072em;
}
.login-brand > p:last-child {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.login-card {
  align-self: center;
  width: min(500px, calc(100% - 64px));
  padding: 36px;
  background: var(--ink);
  color: white;
  box-shadow: 10px 10px 0 var(--acid);
}
.login-card h2 {
  margin: 10px 0 28px;
  font-size: 40px;
  letter-spacing: -.05em;
}
.login-card .eyebrow {
  color: var(--acid);
}
.field {
  display: block;
  margin-top: 16px;
}
.field > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
.login-card .field > span {
  color: #aab1ab;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  outline: none;
  background: white;
  color: var(--ink);
  font-size: 12px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(34, 84, 216, .13);
}
.code-field {
  font: 400 10px/1.65 "DM Mono", monospace !important;
}
.primary-button,
.secondary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}
.primary-button {
  background: var(--ink);
  color: white;
}
.secondary-button {
  background: transparent;
  color: var(--ink);
}
.login-card .primary-button {
  width: 100%;
  margin-top: 24px;
  background: var(--acid);
  color: var(--ink);
}
.primary-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--acid);
}
.local-note {
  margin: 16px 0 0;
  color: #7e867f;
  font: 400 9px/1.5 "DM Mono", monospace;
}
.form-status {
  margin: 15px 0 0;
  padding: 11px;
  border: 1px solid #9db45e;
  background: #eef8d0;
  color: var(--ink);
  font-size: 11px;
}
.form-status.error {
  border-color: #e4a7a1;
  background: #fff0ed;
  color: var(--danger);
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  background: var(--ink);
  color: white;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: white;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}
.sidebar .brand-mark {
  background: var(--acid);
  color: var(--ink);
}
.sidebar nav {
  display: grid;
  gap: 5px;
  margin-top: 68px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 15px 13px;
  border: 1px solid transparent;
  background: transparent;
  color: #a9b1aa;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
}
.nav-item span {
  font: 500 11px "DM Mono", monospace;
}
.nav-item.active {
  border-color: #3c423e;
  background: #242a26;
  color: var(--acid);
}
.sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #3c423e;
}
.sidebar-footer > span {
  display: block;
  color: #717972;
  font: 400 8px "DM Mono", monospace;
}
.sidebar-footer strong {
  display: block;
  margin-top: 8px;
  color: var(--acid);
  font-size: 14px;
}
.sidebar-footer p {
  margin: 8px 0 0;
  overflow: hidden;
  color: #aab1ab;
  font: 400 9px/1.6 "DM Mono", monospace;
  text-overflow: ellipsis;
}
.sidebar-footer button {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8e968f;
  cursor: pointer;
  font-size: 10px;
  text-decoration: underline;
}
.workspace {
  min-width: 0;
  padding: 38px clamp(24px, 4vw, 64px) 72px;
  background:
    linear-gradient(rgba(21, 26, 23, .028) 1px, transparent 1px),
    linear-gradient(
      90deg,
      rgba(21, 26, 23, .028) 1px,
      transparent 1px),
    #f4f1e8;
  background-size: 32px 32px;
}
.workspace-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.workspace-head h1 {
  margin: 8px 0 0;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1;
  letter-spacing: -.06em;
}
.head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.head-actions span {
  color: var(--muted);
  font: 500 9px "DM Mono", monospace;
}
.head-actions button {
  padding: 11px 14px;
  border: 1px solid var(--ink);
  background: var(--acid);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}
.notice {
  display: grid;
  gap: 5px;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid #9db45e;
  background: #eef8d0;
}
.notice strong {
  font-size: 13px;
}
.notice span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}
.management-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1.05fr) minmax(430px, .95fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}
.table-panel,
.editor-panel {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--paper);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
.panel-head strong,
.panel-head span {
  font: 500 10px "DM Mono", monospace;
}
.panel-head span {
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  padding: 12px 14px;
  background: #efede6;
  color: var(--muted);
  font: 500 10px "DM Mono", monospace;
  text-align: left;
}
td {
  padding: 15px 14px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
  font-size: 12px;
}
td strong,
td small {
  display: block;
}
td small {
  max-width: 260px;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font: 400 9px "DM Mono", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
td code {
  font: 400 10px "DM Mono", monospace;
}
.status-chip {
  display: inline-block;
  padding: 5px 7px;
  border: 1px solid var(--line);
  background: #efede6;
  font: 500 9px "DM Mono", monospace;
  white-space: nowrap;
}
.status-chip.published {
  border-color: #9db45e;
  background: #eef8d0;
}
.status-chip.pending_review {
  border-color: #d5a45b;
  background: #fff0d3;
}
.row-actions {
  white-space: nowrap;
}
.row-actions button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.row-actions button + button {
  margin-left: 10px;
}
.empty-row {
  padding: 50px 20px;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
}
.editor-panel {
  padding-bottom: 18px;
}
.editor-panel > .field,
.editor-panel > .field-pair,
.editor-actions,
.editor-panel > .form-status,
.submit-review {
  margin-right: 18px;
  margin-left: 18px;
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field-pair.narrow-wide {
  grid-template-columns: 110px 1fr;
}
.contract-panel,
.settlement-panel,
.credential-panel,
.test-panel {
  margin: 20px 18px 0;
  padding: 0 14px 14px;
  border: 1px solid var(--line);
  background: #f5f3ec;
}
.settlement-panel {
  border-color: var(--ink);
  background: #f3f7de;
}
.credential-panel {
  border-color: var(--blue);
  background: #eef4ff;
}
.test-panel {
  background: #efede6;
}
.contract-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0 10px;
  border-bottom: 1px solid var(--line);
}
.contract-head > div {
  display: grid;
  gap: 3px;
}
.contract-head strong,
.contract-head span {
  font: 500 9px "DM Mono", monospace;
}
.contract-head span {
  color: var(--muted);
}
.contract-head button {
  padding: 6px 8px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 9px;
}
.settlement-state {
  padding: 5px 7px;
  border: 1px solid #9db45e;
  background: var(--acid);
  color: var(--ink) !important;
}
.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 11px;
  border: 1px solid var(--line);
  background: white;
  font-size: 10px;
  font-weight: 700;
}
.toggle input {
  accent-color: var(--blue);
}
.credential-panel > .secondary-button,
.test-panel > .secondary-button {
  width: 100%;
  justify-content: center;
  margin-top: 14px;
  background: white;
}
#simulation-result {
  max-height: 300px;
  margin: 14px 0 0;
  padding: 13px;
  overflow: auto;
  border: 1px solid #3c423e;
  background: var(--ink);
  color: #d9e0da;
  font: 400 10px/1.6 "DM Mono", monospace;
  white-space: pre-wrap;
}
.editor-actions {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  margin-top: 22px;
}
.submit-review {
  width: calc(100% - 36px);
  min-height: 44px;
  margin-top: 10px;
  border: 1px solid var(--blue);
  background: #eef4ff;
  color: var(--blue);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}
.finance-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.finance-stats article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.finance-stats span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
.finance-stats strong {
  display: block;
  margin-top: 9px;
  overflow: hidden;
  font-size: 24px;
  letter-spacing: -.04em;
  text-overflow: ellipsis;
}
.finance-stats strong b {
  font-size: 28px;
}
.finance-stats .accent {
  background: var(--ink);
  color: white;
}
.finance-stats .accent span {
  color: #aab1ab;
}
.finance-stats .accent strong {
  color: var(--acid);
}
.finance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
@media (max-width: 1120px) {
  .management-grid,
  .finance-grid {
    grid-template-columns: 1fr;
  }
  .editor-panel {
    order: -1;
  }
}
@media (max-width: 760px) {
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-brand {
    padding: 42px 24px 20px;
  }
  .login-brand .brand-mark {
    margin-bottom: 34px;
  }
  .login-brand h1 {
    font-size: 52px;
  }
  .login-card {
    width: calc(100% - 48px);
    margin: 24px;
  }
  .app-shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 18px;
  }
  .sidebar nav {
    grid-template-columns: 1fr 1fr;
    margin-top: 22px;
  }
  .sidebar-footer {
    margin-top: 18px;
  }
  .workspace {
    padding: 26px 16px 48px;
  }
  .workspace-head {
    align-items: flex-start;
  }
  .workspace-head h1 {
    font-size: 42px;
  }
  .head-actions {
    align-items: flex-end;
    flex-direction: column;
  }
  .field-pair,
  .field-pair.narrow-wide,
  .finance-stats {
    grid-template-columns: 1fr;
  }
  .management-grid {
    display: block;
  }
  .editor-panel {
    margin-top: 16px;
  }
}
/*# sourceMappingURL=app.css.map */
