:root {
  --ink: #0d1b24;
  --ink-2: #172a35;
  --muted: #60717b;
  --line: #dce5e6;
  --paper: #f5f8f7;
  --white: #fff;
  --teal: #0b8f7a;
  --teal-light: #d9f3ec;
  --mint: #8ce0ca;
  --amber: #e89a2f;
  --amber-light: #fff0d9;
  --blue: #236a9e;
  --red: #c45145;
  --shadow: 0 18px 50px rgba(10, 32, 41, .12);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(11,143,122,.25); outline-offset: 2px; }
.hidden { display: none !important; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 999; background: var(--white); color: var(--ink); padding: .8rem 1rem; border-radius: 10px; }
.skip-link:focus { top: 1rem; }

.topbar { height: 72px; padding: 0 3.5vw; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(15px); }
.brand { border: 0; background: transparent; display: flex; align-items: center; gap: .75rem; color: var(--ink); text-align: left; padding: 0; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: white; background: linear-gradient(135deg, var(--teal), #12b396); font-weight: 800; box-shadow: 0 7px 18px rgba(11,143,122,.25); }
.brand strong { display: block; letter-spacing: .14em; font-size: .92rem; }
.brand small { display: block; color: var(--muted); font-size: .72rem; margin-top: .05rem; }
.topbar-actions { display: flex; align-items: center; gap: 1rem; }
.demo-badge { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .72rem; border-radius: 999px; background: var(--amber-light); color: #80500f; font-size: .78rem; font-weight: 750; }
.demo-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(232,154,47,.15); }
.role-switch { display: flex; align-items: center; gap: .55rem; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 11px; background: var(--white); color: var(--ink); font-size: .86rem; font-weight: 700; }

.role-gateway { min-height: calc(100vh - 72px); padding: clamp(3rem, 6vw, 6rem) 6vw 2.5rem; color: white; background: radial-gradient(circle at 85% 18%, rgba(26,164,139,.18), transparent 30%), linear-gradient(145deg, #07131a, #102630 70%, #0c1c24); overflow: hidden; position: relative; }
.role-gateway::after { content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(140,224,202,.12); border-radius: 50%; right: -100px; bottom: -240px; box-shadow: 0 0 0 55px rgba(140,224,202,.025), 0 0 0 110px rgba(140,224,202,.018); pointer-events: none; }
.gateway-copy { max-width: 850px; }
.eyebrow { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .15em; color: var(--teal); margin-bottom: .65rem; }
.role-gateway .eyebrow { color: var(--mint); }
.gateway-copy h1 { margin: 0; max-width: 770px; font-family: Georgia, serif; font-weight: 500; font-size: clamp(2.7rem, 6vw, 5.7rem); line-height: .99; letter-spacing: -.045em; }
.gateway-copy p { max-width: 690px; color: #b9c7cc; font-size: 1.04rem; line-height: 1.7; margin: 1.4rem 0 2.6rem; }
.role-grid { display: grid; grid-template-columns: 1.05fr 1.05fr .82fr; gap: 1rem; max-width: 1240px; position: relative; z-index: 1; }
.role-card { min-height: 275px; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; color: white; padding: 1.55rem; background: rgba(255,255,255,.055); display: flex; flex-direction: column; align-items: flex-start; text-align: left; transition: transform .22s ease, border-color .22s ease, background .22s ease; position: relative; overflow: hidden; }
.role-card:hover { transform: translateY(-5px); border-color: rgba(140,224,202,.5); background: rgba(255,255,255,.09); }
.role-card::after { content: ""; width: 110px; height: 110px; border-radius: 50%; position: absolute; right: -28px; top: -34px; background: rgba(255,255,255,.035); }
.role-number { color: #77909b; font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.role-symbol { margin-top: 1.25rem; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #0c2a26; background: var(--mint); font-size: 1.25rem; }
.business-card .role-symbol { background: #ffd18e; color: #4f3510; }
.operator-card .role-symbol { background: #b8d9ef; color: #143c59; }
.role-card strong { font-family: Georgia, serif; font-size: 1.58rem; margin-top: 1rem; font-weight: 500; }
.role-card > span:not(.role-number):not(.role-symbol) { color: #b8c6cb; font-size: .9rem; line-height: 1.55; margin-top: .55rem; max-width: 330px; }
.role-card em { font-style: normal; font-weight: 750; font-size: .86rem; margin-top: auto; color: #eef8f5; }
.role-card em b { color: var(--mint); margin-left: .35rem; }
.loop-strip { max-width: 1240px; display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: 2rem; color: #8fa4ad; font-size: .75rem; position: relative; z-index: 1; }
.loop-strip div { display: flex; align-items: center; gap: .55rem; }
.loop-strip b { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; background: rgba(140,224,202,.1); color: var(--mint); }
.loop-strip i { font-style: normal; color: #45606b; }

.app-shell { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 245px 1fr; }
.sidebar { background: var(--ink); color: white; padding: 1.6rem 1rem 1.2rem; position: sticky; top: 72px; height: calc(100vh - 72px); display: flex; flex-direction: column; }
.profile-block { padding: 0 .55rem 1.3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.profile-tag { display: inline-block; color: var(--mint); font-size: .68rem; font-weight: 800; letter-spacing: .12em; margin-bottom: .5rem; }
.profile-block strong { display: block; font-size: 1rem; }
.profile-block small { display: block; color: #91a4ad; margin-top: .25rem; font-size: .78rem; }
#sideNav { margin-top: 1.2rem; display: grid; gap: .3rem; }
.nav-button { width: 100%; border: 0; background: transparent; color: #aab9bf; border-radius: 10px; padding: .75rem .8rem; display: flex; align-items: center; gap: .7rem; font-size: .86rem; font-weight: 650; text-align: left; }
.nav-button span { width: 22px; text-align: center; color: #7c929b; }
.nav-button:hover, .nav-button.active { color: white; background: rgba(255,255,255,.09); }
.nav-button.active span { color: var(--mint); }
.sidebar-foot { margin-top: auto; padding: 1rem .5rem 0; border-top: 1px solid rgba(255,255,255,.1); }
.connection-state { display: flex; gap: .7rem; align-items: center; }
.connection-state > span { width: 9px; height: 9px; background: #48d7a7; border-radius: 50%; box-shadow: 0 0 0 5px rgba(72,215,167,.1); }
.connection-state strong, .connection-state small { display: block; font-size: .73rem; }
.connection-state small { color: #8298a1; margin-top: .1rem; }
.text-button { border: 0; background: transparent; color: #9db0b7; padding: .85rem 0 0; font-size: .75rem; text-decoration: underline; }

.workspace { min-width: 0; }
.mobile-bar { display: none; }
.page { padding: 2rem clamp(1.1rem, 3vw, 3.2rem) 4rem; max-width: 1520px; margin: 0 auto; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 1.6rem; }
.page-head h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 500; letter-spacing: -.025em; }
.page-head p { margin: .45rem 0 0; color: var(--muted); max-width: 640px; line-height: 1.55; }
.page-actions { display: flex; gap: .7rem; }

.tourist-hero { min-height: 360px; border-radius: 24px; overflow: hidden; background: linear-gradient(90deg, rgba(5,15,22,.93), rgba(5,15,22,.45) 57%, rgba(5,15,22,.1)), url("market-night.png") center/cover; color: white; padding: clamp(2rem,5vw,4rem); display: flex; flex-direction: column; justify-content: center; box-shadow: var(--shadow); }
.tourist-hero .eyebrow { color: var(--mint); }
.tourist-hero h1 { font-family: Georgia, serif; font-weight: 500; font-size: clamp(2.45rem,5vw,4.4rem); line-height: 1.03; max-width: 690px; margin: 0; letter-spacing: -.035em; }
.tourist-hero > p { max-width: 570px; color: #d6e2e5; line-height: 1.55; }
.search-box { background: white; border-radius: 16px; padding: .6rem; display: grid; grid-template-columns: 1fr auto; gap: .55rem; max-width: 800px; margin-top: .8rem; box-shadow: 0 16px 45px rgba(0,0,0,.28); }
.search-box textarea { resize: none; border: 0; padding: .8rem; color: var(--ink); min-height: 52px; line-height: 1.4; }
.search-box textarea:focus { outline: none; }
.search-box button { align-self: stretch; border: 0; border-radius: 11px; background: var(--teal); color: white; padding: 0 1.25rem; font-weight: 800; }
.quick-prompts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.quick-prompts button { border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.09); color: white; padding: .5rem .72rem; border-radius: 999px; font-size: .75rem; }
.quick-prompts button:hover { background: rgba(255,255,255,.18); }
.service-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .7rem; }
.service-card { min-height: 112px; border: 1px solid var(--line); border-radius: 14px; padding: .85rem; background: white; color: var(--ink); text-align: left; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: .65rem; align-items: center; transition: transform .2s,border-color .2s,box-shadow .2s; }
.service-card:hover { transform: translateY(-2px); border-color: rgba(11,143,122,.5); box-shadow: 0 10px 25px rgba(14,43,54,.08); }
.service-card > span { grid-row:1/3; width:34px; height:34px; border-radius:10px; display:grid; place-items:center; background:var(--teal-light); color:var(--teal); font-weight:850; }
.service-card b { font-size:.8rem; align-self:end; }.service-card small { color:var(--muted); font-size:.67rem; align-self:start; line-height:1.3; }

.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.main-aside { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(300px,.7fr); gap: 1rem; }
.section { margin-top: 1.8rem; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.section-head h2 { margin: 0; font-size: 1.22rem; }
.section-head p { margin: .25rem 0 0; color: var(--muted); font-size: .84rem; }
.section-head a, .section-head button { color: var(--teal); font-weight: 750; border: 0; background: transparent; font-size: .8rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: 0 6px 20px rgba(14,43,54,.035); }
.card.flush { padding: 0; overflow: hidden; }
.card h2, .card h3 { margin-top: 0; }
.muted { color: var(--muted); }
.mini { font-size: .76rem; }

.experience-card { background: white; border: 1px solid var(--line); border-radius: 17px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.experience-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.experience-visual { height: 132px; padding: 1rem; display: flex; align-items: flex-end; position: relative; color: white; background: linear-gradient(135deg,#174e5e,#0b8f7a); }
.experience-card:nth-child(2) .experience-visual { background: linear-gradient(135deg,#7b3f28,#e39a3c); }
.experience-card:nth-child(3) .experience-visual { background: linear-gradient(135deg,#263d5c,#626ca4); }
.experience-visual span { font-size: 2.2rem; }
.experience-visual em { position: absolute; top: .8rem; right: .8rem; font-style: normal; background: rgba(255,255,255,.9); color: var(--ink); padding: .35rem .5rem; border-radius: 7px; font-size: .66rem; font-weight: 800; }
.experience-body { padding: 1rem; }
.experience-body h3 { margin: 0; font-size: 1rem; }
.experience-body p { color: var(--muted); font-size: .78rem; line-height: 1.45; min-height: 34px; }
.meta-row, .card-actions { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.meta-row { font-size: .72rem; color: var(--muted); padding-top: .65rem; border-top: 1px solid var(--line); }
.price { color: var(--ink); font-size: 1rem; font-weight: 850; }
.card-actions { margin-top: .85rem; }

.button { border: 0; border-radius: 10px; padding: .68rem .9rem; font-weight: 800; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.button.primary { background: var(--teal); color: white; }
.button.primary:hover { background: #087965; }
.button.secondary { background: #edf2f1; color: var(--ink); }
.button.outline { background: white; color: var(--ink); border: 1px solid var(--line); }
.button.amber { background: var(--amber); color: #2f210d; }
.button:disabled { opacity: .5; cursor: not-allowed; }

.answer-card { border-color: rgba(11,143,122,.3); background: linear-gradient(135deg,#fafffd,#edf9f5); }
.answer-head { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.assistant-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: white; background: var(--teal); font-weight: 850; }
.answer-card h3 { margin: 0; font-size: .95rem; }
.answer-card .answer-text { line-height: 1.6; font-size: .88rem; }
.answer-card ul { padding-left: 1.2rem; color: var(--muted); }
.answer-card li { margin: .45rem 0; }
.signal-note { background: var(--ink); color: white; border-radius: 12px; padding: .8rem; margin-top: 1rem; font-size: .75rem; display: flex; justify-content: space-between; align-items: center; gap: .7rem; }
.signal-note span { color: var(--mint); font-weight: 800; }
.signal-note button { background: transparent; border: 0; color: white; text-decoration: underline; font-size: .72rem; }

.route-map { min-height: 288px; border-radius: var(--radius); background: linear-gradient(130deg, #d8ebe5, #e9f1ee 55%, #d4e3eb); position: relative; overflow: hidden; padding: 1.2rem; }
.route-map::before, .route-map::after { content: ""; position: absolute; inset: -40% -10%; border: 2px solid rgba(35,106,158,.14); border-radius: 48%; transform: rotate(-17deg); }
.route-map::after { inset: -10% -30% 15% 10%; transform: rotate(25deg); border-color: rgba(11,143,122,.16); }
.map-label { position: relative; z-index: 2; display: inline-flex; gap: .4rem; align-items: center; background: rgba(255,255,255,.88); border-radius: 9px; padding: .45rem .6rem; font-size: .72rem; font-weight: 800; }
.map-point { position: absolute; z-index: 3; width: 32px; height: 32px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--teal); color: white; box-shadow: 0 5px 15px rgba(11,143,122,.28); display: grid; place-items: center; }
.map-point span { transform: rotate(45deg); font-size: .65rem; font-weight: 850; }
.p1 { left: 22%; top: 38%; }.p2 { left: 52%; top: 58%; background: var(--amber); color: var(--ink); }.p3 { right: 18%; top: 27%; background: var(--blue); }
.map-legend { position: absolute; z-index: 4; left: 1rem; right: 1rem; bottom: 1rem; background: rgba(255,255,255,.92); padding: .65rem; border-radius: 10px; display: flex; gap: 1rem; font-size: .68rem; }
.map-legend span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: .3rem; background: var(--teal); }
.map-legend span:nth-child(2)::before { background: var(--amber); }.map-legend span:nth-child(3)::before { background: var(--blue); }

.stat-card { padding: 1.15rem; }
.stat-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .74rem; font-weight: 700; }
.stat-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--teal-light); color: var(--teal); }
.stat-value { display: block; font-family: Georgia,serif; font-size: 2rem; margin-top: .45rem; }
.trend { color: var(--teal); font-size: .7rem; font-weight: 750; }
.progress { height: 7px; background: #e9efee; border-radius: 999px; overflow: hidden; margin-top: .65rem; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--teal); }

.source-badges { display: flex; flex-wrap: wrap; gap: .45rem; }
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .5rem; border-radius: 999px; font-size: .66rem; font-weight: 800; }
.badge.avia { color: #076c5d; background: var(--teal-light); }
.badge.company { color: #86540f; background: var(--amber-light); }
.badge.combined { color: #245a83; background: #e3f0f8; }
.badge.status { color: #5e477c; background: #eee7f8; }

.opportunity { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: start; }
.score-ring { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--teal) 0 87%, #e4ecea 87%); position: relative; }
.score-ring::before { content: ""; position: absolute; width: 54px; height: 54px; border-radius: 50%; background: white; }
.score-ring b { position: relative; font-size: 1.1rem; }
.opportunity h3 { margin: .2rem 0 .4rem; font-size: 1.02rem; }
.opportunity p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.opportunity-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: .55rem; margin-top: .8rem; }
.opportunity-metrics div { background: #f3f7f6; padding: .55rem; border-radius: 8px; }
.opportunity-metrics b, .opportunity-metrics small { display: block; }.opportunity-metrics b { font-size: .82rem; }.opportunity-metrics small { color: var(--muted); font-size: .62rem; margin-top: .12rem; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .78rem; }
th { text-align: left; color: var(--muted); font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; padding: .8rem .7rem; border-bottom: 1px solid var(--line); }
td { padding: .82rem .7rem; border-bottom: 1px solid #edf1f0; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
.source-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: .35rem; background: var(--teal); }.source-dot.company { background: var(--amber); }

.form-card form, .studio-form { display: grid; gap: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem; }
label { display: grid; gap: .38rem; font-size: .74rem; font-weight: 750; color: #42545d; }
input, select, textarea { width: 100%; border: 1px solid #cfdbdc; border-radius: 9px; padding: .7rem .75rem; background: white; color: var(--ink); }
textarea { resize: vertical; min-height: 88px; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.check-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.check-row label { display: flex; align-items: center; gap: .35rem; border: 1px solid var(--line); border-radius: 9px; padding: .55rem .65rem; background: #fafcfc; }
.check-row input { width: auto; }

.pipeline { display: grid; grid-template-columns: repeat(4,1fr); gap: .65rem; }
.pipeline-step { padding: .85rem; border-radius: 12px; background: #f2f6f5; border-top: 3px solid var(--line); }
.pipeline-step.active { border-top-color: var(--teal); background: #edf9f5; }
.pipeline-step strong, .pipeline-step small { display: block; }.pipeline-step strong { font-size: .78rem; }.pipeline-step small { color: var(--muted); font-size: .65rem; margin-top: .22rem; }
.activity-list { display: grid; gap: .05rem; }
.activity { display: grid; grid-template-columns: 32px 1fr auto; gap: .65rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.activity:last-child { border-bottom: 0; }
.activity-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #eef4f3; color: var(--teal); }
.activity strong, .activity small { display: block; font-size: .74rem; }.activity small { color: var(--muted); margin-top: .12rem; }.activity time { color: var(--muted); font-size: .66rem; }

.data-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: .55rem; }
.flow-node { border: 1px solid var(--line); border-radius: 13px; padding: 1rem; background: white; }
.flow-node b, .flow-node small { display: block; }.flow-node b { font-size: .86rem; }.flow-node small { font-size: .7rem; color: var(--muted); margin-top: .25rem; line-height: 1.4; }
.flow-arrow { align-self: center; color: var(--teal); font-weight: 900; }
.permissions { display: grid; grid-template-columns: repeat(3,1fr); gap: .8rem; }
.permission { border: 1px solid var(--line); border-radius: 13px; padding: 1rem; }
.permission h3 { font-size: .92rem; margin-bottom: .7rem; }.permission ul { padding-left: 1rem; margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.8; }
.callout { padding: 1rem; border-radius: 13px; background: var(--amber-light); color: #69440f; font-size: .78rem; line-height: 1.5; }
.empty-state { text-align: center; padding: 2.5rem; color: var(--muted); }

.dialog { width: min(620px, calc(100vw - 2rem)); border: 0; border-radius: 20px; padding: 1.35rem; box-shadow: 0 25px 90px rgba(0,0,0,.28); }
.dialog.compact { max-width: 490px; }
.dialog::backdrop { background: rgba(4,15,21,.68); backdrop-filter: blur(4px); }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.dialog-head h2 { margin: 0; font-family: Georgia,serif; font-weight: 500; }
.icon-button { border: 0; width: 35px; height: 35px; border-radius: 50%; background: #edf2f1; font-size: 1.2rem; }
.notice { padding: .75rem; border-radius: 10px; background: var(--amber-light); color: #71480d; font-size: .75rem; margin-bottom: 1rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .7rem; margin-top: 1.2rem; }
.role-list { display: grid; gap: .6rem; }
.role-list button { width: 100%; display: grid; grid-template-columns: 38px 1fr auto; gap: .8rem; align-items: center; text-align: left; padding: .85rem; border: 1px solid var(--line); border-radius: 12px; background: white; }
.role-list button > span { width: 38px; height: 38px; border-radius: 10px; background: var(--teal-light); display: grid; place-items: center; }.role-list b,.role-list small { display:block; }.role-list small { color:var(--muted); margin-top:.15rem; }

.toast { position: fixed; z-index: 100; right: 1.2rem; bottom: 1.2rem; max-width: 370px; background: var(--ink); color: white; padding: .85rem 1rem; border-radius: 12px; box-shadow: var(--shadow); opacity: 0; transform: translateY(15px); pointer-events: none; transition: .25s ease; font-size: .82rem; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .role-grid { grid-template-columns: repeat(2,1fr); }.operator-card { grid-column: 1 / -1; min-height: 205px; }
  .grid.four { grid-template-columns: repeat(2,1fr); }.grid.three { grid-template-columns: repeat(2,1fr); }
  .service-grid { grid-template-columns:repeat(2,1fr); }
  .main-aside { grid-template-columns: 1fr; }
  .loop-strip { display: none; }
}

@media (max-width: 760px) {
  .topbar { padding: 0 1rem; height: 64px; }.demo-badge { display:none; }.brand small { display:none; }
  .role-gateway { min-height: calc(100vh - 64px); padding: 2.5rem 1rem; }.gateway-copy h1 { font-size: 2.65rem; }.gateway-copy p { font-size: .92rem; }
  .role-grid { grid-template-columns: 1fr; }.operator-card { grid-column: auto; }.role-card { min-height: 220px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -260px; top: 64px; height: calc(100vh - 64px); width: 245px; z-index: 45; transition: left .22s; box-shadow: 20px 0 50px rgba(0,0,0,.2); }.sidebar.open { left: 0; }
  .mobile-bar { height: 52px; display: flex; align-items: center; gap: .8rem; padding: 0 1rem; background: white; border-bottom:1px solid var(--line); position:sticky; top:64px; z-index:40; }.mobile-bar button { border:0;background:transparent;font-size:1.2rem; }
  .page { padding: 1.2rem 1rem 3rem; }.page-head { align-items:flex-start; flex-direction:column; }.page-head h1 { font-size:2.15rem; }
  .tourist-hero { min-height: 480px; padding: 2rem 1.15rem; background-position: 68% center; }.tourist-hero h1 { font-size:2.55rem; }
  .search-box { grid-template-columns:1fr; }.search-box button { min-height:46px; }
  .grid.two,.grid.three,.grid.four,.form-grid { grid-template-columns:1fr; }
  .service-grid { grid-template-columns:1fr 1fr; }
  .opportunity { grid-template-columns:auto 1fr; }.opportunity > .button { grid-column:1/-1; }.opportunity-metrics { grid-template-columns:1fr; }
  .pipeline { grid-template-columns:repeat(2,1fr); }.permissions { grid-template-columns:1fr; }
  .data-flow { grid-template-columns:1fr; }.flow-arrow { transform:rotate(90deg); justify-self:center; }
  .form-foot { align-items:flex-start; flex-direction:column; }.form-foot .button { width:100%; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior:auto!important; transition:none!important; } }
