/* SPDX-FileCopyrightText: 2026 Arnold Bagabaldo */
/* SPDX-License-Identifier: LicenseRef-GoOffice-Proprietary */

:root { --wb-blue:#0a6fae; --wb-ink:#10243a; --wb-muted:#61738b; --wb-line:#d7e3ed; --wb-bg:#eef5f9; --wb-panel:#fff; --wb-radius:8px; --wb-good:#147b58; --wb-danger:#ab4051; }
.go-whiteboard-app { min-height:100dvh; background:var(--wb-bg); color:var(--wb-ink); }
.whiteboard-shell { width:min(100%, 1440px); margin:0 auto; padding:14px; }
.whiteboard-loading,.whiteboard-auth,.whiteboard-workspace { max-width:1320px; margin:20px auto; }
.whiteboard-loading { min-height:240px; display:flex; justify-content:center; align-items:center; gap:10px; color:var(--wb-muted); }
.whiteboard-spinner { width:25px; height:25px; border:3px solid #c6deed; border-top-color:var(--wb-blue); border-radius:50%; animation:wb-spin .8s linear infinite; }
@keyframes wb-spin { to { transform:rotate(360deg); } }
.whiteboard-auth,.whiteboard-command-bar,.whiteboard-stage { background:var(--wb-panel); border:1px solid var(--wb-line); border-radius:var(--wb-radius); box-shadow:0 12px 30px rgba(20,57,83,.07); }
.whiteboard-auth { max-width:760px; padding:clamp(24px,6vw,54px); }
.whiteboard-auth h1,.whiteboard-page-head h1 { margin:.15rem 0 .45rem; letter-spacing:0; }
.whiteboard-page-head h1 { max-width:760px; font-size:clamp(2rem,4vw,3.25rem); line-height:1.08; }
.whiteboard-auth p,.whiteboard-page-head p,.whiteboard-inspector p { color:var(--wb-muted); line-height:1.5; }
.eyebrow { margin:0 0 4px; color:var(--wb-blue); font-size:.75rem; font-weight:800; letter-spacing:0; text-transform:uppercase; }
.whiteboard-page-head { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; margin:20px 0 14px; }
.whiteboard-head-actions,.whiteboard-dialog-actions { display:flex; flex-wrap:wrap; gap:8px; }
.whiteboard-button { min-height:40px; padding:8px 12px; border:1px solid transparent; border-radius:7px; background:#fff; color:var(--wb-blue); border-color:#abc9dc; font:inherit; font-weight:800; cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; }
.whiteboard-button.primary { background:var(--wb-blue); color:#fff; border-color:var(--wb-blue); }
.whiteboard-button.secondary { background:#f8fcff; }
.whiteboard-button.export { color:#28566f; background:#fff; }
.whiteboard-button.report-link { color:#456477; background:#fff; }
.whiteboard-icon-button { width:40px; height:40px; border:1px solid var(--wb-line); border-radius:7px; background:#fff; color:var(--wb-blue); font-size:1.25rem; cursor:pointer; }
.whiteboard-command-bar { padding:12px; display:grid; grid-template-columns:minmax(190px,.7fr) minmax(210px,1fr) auto auto; gap:10px; align-items:end; }
.whiteboard-field { min-width:0; display:grid; gap:5px; color:var(--wb-muted); font-size:.78rem; font-weight:800; }
.whiteboard-field input,.whiteboard-field select,.whiteboard-field textarea { min-width:0; min-height:40px; box-sizing:border-box; padding:8px 10px; border:1px solid #b8cddd; border-radius:7px; background:#fff; color:var(--wb-ink); font:inherit; }
.whiteboard-field textarea { min-height:110px; resize:vertical; }
.whiteboard-access { min-height:40px; padding:8px 10px; box-sizing:border-box; border-radius:7px; background:#eef8fd; color:#24516d; font-size:.82rem; font-weight:800; display:flex; align-items:center; }
.whiteboard-access.is-open { background:#eaf8f0; color:var(--wb-good); }
.whiteboard-toggle { min-height:40px; display:flex; align-items:center; gap:8px; padding:0 4px; color:#26475d; font-size:.78rem; white-space:nowrap; cursor:pointer; }
.whiteboard-toggle input { position:absolute; opacity:0; }
.whiteboard-toggle span { width:36px; height:20px; border-radius:99px; background:#9eb3c2; position:relative; flex:none; transition:.16s ease; }
.whiteboard-toggle span::after { content:""; position:absolute; width:14px; height:14px; top:3px; left:3px; border-radius:50%; background:#fff; transition:.16s ease; }
.whiteboard-toggle input:checked + span { background:var(--wb-good); }
.whiteboard-toggle input:checked + span::after { transform:translateX(16px); }
.whiteboard-toggle.is-hidden { display:none; }
.whiteboard-stage { margin-top:12px; display:grid; grid-template-columns:78px minmax(0,1fr) 238px; overflow:hidden; min-height:min(68dvh,760px); }
.whiteboard-tool-rail { padding:10px 8px; border-right:1px solid var(--wb-line); background:#f8fbfd; display:flex; flex-direction:column; justify-content:space-between; gap:10px; }
.tool-group { display:flex; flex-direction:column; align-items:center; gap:7px; }
.tool-button { width:58px; min-height:51px; padding:5px; border:1px solid transparent; border-radius:7px; background:transparent; color:#38536a; display:grid; place-items:center; gap:1px; font:inherit; cursor:pointer; }
.tool-button span { font-size:1.24rem; line-height:1; font-weight:800; }
.tool-button small { font-size:.63rem; font-weight:800; }
.tool-button:hover,.tool-button.is-active { border-color:#a8d1e8; background:#e7f5fd; color:var(--wb-blue); }
.tool-button.danger:hover { color:var(--wb-danger); background:#fff1f1; border-color:#e3b1b9; }
.whiteboard-colors { gap:6px; }
.color-button { width:23px; height:23px; border-radius:50%; border:2px solid #fff; outline:1px solid transparent; background:var(--swatch); cursor:pointer; }
.color-button.is-selected { outline-color:var(--wb-ink); transform:scale(1.08); }
.whiteboard-canvas-wrap { min-width:0; min-height:0; position:relative; padding:14px; background:linear-gradient(135deg,#f3f8fb,#eaf3f8); display:grid; place-items:center; }
.whiteboard-canvas-wrap::before { content:""; position:absolute; inset:14px; border-radius:7px; background-image:radial-gradient(#d9e6ee 1px, transparent 1px); background-size:20px 20px; pointer-events:none; }
[data-canvas] { position:relative; z-index:1; display:block; width:100%; max-height:calc(68dvh - 28px); aspect-ratio:16 / 9; background:#fff; border:1px solid #c8d8e3; border-radius:7px; box-shadow:0 12px 30px rgba(31,72,99,.13); touch-action:none; cursor:crosshair; }
.whiteboard-empty { z-index:2; position:absolute; inset:auto 12% 50%; transform:translateY(50%); max-width:320px; padding:14px; border:1px dashed #a9cbdc; background:rgba(248,252,255,.94); border-radius:7px; text-align:center; color:#426177; pointer-events:none; }
.whiteboard-empty strong,.whiteboard-empty span { display:block; }
.whiteboard-empty span { margin-top:5px; font-size:.85rem; line-height:1.4; }
.whiteboard-cursor-note { position:absolute; z-index:3; left:26px; bottom:25px; padding:6px 9px; color:#456477; background:rgba(255,255,255,.9); border-radius:5px; font-size:.75rem; font-weight:800; pointer-events:none; }
.whiteboard-inspector { padding:16px; border-left:1px solid var(--wb-line); background:#fbfdfe; overflow:auto; }
.whiteboard-inspector section + section { margin-top:18px; padding-top:16px; border-top:1px solid var(--wb-line); }
.whiteboard-inspector strong { display:block; color:#1b3d55; }
.whiteboard-inspector p { margin:.3rem 0 0; font-size:.84rem; }
.whiteboard-contributors { display:grid; gap:7px; margin-top:9px; }
.contributor { display:flex; align-items:center; gap:8px; color:#345168; font-size:.82rem; font-weight:800; }
.contributor-dot { width:10px; height:10px; border-radius:50%; background:var(--dot); flex:none; }
.contributor small { display:block; color:var(--wb-muted); font-weight:600; }
.whiteboard-export { display:grid; gap:7px; scroll-margin-bottom:96px; }
.whiteboard-export .eyebrow { margin-bottom:2px; }
.whiteboard-dialog { width:min(480px,calc(100vw - 24px)); border:0; border-radius:8px; padding:0; box-shadow:0 24px 80px rgba(8,31,52,.35); }
.whiteboard-dialog::backdrop { background:rgba(9,27,43,.5); }
.whiteboard-dialog form { padding:18px; }
.whiteboard-dialog-head { display:flex; justify-content:space-between; align-items:start; gap:12px; margin-bottom:16px; }
.whiteboard-dialog-head h2 { margin:0; letter-spacing:0; }
.whiteboard-dialog-actions { justify-content:flex-end; margin-top:16px; }
.whiteboard-toast { position:fixed; z-index:300; right:16px; bottom:max(16px,env(safe-area-inset-bottom)); max-width:min(380px,calc(100vw - 32px)); padding:12px 14px; color:#fff; background:#112f47; border-radius:7px; opacity:0; transform:translateY(12px); pointer-events:none; transition:.18s ease; }
.whiteboard-toast.is-visible { opacity:1; transform:none; }
.go-whiteboard-app .site-support { display:none; }
.is-hidden { display:none !important; }
@media (max-width:1000px) { .whiteboard-command-bar { grid-template-columns:repeat(2,minmax(0,1fr)); } .whiteboard-access,.whiteboard-toggle { grid-column:auto; } .whiteboard-stage { grid-template-columns:70px minmax(0,1fr); } .whiteboard-inspector { grid-column:1 / -1; display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; border-top:1px solid var(--wb-line); border-left:0; padding:12px; } .whiteboard-inspector section + section { margin:0; padding:0; border-top:0; border-left:1px solid var(--wb-line); padding-left:12px; } }
@media (max-width:700px) { .whiteboard-shell { padding:8px; } .whiteboard-page-head { margin-top:12px; } .whiteboard-page-head h1 { font-size:2rem; } .whiteboard-page-head { align-items:stretch; flex-direction:column; } .whiteboard-head-actions > * { flex:1; } .whiteboard-command-bar { grid-template-columns:1fr; padding:10px; gap:8px; } .whiteboard-access,.whiteboard-toggle { grid-column:auto; } .whiteboard-toggle { justify-content:flex-start; } .whiteboard-stage { grid-template-columns:1fr; min-height:0; } .whiteboard-tool-rail { order:2; min-height:67px; padding:8px; border-right:0; border-top:1px solid var(--wb-line); flex-direction:row; align-items:center; overflow:auto; justify-content:flex-start; } .tool-group { flex-direction:row; flex:none; } .tool-button { width:47px; min-height:44px; } .tool-button small { display:none; } .tool-actions { margin-left:auto; } .whiteboard-colors { padding:0 8px; border-left:1px solid var(--wb-line); border-right:1px solid var(--wb-line); } .whiteboard-canvas-wrap { order:1; padding:9px; } .whiteboard-canvas-wrap::before { inset:9px; } [data-canvas] { max-height:none; min-height:220px; } .whiteboard-cursor-note { left:17px; bottom:17px; } .whiteboard-inspector { order:3; grid-template-columns:1fr; gap:0; padding:12px; } .whiteboard-inspector section + section { border-left:0; border-top:1px solid var(--wb-line); padding:12px 0 0; margin-top:12px; } .whiteboard-export { grid-template-columns:repeat(3,minmax(0,1fr)); } .whiteboard-export .eyebrow { grid-column:1 / -1; } .whiteboard-export .whiteboard-button { min-height:38px; padding:7px 6px; font-size:.75rem; } .whiteboard-dialog { width:calc(100% - 16px); max-width:100%; max-height:86dvh; margin:0 8px; border-radius:8px 8px 0 0; align-self:end; } }
