:root {
  font-family:
    Inter,
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans SC",
    sans-serif;
  color: #203330;
  background: #f6f7f3;
  font-synthesis: none;
  --green: #17665c;
  --muted: #72817b;
  --line: #dde5df;
  --surface: #fff;
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #83c5ab;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 36px;
  letter-spacing: -1.2px;
  line-height: 1.25;
  margin-bottom: 12px;
  font-weight: 650;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  line-height: 1.45;
  margin-bottom: 12px;
}
h3 {
  font-size: 16px;
  margin-bottom: 5px;
}
p {
  line-height: 1.7;
}
small {
  font-size: 12px;
  line-height: 1.7;
}
a {
  color: var(--green);
}
.topbar {
  height: 94px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
  background: rgba(255, 255, 255, 0.5);
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  background: var(--green);
  color: #fff;
  border-radius: 12px;
  width: 42px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 29px;
  font-weight: 300;
}
.brand strong {
  display: block;
  font-size: 20px;
  letter-spacing: 0.4px;
}
.brand small {
  font-size: 8px;
  letter-spacing: 1.9px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.status {
  font-size: 12px;
  color: var(--green);
  letter-spacing: 0.3px;
}
.button {
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid #c9d8ce;
  border-radius: 9px;
  background: #fff;
  color: #284940;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover {
  background: #edf4ef;
  transform: translateY(-1px);
}
.button.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.button.primary:hover {
  background: #115448;
}
.text-button {
  border: 0;
  background: none;
  color: var(--green);
  padding: 8px 0;
  font-size: 12px;
}
.text-button:hover {
  text-decoration: underline;
}
.danger {
  color: #b55445;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  line-height: 1.8;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 16px;
}
.auth-layout {
  max-width: 1160px;
  margin: 0 auto;
  padding: 74px 40px 70px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 90px;
  align-items: start;
}
.auth-story {
  padding: 48px 0 0;
}
.auth-story h1 {
  font-size: 46px;
  line-height: 1.5;
  letter-spacing: -1.6px;
  margin: 22px 0;
}
.story-copy {
  font-size: 14px;
  color: var(--muted);
  max-width: 355px;
  line-height: 2;
}
.story-list {
  padding: 28px 0 42px;
  display: grid;
  gap: 22px;
  font-size: 13px;
}
.story-list span {
  font:
    10px ui-monospace,
    monospace;
  color: #6d9a85;
  display: inline-block;
  width: 34px;
}
.story-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8f9a92;
  font-size: 9px;
  letter-spacing: 2px;
}
.tiny-key {
  font-size: 20px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.auth-card {
  box-shadow: 0 15px 70px #20382a06;
  padding: 38px 36px;
}
.auth-card h2 {
  font-size: 27px;
  margin-bottom: 8px;
}
.auth-card > .muted {
  font-size: 13px;
}
.segmented {
  padding: 5px;
  background: #f0f3ee;
  border: 1px solid #e8ece6;
  display: flex;
  border-radius: 10px;
  margin: 28px 0;
}
.segmented button {
  border: 0;
  background: none;
  flex: 1;
  border-radius: 7px;
  padding: 11px 6px;
  font-size: 12px;
  color: #69776f;
}
.segmented .selected {
  background: #fff;
  color: var(--green);
  box-shadow: 0 2px 5px #24382a0a;
  font-weight: 650;
}
.auth-form {
  display: grid;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12px;
  color: #455a50;
  text-align: left;
}
.field input,
.field select,
.search,
.token-value {
  width: 100%;
  min-width: 0;
  border: 1px solid #d6dfd7;
  border-radius: 8px;
  background: #fdfefc;
  padding: 12px 13px;
  color: #263f32;
  font-size: 13px;
  min-height: 44px;
}
.field input[type="file"] {
  font-size: 11px;
  padding: 10px;
}
.field input::placeholder,
.search::placeholder {
  color: #9aa69d;
}
.field input:focus,
.search:focus {
  border-color: #459a7d;
  background: #fff;
}
.hint {
  font-size: 11px;
  line-height: 1.8;
  color: #819086;
  margin: -7px 0 0;
}
.auth-form > .button {
  width: 100%;
}
.auth-footer {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
}
.lock-symbol {
  font-size: 32px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #edf4ed;
  color: var(--green);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}
.notice {
  font-size: 12px;
  line-height: 1.8;
  color: #4a705e;
  background: #edf5ef;
  border: 1px solid #dceadf;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0;
}
.notice.error {
  background: #fff2ee;
  border-color: #f0d5cb;
  color: #a34431;
}
.notice[hidden] {
  display: none;
}
.workspace-nav {
  display: flex;
  gap: 30px;
  padding: 0 6vw;
  border-bottom: 1px solid var(--line);
  height: 65px;
}
.nav-item {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: #7a8880;
  padding: 20px 2px 18px;
  font-size: 13px;
}
.nav-item.active {
  border-bottom-color: var(--green);
  color: var(--green);
  font-weight: 650;
}
.workspace {
  max-width: 1370px;
  padding: 44px 6vw 80px;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.page-heading .eyebrow {
  margin-bottom: 7px;
}
.page-heading .muted {
  font-size: 13px;
  margin-bottom: 0;
}
.stats-strip {
  display: flex;
  align-items: center;
  gap: 32px;
  background: #eef2e9;
  border: 1px solid #e3e9de;
  border-radius: 10px;
  padding: 17px 24px;
  font-size: 12px;
  color: #72816b;
  margin-bottom: 28px;
}
.stats-strip strong {
  font-size: 18px;
  color: #3d5b41;
}
.stats-strip .dot {
  width: 6px;
  height: 6px;
  background: #75a481;
  display: inline-block;
  border-radius: 50%;
  margin-right: 5px;
}
.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 255px;
  gap: 28px;
}
.search {
  max-width: 100%;
  background: #fff;
  margin-bottom: 20px;
  padding-left: 16px;
}
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.account-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  padding: 24px 23px 0;
  position: relative;
}
.account-heading {
  display: flex;
  gap: 12px;
  align-items: center;
}
.account-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #eef3e9;
  border-radius: 11px;
  font-size: 19px;
  font-weight: 600;
  color: #527745;
}
.account-title {
  min-width: 0;
}
.account-heading p {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
}
.otp {
  border: 0;
  background: none;
  display: block;
  padding: 24px 0 20px;
  font-size: 34px;
  letter-spacing: 3px;
  font-weight: 550;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  color: #245548;
  text-align: left;
  font-variant-numeric: tabular-nums;
  user-select: text;
  max-width: 100%;
}
.otp:hover {
  color: #2b947a;
}
.account-bottom {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 17px;
  font-size: 10px;
}
.card-actions {
  display: flex;
  gap: 12px;
}
.card-actions .text-button {
  font-size: 10px;
}
.account-card progress {
  display: block;
  appearance: none;
  -webkit-appearance: none;
  width: calc(100% + 46px);
  height: 3px;
  margin-left: -23px;
  border: none;
  background: #eaf0e7;
}
.account-card progress::-webkit-progress-bar {
  background: #eaf0e7;
}
.account-card progress::-webkit-progress-value {
  background: #82ac8a;
}
.account-card progress::-moz-progress-bar {
  background: #82ac8a;
}
.recovery-card {
  background: #e7eee1;
  border: 1px solid #dce5d4;
  border-radius: 14px;
  padding: 28px 24px;
  height: fit-content;
}
.recovery-card .eyebrow {
  font-size: 8px;
  letter-spacing: 1.7px;
}
.recovery-symbol {
  font-size: 40px;
  color: #6c926b;
  margin: 32px 0 25px;
}
.recovery-card h2 {
  font-size: 23px;
  line-height: 1.7;
}
.recovery-card p {
  font-size: 12px;
  color: #728269;
  line-height: 1.9;
}
.recovery-card .button {
  font-size: 11px;
  background: #ffffff9c;
  width: 100%;
  margin: 12px 0 26px;
}
.recovery-card small {
  display: block;
  font-size: 10px;
  color: #889580;
}
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  border: 1px dashed #cad7cc;
  border-radius: 14px;
  min-height: 320px;
  padding: 52px 22px;
  background: #ffffff77;
}
.empty-state h2 {
  font-size: 19px;
}
.empty-state p {
  font-size: 12px;
}
.empty-mark {
  font-size: 28px;
  color: #87a88f;
  margin-bottom: 20px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}
.settings-grid > .panel:last-child {
  grid-column: 2;
}
.settings-grid h2,
.backup-grid h2 {
  font-size: 20px;
}
.settings-grid .muted,
.backup-grid .muted {
  font-size: 12px;
}
.token-list {
  margin-top: 24px;
}
.token-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.token-row strong {
  font-size: 14px;
}
.token-row code {
  display: block;
  font-size: 11px;
  color: var(--green);
  margin: 8px 0;
}
.token-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.token-row .text-button {
  align-self: start;
}
.empty-copy {
  font-size: 12px;
  color: var(--muted);
  padding: 30px 0;
}
.backup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.backup-grid .panel {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 8px;
}
.backup-grid .panel > p {
  font-size: 13px;
  line-height: 1.9;
}
.backup-grid .featured {
  background: #eaf2e7;
  border-color: #dce7d6;
}
.backup-grid .featured > .button {
  margin: 10px 0;
}
.backup-grid small {
  color: #7d8c75;
}
.tag {
  display: inline-block;
  border: 1px solid #c4d8bc;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 9px;
  color: #5a7d4d;
  background: #f5f9f1;
}
.checkbox {
  font-size: 11px;
  line-height: 1.8;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.checkbox input {
  margin-top: 5px;
  accent-color: var(--green);
}
.backup-grid .auth-form {
  width: 100%;
}
.recovery-steps ol {
  padding-left: 20px;
  font-size: 13px;
  color: #6c7f70;
  line-height: 2;
}
.recovery-steps li {
  margin-bottom: 18px;
}
.dialog {
  width: min(520px, calc(100% - 28px));
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  color: #203330;
  background: #fff;
  box-shadow: 0 20px 100px #152b2933;
}
.dialog::backdrop {
  background: #213b3266;
  backdrop-filter: blur(4px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 15px;
}
.dialog-heading h2 {
  margin: 0;
}
.icon-button {
  border: 0;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  background: #f1f4ee;
  color: #728474;
  font-size: 22px;
  line-height: 1;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.divider {
  text-align: center;
  font-size: 10px;
  color: #a2afa3;
  padding: 4px;
  border-top: 1px solid var(--line);
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
  max-width: calc(100vw - 32px);
  width: max-content;
  background: #1c574b;
  color: #fff;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.7;
  box-shadow: 0 10px 30px #183e2822;
}
.toast.is-error {
  background: #9d4936;
}
.toast[hidden] {
  display: none;
}
.rescue-page {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 30px 60px;
}
.rescue-page > .muted {
  font-size: 13px;
}
.recovery-form {
  max-width: 520px;
  margin: 32px 0;
}
.rescue-page .account-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0;
}
.rescue-page .account-card {
  padding-bottom: 8px;
}
.rescue-page .otp {
  cursor: text;
}
.footnote {
  max-width: 650px;
  font-size: 12px;
  color: var(--muted);
}
@media (min-width: 1500px) {
  .workspace {
    padding-left: 50px;
    padding-right: 50px;
  }
}
@media (max-width: 1050px) {
  .auth-layout {
    gap: 44px;
    padding: 40px 32px;
  }
  .auth-story h1 {
    font-size: 37px;
  }
  .auth-card {
    padding: 30px 26px;
  }
  .dashboard-columns {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 20px;
  }
  .account-grid {
    grid-template-columns: 1fr;
  }
  .recovery-card {
    padding: 24px 20px;
  }
  .recovery-card h2 {
    font-size: 20px;
  }
  .settings-grid {
    grid-template-columns: 1fr 1fr;
  }
  .rescue-page .account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .topbar {
    height: 80px;
    padding: 0 20px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .brand strong {
    font-size: 18px;
    white-space: nowrap;
  }
  .brand-mark {
    width: 36px;
    height: 38px;
    font-size: 25px;
  }
  .header-actions {
    gap: 10px;
  }
  .status {
    font-size: 10px;
  }
  .topbar .text-button {
    font-size: 10px;
    white-space: nowrap;
  }
  .auth-layout {
    display: block;
    padding: 28px 20px 44px;
    max-width: 480px;
  }
  .auth-story {
    padding: 0 0 22px;
  }
  .auth-story h1 {
    font-size: 29px;
    line-height: 1.5;
    margin: 12px 0;
  }
  .auth-story h1 br {
    display: none;
  }
  .auth-story > .eyebrow {
    font-size: 8px;
    margin-bottom: 8px;
  }
  .story-copy {
    font-size: 12px;
    max-width: 100%;
    margin-bottom: 0;
  }
  .story-list,
  .story-bottom {
    display: none;
  }
  .auth-card {
    padding: 26px 22px;
  }
  .auth-card h2 {
    font-size: 24px;
  }
  .workspace-nav {
    padding: 0 20px;
    height: 58px;
    gap: 24px;
  }
  .nav-item {
    font-size: 12px;
    padding: 17px 0;
  }
  .workspace {
    padding: 32px 20px 60px;
  }
  .page-heading {
    align-items: start;
    margin-bottom: 24px;
    flex-wrap: wrap;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
  }
  .page-heading .muted {
    font-size: 11px;
    max-width: 220px;
  }
  .page-heading .header-actions {
    flex-direction: row;
    gap: 4px;
  }
  .page-heading .button {
    font-size: 11px;
    padding: 9px 13px;
    min-height: 38px;
  }
  .stats-strip {
    padding: 14px 15px;
    gap: 14px;
    font-size: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
  }
  .dashboard-columns {
    display: flex;
    flex-direction: column;
  }
  .account-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .account-card {
    padding: 18px 14px 0;
  }
  .account-heading {
    gap: 8px;
  }
  .account-icon {
    width: 30px;
    height: 32px;
    font-size: 15px;
    border-radius: 8px;
  }
  .account-heading h3 {
    font-size: 13px;
  }
  .account-heading p {
    font-size: 9px;
  }
  .otp {
    font-size: 24px;
    letter-spacing: 1.3px;
    padding: 22px 0 12px;
  }
  .account-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 12px;
  }
  .card-actions {
    gap: 16px;
  }
  .account-card progress {
    width: calc(100% + 28px);
    margin-left: -14px;
  }
  .recovery-card {
    padding: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
  }
  .recovery-card .eyebrow {
    width: 100%;
    margin: 0;
  }
  .recovery-symbol {
    display: none;
  }
  .recovery-card h2 {
    font-size: 19px;
    margin: 0;
  }
  .recovery-card p {
    margin: 0;
  }
  .recovery-card .button {
    margin: 5px 0;
    width: auto;
  }
  .recovery-card small {
    width: 100%;
  }
  .settings-grid,
  .backup-grid {
    display: block;
  }
  .settings-grid > .panel,
  .backup-grid > .panel {
    margin-bottom: 20px;
    padding: 24px;
  }
  .rescue-page {
    margin-top: 32px;
    padding: 0 20px 40px;
  }
  .rescue-page h1 {
    font-size: 28px;
  }
  .rescue-page .account-grid {
    grid-template-columns: 1fr;
  }
  .dialog {
    padding: 24px 20px;
  }
  .toast {
    bottom: 16px;
    padding: 12px 16px;
  }
  .empty-state {
    min-height: 280px;
    padding: 38px 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
