/* MAILQIN — tampilan mengikuti generator.email (token warna & ukuran asli) */

/* Font di-host sendiri: tidak ada request ke pihak ketiga. */
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ubuntu-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ubuntu-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/ubuntu-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --c-brand: #5cb85c;
  --c-brand-600: #4cae4c;
  --c-brand-700: #449d44;
  --c-brand-050: rgba(92, 184, 92, 0.1);
  --c-accent: #3498db;
  --c-accent-600: #2b8ac8;
  --c-danger: #d9534f;
  --c-ink: #777777;
  --c-ink-soft: #55595c;
  --c-heading: #4e5054;
  --c-muted: #898989;
  --c-line: #d8d8d8;
  --c-line-2: #e5e9ef;
  --c-bg: #ffffff;
  --c-bg-soft: #f6f8fa;
  --c-card: #ffffff;
  --c-header-bg: #4285f4;
  --c-header-ink: #ffffff;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --sh-1: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.09);
  --sh-2: 0 6px 16px rgba(16, 24, 40, 0.09), 0 2px 6px rgba(16, 24, 40, 0.06);
  --tr: 0.18s ease;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --fs-xs: clamp(0.875rem, 0.84rem + 0.12vw, 1rem);
  --fs-sm: clamp(0.9375rem, 0.9rem + 0.15vw, 1.125rem);
  --fs-ui: clamp(1rem, 0.95rem + 0.2vw, 1.25rem);
  --fs-body: clamp(1.0625rem, 1rem + 0.25vw, 1.375rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100vh;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: Ubuntu, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--c-accent);
  text-decoration: none;
  transition: color var(--tr);
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  color: var(--c-heading);
}

p {
  margin: 0 0 0.8em;
}

code {
  font-size: 0.9em;
  background: rgba(52, 152, 219, 0.08);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

/* ---------------------------------- layout --------------------------------- */

.mq-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

@media (min-width: 1600px) {
  .mq-container {
    max-width: 1320px;
  }
}

@media (min-width: 1920px) {
  .mq-container {
    max-width: 1520px;
  }
}

/* ----------------------------------- nav ----------------------------------- */

.mq-nav {
  position: relative;
  z-index: 1000;
  background: var(--c-header-bg);
  color: var(--c-header-ink);
  padding: 0.35rem 1rem;
  margin-bottom: 1rem;
}

.mq-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1140px;
  margin: 0 auto;
}

.mq-logo a {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--c-header-ink);
  letter-spacing: 0.01em;
}

.mq-logo a:hover {
  text-decoration: none;
  color: #fff;
}

.mq-nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-inline-start: auto;
}

.mq-nav-menu > a,
.mq-nav-menu > button {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.4em 0.7em;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-family: inherit;
  font-size: 1.02rem;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.mq-nav-menu > a:hover,
.mq-nav-menu > button:hover,
.mq-nav-menu > button[aria-expanded='true'] {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  text-decoration: none;
}

.mq-nav-ico {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

/* ----------------------------------- card ---------------------------------- */

.mq-email-edit {
  max-width: 960px;
  margin: 0 auto 1rem;
  padding: clamp(1.1rem, 0.8rem + 1.2vw, 2rem);
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  text-align: center;
}

.mq-h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  line-height: 1.2;
  font-weight: 400;
}

.mq-sub {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--c-muted);
}

/* ------------------------------ email selector ----------------------------- */

.mq-coserch {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  margin-top: 1rem;
  padding-bottom: 1rem;
}

.mq-email-field-group {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  height: 2.5rem;
  background: #fff;
  border: 1px solid var(--c-line-2);
  border-right: 0;
  border-radius: 0.25rem 0 0 0.25rem;
}

.mq-email-field-group:focus-within {
  border-color: var(--c-brand);
  box-shadow: inset 0 0 0 1px var(--c-brand);
}

.mq-email-field-group input {
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  outline: 0;
  font-family: inherit;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--c-accent);
}

.mq-input-user {
  flex: 1 1 0;
  padding: 0 0.1rem 0 0.6rem;
  text-align: right;
}

.mq-at {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 0.15rem;
  font-size: 1.05rem;
  color: var(--c-accent);
  user-select: none;
}

.mq-dom-wrap {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

.mq-input-domain {
  width: 100%;
  padding: 0 0.6rem 0 0.15rem;
  text-align: left;
}

.mq-dropselect {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--c-line-2);
  border-left: 0;
  border-radius: 0 5px 5px 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23ffffff'><polygon points='0,0 100,0 50,60'/></svg>")
    center no-repeat var(--c-brand);
  background-size: 12px;
  background-position-y: 60%;
  cursor: pointer;
}

.mq-dropselect:hover {
  background-color: var(--c-brand-600);
}

/* --------------------------- dropdown domain list -------------------------- */

.mq-tt-menu {
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  right: 0;
  z-index: 1000;
  max-height: 15rem;
  overflow-y: auto;
  padding: 0.2rem 0;
  background: #fff;
  border: 1px solid var(--c-line-2);
  border-radius: 0.25rem;
  box-shadow: 0 8px 12px rgba(60, 64, 67, 0.15), 0 4px 4px rgba(60, 64, 67, 0.3);
  text-align: left;
}

.mq-tt-item {
  display: block;
  width: 100%;
  padding: 0.35rem 0.6rem;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  color: var(--c-ink-soft);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.mq-tt-item:hover,
.mq-tt-item.is-active {
  background: #f4f4f4;
  color: var(--c-accent);
}

.mq-tt-item mark {
  background: rgba(52, 152, 219, 0.16);
  color: var(--c-accent);
  font-weight: 600;
}

.mq-tt-sep {
  border-top: 1px solid var(--c-line-2);
  margin-top: 0.2rem;
  padding-top: 0.2rem;
}

.mq-tt-add {
  color: var(--c-brand-700);
  font-weight: 600;
}

/* --------------------------------- buttons --------------------------------- */

.mq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  height: 2.5rem;
  padding: 0.4rem 1.05rem;
  border: 1px solid var(--c-line-2);
  border-radius: 5px;
  background: #fff;
  color: var(--c-ink-soft);
  font-family: inherit;
  font-size: 1.05rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--tr), border-color var(--tr), color var(--tr), box-shadow var(--tr);
}

.mq-btn:hover {
  background: var(--c-bg-soft);
}

.mq-btn:active {
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.12);
}

.mq-btn-success {
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: #fff;
}

.mq-btn-success:hover {
  background: var(--c-brand-600);
  border-color: var(--c-brand-600);
}

.mq-btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.mq-pair-l {
  margin-left: 0.5rem;
  border-radius: 5px 0 0 5px;
}

.mq-pair-r {
  border-left: 0;
  border-radius: 0 5px 5px 0;
}

.mq-shareqr {
  width: 2.5rem;
  padding: 0;
  background: var(--c-bg-soft);
  color: #42526b;
}

.mq-shareqr:hover {
  background: #eaeef2;
  color: #152a49;
}

/* -------------------------------- address pill ----------------------------- */

.mq-email-line {
  margin: 0.1rem 0 0.5rem;
  line-height: 1.4;
}

.mq-select-all {
  display: inline-block;
  max-width: 100%;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--c-line-2);
  border-radius: 1rem;
  color: var(--c-ink-soft);
  font-size: 1.125rem;
  cursor: pointer;
  user-select: all;
  direction: ltr;
  unicode-bidi: isolate;
  overflow-wrap: anywhere;
}

.mq-note {
  margin: 0.35rem auto 0;
  max-width: 40rem;
  font-size: var(--fs-xs);
  color: #6b7280;
}

.mq-note .mq-ico-inline {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  margin-right: 0.25em;
  border-radius: 50%;
  background: rgba(52, 152, 219, 0.12);
  color: var(--c-accent);
  font-size: 0.8em;
  line-height: 1;
  text-align: center;
  font-style: normal;
}

/* ------------------------------- status row -------------------------------- */

.mq-conn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  min-height: 2rem;
}

.mq-domain-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--fs-xs);
  color: #2f7d32;
  opacity: 0;
  transition: opacity 0.25s ease-out;
}

.mq-domain-status.is-on {
  opacity: 1;
}

.mq-ws-ind {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  padding: 0.22rem 0.55rem;
  border: 1px solid #dde4ec;
  border-radius: 999px;
  background: var(--c-bg-soft);
  color: #57606a;
  font-size: var(--fs-xs);
  line-height: 1;
  user-select: none;
}

.mq-ws-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #9aa3ad;
}

.mq-ws-ind.is-online .mq-ws-dot {
  background: #2f9e44;
  box-shadow: 0 0 0 3px rgba(47, 158, 68, 0.16);
  animation: mq-pulse 2s ease-out infinite;
}

.mq-ws-ind.is-offline .mq-ws-dot {
  background: var(--c-danger);
}

@keyframes mq-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 158, 68, 0.35);
  }
  100% {
    box-shadow: 0 0 0 6px rgba(47, 158, 68, 0);
  }
}

.mq-action-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.mq-spin {
  transition: transform 0.45s ease;
}

.mq-btn:hover .mq-spin {
  transform: rotate(360deg);
}

.mq-btn.is-busy .mq-spin {
  animation: mq-spin 0.9s linear infinite;
}

@keyframes mq-spin {
  to {
    transform: rotate(360deg);
  }
}

/* -------------------------------- inbox table ------------------------------ */

.mq-inbox {
  max-width: 960px;
  margin: 1rem auto 1.5rem;
  border-radius: 0.25rem;
  box-shadow: 0 8px 12px -12px rgba(60, 64, 67, 0.15), 0 4px 4px -4px rgba(60, 64, 67, 0.3);
  overflow: hidden;
}

.mq-list-item {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 15px;
  border: 0;
  border-top: 1px solid #ddd;
  background: #fff;
  color: var(--c-ink);
  font-family: inherit;
  font-size: var(--fs-sm);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.12s, color 0.12s;
}

.mq-list-head {
  background: var(--c-accent);
  color: #fff;
  border-top: 0;
  border-radius: 0.25rem 0.25rem 0 0;
  cursor: default;
  font-size: 1rem;
}

.mq-list-item:not(.mq-list-head):hover {
  background: #d0e9c6;
  color: var(--c-accent);
}

.mq-list-item.mq-unread {
  background: #dff0d8;
  color: #3c763d;
  font-weight: 600;
}

.mq-list-item.mq-row-new {
  animation: mq-row-in 0.4s ease;
}

@keyframes mq-row-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
    background: #fff8c5;
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.mq-from,
.mq-subj,
.mq-time {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mq-from {
  flex: 0 0 22%;
  padding-right: 0.6rem;
}

.mq-subj {
  flex: 1 1 auto;
  padding-right: 0.6rem;
}

.mq-time {
  flex: 0 0 22%;
  text-align: end;
  font-variant-numeric: tabular-nums;
}

.mq-clip {
  margin-right: 0.3em;
  opacity: 0.65;
}

.mq-empty {
  padding: 2.2rem 1rem;
  background: #fff;
  text-align: center;
  color: var(--c-muted);
  font-size: var(--fs-sm);
  border-top: 1px solid #ddd;
}

.mq-empty strong {
  color: var(--c-ink-soft);
  font-weight: 600;
}

/* ---------------------------------- reader --------------------------------- */

.mq-reader {
  max-width: 960px;
  margin: 1rem auto 1.5rem;
  padding: clamp(1.1rem, 0.8rem + 1vw, 1.8rem);
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  text-align: left;
}

.mq-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-bottom: 0.8rem;
  font-size: var(--fs-sm);
}

.mq-msg-subject {
  margin: 0 0 0.7rem;
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem);
  line-height: 1.3;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.mq-msg-meta {
  display: grid;
  gap: 0.2rem;
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
  overflow-wrap: anywhere;
}

.mq-meta-k {
  display: inline-block;
  min-width: 4.2rem;
  color: var(--c-muted);
}

.mq-msg-divider {
  height: 1px;
  margin: 1rem 0;
  background: var(--c-line-2);
  border: 0;
}

.mq-msg-frame {
  width: 100%;
  min-height: 320px;
  border: 0;
  background: #fff;
}

.mq-msg-text {
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: var(--fs-sm);
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--c-ink-soft);
}

.mq-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.mq-attach {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--c-line-2);
  border-radius: 8px;
  background: var(--c-bg-soft);
  font-size: var(--fs-xs);
  color: var(--c-ink-soft);
}

.mq-msg-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--c-line-2);
}

.mq-btn-danger {
  border-color: #e8c4c4;
  background: #fcefef;
  color: #a04040;
}

.mq-btn-danger:hover {
  background: #f5dada;
  border-color: #d4a8a8;
}

/* --------------------------------- panels ---------------------------------- */

.mq-panel {
  position: fixed;
  top: 3.4rem;
  right: max(0.5rem, calc((100vw - 1160px) / 2));
  z-index: 1200;
  width: min(26rem, calc(100vw - 1rem));
  max-height: min(82vh, calc(100vh - 4.5rem));
  overflow-y: auto;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.2), 0 2px 8px rgba(16, 24, 40, 0.1);
  font-size: var(--fs-sm);
  text-align: start;
}

.mq-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-bg-soft);
  border-radius: 12px 12px 0 0;
  font-weight: 600;
  color: var(--c-ink-soft);
}

.mq-panel-close {
  border: 0;
  background: transparent;
  color: var(--c-muted);
  font-size: 1.4rem;
  line-height: 1;
  padding: 0 0.2rem;
  cursor: pointer;
}

.mq-panel-close:hover {
  color: var(--c-danger);
}

.mq-panel-body {
  padding: 0.85rem 0.9rem 1rem;
}

.mq-empty-hint {
  margin: 0;
  color: var(--c-muted);
  font-size: var(--fs-sm);
}

/* settings rows */

.mq-noti-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.7rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--c-line);
  font-size: var(--fs-sm);
  line-height: 1.35;
}

.mq-noti-row:last-child {
  border-bottom: 0;
}

.mq-noti-label {
  flex: 1 1 8rem;
  min-width: 0;
  color: var(--c-ink);
}

.mq-info-badge {
  display: inline-block;
  width: 1.05rem;
  height: 1.05rem;
  margin-left: 0.2rem;
  border-radius: 50%;
  background: rgba(52, 152, 219, 0.14);
  color: var(--c-accent);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.05rem;
  text-align: center;
  cursor: help;
  vertical-align: 0.05em;
}

/* toggle switch */

.mq-toggler {
  flex: 0 0 auto;
  display: inline-flex;
}

.mq-toggler input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.mq-toggler label {
  position: relative;
  display: block;
  width: 44px;
  height: 24px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-bg-soft);
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.mq-toggler label::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.25);
  transform: translateY(-50%);
  transition: left 0.18s ease;
}

.mq-toggler input:checked + label {
  background: var(--c-brand);
  border-color: var(--c-brand);
}

.mq-toggler input:checked + label::after {
  left: 23px;
}

.mq-toggler input:focus-visible + label {
  box-shadow: 0 0 0 3px rgba(92, 184, 92, 0.35);
}

/* recent mailboxes */

.mq-recent-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.25rem;
}

.mq-recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
  border-radius: 6px;
  font-size: var(--fs-sm);
  color: var(--c-accent);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.mq-recent-item:hover {
  background: var(--c-brand-050);
  text-decoration: none;
}

.mq-recent-item small {
  color: var(--c-muted);
  font-size: 0.8em;
  flex: 0 0 auto;
}

.mq-recent-foot {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--c-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  color: var(--c-muted);
}

/* --------------------------------- content --------------------------------- */

.mq-home-lead {
  max-width: 760px;
  margin: 1.2rem auto 0;
  font-size: 1.15rem;
  line-height: 1.6;
  text-align: center;
}

.mq-strike {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 1rem;
}

.mq-strike::before,
.mq-strike::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--c-line);
}

.mq-strike h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 400;
  white-space: nowrap;
}

.mq-useful {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem 1.5rem;
  margin: 1rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.mq-useful li {
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.9;
}

.mq-useful li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 14px;
  background: no-repeat center/contain
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%2318982e' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>");
}

.mq-blog-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  max-width: 900px;
  margin: 0.5rem auto 1.5rem;
}

.mq-blog-tile {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  color: var(--c-ink);
  text-decoration: none;
  transition: border-color var(--tr), box-shadow var(--tr);
}

.mq-blog-tile:hover {
  border-color: var(--c-accent);
  box-shadow: var(--sh-1);
  text-decoration: none;
}

.mq-blog-tile .mq-tile-ico {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border-radius: 6px;
  background: var(--c-brand-050);
  display: grid;
  place-items: center;
  color: var(--c-brand-700);
}

.mq-tile-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mq-tile-title {
  margin-bottom: 0.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-accent);
}

.mq-tile-sum {
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--c-muted);
}

.mq-faq {
  max-width: 820px;
  margin: 0 auto;
}

.mq-faq h3 {
  margin: 1.3rem 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.mq-faq p {
  margin: 0 0 0.4rem;
  line-height: 1.6;
}

.mq-diff-list {
  max-width: 820px;
  margin: 0.5rem auto 1rem;
  padding-left: 1.1rem;
  line-height: 1.65;
}

/* --------------------------------- footer ---------------------------------- */

.mq-footer {
  margin-top: auto;
  padding: 1.1rem 1rem;
  border-top: 1px solid var(--c-line);
  background: var(--c-bg-soft);
  color: #57606a;
  font-size: var(--fs-sm);
  text-align: center;
}

.mq-footer a,
.mq-footer button {
  padding: 0 0.4rem;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.mq-footer a:hover,
.mq-footer button:hover {
  color: #0969da;
  text-decoration: none;
}

/* ---------------------------------- toast ---------------------------------- */

.mq-toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  z-index: 3000;
  transform: translateX(-50%);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(33, 37, 41, 0.94);
  color: #fff;
  font-size: var(--fs-xs);
  box-shadow: var(--sh-2);
  animation: mq-toast-in 0.2s ease;
}

@keyframes mq-toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ---------------------------------- modal ---------------------------------- */

.mq-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(16, 24, 40, 0.45);
}

.mq-modal-card {
  width: min(34rem, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.2rem;
  background: #fff;
  border-radius: var(--r);
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.24);
  text-align: start;
}

.mq-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.mq-modal-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.mq-modal-sub {
  margin: 0 0 1rem;
  font-size: var(--fs-sm);
  color: var(--c-muted);
}

/* --------------------------------- wizard ---------------------------------- */

.mq-steps {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
  padding: 0;
  list-style: none;
  counter-reset: mq-step;
}

.mq-steps li {
  flex: 1 1 0;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--c-line-2);
  border-radius: 6px;
  background: var(--c-bg-soft);
  color: var(--c-muted);
  font-size: 0.78rem;
  line-height: 1.25;
  text-align: center;
}

.mq-steps li.is-done {
  border-color: #b7e0b7;
  background: var(--c-brand-050);
  color: var(--c-brand-700);
}

.mq-steps li.is-current {
  border-color: var(--c-brand);
  background: #fff;
  color: var(--c-brand-700);
  font-weight: 600;
  box-shadow: 0 0 0 2px rgba(92, 184, 92, 0.15);
}

.mq-field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.mq-field label {
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
}

.mq-input {
  width: 100%;
  height: 2.5rem;
  padding: 0 0.6rem;
  border: 1px solid var(--c-line-2);
  border-radius: 5px;
  font-family: inherit;
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
}

.mq-input:focus {
  outline: 0;
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px rgba(92, 184, 92, 0.18);
}

.mq-detected {
  margin: 0 0 0.8rem;
  font-size: var(--fs-sm);
}

.mq-dns-table {
  width: 100%;
  margin-bottom: 0.7rem;
  border-collapse: collapse;
  font-size: var(--fs-xs);
}

.mq-dns-table th,
.mq-dns-table td {
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--c-line-2);
  text-align: left;
  vertical-align: top;
}

.mq-dns-table th {
  width: 6.5rem;
  background: var(--c-bg-soft);
  font-weight: 600;
  color: var(--c-ink-soft);
}

.mq-copy-field {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mq-copy-field code {
  flex: 1 1 auto;
  padding: 0.25rem 0.4rem;
  font-size: 0.95em;
  overflow-wrap: anywhere;
}

.mq-btn-sm {
  height: 1.9rem;
  padding: 0 0.55rem;
  font-size: 0.82rem;
}

.mq-hint {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 0.7rem;
  margin: 0.7rem 0;
  border: 1px solid #ffe0a3;
  border-radius: 8px;
  background: #fff8e6;
  color: #7a4b00;
  font-size: var(--fs-xs);
  line-height: 1.45;
}

.mq-ok {
  border-color: #b7e0b7;
  background: #f0fbf0;
  color: #1a6b1a;
}

.mq-err {
  border-color: #efc4c4;
  background: #fdf0f0;
  color: #a04040;
}

.mq-modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 1rem;
}

.mq-modal-actions .mq-spacer {
  flex: 1 1 auto;
}

/* ----------------------------------- qr ------------------------------------ */

.mq-qr-body {
  display: grid;
  place-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0;
  text-align: center;
}

.mq-qr-body img {
  width: 220px;
  height: 220px;
  border: 1px solid var(--c-line-2);
  border-radius: 8px;
  background: #fff;
}

.mq-qr-fallback {
  padding: 1rem;
  border: 1px dashed var(--c-line);
  border-radius: 8px;
  color: var(--c-muted);
  font-size: var(--fs-sm);
  overflow-wrap: anywhere;
}

/* -------------------------------- responsive ------------------------------- */

@media (max-width: 900px) {
  .mq-nav-inner {
    flex-wrap: wrap;
  }
  .mq-useful {
    grid-template-columns: repeat(2, 1fr);
  }
  .mq-blog-tiles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .mq-nav-ico {
    display: none;
  }
  .mq-nav-menu > a,
  .mq-nav-menu > button {
    padding: 0.4em 0.5em;
  }
}

@media (max-width: 700px) {
  .mq-panel {
    top: 3.2rem;
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
    max-width: none;
  }
  .mq-useful {
    grid-template-columns: 1fr;
  }
  .mq-strike h2 {
    white-space: normal;
    text-align: center;
    font-size: 1.15rem;
  }
}

@media (max-width: 600px) {
  .mq-nav-menu > a.mq-nav-new-domain {
    display: none;
  }
  .mq-email-edit {
    padding: 1rem;
    margin-left: 0.75rem;
    margin-right: 0.75rem;
    border-radius: 8px;
  }
  .mq-email-field-group,
  .mq-dropselect,
  .mq-btn {
    height: 2.3rem;
  }
  .mq-email-field-group input {
    font-size: 1.25rem;
  }
  .mq-btn {
    padding: 0.3rem 0.7rem;
    font-size: 0.98rem;
  }
  .mq-shareqr {
    width: 2.3rem;
  }
  .mq-list-item {
    padding: 10px 8px;
    font-size: 0.95rem;
  }
  .mq-from {
    flex-basis: 30%;
  }
  .mq-time {
    flex-basis: 26%;
  }
  .mq-select-all {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .mq-nav-menu > a,
  .mq-nav-menu > button {
    font-size: 0.88rem;
    padding: 0.35em 0.4em;
  }
  .mq-gen-long {
    display: none;
  }
  .mq-list-head {
    font-size: 0.85rem;
  }
  .mq-steps li {
    font-size: 0.7rem;
    padding: 0.3rem 0.25rem;
  }
}

@media (min-width: 481px) {
  .mq-gen-short {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
