:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#273443;background:#f3f6f9;font-synthesis:none}*{box-sizing:border-box}body{margin:0}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:#152332;color:#d4dde6;padding:22px 15px;display:flex;flex-direction:column}.brand{display:flex;gap:11px;align-items:center;color:#fff;text-decoration:none;font-weight:750;font-size:12px;letter-spacing:.1em;padding:4px 10px 30px}.brand small{display:block;color:#8fa0b1;font-size:9px;letter-spacing:.18em;margin-top:4px}.brand-mark{width:34px;height:34px;border-radius:9px;background:#2476b3;display:grid;place-items:center;font-size:18px;letter-spacing:0}.nav-label{font-size:9px;letter-spacing:.15em;color:#8192a3;font-weight:700;padding:0 11px 9px}nav{display:grid;gap:4px}nav a{display:flex;align-items:center;gap:12px;color:#b6c3cf;text-decoration:none;font-size:13px;padding:11px;border-radius:7px}nav a:hover,nav a.active{background:#26394b;color:white}nav a.active{box-shadow:inset 3px 0 #57a7df}.sidebar-bottom{margin-top:auto;border-top:1px solid #314252;padding:16px 10px 5px;font-size:11px;color:#d3dfeb}.sidebar-bottom small{display:block;color:#879bac;margin:6px 0 0 15px}.green-dot{display:inline-block;width:7px;height:7px;background:#39bf7c;border-radius:50%;margin-right:7px}main{margin-left:238px;padding:40px 48px;max-width:1260px}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.eyebrow{font-size:10px;letter-spacing:.15em;color:#75889a;font-weight:750;margin:0 0 9px}h1{font-size:29px;letter-spacing:-.035em;margin:0;color:#202d3a}.subtitle{font-size:13px;color:#7c8b9a;margin:8px 0 0}.host{background:#fff;border:1px solid #e3e9ef;padding:9px 12px;border-radius:7px;font-size:12px;color:#536476}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:16px}.card,.panel{background:white;border:1px solid #e3e9ef;border-radius:10px;box-shadow:0 3px 14px #22364b06}.card{padding:18px 20px;text-decoration:none;color:inherit;display:grid;grid-template-columns:34px 1fr;column-gap:11px;align-items:center}.card-icon{width:32px;height:32px;border-radius:8px;display:grid;place-items:center;grid-row:span 2}.blue{background:#e7f2fb;color:#337eb5}.purple{background:#f0eafa;color:#825db2}.orange{background:#fff0dc;color:#bc7d22}.card-label{font-size:9px;letter-spacing:.1em;color:#788899;font-weight:700}.card strong{font-size:24px;line-height:1.1;margin-top:5px}.card small{grid-column:2;color:#8492a0;font-size:11px;margin-top:4px}.panel{padding:21px 23px;margin:15px 0}.panel h2{font-size:15px;margin:0 0 6px;color:#2b3947}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-title p,.panel-desc{font-size:12px;color:#81909e;margin:5px 0 0}.status{font-size:11px;color:#24764d;background:#e6f5ed;padding:7px 10px;border-radius:20px}.listeners{display:grid;grid-template-columns:repeat(3,1fr);margin-top:19px;border-top:1px solid #edf0f3}.listeners>div{padding:16px 14px 4px;border-right:1px solid #edf0f3;display:grid;gap:4px}.listeners>div:first-child{padding-left:0}.listeners>div:last-child{border:0}.listeners strong{font-size:17px;color:#337eb5}.listeners span{font-size:12px;font-weight:650}.listeners small{font-size:10px;color:#8996a3}.flow{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:20px}.flow span{font-size:11px;background:#f3f6f8;padding:10px 12px;border-radius:6px;color:#5a6b7b}.flow b{color:#6f9fc0}.form{display:flex;align-items:end;gap:12px;margin-top:20px}.form label{flex:1;display:grid;gap:7px;font-size:11px;font-weight:650;color:#5b6b7a}.form input,.form select{height:39px;border:1px solid #dce3e9;border-radius:6px;padding:0 10px;font:inherit;color:#243443;outline:none;background:#fff}.form input:focus,.form select:focus{border-color:#4a8dbc;box-shadow:0 0 0 3px #4a8dbc20}.settings-form{flex-wrap:wrap}.settings-form>.check-row{flex-basis:100%;display:flex;align-items:center;gap:8px;font-weight:500}.settings-form>.check-row input{width:15px;height:15px;padding:0}button{height:39px;border:0;border-radius:6px;background:#2675ad;color:white;padding:0 14px;font-size:11px;font-weight:650;cursor:pointer}button:hover{background:#1f6295}.secondary{background:#eef4f8;color:#426781}.secondary:hover{background:#e0ebf2}.count{font-size:11px;color:#607285;background:#edf2f6;border-radius:15px;padding:5px 9px}.table{margin-top:17px}.table-row{display:grid;grid-template-columns:1fr 1fr 76px;align-items:center;gap:10px;padding:12px 8px;border-top:1px solid #edf0f3;font-size:12px}.table-row code{background:#f2f5f7;color:#466077;border-radius:4px;padding:6px 8px;width:max-content}.table-row form{justify-self:end}.table-row.th{font-size:9px;color:#8b98a5;letter-spacing:.1em;font-weight:700;padding-top:0}.remove{height:auto;padding:5px 8px;color:#a1545a;background:transparent;font-size:10px}.remove:hover{background:#fff0f1}.muted,.hint{font-size:11px;color:#82909d}.hint{margin:11px 0 0}.empty{padding:30px;text-align:center;color:#82909d;font-size:12px}.queue{white-space:pre-wrap;overflow:auto;background:#f5f7f9;border:1px solid #e9edf1;border-radius:6px;padding:14px;font:11px/1.6 ui-monospace,monospace;color:#506171;min-height:100px}.settings{display:grid;grid-template-columns:1fr 1fr;gap:0 35px;margin-top:17px}.settings div{padding:14px 0;border-top:1px solid #edf0f3;display:flex;justify-content:space-between;gap:12px;font-size:12px}.settings span{color:#798896}.settings strong{color:#3d4d5c}footer{font-size:10px;color:#9ba7b2;margin:27px 0 0}footer span{padding:0 5px}@media(max-width:800px){.sidebar{width:64px;padding:18px 8px}.brand{padding:0 7px 28px}.brand>span:last-child,.nav-label,nav a span,.sidebar-bottom{display:none}nav a{justify-content:center;font-size:17px;padding:12px}main{margin-left:64px;padding:28px 20px}.cards{grid-template-columns:1fr}.listeners{grid-template-columns:1fr}.listeners>div{border-right:0;border-bottom:1px solid #edf0f3;padding:12px 0}.flow{flex-wrap:wrap;justify-content:center}.form{align-items:stretch;flex-direction:column}.table-row{grid-template-columns:1fr auto}.table-row code,.table-row .muted{grid-column:1}.table-row form{grid-column:2;grid-row:1/3}.settings{grid-template-columns:1fr}}
.header-actions{display:flex;align-items:center;gap:10px}.logout-form{margin:0}.logout-form button{white-space:nowrap}.login-page{min-height:100vh;display:grid;place-items:center;padding:24px}.login-page main.login-card{margin:0;width:min(100%,390px);padding:32px;background:#fff;border:1px solid #e3e9ef;border-radius:12px;box-shadow:0 8px 32px #22364b12}.login-card .brand-mark{margin-bottom:22px}.login-card h1{margin-bottom:22px}.login-card form{display:grid;gap:16px}.login-card label{display:grid;gap:7px;font-size:12px;font-weight:650;color:#5b6b7a}.login-card input{height:42px;border:1px solid #dce3e9;border-radius:6px;padding:0 11px;font:inherit}.login-card input:focus{border-color:#4a8dbc;outline:3px solid #4a8dbc20}.login-card button{width:100%;height:42px}.login-error{font-size:12px;color:#a1545a;background:#fff0f1;padding:10px;border-radius:6px}.notice{font-size:12px;color:#24764d;background:#e6f5ed;padding:10px;border-radius:6px}
.brand-logo{width:36px;height:36px;display:block;flex:none}.login-logo{width:58px;height:58px;display:block;margin-bottom:18px}.brand{letter-spacing:.08em}.brand small{letter-spacing:.12em}
.auth-form{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}.auth-form label small{display:block;margin-top:6px;color:#7d8995;font-size:11px;font-weight:400;line-height:1.45}.auth-form>button{grid-column:1/-1;justify-self:start}.dns-table{overflow-x:auto;margin:18px 0}.dns-row{display:grid;grid-template-columns:130px minmax(130px,200px) minmax(300px,1fr);gap:12px;align-items:start;padding:12px;border-bottom:1px solid #e9eef2;font-size:12px}.dns-head{font-size:10px;font-weight:700;color:#6c7b89}.dns-row code{overflow-wrap:anywhere;white-space:normal;line-height:1.55}.auth-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.auth-actions form{margin:0}.auth-domain .status{white-space:nowrap}@media(max-width:760px){.auth-form{grid-template-columns:1fr}.dns-row{grid-template-columns:85px 120px minmax(280px,1fr);min-width:560px}}

/* Keep the DNS setup form compact and let each field wrap within its column. */
.auth-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px 20px;
  width: min(100%, 820px);
  margin-top: 22px;
}
.auth-form label {
  min-width: 0;
  align-content: start;
  line-height: 1.4;
}
.auth-form input,
.auth-form select {
  width: 100%;
  min-width: 0;
}
.auth-form label small {
  line-height: 1.5;
}
.auth-form > button {
  grid-column: 1 / -1;
  justify-self: start;
}
@media (max-width: 760px) {
  .auth-form {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }
  .auth-form > button {
    grid-column: 1;
    width: 100%;
  }
}
