:root {
  --ink: #263139;
  --muted: #727b80;
  --green: #795b2d;
  --green2: #624923;
  --paper: #f3f3f0;
  --surface: #fffefa;
  --line: #dfe2df;
  --wash: #eeece5;
  --danger: #a34332;
  --gold: #9c722c;
  --radius: 10px;
  --shadow: 0 12px 40px #192d2312;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  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.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #b79b63;
  outline-offset: 3px;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #a18350;
  box-shadow: 0 0 0 3px #a183501a;
}
a {
  color: var(--green);
}
p {
  line-height: 1.65;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 600;
  margin-bottom: 10px;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
  font-weight: 600;
}
h3 {
  font-size: 14px;
  font-weight: 650;
  margin: 0 0 12px;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
}
svg {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
}
.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 12px;
  background: white;
  z-index: 999;
}
.skip:focus {
  top: 12px;
}
[hidden] {
  display: none !important;
}
.boot {
  display: grid;
  place-items: center;
  min-height: 100vh;
  align-content: center;
  gap: 20px;
}
.brandmark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: #d9bd88;
  color: #30291f;
  border-radius: 10px;
  font-size: 25px;
  font-family: Georgia, serif;
  font-weight: bold;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.brand small {
  font-size: 10px;
  color: #a59f8f;
  letter-spacing: 1.3px;
  display: block;
  margin-top: 4px;
}
.shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 220px;
  background: #161d23;
  color: #ece5d8;
  display: flex;
  flex-direction: column;
  padding: 29px 22px;
  z-index: 30;
}
.sidebar .brand {
  margin-bottom: 54px;
}
.navgroup {
  margin: 24px 12px 10px;
  color: #868c8e;
  font-size: 10px;
  letter-spacing: 1.5px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  border: 0;
  background: transparent;
  color: #b2b8b8;
  padding: 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
}
.nav button:hover {
  background: #242e35;
  color: white;
}
.nav button.active {
  background: #d9bd88;
  color: #242219;
}
.nav .navcount {
  margin-left: auto;
  min-width: 19px;
  text-align: center;
  font-size: 10px;
}
.sidefoot {
  margin-top: auto;
  padding: 30px 10px 0;
}
.sidefoot p {
  font-size: 11px;
  color: #909a9e;
  line-height: 1.6;
  margin-bottom: 22px;
}
.signature {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 19px;
  color: #d8c49b;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  gap: 20px;
  background: #fffefa99;
}
.crumb {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.crumb span:last-child {
  color: var(--ink);
}
.topright {
  display: flex;
  align-items: center;
  gap: 20px;
}
.connection {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: #8e9a8c;
  display: inline-block;
}
.dot.online {
  background: #428065;
  box-shadow: 0 0 0 3px #42806515;
}
.userbtn {
  background: none;
  border: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink);
}
.avatar {
  width: 29px;
  height: 29px;
  border: 1px solid #d6d1c5;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #eee9de;
  font-size: 10px;
}
.content {
  padding: 36px 40px 52px;
  max-width: 1600px;
  margin: auto;
}
.pagehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.pagehead p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  max-width: 700px;
}
.pagehead h1 .muted {
  font-weight: 400;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  min-height: 38px;
}
.btn:hover {
  background: #f0eee7;
}
.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.btn.primary:hover {
  background: var(--green2);
}
.btn.danger {
  color: var(--danger);
  border-color: #e7ccc2;
  background: #fffaf7;
}
.btn.flat {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.btn.small {
  padding: 6px 9px;
  min-height: 30px;
  font-size: 11px;
}
.btn.icon {
  padding: 7px;
  min-width: 32px;
}
.buttonrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.full {
  width: 100%;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.panelhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 23px 25px;
  border-bottom: 1px solid var(--line);
}
.panelhead h2 {
  margin: 0;
}
.panelhead small {
  display: block;
  margin-top: 6px;
}
.panelbody {
  padding: 25px;
}
.panelnote {
  padding: 15px 25px;
  border-top: 1px solid var(--line);
  background: #fafaf5;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.number {
  font-size: 11px;
  color: #819279;
  border: 1px solid #d4dcca;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  margin-right: 9px;
}
.newgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(285px, 1fr);
  gap: 24px;
  align-items: start;
}
.tabs {
  display: flex;
  gap: 4px;
  background: #e9e9e3;
  border: 1px solid #deded6;
  padding: 4px;
  border-radius: 9px;
  width: fit-content;
  margin-bottom: 25px;
}
.tab {
  padding: 11px 24px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7276;
  display: flex;
  align-items: center;
  gap: 9px;
}
.tab.active {
  background: var(--surface);
  box-shadow: 0 2px 5px #314d2510;
  color: var(--green);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  min-width: 0;
}
.field > label,
.field > span.label {
  font-size: 11px;
  font-weight: 650;
  color: #424d53;
}
.field .help {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 400;
}
input,
select,
textarea {
  width: 100%;
  background: #fffefa;
  border: 1px solid #d4d9d8;
  border-radius: 6px;
  color: var(--ink);
  padding: 11px 12px;
  font-size: 12px;
  transition: border-color 0.15s;
  min-width: 0;
}
select {
  padding-right: 24px;
  cursor: pointer;
}
textarea {
  resize: vertical;
  line-height: 1.8;
  min-height: 120px;
}
textarea.message {
  min-height: 225px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  background: #f9faf8;
}
input::placeholder,
textarea::placeholder {
  color: #90999c;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.fields > .field {
  margin-bottom: 12px;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  margin: 12px 0;
  cursor: pointer;
}
.check input {
  width: 15px;
  height: 15px;
  accent-color: var(--green);
  box-shadow: none;
}
.sectionline {
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.info {
  padding: 13px 15px;
  border-radius: 7px;
  background: #eff2ee;
  color: #536453;
  font-size: 11px;
  line-height: 1.7;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.info.warn {
  background: #f5efe0;
  color: #846b3f;
}
.info.error {
  background: #faeee7;
  color: var(--danger);
}
.info p {
  margin: 0;
}
.field .help a {
  font-weight: 500;
}
.readyline {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #69766d;
  margin-bottom: 14px;
}
.readyline strong {
  font-weight: 600;
  color: #486344;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.summaryline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid #eceee9;
  font-size: 12px;
}
.summaryline:last-child {
  border: 0;
}
.summaryline > span:first-child {
  color: var(--muted);
}
.summaryline > span:last-child {
  max-width: 65%;
  text-align: right;
  overflow-wrap: anywhere;
}
.subheading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 34px 0 14px;
}
.subheading h2 {
  font-size: 16px;
  margin: 0;
}
.tablewrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
th {
  padding: 14px 20px;
  background: #f6f7f3;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #737c7c;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 17px 20px;
  border-bottom: 1px solid #eceee9;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
td strong {
  font-weight: 600;
}
td small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 4px;
  background: #e7efe7;
  color: #4d6a3e;
  padding: 5px 8px;
  line-height: 1;
  font-size: 10px;
  white-space: nowrap;
}
.badge.dim {
  background: #eeefe9;
  color: #7e8579;
}
.badge.warn {
  background: #f6ecd5;
  color: #997538;
}
.badge.error {
  background: #fae9e2;
  color: #a45c43;
}
.empty {
  text-align: center;
  padding: 42px 30px;
  color: var(--muted);
}
.empty svg {
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  color: #809277;
}
.empty h3 {
  font-size: 14px;
  color: #4b5e47;
  font-weight: 500;
  margin-bottom: 8px;
}
.empty p {
  font-size: 12px;
  margin-bottom: 18px;
}
.empty .btn {
  margin: auto;
}
.cardsgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.vaultcard {
  padding: 23px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.vaultcard .cardtop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.vaultcard h3 {
  margin: 0;
  font-size: 15px;
}
.carddigits {
  font-size: 22px;
  font-family: ui-monospace, Consolas, monospace;
  letter-spacing: 1.4px;
  margin: 0 0 20px;
}
.cardbottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 11px;
}
.cardbottom span {
  display: block;
  margin-bottom: 4px;
}
.cardactions {
  display: flex;
  gap: 5px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.toolstrip {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}
.toolstrip select {
  width: auto;
  min-width: 230px;
}
.rulepatterns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.rulepatterns code {
  font-size: 10px;
  padding: 4px 6px;
  background: #f0f0e9;
  border-radius: 4px;
  color: #6c705d;
}
.order {
  display: flex;
  align-items: center;
  gap: 2px;
}
.numberplain {
  width: 23px;
  color: #9ba391;
  font-size: 11px;
}
.settingsgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.login-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 40px;
  background: var(--surface);
}
.login-form {
  max-width: 350px;
  width: 100%;
}
.login-form .brand {
  margin-bottom: 56px;
}
.login-form .brandmark {
  background: var(--green);
  color: #e4edce;
}
.login-form h1 {
  font-size: 32px;
  margin-bottom: 12px;
}
.login-form p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 30px;
}
.login-form .signature {
  display: block;
  color: #839177;
  font-size: 18px;
  margin-top: 45px;
}
.login-right {
  background: #e1e8d7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 55px;
  position: relative;
  overflow: hidden;
}
.login-illustration {
  max-width: 390px;
  width: 100%;
}
.login-illustration h2 {
  font-family: Georgia, serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin-top: 38px;
}
.login-illustration p {
  font-size: 13px;
  color: #65775c;
  margin: 0;
}
.connection-diagram {
  border: 1px solid #cab787;
  border-radius: 14px;
  background: #eff2ee;
  padding: 26px;
  box-shadow: 18px 18px 0 #cbd6bc;
}
.diagramrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  border-bottom: 1px solid #d5ccb3;
  padding-bottom: 18px;
  margin-bottom: 18px;
}
.diagramrow:last-child {
  border: 0;
  margin: 0;
  padding: 0;
}
.diagramrow span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.diagramrow .badge {
  background: #d9e5cb;
}
.login-bottom {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #789065;
  position: absolute;
  bottom: 28px;
  left: 55px;
}
#toasts {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 300;
  width: min(500px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  border-radius: 9px;
  background: #263139;
  color: white;
  padding: 15px 20px;
  font-size: 12px;
  line-height: 1.65;
  box-shadow: var(--shadow);
  pointer-events: auto;
}
.toast.error {
  background: #8f4030;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  padding: 0;
  width: min(600px, calc(100vw - 30px));
  max-height: 90vh;
  box-shadow: 0 30px 120px #122c3b45;
}
dialog::backdrop {
  background: #151e2a80;
  backdrop-filter: blur(3px);
}
.modalhead {
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modalhead h2 {
  margin: 0;
  font-size: 20px;
}
.modalbody {
  padding: 25px 26px;
  max-height: 70vh;
  overflow-y: auto;
}
.modalfoot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 18px 26px;
  border-top: 1px solid var(--line);
  background: #f6f7f3;
}
.modalbody > .field:last-child {
  margin-bottom: 0;
}
.dialogerror {
  font-size: 12px;
  color: var(--danger);
  margin-bottom: 15px;
}
.drawer {
  position: fixed;
  z-index: 100;
  right: 0;
  top: 0;
  height: 100vh;
  width: min(650px, 100%);
  background: var(--surface);
  border-left: 1px solid #d4d7d1;
  box-shadow: -12px 0 70px #19312715;
  display: flex;
  flex-direction: column;
}
.drawerhead {
  padding: 25px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawerhead h2 {
  margin: 8px 0 0;
}
.drawerbody {
  padding: 25px 28px;
  overflow: auto;
  flex: 1;
}
.drawer .panel {
  margin-bottom: 20px;
}
.logs {
  font:
    11px/1.8 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  background: #f1f4ef;
  border: 1px solid #dce1d7;
  border-radius: 8px;
  padding: 15px;
  max-height: 340px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #596c4f;
}
.copyrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #e4e7de;
}
.copyrow:last-child {
  border: 0;
}
.copyrow small {
  display: block;
  font-size: 10px;
}
.copyrow span {
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.people-table td,
.people-table th {
  padding: 10px;
  font-size: 10px;
}
.people-table th {
  font-size: 8px;
}
.people-table input {
  width: 15px;
}
.drawer h3 {
  margin-top: 20px;
}
.pairlink {
  min-height: 105px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.offline-label {
  font-size: 11px;
  color: var(--gold);
  margin: 0 0 14px;
}
.mobilemenu {
  display: none;
}
.split-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.spacer {
  flex: 1;
}
.errorbox {
  padding: 30px;
  background: #faeee5;
  color: #8d4d37;
  border: 1px solid #ead3bd;
  border-radius: 10px;
}
.inline-progress {
  font-size: 11px;
  color: #6b805f;
}
.no-margin {
  margin: 0;
}
.mb20 {
  margin-bottom: 20px;
}
.mt20 {
  margin-top: 20px;
}
.truncate {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.togglelabel {
  font-size: 11px;
  color: #738368;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 46px;
  }
  .newgrid {
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 185px;
    padding: 25px 15px;
  }
  .shell {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .content {
    padding: 30px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .newgrid {
    grid-template-columns: minmax(0, 1.3fr) minmax(250px, 1fr);
    gap: 16px;
  }
  .panelbody {
    padding: 20px;
  }
  .panelhead {
    padding: 20px;
  }
  .panelnote {
    padding: 14px 20px;
  }
  .settingsgrid {
    grid-template-columns: 1fr;
  }
  .pagehead {
    align-items: flex-start;
  }
  .topright {
    gap: 12px;
  }
}
@media (max-width: 850px) {
  .newgrid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    width: 195px;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 0 100vmax #16332055;
  }
  .shell {
    display: block;
  }
  .topbar {
    height: 65px;
    padding: 0 20px;
  }
  .mobilemenu {
    display: inline-flex;
  }
  .crumb {
    display: none;
  }
  .topright {
    margin-left: auto;
  }
  .content {
    padding: 25px 20px;
  }
  .pagehead h1 {
    font-size: 26px;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-right {
    display: none;
  }
  .login-left {
    padding: 35px 24px;
  }
  .login-form .brand {
    margin-bottom: 45px;
  }
}
@media (max-width: 520px) {
  .fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .pagehead {
    flex-direction: column;
    gap: 16px;
  }
  .pagehead .btn {
    align-self: flex-start;
  }
  .toolstrip {
    flex-direction: column;
    align-items: stretch;
  }
  .toolstrip select {
    width: 100%;
  }
  .topbar .connection {
    font-size: 10px;
  }
  .tab {
    padding: 10px 15px;
  }
  .panelhead,
  .panelbody {
    padding: 18px;
  }
  .drawerhead,
  .drawerbody {
    padding: 20px;
  }
  .modalbody {
    padding: 20px;
  }
  .modalhead {
    padding: 18px 20px;
  }
  .userbtn .username {
    display: none;
  }
  h1 {
    font-size: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.advanced-fields {
  margin: 14px 0 22px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.advanced-fields summary {
  font-size: 12px;
  color: #5f7354;
  cursor: pointer;
  font-weight: 600;
}
.advanced-fields[open] summary {
  margin-bottom: 18px;
}

/* Citadel identity. Ornament stays in the frame; working surfaces stay quiet. */
.brandmark {
  background: transparent !important;
  border-radius: 0;
  width: 42px;
  height: 42px;
}
.brandmark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand strong {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.4px;
}
.sidebar {
  border-right: 1px solid #2b353b;
}
.sidebar .brand {
  margin-bottom: 38px;
}
.nav button {
  min-height: 44px;
}
.nav button.active {
  box-shadow: inset 3px 0 #f6dfb3;
}
.sidebar .signature {
  color: #d5bb89;
}
.sidefoot {
  border-top: 1px solid #30393e;
  padding-top: 22px;
}
.sidebar .sidefoot p {
  font-size: 11px;
}
.topbar {
  background: #fffefb;
  height: 70px;
}
.content {
  padding-top: 32px;
}
.panel {
  box-shadow: 0 2px 4px #24313b03;
}
h1 {
  font-size: 31px;
  letter-spacing: -1.1px;
}
.pagehead .eyebrow {
  margin-bottom: 12px;
  color: #89764f;
}
.overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-block: 1px solid var(--line);
  margin: 0 0 28px;
  background: #fffefa;
}
.overview-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 22px;
  border-right: 1px solid var(--line);
}
.overview-item:last-child {
  border: 0;
}
.overview-item > svg {
  color: #9c855c;
  width: 21px;
  height: 21px;
}
.overview-item strong {
  display: block;
  font-size: 22px;
  font-weight: 550;
  letter-spacing: -0.7px;
  font-variant-numeric: tabular-nums;
}
.overview-item span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.tabs {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  width: 100%;
}
.tab {
  padding: 12px 3px 15px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
}
.tab.active {
  border-color: #98743f;
  background: transparent;
  box-shadow: none;
}
.tab:hover {
  color: #785b30;
}
tr:hover td {
  background: #fafaf5;
}
.btn {
  transition:
    background 0.15s,
    border-color 0.15s;
}
.btn.primary {
  box-shadow: 0 2px 3px #4b33151a;
}
.btn:active {
  transform: translateY(1px);
}
.carddigits {
  color: #3d4c51;
}
.vaultcard {
  background: linear-gradient(135deg, #fffefa, #f1eee4);
}
.login {
  background: #12191e;
  grid-template-columns: minmax(390px, 0.85fr) 1.15fr;
}
.login-left {
  background: #151c21;
  color: #eae5d9;
  padding: 50px;
}
.login-form {
  max-width: 355px;
}
.login-form .brand {
  margin-bottom: 58px;
  color: #e3cfaa;
}
.login-form .brand strong {
  font-size: 26px;
}
.login-form .eyebrow {
  color: #bb9f6c;
}
.login-form h1 {
  font-size: 33px;
  font-weight: 500;
  letter-spacing: -1px;
}
.login-form p {
  color: #9ca8ae;
  line-height: 1.8;
}
.login-form .field > label {
  color: #c3c7c8;
  font-size: 12px;
}
.login-form input {
  background: #11181d;
  border-color: #3a444a;
  color: #f2e7d2;
  padding: 14px;
}
.login-form input:focus {
  border-color: #c9a86c;
  box-shadow: 0 0 0 3px #c9a86c15;
}
.login-form .btn.primary {
  background: #d0b17b;
  border-color: #dcc595;
  color: #201f1c;
  min-height: 48px;
}
.login-form .btn.primary:hover {
  background: #e1c590;
}
.login-form .signature {
  color: #c8ae7a;
}
.login-right {
  background: #151a20 url("/citadel.png") 76% center/cover no-repeat;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 64px 48px 78px;
}
.login-right::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #10171ef5 0%, #10171e30 55%, #10171e10);
}
.login-illustration {
  position: relative;
  max-width: 420px;
}
.login-illustration .eyebrow {
  color: #d2b27b;
}
.login-illustration h2 {
  color: #f2e2c5;
  margin: 16px 0 20px;
  font-size: 48px;
  line-height: 1.12;
}
.login-illustration p {
  color: #c0c7c6;
  font-size: 13px;
}
.login-bottom {
  color: #a9a38f;
  left: 48px;
}
.login-right .art-mark {
  height: 1px;
  width: 54px;
  background: #c7a365;
  margin-bottom: 24px;
}
@media (max-width: 1150px) {
  .overview-item {
    padding: 16px 12px;
    gap: 10px;
  }
  .brand strong {
    font-size: 17px;
  }
}
@media (max-width: 850px) {
  .login {
    display: block;
  }
  .login-left {
    min-height: 100vh;
    padding: 40px 24px;
  }
  .overview-item {
    padding: 15px;
  }
  .topbar {
    height: 65px;
  }
}
@media (max-width: 600px) {
  .overview {
    grid-template-columns: 1fr 1fr;
  }
  .overview-item:nth-child(2) {
    border: 0;
  }
  .overview-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .overview-item strong {
    font-size: 20px;
  }
}
