/**
 * Copyright (c) 2014 The xterm.js authors. All rights reserved.
 * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
 * https://github.com/chjj/term.js
 * @license MIT
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * Originally forked from (with the author's permission):
 *   Fabrice Bellard's javascript vt100 for jslinux:
 *   http://bellard.org/jslinux/
 *   Copyright (c) 2011 Fabrice Bellard
 *   The original design remains. The terminal itself
 *   has been extended to include xterm CSI codes, among
 *   other features.
 */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{font-family:monospace;-webkit-user-select:text;user-select:text;white-space:pre}.xterm .xterm-accessibility-tree>div{transform-origin:left;width:fit-content}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.xterm .xterm-scrollable-element>.scrollbar{cursor:default}.xterm .xterm-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.xterm .xterm-scrollable-element>.visible{opacity:1;background:#0000;transition:opacity .1s linear;z-index:11}.xterm .xterm-scrollable-element>.invisible{opacity:0;pointer-events:none}.xterm .xterm-scrollable-element>.invisible.fade{transition:opacity .8s linear}.xterm .xterm-scrollable-element>.shadow{position:absolute;display:none}.xterm .xterm-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}:root{--bg: #0f1419;--surface: #1a2332;--border: #2d3a4f;--text: #e7ecf3;--muted: #8b9cb3;--accent: #ff9900;--accent-hover: #e88b00;--success: #3dd68c;--danger: #f87171;--warning: #fbbf24;font-family:Segoe UI,system-ui,sans-serif;line-height:1.5;color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0;min-height:100vh}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:1.5rem;background:var(--bg)}.login-card{width:min(380px,100%);padding:1.75rem;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:0 12px 32px #00000059}.login-card h1{margin:0 0 .35rem;font-size:1.25rem}.login-sub{margin:0 0 1.25rem;font-size:.85rem;color:var(--muted)}.login-card label{display:block;margin-bottom:.85rem;font-size:.85rem;color:var(--muted)}.login-card input{display:block;width:100%;margin-top:.35rem;padding:.5rem .65rem;border:1px solid var(--border);border-radius:6px;background:var(--bg);color:var(--text);font:inherit}.login-submit{width:100%;margin-top:.5rem;padding:.55rem}.header-user{font-size:.85rem;color:var(--muted);padding:0 .35rem}.aws-account-label{margin:.15rem 0 .35rem;font-size:1rem;font-weight:600;color:#3dd68c}.aws-account-switch{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem;margin-bottom:.35rem}.aws-account-switch-hint{font-size:.75rem;color:var(--muted)}.aws-account-tab{padding:.2rem .55rem;font-size:.75rem;border-radius:4px;border:1px solid var(--border);background:var(--bg);color:var(--muted);cursor:pointer}.aws-account-tab:hover:not(:disabled){border-color:#3dd68c;color:#3dd68c}.aws-account-tab.active{border-color:#3dd68c;background:#3dd68c1f;color:#3dd68c;font-weight:600}.aws-account-tab:disabled{opacity:.45;cursor:not-allowed}button{font:inherit;cursor:pointer;border:none;border-radius:6px;padding:.45rem .85rem;transition:background .15s,opacity .15s}button:disabled{opacity:.45;cursor:not-allowed}.btn-primary{background:var(--accent);color:#111;font-weight:600}.btn-primary:hover:not(:disabled){background:var(--accent-hover)}.btn-success{background:#166534;color:#dcfce7}.btn-success:hover:not(:disabled){background:#15803d}.btn-danger{background:#7f1d1d;color:#fecaca}.btn-danger:hover:not(:disabled){background:#991b1b}.btn-delete{background:#450a0a;color:#fecaca;border:1px solid #991b1b}.btn-delete:hover:not(:disabled){background:#7f1d1d}.btn-ghost{background:var(--surface);color:var(--text);border:1px solid var(--border)}.btn-ghost:hover:not(:disabled){border-color:var(--muted)}.app{max-width:1280px;margin:0 auto;padding:1.5rem 1.5rem 0;min-height:100vh;display:flex;flex-direction:column}.app-body{flex:1 0 auto;padding-bottom:.5rem}.app-footer{flex-shrink:0;margin-top:2rem;margin-left:-1.5rem;margin-right:-1.5rem;padding:1.35rem 1.5rem 1.25rem;border-top:1px solid var(--border);background:linear-gradient(180deg,rgba(15,20,25,0) 0%,rgba(26,35,50,.65) 24%,var(--surface) 100%);box-shadow:0 -8px 24px #00000038}.app-footer-inner{max-width:1280px;margin:0 auto;text-align:center}.app-footer-brand{font-size:.95rem;font-weight:600;color:var(--text);letter-spacing:.02em}.app-footer-aws{color:var(--accent);margin-right:.35rem}.app-footer-note{margin:.45rem 0 .75rem;font-size:.8rem;color:var(--muted);line-height:1.45}.app-footer-bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.35rem .5rem;font-size:.75rem;color:var(--muted);opacity:.88}.app-footer-dot{opacity:.55}.header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:1px solid var(--border)}.header h1{margin:0;font-size:1.35rem;font-weight:600}.header h1 span{color:var(--accent)}.meta{color:var(--muted);font-size:.875rem}.header-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem}.region-select{display:flex;align-items:center;gap:.5rem;font-size:.875rem;color:var(--muted)}.region-select select{font:inherit;padding:.45rem .65rem;border-radius:6px;border:1px solid var(--border);background:var(--surface);color:var(--text);min-width:10rem}.region-select select:disabled{opacity:.5}.toolbar{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin-bottom:1rem}.toolbar .selected{color:var(--muted);font-size:.875rem;margin-right:.5rem}.instance-list-pagination{padding:.65rem .85rem;background:#38bdf814;border:1px solid rgba(56,189,248,.25);border-radius:8px}.instance-list-pagination strong{margin-right:.5rem;color:var(--text)}.alert{padding:.75rem 1rem;border-radius:8px;margin-bottom:1rem;font-size:.9rem}.alert-error{background:#450a0a;border:1px solid #7f1d1d;color:#fecaca}.alert-info{background:#1e3a5f;border:1px solid #2563eb;color:#bfdbfe}.alert-warn{background:#422006;border:1px solid #b45309;color:#fde68a}.table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:10px;background:var(--surface)}table{width:100%;border-collapse:collapse;font-size:.875rem}th,td{padding:.65rem .75rem;text-align:left;border-bottom:1px solid var(--border)}th{background:#152030;color:var(--muted);font-weight:600;white-space:nowrap}.th-col-menu{position:relative}.th-col-label{display:inline-flex;align-items:center;gap:.2rem}.col-menu-arrow{display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;padding:0;border:none;border-radius:4px;background:transparent;color:var(--muted);font-size:.7rem;line-height:1;vertical-align:middle}.col-menu-arrow:hover:not(:disabled){background:#ff990026;color:var(--accent)}.col-menu-arrow.open{color:var(--accent);transform:rotate(180deg)}.col-menu-dropdown{position:absolute;top:100%;left:0;z-index:20;margin-top:.25rem;min-width:10rem;padding:.35rem;border:1px solid var(--border);border-radius:8px;background:#152030;box-shadow:0 8px 24px #00000073}.col-menu-dropdown button{display:block;width:100%;text-align:left;padding:.5rem .65rem;border-radius:6px;background:transparent;color:var(--text);font-size:.8rem;white-space:nowrap}.col-menu-dropdown button:hover:not(:disabled){background:#ff99001f;color:var(--accent)}tr:last-child td{border-bottom:none}tr:hover td{background:#ff99000a}.state{display:inline-block;padding:.15rem .5rem;border-radius:4px;font-size:.75rem;font-weight:600;text-transform:lowercase}.state-running{background:#14532d;color:#86efac}.state-stopped{background:#374151;color:#d1d5db}.state-pending,.state-stopping{background:#713f12;color:#fde68a}.state-other{background:#1e3a5f;color:#93c5fd}.actions{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap}.actions button{padding:.3rem .55rem;font-size:.8rem}.empty{text-align:center;padding:3rem;color:var(--muted)}.loading{text-align:center;padding:2rem;color:var(--muted)}.firewall-panel{margin-bottom:1.25rem;padding:1rem;border:1px solid var(--border);border-radius:10px;background:var(--surface)}.firewall-panel h2{margin:0 0 .75rem;font-size:.95rem;font-weight:600}.firewall-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:.65rem .85rem}.firewall-form label{display:flex;flex-direction:column;gap:.25rem;font-size:.75rem;color:var(--muted)}.firewall-form label.fw-wide{flex:1 1 12rem;min-width:10rem}.firewall-form select,.firewall-form input[type=number],.firewall-form input[type=text]{font:inherit;padding:.4rem .55rem;border-radius:6px;border:1px solid var(--border);background:#152030;color:var(--text);min-width:7rem}.firewall-form input[type=text]{min-width:14rem}.firewall-hint{margin:.65rem 0 0;font-size:.78rem;color:var(--muted)}.firewall-hint code{font-size:.75rem;color:#93c5fd}.fw-confirm-actions{display:flex;gap:.5rem;align-items:flex-end}.fw-confirm-box{margin-top:.75rem;padding:.75rem 1rem;border-radius:8px;border:1px solid var(--accent);background:#ff990014;font-size:.875rem}.fw-confirm-box p{margin:.35rem 0 0}.fw-targets{color:var(--muted);word-break:break-all}.alert-fw{margin-top:.75rem;margin-bottom:0}.alert-fw-success{background:#14532d;border-color:#166534;color:#86efac}.alert-fw-warn{background:#713f12;border-color:#a16207;color:#fde68a}.alert-fw-error{background:#450a0a;border-color:#7f1d1d;color:#fecaca}.alert-fw-info{background:#1e3a5f;border-color:#2563eb;color:#bfdbfe}.billing-section{margin-bottom:1.5rem}.billing-header{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.5rem;margin-bottom:.5rem}.billing-header h2{margin:0;font-size:1rem;font-weight:600}.billing-note{margin:0 0 .75rem;font-size:.8rem;color:var(--muted)}.th-hint{display:block;font-size:.65rem;font-weight:400;color:var(--muted)}.pool-meta{font-size:.75rem;color:var(--muted)}.traffic-over-quota{color:#f87171;font-weight:600}.usage-bar-cell{min-width:7.5rem}.usage-bar{display:flex;align-items:center;gap:.5rem}.usage-bar-track{flex:1;height:6px;background:#ffffff14;border-radius:3px;overflow:hidden}.usage-bar-fill{height:100%;border-radius:3px;transition:width .2s ease}.usage-bar-ok{background:#22c55e}.usage-bar-mid{background:#eab308}.usage-bar-warn{background:#f97316}.usage-bar-over{background:#ef4444}.usage-bar-pct{font-size:.8rem;font-variant-numeric:tabular-nums;min-width:3rem;text-align:right}.usage-bar-pct-over{color:#f87171;font-weight:600}.usage-bar-na{color:var(--muted)}.btn-ssh{padding:.25rem .5rem;font-size:.75rem;border-radius:4px;border:1px solid #2563eb;background:#2563eb26;color:#93c5fd;cursor:pointer}.btn-ssh:hover:not(:disabled){background:#2563eb59}.btn-ssh:disabled{opacity:.45;cursor:not-allowed}.btn-console-ssh{text-decoration:none;margin-right:.15rem}.ssh-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10000;background:#05080c;background:#05080ceb;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:1rem;isolation:isolate}.ssh-modal{width:min(960px,100%);max-height:90vh;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:0 16px 48px #000000bf;opacity:1}.ssh-modal-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.75rem 1rem;border-bottom:1px solid var(--border);background:var(--surface);border-radius:8px 8px 0 0}.ssh-modal-meta{font-size:.8rem;color:var(--muted);font-weight:400}.ssh-modal-actions{display:flex;align-items:center;gap:.5rem}.ssh-modal-error{margin:0 1rem;padding:.5rem .75rem;background:#ef44441f;border:1px solid rgba(239,68,68,.35);border-radius:4px;color:#fca5a5;font-size:.85rem}.ssh-modal-tags{margin:0;padding:.65rem 1rem;border-bottom:1px solid var(--border);background:linear-gradient(180deg,#ff99001a,#ff990008)}.ssh-modal-tags-primary{display:flex;align-items:baseline;flex-wrap:wrap;gap:.5rem .75rem;margin-bottom:.45rem}.ssh-modal-tags-key{font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);flex-shrink:0}.ssh-modal-tags-node{font-size:1.15rem;font-weight:700;color:#f90;line-height:1.3;word-break:break-word}.ssh-modal-tags-node--empty{color:var(--muted);font-weight:500;font-size:.95rem}.ssh-modal-tags-list{display:flex;flex-wrap:wrap;gap:.35rem;margin-bottom:.45rem}.ssh-modal-tag-chip{display:inline-flex;align-items:center;gap:.25rem;max-width:100%;padding:.15rem .45rem;border-radius:4px;font-size:.72rem;background:#00000040;border:1px solid var(--border)}.ssh-modal-tag-chip-k{color:var(--muted)}.ssh-modal-tag-chip-k:after{content:"=";margin-left:.15rem;opacity:.6}.ssh-modal-tag-chip-v{color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:16rem}.ssh-modal-tags-meta{display:flex;flex-wrap:wrap;gap:.35rem .85rem;font-size:.75rem;color:var(--muted)}.ssh-modal-tags-meta code{font-family:JetBrains Mono,Consolas,monospace;font-size:.72rem;color:var(--text)}.ssh-modal-hint{margin:.35rem 1rem 0;font-size:.75rem;color:var(--muted)}.ssh-terminal-host{flex:1;min-height:420px;margin:.75rem 1rem 1rem;padding:.35rem;background:#0f1419;border-radius:6px;overflow:hidden}.ssh-terminal-host .xterm-viewport{background-color:#0f1419!important}.ssh-terminal-host .xterm{height:100%}.row-active td{background:#ff990014}.node-name-cell{min-width:9rem}.node-name-display{display:flex;align-items:center;gap:.4rem}.node-name-text{color:#c4b5fd;max-width:7rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.node-name-edit{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem}.node-name-edit input{flex:1 1 8rem;min-width:6rem;font:inherit;padding:.35rem .5rem;border-radius:6px;border:1px solid var(--border);background:#152030;color:var(--text)}.btn-edit-tag,.btn-xs{padding:.25rem .5rem;font-size:.75rem;border-radius:4px}.btn-edit-tag{background:transparent;color:var(--accent);border:1px solid rgba(255,153,0,.35);flex-shrink:0}.btn-edit-tag:hover:not(:disabled){background:#ff99001f}.btn-xs.btn-success,.btn-xs.btn-danger,.btn-xs.btn-ghost{padding:.25rem .55rem}.traffic-in{color:#7dd3fc;white-space:nowrap}.traffic-out{color:#fcd34d;white-space:nowrap}.app-nav{display:flex;gap:.35rem;margin-bottom:1rem;padding:.25rem;background:var(--surface);border:1px solid var(--border);border-radius:8px;width:fit-content}.app-nav-btn{padding:.45rem 1rem;border:none;border-radius:6px;background:transparent;color:var(--muted);font-size:.9rem;cursor:pointer;transition:background .15s,color .15s}.app-nav-btn:hover{color:var(--text);background:#ffffff0d}.app-nav-btn.active{color:var(--text);background:#ff99002e;box-shadow:inset 0 0 0 1px #ff990059}.super-admin-panel{margin-bottom:1.25rem;padding:1.25rem;background:var(--surface);border:1px solid var(--border);border-radius:8px}.super-admin-panel h2{margin:0 0 .35rem;font-size:1.1rem}.super-admin-add-form h3{margin:0 0 .75rem;font-size:.95rem}.super-admin-add-fields{display:flex;flex-wrap:wrap;align-items:flex-end;gap:.75rem}.super-admin-add-fields label{display:flex;flex-direction:column;gap:.25rem;font-size:.85rem;color:var(--muted);min-width:160px}.super-admin-add-fields input{padding:.45rem .55rem;border:1px solid var(--border);border-radius:4px;background:var(--bg);color:var(--text)}.super-admin-actions{display:flex;flex-wrap:wrap;gap:.35rem;white-space:nowrap}.btn-danger-text{color:var(--danger)}.btn-danger-text:hover:not(:disabled){color:#fff;background:#f8717133}tr.row-editing td{background:#ff99000f}.super-admin-edit-row td{background:#0f172a99;padding:.75rem 1rem!important}.super-admin-inline-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:.75rem}.super-admin-inline-title{width:100%;font-size:.9rem;font-weight:600;margin-bottom:.15rem}.super-admin-inline-form label{display:flex;flex-direction:column;gap:.25rem;font-size:.85rem;color:var(--muted);min-width:140px}.super-admin-inline-form input{padding:.45rem .55rem;border:1px solid var(--border);border-radius:4px;background:var(--bg);color:var(--text)}.super-admin-inline-actions{display:flex;gap:.35rem;align-items:center}.super-admin-inline-error{width:100%;color:var(--danger);font-size:.85rem}.region-config-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.25rem}.region-default-select{display:flex;flex-direction:column;gap:.35rem;font-size:.85rem;color:var(--muted)}.region-default-select select{min-width:200px;padding:.45rem .6rem;border-radius:6px;border:1px solid var(--border);background:var(--surface);color:var(--text)}.region-config-group{margin-bottom:1.5rem}.region-config-group-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.region-config-group-head h3{margin:0;font-size:1rem}.region-config-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.65rem}.region-config-card{display:flex;align-items:flex-start;gap:.6rem;padding:.75rem .85rem;border:1px solid var(--border);border-radius:8px;cursor:pointer;background:var(--surface);transition:border-color .15s,box-shadow .15s}.region-config-card:hover{border-color:var(--accent)}.region-config-card.on{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.region-config-card input{margin-top:.2rem}.region-config-card-body{display:flex;flex-direction:column;gap:.2rem;min-width:0}.region-config-card-body strong{font-size:.92rem}.region-config-card-body .mono{font-size:.78rem;color:var(--muted)}.region-config-actions{display:flex;justify-content:flex-end;gap:.75rem;margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--border)}.region-hero{position:relative;margin-bottom:1rem;border-radius:10px;overflow:hidden;border:1px solid var(--border);background:var(--surface);min-height:80px}.region-hero-map-wrap{position:absolute;top:0;right:0;bottom:0;left:0}.region-hero-map{width:100%;height:100%;object-fit:cover;display:block;filter:brightness(.55) saturate(.85) contrast(1.05)}.region-hero-map-fallback{background:radial-gradient(circle at 30% 40%,rgba(56,189,248,.25),transparent 55%),radial-gradient(circle at 70% 60%,rgba(34,197,94,.15),transparent 50%),linear-gradient(135deg,#0f172a,#1e293b)}.region-hero-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(90deg,#0f172aeb,#0f172ab8 45%,#0f172a59)}.region-hero-body{position:relative;z-index:1;padding:.65rem 1rem .75rem;max-width:75%}.region-hero-kicker{margin:0 0 .15rem;font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;color:var(--accent)}.region-hero-title{margin:0;display:flex;align-items:center;gap:.55rem;font-size:clamp(1.35rem,3vw,1.75rem);font-weight:700;line-height:1.2;color:#f8fafc;text-shadow:0 2px 10px rgba(0,0,0,.45)}.region-hero-flag{flex-shrink:0;width:36px;height:24px;object-fit:cover;border-radius:3px;box-shadow:0 1px 4px #00000059;border:1px solid rgba(255,255,255,.15)}.region-hero-meta{margin:.3rem 0 0;display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;font-size:.82rem;color:#cbd5e1}.region-hero-dot{opacity:.6}@media(max-width:720px){.region-hero{min-height:72px}.region-hero-body{max-width:100%;padding:.55rem .85rem .65rem}.region-hero-title{font-size:1.25rem}.region-hero-flag{width:30px;height:20px}}
