@charset "UTF-8";

:root {
    --green: #355a46;
    --green-dark: #284536;
    --green-light: #e9efe6;
    --ink: #2f3832;
    --muted: #90958c;
    --soft-ink: #737b72;
    --hint: #5f6f55;
    --danger-text: #a3483d;
    --warn-text: #806f42;
    --line: #e7e9e2;
    --sidebar-bg: #f8f9f5;
    --canvas-bg: #f5f7f2;
    --font: "Manrope", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-ja: "Noto Sans JP", "Manrope", sans-serif;
    --shadow: 0 7px 22px rgb(35 49 36 / 6%), 0 1px 3px rgb(35 49 36 / 4%);
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; }
body { color: var(--ink); font-family: var(--font); font-size: 13px; -webkit-font-smoothing: antialiased; overflow: hidden; background: white; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button { transition: color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease; }
button:disabled { cursor: default; opacity: .36; }
button:focus-visible, a:focus-visible { outline: 2px solid #65856a; outline-offset: 3px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #65856a; outline-offset: 1px; }
button, input, textarea { margin: 0; }
a { color: var(--green); }
[hidden] { display: none !important; }
.icon { width: 19px; height: 19px; flex: 0 0 auto; vertical-align: middle; }
.app-shell { display: flex; height: 100%; height: 100dvh; min-height: 480px; width: 100%; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: #7b8278; padding: 0; }
.icon-button:hover:not(:disabled) { background: #edf1e9; color: var(--green); }
.icon-button .icon { width: 18px; height: 18px; }

/* A quiet place for your boards. */
.sidebar { width: 252px; flex: 0 0 252px; display: flex; flex-direction: column; background: var(--sidebar-bg); border-right: 1px solid var(--line); padding: 35px 20px 0; z-index: 40; }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 5px; }
.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; color: #293f31; text-decoration: none; font-size: 22px; font-weight: 800; letter-spacing: -.8px; line-height: 40px; white-space: nowrap; }
.brand-dot { color: #86a487; }
.brand-symbol { display: block; position: relative; width: 34px; height: 34px; flex: 0 0 34px; }
.brand-symbol span { position: absolute; height: 29px; width: 26px; border-radius: 6px; }
.brand-symbol span:first-child { left: 0; top: 0; background: #345940; transform: rotate(-7deg); }
.brand-symbol span:last-child { top: 7px; left: 8px; width: 25px; height: 27px; background: #adc4a4; transform: rotate(8deg); box-shadow: -1px -1px 0 rgb(255 255 255 / 14%) inset; }
.brand-symbol span:last-child::after { content: ""; position: absolute; bottom: 0; right: 0; border-top: 8px solid #dae5d5; border-right: 8px solid #f8f9f5; border-radius: 2px 0 3px 0; }
.brand-tagline { margin: 9px 0 30px 10px; color: #7d8878; font-size: 10px; letter-spacing: 2px; font-weight: 500; }
.workspace-selector { display: flex; align-items: center; gap: 10px; margin-bottom: 21px; padding: 11px 10px; background: #fff; border: 1px solid #e4e7de; border-radius: 9px; box-shadow: 0 2px 2px rgb(32 48 32 / 1%); }
.workspace-avatar { display: grid; place-items: center; height: 30px; width: 30px; flex: 0 0 30px; background: #e9eee4; border: 1px solid #dce4d5; color: #5d7957; font-size: 13px; font-weight: 800; border-radius: 7px; }
.workspace-selector > div { flex: 1; min-width: 0; }
.workspace-selector-title { display: block; white-space: nowrap; font-size: 11px; font-weight: 650; letter-spacing: -.2px; }
.workspace-selector-subtitle { display: block; margin-top: 5px; font-size: 9px; color: #93988d; }
.workspace-selector > .icon { width: 13px; height: 13px; color: #999e95; }
.sidebar-search { display: flex; align-items: center; height: 37px; padding: 0 10px; margin-bottom: 20px; border: 1px solid #e5e8df; border-radius: 7px; gap: 8px; background: #f3f5ef; color: #a0a69b; }
.sidebar-search .icon { height: 15px; width: 15px; }
.sidebar-search input { width: 100%; min-width: 0; border: 0; color: var(--ink); background: transparent; font-size: 11px; padding: 6px 0; outline: 0; }
.sidebar-search:focus-within { border-color: #65856a; box-shadow: 0 0 0 1px #65856a; }
.sidebar-search input::placeholder { color: #9a9f94; }
.search-shortcut { font-size: 10px; line-height: 16px; flex: 0 0 auto; background: #fff; border: 1px solid #e4e7de; padding: 0 4px; border-radius: 3px; }
.main-nav { display: grid; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 11px; border: 0; background: transparent; height: 42px; padding: 0 12px; text-align: left; border-radius: 7px; color: #858c7f; font-size: 11px; font-weight: 550; }
.nav-item .icon { width: 17px; height: 17px; }
.nav-item.active { background: #e9eee2; color: #44623d; font-weight: 650; }
.nav-item:hover { background: #eef1e9; }
.nav-item > span:not(.nav-count) { flex: 1; }
.nav-count { display: grid; place-items: center; min-width: 20px; height: 19px; font-size: 10px; font-weight: 650; border-radius: 5px; background: #dae4d2; color: #66805b; }
.sidebar-section-heading { display: flex; justify-content: space-between; align-items: center; margin: 29px 1px 10px 12px; font-size: 10px; letter-spacing: 1px; font-weight: 650; color: #8d9486; }
.sidebar-section-heading .icon-button { height: 25px; width: 25px; }
.sidebar-section-heading .icon { height: 15px; width: 15px; }
.board-list { min-height: 60px; overflow-y: auto; flex: 1; scrollbar-width: thin; padding-bottom: 20px; }
.board-list-item { position: relative; display: flex; align-items: center; width: 100%; padding: 12px 10px; gap: 10px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; background: transparent; text-align: left; margin-bottom: 4px; color: #78806f; min-height: 44px; }
.board-list-item:hover { background: #eff2e9; }
.board-list-item.active { background: #fff; border-color: #e1e6d9; color: #4f6545; box-shadow: 0 2px 3px rgb(30 50 30 / 2%); }
.board-list-icon { display: grid; place-items: center; width: 25px; height: 25px; color: #859b71; border-radius: 5px; background: #f0f3e9; flex: 0 0 25px; }
.board-list-icon svg { width: 15px; height: 15px; }
.board-item-title { font-size: 11px; font-weight: 550; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-star { color: #bead6b; width: 12px; height: 12px; }
.board-shared { color: #7f8a78; }
.board-list .empty-state { padding: 16px 9px; font-size: 11px; }
.sidebar-bottom { flex: 0 0 auto; padding-bottom: 21px; }
.guest-card { background: #eff3e9; border: 1px solid #e3e9dc; border-radius: 10px; padding: 16px 14px 13px; }
.guest-card-icon { width: 31px; height: 29px; display: grid; place-items: center; border: 1px solid #dfe7d5; background: #e5eddc; color: #7c916c; border-radius: 7px; margin-bottom: 12px; }
.guest-card-icon .icon { width: 19px; height: 19px; }
.guest-card h2 { font-size: 12px; font-weight: 650; color: #64705a; margin: 0 0 7px; letter-spacing: .3px; }
.guest-card p { font-size: 10px; color: #939b88; line-height: 1.9; margin: 0 0 15px; }
.button { border: 1px solid transparent; display: inline-flex; justify-content: center; align-items: center; gap: 8px; height: 39px; padding: 0 15px; border-radius: 7px; font-size: 11px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.button .icon { width: 16px; height: 16px; }
.button.primary { color: #fff; background: var(--green); border-color: var(--green); box-shadow: 0 3px 5px rgb(39 77 45 / 6%); }
.button.primary:hover:not(:disabled) { background: #2c4b39; border-color: #2c4b39; box-shadow: 0 4px 8px rgb(39 77 45 / 14%); }
.button.secondary { color: #66735e; background: #fff; border-color: #e0e5d9; }
.button.secondary:hover:not(:disabled) { background: #f7f9f3; border-color: #bdcdb8; }
.button.danger { background: #fff1ee; border-color: #eed9d3; color: #ab544b; }
.button.danger:hover { background: #ffe8e2; }
.button.ghost { border: 0; background: transparent; color: #6a7a5f; }
.button.ghost:hover { background: #eef3e9; }
.guest-login { width: 100%; background: #fff; color: #658057; border: 1px solid #dce5d3; justify-content: space-between; height: 35px; padding: 0 11px; font-size: 10px; }
.guest-login:hover { border-color: #c0d1b5; background: #fbfdf8; }
.guest-login .icon { width: 13px; height: 13px; }
.storage-label { font-size: 10px; color: var(--hint); margin-top: 11px; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.status-dot { display: inline-block; height: 4px; width: 4px; border-radius: 50%; background: #a2b78e; flex: 0 0 auto; }
.sidebar-footer { display: flex; justify-content: space-between; gap: 6px; margin-top: 23px; color: #a6ab9e; font-size: 7px; letter-spacing: .3px; white-space: nowrap; }
.footer-separator { margin: 0 4px; color: #c4c9bd; }
.footer-version { color: #bbc0b4; }
.account-button { display: flex; gap: 10px; align-items: center; background: #eef3e9; border: 1px solid #e1e8d9; width: 100%; text-align: left; padding: 12px; border-radius: 9px; }
.user-avatar { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; background: #d4e1ca; border: 1px solid #cbd9c0; border-radius: 50%; font-weight: 700; color: #5c7650; }
.account-info { flex: 1; min-width: 0; }
.account-info strong { display: block; font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.account-info > span { display: block; margin-top: 3px; font-size: 9px; color: #8f9a86; }
.account-button > .icon { width: 13px; height: 13px; }

/* The board stays out of the way of the ideas. */
.main-workspace { position: relative; flex: 1; display: flex; flex-direction: column; min-width: 0; height: 100%; }
.board-loading-message { display: none; }
.board-loading .board-loading-message { position: absolute; inset: 0; display: grid; place-items: center; color: var(--hint); background: var(--canvas-bg); padding: 24px; text-align: center; }
.board-loading .main-workspace > :not(.board-loading-message),
.board-loading .sidebar > :not(.brand-row):not(.brand-tagline) { visibility: hidden; pointer-events: none; }
.workspace-header { background: #fff; flex: 0 0 152px; padding: 22px 36px 23px; border-bottom: 1px solid var(--line); z-index: 20; }
.header-top-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 27px; }
.breadcrumb { display: flex; align-items: center; gap: 12px; color: var(--hint); font-size: 9px; font-weight: 500; }
.breadcrumb > .icon { width: 11px; height: 11px; color: #bbc0b3; }
.breadcrumb-current { color: var(--green); }
.header-top-right { display: flex; align-items: center; gap: 14px; }
.save-status { display: flex; align-items: center; gap: 5px; color: var(--hint); font-size: 9px; white-space: nowrap; }
.save-status .icon { width: 12px; height: 12px; color: #8da17f; }
.save-status.saving { color: var(--warn-text); }
.save-status.error { color: var(--danger-text); }
.save-status.error .icon { color: var(--danger-text); }
.save-status[data-status="saved"]::before { content: "✓"; font-size: 10px; color: #8da17f; }
.save-status[data-status="saving"] { color: var(--warn-text); }
.save-status[data-status="saving"]::before { content: ""; width: 9px; height: 9px; border: 1.5px solid #e4dec8; border-top-color: #a3926a; border-radius: 50%; animation: spin .8s linear infinite; }
.save-status[data-status="error"] { color: var(--danger-text); }
.header-top-divider { height: 13px; width: 1px; background: #e9ece3; }
.guest-badge { color: var(--hint); font-size: 10px; background: #f5f7f1; border: 1px solid #e8ecdf; border-radius: 4px; padding: 3px 6px; }
.board-header-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.board-heading { min-width: 0; flex: 1; }
.board-title-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.board-title { display: block; width: 305px; max-width: 100%; border: 1px solid transparent; border-radius: 4px; padding: 2px 0 4px; margin: 0; background: transparent; color: #3b4938; font: 700 24px/1.5 var(--font-ja); letter-spacing: -.9px; text-overflow: ellipsis; }
.board-title:focus { border-color: #dce5d5; padding-left: 5px; background: #f9fbf6; box-shadow: 0 0 0 2px #edf3e7; }
.board-title:disabled { opacity: 1; color: #3b4938; }
.visibility-badge { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #e9ece4; border-radius: 4px; background: #f7f9f4; color: var(--hint); padding: 3px 6px; font-size: 10px; flex: 0 0 auto; white-space: nowrap; }
.visibility-badge .icon { width: 9px; height: 9px; }
.board-description { color: var(--hint); font-size: 10px; font-weight: 450; letter-spacing: .6px; margin: 5px 0 0; }
.board-actions { display: flex; gap: 9px; align-items: center; flex: 0 0 auto; }
.board-actions .button { height: 37px; padding: 0 14px; font-size: 10px; }
.board-actions .button .icon { width: 15px; height: 15px; }
.board-menu-button { margin-left: 3px; width: 27px; color: #a3aB98; }
.canvas-section { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--canvas-bg); }
.canvas-viewport { position: absolute; inset: 0; overflow: hidden; outline: 0; background-color: var(--canvas-bg); background-image: radial-gradient(circle, #d2d9c8 .7px, transparent .85px); background-size: 22px 22px; touch-action: none; }
.canvas-viewport:focus-visible:not([data-pointer]) { outline: 2px solid #65856a; outline-offset: -2px; }
.canvas-viewport[data-tool="pen"] { cursor: crosshair; }
.canvas-viewport[data-tool="note"], .canvas-viewport[data-tool="text"] { cursor: crosshair; }
.canvas-viewport[data-tool="hand"] { cursor: grab; }
.canvas-viewport.panning { cursor: grabbing; }
.canvas-viewport[data-background="plain"] { background-image: none; }
.canvas-viewport[data-background="grid"] { background-image: linear-gradient(#dfe6d7 1px, transparent 1px), linear-gradient(90deg, #dfe6d7 1px, transparent 1px); }
.board-world { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; }
.drawing-layer { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 2; }
.drawing-layer path { stroke-linecap: round; stroke-linejoin: round; }
.elements-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.canvas-topline { position: absolute; top: 22px; left: 30px; right: 30px; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; z-index: 5; }
.board-meta { color: var(--hint); font-size: 8px; letter-spacing: .5px; }
.canvas-signature { position: absolute; bottom: 28px; right: 27px; display: flex; align-items: center; gap: 8px; color: #aab49e; font-size: 9px; font-weight: 450; letter-spacing: .25px; pointer-events: none; }
.canvas-signature .icon { width: 15px; height: 15px; color: #9db38e; }
.tool-palette { position: absolute; top: 50%; left: 21px; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 5px; width: 49px; padding: 8px 6px; background: #fff; border: 1px solid #e2e8da; border-radius: 11px; box-shadow: 0 5px 14px rgb(66 80 55 / 5%); z-index: 10; }
.tool-button { border: 0; background: transparent; color: #91a180; width: 35px; height: 35px; border-radius: 7px; display: grid; place-items: center; position: relative; padding: 0; }
.tool-button > .icon { width: 20px; height: 20px; }
.tool-button.active { background: #e7eee0; color: #638452; }
.tool-button:hover { background: #f0f4e9; color: #597549; }
.tool-button.active:hover { background: #e3ecda; }
.tool-separator { width: 21px; height: 1px; background: #edf0e7; margin: 3px 0; }
.canvas-tip { position: absolute; bottom: 22px; left: 23px; display: flex; align-items: center; gap: 7px; height: 33px; color: var(--hint); font-size: 8px; padding: 0 11px; border: 1px solid #e5eadf; background: rgb(255 255 255 / 90%); border-radius: 7px; z-index: 10; pointer-events: none; }
.canvas-tip .icon { width: 13px; height: 13px; color: #a0ae91; }
.canvas-controls { position: absolute; left: 50%; transform: translateX(-50%); bottom: 21px; display: flex; align-items: center; gap: 3px; padding: 5px 6px; border: 1px solid #dfe7d6; border-radius: 9px; background: #fff; box-shadow: 0 4px 10px rgb(43 69 31 / 5%); z-index: 10; }
.canvas-controls .icon-button { width: 28px; height: 27px; border-radius: 5px; color: #91a17f; }
.canvas-controls .icon-button .icon { width: 14px; height: 14px; }
.history-controls { display: flex; align-items: center; gap: 1px; }
.control-divider { width: 1px; height: 16px; background: #e8edde; margin: 0 4px; }
.zoom-value { border: 0; height: 26px; min-width: 45px; color: #829575; background: transparent; font-size: 9px; font-weight: 650; padding: 0 3px; border-radius: 5px; }
.zoom-value:hover { background: #f0f4e9; }
.tool-options { position: absolute; left: 81px; top: 50%; transform: translateY(-50%); width: auto; min-width: 148px; max-width: 220px; background: #fff; border: 1px solid #dfe7d7; border-radius: 9px; padding: 13px; box-shadow: var(--shadow); z-index: 15; }
.tool-options label { display: block; color: #819474; font-size: 10px; margin-bottom: 8px; }
.tool-options input[type="range"] { width: 100%; accent-color: #68885c; }
.tool-options .color-palette { gap: 6px; max-width: 172px; }
.tool-options .color-swatch { width: 22px; height: 22px; }
.selection-toolbar { position: absolute; left: 50%; bottom: 73px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 7px 8px; border: 1px solid #dce6d3; border-radius: 8px; background: white; box-shadow: var(--shadow); z-index: 18; max-width: calc(100% - 22px); }
.selection-toolbar .color-palette { display: flex; flex-wrap: nowrap; }
.selection-toolbar .color-swatch { width: 20px; height: 20px; }
.selection-toolbar .icon-button { width: 25px; height: 25px; }
.selection-toolbar button { white-space: nowrap; }
.selection-toolbar > button { display: grid; place-items: center; width: 25px; height: 26px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #8aa078; }
.selection-toolbar > button:hover { background: #eef4e6; color: #5f7c4e; }
.selection-toolbar > button svg { height: 15px; width: 15px; }
.selection-label { display: block; font-size: 9px; color: #8cA07b; margin-bottom: 8px; white-space: nowrap; }
.selection-toolbar .selection-label { margin: 0 5px 0 0; }
.toolbar-divider { width: 1px; height: 18px; background: #e6edde; margin: 0 3px; }
.text-size-select { font-size: 10px; background: #f7faf2; border: 1px solid #e3ead9; color: #81956e; border-radius: 4px; height: 25px; padding: 0 4px; }
.pen-width-label { display: flex !important; align-items: center; gap: 8px; margin: 13px 0 0 !important; }
.board-options { position: absolute; right: 23px; top: 8px; width: 210px; background: #fff; border: 1px solid #dde5d5; border-radius: 9px; box-shadow: 0 7px 26px rgb(48 67 34 / 10%); padding: 6px; z-index: 25; }
.board-options button { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; padding: 10px 11px; background: transparent; color: #738565; font-size: 11px; text-align: left; border-radius: 5px; }
.board-options button:hover { background: #f0f5e9; }
.board-options button.danger { color: #b76e62; }
.board-options hr { margin: 4px 8px; border: 0; height: 1px; background: #ecf0e6; }

/* Notes are deliberately tactile, without looking heavy. */
.board-element { position: absolute; pointer-events: auto; transform-origin: center center; user-select: none; }
.board-element.note { width: 238px; min-height: 100px; border-radius: 2px; background: #f8edb9; color: #5a573e; box-shadow: 0 7px 13px -7px rgb(82 79 44 / 22%), 0 2px 3px rgb(64 64 38 / 5%); display: flex; flex-direction: column; border: 1px solid rgb(100 103 74 / 3%); }
.board-element.note::after { content: ""; position: absolute; inset: auto 9px -3px; height: 5px; z-index: -1; background: rgb(60 62 43 / 5%); filter: blur(4px); border-radius: 50%; }
.board-element.note.selected, .board-element.selected { outline: 1.5px solid #79a16b; outline-offset: 5px; }
.board-element.dragging { cursor: grabbing; z-index: 999 !important; box-shadow: 0 14px 30px -8px rgb(60 71 43 / 20%); }
.element-drag-handle { display: flex; align-items: center; justify-content: space-between; cursor: grab; height: 37px; padding: 10px 17px 4px; opacity: .6; color: inherit; flex: 0 0 auto; }
.element-drag-handle:active { cursor: grabbing; }
.element-drag-handle svg { width: 14px; height: 14px; }
.note-menu { display: grid; place-items: center; width: 22px; height: 20px; border: 0; border-radius: 4px; background: transparent; color: inherit; opacity: .5; padding: 0; }
.note-menu:hover { background: rgb(100 100 55 / 9%); opacity: 1; }
.note-menu svg { width: 14px; height: 14px; }
.note-content { display: block; padding: 0 20px 9px; flex: 1; min-height: 0; overflow-wrap: anywhere; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; font: 450 15px/1.8 var(--font-ja); letter-spacing: .1px; background: transparent; color: inherit; border: 0; outline: 0; resize: none; width: 100%; white-space: pre-wrap; cursor: text; user-select: text; }
.note-content:focus-visible { box-shadow: none; }
.note-content:empty::before { content: attr(data-placeholder); color: currentColor; opacity: .35; pointer-events: none; }
.note-content strong, .note-content b { font-weight: 650; }
.note-content h3, .note-content h4 { margin: 0 0 11px; font-size: 15px; line-height: 1.7; font-weight: 650; }
.note-content p { margin: 0 0 9px; }
.note-content ul { padding-left: 19px; margin: 8px 0; }
.note-content li { margin: 3px 0; }
.note-footer { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 31px; padding: 0 20px 15px; font: 450 9px/1.5 var(--font); opacity: .45; color: inherit; user-select: none; flex: 0 0 auto; }
.note-tag { font-size: 8px; border: 1px solid rgb(77 82 41 / 18%); border-radius: 3px; padding: 1px 5px; }
.note-footer .icon { width: 11px; height: 11px; }
.note-corner { font-size: 15px; opacity: .6; }
.board-element.text { display: block; min-width: 50px; min-height: 32px; color: #5e7350; background: transparent; box-shadow: none; padding: 5px 7px; font: 600 25px/1.6 var(--font-ja); letter-spacing: -.25px; white-space: normal; overflow-wrap: anywhere; }
.board-element.text .text-content { white-space: pre-wrap; outline: 0; cursor: text; user-select: text; font: inherit; padding: 0; min-height: 1.6em; }
.board-element.text .element-drag-handle { height: 18px; padding: 0; position: absolute; top: -19px; left: 0; right: 0; opacity: 0; }
.board-element.text:hover .element-drag-handle, .board-element.text.selected .element-drag-handle { opacity: .7; }
.board-element.text .note-footer { display: none; }
.board-element.text.section-label { letter-spacing: 1.8px; font-weight: 550; padding-left: 1px; }
.board-element.text.section-label::after { content: ""; display: block; width: 35px; margin-top: 7px; height: 1px; background: currentColor; opacity: .28; }
.board-element.text.handwritten { font-weight: 450; letter-spacing: 1.1px; transform-origin: left center; }
.resize-handle { position: absolute; bottom: -7px; right: -7px; width: 10px; height: 10px; border: 1.5px solid #729665; background: #fff; border-radius: 2px; cursor: nwse-resize; z-index: 5; }
.canvas-empty { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; width: 90%; max-width: 410px; padding-bottom: 40px; }
.empty-board-illustration { display: inline-grid; place-items: center; width: 72px; height: 72px; border: 1px solid #dce6d1; background: #e8f0df; border-radius: 18px; color: #86a474; transform: rotate(-5deg); margin-bottom: 19px; box-shadow: 0 6px 12px rgb(66 87 51 / 4%); }
.empty-board-illustration svg { width: 31px; height: 31px; }
.canvas-empty h2 { font: 600 20px/1.7 var(--font-ja); color: #607651; margin: 0 0 10px; }
.canvas-empty p { font-size: 11px; color: #9daa90; margin-bottom: 22px; line-height: 1.8; }

/* Small, clear dialogs for the practical bits. */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgb(31 46 32 / 30%); backdrop-filter: blur(5px); padding: 22px; animation: appear .16s ease-out; }
.modal { width: 460px; max-width: 100%; max-height: 100%; max-height: calc(100dvh - 44px); overflow: auto; border-radius: 15px; background: #fff; border: 1px solid rgb(255 255 255 / 80%); box-shadow: 0 20px 70px rgb(28 44 25 / 20%); }
.modal.wide { width: 570px; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 24px 26px 16px; }
.modal-header h2 { font-size: 19px; font-weight: 700; line-height: 1.5; letter-spacing: -.45px; margin: 0; color: #3e5738; }
.modal-header p { margin: 7px 0 0; font-size: 11px; line-height: 1.8; color: var(--hint); }
.modal-header .icon-button { margin: -3px -7px 0 0; }
.modal-body { padding: 7px 26px 24px; }
.modal-footer { padding: 17px 26px; display: flex; gap: 8px; align-items: center; justify-content: flex-end; border-top: 1px solid #eaf0e4; background: #f9fbf6; border-radius: 0 0 15px 15px; }
.modal-footer .button { min-width: 80px; }
.modal .brand { margin-bottom: 20px; font-size: 25px; }
.modal p { line-height: 1.85; }
.modal-intro { color: var(--hint); font-size: 11px; margin: 0 0 21px; }
.modal-body .modal-footer { margin: 23px -26px -24px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 17px; }
.input, .field input:not([type="checkbox"]):not([type="radio"]), .field textarea, .field select { width: 100%; border: 1px solid #dfe7d5; border-radius: 7px; background: #fbfcf9; min-height: 41px; padding: 10px 12px; font-size: 12px; color: #465f3a; }
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: #697661; }
.field textarea { min-height: 95px; line-height: 1.7; resize: vertical; }
.field small { color: var(--hint); font-size: 10px; line-height: 1.7; }
.auth-tabs { display: flex; gap: 0; border-bottom: 1px solid #e4ebdc; margin: 0 0 22px; }
.auth-tabs button { flex: 1; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; color: var(--hint); font-weight: 600; font-size: 12px; padding: 12px 8px; }
.auth-tabs button.active { color: var(--green); border-color: #75945f; }
.auth-tabs button:hover { color: #5f7e50; }
.full-width { width: 100%; }
.auth-footnote { text-align: center; font-size: 9px; color: var(--hint); margin: 16px 0 0; }
.auth-link { border: 0; padding: 6px 0; color: var(--green); background: transparent; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.auth-recovery { margin: 0 0 14px; text-align: right; }
.form-success { color: var(--green-dark); background: #edf4e8; border: 1px solid #d8e6cf; border-radius: 7px; padding: 12px; font-size: 12px; line-height: 1.8; }
.form-success:empty { display: none; }
.form-error { color: var(--danger-text); background: #fff5f0; border: 1px solid #f2ddd2; border-radius: 7px; padding: 10px 12px; font-size: 11px; margin-bottom: 14px; line-height: 1.7; }
.form-error:empty { display: none; }
.import-board-list { border: 1px solid #e3ead9; border-radius: 8px; }
.import-board { padding: 12px; display: flex; gap: 10px; align-items: center; color: #829572; font-size: 11px; border-bottom: 1px solid #e9eee1; cursor: pointer; }
.import-board:last-child { border: 0; }
.import-board input { accent-color: #7e9e6a; }
.import-board span { display: flex; gap: 8px; align-items: center; }
.import-board svg { height: 16px; width: 16px; }
.account-profile { display: flex; align-items: center; gap: 14px; margin: 5px 0 23px; }
.profile-avatar { display: grid; place-items: center; height: 48px; width: 48px; border-radius: 50%; background: #e9f1e0; color: #839e6e; border: 1px solid #dce8cf; font-weight: 600; font-size: 17px; }
.account-profile strong { color: #6a8557; font-size: 14px; }
.account-profile p { font-size: 11px; color: #a1ae94; margin: 4px 0 0; }
.share-guest-icon { display: grid; place-items: center; height: 64px; width: 64px; margin: 3px 0 21px; border-radius: 17px; background: #edf4e5; color: #94ac7f; }
.settings-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; }
.settings-row + .settings-row { border-top: 1px solid #edf1e6; }
.settings-row > div { flex: 1; }
.settings-row strong { display: block; font-size: 12px; color: #657b55; font-weight: 600; }
.settings-row p { font-size: 10px; color: #9fac92; margin: 5px 0 0; line-height: 1.6; }
.share-visibility { display: flex; gap: 9px; margin-bottom: 21px; }
.radio-card { position: relative; display: flex; align-items: center; padding: 13px; gap: 10px; flex: 1; border: 1px solid #e0e7d7; background: #fbfcf9; border-radius: 8px; cursor: pointer; }
.radio-card.active, .radio-card:has(input:checked) { border-color: #93af7f; background: #f0f6e9; }
.radio-card input { accent-color: #789862; }
.radio-card strong { font-size: 11px; color: #637e51; }
.radio-card small { display: block; font-size: 9px; color: #a3af96; margin-top: 5px; line-height: 1.6; }
.share-section-title { font-size: 11px; color: #7c916b; font-weight: 650; margin: 23px 0 12px; }
.share-hint { font-size: 10px; line-height: 1.8; color: var(--hint); margin: 10px 0; }
.copy-link { display: flex; gap: 8px; align-items: center; }
.copy-link input { min-width: 0; font-size: 10px !important; flex: 1; }
.copy-link button { height: 41px; flex: 0 0 auto; }
.invite-form { display: flex; align-items: center; gap: 7px; }
.invite-form input { flex: 1; min-width: 0; font-size: 11px; }
.invite-form select { flex: 0 0 128px; font-size: 10px; }
.invite-form .button { height: 41px; padding: 0 12px; }
.member-list { margin-top: 15px; border: 1px solid #e6ecdf; border-radius: 8px; overflow: hidden; }
.member-row { display: flex; align-items: center; gap: 10px; padding: 12px; border-bottom: 1px solid #e9eee3; }
.member-row:last-child { border-bottom: 0; }
.member-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #edf3e5; color: #789465; font-weight: 650; font-size: 10px; flex: 0 0 auto; }
.member-info { flex: 1; min-width: 0; }
.member-info strong { display: block; font-size: 11px; color: #697f59; font-weight: 550; }
.member-info span { display: block; margin-top: 3px; font-size: 9px; color: #a1ad95; overflow: hidden; text-overflow: ellipsis; }
.member-info small { display: block; margin-top: 3px; font-size: 9px; color: #a1ad95; overflow: hidden; text-overflow: ellipsis; }
.member-row > span { font-size: 10px; color: #99a88a; }
.role-select { border: 1px solid #dfe8d4; background: #fbfcf8; padding: 6px 7px; color: #7c926a; border-radius: 5px; font-size: 10px; max-width: 135px; }
.member-row .icon-button { height: 26px; width: 26px; }
.member-row .icon-button .icon { width: 14px; height: 14px; }
.color-palette { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.color-swatch { position: relative; border: 1px solid rgb(72 89 45 / 12%); width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; padding: 0; flex: 0 0 auto; }
.color-swatch { background: var(--swatch, #eef3e8); }
.color-swatch:hover { box-shadow: 0 0 0 2px white, 0 0 0 3px #a1b391; }
.color-swatch.active, .color-swatch.selected, .color-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px white, 0 0 0 3px #86a072; }
.color-swatch.active::after, .color-swatch.selected::after { content: "✓"; font-size: 13px; color: #5c7849; }
.color-swatch[data-color="#355a46"]::after { color: white; }
.empty-state { text-align: center; padding: 24px 12px; color: #a0ae94; font-size: 11px; line-height: 1.8; }
.conflict-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 19px; }
.background-options { display: flex; gap: 12px; margin: 4px 0 25px; }
.background-option { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 1; border: 1px solid #e1e9d7; border-radius: 7px; padding: 10px; background: #fcfdf9; color: #90a37e; font-size: 11px; }
.background-option.active { border-color: #97b481; background: #f2f7ec; color: #78985f; }
.background-preview { display: block; width: 100%; height: 68px; border-radius: 3px; border: 1px solid #e4ebdc; background-color: #f4f7ee; }
.background-preview.dots { background-image: radial-gradient(circle, #c9d5bc .7px, transparent .9px); background-size: 10px 10px; }
.background-preview.grid { background-image: linear-gradient(#dde6d3 1px, transparent 1px), linear-gradient(90deg, #dde6d3 1px, transparent 1px); background-size: 12px 12px; }
.toast-container { position: fixed; bottom: 75px; left: calc(50% + 126px); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; z-index: 200; pointer-events: none; max-width: calc(100% - 36px); }
.toast { display: flex; align-items: center; gap: 8px; padding: 12px 17px; background: #fff; border: 1px solid #dfe8d4; box-shadow: 0 5px 22px rgb(45 69 29 / 10%); color: var(--hint); border-radius: 9px; font-size: 11px; line-height: 1.6; animation: toast-in .2s ease-out; pointer-events: auto; }
.toast.error { color: var(--danger-text); border-color: #efdacf; }
.toast.success { color: #527a3e; }
.toast .icon { width: 15px; height: 15px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1600px) {
    .sidebar { width: 268px; flex-basis: 268px; padding-left: 25px; padding-right: 25px; }
    .workspace-header { padding-left: 42px; padding-right: 42px; }
    .toast-container { left: calc(50% + 134px); }
}
@media (max-width: 1180px) {
    .sidebar { width: 228px; flex-basis: 228px; padding-left: 16px; padding-right: 16px; }
    .brand { font-size: 20px; gap: 7px; }
    .workspace-header { padding-left: 27px; padding-right: 27px; }
    .board-title { width: 273px; font-size: 22px; }
    .board-actions { gap: 6px; }
    .board-actions .button { padding-left: 11px; padding-right: 11px; }
    .canvas-tip { font-size: 7px; padding-left: 8px; padding-right: 8px; }
    .canvas-signature { display: none; }
    .toast-container { left: calc(50% + 114px); }
}
@media (max-width: 1020px) {
    .visibility-badge { display: none; }
    .canvas-tip { bottom: 69px; }
    .board-description { font-size: 9px; letter-spacing: .2px; }
    .workspace-header { padding-left: 23px; padding-right: 23px; }
    .board-title { width: 250px; font-size: 20px; }
}
@media (max-width: 800px) {
    .app-shell { min-height: 400px; }
    .sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: 268px; padding: 28px 22px 0; transform: translateX(-100%); transition: transform .2s ease; z-index: 90; }
    .sidebar.open { transform: translateX(0); box-shadow: 15px 0 50px rgb(37 62 26 / 15%); }
    .sidebar-overlay { position: fixed; inset: 0; background: rgb(31 51 25 / 25%); backdrop-filter: blur(2px); z-index: 80; }
    .workspace-header { flex-basis: 144px; padding: 15px 22px 20px; }
    .header-top-row { margin-bottom: 18px; }
    .breadcrumb { gap: 8px; }
    .header-top-right { gap: 10px; }
    .board-title { width: 270px; font-size: 21px; }
    .board-actions .button { padding: 0 11px; height: 34px; }
    .board-actions .button span { font-size: 9px; }
    .canvas-topline { left: 21px; right: 21px; top: 18px; }
    .tool-palette { left: 14px; width: 45px; padding: 6px 4px; }
    .tool-options { left: 67px; }
    .tool-button { width: 34px; height: 34px; }
    .canvas-controls { bottom: 17px; }
    .canvas-tip { bottom: 70px; left: 15px; }
    .toast-container { left: 50%; }
}
@media (max-width: 560px) {
    .workspace-header { flex-basis: 157px; padding: 11px 17px 15px; }
    .header-top-row { margin-bottom: 13px; }
    .breadcrumb { font-size: 8px; }
    .header-top-right { gap: 7px; }
    .save-status { display: block; max-width: 42vw; overflow: hidden; text-overflow: ellipsis; font-size: 8px; }
    .save-status::before { display: inline-block; margin-right: 4px; vertical-align: -1px; }
    .guest-badge { font-size: 7px; }
    .board-header-row { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
    .board-heading { flex-basis: 100%; }
    .board-title { width: 100%; font-size: 20px; padding: 0; height: 32px; }
    .board-description { margin-top: 3px; font-size: 9px; }
    .board-actions { width: 100%; justify-content: flex-end; }
    .board-actions .button { height: 28px; padding: 0 10px; font-size: 9px; }
    .board-actions .button .icon { width: 13px; height: 13px; }
    .board-menu-button { width: 23px; height: 28px; }
    .board-meta { display: none; }
    .canvas-topline { top: 16px; left: 16px; }
    .tool-palette { top: 48%; width: 42px; left: 10px; gap: 3px; border-radius: 9px; }
    .tool-button { width: 32px; height: 32px; }
    .tool-button > .icon { width: 18px; height: 18px; }
    .tool-options { left: 61px; top: 48%; padding: 11px; }
    .canvas-tip { display: none; }
    .canvas-controls { bottom: 16px; }
    .modal-backdrop { padding: 14px; }
    .modal { max-height: calc(100dvh - 28px); border-radius: 12px; }
    .modal-header { padding: 20px 20px 12px; }
    .modal-header h2 { font-size: 17px; }
    .modal-body { padding: 6px 20px 20px; }
    .modal-footer { padding: 15px 20px; }
    .modal-body .modal-footer { margin: 23px -20px -20px; }
    .share-visibility { flex-direction: column; }
    .invite-form { flex-wrap: wrap; }
    .invite-form input { flex-basis: 100%; }
    .invite-form select { flex: 1; max-width: none; }
    .member-row { flex-wrap: wrap; gap: 7px; padding: 10px; }
    .member-row .role-select { margin-left: 37px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Two ways to work with the same ideas. */
.canvas-topline { top: 18px; z-index: 20; }
.view-switch { display: flex; gap: 2px; padding: 3px; background: #fff; border: 1px solid #e1e7db; border-radius: 8px; box-shadow: 0 2px 6px rgb(50 73 43 / 3%); pointer-events: auto; flex: 0 0 auto; }
.view-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 11px; border: 0; border-radius: 5px; background: transparent; color: #8a9582; font-size: 10px; white-space: nowrap; }
.view-switch button { pointer-events: auto; }
.view-switch button:hover { background: #f3f6ef; }
.view-switch button.active { background: #eaf0e5; color: #47613e; font-weight: 700; }
.view-switch .icon { width: 14px; height: 14px; }
.canvas-session-meta { display: flex; gap: 13px; align-items: center; justify-content: flex-end; min-width: 0; }
.sync-status { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; color: var(--hint); white-space: nowrap; }
.sync-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #87a477; flex: 0 0 auto; }
.sync-status[data-status="offline"], .sync-status[data-status="error"] { color: var(--danger-text); }
.sync-status[data-status="offline"]::before, .sync-status[data-status="error"]::before { background: #bd9574; }
.sync-status[data-status="syncing"]::before { animation: sync-pulse 1.2s ease infinite; }
.board-presence { display: flex; gap: 3px; color: #93a187; font-size: 9px; }
@keyframes sync-pulse { 50% { opacity: .35; } }
.canvas-section[data-mode="list"] .canvas-viewport { visibility: hidden; pointer-events: none; }
.canvas-section[data-mode="list"] > .tool-palette,
.canvas-section[data-mode="list"] > .tool-options,
.canvas-section[data-mode="list"] > .selection-toolbar,
.canvas-section[data-mode="list"] > .canvas-tip,
.canvas-section[data-mode="list"] > .canvas-controls,
.canvas-section[data-mode="list"] > .canvas-signature { display: none !important; }
.memo-list-workspace { position: absolute; inset: 66px 30px 25px; display: flex; overflow: hidden; background: white; border: 1px solid #e3e8dc; border-radius: 12px; box-shadow: 0 5px 20px rgb(46 69 34 / 3%); }
.memo-list-panel { display: flex; flex-direction: column; flex: 0 0 286px; min-width: 0; background: #fcfdf9; border-right: 1px solid #e8ecdf; }
.memo-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 22px 19px 15px; }
.memo-list-heading h2 { margin: 0 0 6px; color: #41503b; font-size: 14px; font-weight: 700; letter-spacing: .1px; }
.memo-list-heading > div > span { color: #98a18c; font-size: 9px; }
.memo-list-heading .icon-button { width: 29px; height: 29px; color: #779068; background: #edf3e6; border: 1px solid #e1e9d9; border-radius: 7px; }
.memo-list-search { display: flex; align-items: center; gap: 8px; margin: 0 17px 14px; padding: 0 10px; height: 34px; border: 1px solid #e3e8dc; border-radius: 7px; background: white; color: #9ba790; }
.memo-list-search .icon { width: 14px; height: 14px; }
.memo-list-search input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 6px 0; background: transparent; color: #516148; font-size: 10px; }
.memo-list-search input::placeholder { color: #a7b09c; }
.memo-list-search:focus-within { border-color: #65856a; box-shadow: 0 0 0 1px #65856a; }
.memo-list-sort { display: flex; align-items: center; gap: 10px; margin: 0 17px 14px; color: #7d8d72; font-size: 10px; }
.memo-list-sort label { flex-shrink: 0; }
.memo-list-sort select { flex: 1; min-width: 0; height: 32px; padding: 0 9px; border: 1px solid #e3e8dc; border-radius: 7px; background: white; color: #516148; font: inherit; }
.memo-list-sort select:focus-visible { outline: 2px solid #65856a; outline-offset: 2px; }
.memo-list-items { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 0 8px 12px; }
.memo-list-item { display: flex; align-items: flex-start; width: 100%; gap: 12px; padding: 16px 12px; margin-bottom: 3px; border: 1px solid transparent; border-radius: 8px; background: transparent; text-align: left; }
.memo-list-item:hover { background: #f1f5ec; }
.memo-list-item.active { background: #edf3e6; border-color: #dde8d3; }
.memo-list-color { display: grid; place-items: center; flex: 0 0 10px; width: 10px; height: 10px; margin-top: 6px; border-radius: 3px; border: 1px solid rgb(98 113 75 / 8%); background: var(--memo-color); }
.memo-list-color.text-mark { font: 600 8px/1 var(--font); color: #889a77; border: 0; background: transparent; }
.memo-list-item-content { flex: 1; min-width: 0; }
.memo-list-preview { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: #4b5944; font-size: 11px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.memo-list-item-content small { display: block; color: #a2ad97; margin-top: 9px; font-size: 8px; }
.memo-list-item-content small > span { padding: 0 6px; }
.memo-list-no-results { padding: 28px 12px; color: #9ca68f; text-align: center; font-size: 10px; line-height: 2; }
.memo-editor { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; background: white; --memo-note-color: #fff0ae; }
.memo-editor-toolbar { display: flex; align-items: center; min-height: 63px; flex: 0 0 63px; padding: 0 24px; gap: 10px; border-bottom: 1px solid #eef0e9; }
.memo-editor-kind { display: inline-flex; align-items: center; gap: 7px; color: #899880; font-size: 9px; }
.memo-editor-kind::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--memo-note-color); border: 1px solid rgb(86 103 65 / 8%); }
.memo-editor-readonly { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; border: 1px solid #e4e9de; border-radius: 5px; color: #96a189; background: #f8faf5; font-size: 8px; }
.memo-editor-readonly .icon { width: 10px; height: 10px; }
.memo-editor-actions { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.memo-editor-actions .icon-button { width: 29px; height: 29px; color: #9ba88c; }
.memo-editor-actions .icon { width: 15px; height: 15px; }
.memo-editor-actions #memo-editor-delete:hover:not(:disabled) { background: #fbefeb; color: #bc8a76; }
.memo-editor-paper { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 33px 40px 18px; }
.memo-editor-body { flex: 1; width: 100%; min-height: 80px; margin: 0; padding: 0; border: 1px solid transparent; border-radius: 5px; resize: none; color: #68745e; background: transparent; font: 400 13px/2.15 var(--font-ja); letter-spacing: .1px; overscroll-behavior: contain; }
.memo-editor-body::placeholder { color: #b4bfaa; }
.memo-editor-body:focus-visible { outline: 0; box-shadow: none; border-color: transparent; }
.memo-editor-body[readonly] { cursor: text; }
.memo-editor-footer { flex: 0 0 54px; display: flex; align-items: center; gap: 15px; padding: 10px 28px; border-top: 1px solid #eef0e9; }
.memo-editor-footer .color-palette { display: flex; gap: 7px; }
.memo-editor-footer .color-swatch { width: 17px; height: 17px; }
.memo-editor-count { margin-left: auto; color: #a2ac98; font-size: 9px; }
.memo-editor-back { display: none; }
.memo-list-empty { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; }
.memo-list-empty-icon { display: grid; place-items: center; width: 60px; height: 60px; border: 1px solid #e2eadb; border-radius: 16px; background: #f1f6eb; color: #a0b68e; }
.memo-list-empty-icon .icon { width: 28px; height: 28px; }
.memo-list-empty h2 { color: #7c8e6d; margin: 19px 0 8px; font-size: 15px; font-weight: 550; }
.memo-list-empty p { color: #a4af98; margin: 0 0 20px; font-size: 10px; line-height: 2; }

/* Emoji keep their own familiar shapes and colors. */
.canvas-viewport[data-tool="sticker"] { cursor: crosshair; }
.board-element.sticker { display: flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; border-radius: 9px; background: transparent; box-shadow: none; cursor: grab; }
.board-element.sticker:active { cursor: grabbing; }
.board-element.sticker.selected { outline-offset: 4px; }
.sticker-content { display: block; pointer-events: none; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: inherit; line-height: 1; user-select: none; filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 3px 3px rgb(43 57 33 / 20%)); }
.board-element.sticker .element-drag-handle { position: absolute; top: -23px; left: 0; right: 0; height: 18px; padding: 0; color: #91a582; opacity: 0; }
.board-element.sticker:hover .element-drag-handle, .board-element.sticker.selected .element-drag-handle { opacity: .8; }
.tool-options.sticker-picker { width: 248px; max-width: 248px; padding: 15px; }
.sticker-picker-heading { display: flex; align-items: center; justify-content: space-between; color: #5c7350; font-size: 11px; font-weight: 650; }
.sticker-picker-heading > span { font-size: 25px; line-height: 1; cursor: grab; }
.sticker-picker-hint { margin: 9px 0 12px; color: #a0ac95; font-size: 8px; line-height: 1.8; }
.sticker-categories { display: flex; gap: 3px; margin-bottom: 9px; border-bottom: 1px solid #edf0e7; }
.sticker-categories button { flex: 1; padding: 7px 3px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #a0ad92; font-size: 9px; }
.sticker-categories button.active { color: #648152; border-bottom-color: #94b180; }
.sticker-emoji-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; }
.sticker-emoji-grid button { display: grid; place-items: center; height: 40px; padding: 0; border: 1px solid transparent; border-radius: 7px; background: #f8faf4; font: 25px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; cursor: grab; }
.sticker-picker [data-sticker-emoji].dragging { cursor: grabbing; opacity: .55; }
.sticker-emoji-grid button:hover { background: #eef4e6; }
.sticker-emoji-grid button.active { border-color: #a6bd94; background: #edf4e5; }
.tool-options .sticker-custom-form { margin-top: 13px; }
.tool-options .sticker-custom-form label { margin-bottom: 6px; color: #9aaa8c; font-size: 8px; }
.sticker-custom-form > div { display: flex; gap: 6px; }
.sticker-custom-form input { width: 100%; min-width: 0; height: 30px; padding: 4px 9px; border: 1px solid #e1e8d8; border-radius: 5px; background: #fff; color: #58714b; font-size: 15px; }
.sticker-custom-form button { flex: 0 0 auto; border: 1px solid #e1e8d8; border-radius: 5px; padding: 0 9px; background: #f4f8ee; color: #829570; font-size: 9px; }
.sticker-custom-error { display: block; margin-top: 5px; min-height: 0; color: var(--danger-text); font-size: 10px; line-height: 1.6; }
.sticker-custom-error:empty { display: none; }
#sticker-place-button { justify-content: center; height: 32px; width: 100%; margin-top: 12px; font-size: 9px; }
.sticker-selection-preview { font: 22px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; margin: 0 4px; }
.sticker-size-label { display: flex; align-items: center; gap: 6px; color: #94a186; font-size: 9px; white-space: nowrap; }
.sticker-size-select { padding: 3px 5px; border: 1px solid #e4eadd; border-radius: 4px; background: #f8faf4; color: #7a9168; font-size: 10px; }
.sticker-rotation-input { width: 66px; accent-color: #92af7c; }

@media (max-width: 1180px) {
    .memo-list-panel { flex-basis: 250px; }
    .memo-editor-paper { padding: 27px 30px 18px; }
    .canvas-session-meta { gap: 8px; }
}
@media (max-width: 800px) {
    .memo-list-workspace { inset: 64px 21px 20px; }
    .memo-list-panel { flex-basis: 240px; }
    .canvas-topline { top: 16px; }
    .memo-editor-toolbar { padding: 0 17px; }
    .memo-editor-paper { padding: 26px 25px 18px; }
    .board-presence { display: none; }
}
@media (max-width: 640px) {
    .memo-list-workspace { inset: 62px 15px 16px; }
    .memo-list-panel { flex-basis: 100%; border-right: 0; }
    .memo-list-workspace .memo-editor, .memo-list-workspace .memo-list-empty { display: none; }
    .memo-list-workspace.list-editing .memo-list-panel { display: none; }
    .memo-list-workspace.list-editing .memo-editor:not([hidden]) { display: flex; }
    .memo-list-workspace.list-editing .memo-list-empty:not([hidden]) { display: flex; }
    .memo-list-heading { padding: 19px 19px 13px; }
    .memo-list-item { padding: 16px 15px; }
    .memo-list-preview { font-size: 12px; }
    .memo-editor-back { display: inline-flex; width: 26px; height: 29px; margin-left: -5px; color: #8da07e; }
    .memo-editor-toolbar { min-height: 52px; flex-basis: 52px; gap: 7px; padding: 0 15px; }
    .memo-editor-paper { padding: 22px 23px 14px; }
    .memo-editor-body { font-size: 13px; }
    .memo-editor-footer { flex-basis: 47px; padding: 8px 20px; }
    .canvas-session-meta .board-meta { display: none; }
    .sync-status { max-width: 140px; overflow: hidden; text-overflow: ellipsis; font-size: 8px; }
}
@media (max-width: 560px) {
    .canvas-topline { left: 15px; right: 15px; top: 15px; gap: 9px; }
    .view-switch button { padding: 5px 8px; font-size: 9px; gap: 5px; }
    .view-switch .icon { width: 13px; height: 13px; }
    .tool-options.sticker-picker { width: 228px; max-width: calc(100vw - 82px); padding: 12px; }
    .sticker-emoji-grid button { height: 35px; font-size: 23px; }
    .sticker-picker-hint { margin-bottom: 9px; }
    .sticker-categories button { font-size: 8px; }
    .sticker-size-label { font-size: 0; gap: 0; }
    .sticker-rotation-input { width: 55px; }
}
@media (max-height: 650px) {
    .tool-options.sticker-picker { max-height: calc(100% - 104px); overflow-y: auto; }
}

.template-nav-link{text-decoration:none}.official-badge{display:inline-flex;align-items:center;border:1px solid #c9d8bc;border-radius:999px;padding:2px 7px;background:#edf4e6;color:#557044;font-size:10px;font-weight:650;white-space:nowrap}#duplicate-board{white-space:nowrap}
