/* Shared memo additions: readable notes, quiet controls. */
.shared-memo-detail-modal .shared-memo-additions { gap: 12px; padding-top: 20px; }
.shared-memo-detail-modal .shared-memo-additions-head h4 { font-size: 15px; font-weight: 750; letter-spacing: -.025em; color: #203047; }
.shared-memo-detail-modal .shared-memo-addition-list { gap: 10px; }
.shared-memo-detail-modal .shared-memo-addition-card {
  position: relative; min-width: 0; gap: 10px; padding: 14px 16px 12px;
  border: 1px solid #e0e7ee; border-left: 3px solid var(--addition-author, #8296af);
  border-radius: 10px; background: #fff; opacity: 1;
}
.shared-memo-detail-modal .shared-memo-addition-card.is-latest {
  background: linear-gradient(120deg, color-mix(in srgb, var(--addition-author, #4170a5) 6%, white), #fff 80%);
  box-shadow: 0 2px 7px #23374e06;
}
.shared-memo-detail-modal .shared-memo-addition-card > p {
  margin: 0; color: #202e40; font-size: 14px; font-weight: 500; line-height: 1.75;
  letter-spacing: -.01em; overflow-wrap: anywhere; white-space: pre-wrap;
}
.shared-memo-detail-modal .shared-memo-addition-meta { display: flex; align-items: center; flex-wrap: nowrap; gap: 7px; min-height: 28px; }
.shared-memo-detail-modal .shared-addition-kind-badge {
  width: auto; max-width: 132px; min-width: 0; height: 28px; margin: 0; padding: 3px 7px;
  border: 1px solid transparent; border-radius: 6px; background: #eef3f9; color: #354e70;
  font: inherit; font-size: 12px; font-weight: 650; line-height: 20px;
}
.shared-memo-detail-modal select.shared-addition-kind-badge { cursor: pointer; padding-right: 4px; }
.shared-memo-detail-modal select.shared-addition-kind-badge:hover { border-color: #c2cedc; }
.shared-memo-detail-modal [data-kind="decision"] .shared-addition-kind-badge { background: #fff2d8; color: #825906; }
.shared-memo-detail-modal [data-kind="supplement"] .shared-addition-kind-badge { background: #e8f5ef; color: #276750; }
.shared-memo-detail-modal [data-kind="followup"] .shared-addition-kind-badge { background: #f0eafa; color: #685089; }
.shared-memo-detail-modal .shared-addition-latest-label { color: #7b8ba0; font-size: 10px; font-weight: 500; }
.shared-memo-detail-modal .shared-addition-byline { display: flex; flex-wrap: wrap; gap: 4px 9px; align-items: center; color: #7d8a9c; line-height: 1.5; }
.shared-memo-detail-modal .shared-addition-byline strong { font-size: 11px; font-weight: 650; color: #536277; }
.shared-memo-detail-modal .shared-addition-byline time, .shared-memo-detail-modal .shared-addition-byline > span { font-size: 10px; }
.shared-memo-detail-modal .shared-addition-byline > span { margin-left: auto; color: #778798; }
.shared-memo-detail-modal .shared-addition-menu { position: relative; margin-left: auto; flex-shrink: 0; }
.shared-memo-detail-modal .shared-addition-menu > summary {
  display: grid; place-items: center; width: 30px; height: 28px; border-radius: 6px;
  color: #728197; font-size: 22px; line-height: 1; cursor: pointer; list-style: none;
}
.shared-addition-menu > summary::-webkit-details-marker { display: none; }
.shared-memo-detail-modal .shared-addition-menu[open] > summary, .shared-memo-detail-modal .shared-addition-menu > summary:hover { background: #edf2f7; color: #314863; }
.shared-memo-detail-modal .shared-addition-menu > .shared-memo-addition-actions {
  position: absolute; z-index: 5; top: 31px; right: 0; display: grid; gap: 2px;
  width: 166px; padding: 5px; margin: 0; border: 1px solid #dce4ec; border-radius: 9px;
  background: #fff; box-shadow: 0 8px 24px #243a5520;
}
.shared-memo-detail-modal .shared-addition-menu:not([open]) > .shared-memo-addition-actions { display: none; }
.shared-memo-detail-modal .shared-addition-actions button,
.shared-memo-detail-modal .shared-addition-menu .shared-memo-addition-actions button { min-height: 33px; padding: 7px 9px; text-align: left; font-size: 12px; font-weight: 500; border: 0; background: transparent; border-radius: 5px; }
.shared-memo-detail-modal .shared-addition-menu .shared-memo-addition-actions button:hover { background: #f0f4f8; }
.shared-memo-detail-modal .shared-memo-addition-composer { gap: 9px; padding: 12px; background: #fafbfd; }
.shared-memo-detail-modal .shared-memo-addition-composer textarea { min-height: 62px; font-size: 14px; color: #243348; }
.shared-memo-detail-modal .shared-memo-addition-composer select { width: 124px; }
.shared-forward-preview { max-height: 190px; overflow-y: auto; border: 1px solid #e0e7ef; border-radius: 8px; background: #fff; padding: 10px 12px; }
.shared-forward-preview p { margin: 0 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.7; color: #29394d; }
.shared-forward-preview p:last-child { margin-bottom: 0; }
.shared-forward-preview strong { display: block; font-size: 11px; color: #60758f; margin-bottom: 4px; }
@media (max-width: 540px) {
  .shared-memo-detail-modal .shared-memo-addition-card { padding: 12px 12px 10px; }
  .shared-memo-detail-modal .shared-memo-addition-card > p { font-size: 13px; line-height: 1.75; }
  .shared-memo-detail-modal .shared-addition-byline > span { margin-left: 0; }
}
.shared-memo-sync-status { border:0; background:transparent; padding:6px 8px; color:#64748b; font:inherit; font-size:11px; cursor:pointer; white-space:nowrap; }
.shared-memo-sync-status[data-sync-state="error"] { color:#b45309; background:#fffbeb; border-radius:8px; }

/* Search and shared pins use the same compact footprint. */
.shared-memo-team-notify { display:flex; align-items:center; gap:8px; cursor:pointer; color:#425875; font-size:12px; font-weight:600; }
.shared-memo-team-notify input { width:16px; height:16px; margin:0; accent-color:#287ee7; flex-shrink:0; }
.shared-memo-team-notify small { display:block; font-size:10px; font-weight:400; color:#7b8ca2; margin-top:3px; }
.shared-memo-detail-modal .shared-memo-addition-composer { grid-template-columns:minmax(0,1fr); }
.shared-memo-addition-submit-row { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.shared-memo-detail-modal .shared-memo-addition-submit-row button { width:auto; min-width:90px; margin-left:auto; }
.shared-memo-card-pictograms .shared-memo-reading-badge { width:auto; min-width:40px; height:20px; white-space:nowrap; font-size:10px; line-height:20px; padding:0 6px; border-radius:5px; background:#ecf1f7; color:#66798f; }
.shared-memo-reading-badge:empty { display:none; }
.shared-memo-reading-badge[data-read-state="new"] { color:#b44a13; background:#fff0db; }
.shared-memo-reading-badge[data-read-state="unread"] { color:#2461ac; background:#eaf3ff; }
.shared-memo-reading-row { display:flex; align-items:start; gap:10px; flex-wrap:wrap; margin:8px 0 2px; font-size:12px; color:#687b91; }
.shared-memo-readers { flex:1; min-width:170px; }
.shared-memo-reading-row:empty { display:none; }
.shared-memo-detail-modal .shared-memo-readers > summary { display:inline-flex; align-items:center; justify-content:space-between; gap:12px; min-height:32px; padding:6px 10px; border:1px solid #dce5ee; border-radius:8px; background:#f8fafc; color:#536b85; cursor:pointer; list-style:none; width:max-content; box-sizing:border-box; }
.shared-memo-readers > summary::-webkit-details-marker { display:none; }
.shared-memo-detail-modal .shared-memo-readers > summary strong { font-size:12px; font-weight:600; line-height:18px; }
.shared-memo-detail-modal .memo-chevron { display:inline-block; flex:0 0 6px; width:6px; height:6px; margin:0 2px 3px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:rotate(45deg); transition:transform .15s; }
.shared-memo-detail-modal details[open] > summary .memo-chevron { transform:rotate(225deg); margin-top:5px; }
.shared-memo-detail-modal .shared-memo-readers[open] > summary { background:#edf4fb; border-color:#bdd0e4; color:#315c87; }
.shared-memo-readers-list { padding:10px 12px; margin-top:6px; border:1px solid #e2e9f0; border-radius:9px; background:#fafcfe; max-height:180px; overflow:auto; }
.shared-memo-readers-list p { font-size:11px; line-height:1.6; margin:0 0 7px; color:#7b8ba0; }
.shared-memo-readers-list > div { display:flex; justify-content:space-between; gap:8px; padding:4px 0; }
.shared-memo-readers-list strong { font-size:12px; font-weight:600; }
.shared-memo-readers-list span { font-size:11px; }
.shared-memo-new-content,.shared-memo-alert-retry { border:1px solid #ead5bb; border-radius:7px; background:#fff7eb; color:#98611e; padding:5px 8px; font:inherit; font-size:11px; cursor:pointer; }
.shared-memo-quickbar { --memo-shortcut-width:360px; display:flex; align-items:start; gap:12px; min-width:0; }
.shared-memo-quickbar .shared-memo-search,
.shared-memo-pinned-item { box-sizing:border-box; flex:0 0 var(--memo-shortcut-width); width:var(--memo-shortcut-width); height:44px; min-height:44px; }
.shared-memo-pinned-strip { display:flex; gap:10px; min-width:0; overflow-x:auto; padding:0 0 5px; scrollbar-width:thin; scrollbar-color:#ccd7e3 transparent; }
.shared-memo-pinned-item { display:flex; align-items:center; gap:10px; text-align:left; padding:5px 12px; border:1px solid #d8e3ec; border-left:3px solid var(--pin-accent,#8092b0); border-radius:12px; background:linear-gradient(110deg,color-mix(in srgb,var(--pin-accent,#8092b0) 10%,white),white 75%); color:#26394e; cursor:pointer; font:inherit; }
.shared-memo-pinned-item:hover { border-color:#a6b9cf; background:#f4f8fd; }
.shared-memo-pinned-item:focus-visible { outline:2px solid #2683f6; outline-offset:-2px; }
.shared-memo-pin-icon { font-size:16px; flex-shrink:0; }
.shared-memo-pin-copy { display:grid; gap:2px; min-width:0; flex:1; }
.shared-memo-pin-copy strong { font-size:13px; font-weight:650; line-height:16px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.shared-memo-pin-copy small { font-size:10px; font-weight:500; line-height:12px; color:#718198; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.shared-memo-pin-arrow { font-size:15px; color:#8699af; }
.shared-memo-board .shared-memo-toolbar-actions { flex:1; flex-wrap:wrap; }
.shared-memo-board .shared-memo-new-button { margin-left:auto; }
.shared-memo-pictogram-action.is-pin.active { border-color:#8da9db; background:#eaf1ff; color:#345686; }
.shared-memo-notify-choice { display:flex; align-items:center; gap:10px; text-align:left; padding:12px 14px; border:1px solid #dbe4ee; border-radius:10px; background:#f7f9fc; cursor:pointer; }
.shared-memo-notify-choice input { width:17px; height:17px; margin:0; accent-color:#287ee7; flex-shrink:0; }
.shared-memo-notify-choice span { font-size:13px; font-weight:650; color:#334861; }
.shared-memo-notify-choice small { display:block; margin-top:3px; color:#75869a; font-size:11px; font-weight:400; }
@media (max-width:760px) {
  .shared-memo-quickbar { --memo-shortcut-width:min(360px, 100%); display:grid; grid-template-columns:minmax(0,1fr); gap:10px; }
  .shared-memo-pinned-strip { width:100%; }
  .shared-memo-board .shared-memo-new-button { margin-left:0; }
}

/* Four balanced entry points; infrequent actions stay inside compact menus. */
.shared-memo-board { grid-template-columns:minmax(0,1fr); }
.memo-folder-bar { display:flex; align-items:center; gap:10px; min-width:0; margin:2px 0 10px; padding-bottom:10px; border-bottom:1px solid #dce5ee; }
.memo-folder-tabs { display:flex; align-items:center; gap:6px; overflow-x:auto; flex:1; min-width:0; padding:2px; scrollbar-width:thin; }
.memo-folder-tabs button,.memo-folder-settings,.memo-reading-filters button,.memo-bulk-controls button { flex-shrink:0; border:1px solid #dce5ee; border-radius:9px; min-height:33px; padding:6px 11px; background:#ffffffb8; color:#5a6d85; font:inherit; font-size:12px; font-weight:600; white-space:nowrap; cursor:pointer; }
.memo-folder-tabs button[aria-pressed="true"] { background:#eaf3ff; border-color:#7fabdf; color:#235a9a; }
.memo-folder-tabs button:hover,.memo-folder-settings:hover,.memo-bulk-controls button:hover { background:#f0f6fd; }
.memo-folder-tabs button[disabled],.memo-bulk-controls button[disabled] { opacity:.45; cursor:default; }
.memo-folder-settings { background:transparent; font-size:11px; }
.memo-organize-bar { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.memo-reading-filters { display:flex; flex-wrap:wrap; max-width:100%; box-sizing:border-box; gap:3px; padding:3px; border:1px solid #dfe7ef; border-radius:10px; background:#eef3f7; }
.memo-reading-filters button { min-height:27px; padding:4px 10px; font-size:11px; background:transparent; border-color:transparent; border-radius:7px; }
.memo-reading-filters button[aria-pressed="true"] { color:#2c5986; background:#fff; box-shadow:0 1px 3px #213c5614; }
.memo-bulk-controls { display:flex; align-items:center; gap:7px; flex-wrap:wrap; color:#6e8197; font-size:11px; }
.memo-bulk-controls button { font-size:11px; }
.memo-bulk-controls button[aria-pressed="true"] { background:#eaf3ff; color:#235a9a; }
.is-selecting-memos .shared-memo-new-tile { display:none; }
.is-selecting-memos .shared-memo-card::after { content:'선택'; position:absolute; right:10px; top:10px; padding:4px 7px; border-radius:6px; border:1px solid #b6c7db; background:#fff; color:#6c8199; font-size:10px; }
.is-selecting-memos .shared-memo-card.is-folder-selected { outline:2px solid #287ee7; outline-offset:2px; }
.is-selecting-memos .shared-memo-card.is-folder-selected::after { content:'✓ 선택됨'; background:#287ee7; color:#fff; border-color:#287ee7; }
.is-selecting-memos .shared-memo-card.is-folder-unavailable { opacity:.5; cursor:not-allowed; }
.is-selecting-memos .shared-memo-card.is-folder-unavailable::after { content:'작성자만 이동'; }
.shared-memo-card-foot .memo-card-folder { max-width:120px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#536e8b; }
.memo-folder-modal { width:min(420px,calc(100vw - 32px)); padding:22px; border-radius:17px; max-height:calc(100dvh - 32px); overflow-y:auto; background:#fff; color:#283d54; }
.memo-folder-modal header { display:flex; align-items:start; justify-content:space-between; gap:12px; margin-bottom:20px; }
.memo-folder-modal header small { color:#7c90a5; font-size:11px; }
.memo-folder-modal h2 { margin:4px 0 0; font-size:20px; }
.memo-folder-modal label { display:grid; gap:8px; font-size:12px; font-weight:600; }
.memo-folder-modal :is(input,select) { box-sizing:border-box; width:100%; min-height:40px; border:1px solid #cedbe8; border-radius:8px; padding:9px 11px; background:#f8fafc; color:#30465c; font:inherit; font-size:14px; }
.memo-folder-modal p { font-size:12px; line-height:1.7; color:#70849a; }
.memo-folder-modal-actions { display:flex; justify-content:end; align-items:center; gap:7px; margin-top:20px; }
.memo-folder-modal-actions button { min-height:35px; border:1px solid #dce5ed; border-radius:8px; padding:7px 12px; font:inherit; font-size:12px; cursor:pointer; }
.memo-folder-modal-actions .danger { margin-right:auto; color:#b25260; background:#fff; }
.memo-folder-modal [role="alert"] { color:#b25260; margin-bottom:0; }
.memo-folder-modal [role="alert"]:empty { display:none; }
.memo-folder-bar :is(button,input):focus-visible,.memo-organize-bar button:focus-visible { outline:2px solid #6698d8; outline-offset:2px; }
@media(max-width:540px) { .memo-folder-bar { gap:6px; } .memo-folder-tabs button { padding:6px 9px; } .memo-folder-settings { padding:6px 8px; } .memo-bulk-controls { margin-left:auto; } }
.shared-memo-detail-modal .shared-memo-pictogram-actions { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; overflow:visible; }
.shared-memo-detail-modal .shared-memo-pictogram-actions > .shared-memo-pictogram-action,
.shared-memo-detail-modal .shared-memo-action-group > summary { grid-column:auto; display:flex; align-items:center; justify-content:center; gap:6px; width:100%; min-width:0; min-height:36px; box-sizing:border-box; padding:7px 6px; border:1px solid #dfe6ee; border-radius:8px; background:#fff; color:#53667e; cursor:pointer; list-style:none; margin:0; }
.shared-memo-detail-modal .shared-memo-action-group { position:relative; min-width:0; }
.shared-memo-detail-modal .shared-memo-action-group > summary strong { font-size:11px; line-height:20px; font-weight:600; white-space:nowrap; }
.shared-memo-action-group > summary::-webkit-details-marker { display:none; }
.shared-memo-detail-modal .shared-memo-action-group > summary:hover,
.shared-memo-detail-modal .shared-memo-action-group[open] > summary { background:#edf3f9; border-color:#c0cedf; color:#2f5279; }
.shared-memo-detail-modal .shared-memo-action-group > summary.has-selection { background:#edf4ff; border-color:#c3d7f2; color:#315f96; }
.shared-memo-detail-modal .shared-memo-action-group > summary:focus-visible,
.shared-memo-detail-modal .shared-memo-readers > summary:focus-visible { outline:2px solid #6698d8; outline-offset:2px; }
.shared-memo-detail-modal .shared-memo-action-menu { position:absolute; right:0; bottom:calc(100% + 8px); z-index:8; width:188px; max-width:calc(100vw - 56px); box-sizing:border-box; display:grid; gap:3px; padding:6px; border:1px solid #d9e2ec; border-radius:11px; background:#fff; box-shadow:0 8px 28px #213b5926; }
.shared-memo-detail-modal .shared-memo-action-group:not([open]) > .shared-memo-action-menu { display:none; }
.shared-memo-detail-modal .shared-memo-action-menu button { display:flex; align-items:center; gap:9px; width:100%; min-height:36px; padding:7px 9px; border:0; border-radius:6px; background:transparent; color:#42566e; font:inherit; text-align:left; cursor:pointer; }
.shared-memo-detail-modal .shared-memo-action-menu button > span { font-size:14px; }
.shared-memo-detail-modal .shared-memo-action-menu button > strong { font-size:12px; line-height:20px; font-weight:600; }
.shared-memo-detail-modal .shared-memo-action-menu button > small { margin-left:auto; font-size:10px; color:#3269a7; white-space:nowrap; }
.shared-memo-detail-modal .shared-memo-action-menu button:hover { background:#f0f4f9; }
.shared-memo-detail-modal .shared-memo-action-menu button[aria-pressed="true"] { background:#edf4ff; color:#3269a7; }
.shared-memo-detail-modal .shared-memo-action-menu button.is-delete { color:#b34e5a; border-top:1px solid #edf0f4; border-radius:0 0 6px 6px; margin-top:3px; }
@media(max-width:360px) {
  .shared-memo-detail-modal .shared-memo-pictogram-actions { gap:4px; }
  .shared-memo-detail-modal .shared-memo-pictogram-actions > .shared-memo-pictogram-action,
  .shared-memo-detail-modal .shared-memo-action-group > summary { gap:4px; padding:7px 3px; }
  .shared-memo-detail-modal .shared-memo-pictogram-actions > .shared-memo-pictogram-action span { font-size:12px; }
}
.shared-memo-detail-text a { color:#2464ad; text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere; }
.shared-memo-detail-text a:hover { color:#17467d; }
.shared-memo-detail-text a:focus-visible { outline:2px solid #3c82db; outline-offset:3px; border-radius:2px; }
.memo-reference-hint { margin:0; color:#60758b; font-size:12px; line-height:1.6; }
.memo-reference-status:not([hidden]) { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:8px 12px; border:1px solid #e8d7b2; background:#fffaf0; border-radius:10px; color:#79591c; font-size:12px; }
.memo-reference-status button { border:1px solid #d9c89f; border-radius:7px; background:white; color:inherit; padding:5px 9px; font:inherit; cursor:pointer; }
.memo-reference-choice[hidden] { display:none !important; }
.memo-folder-modal .memo-reference-choice { display:flex; align-items:flex-start; gap:9px; padding:10px 12px; background:#f3f7fc; border-radius:9px; }
.memo-folder-modal .memo-reference-choice input { width:16px; height:16px; min-height:16px; padding:0; margin-top:2px; flex:none; }
.shared-memo-create-modal .shared-memo-sticky-foot:has(.memo-reference-choice:not([hidden])) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.shared-memo-create-modal .shared-memo-sticky-foot:has(.memo-reference-choice:not([hidden])) > div { grid-column:1/-1; justify-content:flex-end; }
@media(max-width:600px) { .shared-memo-create-modal .shared-memo-sticky-foot:has(.memo-reference-choice:not([hidden])) { grid-template-columns:1fr; } }
.memo-reference-hint button { border:0; background:none; color:#32659a; font:inherit; text-decoration:underline; cursor:pointer; }
