/* Müşteri paneli. Yönetim paneli admin/static/admin.css dosyasındadır. */
:root {
  --bg: #eef2f6;
  --paper: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #1d4ed8;
  --accent-ink: #ffffff;
  --accent-soft: #eff4ff;
  --warn: #fff7ed;
  --warn-ink: #c2410c;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --ok-bg: #ecfdf5;
  --ok-ink: #047857;
  --sidebar: #0b1220;
  --sidebar-text: #cbd5e1;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 28px rgba(15, 23, 42, 0.05);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  visibility: visible;
  color: var(--ink);
  background: var(--bg);
  font: 15px/1.5 "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}
h1, h2, h3 { font-weight: 650; letter-spacing: -0.02em; font-synthesis: none; }
h1 { font-size: 1.45rem; margin: 0; }
h2 { font-size: 1.05rem; margin: 0 0 0.75rem; }
h3 { font-size: 0.95rem; margin: 1.1rem 0 0.5rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, .button, input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }

.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
aside {
  background: var(--sidebar);
  color: var(--sidebar-text);
  padding: 1.15rem 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: white;
  text-decoration: none;
  padding: 0.15rem 0.45rem;
}
.brand:hover { text-decoration: none; }
.mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #3b82f6, #1d4ed8);
  color: white;
  flex: none;
}
.mark svg { width: 20px; height: 20px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1rem; letter-spacing: -0.03em; }
.brand-text small { color: #94a3b8; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
nav { display: flex; flex-direction: column; gap: 0.2rem; }
nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--sidebar-text);
  text-decoration: none;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-weight: 550;
}
nav a svg { width: 18px; height: 18px; opacity: 0.85; }
nav a.is-on, nav a:hover { background: rgba(255, 255, 255, 0.08); color: white; text-decoration: none; }
nav a.is-on { background: #172554; color: #dbeafe; }
nav a.is-on svg { opacity: 1; }
.who {
  margin-top: auto;
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1e293b;
  color: white;
  text-transform: uppercase;
  font-weight: 700;
  flex: none;
}
.who-meta { min-width: 0; }
.who-meta strong {
  display: block;
  color: white;
  font-size: 0.78rem;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 150px;
}
.who-meta .no {
  display: block;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.workspace { min-width: 0; }
main { padding: 1.5rem 1.75rem 3rem; max-width: 1120px; }
.auth {
  min-height: 100vh;
  max-width: none;
  margin: 0;
  padding: 8vh 1rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(37, 99, 235, 0.18), transparent 60%),
    var(--bg);
}
.auth-brand { margin-bottom: 1.1rem; color: var(--ink); }
.auth-brand .brand-text small { color: var(--muted); }
.card, .server, .box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}
.narrow { width: min(420px, 100%); }
.card form { display: flex; flex-direction: column; gap: 0.8rem; }
.card form button { align-self: flex-start; }
.yasak { max-width: 40rem; }
.yasak textarea { width: 100%; min-height: 8rem; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.pagehead { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; flex-wrap: wrap; }
.pack-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.pack .quotas { margin-top: 0.6rem; }
.quotas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7rem; margin-bottom: 1rem; }
.quotas .quota { min-width: 0; }
.quota {
  min-width: 210px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.5rem 0.8rem 0.6rem;
  box-shadow: var(--shadow);
}
.quota-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.quota strong { font-size: 1.15rem; letter-spacing: -0.03em; }
.quota-top span, .quota small { color: var(--muted); font-size: 0.75rem; font-weight: 650; }
.quota small { display: block; margin-top: 0.05rem; }
.bar { height: 6px; background: #e8eef5; border-radius: 999px; overflow: hidden; margin-top: 0.4rem; }
.bar i { display: block; height: 100%; width: 0; background: #0f9f6e; border-radius: 999px; }
.quota.is-full .bar i { background: #d97706; }
.quota.is-full .quota-top span { color: #c2410c; }
.bar i.q0 { width: 0; }
.bar i.q5 { width: 5%; }
.bar i.q10 { width: 10%; }
.bar i.q15 { width: 15%; }
.bar i.q20 { width: 20%; }
.bar i.q25 { width: 25%; }
.bar i.q30 { width: 30%; }
.bar i.q35 { width: 35%; }
.bar i.q40 { width: 40%; }
.bar i.q45 { width: 45%; }
.bar i.q50 { width: 50%; }
.bar i.q55 { width: 55%; }
.bar i.q60 { width: 60%; }
.bar i.q65 { width: 65%; }
.bar i.q70 { width: 70%; }
.bar i.q75 { width: 75%; }
.bar i.q80 { width: 80%; }
.bar i.q85 { width: 85%; }
.bar i.q90 { width: 90%; }
.bar i.q95 { width: 95%; }
.bar i.q100 { width: 100%; }
.pagehead .meter, .meter { margin: 0.25rem 0 0; }
.preview-hold { display: flex; align-items: center; gap: 0.75rem; margin: 0.45rem 0 0; }
.preview-hold label.check { flex-direction: row; align-items: center; gap: 0.4rem; margin: 0; font-weight: 500; }
.preview-hold input[type="checkbox"] { width: auto; padding: 0; }
label, .check { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.86rem; font-weight: 600; color: #334155; }
label.check { flex-direction: row; align-items: center; gap: 0.5rem; }
input, select, textarea {
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-weight: 450;
  color: var(--ink);
}
input:disabled, select:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(37, 99, 235, 0.18);
  border-color: #93c5fd;
}
button, .button {
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  font-weight: 650;
}
button:hover, .button:hover { background: #1e40af; text-decoration: none; }
.button.disabled, .button.disabled:hover { background: #e2e8f0; color: #64748b; cursor: not-allowed; }
button.ghost, .button.ghost { background: white; color: #1e3a8a; border: 1px solid #cbd5e1; }
button.ghost:hover, .button.ghost:hover { background: var(--accent-soft); }
button.danger { background: var(--danger); }
button.icon, a.button.icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
}
button.icon svg { width: 18px; height: 18px; }
button.icon.quiet {
  background: #fff;
  color: #344054;
  border: 1px solid #d0d5dd;
}
button.icon.quiet:hover { background: #f8fafc; }
button.icon.danger { background: #c62828; color: #fff; }
button.icon.danger:hover { background: #b71c1c; }
td.rowacts { white-space: nowrap; }
td.rowacts form, .composer .rowacts form { margin: 0; }
.composer .rowacts, td.rowacts { display: flex; gap: 0.28rem; align-items: center; }
.who button.link, button.link {
  background: none;
  color: #94a3b8;
  padding: 0;
  font-weight: 550;
  font-size: 0.78rem;
}
main button.link { color: var(--danger); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
form.grid, .span.grid { margin-bottom: 1rem; }
form.grid {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem;
  box-shadow: var(--shadow);
}
main > section form.grid { background: transparent; border: 0; padding: 0; box-shadow: none; }
.span { grid-column: 1 / -1; }
.roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  border: 0;
  margin: 0;
  padding: 0;
}
.roles legend { width: 100%; font-size: 0.86rem; font-weight: 650; color: #334155; margin-bottom: 0.15rem; }
.roles label {
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 550;
}
.row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.7rem 0; }
.actions, .actions form { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
th, td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f8fafc; }
th { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: #f8fafc; font-weight: 700; }
.flash, .error, .reveal, .impersonate { padding: 0.75rem 0.9rem; border-radius: 12px; margin-bottom: 0.9rem; }
.flash { background: var(--ok-bg); color: var(--ok-ink); border: 1px solid #a7f3d0; }
.error { background: var(--danger-bg); color: var(--danger); border: 1px solid #fecaca; }
.reveal { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.reveal code { display: block; margin-top: 0.35rem; font-size: 1rem; word-break: break-all; white-space: pre-line; color: var(--ink); }
.impersonate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 0;
  border-radius: 0;
  background: #fff7ed;
  color: #9a3412;
  border-bottom: 1px solid #fed7aa;
}
.muted, .meter { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin: 0 0 1rem; }
.stats article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.stat-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}
.stat-ico svg { width: 18px; height: 18px; }
.stats span { display: block; color: var(--muted); font-size: 0.78rem; font-weight: 650; }
.stats strong { font-size: 1.35rem; letter-spacing: -0.03em; }
.steps { padding-left: 1.2rem; }
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.08rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--warn);
  color: var(--warn-ink);
}
.pill.active, .pill.verified { background: var(--ok-bg); color: var(--ok-ink); }
.pill.suspended { background: var(--danger-bg); color: var(--danger); }
.pill.pending { background: #fff7ed; color: #c2410c; }
.wait { margin: 0.8rem 0 0; background: #fff7ed; color: #9a3412; border: 1px solid #fdba74; border-radius: 12px; padding: 0.7rem 0.9rem; }
.server, .box, main > section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.05rem 1.15rem;
  margin: 0 0 0.9rem;
  box-shadow: var(--shadow);
}
main > section.stats { background: transparent; border: 0; padding: 0; box-shadow: none; }
main > section table { box-shadow: none; }
dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem 1rem; margin: 0; }
dl div { display: flex; justify-content: space-between; gap: 1rem; background: #f8fafc; border-radius: 10px; padding: 0.55rem 0.7rem; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 650; }
.inline { display: flex; gap: 0.45rem; padding: 0; list-style: none; flex-wrap: wrap; }
.inline li { background: var(--accent-soft); color: #1e3a8a; border-radius: 999px; padding: 0.15rem 0.6rem; font-size: 0.82rem; font-weight: 700; }
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 0.8rem; }
.tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 0.7rem 1rem;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.tool:hover { border-color: #93c5fd; text-decoration: none; transform: translateY(-1px); }
.tool.is-off { opacity: 0.55; cursor: default; }
.tool.is-off:hover { transform: none; border-color: var(--line); }
.tool-ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.tool-ico svg { width: 22px; height: 22px; }
.tool strong { font-size: 0.95rem; }
.tool small, .who-line small { color: var(--muted); font-size: 0.78rem; }
.button svg, button svg { width: 16px; height: 16px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 650; }
.db-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.db-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 1.25rem;
  flex-wrap: wrap;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  box-shadow: var(--shadow);
}
.db-card .avatar { background: var(--accent-soft); color: var(--accent); }
.db-card .avatar svg { width: 18px; height: 18px; }
.empty { text-align: center; padding: 2.6rem 1.25rem 2.3rem; }
.empty .tool-ico { margin: 0 auto 0.9rem; width: 56px; height: 56px; border-radius: 18px; }
.empty .tool-ico svg { width: 26px; height: 26px; }
.empty h2 { margin-bottom: 0.3rem; }
.empty p { margin: 0 0 1rem; color: var(--muted); }
.facts { margin-top: 1rem; }
.note { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.86rem; }
.connect { display: flex; flex-direction: column; align-items: flex-start; gap: 0.85rem; }
.connect p { margin: 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.45rem; margin: 0.2rem 0 1rem; }
.checks label {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.55rem;
  row-gap: 0.05rem;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
}
.checks input { grid-row: 1 / span 2; }
.checks small { color: var(--muted); font-weight: 550; font-size: 0.72rem; }
.kicker {
  margin: 0 0 0.1rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lead { display: flex; align-items: center; gap: 0.85rem; }
.mailhead { align-items: center; }
.mailhead-side { display: flex; align-items: center; gap: 0.75rem; }
.mail-quota { min-width: 11.5rem; width: 11.5rem; padding: 0.45rem 0.7rem 0.55rem; }
.mail-quota strong { font-size: 0.95rem; }
.mailtabs {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.15rem;
  border-bottom: 1px solid var(--line);
  margin: 0 0 1rem;
  background: transparent;
}
.mailtabs a, .mailtabs .off {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.85rem 0.55rem;
  margin-bottom: -1px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 650;
  background: transparent;
}
.mailtabs a:hover { color: var(--ink); background: transparent; text-decoration: none; }
.mailtabs a.is-on { color: var(--accent); background: transparent; border-bottom-color: var(--accent); }
.mailtabs .off { color: #94a3b8; cursor: not-allowed; }
.mailtabs em {
  font-style: normal;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 0 0.4rem;
  font-size: 0.72rem;
}
.mailtabs a.is-on em { background: #dbeafe; }
.pattern-help { margin: 0 0 0.2rem; padding-left: 1.15rem; color: var(--muted); }
.pattern-help code { color: var(--ink); }
.list-add { display: flex; gap: 0.55rem; align-items: end; }
.list-add label { flex: 1; }
.list-add button { height: 2.45rem; }
.composer .saved-list { display: flex; flex-direction: column; gap: 0.45rem; }
.composer .saved-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.4rem 0.4rem 0.4rem 0.75rem;
}
.composer .saved-row .addr { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.composer .saved-row form { display: flex; flex-direction: row; flex: 0 0 auto; margin: 0; }
.composer .saved-row button.remove { flex: 0 0 auto; height: 2.2rem; padding: 0 0.85rem; }
.panel { padding: 0; overflow: hidden; }
.panel-bar, .pad { display: flex; justify-content: space-between; gap: 0.8rem; align-items: center; padding: 0.9rem 1rem; }
.panel-bar h2 { margin: 0; }
.panel table, .composer + .panel table { border: 0; box-shadow: none; border-radius: 0; }
.accounts td { vertical-align: middle; }
.who-line { display: flex; align-items: center; gap: 0.7rem; }
.who-line strong, .who-line small { display: block; }
.who-line .avatar { background: var(--accent-soft); color: var(--accent); }
.address { display: flex; align-items: stretch; border: 1px solid #cbd5e1; border-radius: 10px; background: white; overflow: hidden; width: 100%; }
.address input { border: 0; border-radius: 0; flex: 1; min-width: 0; }
.address span { display: flex; align-items: center; padding: 0 0.75rem; background: #f8fafc; color: #334155; border-left: 1px solid var(--line); white-space: nowrap; font-weight: 600; }
.field-note { display: block; margin-top: 0.35rem; color: var(--muted); font-size: 0.82rem; font-weight: 450; }
.quota-field { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 0.45rem; row-gap: 0.35rem; font-size: 0.86rem; font-weight: 600; color: #334155; }
.quota-field > span:first-child, .quota-field > input[type="number"], .quota-field > .field-note { grid-column: 1 / -1; }
.quota-field .unlim:checked ~ input[type="number"],
.quota-field .unlim:checked ~ .field-note { display: none; }
main > section.composer { max-width: 40rem; }
.composer form.mail-open {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.composer label.check { flex-direction: row; align-items: center; gap: 0.45rem; }
.forward-toggle svg, .forward-add svg { width: 16px; height: 16px; }
.mailboxes .rowacts input[name="password"] { width: 11rem; }
pre.letter {
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  max-height: 28rem;
  overflow: auto;
  margin: 0 0 1rem;
}
.forward-panel { display: none; margin-top: 0.75rem; gap: 0.55rem; }
.forward.is-open .forward-panel { display: flex; flex-direction: column; }
.forward-row { display: flex; gap: 0.4rem; align-items: center; }
.forward-row input { flex: 1; min-width: 0; }
.forward-add { align-self: flex-start; }
.composer textarea { width: 100%; min-height: 4.6rem; resize: vertical; }
.checkline { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.catchall { display: flex; gap: 0.6rem; align-items: center; max-width: 36rem; margin: 0; }
.catchall input { flex: 1; min-width: 0; }
.mailpanel { margin-bottom: 1rem; }
.mailboxes td small { display: block; color: var(--muted); font-size: 0.78rem; }
.mailboxes .addr { font-weight: 650; }
.mailboxes .rowacts { text-align: right; white-space: nowrap; }
.mailboxes .rowacts .actions, .mailboxes .rowacts { display: flex; justify-content: flex-end; gap: 0.35rem; align-items: center; }
.mailboxes .pill { margin-right: 0.25rem; }
.mailboxes button.link { padding: 0.35rem 0.45rem; font-size: 0.86rem; }
main > section.ftpsets {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
}
.ftp-pass {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 0.95rem 1.05rem;
}
.ftp-pass label, .ftp-pass input { width: 100%; }
.ftp-pass .muted { margin: 0; font-size: 0.82rem; }
main > section.mailsets {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0.4rem 0 0;
  margin-top: 1.4rem;
}
.mailset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.mailset {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.mailset header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  background: #f8fafc;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0.95rem;
  font-weight: 700;
}
.mailset dl { display: block; margin: 0; padding: 0.35rem 0.95rem 0.55rem; }
.mailset dl div {
  display: grid;
  grid-template-columns: 8.2rem 1fr;
  gap: 0.5rem;
  background: transparent;
  border-radius: 0;
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--line);
}
.mailset dl div:last-child { border-bottom: 0; }
.mailset dt { color: var(--muted); font-weight: 600; }
.mailset dd { margin: 0; font-weight: 650; }
.address .pre { align-self: stretch; display: flex; align-items: center; background: #f1f5f9; color: var(--ink); border-right: 1px solid #cbd5e1; }
input[type="checkbox"] { width: 1.05rem; height: 1.05rem; padding: 0; margin: 0; accent-color: #1d4ed8; flex: none; }
.priv-gate { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 0.55rem; row-gap: 0.75rem; }
.priv-gate .priv-pick { grid-column: 1 / -1; margin: 0; }
.full-toggle:checked ~ .priv-pick { display: none; }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.2rem; align-items: start; }
.composer form, .split form { display: flex; flex-direction: column; gap: 0.8rem; }
ul { padding-left: 1.1rem; }
ul li form { display: inline; }
details summary { cursor: pointer; font-weight: 650; }
dialog.confirm {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.3rem 1.1rem;
  width: min(24rem, calc(100vw - 2rem));
  color: var(--ink);
  background: white;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}
dialog.confirm::backdrop { background: rgba(15, 23, 42, 0.48); }
dialog.confirm h2 { margin: 0 0 0.35rem; font-size: 1.05rem; }
dialog.confirm p { margin: 0 0 1.05rem; color: var(--muted); line-height: 1.45; }
dialog.confirm .actions { display: flex; justify-content: flex-end; gap: 0.45rem; }
dialog.confirm form { display: flex; flex-direction: column; gap: 0.75rem; }
dialog.confirm label { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 650; }
dialog.confirm input { width: 100%; }
.svc { display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem; }
.svc-row { display: flex; gap: 0.25rem; }
.marklet {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #fff;
  color: #344054;
}
.marklet svg { width: 18px; height: 18px; }
.marklet.gate svg { width: 18px; height: 18px; }
.marklet.arrow { color: #1f4fd8; border-color: #c7d7fe; background: #eef3ff; }
button.power {
  width: 3.15rem;
  height: 1.22rem;
  padding: 0;
  border-radius: 3px;
  border: 1px solid #7d9a4e;
  background: linear-gradient(90deg, #f7f7f7 0 50%, #8fbf45 50% 100%);
  color: #1f2937;
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}
button.power span { display: block; width: 50%; text-align: center; }
button.power.is-on span { margin-right: auto; }
button.power.is-off {
  border-color: #c5ccd6;
  background: linear-gradient(90deg, #e5e7eb 0 50%, #f7f7f7 50% 100%);
  color: #667085;
}
button.power.is-off span { margin-left: auto; }
td.rowacts dialog { margin: 0; }
@media (max-width: 900px) {
  .shell { display: block; }
  aside { position: static; height: auto; }
  nav { flex-direction: row; overflow: auto; }
  nav a span { display: none; }
  .who { display: none; }
  .grid, .stats, dl, .split, .mailset-grid { grid-template-columns: 1fr; }
  .mailhead-side { width: 100%; justify-content: space-between; }
  .mailboxes .rowacts { white-space: normal; }
  .quotas { grid-template-columns: 1fr 1fr; }
  main { padding: 1rem; }
  .impersonate { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .quotas { grid-template-columns: 1fr; }
}
