.portal-body {
  padding: 0;
  font-size: 13px;
  --panel: #17131e;
  --soft: #201a29;
  --p-line: #302738;
  --p-muted: #aca2b9;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  text-decoration: none;
}
.portal-body button {
  color: inherit;
}
.portal-body h1,
.portal-body h2,
.portal-body h3 {
  font-weight: 500;
  letter-spacing: -0.035em;
}
.portal-body h1 {
  font-size: 30px;
  line-height: 1.3;
}
.portal-body h2 {
  font-size: 18px;
}
.portal-body h3 {
  font-size: 15px;
}
.muted {
  color: var(--p-muted);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  border: 1px solid var(--p-line);
  border-radius: 9px;
  padding: 10px 15px;
  font-weight: 500;
  font-size: 12px;
  transition: background 0.2s;
}
.btn:hover {
  background: #342943;
}
.btn.primary {
  background: #9672ef;
  border-color: #a487ee;
  color: #110b20;
}
.btn.primary:hover {
  background: #b296f5;
}
.btn.quiet {
  background: transparent;
}
.btn.sm {
  padding: 7px 11px;
  font-size: 11px;
}
.icon {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.stack {
  display: grid;
  gap: 18px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 6px;
  background: #24202c;
  color: #c7bfd3;
  font-size: 10px;
  white-space: nowrap;
}
.pill.green {
  color: #b6d9b0;
  background: #233029;
}
.pill.purple {
  color: #c9b4ff;
  background: #302441;
}
.pill.amber {
  color: #edc889;
  background: #352c23;
}
.dot {
  height: 5px;
  width: 5px;
  display: inline-block;
  background: currentColor;
  border-radius: 50%;
}
.wordmark {
  width: 148px;
  height: auto;
}
.brand-link {
  display: flex;
  gap: 13px;
  align-items: center;
}
.brand-link .divider {
  width: 1px;
  height: 20px;
  background: var(--p-line);
}
.brand-link span {
  color: var(--p-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.login {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-art {
  padding: 40px 8%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 740px;
  border-right: 1px solid var(--p-line);
  background:
    radial-gradient(ellipse at 48% 53%, #49306655, transparent 64%), #110d16;
}
.login-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#ac87f007 1px, transparent 1px),
    linear-gradient(90deg, #ac87f007 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.login-art > * {
  position: relative;
}
.login-copy {
  margin: auto 0 0;
  padding-top: 50px;
}
.login-copy h1 {
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1.18;
  margin: 18px 0;
}
.login-copy h1 span {
  color: #baa0f4;
}
.login-copy > p {
  max-width: 405px;
  line-height: 1.9;
  color: var(--p-muted);
  font-size: 14px;
}
.constellation {
  height: 250px;
  position: relative;
  margin: 25px 0;
}
.core {
  position: absolute;
  width: 130px;
  height: 130px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px solid #b296f570;
  border-radius: 32px;
  background: radial-gradient(circle at 30% 10%, #553d75, #231931 70%);
  box-shadow:
    0 0 70px #a777ed1a,
    0 0 0 20px #b296f507,
    0 0 0 60px #b296f503;
}
.core strong {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.07em;
}
.core span {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: #c1a8e3;
}
.satellite {
  position: absolute;
  background: #1d1625;
  border: 1px solid #493751;
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 8px 24px #08050c80;
}
.satellite:nth-of-type(2) {
  left: 0;
  top: 22px;
}
.satellite:nth-of-type(3) {
  right: 0;
  top: 35px;
}
.satellite:nth-of-type(4) {
  bottom: 20px;
  left: 0;
}
.satellite:nth-of-type(5) {
  bottom: 6px;
  right: 0;
}
.login-bottom {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--p-muted);
  font-size: 10px;
  margin-top: auto;
}
.login-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 55px 32px;
  position: relative;
}
.login-box {
  max-width: 370px;
  width: 100%;
}
.login-box h2 {
  font-size: 29px;
  margin: 16px 0 10px;
}
.login-box > p {
  line-height: 1.8;
  margin-bottom: 25px;
  color: var(--p-muted);
}
.lock-icon {
  width: 44px;
  height: 44px;
  border: 1px solid #644982;
  border-radius: 12px;
  color: #c2a5ff;
  background: #2a1f38;
  display: grid;
  place-items: center;
}
.form {
  display: grid;
  gap: 18px;
}
.form label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: #d4cbdf;
}
.field,
input,
select,
textarea {
  width: 100%;
  border: 1px solid #3b3046;
  background: #15101b;
  color: var(--text);
  padding: 11px 13px;
  border-radius: 8px;
  min-width: 0;
}
.form textarea {
  min-height: 140px;
  resize: vertical;
}
.form .btn {
  padding: 12px;
}
.form small {
  color: var(--p-muted);
  font-size: 11px;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 52px;
}
.password-wrap button {
  position: absolute;
  right: 6px;
  top: 6px;
  background: transparent;
  border: 0;
  padding: 6px;
}
.divider-label {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #82778f;
  font-size: 10px;
  margin: 28px 0 16px;
}
.divider-label::before,
.divider-label::after {
  content: "";
  height: 1px;
  background: var(--p-line);
  flex: 1;
}
.demo-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.login-foot {
  margin-top: 30px;
  font-size: 10px;
  line-height: 1.8;
  color: #95879f;
  text-align: center;
}
.error {
  color: #f1acac;
  font-size: 12px;
}
.shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 100svh;
}
.sidebar {
  background: #120e17;
  border-right: 1px solid var(--p-line);
  padding: 28px 18px 18px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  width: 230px;
  z-index: 30;
}
.sidebar .wordmark {
  width: 144px;
  margin: 0 10px 5px;
}
.workspace-label {
  color: #8f819c;
  font-size: 9px;
  letter-spacing: 0.2em;
  margin: 8px 11px 26px;
}
.workspace-select {
  margin-bottom: 25px;
  background: #211928;
  padding: 11px;
  font-size: 12px;
}
.nav-label {
  font-size: 9px;
  color: #8f819c;
  letter-spacing: 0.14em;
  margin: 20px 13px 9px;
}
.nav {
  display: grid;
  gap: 4px;
}
.nav button {
  border: 0;
  background: none;
  color: #b0a4bb;
  text-align: left;
  padding: 11px 13px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
}
.nav button:hover {
  background: #231b2c;
}
.nav button.locked,
.nav button.locked:hover {
  background: none;
  color: #6f6580;
  cursor: not-allowed;
  opacity: 0.85;
}
.nav button.locked .lock {
  margin-left: auto;
  display: inline-flex;
  opacity: 0.8;
}
.nav button.locked .lock svg {
  width: 14px;
  height: 14px;
}
.nav button.active {
  background: #30223f;
  color: #d4baff;
  box-shadow: inset 2px 0 #b092ed;
}
.nav .count {
  margin-left: auto;
  font-size: 10px;
  background: #443353;
  padding: 1px 6px;
  border-radius: 4px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.support-box {
  padding: 15px;
  background: linear-gradient(130deg, #2a1e36, #19131f);
  border: 1px solid #392c45;
  border-radius: 10px;
  margin-bottom: 18px;
}
.support-box p {
  color: var(--p-muted);
  font-size: 10px;
  margin: 7px 0 12px;
}
.user {
  border-top: 1px solid var(--p-line);
  padding-top: 17px;
  font-size: 11px;
}
.avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #423153;
  border: 1px solid #5c456f;
  color: #e3cdfb;
  border-radius: 10px;
  font-size: 11px;
  flex: none;
}
.user small {
  font-size: 9px;
  display: block;
  color: var(--p-muted);
}
.main-shell {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 77px;
  padding: 0 34px;
  border-bottom: 1px solid var(--p-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #120e1780;
}
.breadcrumb {
  color: #90839e;
  font-size: 11px;
}
.breadcrumb span {
  color: #d7cee1;
  margin-left: 12px;
}
.top-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}
.content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 31px 34px 42px;
}
.demo-banner {
  margin-bottom: 24px;
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 10px;
  color: #beadd3;
}
.demo-banner .dot {
  color: #c1a3fa;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.page-heading p {
  font-size: 12px;
  color: var(--p-muted);
  margin-top: 8px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 23px;
}
.stat {
  border: 1px solid var(--p-line);
  background: linear-gradient(125deg, #201925, #17121d);
  border-radius: 12px;
  padding: 18px 20px;
}
.stat-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #b0a3bf;
}
.stat-label .icon {
  color: #a58dbb;
  width: 16px;
}
.stat-value {
  font-size: 29px;
  font-weight: 500;
  margin: 10px 0 3px;
  letter-spacing: -0.05em;
}
.stat small {
  font-size: 9px;
  color: #ac9cbb;
}
.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
  gap: 20px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--p-line);
  border-radius: 13px;
  overflow: hidden;
}
.panel-head {
  padding: 19px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-head p {
  font-size: 10px;
  color: var(--p-muted);
  margin-top: 4px;
}
.agent-list {
  padding: 0 20px 9px;
}
.agent-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 0;
  border-top: 1px solid #302738;
}
.agent-symbol {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #30243f;
  color: #cab0f6;
  display: grid;
  place-items: center;
  flex: none;
}
.agent-symbol.voice {
  background: #29322d;
  color: #bed1ab;
}
.agent-symbol.avatar-type {
  background: #342834;
  color: #d3b4c6;
}
.agent-text {
  flex: 1;
  min-width: 0;
}
.agent-text strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
}
.agent-text small {
  font-size: 10px;
  color: var(--p-muted);
  display: block;
  margin-top: 4px;
}
.agent-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.brain-panel {
  padding: 23px;
  background:
    radial-gradient(ellipse at top right, #57317744, transparent 65%),
    var(--panel);
  display: flex;
  flex-direction: column;
}
.brain-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brain-visual {
  height: 140px;
  position: relative;
  display: grid;
  place-items: center;
  margin: 4px 0;
}
.brain-visual::before,
.brain-visual::after {
  content: "";
  position: absolute;
  width: 105px;
  height: 105px;
  border: 1px solid #74529355;
  border-radius: 50%;
}
.brain-visual::after {
  width: 145px;
  height: 145px;
  border-style: dashed;
  opacity: 0.6;
}
.brain-center {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #624281, #281d38);
  border: 1px solid #9068ab;
  border-radius: 20px;
  box-shadow: 0 0 35px #905ccc30;
}
.brain-center .icon {
  width: 30px;
  height: 30px;
}
.brain-panel p {
  font-size: 11px;
  color: var(--p-muted);
  line-height: 1.8;
  margin: 7px 0 18px;
}
.brain-panel .btn {
  margin-top: auto;
}
.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
  gap: 20px;
  margin-top: 21px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  color: #9f91ad;
  font-weight: 400;
  font-size: 9px;
  padding: 10px 20px;
  background: #1d1725;
}
td {
  font-size: 11px;
  padding: 16px 20px;
  border-top: 1px solid #2d2535;
}
td small {
  display: block;
  color: #a192af;
  font-size: 9px;
  margin-top: 3px;
}
.timeline {
  padding: 0 21px 19px;
}
.event {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  position: relative;
}
.event:last-child {
  margin: 0;
}
.event .event-dot {
  margin-top: 6px;
  background: #9579bc;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
}
.event strong {
  font-size: 11px;
  font-weight: 400;
  display: block;
}
.event small {
  font-size: 9px;
  color: var(--p-muted);
}
.footer-note {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  color: #83758f;
  font-size: 9px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.agent-card {
  padding: 23px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.agent-card p {
  color: var(--p-muted);
  font-size: 11px;
  line-height: 1.8;
}
.agent-card .btn {
  margin-top: auto;
}
.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 19px;
  flex-wrap: wrap;
}
.toolbar input {
  max-width: 300px;
}
.toolbar select {
  width: auto;
}
.empty {
  padding: 40px 22px;
  text-align: center;
  color: var(--p-muted);
  font-size: 12px;
}
.empty .icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 14px;
}
.empty p {
  margin-top: 8px;
}
.studio {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 20px;
}
.studio-settings {
  padding: 23px;
  align-self: start;
}
.studio-settings label {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  color: var(--p-muted);
  font-size: 11px;
}
.chat-panel {
  display: flex;
  flex-direction: column;
  min-height: 530px;
}
.chat-messages {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 17px;
  max-height: 480px;
  overflow: auto;
}
.bubble {
  max-width: 85%;
  padding: 14px 17px;
  font-size: 12px;
  line-height: 1.8;
  background: #261d32;
  border: 1px solid #3a2c49;
  border-radius: 0 13px 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bubble.mine {
  align-self: flex-end;
  background: #46305f;
  border-color: #62467f;
  border-radius: 13px 0 13px 13px;
}
.chat-form {
  border-top: 1px solid var(--p-line);
  padding: 18px;
  display: flex;
  gap: 10px;
}
.chat-form input {
  flex: 1;
}
.studio-hint {
  padding: 0 20px 17px;
  font-size: 10px;
  color: var(--p-muted);
}
.visual-preview {
  height: 220px;
  border-radius: 10px;
  background: radial-gradient(ellipse, #44345a, #19131f 65%);
  display: grid;
  place-items: center;
  margin: 20px 0;
}
.visual-preview img {
  height: 210px;
  object-fit: contain;
}
.wave {
  height: 65px;
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.wave i {
  display: block;
  width: 4px;
  height: var(--h);
  background: #b298db;
  border-radius: 8px;
}
.knowledge-list {
  padding: 0 22px;
}
.knowledge-row {
  padding: 20px 0;
  border-top: 1px solid var(--p-line);
  display: flex;
  align-items: center;
  gap: 15px;
}
.knowledge-row > div:nth-child(2) {
  flex: 1;
}
.knowledge-row p {
  font-size: 11px;
  color: var(--p-muted);
  max-width: 650px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.integration {
  padding: 23px;
}
.integration p {
  font-size: 11px;
  color: var(--p-muted);
  margin: 12px 0 18px;
}
.integration .icon {
  height: 25px;
  width: 25px;
  color: var(--accent);
  margin-bottom: 16px;
}
dialog {
  margin: auto;
  background: #1d1626;
  color: var(--text);
  border: 1px solid #4c3a5c;
  border-radius: 15px;
  width: min(530px, calc(100% - 32px));
  max-height: 90svh;
  padding: 26px;
  box-shadow: 0 30px 100px #0008;
}
dialog::backdrop {
  background: #08050cbd;
  backdrop-filter: blur(5px);
}
dialog .form {
  margin-top: 24px;
}
dialog h2 {
  font-size: 20px;
}
dialog .close {
  background: transparent;
  border: 0;
  color: var(--p-muted);
  padding: 5px;
}
.loading {
  padding: 20vh 10%;
  color: var(--accent);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: #3d2b51;
  color: #f1e7ff;
  box-shadow: 0 12px 35px #0008;
  padding: 13px 20px;
  border: 1px solid #71528d;
  border-radius: 10px;
  font-size: 12px;
  max-width: calc(100% - 30px);
  display: none;
}
#toast.visible {
  display: block;
}
.mobile-menu {
  display: none;
}
.danger {
  color: #efb3b3 !important;
}
.check-row {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 10px !important;
}
.check-row input {
  width: auto;
}
.notice {
  padding: 15px 18px;
  background: #2c2238;
  border: 1px solid #483456;
  border-radius: 10px;
  color: #cbb8df;
  font-size: 11px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.page-heading .row {
  flex-wrap: wrap;
}
.wide {
  width: 100%;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 40px;
  }
  .stat {
    padding: 24px;
  }
  .agent-row {
    padding: 22px 0;
  }
  .panel-head {
    padding-top: 23px;
    padding-bottom: 23px;
  }
}
@media (max-width: 1150px) {
  .shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .sidebar {
    width: 200px;
    padding: 23px 13px;
  }
  .content {
    padding: 25px 22px;
  }
  .topbar {
    padding: 0 22px;
  }
  .grid-main,
  .lower-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(230px, 1fr);
  }
  .agent-actions {
    gap: 6px;
  }
  .agent-actions .pill {
    display: none;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    padding: 15px;
  }
  .stats {
    gap: 10px;
  }
  .login-art {
    padding: 35px 7%;
  }
}
@media (max-width: 900px) {
  .grid-main,
  .lower-grid {
    grid-template-columns: 1fr;
  }
  .brain-panel {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .login {
    grid-template-columns: 1fr 1fr;
  }
  .login-art {
    padding: 30px;
  }
  .constellation {
    transform: scale(0.9);
    margin-left: -20px;
    margin-right: -20px;
  }
  .satellite {
    font-size: 9px;
    padding: 7px;
  }
  .login-bottom {
    font-size: 9px;
  }
  .studio {
    grid-template-columns: 1fr;
  }
  .studio-settings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .studio-settings label {
    margin: 0;
  }
  .studio-settings h2,
  .studio-settings p {
    grid-column: 1/-1;
  }
}
/* Tablet és kisebb: az oldalsáv a menü gomb mögé kerül, hogy a tartalom (pl. a Bemutató kerete) kapja a teljes szélességet. */
@media (max-width: 1000px) {
  .shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 240px;
    box-shadow: 30px 0 100px #000a;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-menu {
    display: inline-flex;
    padding: 8px;
  }
  .menu-open {
    overflow: hidden;
  }
  .menu-open .menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 25;
    background: #07040caa;
    backdrop-filter: blur(3px);
  }
  .content {
    padding: 22px 18px;
  }
}
@media (max-width: 680px) {
  .login {
    display: block;
  }
  .login-art {
    min-height: 0;
    padding: 24px;
    border-right: 0;
    border-bottom: 1px solid var(--p-line);
  }
  .login-copy {
    padding-top: 22px;
  }
  .login-copy h1 {
    font-size: 31px;
    margin: 10px 0;
  }
  .login-copy > p {
    font-size: 12px;
  }
  .constellation,
  .login-bottom {
    display: none;
  }
  .login-form-side {
    padding: 30px 24px;
  }
  .login-box h2 {
    font-size: 25px;
  }
  .login-box > p {
    font-size: 12px;
  }
  .shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 240px;
    box-shadow: 30px 0 100px #000a;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-menu {
    display: inline-flex;
    padding: 8px;
  }
  .topbar {
    height: 65px;
    padding: 0 17px;
  }
  .breadcrumb {
    display: none;
  }
  .top-actions {
    gap: 10px;
  }
  .top-actions > .pill {
    display: none;
  }
  .content {
    padding: 20px 16px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .page-heading > .btn {
    font-size: 10px;
    padding: 9px;
    white-space: nowrap;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .agent-list {
    padding: 0 15px 8px;
  }
  .agent-row {
    gap: 9px;
  }
  .agent-symbol {
    width: 35px;
    height: 35px;
  }
  .agent-text strong {
    font-size: 11px;
  }
  .agent-text small {
    font-size: 9px;
  }
  .agent-actions .btn {
    font-size: 10px;
    padding: 6px;
  }
  .panel-head {
    padding: 17px;
  }
  .panel-head h2 {
    font-size: 16px;
  }
  .stat-value {
    font-size: 26px;
  }
  .studio-settings {
    grid-template-columns: 1fr;
  }
  .chat-messages {
    padding: 16px;
  }
  .bubble {
    max-width: 95%;
  }
  .demo-banner {
    align-items: flex-start;
    line-height: 1.8;
  }
  .knowledge-row {
    flex-wrap: wrap;
  }
  .knowledge-row p {
    max-width: 230px;
  }
  .footer-note {
    font-size: 8px;
  }
  .topbar .btn {
    font-size: 10px;
  }
  .form {
    gap: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

[hidden] {
  display: none !important;
}
.sidebar-close {
  position: absolute;
  top: 22px;
  right: 10px;
  padding: 5px;
}
@media (max-width: 680px) {
  .sidebar .wordmark {
    width: 130px;
  }
}

.language-switch {
  display: inline-flex;
  flex-shrink: 0;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--p-line);
  border-radius: 9px;
  background: #15101b;
}
.language-switch button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 11px;
  color: var(--p-muted);
  min-height: 32px;
}
.language-switch button[aria-pressed="true"] {
  background: #493461;
  color: #f0e6ff;
}
.language-switch button:hover {
  color: #fff;
}
.login-language {
  position: absolute;
  top: 30px;
  right: 30px;
}
@media (max-width: 680px) {
  .login-language {
    position: static;
    align-self: flex-end;
    margin-bottom: 22px;
  }
  .login-form-side {
    flex-direction: column;
  }
  .top-actions {
    gap: 8px;
  }
}

/* HC Signal identity: crisp cut corners, a shared monogram, purposeful motion. */
.portal-body {
  --ease-out: cubic-bezier(0.2, 0.75, 0.25, 1);
  --signal: #c7b2fa;
}
.hc-icon {
  stroke-width: 1.45;
  stroke-linecap: square;
  stroke-linejoin: bevel;
}
.hc-icon .icon-signal {
  stroke: var(--signal);
  stroke-width: 1.8;
}
.hc-mark {
  width: 74px;
  height: 74px;
  fill: none;
  stroke: #eee6ff;
  stroke-width: 2.1;
  stroke-linejoin: bevel;
}
.hc-mark .mark-frame {
  stroke: #bd9cea;
  stroke-width: 0.8;
  opacity: 0.65;
}
.hc-mark .mark-signal {
  fill: #c3a3ff;
  stroke: none;
}
.core .hc-mark {
  margin: 0 auto 11px;
  width: 66px;
  height: 66px;
}
.core {
  border-radius: 21px;
  background: linear-gradient(145deg, #382747, #1a1325);
  box-shadow:
    0 15px 45px #06040950,
    0 0 0 19px #b296f507,
    0 0 0 60px #b296f503;
}
.brain-center .hc-mark {
  width: 44px;
  height: 44px;
}
.signal-routes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.signal-routes path {
  fill: none;
  stroke: #b698e4;
  stroke-width: 0.7;
  opacity: 0.23;
  vector-effect: non-scaling-stroke;
}
.signal-routes .route-flow {
  opacity: 0.8;
  stroke-width: 1.5;
  stroke-dasharray: 5 90;
}
.agent-symbol {
  border: 1px solid #b48de524;
  background: linear-gradient(145deg, #35293f, #221a2c);
  border-radius: 10px;
}
.agent-symbol.voice {
  border-color: #b5ceab28;
  --signal: #c9e4be;
}
.agent-symbol.avatar-type {
  border-color: #d5a5c629;
  --signal: #e1bbd7;
}
.btn.primary {
  box-shadow:
    inset 0 1px 0 #ffffff30,
    0 3px 8px #0002;
}
.btn.primary .icon-signal {
  stroke: currentColor;
}
.btn {
  position: relative;
  min-height: 38px;
  transition:
    background 0.18s,
    border-color 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
}
.btn:focus-visible,
.nav button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #cfb6ff;
  outline-offset: 4px;
}
.field:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: #a17bd7;
  box-shadow: 0 0 0 3px #af88ed12;
}
.form input,
.form select,
.form textarea {
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.form input:user-invalid {
  border-color: #c67a85;
}
.stat-value {
  font-variant-numeric: tabular-nums;
}
.stat {
  background: linear-gradient(145deg, #201927, #18131e);
  box-shadow: inset 0 1px 0 #f1ddff04;
}
.panel {
  box-shadow: 0 7px 20px #07040a15;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #120e17ed;
  backdrop-filter: blur(18px);
}
.topbar::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--signal);
}
.workspace-loading .topbar::after {
  width: 35%;
  animation: request-progress 1s ease-in-out infinite;
}
.workspace-loading .content {
  opacity: 0.55;
  pointer-events: none;
}
.sidebar {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #574167 transparent;
}
.sidebar .support-box {
  margin-top: 8px;
}
.user {
  gap: 8px;
}
.user > div {
  flex: 1;
  min-width: 0;
}
.user .btn {
  padding: 7px;
  flex: none;
}
.menu-backdrop {
  display: none;
}
#main:focus {
  outline: none;
}
.table-scroll {
  scrollbar-width: thin;
  scrollbar-color: #624a75 transparent;
}
.booking-table td {
  font-variant-numeric: tabular-nums;
}
.booking-table tr {
  transition: background 0.15s;
}
.booking-table tbody tr:hover {
  background: #ac8acb06;
}
dialog {
  padding: 28px;
  border-radius: 14px;
  border-color: #776086;
}
dialog .row.between {
  align-items: flex-start;
}
dialog .close {
  flex: none;
  min-width: 36px;
  min-height: 36px;
  display: grid;
  place-items: center;
  border-radius: 7px;
}
dialog .close:hover {
  background: #35283f;
}
#toast {
  padding: 14px 19px 14px 38px;
  max-width: min(490px, calc(100% - 32px));
  line-height: 1.7;
}
#toast::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 22px;
  width: 6px;
  height: 6px;
  background: #c7b2fa;
  transform: rotate(45deg);
}

/* Real loading states. No fake percentages, delays or full-screen overlays after startup. */
.boot-screen {
  min-height: 100svh;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background:
    radial-gradient(ellipse at 50% 45%, #271a3640, transparent 45%), #100c15;
}
.boot-emblem {
  width: 84px;
  height: 84px;
}
.boot-emblem svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #d1b9f0;
  stroke-width: 1.8;
  stroke-linejoin: bevel;
}
.boot-emblem .boot-outline {
  stroke-width: 0.8;
  opacity: 0.65;
}
.boot-emblem .boot-signal {
  stroke: none;
  fill: #c9a4ff;
}
.boot-wordmark {
  font-size: 17px;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.boot-wordmark span {
  color: #a698b5;
  font-size: 10px;
  letter-spacing: 0.24em;
  margin-left: 8px;
}
.boot-track {
  height: 1px;
  width: 140px;
  background: #35283e;
  overflow: hidden;
}
.boot-track::after {
  content: "";
  display: block;
  width: 45%;
  height: 100%;
  background: #c5a8ed;
  animation: boot-progress 1.2s ease-in-out infinite;
}
.boot-status {
  color: #a99db5;
  font-size: 10px;
  letter-spacing: 0.035em;
  text-align: center;
}
.boot-failed .boot-track {
  display: none;
}
.is-busy {
  padding-right: 42px !important;
}
.is-busy::after {
  content: "";
  position: absolute;
  right: 15px;
  top: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.agent-thinking {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #b5a7c4;
  padding: 8px 0;
}
.thinking-dots {
  display: flex;
  gap: 4px;
}
.thinking-dots i {
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: #bb9bea;
  animation: thinking 1.1s ease-in-out infinite;
}
.thinking-dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.thinking-dots i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes boot-progress {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(325%);
  }
}
@keyframes request-progress {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(380%);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes thinking {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
@keyframes surface-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes signal-flow {
  to {
    stroke-dashoffset: -190;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .login-copy,
  .login-box {
    animation: surface-in 0.5s var(--ease-out) both;
  }
  .page-heading,
  .stats,
  .grid-main,
  .lower-grid,
  .cards,
  .studio {
    animation: surface-in 0.28s var(--ease-out) both;
  }
  dialog[open] {
    animation: surface-in 0.2s var(--ease-out);
  }
  #toast.visible {
    animation: toast-in 0.2s var(--ease-out);
  }
  .route-flow {
    animation: signal-flow 16s linear 2;
  }
  .nav button .icon {
    transition: transform 0.2s var(--ease-out);
  }
  .nav button:hover .icon {
    transform: translateX(2px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .portal-body *,
  .portal-body *::before,
  .portal-body *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .boot-track::after {
    transform: translateX(65%);
  }
}

/* Responsive content hierarchy: readable labels and touch targets at every size. */
@media (min-width: 1100px) {
  .login-art {
    padding: 38px clamp(40px, 6vw, 105px);
  }
  .login-copy {
    margin-top: auto;
    padding-top: 45px;
  }
  .constellation {
    margin: 35px -10px 40px;
    height: 270px;
  }
  .login-box {
    max-width: 395px;
  }
  .login-box h2 {
    font-size: 28px;
  }
  .login-form-side {
    padding-top: 100px;
    padding-bottom: 70px;
  }
}
@media (min-width: 681px) and (max-width: 1100px) {
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .grid-main,
  .lower-grid {
    grid-template-columns: 1fr;
  }
  .brain-panel {
    display: block;
  }
  .brain-visual {
    float: right;
    width: 145px;
    height: 130px;
    margin: 5px 0 0 18px;
  }
  .brain-panel .btn {
    width: fit-content;
  }
  .brain-heading {
    margin-bottom: 16px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .login-art {
    padding: 32px 25px;
  }
  .login-copy h1 {
    font-size: 34px;
  }
  .login-form-side {
    padding: 100px 24px 45px;
  }
  .login-box h2 {
    font-size: 24px;
  }
  .demo-options {
    grid-template-columns: 1fr;
  }
  .login-bottom {
    gap: 12px;
  }
}
@media (max-width: 680px) {
  .portal-body {
    font-size: 14px;
  }
  .login-art {
    padding: max(24px, env(safe-area-inset-top)) 24px 26px;
  }
  .login-copy {
    padding-top: 28px;
  }
  .login-copy h1 {
    font-size: clamp(27px, 7.4vw, 38px);
  }
  .login-copy > p {
    font-size: 13px;
    line-height: 1.85;
  }
  .login-form-side {
    padding: 20px 24px max(30px, env(safe-area-inset-bottom));
  }
  .login-language {
    margin-bottom: 16px;
  }
  .login-box {
    max-width: 460px;
  }
  .login-box h2 {
    font-size: 25px;
  }
  .login-box > p {
    font-size: 13px;
  }
  .login-foot {
    font-size: 11px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
    min-height: 46px;
  }
  .form label {
    font-size: 13px;
  }
  .form small {
    font-size: 12px;
  }
  .btn,
  .btn.sm,
  .nav button,
  .language-switch button {
    min-height: 44px;
  }
  .btn.sm {
    font-size: 12px;
  }
  .password-wrap button {
    min-width: 40px;
    min-height: 38px;
  }
  .topbar {
    padding: max(8px, env(safe-area-inset-top)) 16px 8px;
    height: auto;
    min-height: 70px;
  }
  .top-actions > span.muted {
    display: none;
  }
  .top-actions {
    margin-left: auto;
  }
  .sidebar {
    width: min(290px, calc(100vw - 48px));
    padding-top: max(28px, env(safe-area-inset-top));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    box-shadow: none;
  }
  .sidebar-close {
    top: max(20px, env(safe-area-inset-top));
    min-width: 44px;
  }
  .menu-open {
    overflow: hidden;
  }
  .menu-open .menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 25;
    background: #07040caa;
    backdrop-filter: blur(3px);
  }
  .sidebar-bottom {
    padding-top: 24px;
  }
  .workspace-select {
    font-size: 13px;
  }
  .content {
    padding-bottom: max(30px, env(safe-area-inset-bottom));
  }
  .page-heading {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 23px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .page-heading p {
    font-size: 13px;
    line-height: 1.8;
  }
  .page-heading > .btn {
    font-size: 12px;
    padding: 10px 16px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat-label {
    font-size: 11px;
    gap: 8px;
    align-items: flex-start;
  }
  .stat small {
    font-size: 10px;
    line-height: 1.7;
    display: block;
  }
  .stat-value {
    font-size: 30px;
  }
  .panel-head {
    align-items: flex-start;
    gap: 10px;
    padding: 18px 16px;
  }
  .panel-head .btn {
    font-size: 11px;
    padding: 6px 9px;
  }
  .panel-head h2 {
    font-size: 17px;
  }
  .panel-head p {
    font-size: 11px;
    line-height: 1.7;
  }
  .agent-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    padding: 18px 0;
  }
  .agent-symbol {
    width: 38px;
    height: 38px;
  }
  .agent-text strong {
    font-size: 12px;
    line-height: 1.6;
  }
  .agent-text small {
    font-size: 10px;
  }
  .agent-actions .btn {
    font-size: 11px;
    padding: 7px;
  }
  .agent-actions .btn .icon {
    width: 14px;
  }
  .agent-card {
    padding: 22px;
  }
  .agent-card p,
  .integration p {
    font-size: 13px;
  }
  .pill {
    font-size: 11px;
  }
  .notice,
  .studio-hint {
    font-size: 12px;
  }
  .toolbar {
    gap: 10px;
  }
  .toolbar input {
    max-width: none;
    flex: 1 1 100%;
  }
  .toolbar select {
    flex: 1;
    font-size: 13px;
  }
  .booking-table,
  .booking-table tbody {
    display: block;
    width: 100%;
  }
  .booking-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .booking-table tbody {
    padding: 0 16px 8px;
  }
  .booking-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 11px 16px;
    padding: 17px 0;
    border-top: 1px solid var(--p-line);
  }
  .booking-table td {
    display: block;
    padding: 0;
    border: 0;
    font-size: 13px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .booking-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 9px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #b3a3c3;
    margin-bottom: 5px;
  }
  .booking-table td:nth-child(2) {
    grid-column: 1;
    grid-row: 1;
  }
  .booking-table td:first-child {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }
  .booking-table td:nth-child(4) {
    text-align: right;
    align-self: end;
  }
  .booking-table .booking-action {
    grid-column: 1/-1;
  }
  .booking-table .booking-action:empty {
    display: none;
  }
  .booking-table .booking-action::before {
    display: none;
  }
  .booking-table td small {
    font-size: 11px;
    line-height: 1.7;
  }
  .event strong {
    font-size: 12px;
  }
  .event small {
    font-size: 11px;
  }
  .footer-note {
    font-size: 10px;
    line-height: 1.8;
  }
  dialog {
    padding: 22px;
    width: calc(100% - 24px);
    max-height: calc(100svh - 24px);
  }
  dialog .form > .row {
    flex-wrap: wrap;
  }
  dialog .form > .row > label {
    flex: 1 1 120px;
  }
  .bubble {
    font-size: 13px;
  }
  .chat-form {
    padding: 13px;
    gap: 8px;
  }
  .chat-form input {
    font-size: 16px;
  }
  .chat-panel {
    min-height: 480px;
  }
}
@media (max-width: 360px) {
  .demo-options {
    grid-template-columns: 1fr;
  }
  .agent-actions .btn .icon {
    display: none;
  }
  .login-art,
  .login-form-side {
    padding-left: 20px;
    padding-right: 20px;
  }
  .stat {
    padding: 13px;
  }
  .panel-head {
    flex-wrap: wrap;
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 7px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
@media (max-width: 680px) {
  .password-wrap button {
    min-width: 44px;
    min-height: 44px;
    top: 1px;
    right: 2px;
  }
  dialog .close {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Use the original HC mark at its native proportions, including its transparent margins. */
.hc-mark {
  display: block;
  object-fit: contain;
}
.core .hc-mark {
  width: 108px;
  height: 78px;
  margin: 0 auto 6px;
}
.brain-center .hc-mark {
  width: 64px;
  height: 52px;
}
.boot-emblem {
  width: 128px;
  height: 92px;
}
.boot-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Client workspace: clear actions, restrained movement, readable review. */
.client-actions { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px; margin:24px 0 36px; }
.client-action { display:flex; align-items:center; gap:18px; width:100%; padding:24px; text-align:left; color:inherit; cursor:pointer; font:inherit; transition:transform .18s ease,border-color .18s ease; }
.client-action:hover { transform:translateY(-2px); border-color:#b8a7d6; }
.client-action>div { flex:1; }
.client-action h2 { font-size:18px; margin:0 0 6px; }
.client-action p { margin:0; color:var(--muted,#a29aaa); font-size:13px; }
.client-services>.cards { margin-top:20px; }
.approval-steps { display:flex; flex-wrap:wrap; gap:12px; margin:24px 0 16px; }
.approval-steps span { padding:12px 16px; border:1px solid #ffffff18; border-radius:10px; font-size:13px; }
.knowledge-actions { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
.source-review { white-space:pre-wrap; overflow-wrap:anywhere; max-height:40vh; overflow:auto; padding:16px; background:#ffffff08; border-radius:10px; font:inherit; font-size:13px; }
.form fieldset { border:1px solid #ffffff20; border-radius:12px; padding:16px; }
.form legend { padding:0 8px; }
.client-services .agent-card { animation:client-enter .25s ease both; }
@keyframes client-enter { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
@media(max-width:680px) { .client-actions { grid-template-columns:1fr; } .knowledge-actions { justify-content:flex-start; } .approval-steps { flex-direction:column; } }
@media(prefers-reduced-motion:reduce) { .client-services .agent-card { animation:none; } .client-action { transition:none; } .client-action:hover { transform:none; } }
.provider-actions { display:flex; flex-wrap:wrap; gap:8px; }
/* Pinterest Palette 2026 accents, with darker text for readable contrast. */
:root{--hc-cool-blue:#d7efff;--hc-jade:#aeb8a0;--hc-plum:#351e28;--hc-wasabi:#e9f056;--hc-persimmon:#ff5c34}
.ops-state{display:block;font-size:12px;font-weight:600;line-height:1.5}.booking-table td:has(.ops-state){min-width:140px}.ops-evidence{font-size:10px!important;max-width:180px;line-height:1.5!important;opacity:.8}.booking-table td:has(.ops-state) small{white-space:normal}.booking-table .booking-action{min-width:130px}.booking-table tbody tr{transition:background .16s ease}.booking-table tbody tr:hover{background:rgba(174,184,160,.06)}.workspace-loading #main{position:relative}.workspace-loading #main:before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:linear-gradient(90deg,transparent,#aeb8a0,#d7efff,transparent);background-size:200% 100%;animation:hcLoading 1.2s linear infinite;z-index:2}@keyframes hcLoading{to{background-position:-200% 0}}@media(prefers-reduced-motion:reduce){.workspace-loading #main:before{animation:none}.booking-table tbody tr{transition:none}}
.operations-table td:has(.ops-state){min-width:95px;max-width:145px}.operations-table .booking-action{min-width:90px}.ops-caption{text-align:left;padding:16px 20px;color:var(--p-muted);font-size:12px}.operations-table th{white-space:normal}.portal-body{--panel:#211a24;--soft:#2a2030;--p-line:#40323f}.portal-body .eyebrow{color:#d7efff}.portal-body .btn.primary{background:#aeb8a0;color:#1d2925}.portal-body .btn.primary:hover{background:#c5ceb9}@media(max-width:680px){.operations-table tbody tr{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.operations-table td:has(.ops-state){min-width:0;max-width:none}.operations-table td:nth-child(4){text-align:left}.operations-table .booking-action{min-width:0}.ops-caption{display:block}}
.ops-caption{white-space:normal;overflow-wrap:anywhere}
.ops-heading{display:inline-flex;gap:5px;align-items:center}.ops-heading svg{width:15px;height:15px;flex:none;color:#aeb8a0}
/* Ügyfél-bemutató a portál keretében */
.demo-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 10px; }
.demo-toolbar .btn svg { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
.demo-frame { height: calc(100dvh - 190px); min-height: 520px; position: relative; }
/* Teljes képernyő: mint egy önálló weboldal — nincs oldalsáv, fejléc, keret. A Fullscreen API és a CSS-réteg ugyanazt a képet adja. */
.demo-frame.is-fullscreen { position: fixed; inset: 0; z-index: 1000; height: 100dvh; min-height: 0; background: #fafbf7; }
.demo-frame.is-fullscreen iframe { border-radius: 0; box-shadow: none; }
.demo-frame:fullscreen { background: #fafbf7; }
.demo-frame:fullscreen iframe { border-radius: 0; box-shadow: none; width: 100%; height: 100%; }
.demo-exit { position: absolute; top: 12px; right: 12px; z-index: 2; opacity: .85; padding: 8px 12px; }
.demo-exit:hover { opacity: 1; }
.demo-exit kbd { font: inherit; font-size: 10px; border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; margin-left: 4px; opacity: .7; }
.demo-exit svg { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }
body.demo-fullscreen { overflow: hidden; }
.demo-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 18px; background: #fafbf7; box-shadow: 0 10px 40px #10274710; }
@media (max-width: 680px) { .demo-frame { height: calc(100dvh - 110px); min-height: 0; } .demo-frame iframe { border-radius: 12px; } }

/* ── Ütmutató (guide) — iki sayfalık ilk-giriş yönlendirmesi ─────────────── */
.guide { max-width: 1100px; margin: 0 auto; padding: 8px 4px 24px; }
.guide-head .eyebrow { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.guide-head h1 { font-size: 34px; margin: 10px 0 8px; letter-spacing: -.02em; }
.guide-head p { max-width: 62ch; color: var(--p-muted); font-size: 15px; line-height: 1.55; margin: 0 0 24px; }
.guide-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1100px) { .guide-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .guide-steps { grid-template-columns: 1fr; } .guide-head h1 { font-size: 28px; } }
.guide-step, .guide-tip {
  background: var(--panel); border: 1px solid var(--p-line); border-radius: 18px; padding: 24px;
  position: relative; transition: transform .18s ease, border-color .18s ease;
}
.guide-step:hover, .guide-tip:hover { transform: translateY(-2px); border-color: var(--accent); }
.guide-n { position: absolute; top: 14px; right: 18px; font-size: 34px; font-weight: 800; color: var(--p-line); letter-spacing: -.03em; }
.guide-step h2, .guide-tip h2 { font-size: 20px; margin: 0 0 8px; }
.guide-step p, .guide-tip p { font-size: 14px; color: var(--p-muted); line-height: 1.5; margin: 0; }
.guide-prompts { list-style: none; margin: 14px 0 0; padding: 0; }
.guide-prompts li { background: var(--soft); border-radius: 10px; padding: 8px 12px; font-size: 13px; margin-top: 6px; }
.guide-tips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 900px) { .guide-tips { grid-template-columns: 1fr; } }
.guide-tip { display: flex; flex-direction: row; gap: 18px; align-items: flex-start; }
.guide-tip .guide-art { width: 96px; flex: none; margin: 0; }
@media (max-width: 600px) { .guide-tip .guide-art { width: 72px; } }
@media (max-width: 480px) { .guide-tip { flex-direction: column; gap: 12px; } .guide-tip .guide-art { margin-bottom: 2px; } }
.guide-step .guide-art { width: 100%; max-width: 180px; height: auto; display: block; margin-bottom: 14px; color: var(--text); }
.guide-art { color: var(--text); }
.guide-art .g-fill { fill: var(--hc-cool-blue); fill-opacity: .18; stroke: none; }
.guide-art .g-fill2 { fill: var(--hc-jade); fill-opacity: .25; stroke: none; }
.guide-art .g-accent { stroke: var(--accent); stroke-width: 2.6; }
.guide-art .g-dot { fill: var(--hc-persimmon); stroke: none; }
.guide-art .g-wave { stroke: var(--hc-jade); }
html[data-appearance="light"] .portal-body .guide-art .g-fill { fill-opacity: .35; }
html[data-appearance="light"] .portal-body .guide-art .g-fill2 { fill-opacity: .4; }
.guide-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.guide-cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
@media (max-width: 600px) { .guide-foot { flex-direction: column; align-items: stretch; } .guide-cta, .guide-cta > * { width: 100%; } }
.guide-dots { display: inline-flex; gap: 6px; align-items: center; }
.guide-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--p-line); }
.guide-dots i.on { background: var(--accent); }
.guide-foot .btn svg, .guide-cta .btn svg { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
@keyframes guide-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.guide-step, .guide-tip { animation: guide-rise .48s ease-out both; animation-delay: calc(var(--d, 0) * 90ms); }
@keyframes guide-wave { 0%, 100% { stroke-opacity: .35; } 50% { stroke-opacity: 1; } }
.guide-art .g-wave { animation: guide-wave 2.4s ease-in-out infinite; }
.guide-art .g-wave:nth-of-type(2) { animation-delay: .4s; }
.guide-art .g-wave:nth-of-type(3) { animation-delay: .8s; }
@keyframes guide-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-3px); opacity: 1; } }
.guide-art .g-typing { animation: guide-typing 1.2s ease-in-out infinite; }
.guide-art .g-typing:nth-of-type(2) { animation-delay: .15s; }
.guide-art .g-typing:nth-of-type(3) { animation-delay: .3s; }
@keyframes guide-row { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
.guide-art .g-row { animation: guide-row .5s ease-out both; }
.guide-art .g-row:nth-of-type(2) { animation-delay: .18s; }
.guide-art .g-row:nth-of-type(3) { animation-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .guide-step, .guide-tip, .guide-art .g-wave, .guide-art .g-typing, .guide-art .g-row { animation: none; }
}
