:root{
  --hx-bg-top:#081936;
  --hx-bg-mid:#0c2c63;
  --hx-bg-bottom:#0c1640;
  --hx-surface:rgba(255,255,255,.94);
  --hx-surface-soft:rgba(255,255,255,.86);
  --hx-surface-strong:#ffffff;
  --hx-line:rgba(12,43,99,.14);
  --hx-text:#112449;
  --hx-text-soft:#4f6487;
  --hx-brand:#39a8ff;
  --hx-brand-strong:#2488ff;
  --hx-green:#68da67;
  --hx-green-strong:#3cc85d;
  --hx-shadow:0 20px 60px rgba(3,12,33,.20);
  --hx-shadow-soft:0 12px 34px rgba(3,12,33,.12);
  --hx-radius:22px;
  --hx-radius-sm:16px;
}

html{
  scroll-behavior:smooth;
}

body{
  position:relative;
  min-height:100vh;
  font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic UI","Noto Sans JP",sans-serif !important;
  color:var(--hx-text) !important;
  background:
    radial-gradient(1400px 760px at 10% -10%, rgba(57,168,255,.42), transparent 50%),
    radial-gradient(1000px 700px at 95% 8%, rgba(104,218,103,.30), transparent 48%),
    radial-gradient(900px 560px at 50% 105%, rgba(57,168,255,.18), transparent 42%),
    linear-gradient(180deg, var(--hx-bg-top) 0%, var(--hx-bg-mid) 22%, var(--hx-bg-bottom) 100%) !important;
  line-height:1.7;
}

body::before,
body::after{
  content:"";
  position:fixed;
  inset:auto;
  pointer-events:none;
  z-index:0;
}
body::before{
  width:420px;height:420px;left:-120px;top:100px;
  background:radial-gradient(circle, rgba(57,168,255,.22), rgba(57,168,255,0) 70%);
  filter:blur(8px);
}
body::after{
  width:380px;height:380px;right:-110px;bottom:120px;
  background:radial-gradient(circle, rgba(104,218,103,.18), rgba(104,218,103,0) 72%);
  filter:blur(8px);
}

header,
.container,
#aiBusy,
.heliex-hero,
.heliex-assistant{
  position:relative;
  z-index:1;
}

header{
  position:sticky !important;
  top:0;
  z-index:25 !important;
  padding:16px 18px !important;
  background:linear-gradient(135deg, rgba(7,24,57,.88), rgba(9,39,90,.84)) !important;
  border-bottom:1px solid rgba(255,255,255,.14) !important;
  backdrop-filter:blur(16px);
  box-shadow:0 14px 40px rgba(0,0,0,.18);
}

header .brandline{
  gap:4px !important;
}
header .brandline strong{
  font-size:1.15rem;
  font-weight:800;
  letter-spacing:.03em;
  color:#fff;
}
header .brandline .small{
  color:rgba(232,241,255,.86) !important;
  font-size:.92rem;
}
header .right{
  gap:12px !important;
}
header .right a{
  border-radius:999px;
  padding:10px 14px;
  background:rgba(255,255,255,.10);
  transition:transform .18s ease, background-color .18s ease;
}
header .right a:hover{
  background:rgba(255,255,255,.16);
  text-decoration:none !important;
  transform:translateY(-1px);
}
.tag{
  background:linear-gradient(135deg, rgba(57,168,255,.20), rgba(104,218,103,.14)) !important;
  color:#eff8ff !important;
  border:1px solid rgba(147,197,253,.28) !important;
  font-weight:700;
  min-height:34px;
  padding:6px 12px !important;
}

.container{
  max-width:1220px !important;
  margin:22px auto 48px !important;
  padding:0 16px !important;
}

.heliex-hero{
  margin:22px auto 12px;
  max-width:1220px;
  padding:0 16px;
}
.heliex-hero__panel{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(300px,.9fr);
  gap:18px;
  padding:28px;
  border-radius:32px;
  background:
    linear-gradient(135deg, rgba(10,34,80,.95), rgba(10,26,65,.92)),
    linear-gradient(135deg, rgba(57,168,255,.16), rgba(104,218,103,.08));
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 24px 70px rgba(1,8,24,.28);
  color:#fff;
  overflow:hidden;
}
.heliex-hero__panel::before{
  content:"";
  position:absolute;
  inset:-35% auto auto 55%;
  width:360px;height:360px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(104,218,103,.26), rgba(104,218,103,0) 65%);
}
.heliex-hero__panel::after{
  content:"";
  position:absolute;
  inset:auto auto -50px -50px;
  width:300px;height:300px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(57,168,255,.22), rgba(57,168,255,0) 70%);
}
.heliex-hero__content,
.heliex-hero__aside{
  position:relative;
  z-index:1;
}
.heliex-hero__eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);
  font-size:.9rem;
  letter-spacing:.03em;
  margin-bottom:14px;
}
.heliex-hero__eyebrow::before{
  content:"";
  width:10px;height:10px;border-radius:50%;
  background:linear-gradient(135deg, var(--hx-brand), var(--hx-green));
  box-shadow:0 0 0 4px rgba(255,255,255,.08);
}
.heliex-hero h1{
  margin:0;
  font-size:clamp(1.7rem, 3vw, 2.8rem);
  line-height:1.22;
}
.heliex-hero p{
  margin:14px 0 0;
  color:rgba(232,241,255,.88);
  font-size:1.02rem;
}
.heliex-hero__chips{
  display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;
}
.heliex-hero__chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.15);
  color:#fff;
  font-size:.94rem;
}
.heliex-hero__aside{
  display:grid;
  gap:12px;
  align-content:start;
}
.heliex-hero__stat{
  padding:18px 18px 16px;
  border-radius:24px;
  background:linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.08));
  border:1px solid rgba(255,255,255,.12);
}
.heliex-hero__stat strong{
  display:block;
  font-size:1.7rem;
  margin-bottom:4px;
}
.heliex-hero__stat span{
  display:block;
  color:rgba(232,241,255,.80);
  font-size:.92rem;
}

.card{
  background:linear-gradient(180deg, var(--hx-surface), rgba(255,255,255,.98)) !important;
  border:1px solid rgba(200,220,248,.55) !important;
  border-radius:26px !important;
  box-shadow:var(--hx-shadow-soft) !important;
  padding:20px !important;
  margin-bottom:16px !important;
  overflow:hidden;
}
.card::before{
  content:"";
  display:block;
  height:4px;
  margin:-20px -20px 16px;
  background:linear-gradient(90deg, var(--hx-brand), var(--hx-green));
  opacity:.95;
}
.card h2,.card h3,.card h4{
  color:var(--hx-text) !important;
  letter-spacing:.01em;
}
.card h2{font-size:1.5rem !important;margin-bottom:10px !important;}
.card h3{font-size:1.22rem !important;margin-bottom:10px !important;}
.card h4{font-size:1rem !important;color:var(--hx-text-soft) !important;}
.muted,
.small{
  color:var(--hx-text-soft) !important;
}
.small{
  font-size:.92rem !important;
}
.notice{
  background:linear-gradient(135deg, rgba(57,168,255,.11), rgba(104,218,103,.10)) !important;
  border-color:rgba(98,166,238,.24) !important;
  color:var(--hx-text) !important;
}
.notice.warn{
  background:rgba(250,204,21,.14) !important;
}
.notice.danger{
  background:rgba(248,113,113,.13) !important;
}

input,select,textarea{
  min-height:52px;
  border-radius:18px !important;
  border:1.5px solid #bfd1e7 !important;
  background:#fff !important;
  color:var(--hx-text) !important;
  padding:13px 14px !important;
  box-shadow:0 1px 0 rgba(255,255,255,.8) inset;
}
textarea{
  min-height:160px !important;
}
input:focus,select:focus,textarea:focus{
  border-color:rgba(57,168,255,.84) !important;
  box-shadow:0 0 0 5px rgba(57,168,255,.15) !important;
}
label{
  font-weight:700;
}

.btn,.btn2,.btnDanger,
a.btn,a.btn2,a.btnDanger,
button.btn,button.btn2,button.btnDanger{
  min-height:48px;
  border-radius:999px !important;
  padding:12px 18px !important;
  font-weight:800;
  letter-spacing:.01em;
  text-decoration:none !important;
}
.btn{
  background:linear-gradient(135deg, #0f2f67, #123f86) !important;
  color:#fff !important;
}
.btn2{
  background:linear-gradient(135deg, var(--hx-brand-strong), var(--hx-green-strong)) !important;
  color:#fff !important;
}
.btnDanger{
  background:linear-gradient(135deg, #e24d4d, #e96f51) !important;
  color:#fff !important;
}
.btn:hover,.btn2:hover,.btnDanger:hover{
  filter:brightness(1.04);
  transform:translateY(-1px);
}
.btn:disabled,.btn2:disabled,.btnDanger:disabled{
  opacity:.66;
  cursor:not-allowed;
  transform:none !important;
}

.pill{
  border:1px solid rgba(189,209,231,.85) !important;
  border-radius:999px !important;
  padding:8px 12px !important;
  color:var(--hx-text-soft) !important;
}

.table-wrap{
  border-radius:20px !important;
  border:1px solid rgba(189,209,231,.82) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65);
}
table{
  background:#fff;
}
th{
  background:linear-gradient(180deg, #edf5ff, #f7fbff) !important;
  color:var(--hx-text-soft) !important;
  font-weight:800;
}
td{
  color:var(--hx-text) !important;
}
tr:hover td{
  background:rgba(57,168,255,.05) !important;
}
pre{
  white-space:pre-wrap !important;
  word-break:break-word;
  background:linear-gradient(180deg, #f7fbff, #edf6ff) !important;
  border:1px solid rgba(189,209,231,.78);
  color:var(--hx-text) !important;
  border-radius:18px !important;
  padding:14px !important;
  font-size:.98rem;
  line-height:1.75;
}

.grid,.grid3{
  gap:16px !important;
}

#aiBusy{
  background:rgba(1,10,28,.56) !important;
  backdrop-filter:blur(8px);
}
#aiBusy .busyCard{
  background:
    linear-gradient(135deg, rgba(7,24,57,.96), rgba(11,44,100,.94)) !important;
  border:1px solid rgba(255,255,255,.14) !important;
  border-radius:28px !important;
  box-shadow:0 28px 80px rgba(0,0,0,.38) !important;
  min-width:min(92vw, 360px) !important;
}
#aiBusy .title{
  font-size:1.12rem;
}
#aiBusy .sub{
  font-size:.98rem !important;
  color:#e5f1ff !important;
}
#aiBusy .spinner{
  width:40px !important;
  height:40px !important;
  border-width:4px !important;
  border-top-color:var(--hx-green) !important;
  border-right-color:var(--hx-brand) !important;
}

.heliex-assistant{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:50;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
}
.heliex-assistant__hint{
  max-width:320px;
  padding:12px 14px;
  border-radius:18px 18px 6px 18px;
  background:rgba(255,255,255,.96);
  color:var(--hx-text);
  box-shadow:var(--hx-shadow);
  border:1px solid rgba(189,209,231,.86);
  font-size:.95rem;
}
.heliex-assistant__hint[hidden]{
  display:none !important;
}
.heliex-assistant__fab{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:68px;
  padding:10px 14px 10px 10px;
  border:none;
  cursor:pointer;
  border-radius:999px;
  background:linear-gradient(135deg, rgba(255,255,255,.96), rgba(240,248,255,.98));
  box-shadow:0 18px 55px rgba(3,12,33,.28);
  border:1px solid rgba(187,209,234,.86);
  color:var(--hx-text);
}
.heliex-assistant__fab:hover{
  transform:translateY(-1px);
}
.heliex-assistant__avatar,
.heliex-assistant__mini-avatar{
  width:48px;height:48px;border-radius:50%;
  overflow:hidden;
  background:linear-gradient(135deg, #0d2d66, #103f8c);
  border:2px solid rgba(255,255,255,.75);
  box-shadow:0 8px 24px rgba(3,12,33,.22);
  flex:none;
}
.heliex-assistant__avatar img,
.heliex-assistant__mini-avatar img{
  width:100%;height:100%;object-fit:cover;
}
.heliex-assistant__fab span{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
}
.heliex-assistant__fab strong{
  font-size:1rem;
}
.heliex-assistant__fab small{
  color:var(--hx-text-soft);
  font-size:.84rem;
}
.heliex-assistant__panel{
  width:min(390px, calc(100vw - 24px));
  border-radius:28px;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,252,255,.98));
  border:1px solid rgba(187,209,234,.95);
  box-shadow:0 24px 72px rgba(3,12,33,.34);
  overflow:hidden;
}
.heliex-assistant__panel[hidden]{
  display:none !important;
}
.heliex-assistant__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 18px 14px;
  background:linear-gradient(135deg, rgba(8,25,54,.96), rgba(10,44,99,.94));
  color:#fff;
}
.heliex-assistant__who{
  display:flex;
  align-items:center;
  gap:12px;
}
.heliex-assistant__status{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:4px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  font-size:.83rem;
}
.heliex-assistant__status::before{
  content:"";
  width:8px;height:8px;border-radius:50%;
  background:var(--hx-green);
  box-shadow:0 0 0 4px rgba(255,255,255,.08);
}
.heliex-assistant__close{
  border:none;
  background:rgba(255,255,255,.12);
  color:#fff;
  width:38px;height:38px;border-radius:50%;
  cursor:pointer;
  font-size:1.2rem;
}
.heliex-assistant__body{
  padding:16px;
}
.heliex-assistant__message{
  border-radius:18px 18px 18px 8px;
  background:linear-gradient(180deg, #f0f8ff, #eaf5ff);
  color:var(--hx-text);
  padding:14px;
  border:1px solid rgba(187,209,234,.86);
  line-height:1.75;
}
.heliex-assistant__meta{
  display:flex;
  justify-content:space-between;
  gap:8px;
  margin-top:10px;
  color:var(--hx-text-soft);
  font-size:.84rem;
}
.heliex-assistant__actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}
.heliex-assistant__action{
  border:none;
  cursor:pointer;
  min-height:42px;
  border-radius:999px;
  padding:10px 14px;
  background:#fff;
  color:var(--hx-text);
  border:1px solid rgba(187,209,234,.95);
  box-shadow:0 8px 20px rgba(3,12,33,.08);
  font-weight:700;
}
.heliex-assistant__action.is-primary{
  background:linear-gradient(135deg, var(--hx-brand-strong), var(--hx-green-strong));
  color:#fff;
  border-color:transparent;
}
.heliex-assistant__tips{
  margin-top:14px;
  display:grid;
  gap:10px;
}
.heliex-assistant__tip{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:12px 13px;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(187,209,234,.90);
}
.heliex-assistant__tip strong{
  display:block;
  font-size:.93rem;
  margin-bottom:2px;
}
.heliex-assistant__tip span{
  color:var(--hx-text-soft);
  font-size:.88rem;
}
.heliex-assistant__tip i{
  width:26px;height:26px;flex:none;border-radius:50%;
  display:inline-grid;place-items:center;
  font-style:normal;
  background:linear-gradient(135deg, rgba(57,168,255,.16), rgba(104,218,103,.18));
  color:var(--hx-text);
  font-size:.9rem;
}
.heliex-assistant__glow{
  animation:heliexGlow 2.2s ease-in-out infinite;
}
.heliex-pulse-target{
  animation:heliexPulse 1.6s ease 2;
  box-shadow:0 0 0 0 rgba(57,168,255,.28);
}
@keyframes heliexGlow{
  0%,100%{box-shadow:0 0 0 0 rgba(104,218,103,.18),0 8px 24px rgba(3,12,33,.22)}
  50%{box-shadow:0 0 0 10px rgba(104,218,103,0),0 8px 24px rgba(3,12,33,.22)}
}
@keyframes heliexPulse{
  0%{box-shadow:0 0 0 0 rgba(57,168,255,.28)}
  70%{box-shadow:0 0 0 12px rgba(57,168,255,0)}
  100%{box-shadow:0 0 0 0 rgba(57,168,255,0)}
}

@media (max-width: 920px){
  .heliex-hero__panel{
    grid-template-columns:1fr;
    padding:22px;
  }
}
@media (max-width: 860px){
  header{
    align-items:flex-start !important;
  }
  .container{
    margin-top:18px !important;
  }
  .card{
    padding:18px !important;
    border-radius:22px !important;
  }
  .card::before{
    margin:-18px -18px 14px;
  }
  .btn,.btn2,.btnDanger,a.btn,a.btn2,a.btnDanger{
    width:100%;
    justify-content:center;
  }
  .heliex-assistant{
    right:12px;
    bottom:12px;
  }
  .heliex-assistant__fab{
    min-height:62px;
  }
  .heliex-assistant__hint{
    max-width:min(90vw, 300px);
  }
}

@media (prefers-reduced-motion: reduce){
  *,
  *::before,
  *::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
}
