/* SpiraOS Business Studio - light, clean, teal (Papa's picture, 2026-09-27) */
:root { --teal: #0f7d85; --teal2: #1fb5b5; --navy: #0b2a3c; --ink: #1d2733; --mut: #6b7684; --line: #dfe4ea; --bg: #f3f5f8; --card: #ffffff; --soft: #e9f6f6; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 14px/1.4 "Montserrat", "Segoe UI", Arial, sans-serif; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.app { display: grid; grid-template-rows: auto auto auto 1fr auto; height: 100vh; }
/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo img { width: 44px; height: 44px; }
.logo b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.logo small { display: block; font-size: 10px; letter-spacing: .35em; text-transform: uppercase; color: var(--navy); }
.top-acts { display: flex; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
.btn:hover { border-color: var(--teal); }
.btn.dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.teal { background: var(--teal); color: #fff; border-color: var(--teal); }
.ic { font-style: normal; }
/* tabs */
.tabs { display: flex; gap: 0; padding: 0 12px; background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 18px; background: none; border: 0; border-radius: 8px 8px 0 0; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; color: var(--navy); }
.tab .ti { font-size: 20px; }
.tab.on { background: var(--teal); color: #fff; }
/* the bar */
.bar { display: flex; align-items: center; gap: 18px; padding: 10px 18px; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.bar label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.bar select { height: 34px; min-width: 140px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; text-transform: none; letter-spacing: 0; color: var(--ink); font-weight: 500; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg button { height: 34px; padding: 0 14px; border: 0; background: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.seg button.on { background: var(--soft); color: var(--teal); font-weight: 700; box-shadow: inset 0 0 0 1px var(--teal); }
.zoom { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.zoom button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 18px; }
.zoom b { min-width: 54px; text-align: center; color: var(--ink); }
.lnk { border: 0; background: none; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.lnk:disabled { opacity: .35; }
/* work area */
.work { display: grid; grid-template-columns: 92px 320px minmax(0, 1fr) 380px; min-height: 0; }
.rail { background: var(--navy); display: flex; flex-direction: column; overflow-y: auto; }
.rbtn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 4px; background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.08); color: #d7e3ea; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.rbtn .ri { font-size: 24px; }
.rbtn.on { background: var(--teal); color: #fff; }
.side { background: #fff; border-right: 1px solid var(--line); overflow-y: auto; padding: 16px; }
.side h3, .props h3 { margin: 0 0 12px; font-size: 16px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.side h4, .props h4 { margin: 16px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.search { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; }
.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tcard { padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.tcard img { width: 100%; display: block; border-radius: 4px; margin-bottom: 6px; background: #eef1f4; }
.tcard:hover { border-color: var(--teal); }
.tcard.on { border: 2px solid var(--teal); }
.wide { width: 100%; height: 44px; margin-top: 12px; }
.row { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.row > * { flex: 1; }
.chip { height: 36px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 12px; font-weight: 600; }
.chip:hover { border-color: var(--teal); }
.chip.on { background: var(--soft); border-color: var(--teal); color: var(--teal); }
.sw { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.sw button { height: 34px; border-radius: 6px; border: 1px solid rgba(0,0,0,.12); }
.field { display: block; margin: 8px 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.field input, .field select, .field textarea { display: block; width: 100%; margin-top: 4px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink); }
.field input[type=color] { padding: 2px; }
.note { font-size: 12px; color: var(--mut); margin: 8px 0; }
/* the stage */
.stage { overflow: auto; background: #d9dee4; position: relative; }
.paper { position: relative; margin: 30px auto; padding: 24px 0 0 24px; width: max-content; }
.ruler { position: absolute; background: #fff; }
.rt { left: 24px; top: 0; height: 22px; }
.rl { left: 0; top: 24px; width: 22px; }
.cwrap { box-shadow: 0 10px 30px rgba(11,42,60,.25); background: #fff; }
/* properties */
.props { background: #fff; border-left: 1px solid var(--line); overflow-y: auto; }
.ptabs { display: flex; background: var(--navy); }
.ptabs button { flex: 1; padding: 14px 6px; border: 0; background: none; color: #d7e3ea; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ptabs button.on { background: #fff; color: var(--navy); }
.pbody { padding: 16px; }
.tbtns { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.tbtns button { height: 40px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-weight: 700; }
.tbtns button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.check { margin: 10px 0; padding: 10px 12px; border-radius: 8px; font-size: 13px; }
.check.ok { background: #e6f6ec; color: #17693a; }
.check.warn { background: #fff4e0; color: #8a5a00; }
.check.bad { background: #fde8e8; color: #9b1c1c; }
.switch { position: relative; width: 50px; height: 26px; border-radius: 13px; border: 0; background: #c9d1da; flex: none !important; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch.on { background: var(--teal); }
.switch.on::after { left: 27px; }
.layers { list-style: none; margin: 0; padding: 0; }
.layers li { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 6px; font-size: 13px; cursor: pointer; }
.layers li.on { border-color: var(--teal); background: var(--soft); }
.layers li span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.layers li button { border: 0; background: none; font-size: 15px; padding: 2px 4px; }
.status { display: flex; align-items: center; gap: 18px; padding: 8px 18px; background: #fff; border-top: 1px solid var(--line); font-size: 13px; }
.status .grow { flex: 1; }
.status input { width: 160px; accent-color: var(--teal); }
.modal { position: fixed; inset: 0; background: rgba(11,42,60,.55); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal[hidden] { display: none; }
.mbox { position: relative; background: #fff; border-radius: 12px; padding: 22px; max-width: min(900px, 94vw); max-height: 92vh; overflow: auto; }
.mx { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 28px; }
.menu { position: absolute; z-index: 40; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 30px rgba(11,42,60,.2); padding: 6px; min-width: 260px; }
.menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 6px; font-size: 14px; }
.menu button:hover { background: var(--soft); }
.preview-wall { padding: 30px; background: linear-gradient(#e9e4dc, #cfc6b8); border-radius: 10px; text-align: center; }
.preview-wall img { max-width: 100%; max-height: 70vh; box-shadow: 0 20px 40px rgba(0,0,0,.35); }
@media (max-width: 1300px) { .work { grid-template-columns: 80px 260px minmax(0, 1fr) 300px; } }
@media (max-width: 1000px) { .work { grid-template-columns: 70px minmax(0, 1fr); } .side, .props { display: none; } .work.show-side .side { display: block; position: fixed; left: 70px; top: 0; bottom: 0; width: 300px; z-index: 30; } }

/* RECORD (the Creator Studio picture) */
.recbtn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.recbtn i { width: 12px; height: 12px; border-radius: 50%; background: #e53935; }
.recbtn.on { background: #fde8e8; border-color: #e53935; color: #b71c1c; }
.recbar { position: sticky; top: 10px; z-index: 20; margin: 10px auto 0; width: max-content; display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--navy); color: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(11,42,60,.35); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.recbar[hidden] { display: none; }
.recbar > i { width: 12px; height: 12px; border-radius: 50%; background: #ff4d4d; animation: recb 1s steps(2) infinite; }
@keyframes recb { 50% { opacity: .2; } }
.recbar b { font-size: 20px; letter-spacing: .04em; font-weight: 700; }
.recbar button { height: 34px; padding: 0 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; background: rgba(255,255,255,.08); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .06em; }
.meter { display: flex; gap: 3px; align-items: flex-end; height: 18px; }
.meter em { width: 5px; height: 100%; background: rgba(255,255,255,.2); border-radius: 2px; }
.meter em.on { background: #3ddc84; }
.recvid { width: 100%; border-radius: 8px; background: #000; margin: 8px 0; }
