/*! MorphonLink | Copyright (c) 2026 Zumasa. Original portions only: LICENSE.txt. Third-party materials: ASSET_LICENSES.md. */
.site-document .site-main:has(.drawing-board) { width: min(1120px, 100%); }
.drawing-board .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.drawing-board button, .drawing-board input, .drawing-board textarea { font: inherit; color: inherit; }
.drawing-board button { cursor: pointer; border: 1px solid #bdccce; border-radius: 4px; background: #fff; }
.drawing-board button:disabled { opacity: .4; cursor: default; }
.drawing-board button:focus-visible, .drawing-board a:focus-visible, .drawing-board input:focus-visible, .drawing-board textarea:focus-visible { outline: 2px solid #943e50; outline-offset: 2px; }
.board-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.drawing-board .board-page-heading h1 { margin: 0; }
.board-page-heading a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 7px 12px; border: 1px solid #bdccce; border-radius: 4px; text-decoration: none; white-space: nowrap; }
.board-page-heading a svg { width: 18px; height: 18px; flex-shrink: 0; }
.board-page-heading .board-create-link { color: #fff; background: #25666c; border-color: #25666c; }
.board-post-notice { padding: 9px 0; color: #25666c; }
.board-post-notice[hidden] { display: none; }
.board-workspace { display: grid; grid-template-columns: minmax(0, 620px) 232px; gap: 20px; align-items: start; }
.board-editor { min-width: 0; }
.board-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 0 0 8px; }
.board-tools button { display: grid; place-items: center; width: 36px; height: 36px; padding: 7px; }
.board-tools svg { width: 21px; height: 21px; }
.board-tools button[aria-pressed="true"] { background: #25666c; border-color: #25666c; color: #fff; }
.board-color { display: grid; place-items: center; width: 36px; height: 36px; }
.board-color input { width: 32px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.board-size { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 0 5px; white-space: nowrap; }
.board-size input { width: 80px; min-width: 0; accent-color: #25666c; }
.board-size output { flex-shrink: 0; width: 2ch; text-align: right; font-variant-numeric: tabular-nums; }
.board-brush-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; padding-bottom: 8px; }
.board-brush-range { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; white-space: nowrap; }
.board-brush-range input { flex: 1; width: 40px; min-width: 0; accent-color: #25666c; }
.board-brush-range output { flex: 0 0 4ch; text-align: right; font-variant-numeric: tabular-nums; }
.board-view-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding-bottom: 8px; }
.board-view-tools > div { display: flex; align-items: center; gap: 3px; }
.board-view-tools button { display: grid; place-items: center; width: 32px; height: 32px; padding: 6px; }
.board-view-tools svg { width: 19px; height: 19px; }
.board-view-tools output { width: 5ch; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.board-viewport { position: relative; width: min(100%, 620px); aspect-ratio: 1; overflow: hidden; border: 1px solid #bdccce; background: #e8eded; touch-action: none; user-select: none; -webkit-user-select: none; }
.board-paper { position: absolute; inset: 0; background: #fff; transform-origin: center; }
.board-viewport[data-navigation="ready"], .board-viewport[data-navigation="ready"] canvas { cursor: grab; }
.board-viewport[data-navigation="active"], .board-viewport[data-navigation="active"] canvas { cursor: grabbing; }
.board-paper canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
[data-board-selection] { position: absolute; inset: 0; pointer-events: none; }
.board-brush-cursor { position: absolute; pointer-events: none; transform: translate(-50%, -50%); aspect-ratio: 1; min-width: 1px; border: 1px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #273133; }
.board-brush-cursor > span { position: absolute; inset: var(--brush-feather, 0%); border: 1px dashed #273133; border-radius: 50%; box-shadow: 0 0 0 1px #ffffffb3; }
.board-brush-cursor[hidden], .board-brush-cursor > span[hidden] { display: none; }
.board-sidebar { display: grid; align-content: start; gap: 14px; min-width: 0; }
.board-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.drawing-board .board-panel-heading h2 { margin: 0; font-size: 14px; }
.board-panel-heading > span { font-size: 12px; color: #586668; }
.board-mini-tools { display: flex; gap: 3px; }
.board-mini-tools button { display: grid; place-items: center; width: 30px; height: 30px; padding: 5px; }
.board-mini-tools svg, .board-layer-eye svg { width: 19px; height: 19px; }
.board-palette { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; margin-top: 7px; }
.drawing-board .board-palette button { width: 100%; height: 25px; min-width: 0; padding: 0; border: 1px solid #aab9bc; border-radius: 3px; }
.drawing-board .board-palette button[aria-pressed="true"] { outline: 2px solid #273133; outline-offset: 1px; box-shadow: inset 0 0 0 2px #fff; }
.board-layers { border-top: 1px solid #dce3e3; padding-top: 10px; }
.board-layers > .board-mini-tools { margin: 7px 0; }
.board-layer-list { max-height: 288px; overflow-y: auto; }
.board-layer-row { display: flex; gap: 3px; margin-bottom: 3px; }
.board-layer-eye { display: grid; place-items: center; flex: 0 0 30px; padding: 4px; }
.board-layer-select { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; padding: 3px 5px; text-align: left; }
.board-layer-select span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.board-layer-select canvas { flex: 0 0 32px; width: 32px; height: 32px; background: repeating-conic-gradient(#edf1f2 0% 25%, #fff 0% 50%) 0 / 8px 8px; }
.drawing-board .board-layer-select[aria-pressed="true"] { background: #e7f1f2; border-color: #25666c; }
.board-layer-row[data-visible="false"] .board-layer-select { opacity: .55; }
.board-layer-name { display: block; margin-top: 6px; }
.board-layer-name input { width: 100%; padding: 5px 7px; border: 1px solid #bdccce; border-radius: 4px; font-size: 12px; }
.board-opacity { display: flex; align-items: center; gap: 6px; margin-top: 6px; white-space: nowrap; font-size: 12px; }
.board-opacity input { flex: 1; width: 50px; min-width: 0; accent-color: #25666c; }
.board-opacity output { flex: 0 0 4ch; text-align: right; }
.board-status-line { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: #586668; }
.drawing-board .board-status-line p { margin: 6px 0 0; min-height: 20px; font-size: 12px; }
.board-status-line > span { flex-shrink: 0; padding-top: 6px; }
.board-sidebar .board-post-form { padding-top: 12px; border-top: 1px solid #dce3e3; }
.drawing-board .board-draft-status, .drawing-board .board-connection { min-height: 20px; margin: 6px 0 0; font-size: 12px; color: #586668; }
.board-post-form { display: grid; gap: 10px; padding-top: 44px; }
.board-post-form > label { display: grid; gap: 4px; font-size: 13px; }
.board-post-form input:not([type="checkbox"]), .board-post-form textarea { min-width: 0; width: 100%; padding: 7px 8px; border: 1px solid #bdccce; border-radius: 4px; background: #fff; }
.board-post-form textarea { resize: vertical; }
.board-post-form label.board-agreement { display: flex; align-items: flex-start; gap: 5px; font-size: 12px; }
.board-agreement input { margin-top: 3px; }
.drawing-board .board-primary { min-height: 40px; border-color: #25666c; background: #25666c; color: #fff; }
.board-feed-heading { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #dce3e3; margin-top: 20px; padding-top: 14px; }
.drawing-board .board-feed-heading h2 { margin: 0; }
.board-feed-heading button, [data-board-more] { min-height: 36px; padding: 5px 12px; }
.board-feed { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.board-feed > p { grid-column: 1 / -1; color: #586668; font-size: 13px; }
.drawing-board .board-artwork { min-width: 0; padding: 0; overflow: hidden; text-align: left; border: 1px solid #bdccce; border-radius: 4px; text-decoration: none; color: inherit; overflow-wrap: anywhere; }
.board-artwork img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.board-artwork span, .board-artwork small { display: block; padding: 4px 8px; }
.board-artwork small { color: #586668; }
.board-feed-item { min-width: 0; }
.board-feed-item > .board-artwork { display: block; }
.board-feed-item[data-comments-open] { grid-column: 1 / -1; }
.board-feed-item[data-comments-open] > .board-artwork { width: min(100%, 260px); }
.board-comments { margin-top: 8px; }
.board-comments-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 10px; font-size: 13px; }
.board-comments-toggle svg { width: 18px; height: 18px; }
.board-comments-toggle[aria-expanded="true"] { border-color: #25666c; color: #25666c; }
.board-comments-panel { padding: 12px 0 8px; border-bottom: 1px solid #dce3e3; }
.board-comments-panel[hidden] { display: none; }
.drawing-board .board-comment-list { margin: 0; padding: 0; list-style: none; }
.board-comment { padding: 10px 0; border-bottom: 1px solid #edf1f1; }
.board-comment-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; overflow-wrap: anywhere; }
.board-comment-meta time { color: #586668; }
.drawing-board .board-comment p { margin: 5px 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.board-comment-reply { min-height: 36px; padding: 4px 10px; font-size: 12px; }
.board-comments-commands { display: flex; gap: 8px; margin: 8px 0; }
.board-comments-commands button { min-height: 36px; padding: 4px 12px; }
.board-comments-panel [data-comments-load-status], .board-comment-form [data-comment-status] { margin: 6px 0; font-size: 12px; color: #586668; }
.board-comments-panel [data-comments-load-status]:empty { display: none; }
.board-comment-form { display: grid; gap: 8px; max-width: 620px; margin-top: 12px; }
.board-comment-form label { display: grid; gap: 4px; font-size: 13px; }
.board-comment-form input, .board-comment-form textarea { width: 100%; min-width: 0; padding: 7px 8px; border: 1px solid #bdccce; border-radius: 4px; }
.board-comment-form input { max-width: 260px; }
.board-comment-form textarea { resize: vertical; }
.board-post-navigation { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.board-post-navigation a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; }
.board-post-navigation button { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; }
.board-post-navigation svg { width: 20px; height: 20px; }
.drawing-board .board-post-detail h1 { margin: 0 0 4px; overflow-wrap: anywhere; }
.board-post-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 12px; font-size: 13px; color: #586668; overflow-wrap: anywhere; }
.board-post-image { display: block; width: min(100%, 960px); height: auto; max-height: 80dvh; object-fit: contain; object-position: left center; }
.board-post-message { white-space: pre-wrap; overflow-wrap: anywhere; }
.drawing-board .board-share-status { margin: 8px 0; font-size: 13px; }
.board-share-url { width: 100%; min-width: 0; padding: 8px; border: 1px solid #bdccce; border-radius: 4px; }
.board-post-detail[hidden], .board-post-image[hidden], .board-post-message[hidden], .board-share-url[hidden] { display: none; }
.site-ad-slot[hidden] { display: none !important; }
@media (max-width: 700px) {
  .board-workspace { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .board-tools { gap: 4px; }
  .board-tools button, .board-color { width: 44px; height: 44px; }
  .board-view-tools button { width: 40px; height: 40px; }
  .board-comments button, .board-comment-form input { min-height: 44px; }
  .board-size { flex: 1; min-width: 155px; }
  .board-size input { flex: 1; width: 60px; }
  .board-brush-range { min-height: 40px; }
  .board-brush-range input { height: 36px; }
  .board-post-form { padding-top: 0; grid-template-columns: 1fr 1fr; }
  .board-post-form > :not(label:nth-child(1)):not(label:nth-child(2)) { grid-column: 1 / -1; }
  .board-post-form input:not([type="checkbox"]), .board-post-form button { min-height: 44px; }
  .board-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-mini-tools button { width: 40px; height: 40px; }
  .drawing-board .board-palette button { height: 38px; }
  .board-layer-eye { flex-basis: 40px; }
  .board-layer-select { min-height: 44px; }
  .board-layer-select span, .board-layer-name input { font-size: 14px; }
  .board-layer-name input { min-height: 40px; }
}
