:root { --ba: var(--app-accent, #0ea5a4); }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, sans-serif; color: #1f2937; background: #f4f7f7; overflow: hidden; }
.bd-bar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: #fff; border-bottom: 1px solid #e3ecec; position: sticky; top: 0; z-index: 20; }
.bd-bar img { width: 26px; height: 26px; }
.bd-bar .name { font-weight: 700; }
.bd-bar .sp { flex: 1; }
.bd-btn { border: 0; border-radius: 8px; background: var(--ba); color: #fff; font-weight: 600; padding: 8px 14px; cursor: pointer; font-size: 13.5px; }
.bd-btn:hover { filter: brightness(1.08); }
.bd-btn.ghost { background: #e6f4f4; color: var(--ba); }
.bd-title-in { border: 1px solid transparent; border-radius: 8px; padding: 7px 10px; font-size: 14.5px; font-weight: 600; font-family: inherit; max-width: 280px; background: transparent; }
.bd-title-in:hover { border-color: #dbe7e7; } .bd-title-in:focus { outline: none; border-color: var(--ba); background: #fff; }
.bd-save { font-size: 12px; color: #7d9a9a; min-width: 60px; }
/* board list */
.wrap { max-width: 1000px; margin: 22px auto; padding: 0 16px; height: calc(100vh - 60px); overflow: auto; }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.bcard { background: #fff; border: 1px solid #e3ecec; border-radius: 14px; overflow: hidden; cursor: pointer; transition: box-shadow .12s, transform .12s; position: relative; }
.bcard:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(10,60,60,.14); }
.bcard .thumb { height: 110px; background: repeating-linear-gradient(0deg,#fbfdfd,#fbfdfd 19px,#eef5f5 20px); display: flex; align-items: center; justify-content: center; color: #bcd6d6; font-size: 34px; }
.bcard .meta { padding: 10px 13px 12px; }
.bcard .t { font-weight: 650; font-size: 14px; }
.bcard .d { color: #7d9a9a; font-size: 12px; margin-top: 2px; }
.bcard .del { position: absolute; top: 8px; right: 8px; border: 0; background: rgba(255,255,255,.9); border-radius: 8px; cursor: pointer; padding: 4px 8px; color: #9db8b8; display: none; }
.bcard:hover .del { display: block; } .bcard .del:hover { color: #c0362c; }
.tpl-menu { position: absolute; top: 42px; right: 0; background: #fff; border: 1px solid #e3ecec; border-radius: 10px; box-shadow: 0 12px 30px rgba(10,60,60,.16); padding: 6px; z-index: 40; min-width: 150px; }
.tpl-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 13.5px; color: #234; }
.tpl-menu button:hover { background: #eef6f6; color: var(--ba); }
.empty { text-align: center; color: #9db8b8; padding: 70px 20px; }
.empty .big { font-size: 44px; }
/* canvas screen */
#stage-wrap { position: fixed; inset: 49px 0 0 0; overflow: hidden; background: #fff; }
#stage { width: 100%; height: 100%; touch-action: none; display: block; }
.toolbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; display: flex; gap: 4px; align-items: center; background: #fff; border: 1px solid #e3ecec; border-radius: 14px; box-shadow: 0 12px 34px rgba(10,60,60,.16); padding: 7px 10px; z-index: 30; }
.tool { border: 0; background: none; font-size: 18px; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; color: #52706f; }
.tool:hover { background: #eef6f6; }
.tool.on { background: var(--ba); color: #fff; }
.tb-div { width: 1px; height: 26px; background: #e3ecec; margin: 0 4px; }
.cw { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #dbe7e7; cursor: pointer; padding: 0; margin: 0 2px; }
.cw.on { box-shadow: 0 0 0 2px var(--ba); }
svg .sel { outline: 2px dashed var(--ba); outline-offset: 2px; }
.sticky-edit { position: absolute; z-index: 40; border: 2px solid var(--ba); border-radius: 6px; padding: 8px; font-family: inherit; font-size: 14px; resize: none; box-shadow: 0 8px 24px rgba(10,60,60,.2); }
.toast { position: fixed; top: 60px; left: 50%; transform: translateX(-50%); background: #1f2937; color: #fff; padding: 9px 15px; border-radius: 8px; font-size: 13px; z-index: 999; }
