@charset "UTF-8";

:root {
  color-scheme: dark;
  --base: #090d13;
  --panel: #10161e;
  --raised: #151e28;
  --ink: #e6edf5;
  --muted: #7c8c9d;
  --line: #23303b;
  --cyan: #70e8da;
  --acid: #c6f78b;
  --violet: #a99cfa;
  --red: #ff8d9b;
  --mono: Consolas, "SFMono-Regular", monospace;
  --sans: "Segoe UI", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--base);
  color: var(--ink);
  font: 14px/1.5 var(--sans);
}
body {
  background-image: radial-gradient(ellipse at 94% 4%, #554f8b13, transparent 42%);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
}
button {
  cursor: pointer;
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
[hidden] {
  display: none !important;
}
button:hover:not(:disabled),
a:hover {
  color: var(--cyan);
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #0b1119;
  border-radius: 5px;
  padding: 10px 12px;
  min-width: 0;
  outline-color: var(--cyan);
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  outline: 1px solid #70e8da22;
  outline-offset: 1px;
}
input[readonly] {
  color: var(--muted);
}
input[type="checkbox"] {
  width: 14px;
  min-height: 14px;
  accent-color: var(--acid);
  padding: 0;
}
input[type="number"] {
  appearance: textfield;
}
label {
  display: block;
  color: #b2becc;
  font-size: 12px;
}
label > input,
label > select,
label > textarea,
label > .input-action {
  margin-top: 7px;
}
form > label {
  margin: 18px 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.035em;
  font-weight: 500;
}
h2 {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.3;
}
h3 {
  font-size: 15px;
  font-weight: 500;
}
code,
pre {
  font-family: var(--mono);
}
.app-page {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.masthead {
  height: 70px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 25px;
  border-bottom: 1px solid var(--line);
  background: #0a1018c9;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.06em;
  white-space: nowrap;
}
.monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 32px;
  background: var(--acid);
  color: var(--base);
  font: bold 27px/1 var(--mono);
  border-radius: 2px 10px 2px 2px;
  box-shadow: 0 0 22px #c6f78b16;
  padding-bottom: 4px;
}
.version-mark {
  font: 10px var(--mono);
  letter-spacing: 0.03em;
  margin: 5px 0 0 5px;
  color: var(--muted);
  font-weight: normal;
}
.masthead nav {
  display: flex;
  align-items: center;
  gap: 23px;
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 7px 0;
  color: #9faebe;
}
.icon-button {
  width: 33px;
  height: 33px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 22px;
  line-height: 1;
}
.icon-button:hover:not(:disabled) {
  border-color: var(--line);
  background: #19232b;
}
.accent {
  color: var(--acid);
  background: #c6f78b0a;
  border-color: #c6f78b44;
}
.route-dot,
.dot {
  display: inline-block;
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 9px #70e8da55;
}
.user-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #b7c1cd;
}
.user-avatar {
  width: 25px;
  height: 25px;
  border: 1px solid #a99cfa55;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 10px var(--mono);
  color: var(--violet);
  background: #a99cfa11;
}
.eyebrow {
  font: 10px/1.4 var(--mono);
  letter-spacing: 0.12em;
  color: var(--muted);
}
.workspace {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  min-height: 0;
  flex: 1;
}
.mailbox-sidebar {
  display: flex;
  flex-direction: column;
  padding: 18px 13px 14px;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid var(--line);
  position: relative;
}
.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 14px;
}
.sidebar-heading b {
  color: var(--cyan);
  font-weight: normal;
  margin-left: 9px;
}
.scope-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 12px;
  font-size: 10px;
  color: var(--muted);
}
.mailbox-tabs {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  flex: 1;
}
.mailbox-tab {
  position: relative;
  display: block;
  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 14px 10px;
  font: 10px/1.5 var(--mono);
  color: #92a3b4;
  flex-shrink: 0;
}
.mailbox-tab:hover {
  background: #70e8da06;
}
.mailbox-tab.active {
  color: var(--acid);
  background: linear-gradient(95deg, #c6f78b0e, transparent);
  border-color: #c6f78b39;
}
.mailbox-tab .dot {
  margin-right: 8px;
  background: var(--muted);
  box-shadow: none;
}
.mailbox-tab[data-status="ready"] .dot {
  background: var(--acid);
  box-shadow: 0 0 8px #c6f78b55;
}
.mailbox-tab[data-status="banned"] .dot,
.mailbox-tab[data-status="attention"] .dot {
  background: var(--red);
}
.connect-button {
  padding: 14px 8px 6px;
  font-size: 10px;
  white-space: nowrap;
}
.sidebar-signal {
  height: 48px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding: 8px;
  opacity: 0.25;
  pointer-events: none;
}
.sidebar-signal span {
  display: block;
  background: var(--violet);
  width: 3px;
  height: 14px;
  animation: levels 7s ease-in-out infinite;
  transform-origin: bottom;
}
.sidebar-signal span:nth-child(2n) {
  height: 25px;
  animation-delay: -2s;
}
.sidebar-signal span:nth-child(3n) {
  height: 9px;
  animation-delay: -4s;
}
.sidebar-signal span:nth-child(5) {
  height: 33px;
  animation-delay: -1s;
}
.mail-area {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.address-bar {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 26px;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(105deg, #a99cfa05, transparent);
}
.address-meta {
  min-width: 0;
}
.address-value {
  font: clamp(14px, 1.5vw, 21px)/1.4 var(--mono);
  letter-spacing: -0.06em;
  margin-top: 7px;
  overflow-wrap: anywhere;
}
.address-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  min-height: 38px;
  padding: 9px 15px;
  font-size: 12px;
  font-weight: 500;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.button-ink {
  background: var(--acid);
  border-color: var(--acid);
  color: #11190b;
}
.button-ink:hover:not(:disabled) {
  background: #d8ffa8;
  color: #0a1006;
  border-color: #d8ffa8;
}
.button-paper {
  color: #b8c5d4;
  background: #131c25;
}
.button-paper:hover:not(:disabled) {
  background: #1a2932;
  border-color: #445d65;
}
.button-red {
  border-color: #ff8d9b55;
  color: var(--red);
  background: #ff8d9b0a;
}
.button-red:hover:not(:disabled) {
  border-color: var(--red);
  color: var(--red);
}
.danger-text {
  color: var(--red);
}
.mail-desk {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}
.inbox-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid var(--line);
}
.section-heading {
  height: 62px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 19px;
  border-bottom: 1px solid var(--line);
}
.section-heading h1 {
  font-size: 15px;
  margin: 0;
  letter-spacing: -0.02em;
}
.section-heading h1 span {
  font: 10px var(--mono);
  margin-left: 6px;
  color: var(--muted);
}
.inbox-tools {
  display: flex;
  align-items: center;
  gap: 7px;
}
.auto-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--muted);
}
.message-list {
  overflow: auto;
  min-height: 0;
  flex: 1;
  scrollbar-width: thin;
}
.message-row {
  width: 100%;
  display: block;
  text-align: left;
  border-bottom: 1px solid #23303b88;
  padding: 19px 18px;
  background: transparent;
  position: relative;
}
.message-row:hover {
  background: #70e8da07;
}
.message-row.active {
  background: #1a2831;
}
.message-row.active:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 2px;
  background: var(--cyan);
  box-shadow: 0 0 15px #70e8da44;
}
.message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 8px;
}
.sender {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #a6b6c7;
}
.message-row.unread .sender {
  color: var(--ink);
}
.message-row.unread .sender:before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  margin: 0 6px 2px 0;
}
.message-subject {
  font-size: 12px;
  line-height: 1.55;
  color: #c9d2dd;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.message-attachment {
  font: 9px var(--mono);
  margin-top: 8px;
  color: var(--muted);
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 18px;
  border-top: 1px solid var(--line);
  font: 10px var(--mono);
}
.reader-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #0d131a;
  position: relative;
}
.reader-header {
  padding: 24px 30px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  background: #101720;
}
.reader-header .eyebrow {
  font-size: 9px;
  color: var(--violet);
}
.reader-header h2 {
  font-size: 24px;
  margin: 12px 0 17px;
  overflow-wrap: anywhere;
}
.reader-sender {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}
.reader-frame {
  display: block;
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #0d131a;
}
.reader-idle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 250px;
  height: 100%;
  flex: 1;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(#23303b17 1px, transparent 1px),
    linear-gradient(90deg, #23303b17 1px, transparent 1px);
  background-size: 40px 40px;
}
.reader-idle p {
  font: 11px var(--mono);
  color: #708395;
  z-index: 1;
  margin-top: 35px;
}
.empty-orbit {
  width: 112px;
  height: 112px;
  border: 1px solid #70e8da45;
  border-radius: 50%;
  transform: rotateX(52deg) rotate(-25deg);
  box-shadow:
    0 0 45px #70e8da06,
    inset 0 0 40px #70e8da06;
  position: relative;
}
.empty-orbit:before {
  content: "";
  position: absolute;
  inset: -23px;
  border: 1px solid #a99cfa25;
  border-radius: 50%;
  transform: rotateX(-40deg) rotateY(53deg);
}
.empty-orbit:after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--cyan);
  border-radius: 50%;
  left: 15%;
  top: 12%;
  box-shadow: 0 0 15px var(--cyan);
  animation: pulse 4s infinite;
}
.empty-state {
  text-align: center;
  padding: 55px 20px;
  color: var(--muted);
  font-size: 11px;
}
.empty-state h3 {
  font-size: 14px;
  font-weight: normal;
  color: #adbcca;
  margin: 14px 0 6px;
}
.empty-symbol {
  font: 32px var(--mono);
  color: #4c6675;
}
.loading-state {
  text-align: center;
  padding: 60px 20px;
  font-size: 11px;
  color: var(--muted);
}
.loading-mark {
  display: block;
  font: 32px var(--mono);
  color: var(--cyan);
  margin-bottom: 14px;
  animation: pulse 2s infinite;
}
.notice {
  padding: 12px 20px;
  border-bottom: 1px solid #ff8d9b40;
  background: #ff8d9b0a;
  color: #e8b0b9;
  font-size: 12px;
  flex-shrink: 0;
  max-height: 240px;
  overflow: auto;
}
.notice p {
  margin: 7px 0;
}
.notice details {
  margin-top: 7px;
  font-size: 10px;
}
.notice pre,
.diagnostic {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 10px/1.7 var(--mono);
  max-height: 250px;
  overflow: auto;
}
footer {
  height: 36px;
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  font: 9px var(--mono);
  color: var(--muted);
  background: #090e15;
}
.live-status {
  display: flex;
  align-items: center;
  gap: 7px;
}
footer .text-button {
  font: 10px var(--mono);
}
#tasks-dot {
  background: #52677a;
  box-shadow: none;
}
#tasks-dot.busy {
  background: var(--cyan);
  box-shadow: 0 0 10px #70e8da44;
  animation: pulse 2s infinite;
}
.sheet {
  width: min(490px, calc(100vw - 32px));
  max-height: 90dvh;
  border: 1px solid #3b4a5b;
  border-top-color: #a99cfa88;
  border-radius: 7px;
  padding: 26px;
  background: radial-gradient(ellipse at 100% 0, #a99cfa0e, transparent 60%), #111923;
  color: var(--ink);
  box-shadow: 0 25px 100px #000a;
  overflow: auto;
  scrollbar-width: thin;
}
.sheet::backdrop {
  background: #03070bbc;
  backdrop-filter: blur(7px);
}
.sheet-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}
.sheet h2 {
  margin: 8px 0 24px;
}
.sheet-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding-top: 19px;
  margin-top: 23px;
}
.sheet > p {
  color: var(--muted);
  font-size: 12px;
}
.field-hint,
.optional {
  font-size: 10px;
  font-weight: normal;
  color: var(--muted);
  line-height: 1.65;
}
.field-hint {
  margin: 10px 0;
}
.optional {
  float: right;
}
.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.two-fields label {
  margin: 10px 0;
}
.input-action {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #0b1119;
  padding-right: 5px;
}
.input-action:focus-within {
  border-color: var(--cyan);
}
.input-action input {
  border: 0;
  background: none;
  outline: none;
}
.input-action .icon-button {
  font-size: 18px;
  width: 29px;
  height: 29px;
}
.advanced {
  font-size: 11px;
  margin-top: 22px;
  color: var(--muted);
}
.advanced summary {
  cursor: pointer;
  color: #9dafc1;
}
.advanced label {
  margin-top: 15px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin: 18px 0;
}
.check-label input {
  margin: 0;
}
.delete-address {
  font: 12px var(--mono);
  padding: 16px 0;
  color: var(--violet);
  overflow-wrap: anywhere;
}
.task-item {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.task-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
.task-state {
  font: 9px var(--mono);
  color: var(--cyan);
}
.task-description {
  color: var(--muted);
  font-size: 11px;
  margin: 7px 0;
}
.task-item details {
  font-size: 10px;
}
.task-item pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 180px;
  overflow: auto;
  font: 10px/1.6 var(--mono);
}
.toast {
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid #70e8da55;
  background: #15232d;
  color: var(--cyan);
  font-size: 12px;
  padding: 12px 20px;
  border-radius: 5px;
  box-shadow: 0 8px 30px #0007;
  z-index: 30;
  pointer-events: none;
}
.form-error {
  color: var(--red);
  font-size: 12px;
  margin: 14px 0;
}
.wide-sheet {
  width: min(600px, calc(100vw - 32px));
}
.settings-section {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 23px;
}
.token-row {
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 12px;
}
.token-row code {
  font-size: 10px;
  color: var(--muted);
}
.token-row button {
  margin-left: auto;
  font-size: 10px;
}
.inline-form {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.inline-form input {
  flex: 1;
}
.inline-form button {
  flex-shrink: 0;
}
.login-page {
  min-height: 100dvh;
  overflow: auto;
  background:
    radial-gradient(ellipse at 20% 50%, #37436422, transparent 55%), var(--base);
}
.login-brand {
  position: absolute;
  top: 32px;
  left: 38px;
}
.login-layout {
  max-width: 950px;
  padding: 100px 35px;
  min-height: 100dvh;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 65px;
}
.login-ticket {
  padding: 34px;
  border-left: 1px solid #3c4e60;
  background: linear-gradient(120deg, #a99cfa08, transparent);
  border-radius: 0 7px 7px 0;
}
.login-ticket h1 {
  font-size: 31px;
  margin: 14px 0 30px;
}
.login-ticket label {
  margin: 18px 0 7px;
}
.login-ticket .button {
  width: 100%;
  justify-content: space-between;
  margin-top: 27px;
}
.login-visual {
  height: 320px;
  position: relative;
  perspective: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbital {
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px solid #70e8da66;
  border-radius: 50%;
  transform: rotateX(62deg) rotateY(-24deg);
  box-shadow: 0 0 30px #70e8da08;
  animation: orbit 23s linear infinite;
}
.orbital-two {
  width: 190px;
  height: 190px;
  border-color: #a99cfa88;
  transform: rotateX(-34deg) rotateY(55deg);
  animation: orbit-two 29s linear infinite reverse;
}
.orbital-one:before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  left: 15%;
  top: 12%;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--cyan);
}
.orbital-core {
  width: 28px;
  height: 28px;
  background: var(--acid);
  border-radius: 6px;
  transform: rotate(-25deg);
  box-shadow:
    0 0 80px #c6f78b3a,
    inset 0 0 15px #fff5;
}
.orbital-index {
  position: absolute;
  bottom: -12px;
  left: 25px;
  color: #536a7c;
  font: 9px var(--mono);
  letter-spacing: 0.18em;
}
.admin-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 35px 32px 60px;
}
.admin-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-title h1 {
  margin: 10px 0 0;
}
.metrics {
  display: flex;
  gap: 65px;
  padding: 38px 0 30px;
  border-bottom: 1px solid var(--line);
}
.metric {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.metric strong {
  font: 32px var(--mono);
  letter-spacing: -0.08em;
  color: var(--cyan);
}
.metric span {
  font-size: 11px;
  color: var(--muted);
}
.admin-tabs {
  display: flex;
  gap: 28px;
  margin: 20px 0 0;
  border-bottom: 1px solid var(--line);
  overflow: auto;
}
.admin-tabs button {
  padding: 13px 2px;
  color: var(--muted);
  font-size: 12px;
  border-bottom: 1px solid transparent;
}
.admin-tabs button.active {
  color: var(--acid);
  border-color: var(--acid);
}
.admin-content {
  padding-top: 15px;
}
.table-scroll {
  overflow: auto;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
.data-table th {
  font: 10px var(--mono);
  color: var(--muted);
  padding: 16px;
  border-bottom: 1px solid var(--line);
  font-weight: normal;
}
.data-table td {
  padding: 16px;
  border-bottom: 1px solid #23303b77;
  font-size: 12px;
  color: #bac8d5;
}
.data-table td:first-child {
  font-family: var(--mono);
  font-size: 11px;
}
.data-table .text-button {
  font-size: 10px;
}
.data-table tr:hover td {
  background: #70e8da04;
}
.options-form {
  max-width: 500px;
  margin-top: 20px;
}
.options-form > label {
  margin: 20px 0;
}
.options-form > p {
  margin: 22px 0;
}
.admin-notice {
  margin-top: 18px;
}
@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}
@keyframes levels {
  50% {
    transform: scaleY(0.4);
  }
}
@keyframes orbit {
  50% {
    transform: rotateX(56deg) rotateY(24deg) rotateZ(180deg);
  }
  100% {
    transform: rotateX(62deg) rotateY(-24deg) rotateZ(360deg);
  }
}
@keyframes orbit-two {
  50% {
    transform: rotateX(-54deg) rotateY(-35deg) rotateZ(180deg);
  }
  100% {
    transform: rotateX(-34deg) rotateY(55deg) rotateZ(360deg);
  }
}
@media (min-width: 1800px) {
  .mail-desk {
    grid-template-columns: 360px minmax(0, 1fr);
  }
  .workspace {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}
@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .mail-desk {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .masthead nav {
    gap: 15px;
  }
  .address-bar {
    padding: 18px;
  }
  .address-actions {
    gap: 4px;
  }
  .reader-header {
    padding: 24px;
  }
  .metrics {
    gap: 30px;
  }
  .metric {
    gap: 8px;
  }
  .metric strong {
    font-size: 27px;
  }
}
@media (max-width: 780px) {
  .app-page {
    height: auto;
    min-height: 100dvh;
    overflow: auto;
  }
  .masthead {
    height: 64px;
    padding: 0 16px;
    gap: 10px;
  }
  .wordmark {
    font-size: 17px;
    gap: 8px;
  }
  .monogram {
    width: 25px;
    height: 27px;
    font-size: 23px;
  }
  .version-mark {
    display: none;
  }
  .masthead nav {
    gap: 10px;
  }
  .masthead nav > .text-button {
    font-size: 10px;
  }
  .user-button > span:not(.user-avatar) {
    display: none;
  }
  .user-button {
    font-size: 10px;
  }
  .user-avatar {
    width: 23px;
    height: 23px;
  }
  .masthead .icon-button {
    width: 27px;
    height: 27px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
  }
  .mailbox-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px 16px 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px;
  }
  .sidebar-heading {
    padding: 0;
    grid-column: 1;
    gap: 15px;
    justify-content: flex-start;
  }
  .sidebar-heading .icon-button {
    width: 28px;
    height: 28px;
  }
  .scope-label {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
    font-size: 9px;
  }
  .mailbox-tabs {
    flex-direction: row;
    grid-column: 1/-1;
    overflow-x: auto;
    min-height: 43px;
  }
  .mailbox-tab {
    max-width: 220px;
    padding: 10px;
    font-size: 10px;
  }
  .connect-button {
    grid-column: 1/-1;
    padding: 4px 0;
    font-size: 9px;
  }
  .sidebar-signal {
    display: none;
  }
  .address-bar {
    min-height: 100px;
    padding: 17px 16px;
    flex-wrap: wrap;
    gap: 15px;
  }
  .address-value {
    font-size: 15px;
  }
  .address-actions .button {
    font-size: 10px;
    padding: 7px 10px;
    min-height: 33px;
  }
  .mail-desk {
    display: flex;
    flex-direction: column;
  }
  .inbox-panel {
    border-right: 0;
  }
  .message-list {
    max-height: 260px;
    min-height: 180px;
    flex: auto;
  }
  .section-heading {
    height: 55px;
    padding: 0 16px;
  }
  .message-row {
    padding: 16px;
  }
  .reader-panel {
    border-top: 1px solid var(--line);
    min-height: 500px;
    flex: auto;
  }
  .reader-frame {
    height: 470px;
    flex: auto;
    min-height: 350px;
  }
  .reader-header {
    padding: 23px 18px;
  }
  .reader-header h2 {
    font-size: 21px;
  }
  .reader-idle {
    min-height: 380px;
  }
  .reader-idle p {
    margin-bottom: 0;
  }
  .reader-panel > .loading-state {
    min-height: 400px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .address-meta {
    width: 100%;
  }
  .address-actions {
    position: absolute;
    right: 15px;
    margin-top: -54px;
  }
  .address-bar {
    position: relative;
    padding-top: 48px;
  }
  .address-bar .eyebrow {
    position: absolute;
    top: 18px;
    left: 16px;
    max-width: 50%;
    overflow: hidden;
    white-space: nowrap;
    font-size: 8px;
  }
  .address-actions {
    top: 13px;
    margin: 0;
  }
  .address-value {
    margin-top: 6px;
  }
  footer {
    height: 40px;
    padding: 0 17px;
  }
  .sheet {
    padding: 22px;
  }
  .sheet h2 {
    font-size: 23px;
  }
  .two-fields {
    gap: 12px;
  }
  .login-layout {
    gap: 15px;
    grid-template-columns: 1fr;
    max-width: 450px;
    padding: 105px 24px 50px;
  }
  .login-visual {
    height: 180px;
  }
  .orbital {
    width: 200px;
    height: 200px;
  }
  .orbital-two {
    width: 140px;
    height: 140px;
  }
  .orbital-index {
    display: none;
  }
  .login-brand {
    top: 25px;
    left: 25px;
  }
  .login-ticket {
    padding: 26px;
  }
  .login-ticket h1 {
    font-size: 27px;
  }
  .admin-main {
    padding: 25px 17px 50px;
  }
  .admin-title h1 {
    font-size: 24px;
  }
  .admin-title .button {
    font-size: 10px;
    padding: 8px 10px;
  }
  .metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 27px 0;
  }
  .metric strong {
    font-size: 27px;
  }
  .metric span {
    font-size: 10px;
  }
  .admin-tabs {
    gap: 23px;
  }
  .admin-tabs button {
    font-size: 11px;
  }
  .data-table th,
  .data-table td {
    padding: 13px 12px;
  }
  .inline-form {
    flex-wrap: wrap;
  }
  .inline-form button {
    min-width: 100%;
  }
}
@media (max-width: 380px) {
  .masthead nav {
    gap: 6px;
  }
  .masthead nav > .text-button {
    font-size: 9px;
  }
  .wordmark {
    font-size: 15px;
  }
  .address-value {
    font-size: 13px;
  }
  .two-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .button {
    font-size: 11px;
  }
  .sheet-actions {
    gap: 8px;
  }
  .sheet-actions .field-hint {
    font-size: 9px;
  }
  .sheet-actions .button {
    padding: 9px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* SVG frames are centred independently of font line boxes. */
.icon-button {
  display: inline-grid;
  place-items: center;
  padding: 0;
  line-height: 0;
}
.svg-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  overflow: visible;
}
.icon-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  line-height: 0;
  transform: translateY(var(--ink-shift, 0px));
}
.control-label {
  display: inline-block;
  line-height: 20px;
  min-width: 0;
}
.baseline-probe {
  display: inline-block;
  width: 0;
  height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  vertical-align: baseline;
}
.button.with-icon,
.text-button.with-icon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.login-ticket .button {
  min-height: 46px;
}
.login-ticket .button .icon-slot,
.login-ticket .button .svg-icon {
  width: 24px;
  height: 24px;
}
.scope-label,
.auto-label,
.check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 20px;
}
input[type="checkbox"] {
  appearance: none;
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1px solid #4b6070;
  border-radius: 3px;
  background: #0a1119;
  transform: translateY(var(--ink-shift, 0px));
  cursor: pointer;
}
input[type="checkbox"]:checked {
  background-color: var(--acid);
  border-color: var(--acid);
  background-image: url("/static/check.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
}
.scope-label > input,
.auto-label > input,
.check-label > input {
  margin: 0;
}
.dot,
.route-dot {
  transform: translateY(var(--ink-shift, 0px));
}
.mailbox-tab {
  display: flex;
  align-items: center;
}
.mailbox-tab .control-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-button > span:not(.icon-slot):not(.route-dot) {
  line-height: 20px;
}

@media (max-width: 380px) {
  .masthead {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 12px;
  }
  .masthead nav {
    width: 100%;
    justify-content: space-between;
  }
  .mailbox-sidebar {
    grid-template-columns: 1fr;
  }
  .scope-label {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
  .mailbox-tabs,
  .connect-button {
    grid-column: 1;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .login-visual {
    overflow: hidden;
  }
}

.loading-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.loading-mark .svg-icon {
  width: 30px;
  height: 30px;
}

#proxy-fields {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
#proxy-fields > label {
  margin: 18px 0;
}
#proxy-fields:disabled {
  opacity: 0.4;
}
.route-summary {
  font: 10px/1.5 var(--mono);
  color: var(--muted);
  margin-top: 6px;
  overflow-wrap: anywhere;
}
@media (max-width: 780px) {
  .address-bar .eyebrow {
    max-width: calc(100% - 240px);
    text-overflow: ellipsis;
  }
  .route-summary {
    font-size: 9px;
  }
}
