*{box-sizing:border-box}
html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#25211f;background:#f7f3ef}
body{margin:0}
a{color:inherit;text-decoration:none}
.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:26px clamp(20px,5vw,64px);
  background:#fff;
  border-bottom:1px solid #e9e1da;
  position:sticky;
  top:0;
  z-index:10
}
.topbar.compact{position:static}
.topbar h1{margin:4px 0 0;font-size:clamp(24px,3vw,36px)}
.eyebrow{font-size:12px;font-weight:800;letter-spacing:.15em;color:#a06752}
.top-actions,.card-actions,.savebar{display:flex;gap:10px;align-items:center}
.container{max-width:1180px;margin:0 auto;padding:34px 20px 70px}
.container.narrow{max-width:860px}
.summary{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:28px;
  border-radius:24px;
  background:#2d2522;
  color:#fff;
  margin-bottom:28px
}
.summary>div{display:flex;gap:12px;align-items:baseline}
.summary .big{font-size:48px;font-weight:800}
.summary p{max-width:470px;color:#ddd0c9}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:18px}
.card,.panel,.empty{
  background:#fff;
  border:1px solid #eadfd7;
  border-radius:22px;
  box-shadow:0 12px 35px rgba(50,35,25,.06)
}
.card{padding:22px}
.card-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}
.card h2{margin:10px 0 18px}
.provider{font-size:11px;font-weight:800;background:#f3ece7;border-radius:999px;padding:7px 10px}
.status{font-size:12px;font-weight:800}
.status.on{color:#227a45}.status.off{color:#9c5c52}
.urlbox{
  background:#f7f3ef;
  border-radius:14px;
  padding:12px;
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:16px
}
.urlbox code{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.copy{border:0;background:none;font-weight:800;cursor:pointer;color:#9d5e47}
.card-actions form{margin:0}
.button{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  border:0;
  border-radius:12px;
  padding:11px 15px;
  font-weight:800;
  cursor:pointer;
  font-size:14px
}
.button.primary{background:#2d2522;color:#fff}
.button.ghost{background:#f2ebe6;color:#362d29}
.button.danger{background:#fff0ee;color:#a13e36}
.empty{text-align:center;padding:70px 22px}
.empty-icon{font-size:46px}
.empty h2{margin-bottom:8px}
.empty p{color:#756a64;margin-bottom:24px}
.auth{min-height:100vh;display:grid;place-items:center;padding:20px}
.auth-card{
  width:min(420px,100%);
  background:#fff;
  border:1px solid #eadfd7;
  border-radius:28px;
  padding:38px;
  box-shadow:0 20px 60px rgba(50,35,25,.10)
}
.brand-mark{font-size:42px}
.auth-card h1{margin:8px 0 0}
.auth-card p{margin-top:5px;color:#756a64}
.auth-card form{margin-top:26px}
.auth-card label,.field label{display:block;font-weight:800}
.auth-card input,.field input,.field textarea{
  width:100%;
  margin-top:8px;
  border:1px solid #d9cdc5;
  border-radius:12px;
  padding:13px 14px;
  font:inherit;
  background:#fff
}
.auth-card .button{width:100%;margin-top:14px}
.panel{padding:28px}
.field{margin-bottom:26px}
.hint{font-size:13px;color:#796d66;margin:5px 0;line-height:1.5}
.slug-row{
  display:flex;
  align-items:center;
  border:1px solid #d9cdc5;
  border-radius:12px;
  overflow:hidden;
  background:#f7f3ef;
  margin-top:8px
}
.slug-row span{padding-left:14px;color:#756a64;font-size:14px;white-space:nowrap}
.slug-row input{border:0;border-radius:0;margin:0;padding-left:2px;background:transparent;outline:none}
.toggle{display:flex!important;align-items:center;gap:12px;margin-top:8px;cursor:pointer}
.toggle input{display:none}
.toggle span{width:46px;height:26px;border-radius:999px;background:#cfc5bf;position:relative;transition:.2s}
.toggle span:after{
  content:"";
  position:absolute;
  width:20px;
  height:20px;
  background:white;
  border-radius:50%;
  top:3px;
  left:3px;
  transition:.2s;
  box-shadow:0 1px 5px #0003
}
.toggle input:checked+span{background:#2d2522}
.toggle input:checked+span:after{transform:translateX(20px)}
.notice{margin:16px 0;background:#fff6dc;border:1px solid #f0df9d;padding:18px;border-radius:16px}
.notice.good{background:#edf8f0;border-color:#cae8d2}
.notice p{margin:5px 0 0;line-height:1.5}
.savebar{justify-content:flex-end;padding-top:14px}
.alert{padding:14px 16px;border-radius:14px;margin-bottom:18px;font-weight:700}
.alert.error{background:#ffe9e6;color:#8c332d}
.alert.success{background:#e7f6eb;color:#28633a}
.back{font-weight:800;color:#8c604f;font-size:14px}
.diag-table{width:100%;border-collapse:collapse;background:#fff;border-radius:18px;overflow:hidden;border:1px solid #eadfd7}
.diag-table th,.diag-table td{padding:13px 15px;border-bottom:1px solid #eee5df;text-align:left}
.diag-table th{width:250px}
.ok{color:#237846;font-weight:800}.bad{color:#a43d35;font-weight:800}
@media(max-width:700px){
  .topbar{align-items:flex-start;gap:18px;flex-direction:column}
  .top-actions{width:100%}
  .top-actions .button{flex:1}
  .summary{align-items:flex-start;flex-direction:column}
  .summary p{margin-bottom:0}
  .grid{grid-template-columns:1fr}
  .slug-row{display:block}
  .slug-row span{display:block;padding:10px 14px 0}
  .card-actions{flex-wrap:wrap}
}
