:root{
  --paper:#f1e8dc;
  --paper-2:#e8ddd0;
  --ink:#1b1917;
  --muted:#6f675f;
  --line:rgba(27,25,23,.14);
  --rose:#c9796f;
  --sage:#6f8b78;
  --night:#151311;
  --white:#fffaf4;
  --radius:20px;
}
*{box-sizing:border-box}
html{background:var(--night)}
body{margin:0;min-height:100dvh;background:var(--paper);color:var(--ink);font-family:Inter,system-ui,sans-serif}
button,input,select{font:inherit}
button,a{touch-action:manipulation}
.office-shell{min-height:100dvh;display:grid;grid-template-columns:minmax(240px,310px) minmax(0,1fr)}
.office-side{position:sticky;top:0;height:100dvh;padding:clamp(1.4rem,3vw,2.4rem);display:flex;flex-direction:column;color:var(--white);
  background:linear-gradient(160deg,rgba(201,121,111,.14),transparent 32%),var(--night);border-right:1px solid rgba(255,255,255,.08)}
.office-brand{display:inline-flex;align-items:center;gap:.72rem;color:var(--white);text-decoration:none;font:700 1.02rem "Space Grotesk",sans-serif;letter-spacing:-.03em}
.office-brand img{width:36px;height:36px;border-radius:10px;box-shadow:0 14px 30px rgba(0,0,0,.32)}
.office-side-copy{margin:auto 0}
.office-kicker{display:block;color:var(--rose);font-size:.67rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.office-side h1{margin:.9rem 0 1rem;font:600 clamp(2.7rem,5vw,4.6rem)/.9 "Space Grotesk",sans-serif;letter-spacing:-.075em}
.office-side-copy p{max-width:14rem;margin:0;color:#aaa197;font-size:.84rem;line-height:1.65}
.office-side-foot{display:flex;align-items:flex-start;gap:.65rem;color:#918a82;font-size:.7rem;line-height:1.5}
.security-dot{width:8px;height:8px;margin-top:.18rem;border-radius:50%;background:#87a88f;box-shadow:0 0 0 5px rgba(111,139,120,.13)}
.office-main{min-width:0;padding:clamp(1.2rem,4vw,3.4rem);background:
  radial-gradient(circle at 86% 5%,rgba(201,121,111,.16),transparent 25%),
  linear-gradient(180deg,var(--paper),var(--paper-2))}
.office-head{display:flex;align-items:flex-start;justify-content:space-between;gap:2rem;margin:0 auto 2rem;max-width:1160px}
.office-head h2{margin:.45rem 0 .35rem;font:600 clamp(2rem,4vw,3.5rem)/1 "Space Grotesk",sans-serif;letter-spacing:-.055em}
.office-head p{margin:0;color:var(--muted);font-size:.86rem}
.office-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:.5rem;flex-wrap:wrap}
.health-chip,.quiet-button{min-height:38px;border:1px solid var(--line);border-radius:999px;background:rgba(255,250,244,.48);color:var(--ink);
  padding:.55rem .8rem;font-size:.72rem;font-weight:700;text-decoration:none}
.health-chip{display:inline-flex;align-items:center;gap:.45rem}
.health-chip i{width:7px;height:7px;border-radius:50%;background:#b68760}
.health-chip.is-ready i{background:var(--sage);box-shadow:0 0 0 4px rgba(111,139,120,.14)}
.quiet-button{cursor:pointer}
.office-form{max-width:1160px;margin:0 auto;display:grid;gap:1rem}
.office-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.office-card{display:grid;align-content:start;gap:1rem;padding:clamp(1.1rem,2vw,1.5rem);border:1px solid var(--line);border-radius:var(--radius);
  background:rgba(255,250,244,.64);box-shadow:0 25px 70px -55px rgba(36,27,22,.55);backdrop-filter:blur(10px)}
.office-card header,.office-overview{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}
.office-card header>div{flex:1}
.office-card h3{margin:0;font:600 1.05rem "Space Grotesk",sans-serif;letter-spacing:-.025em}
.office-card p{margin:.28rem 0 0;color:var(--muted);font-size:.74rem;line-height:1.5}
.card-index{color:var(--rose);font:600 .7rem "Space Grotesk",sans-serif;letter-spacing:.08em}
.office-overview>div{max-width:31rem}
.office-overview label{width:min(100%,390px)}
label{display:grid;gap:.4rem;min-width:0}
label>span{color:#4f4944;font-size:.7rem;font-weight:700}
input,select{width:100%;min-height:46px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.5);color:var(--ink);padding:.72rem .82rem;outline:none}
input::placeholder{color:#999087}
input:focus,select:focus{border-color:rgba(111,139,120,.8);box-shadow:0 0 0 3px rgba(111,139,120,.12)}
input[readonly]{color:#615a53;background:rgba(27,25,23,.035)}
.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:.7rem}
.channel-note{display:flex;justify-content:space-between;gap:1rem;margin-top:auto;border-top:1px solid var(--line);padding-top:.9rem;color:var(--muted);font-size:.7rem}
.channel-note b{color:var(--sage)}
.webhook-card{gap:1.2rem}
.endpoint-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}
.copy-field{display:grid;grid-template-columns:minmax(0,1fr) auto}
.copy-field input{border-radius:12px 0 0 12px}
.copy-field button{border:1px solid var(--line);border-left:0;border-radius:0 12px 12px 0;background:var(--night);color:var(--white);padding:0 .8rem;cursor:pointer;font-size:.7rem;font-weight:700}
.office-savebar{position:sticky;bottom:max(.8rem,env(safe-area-inset-bottom));z-index:3;display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:.8rem .9rem .8rem 1.1rem;border:1px solid rgba(27,25,23,.18);border-radius:16px;background:rgba(21,19,17,.94);color:var(--white);
  box-shadow:0 24px 70px -28px rgba(0,0,0,.8);backdrop-filter:blur(14px)}
.office-savebar p{margin:0;color:#bcb3aa;font-size:.73rem;line-height:1.45}
.save-button{min-height:44px;border:0;border-radius:12px;background:var(--rose);color:#211814;padding:.75rem 1rem;font-weight:800;cursor:pointer;white-space:nowrap}
.save-button:disabled{opacity:.55;cursor:wait}
.office-lock{position:fixed;inset:0;z-index:10;display:grid;place-items:center;padding:max(1rem,env(safe-area-inset-top)) max(1rem,env(safe-area-inset-right))
  max(1rem,env(safe-area-inset-bottom)) max(1rem,env(safe-area-inset-left));overflow:auto;background:
  radial-gradient(circle at 70% 20%,rgba(201,121,111,.18),transparent 28%),var(--night)}
.office-lock[hidden]{display:none}
.lock-card{width:min(430px,100%);display:grid;gap:1rem;padding:clamp(1.2rem,4vw,2rem);border:1px solid rgba(255,255,255,.12);border-radius:24px;
  background:rgba(30,27,24,.92);color:var(--white);box-shadow:0 38px 100px -35px #000}
.lock-mark img{width:54px;height:54px;border-radius:15px}
.lock-card h2{margin:.15rem 0 0;font:600 clamp(1.65rem,6vw,2.3rem)/1.05 "Space Grotesk",sans-serif;letter-spacing:-.045em}
.lock-card p{margin:0;color:#aaa197;font-size:.8rem;line-height:1.55}
.lock-card label>span{color:#d5cdc4}
.lock-card input{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.12);color:#fff;font-size:16px}
.lock-card>a{color:#aaa197;text-align:center;font-size:.72rem}
.lock-status{min-height:1.1rem;color:#ef9a90!important;text-align:center}
body.is-loading .office-shell{visibility:hidden}
@media (max-width:900px){
  .office-shell{grid-template-columns:1fr}
  .office-side{position:relative;height:auto;min-height:150px;padding:1rem 1.2rem}
  .office-side-copy{margin:1.5rem 0 0}.office-side h1{font-size:2.4rem;margin:.5rem 0}.office-side-copy p,.office-side-foot{display:none}
  .office-head{flex-direction:column;gap:1rem}.office-head-actions{justify-content:flex-start}
  .endpoint-list{grid-template-columns:1fr}
}
@media (max-width:640px){
  .office-main{padding:1rem .75rem 5rem}
  .office-grid{grid-template-columns:1fr}
  .office-overview{display:grid}.office-overview label{width:100%}
  .two-fields{grid-template-columns:1fr}
  .office-savebar{align-items:stretch;flex-direction:column;padding:.8rem}.save-button{width:100%;white-space:normal}
}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
