:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #26282d;
  background: #fff;
  font-size: 14px;
  font-synthesis: none;
  --blue: #0068d9;
  --muted: #717680;
  --line: #e4e6e9;
  --sidebar: #f2f3f5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button,
input,
select,
textarea,
a {
  outline-offset: 3px;
}
:focus-visible {
  outline: 3px solid #80baff;
}
button {
  border: 1px solid #d5d8dd;
  background: #fff;
  color: inherit;
  border-radius: 7px;
  padding: 7px 12px;
  min-height: 34px;
}
button:hover {
  background: #f2f5f9;
}
button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
button.primary:hover {
  background: #005abf;
}
button.danger {
  color: #bd252c;
}
button.quiet {
  border-color: transparent;
  background: transparent;
}
button.icon-button {
  padding: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon {
  width: 19px;
  height: 19px;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 23px;
  letter-spacing: -0.6px;
  margin-bottom: 4px;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
p {
  line-height: 1.6;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  height: 100dvh;
}
.sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 30px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.5px;
}
.brand-mark {
  width: 32px;
  height: 36px;
  border: 1px solid #d2d6dc;
  border-radius: 9px;
  background: #fff;
  color: var(--blue);
  display: grid;
  place-items: center;
}
.sidebar-label {
  font-size: 11px;
  font-weight: 650;
  color: #828790;
  padding: 0 13px;
  margin-bottom: 9px;
}
.nav {
  display: grid;
  gap: 4px;
}
.nav button {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 10px 13px;
}
.nav button.active {
  background: #dde7f4;
  color: #0059bc;
}
.nav .count {
  margin-left: auto;
  font-size: 11px;
  color: #757e8b;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 0 12px;
}
.sidebar-bottom button {
  width: 100%;
  text-align: left;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.connection {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.connection:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #43825b;
}
.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.toolbar {
  min-height: 100px;
  padding: 25px 32px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.toolbar p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.toolbar-actions .primary {
  display: flex;
  gap: 6px;
  align-items: center;
}
.content {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  min-height: 0;
  flex: 1;
}
.collection {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.search-wrap {
  padding: 17px 16px 12px;
  position: relative;
}
.search-wrap .icon {
  position: absolute;
  left: 27px;
  top: 27px;
  color: #838994;
  width: 16px;
  height: 16px;
}
.search-wrap input {
  padding-left: 34px;
  background: #f3f4f6;
  border-color: transparent;
  font-size: 13px;
  width: 100%;
  height: 36px;
}
.collection-caption {
  padding: 0 20px 10px;
  font-size: 11px;
  color: var(--muted);
}
.items {
  padding: 0 8px 12px;
  overflow: auto;
  flex: 1;
}
.item {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  text-align: left;
  padding: 14px 11px;
  align-items: center;
  margin-bottom: 3px;
}
.item.selected {
  background: #edf4fd;
  border-color: #d6e6fa;
}
.item-copy {
  min-width: 0;
  flex: 1;
}
.item-title {
  font-weight: 600;
  font-size: 13px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item-subtitle {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avatar {
  width: 35px;
  height: 35px;
  border: 1px solid #e1e4e9;
  border-radius: 9px;
  background: #f7f8fa;
  color: #5f6979;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.selected .avatar {
  background: #fff;
  color: var(--blue);
}
.detail {
  padding: 35px 40px;
  overflow: auto;
  min-width: 0;
}
.detail-inner {
  max-width: 760px;
  margin: 0 auto;
}
.detail-header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 32px;
}
.detail-header .avatar {
  width: 48px;
  height: 48px;
  font-size: 18px;
  border-radius: 12px;
}
.detail-heading {
  min-width: 0;
  flex: 1;
}
.detail-heading h2 {
  margin-bottom: 5px;
  overflow-wrap: anywhere;
}
.detail-heading p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.section {
  margin-top: 28px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.section-title h3 {
  margin: 0;
}
.field {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.field-label {
  color: var(--muted);
  font-size: 12px;
}
.field-value {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  min-width: 0;
  line-height: 1.5;
}
.field-value[data-edit] {
  cursor: text;
  -webkit-user-select: none;
  user-select: none;
}
.mono,
code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}
.secret-mask {
  letter-spacing: 3px;
}
.field .icon-button {
  color: #7a818c;
}
.hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 16px;
}
.status {
  font-size: 11px;
  padding: 4px 7px;
  background: #edf4ef;
  color: #42704e;
  border-radius: 4px;
  white-space: nowrap;
}
.status.expired {
  background: #fbeeee;
  color: #a63c3c;
}
.detail-footer {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.empty {
  margin: auto;
  max-width: 360px;
  padding: 40px 20px;
  text-align: center;
}
.empty > .icon {
  width: 38px;
  height: 38px;
  color: #9ba4b1;
  margin-bottom: 18px;
}
.empty h2 {
  font-size: 18px;
  margin-bottom: 9px;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
}
.list-empty {
  font-size: 13px;
  color: var(--muted);
  padding: 20px 14px;
  line-height: 1.6;
}
.activity {
  overflow: auto;
  padding: 20px 32px;
}
.activity table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
.activity th {
  text-align: left;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.activity td,
.activity th {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.activity td:last-child {
  color: var(--muted);
  font-size: 12px;
}
.error-banner {
  background: #fff0f0;
  color: #a32931;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.loading {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  color: var(--muted);
}
input,
select,
textarea {
  border: 1px solid #ccd1d8;
  border-radius: 6px;
  padding: 9px 10px;
  background: #fff;
  color: inherit;
  min-width: 0;
}
textarea {
  resize: vertical;
  line-height: 1.5;
}
label.form-field {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 17px;
}
label.form-field small {
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
}
label.form-field input,
label.form-field select,
label.form-field textarea {
  font-size: 14px;
  font-weight: 400;
  width: 100%;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-error {
  font-size: 13px;
  color: #ad2932;
  line-height: 1.5;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.form-error:empty {
  display: none;
}
dialog {
  border: 1px solid #d9dde3;
  border-radius: 13px;
  padding: 0;
  width: min(540px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  box-shadow: 0 22px 75px #16243b30;
  color: inherit;
}
dialog::backdrop {
  background: #17223538;
}
dialog .dialog-body {
  padding: 26px;
  overflow: auto;
}
dialog h2 {
  padding-right: 30px;
  margin-bottom: 9px;
}
dialog .dialog-intro {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}
dialog .close-dialog {
  position: absolute;
  right: 14px;
  top: 14px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 23px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.schema-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  margin: 8px 0;
}
.schema-row input {
  width: 100%;
}
.schema-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 10px;
}
.schema-head h3 {
  margin: 0;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.check input {
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
}
.check code {
  overflow-wrap: anywhere;
}
.checks {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 12px;
  max-height: 180px;
  overflow: auto;
}
.methods {
  flex-wrap: wrap;
  display: flex;
  gap: 22px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
  min-width: 0;
}
legend {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.notice {
  background: #f3f6fa;
  border: 1px solid #e1e6ed;
  border-radius: 7px;
  padding: 13px 15px;
  font-size: 12px;
  line-height: 1.6;
}
.token-output {
  overflow-wrap: anywhere;
  background: #f4f5f7;
  border-radius: 7px;
  padding: 14px;
  white-space: pre-wrap;
  user-select: all;
}
.auth {
  min-height: 100dvh;
  background: #f2f3f5;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-card {
  background: white;
  border: 1px solid #dfe2e7;
  border-radius: 14px;
  padding: 36px;
  width: min(400px, 100%);
  box-shadow: 0 8px 30px #23344b08;
}
.auth-card .brand {
  padding: 0;
  margin-bottom: 35px;
}
.auth-card h1 {
  font-size: 22px;
}
.auth-card > p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 25px;
}
.auth-card .primary {
  width: 100%;
}
.auth-foot {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin: 22px 0 0;
}
.mobile-back {
  display: none;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 14px);
  background: #303742;
  color: white;
  border-radius: 8px;
  padding: 11px 18px;
  font-size: 13px;
  box-shadow: 0 6px 22px #17223520;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.15s,
    transform 0.15s;
  z-index: 10;
  max-width: calc(100% - 32px);
  text-align: center;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1500px) {
  .content {
    grid-template-columns: 350px minmax(0, 1fr);
  }
  .detail {
    padding-top: 46px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .content {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .detail {
    padding: 28px 23px;
  }
  .toolbar {
    padding: 22px 24px;
  }
  .field {
    grid-template-columns: 100px minmax(0, 1fr) auto;
    gap: 8px;
  }
}
@media (max-width: 800px) {
  .shell {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .sidebar {
    padding: 25px 9px 14px;
    align-items: center;
  }
  .brand {
    padding: 0;
  }
  .sidebar .brand-name,
  .sidebar-label,
  .nav-label,
  .nav .count,
  .sidebar .connection,
  .sidebar-bottom .lock-label {
    display: none;
  }
  .nav button {
    padding: 12px;
    justify-content: center;
  }
  .sidebar-bottom {
    padding: 0;
  }
  .sidebar-bottom button {
    width: auto;
    padding: 12px;
  }
  .sidebar .nav {
    gap: 9px;
  }
  .content {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .field {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .field-label {
    grid-column: 1/-1;
  }
  .detail-header {
    gap: 10px;
    flex-wrap: wrap;
  }
  .detail {
    padding: 25px 20px;
  }
  .toolbar p {
    max-width: 240px;
  }
  .toolbar {
    padding: 20px;
  }
}
@media (max-width: 600px) {
  .shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .sidebar {
    padding: 10px 12px;
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 12px;
  }
  .sidebar .brand-mark {
    width: 30px;
    height: 32px;
  }
  .sidebar .nav {
    display: flex;
    gap: 2px;
  }
  .nav button {
    padding: 9px 11px;
  }
  .sidebar-bottom {
    margin: 0 0 0 auto;
  }
  .sidebar-bottom button {
    margin: 0;
    padding: 9px;
  }
  .toolbar {
    min-height: 86px;
    padding: 17px 18px;
    gap: 10px;
  }
  .toolbar h1 {
    font-size: 21px;
  }
  .toolbar p {
    font-size: 11px;
  }
  .toolbar-actions {
    gap: 3px;
  }
  .toolbar-actions button {
    font-size: 12px;
    padding: 7px 9px;
  }
  .content {
    display: flex;
    overflow: hidden;
  }
  .collection {
    width: 100%;
    border: 0;
    flex-shrink: 0;
  }
  .detail {
    display: none;
    width: 100%;
    padding: 20px;
    flex-shrink: 0;
  }
  .content.show-detail .collection {
    display: none;
  }
  .content.show-detail .detail {
    display: block;
  }
  .content.show-detail .mobile-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 20px -8px;
    color: var(--blue);
  }
  .detail-header {
    margin-bottom: 24px;
  }
  .field {
    grid-template-columns: 100px minmax(0, 1fr) auto;
  }
  .field-label {
    grid-column: auto;
  }
  .activity {
    padding: 12px;
  }
  .activity td,
  .activity th {
    padding: 12px 7px;
  }
  .activity td:last-child {
    min-width: 90px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .auth-card {
    padding: 27px;
  }
  .schema-row {
    grid-template-columns: 1fr 1fr 32px;
    gap: 5px;
  }
  .schema-row input {
    font-size: 12px;
    padding: 8px;
  }
  .schema-row button {
    padding: 5px;
  }
  dialog .dialog-body {
    padding: 23px;
  }
  .detail-footer {
    align-items: flex-start;
  }
  .detail-footer .small {
    max-width: 170px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

input.masked {
  -webkit-text-security: disc;
}
