@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');
:root { color-scheme: dark; --bg: #090b12; --surface: #10131d; --surface-2: #151925; --line-ui: #242936; --soft: #8a93a7; }
html, body { margin: 0; min-width: 1120px; height: 100%; overflow: hidden; background: var(--bg); color: #f8fafc; font-family: "DM Sans", "Segoe UI", sans-serif; }
button, select, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.app-shell { height: 100vh; display: grid; grid-template-columns: 258px minmax(620px, 1fr) 300px; grid-template-rows: 70px 1fr; }
.topbar { grid-column: 1 / -1; display: grid; grid-template-columns: 258px 1fr auto; align-items: center; border-bottom: 1px solid var(--line-ui); background: #0d1018; }
.brand { height: 100%; display: flex; align-items: center; gap: 12px; padding: 0 20px; border-right: 1px solid var(--line-ui); }.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 2px; background: var(--accent); box-shadow: none; font: 800 16px Manrope; }.brand strong, .brand span { display: block; }.brand strong { font: 700 15px Manrope; }.brand span { margin-top: 2px; color: #6f788c; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.layout-actions, .top-actions { display: flex; align-items: center; gap: 8px; }.layout-actions { padding-left: 20px; }.top-actions { padding-right: 18px; justify-content: end; }
.select-wrap { position: relative; height: 38px; min-width: 215px; display: flex; align-items: center; gap: 9px; padding: 0 10px 0 12px; border: 1px solid var(--line-ui); border-radius: 9px; color: #697287; background: var(--surface); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }.select-wrap select { flex: 1; border: 0; outline: 0; color: white; background: transparent; font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 600; }
.button, .icon-button, .tool-button { height: 38px; border: 1px solid var(--line-ui); border-radius: 9px; color: #cdd2dc; background: var(--surface); cursor: pointer; text-decoration: none; transition: .16s ease; }.button { display: inline-flex; align-items: center; padding: 0 14px; font-size: 12px; font-weight: 700; }.button:hover, .icon-button:hover, .tool-button:hover { border-color: #3b4253; color: white; transform: translateY(-1px); }.button.primary { border-color: var(--accent); color: white; background: var(--accent); }.button.primary:hover { filter: brightness(1.1); }.icon-button { width: 38px; font-size: 17px; }.save-status { display: flex; align-items: center; gap: 7px; margin-right: 6px; color: #778196; font-size: 11px; }.save-status i { width: 6px; height: 6px; border-radius: 99px; background: #34d399; box-shadow: 0 0 8px #34d399; }.save-status.saving i { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }
.panel { background: #0d1018; }.library { grid-column: 1; grid-row: 2; padding: 23px 17px; border-right: 1px solid var(--line-ui); overflow-y: auto; }.inspector { grid-column: 3; grid-row: 2; padding: 23px 20px; border-left: 1px solid var(--line-ui); overflow-y: auto; }.panel-heading { display: flex; align-items: end; justify-content: space-between; }.overline { display: block; margin-bottom: 4px; color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .18em; }.panel-heading h2 { margin: 0; font: 750 19px Manrope; letter-spacing: -.02em; }.count { color: #687287; font-size: 11px; }.panel-intro { margin: 12px 0 19px; color: #737c90; font-size: 12px; line-height: 1.5; }
.widget-library { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.library-item { min-height: 92px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 13px; border: 1px solid var(--line-ui); border-radius: 3px; color: #e4e7ee; background: #121620; cursor: pointer; text-align: left; transition: .16s ease; }.library-item:hover { border-color: color-mix(in srgb, var(--accent) 60%, #2b3140); background: #171b28; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,.2); }.library-item .widget-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 2px; color: #ff9c8a; background: color-mix(in srgb, var(--accent) 15%, transparent); }.library-item svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; stroke-linejoin: miter; }.library-item strong { font-size: 11px; }.sidebar-tip { margin-top: 20px; padding: 13px; border: 1px solid #332522; border-radius: 3px; background: rgba(255,79,50,.06); }.sidebar-tip span { color: #ff8a75; font-size: 9px; font-weight: 800; letter-spacing: .14em; }.sidebar-tip p { margin: 6px 0 0; color: #737c90; font-size: 11px; line-height: 1.45; }
.workspace { grid-column: 2; grid-row: 2; min-width: 0; min-height: 0; display: grid; grid-template-rows: 45px 1fr 34px; background: #080a10; }.workspace-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 17px; border-bottom: 1px solid #181c27; }.viewport-label, .toolbar-buttons, .canvas-controls { display: flex; align-items: center; gap: 9px; }.viewport-label { color: #5f687a; font-size: 10px; white-space: nowrap; }.viewport-label strong { color: #8992a5; font-size: 9px; letter-spacing: .12em; }.live-dot { width: 5px; height: 5px; border-radius: 0; background: var(--accent); box-shadow: none; }.canvas-controls { min-width: 0; justify-content: center; }.toolbar-select, .accent-control { height: 29px; display: flex; align-items: center; gap: 7px; padding: 0 8px; border: 1px solid #222733; border-radius: 4px; color: #626c80; background: #0d1119; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.toolbar-select select { max-width: 155px; border: 0; outline: 0; color: #b8bfcc; background: transparent; font-size: 10px; font-weight: 700; letter-spacing: 0; text-transform: none; }.accent-control input { width: 20px; height: 20px; padding: 0; border: 0; background: transparent; cursor: pointer; }.tool-button { width: 36px; height: 27px; border-radius: 3px; font-size: 12px; }.tool-button:first-child { width: auto; padding: 0 10px; }.tool-button.active { color: #ffb0a2; border-color: #6b352c; background: #281512; }.toolbar-buttons > span { min-width: 32px; color: #70798c; font-size: 10px; text-align: center; }
.canvas-viewport { position: relative; min-height: 0; overflow: hidden; padding: 26px; background-color: #0a0d14; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 24px 24px; }.canvas-viewport:not(.grid-on) { background-image: none; }.canvas-stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; overflow: hidden; transform-origin: center center; background: linear-gradient(135deg, transparent 49.8%, rgba(255,255,255,.018) 50%, transparent 50.2%), #030405; background-size: 320px 320px; box-shadow: 0 8px 60px rgba(0,0,0,.55), 0 0 0 1px #343638; }.canvas-stage::after { content: attr(data-orientation) " CONTENT SAFE AREA"; position: absolute; inset: 5%; pointer-events: none; border: 1px dashed rgba(255,255,255,.06); color: rgba(255,255,255,.1); font: 700 16px "DM Sans"; letter-spacing: .15em; display: grid; place-items: center; }
.canvas-stage[data-theme="neon"] { background: radial-gradient(circle at 50% 20%, rgba(155,92,255,.14), transparent 38%), linear-gradient(rgba(56,189,248,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(56,189,248,.035) 1px, transparent 1px), #04030a; background-size: auto, 52px 52px, 52px 52px, auto; }
.canvas-stage[data-theme="glass"] { background: radial-gradient(circle at 15% 10%, rgba(56,189,248,.15), transparent 36%), radial-gradient(circle at 90% 85%, rgba(125,211,252,.09), transparent 42%), #050b12; }
.canvas-stage[data-theme="arcade"] { background: linear-gradient(rgba(183,255,60,.035) 2px, transparent 2px), linear-gradient(90deg, rgba(244,63,180,.035) 2px, transparent 2px), #050704; background-size: 32px 32px; }
.canvas-widget { position: absolute; z-index: 1; cursor: move; user-select: none; }.canvas-widget::before { content: ""; position: absolute; z-index: 20; inset: -5px; border: 2px solid transparent; border-radius: 0; pointer-events: none; }.canvas-widget.selected::before { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(255,79,50,.2); }.canvas-widget .widget-shell { pointer-events: none; }.resize-handle { position: absolute; z-index: 21; right: -10px; bottom: -10px; width: 20px; height: 20px; display: none; border: 3px solid #070910; border-radius: 0; background: var(--accent); cursor: nwse-resize; }.canvas-widget.selected .resize-handle { display: block; }.canvas-widget.hidden-widget { opacity: .25; }.canvas-footer { display: flex; align-items: center; justify-content: space-between; padding: 0 17px; color: #525a6c; border-top: 1px solid #181c27; font-size: 10px; }
.inspector-empty { min-height: 55vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }.empty-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 13px; border: 1px solid #252b38; border-radius: 14px; color: #788297; background: #131722; font-size: 20px; }.inspector-empty strong { font-size: 13px; }.inspector-empty span { max-width: 210px; margin-top: 7px; color: #667085; font-size: 11px; line-height: 1.5; }
.inspector-title { display: flex; align-items: center; gap: 11px; margin: 17px 0 22px; padding-bottom: 17px; border-bottom: 1px solid var(--line-ui); }.inspector-title .widget-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 2px; color: #ff9c8a; background: #281512; }.inspector-title svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }.inspector-title strong, .inspector-title span { display: block; }.inspector-title strong { font-size: 13px; }.inspector-title span { margin-top: 2px; color: #657087; font-size: 10px; }
.field-section { margin: 20px 0; }.field-section h3 { margin: 0 0 11px; color: #737d90; font-size: 9px; letter-spacing: .14em; }.field { display: block; margin: 11px 0; }.field > span { display: block; margin-bottom: 6px; color: #929bad; font-size: 10px; }.field input, .field select { width: 100%; height: 38px; padding: 0 11px; border: 1px solid #292f3c; border-radius: 3px; outline: 0; color: white; background: #131722; font-size: 12px; }.field input:focus, .field select:focus { border-color: #7b382d; box-shadow: 0 0 0 2px rgba(255,79,50,.1); }.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.switch-row { display: flex; align-items: center; justify-content: space-between; margin: 13px 0; color: #aeb5c4; font-size: 11px; }.switch { position: relative; width: 34px; height: 19px; border: 0; border-radius: 99px; background: #292f3d; cursor: pointer; }.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #8790a3; transition: .15s; }.switch.on { background: var(--accent); }.switch.on::after { left: 18px; background: white; }.source-box { padding: 11px; border: 1px solid #292f3c; border-radius: 3px; background: #10141d; }.source-box code { display: block; overflow: hidden; color: #8b95aa; font: 10px/1.5 Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }.source-box button { width: 100%; margin-top: 9px; }.danger-button { width: 100%; margin-top: 18px; border-color: #49252d; color: #f49aa8; background: #1d1116; }.danger-button:hover { border-color: #71313d; color: #fecdd3; }.toast { position: fixed; z-index: 100; left: 50%; bottom: 30px; padding: 10px 16px; border: 1px solid #343a49; border-radius: 3px; color: white; background: #171b25; box-shadow: 0 10px 35px rgba(0,0,0,.4); font-size: 12px; opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: .2s; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1250px) { .app-shell { grid-template-columns: 220px minmax(580px,1fr) 270px; }.topbar { grid-template-columns: 220px 1fr auto; }.brand { padding-left: 14px; }.top-actions .save-status, #copy-overlay { display: none; } }
@media (max-width: 1450px) { .toolbar-select span, .accent-control span { display: none; }.toolbar-select select { max-width: 120px; } }
.data-button { gap: 7px; }.data-button > i { width: 7px; height: 7px; background: #36e39a; box-shadow: 0 0 8px rgba(54,227,154,.65); }.data-button.error > i { background: #ff4f32; box-shadow: 0 0 8px rgba(255,79,50,.6); }
.modal-backdrop { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 28px; background: rgba(3,4,6,.82); backdrop-filter: blur(10px); }.modal-backdrop[hidden] { display: none; }.data-modal { width: min(1120px, 94vw); max-height: 92vh; overflow-y: auto; border: 1px solid #34383f; color: #f7f7f5; background: #0b0d11; box-shadow: 0 35px 100px rgba(0,0,0,.65); }.modal-header { position: sticky; z-index: 5; top: 0; display: flex; align-items: flex-start; justify-content: space-between; padding: 25px 28px 22px; border-bottom: 1px solid #282c33; background: rgba(11,13,17,.97); }.modal-header h2 { margin: 0; font: 800 25px Manrope; letter-spacing: -.03em; }.modal-header p { margin: 5px 0 0; color: #747d8f; font-size: 12px; }.modal-header .icon-button { font-size: 23px; }
.live-summary { display: grid; grid-template-columns: repeat(6, 1fr); margin: 22px 28px 0; border: 1px solid #2b3038; }.live-summary > div { min-width: 0; padding: 14px 16px; border-right: 1px solid #2b3038; }.live-summary > div:last-child { border-right: 0; }.live-summary span, .live-summary strong { display: block; }.live-summary span { color: #697285; font-size: 8px; font-weight: 900; letter-spacing: .15em; }.live-summary strong { margin-top: 5px; overflow: hidden; font: 800 18px Manrope; text-overflow: ellipsis; white-space: nowrap; }.live-summary strong.online { color: #36e39a; background: none !important; box-shadow: none; }
.data-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 18px 28px 26px; }.data-section { min-width: 0; padding: 20px; border: 1px solid #282d35; background: #101319; }.data-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }.data-section-heading > div { display: flex; align-items: center; gap: 11px; }.section-number { display: grid; place-items: center; width: 28px; height: 28px; color: var(--accent); border: 1px solid #563026; font-size: 9px; font-weight: 900; }.data-section h3 { margin: 0; font: 750 15px Manrope; }.data-section > p { min-height: 35px; margin: 13px 0 15px; color: #778093; font-size: 11px; line-height: 1.55; }.connection-chip { padding: 5px 7px; color: #989eaa; border: 1px solid #373c45; font-size: 8px; font-weight: 900; letter-spacing: .1em; }.connection-chip.connected { color: #8cf4c5; border-color: #285a46; background: rgba(54,227,154,.06); }.connection-chip.error { color: #ff9b88; border-color: #633026; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 9px; }.form-grid .field { margin: 7px 0; }.form-grid .full { grid-column: 1 / -1; }.data-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }.integration-message { min-height: 16px; margin-top: 10px; color: #7c8597; font-size: 10px; }.integration-message.success { color: #72e6b3; }.integration-message.error { color: #ff8f7b; }
.endpoint-list { display: grid; gap: 7px; }.endpoint-list button { width: 100%; height: 43px; display: flex; align-items: center; justify-content: space-between; padding: 0 11px; border: 1px solid #2c313a; color: #bdc2cd; background: #0b0e13; cursor: pointer; text-align: left; }.endpoint-list button:hover { border-color: #66382f; color: white; }.endpoint-list span { font-size: 8px; font-weight: 900; letter-spacing: .13em; }.endpoint-list code { color: #ff8f7b; font: 10px Consolas, monospace; }.modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 28px; border-top: 1px solid #282c33; color: #666f81; font-size: 10px; }.modal-footer code { color: #a8afbd; }.modal-footer a { color: #ff9a87; text-decoration: none; }
