:root{
  --background:#fff9ee;
  --surface:#ffffff;
  --surface-soft:rgba(255,255,255,0.64);
  --surface-muted:#f3ede2;
  --text:#1d1c15;
  --muted:#56423c;
  --muted-soft:#89726b;
  --primary:#9f4122;
  --primary-bright:#ff8a65;
  --secondary:#556500;
  --secondary-soft:#d6ed7a;
  --tertiary:#326578;
  --tertiary-soft:#bbe9ff;
  --error:#ba1a1a;
  --border:rgba(137,114,107,0.22);
  --white-border:rgba(255,255,255,0.72);
  --shadow:0 24px 80px rgba(159,65,34,0.08);
  --shadow-soft:0 12px 40px rgba(50,101,120,0.08);
}

*{box-sizing:border-box}

body{
  min-height:100vh;
  margin:0;
  font-family:"Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(800px 520px at 18% 2%, rgba(56,189,248,0.18), transparent 62%),
    radial-gradient(720px 500px at 88% 18%, rgba(192,132,252,0.16), transparent 58%),
    linear-gradient(180deg, #fff9ee 0%, #ffffff 52%, #f6f0fb 100%);
  color:var(--text);
}

button,
input,
select{
  font:inherit;
}

button{
  border:0;
  cursor:pointer;
}

.ambient{
  position:fixed;
  z-index:-1;
  border-radius:9999px;
  filter:blur(28px);
  pointer-events:none;
}

.ambient-one{
  width:320px;
  height:320px;
  top:120px;
  left:-80px;
  background:rgba(255,138,101,0.16);
}

.ambient-two{
  width:360px;
  height:360px;
  right:-100px;
  bottom:40px;
  background:rgba(187,233,255,0.36);
}

.shell{
  width:min(1180px, calc(100% - 32px));
  margin:0 auto;
  padding:24px 0 40px;
}

.topbar{
  position:sticky;
  top:18px;
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0 auto 72px;
  padding:10px 12px;
  border:1px solid var(--white-border);
  border-radius:9999px;
  background:rgba(255,255,255,0.46);
  box-shadow:0 8px 32px rgba(0,0,0,0.05);
  backdrop-filter:blur(22px);
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 14px;
  color:var(--primary);
  font-weight:800;
  letter-spacing:-0.04em;
  background:transparent;
}

.brand-mark{
  display:grid;
  width:32px;
  height:32px;
  place-items:center;
  border-radius:9999px;
  color:#fff;
  background:linear-gradient(135deg, var(--primary), var(--primary-bright));
  box-shadow:0 10px 24px rgba(159,65,34,0.18);
  font-size:12px;
  letter-spacing:0;
}

.nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  flex-wrap:wrap;
}

.tab{
  min-height:38px;
  padding:9px 14px;
  border-radius:9999px;
  color:var(--muted);
  background:transparent;
  font-weight:700;
  transition:background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.tab:hover{
  color:var(--primary);
  background:rgba(255,255,255,0.54);
}

.tab.active{
  color:var(--primary);
  background:rgba(255,255,255,0.72);
  box-shadow:0 8px 24px rgba(159,65,34,0.08);
}

.hero{
  display:grid;
  justify-items:center;
  text-align:center;
  padding:12px 0 44px;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin-bottom:22px;
  padding:8px 14px;
  border:1px solid var(--white-border);
  border-radius:9999px;
  background:rgba(255,255,255,0.54);
  color:var(--muted);
  box-shadow:var(--shadow-soft);
  backdrop-filter:blur(18px);
  font-size:13px;
  font-weight:700;
}

.status-dot{
  width:8px;
  height:8px;
  border-radius:9999px;
  background:var(--secondary);
  box-shadow:0 0 0 5px rgba(214,237,122,0.55);
}

.hero h1{
  max-width:880px;
  margin:0;
  font-size:clamp(42px, 7vw, 76px);
  line-height:1.05;
  letter-spacing:-0.055em;
  font-weight:800;
}

.hero p{
  max-width:720px;
  margin:22px 0 34px;
  color:var(--muted);
  font-size:18px;
  line-height:1.65;
}

.hero-actions{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}

.button,
form button,
.secondary{
  min-height:46px;
  padding:12px 20px;
  border-radius:9999px;
  font-weight:800;
}

.primary,
form button{
  color:#fff;
  background:linear-gradient(135deg, var(--primary), var(--primary-bright));
  box-shadow:0 14px 32px rgba(159,65,34,0.18);
}

.secondary{
  border:1px solid var(--white-border);
  color:var(--text);
  background:rgba(255,255,255,0.58);
  box-shadow:var(--shadow-soft);
}

.wide{
  width:100%;
  margin-top:18px;
}

.panel{
  border:1px solid var(--white-border);
  border-radius:32px;
  background:var(--surface-soft);
  box-shadow:var(--shadow);
  backdrop-filter:blur(22px);
}

.session-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:24px;
  padding:24px;
}

.session-title{
  margin-bottom:5px;
  font-size:24px;
  line-height:1.2;
  letter-spacing:-0.02em;
  font-weight:800;
}

.token-row{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  min-width:min(100%, 520px);
}

.token-preview{
  max-width:360px;
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:18px;
  color:var(--muted);
  background:rgba(255,255,255,0.54);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.workspace{
  display:grid;
  gap:24px;
}

.feature-card,
.admin-panel{
  padding:34px;
}

.section-heading{
  max-width:720px;
  margin-bottom:28px;
}

.section-heading h2{
  margin:8px 0 10px;
  font-size:clamp(30px, 4vw, 44px);
  line-height:1.16;
  letter-spacing:-0.035em;
}

.section-heading p{
  margin:0;
  color:var(--muted);
  line-height:1.65;
}

.label{
  color:var(--primary);
  font-size:12px;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.muted{
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}

.mono{
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:12px;
}

.form{
  display:grid;
  max-width:620px;
  gap:16px;
}

label{
  display:grid;
  gap:8px;
  color:var(--muted);
  font-size:14px;
  font-weight:700;
}

input,
select{
  width:100%;
  min-height:48px;
  padding:12px 16px;
  border:1px solid var(--border);
  border-radius:18px;
  outline:none;
  color:var(--text);
  background:rgba(255,255,255,0.68);
  transition:border .2s ease, box-shadow .2s ease, background .2s ease;
}

input::placeholder{
  color:rgba(86,66,60,0.46);
}

input:focus,
select:focus{
  border-color:rgba(159,65,34,0.46);
  background:#fff;
  box-shadow:0 0 0 5px rgba(255,138,101,0.16);
}

input[type="file"]{
  padding:10px 12px;
}

.output{
  display:none;
  margin-top:22px;
  padding:18px;
  border:1px solid var(--border);
  border-radius:24px;
  color:var(--muted);
  background:rgba(255,255,255,0.62);
  box-shadow:var(--shadow-soft);
  white-space:pre-wrap;
  word-break:break-word;
  line-height:1.55;
}

.output:not(:empty){
  display:block;
}

.result-surface strong{
  color:var(--text);
}

.admin-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
}

.admin-card{
  padding:24px;
  border:1px solid var(--border);
  border-radius:28px;
  background:rgba(255,255,255,0.48);
}

.card-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:20px;
}

.card-heading h3{
  margin:0;
  font-size:24px;
  line-height:1.2;
  letter-spacing:-0.02em;
}

.chip{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:6px 10px;
  border-radius:9999px;
  color:#3f4c00;
  background:rgba(214,237,122,0.65);
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}

.chip-blue{
  color:#154d5f;
  background:rgba(187,233,255,0.72);
}

.row{
  display:flex;
  align-items:flex-end;
  gap:12px;
  flex-wrap:wrap;
}

.row > label{
  min-width:190px;
}

.grow{
  flex:1 1 260px;
}

.action-box{
  display:grid;
  gap:14px;
  margin-top:20px;
  padding:18px;
  border:1px solid var(--border);
  border-radius:24px;
  background:rgba(243,237,226,0.58);
}

.footer{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:34px;
  color:var(--muted-soft);
  font-size:13px;
}

.hidden{
  display:none !important;
}

@media (min-width: 980px){
  .admin-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width: 780px){
  .shell{
    width:min(100% - 20px, 1180px);
    padding-top:10px;
  }

  .topbar{
    position:static;
    align-items:flex-start;
    border-radius:28px;
    flex-direction:column;
    margin-bottom:44px;
  }

  .nav{
    justify-content:flex-start;
  }

  .hero{
    padding-top:8px;
  }

  .session-card,
  .token-row{
    align-items:stretch;
    flex-direction:column;
  }

  .token-preview{
    max-width:none;
  }

  .feature-card,
  .admin-panel{
    padding:22px;
    border-radius:26px;
  }

  .row,
  .hero-actions{
    align-items:stretch;
    flex-direction:column;
  }

  .row > label,
  .row > button,
  .hero-actions > button{
    width:100%;
  }
}
