/* Mail Setup Portal - polished v2026-02-18p */
:root{
  --bg: #f6f8fc;
  --panel: rgba(255,255,255,.92);
  --panelSolid: #ffffff;
  --text: #0b1220;
  --muted: #556274;
  --line: rgba(2, 6, 23, .12);
  --brand: #1d4ed8;
  --brand2: #2563eb;
  --shadow: 0 12px 34px rgba(2,6,23,.08);
  --shadow2: 0 6px 18px rgba(2,6,23,.06);
  --radius: 18px;
  --radius2: 14px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 520px at 15% -10%, rgba(29,78,216,.18), transparent 65%),
    radial-gradient(900px 500px at 90% 0%, rgba(37,99,235,.14), transparent 60%),
    var(--bg);
}

a{color:inherit}
.page{max-width:1160px;margin:0 auto;padding:22px 16px 60px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.header{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.68);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.brand{display:flex; align-items:center; gap:12px; min-width: 240px}
.brand-icon{
  width:42px; height:42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(29,78,216,.18), rgba(37,99,235,.10));
  border:1px solid rgba(29,78,216,.22);
  display:flex; align-items:center; justify-content:center;
  color: var(--brand);
}
.brand-icon svg{width:22px;height:22px}
.brand-title{font-weight:800; letter-spacing:-.2px}
.brand-sub{font-size:12px;color:var(--muted);margin-top:2px}

.chips{display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end}
.chip{
  display:flex; gap:8px; align-items:baseline;
  padding:8px 10px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.78);
  font-size:13px;
}
.chip span{color:var(--muted)}
.chip strong{font-weight:800}

.hero{
  margin-top:14px;
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}
@media (min-width: 980px){
  .hero{grid-template-columns: 1.25fr .75fr; align-items:stretch;}
}

.hero-main{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow2);
  padding:18px;
}
.hero-side{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow2);
  padding:18px;
}

h1{
  margin:2px 0 8px;
  font-size: clamp(26px, 3.4vw, 34px);
  line-height:1.15;
  letter-spacing:-.6px;
}
.lead{
  margin:0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.hero-form{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.input{
  flex:1 1 320px;
  min-width: 240px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 16px;
  outline:none;
}
.input:focus{border-color: rgba(29,78,216,.6); box-shadow: 0 0 0 4px rgba(29,78,216,.12)}

.btn{
  appearance:none;
  border:0;
  cursor:pointer;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  user-select:none;
}
.btn.primary{background: var(--brand); color:#fff; box-shadow: 0 10px 24px rgba(29,78,216,.18)}
.btn.primary:hover{filter:brightness(.98)}
.btn.ghost{
  background: rgba(255,255,255,.85);
  border: 1px solid var(--line);
  color: var(--text);
}
.btn.ghost:hover{filter:brightness(.99)}
.btn.disabled{opacity:.55; cursor:not-allowed}

.hint{
  margin-top:10px;
  font-size: 12.5px;
  color: var(--muted);
}

.callout{
  border:1px solid rgba(29,78,216,.18);
  background: linear-gradient(180deg, rgba(29,78,216,.10), rgba(255,255,255,.0));
  border-radius: var(--radius2);
  padding:14px;
}
.callout-title{font-weight:900; color:#0b1b44; letter-spacing:-.2px}
.callout-body{margin-top:6px; color:var(--muted); line-height:1.6; font-size:14px}
.callout-meta{margin-top:10px; font-size:12.5px; color:var(--muted)}

.main-grid{
  margin-top:14px;
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}
@media (min-width: 980px){
  .main-grid{grid-template-columns: 1fr 420px; align-items:start;}
}

.panel{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow2);
  padding:16px;
}

.panel-head h2{
  margin:0 0 6px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing:-.2px;
}
.muted{margin:0;color:var(--muted);font-size:14px;line-height:1.6}
.small{font-size:12.5px;color:var(--muted);line-height:1.5}

.device-grid{
  margin-top:14px;
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}
@media (min-width: 720px){
  .device-grid{grid-template-columns: 1fr 1fr;}
}

.device{
  border:1px solid var(--line);
  border-radius: var(--radius2);
  background: rgba(255,255,255,.75);
  padding:14px;
}
.device-top{display:flex; gap:12px; align-items:flex-start}
.device-ico{
  width:40px;height:40px;border-radius:14px;
  background: rgba(29,78,216,.10);
  border:1px solid rgba(29,78,216,.16);
  display:flex;align-items:center;justify-content:center;
  color: var(--brand);
  flex:0 0 auto;
}
.device-ico svg{width:22px;height:22px}
.device-title{font-weight:900; letter-spacing:-.2px}
.device-sub{margin-top:2px; font-size:12.5px; color:var(--muted)}
.device-text{margin:10px 0 0; color:var(--muted); font-size:13.5px; line-height:1.6}
.device-actions{margin-top:12px; display:flex; gap:10px; flex-wrap:wrap}

.qr-details{
  margin-top:10px;
  border-top:1px dashed rgba(2,6,23,.12);
  padding-top:10px;
}
.qr-details summary{
  cursor:pointer;
  font-weight:800;
  font-size:13px;
  color:#0b1b44;
  list-style:none;
}
.qr-details summary::-webkit-details-marker{display:none}
.qr-wrap{display:grid; gap:10px; justify-items:center; padding-top:10px}

.mini-note{
  margin-top:14px;
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid rgba(2,6,23,.10);
  background: rgba(255,255,255,.65);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.sticky{position:relative}
@media (min-width: 980px){
  .sticky{position: sticky; top: 14px;}
}

.settings{display:grid; gap:10px; margin-top:12px}

.setting{
  display:grid;
  grid-template-columns: 1fr;
  gap:8px;
  padding:12px 12px;
  border:1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.78);
}
@media (min-width: 520px){
  .setting{grid-template-columns: 140px 1fr auto; align-items:center;}
}
.setting-label{font-weight:900; font-size:13px; color:#22304a}
.setting-value{min-width:0}
.mono{
  font-family: var(--mono);
  font-size: 13px;
  color: #0b1220;
  overflow-wrap:anywhere;
  word-break: normal;
}
.meta{margin-top:4px; font-size:12.5px; color:var(--muted); line-height:1.45}

.iconbtn{
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid var(--line);
  background:#fff;
  cursor:pointer;
  font-weight:850;
}
.iconbtn:disabled{opacity:.55; cursor:not-allowed}
.iconbtn:hover{filter:brightness(.99)}
.iconbtn[data-copied="1"]{border-color: rgba(16,185,129,.55); box-shadow: 0 0 0 4px rgba(16,185,129,.14)}

.note{
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid rgba(16,185,129,.30);
  background: rgba(16,185,129,.08);
  color:#0b3a2a;
  font-size: 13.5px;
  line-height: 1.55;
}

.accordion{
  margin-top:10px;
  border:1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.78);
  overflow:hidden;
}
.accordion + .accordion{margin-top:10px}
.accordion summary{
  cursor:pointer;
  padding:12px 12px;
  font-weight:900;
  list-style:none;
}
.accordion summary::-webkit-details-marker{display:none}
.accordion summary:hover{background: rgba(2,6,23,.03)}
.acc-body{
  padding: 0 12px 12px;
}

.list, .stepslist{margin:10px 0 0; padding-left: 18px}
.list li, .stepslist li{margin:8px 0; color:var(--muted); line-height:1.6; font-size:13.5px}
.stepslist li strong{color:var(--text)}
.support{
  margin-top:14px;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid rgba(29,78,216,.22);
  background: rgba(29,78,216,.08);
  color:#0b1b44;
  font-size: 13.5px;
  line-height: 1.55;
}

.footer{
  margin-top:14px;
  text-align:center;
  font-size: 12.5px;
  color: var(--muted);
}
.footer a{color: var(--brand); text-decoration:none}
.footer a:hover{text-decoration:underline}

.toast{
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  background: rgba(2,6,23,.92);
  color:#fff;
  padding:10px 14px;
  border-radius:999px;
  opacity:0;
  transition:opacity .2s;
  font-weight:800;
  font-size:13px;
  pointer-events:none;
  box-shadow:0 10px 26px rgba(0,0,0,.22);
}
