:root {
  color-scheme: dark;
  --bg: #0d0c14;
  --panel: #181621;
  --line: #302c40;
  --muted: #a4a0b5;
  --purple: #ae8bff;
  --text: #eeeaf7;
  --danger: #ff9dba;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 80% 5%, #22172f 0, transparent 45%), var(--bg);
  font:
    15px/1.6 system-ui,
    sans-serif;
  color: var(--text);
  min-height: 100vh;
}
header {
  height: 85px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 5vw;
}
a {
  color: var(--purple);
  text-decoration: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 25px;
  color: #c4a9ff;
}
.brand span {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.5px;
}
nav {
  display: flex;
  gap: 8px;
  flex: 1;
}
.local {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}
main {
  max-width: 1120px;
  margin: 48px auto;
  padding: 0 24px;
  min-height: 65vh;
}
h1 {
  font-size: 35px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 12px 0;
}
h2 {
  font-size: 19px;
  margin: 0 0 18px;
}
h3 {
  font-size: 15px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--purple);
  font-weight: 700;
}
.subtitle {
  color: var(--muted);
  margin: 12px 0 32px;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, 1fr);
  gap: 24px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  margin: 0 0 22px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.step {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: #312445;
  color: var(--purple);
  font-size: 12px;
  margin-right: 10px;
}
input,
select,
textarea {
  font: inherit;
  color: var(--text);
  background: #100f19;
  border: 1px solid #393348;
  border-radius: 7px;
  padding: 10px 12px;
  width: 100%;
  min-width: 0;
}
input:focus,
select:focus,
[contenteditable]:focus {
  outline: 2px solid #9570d7;
  outline-offset: 1px;
}
label {
  display: block;
  color: #d3cddd;
  font-size: 13px;
  margin-bottom: 7px;
}
small,
.muted {
  color: var(--muted);
  font-size: 12px;
}
button,
.button {
  font: inherit;
  cursor: pointer;
  border: 1px solid #423551;
  border-radius: 7px;
  background: #282031;
  color: #e3d8f5;
  padding: 9px 16px;
  display: inline-block;
}
button:hover,
.button:hover {
  background: #3a2a4d;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.primary {
  background: #ac85f5;
  border-color: #ac85f5;
  color: #180b2b;
  font-weight: 650;
}
.primary:hover {
  background: #bf9dff;
}
.danger {
  color: var(--danger);
}
.ghost {
  background: transparent;
  border-color: transparent;
}
.full {
  width: 100%;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.row > * {
  flex: 1;
}
.row > button {
  flex: 0;
}
.recipient {
  display: grid;
  grid-template-columns: 1fr 1.4fr 75px 36px;
  gap: 9px;
  margin-bottom: 10px;
}
.recipient button {
  padding: 5px;
}
.field {
  margin-bottom: 18px;
}
.toolbar {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  padding: 9px;
  background: #211c2b;
  border: 1px solid var(--line);
  border-radius: 7px 7px 0 0;
}
.toolbar button {
  padding: 3px 10px;
  background: transparent;
}
#editor {
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 7px 7px;
  min-height: 300px;
  background: #100f19;
  padding: 18px;
  overflow-wrap: anywhere;
}
#editor:empty:before {
  content: "Add credentials, instructions, or anything that needs a shorter lifetime.";
  color: #777184;
}
.note {
  border: 1px solid #49365e;
  border-radius: 9px;
  background: #231b30;
  padding: 16px;
  color: #c6b4de;
  font-size: 13px;
  margin: 18px 0;
}
.warning {
  border-color: #745b2e;
  color: #e3c68f;
  background: #2d2517;
}
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 20px 0;
}
.badge {
  font-size: 11px;
  letter-spacing: 0.5px;
  border-radius: 5px;
  padding: 4px 8px;
  background: #30233f;
  color: #cdb0ff;
  white-space: nowrap;
}
.badge.destroyed {
  background: #3b2530;
  color: #f9a6bf;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  text-align: left;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
}
td,
th {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
}
td {
  font-size: 13px;
  vertical-align: top;
}
.table-wrap {
  overflow: auto;
}
.empty {
  padding: 40px;
  text-align: center;
  color: var(--muted);
}
.hero {
  max-width: 550px;
  margin: 100px auto;
  text-align: center;
}
.hero .card {
  padding: 42px;
}
.hero h1 {
  font-size: 40px;
}
.icon {
  font-size: 48px;
  color: var(--purple);
}
dialog {
  color: var(--text);
  background: #1b1626;
  border: 1px solid #554066;
  border-radius: 15px;
  max-width: 560px;
  width: calc(100% - 40px);
  padding: 30px;
}
dialog::backdrop {
  background: #05030bc9;
  backdrop-filter: blur(5px);
}
dialog p {
  color: #c6bfd2;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #382a48;
  border: 1px solid #8b69b4;
  border-radius: 10px;
  padding: 13px 23px;
  z-index: 20;
  max-width: 90vw;
  box-shadow: 0 10px 50px #0008;
}
footer {
  max-width: 1120px;
  margin: 35px auto;
  padding: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
footer span {
  max-width: 500px;
  text-align: right;
}
.setting {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.setting label {
  margin: 0;
  overflow-wrap: anywhere;
}
.setting input[type="checkbox"] {
  width: 20px;
}
.secret-content {
  background: #110e1a;
  padding: 24px;
  border: 1px solid #49345e;
  border-radius: 9px;
  overflow-wrap: anywhere;
  user-select: text;
}
.secret-content pre {
  white-space: pre-wrap;
}
code {
  font:
    12px/1.5 ui-monospace,
    monospace;
  overflow-wrap: anywhere;
}
.stats {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.stat {
  flex: 1;
  min-width: 130px;
}
.stat b {
  display: block;
  font-size: 30px;
}
.inline-check {
  display: flex;
  gap: 10px;
  align-items: center;
}
.inline-check input {
  width: auto;
}
#once {
  width: 100%;
  min-height: 100px;
}
.audit {
  max-height: 400px;
  overflow: auto;
}
.link-box {
  display: flex;
  gap: 8px;
}
.link-box input {
  font-family: monospace;
}
.count {
  float: right;
}
.auth-note {
  max-width: 600px;
}
input[readonly],
input:disabled,
select:disabled {
  opacity: 0.6;
}
@media (max-width: 800px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .local {
    display: none;
  }
  header {
    height: auto;
    min-height: 80px;
    padding: 20px;
    flex-wrap: wrap;
    gap: 12px;
  }
  nav {
    flex-wrap: wrap;
  }
  main {
    margin-top: 30px;
    padding: 0 16px;
  }
  .recipient {
    grid-template-columns: 1fr 1fr 60px 30px;
  }
  .card {
    padding: 19px;
  }
  .setting {
    grid-template-columns: 1fr;
  }
  footer {
    display: block;
  }
  footer span {
    display: block;
    text-align: left;
    margin-top: 10px;
  }
  .hero {
    margin: 35px auto;
  }
  h1 {
    font-size: 29px;
  }
}

#editor.ql-container {
  padding: 0;
  font: inherit;
}
#editor .ql-editor {
  min-height: 300px;
  padding: 18px;
}
#editor .ql-editor.ql-blank:before {
  font-style: normal;
  color: #777184;
  left: 18px;
  right: 18px;
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.tabs [aria-selected="true"] {
  border-color: var(--purple);
  color: var(--purple);
  background: #30233f;
}
.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.pagination span {
  margin-right: auto;
  color: var(--muted);
  font-size: 12px;
}
.log-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.log-filters label {
  margin: 0;
}
.log-search {
  grid-column: span 2;
}
.log-controls {
  display: flex;
  gap: 8px;
  align-items: end;
  grid-column: span 2;
}
.logs-table {
  font-size: 12px;
  table-layout: auto;
}
.logs-table th {
  padding: 6px;
}
.logs-table th button {
  border: 0;
  background: transparent;
  padding: 6px;
  font-size: 12px;
  white-space: nowrap;
}
.logs-table td {
  padding: 9px 8px;
  overflow-wrap: anywhere;
  max-width: 250px;
  font-size: 12px;
}
.log-row {
  cursor: pointer;
}
.log-row:hover,
.log-row[aria-expanded="true"] {
  background: #211b2b;
}
.log-row:focus {
  outline: 1px solid var(--purple);
}
.log-details[hidden] {
  display: none;
}
.log-details td {
  background: #100e18;
  max-width: none;
  padding: 18px;
}
.log-details dl {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 5px 15px;
  margin: 0;
}
.log-details dt {
  color: var(--muted);
}
.log-details dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.log-details pre {
  font-size: 12px;
  max-height: 300px;
  overflow: auto;
  white-space: pre-wrap;
}
.severity {
  white-space: nowrap;
  color: var(--muted);
}
.severity-0,
.severity-1,
.severity-2,
.severity-3 {
  color: #f7a5b9;
}
.severity-4 {
  color: #d9bb82;
}
.severity-5 {
  color: #cbb6e9;
}
.sender-identity {
  overflow-wrap: anywhere;
}
@media (max-width: 800px) {
  .log-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .logs-table {
    min-width: 760px;
  }
  .log-details dl {
    grid-template-columns: 1fr;
  }
}
.ql-editor pre {
  white-space: pre-wrap;
}

.dev-banner{padding:10px 24px;text-align:center;background:#493211;color:#ffe4ac;font-size:13px}.dev-message{white-space:pre-wrap;overflow-wrap:anywhere}
