:root{
  --hof-bg:#f4f8f7;
  --hof-panel:#ffffff;
  --hof-ink:#111821;
  --hof-muted:#5f6f7f;
  --hof-line:#d9e5e8;
  --hof-green:#07bc79;
  --hof-green-dark:#048657;
  --hof-lime:#b5ef2a;
  --hof-shadow:0 18px 50px rgba(17,24,33,.08);
  --hof-shadow-soft:0 10px 28px rgba(17,24,33,.06);
  --hof-radius:22px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:Inter,Arial,sans-serif;background:linear-gradient(180deg,#f7fbfa 0%,#eef5f4 100%);color:var(--hof-ink)}
body{min-height:100vh}

.is-hidden{display:none !important}

.hof-login-screen{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
}

.hof-login-card{
  width:min(520px,100%);
  background:var(--hof-panel);
  border:1px solid var(--hof-line);
  border-radius:28px;
  box-shadow:var(--hof-shadow);
  padding:32px;
}

.hof-login-card h1{
  margin:14px 0 10px;
  font-size:34px;
  line-height:1.05;
}

.hof-login-card p{
  margin:0 0 20px;
  color:var(--hof-muted);
  line-height:1.55;
}

.hof-login-form{
  display:grid;
  gap:14px;
}

.hof-login-form label{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.hof-login-form span{
  font-size:14px;
  font-weight:700;
}

.hof-login-form input{
  width:100%;
  border-radius:14px;
  border:1px solid var(--hof-line);
  background:#fff;
  padding:14px 16px;
  font:inherit;
}

.hof-login-status{
  margin-top:16px;
  color:var(--hof-green-dark);
  font-weight:700;
}

.hof-login-status.is-error{
  color:#b42318;
}

.hof-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:320px minmax(0,1fr);
}

.hof-side{
  background:#10161d;
  color:#f7fbfa;
  padding:32px 24px;
  display:flex;
  flex-direction:column;
  gap:24px;
  border-right:1px solid rgba(255,255,255,.07);
}

.hof-kicker{
  display:inline-flex;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(7,188,121,.16);
  color:#94f2cb;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:11px;
}

.hof-brand h1{
  margin:12px 0 8px;
  font-size:44px;
  line-height:1;
}

.hof-brand p,.hof-side-card p{
  margin:0;
  color:rgba(247,251,250,.75);
  line-height:1.55;
}

.hof-steps{
  display:grid;
  gap:10px;
}

.hof-step{
  appearance:none;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.03);
  color:#f7fbfa;
  text-align:left;
  border-radius:16px;
  padding:14px 16px;
  font-weight:700;
  cursor:pointer;
  transition:.2s ease;
}

.hof-step:hover,
.hof-step.is-active{
  background:linear-gradient(90deg,rgba(7,188,121,.18),rgba(181,239,42,.14));
  border-color:rgba(181,239,42,.35);
}

.hof-side-card{
  padding:18px;
  border-radius:18px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
}

.hof-side-card strong{display:block;margin-bottom:8px}

.hof-user{
  display:grid;
  gap:4px;
  padding:14px 16px;
  border-radius:18px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
}

.hof-user strong{font-size:15px}
.hof-user span{font-size:13px;color:rgba(247,251,250,.72)}

.hof-side-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.hof-mini-button{
  appearance:none;
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-weight:700;
  padding:8px 12px;
  cursor:pointer;
}

.hof-launch-list{
  display:grid;
  gap:10px;
  max-height:260px;
  overflow:auto;
}

.hof-empty-state{
  padding:14px;
  border-radius:16px;
  border:1px dashed rgba(255,255,255,.16);
  color:rgba(247,251,250,.72);
  font-size:13px;
  line-height:1.5;
}

.hof-launch-item{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  border-radius:16px;
  padding:12px 14px;
  cursor:pointer;
  transition:.2s ease;
}

.hof-launch-item.is-active,
.hof-launch-item:hover{
  background:linear-gradient(90deg,rgba(7,188,121,.18),rgba(181,239,42,.14));
  border-color:rgba(181,239,42,.35);
}

.hof-launch-item strong{
  display:block;
  margin-bottom:6px;
  font-size:14px;
}

.hof-launch-item span{
  display:block;
  color:rgba(247,251,250,.72);
  font-size:12px;
}

.hof-main{
  padding:36px;
}

.hof-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  margin-bottom:24px;
}

.hof-eyebrow{
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--hof-green-dark);
  font-weight:800;
  margin-bottom:10px;
}

.hof-header h2{
  margin:0 0 8px;
  font-size:40px;
  line-height:1.05;
}

.hof-header p{
  margin:0;
  color:var(--hof-muted);
}

.hof-header-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.hof-button{
  appearance:none;
  border:none;
  border-radius:14px;
  padding:14px 18px;
  font-weight:800;
  cursor:pointer;
  transition:.2s ease;
}

.hof-button:disabled,
.hof-mini-button:disabled{
  opacity:.55;
  cursor:not-allowed;
  box-shadow:none;
}

.hof-button-full{width:100%}

.hof-button-primary{
  color:#fff;
  background:linear-gradient(135deg,var(--hof-green),var(--hof-green-dark));
  box-shadow:0 14px 28px rgba(7,188,121,.24);
}

.hof-button-secondary{
  color:var(--hof-green-dark);
  background:#fff;
  border:1px solid var(--hof-line);
}

.hof-grid{
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(320px,.9fr);
  gap:24px;
  align-items:start;
}

.hof-assistant-grid{
  margin-top:24px;
}

.hof-form{
  display:grid;
  gap:20px;
}

.hof-card{
  background:var(--hof-panel);
  border:1px solid var(--hof-line);
  border-radius:var(--hof-radius);
  box-shadow:var(--hof-shadow-soft);
  padding:24px;
}

.hof-card-head{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:18px;
}

.hof-card-head h3{
  margin:0;
  font-size:22px;
}

.hof-card-head span{
  color:var(--hof-muted);
  font-size:14px;
}

.hof-fields{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.hof-field-full{
  grid-column:1 / -1;
}

.hof-fields label{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.hof-fields span{
  font-size:14px;
  font-weight:700;
}

.hof-fields input,
.hof-fields select,
.hof-fields textarea{
  width:100%;
  border-radius:14px;
  border:1px solid var(--hof-line);
  background:#fff;
  padding:14px 16px;
  font:inherit;
  color:var(--hof-ink);
  outline:none;
  transition:.2s ease;
}

.hof-fields input:focus,
.hof-fields select:focus,
.hof-fields textarea:focus{
  border-color:rgba(7,188,121,.65);
  box-shadow:0 0 0 4px rgba(7,188,121,.12);
}

.hof-connection-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.hof-connection-panel{
  border:1px solid var(--hof-line);
  border-radius:18px;
  background:#f8fcfb;
  padding:18px;
}

.hof-inline-head{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:14px;
}

.hof-inline-head strong{
  font-size:16px;
}

.hof-inline-head span{
  color:var(--hof-muted);
  font-size:13px;
  line-height:1.5;
}

.hof-inline-form{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
}

.hof-inline-form input{
  width:100%;
  border-radius:14px;
  border:1px solid var(--hof-line);
  background:#fff;
  padding:14px 16px;
  font:inherit;
  color:var(--hof-ink);
}

.hof-business-list{
  display:grid;
  gap:10px;
  max-height:340px;
  overflow:auto;
}

.hof-business-item{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid var(--hof-line);
  background:#fff;
}

.hof-business-item.is-selected{
  border-color:rgba(7,188,121,.55);
  box-shadow:0 0 0 4px rgba(7,188,121,.12);
}

.hof-business-copy{
  display:grid;
  gap:6px;
}

.hof-business-copy strong{
  font-size:15px;
}

.hof-business-copy span{
  color:var(--hof-muted);
  font-size:13px;
}

.hof-business-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}

.hof-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border-radius:999px;
  padding:6px 10px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  background:#edf5f2;
  color:#476154;
}

.hof-chip.is-live{
  background:#dcfce7;
  color:#166534;
}

.hof-chip.is-waiting{
  background:#fff7e6;
  color:#b45309;
}

.hof-mini-action{
  appearance:none;
  border:1px solid var(--hof-line);
  background:#fff;
  color:var(--hof-green-dark);
  border-radius:12px;
  padding:9px 12px;
  font-weight:700;
  cursor:pointer;
}

.hof-mini-action.is-primary{
  background:linear-gradient(135deg,var(--hof-green),var(--hof-green-dark));
  border-color:transparent;
  color:#fff;
}

.hof-qr-panel{
  margin-top:14px;
  border-radius:18px;
  border:1px solid #d7f4e5;
  background:#f2fbf6;
  padding:18px;
  display:grid;
  gap:14px;
}

.hof-qr-panel-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
}

.hof-qr-panel p,
.hof-qr-panel span{
  margin:0;
  color:var(--hof-muted);
  line-height:1.5;
}

.hof-qr-panel img{
  width:min(280px,100%);
  aspect-ratio:1 / 1;
  object-fit:contain;
  background:#fff;
  border:1px solid var(--hof-line);
  border-radius:18px;
  padding:12px;
}

.hof-qr-panel-meta{
  display:grid;
  gap:8px;
}

.hof-assistant-guide{
  margin-bottom:14px;
  padding:16px 18px;
  border-radius:18px;
  background:#f5faf8;
  border:1px solid var(--hof-line);
  display:grid;
  gap:8px;
}

.hof-assistant-guide strong{
  font-size:15px;
}

.hof-assistant-guide p{
  margin:0;
  color:var(--hof-muted);
  line-height:1.55;
}

.hof-assistant-guide ul{
  margin:0;
  padding-left:18px;
  color:var(--hof-muted);
}

.hof-summary{
  position:sticky;
  top:24px;
}

.hof-summary-content{
  display:grid;
  gap:18px;
}

.hof-metrics-content,
.hof-phase-content,
.hof-assets-content,
.hof-cadence-content{
  display:grid;
  gap:14px;
  margin-top:18px;
}

.hof-plan-content{
  display:grid;
  gap:14px;
  margin-top:20px;
}

.hof-plan-card{
  padding:16px;
  border-radius:18px;
  border:1px solid var(--hof-line);
  background:#f9fcfb;
}

.hof-plan-card strong{
  display:block;
  margin-bottom:8px;
}

.hof-plan-card ul{
  margin:0;
  padding-left:18px;
  color:var(--hof-muted);
}

.hof-plan-card li + li{margin-top:6px}

.hof-summary-block strong{
  font-size:22px;
  display:block;
  margin-bottom:6px;
}

.hof-summary-block p,
.hof-summary-list p{
  margin:0;
  color:var(--hof-muted);
  line-height:1.5;
}

.hof-summary-metrics{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.hof-summary-metrics div{
  padding:14px;
  border-radius:16px;
  background:#f4faf7;
  border:1px solid #d6f0e4;
}

.hof-summary-metrics span,
.hof-summary-list span{
  display:block;
  margin-bottom:6px;
  color:var(--hof-muted);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.hof-summary-metrics strong{
  font-size:18px;
}

.hof-summary-list{
  display:grid;
  gap:16px;
}

.hof-metric-strip{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.hof-metric-card{
  padding:14px;
  border-radius:16px;
  background:#f6fbfa;
  border:1px solid var(--hof-line);
}

.hof-metric-card span{
  display:block;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--hof-muted);
  margin-bottom:6px;
}

.hof-metric-card strong{
  display:block;
  font-size:20px;
  margin-bottom:4px;
}

.hof-metric-card p{
  margin:0;
  color:var(--hof-muted);
  line-height:1.45;
  font-size:13px;
}

.hof-phase-card,
.hof-asset-card,
.hof-cadence-card{
  padding:16px;
  border-radius:18px;
  border:1px solid var(--hof-line);
  background:#fbfdfd;
}

.hof-phase-card.is-done{
  background:#f1fbf6;
  border-color:#d7f4e5;
}

.hof-phase-card.is-attention,
.hof-asset-card.is-attention{
  background:#fff9f3;
  border-color:#f8d6ae;
}

.hof-phase-head,
.hof-cadence-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:10px;
}

.hof-phase-head strong,
.hof-asset-card strong,
.hof-cadence-head strong{
  font-size:15px;
}

.hof-phase-badge{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  background:#eef3f6;
  color:#546475;
}

.hof-phase-badge.is-done{
  background:#dff8ea;
  color:var(--hof-green-dark);
}

.hof-phase-badge.is-attention{
  background:#fde7d4;
  color:#b54708;
}

.hof-phase-card p,
.hof-asset-card p,
.hof-cadence-card p{
  margin:0;
  color:var(--hof-muted);
  line-height:1.55;
}

.hof-phase-card ul,
.hof-asset-card ul{
  margin:10px 0 0;
  padding-left:18px;
  color:var(--hof-muted);
}

.hof-phase-card li + li,
.hof-asset-card li + li{
  margin-top:6px;
}

.hof-assistant-feed{
  display:grid;
  gap:12px;
  margin-bottom:14px;
  max-height:360px;
  overflow:auto;
}

.hof-message{
  padding:14px 16px;
  border-radius:18px;
  line-height:1.55;
  font-size:14px;
}

.hof-message strong{
  display:block;
  margin-bottom:6px;
}

.hof-message.user{
  background:#0f1720;
  color:#fff;
  margin-left:54px;
}

.hof-message.assistant{
  background:#f5faf8;
  border:1px solid var(--hof-line);
  margin-right:54px;
}

.hof-assistant-suggestions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:14px;
}

.hof-suggestion{
  appearance:none;
  border:1px solid var(--hof-line);
  background:#fff;
  color:var(--hof-green-dark);
  border-radius:999px;
  padding:10px 14px;
  font-weight:700;
  cursor:pointer;
}

.hof-assistant-form{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
}

.hof-assistant-form input{
  width:100%;
  border-radius:14px;
  border:1px solid var(--hof-line);
  background:#fff;
  padding:14px 16px;
  font:inherit;
}

.hof-status{
  margin-top:20px;
  padding:14px 16px;
  border-radius:16px;
  background:#f1fbf6;
  border:1px solid #d7f4e5;
  color:var(--hof-green-dark);
  font-weight:700;
}

.hof-status.is-error{
  background:#fff4f2;
  border-color:#f9c7bf;
  color:#b42318;
}

.hof-status.is-muted{
  background:#f7faf9;
  border-color:var(--hof-line);
  color:var(--hof-muted);
}

@media (max-width: 1100px){
  .hof-shell{grid-template-columns:1fr}
  .hof-side{border-right:none;border-bottom:1px solid rgba(255,255,255,.07)}
  .hof-grid{grid-template-columns:1fr}
  .hof-summary{position:static}
  .hof-connection-grid{grid-template-columns:1fr}
}

@media (max-width: 720px){
  .hof-main{padding:22px}
  .hof-header{flex-direction:column}
  .hof-fields{grid-template-columns:1fr}
  .hof-summary-metrics{grid-template-columns:1fr}
  .hof-metric-strip{grid-template-columns:1fr}
  .hof-assistant-form{grid-template-columns:1fr}
}
