  /* ===== 테마 토큰 ===== */
  [data-theme="a"]{ color-scheme:dark; --bg:#121212;--card:#181818;--raised:#282828;--cta:#1ED760;--cta-text:#000;--text:#fff;--text2:#B3B3B3;--text3:#555;--border:#282828;--sunday:#FF5C5C;--today:#282828;--radius:6px;--pill:20px;--shadow:none; }
  [data-theme="b"]{ color-scheme:dark; --bg:#0B0C10;--card:rgba(255,255,255,.05);--raised:rgba(255,255,255,.09);--cta:#818CF8;--cta-text:#fff;--text:#fff;--text2:#94A3B8;--text3:#4B5563;--border:rgba(255,255,255,.08);--sunday:#F87171;--today:rgba(129,140,248,.18);--radius:10px;--pill:6px;--shadow:0 0 14px rgba(129,140,248,.4); }
  [data-theme="c"]{ color-scheme:dark; --bg:#0F0E0C;--card:#1A1916;--raised:#252320;--cta:#FF6B35;--cta-text:#fff;--text:#F2EDE5;--text2:#9A8F80;--text3:#5A5045;--border:#252320;--sunday:#FF5C5C;--today:#1F1812;--radius:6px;--pill:3px;--shadow:none; }
  [data-theme="d"]{ color-scheme:light; --bg:#F4F7FC;--card:#fff;--raised:#EDF1F7;--cta:#1ED760;--cta-text:#000;--text:#0F172A;--text2:#64748B;--text3:#94A3B8;--border:#E2E8F0;--sunday:#EF4444;--today:#F0FDF4;--radius:8px;--pill:8px;--shadow:0 1px 4px rgba(0,0,0,.08); }

  * { box-sizing: border-box; }
  body { font-family:var(--font-override,'Nunito Sans',system-ui,sans-serif); margin:0; color:var(--text); background:var(--bg); }
  [data-theme="b"] body { background-image: radial-gradient(ellipse at 25% 0%, rgba(129,140,248,.18) 0%, transparent 55%); background-attachment: fixed; }
  /* Electron 드래그 영역 (브라우저에선 무시됨) */
  .title-row { -webkit-app-region: drag; }
  h1 { -webkit-app-region: drag; }
  button, input, select, textarea, a, .ev, .tl-bar, .note { -webkit-app-region: no-drag; }

  /* ===== 사이드바 레이아웃 (Phase 3A / 3B-2a) ===== */
  .wrap { display:flex; gap:0; padding:0; min-height:100vh; }
  /* 잠금(비번 입력 전): 뒤 내용 블러 + 상호작용 차단 */
  .wrap.locked { filter:blur(14px); pointer-events:none; user-select:none; }
  /* 좌측 사이드바 */
  .app-sidebar { position:relative; flex:0 0 160px; width:160px; min-width:0; background:var(--card); border-right:1px solid var(--border); display:flex; flex-direction:column; position:sticky; top:0; align-self:flex-start; height:100vh; overflow-y:auto; overflow-x:hidden; z-index:100; transition:width .2s ease, flex-basis .2s ease; }
  .sidebar-head { display:flex; align-items:center; justify-content:space-between; padding:8px 10px; border-bottom:1px solid var(--border); min-height:44px; gap:4px; }
  .sidebar-close-btn { display:none; font-size:15px; padding:3px 7px; background:transparent; border:1px solid transparent; color:var(--text2); cursor:pointer; border-radius:var(--radius); }
  .sidebar-close-btn:hover { background:var(--raised); color:var(--text); }
  /* 접기 버튼 (데스크톱 전용, JS 로드 전엔 opacity:0으로 숨김) */
  .sidebar-collapse-btn { display:none; align-items:center; justify-content:center; font-size:11px; padding:3px 6px; background:transparent; border:1px solid transparent; color:var(--text2); cursor:pointer; border-radius:var(--radius); line-height:1; flex-shrink:0; margin-left:auto; }
  .sidebar-collapse-btn:hover { background:var(--raised); color:var(--text); border-color:var(--border); }
  /* 사이드바 내비 */
  .sidebar-nav { flex:1; padding:6px 0; display:flex; flex-direction:column; overflow:hidden; }
  /* 사이드바 버튼 (아이콘+텍스트 구조) */
  .sidebar-btn { display:flex; align-items:center; gap:8px; width:100%; text-align:left; padding:10px 16px; font-size:14px; font-weight:700; border:none; border-right:3px solid transparent; border-radius:0; background:transparent; color:var(--text2); cursor:pointer; transition:background .12s, color .12s; white-space:nowrap; overflow:hidden; }
  .sidebar-btn:hover { background:var(--raised); color:var(--text); }
  .sidebar-btn.active { background:var(--raised); color:var(--cta); border-right-color:var(--cta); }
  .sb-icon { flex-shrink:0; width:18px; text-align:center; font-size:13px; font-style:normal; }
  .sb-label { flex:1; overflow:hidden; text-overflow:ellipsis; }
  /* 사이드바 하단 액션 버튼 영역 */
  .sidebar-foot-actions { padding:4px; border-top:1px solid var(--border); display:flex; flex-direction:column; gap:1px; overflow:hidden; }
  .sf-btn { width:100%; display:flex; align-items:center; gap:8px; padding:7px 10px; font-size:12px; font-weight:700; border:none; border-radius:var(--radius); background:transparent; color:var(--text2); cursor:pointer; text-align:left; white-space:nowrap; overflow:hidden; }
  .sf-btn:hover { background:var(--raised); color:var(--text); }
  .sb-btn-label { flex:1; overflow:hidden; text-overflow:ellipsis; }
  /* 사이드바 하단 클럭 */
  .sidebar-foot { padding:8px 14px; border-top:1px solid var(--border); font-size:12px; color:var(--text2); overflow:hidden; }
  /* 드래그 리사이즈 핸들 */
  .sidebar-resize-handle { position:absolute; right:0; top:0; bottom:0; width:5px; cursor:col-resize; z-index:101; }
  .sidebar-resize-handle:hover, .sidebar-resize-handle.dragging { background:var(--cta); opacity:.35; }
  /* 사이드바 오버레이 */
  .sidebar-overlay { display:none; }
  .hamburger-btn { display:none; font-size:18px; font-weight:700; line-height:1; padding:3px 8px; background:transparent; border:1px solid transparent; color:var(--text); cursor:pointer; border-radius:var(--radius); -webkit-app-region:no-drag; }
  .hamburger-btn:hover { background:var(--raised); }
  /* 메인 영역 */
  .main { flex:1; min-width:0; padding:16px; }
  .side { flex:0 0 300px; min-width:280px; }
  .title-row { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:12px; position:sticky; top:0; z-index:50; background:var(--bg); padding:8px 0; }
  /* 모바일: 사이드바 오버레이 슬라이드 */
  @media (max-width:768px) {
    .app-sidebar { position:fixed; left:-220px; top:0; height:100%; align-self:auto; z-index:200; transition:left .25s ease; flex:0 0 200px !important; width:200px !important; }
    .app-sidebar.open { left:0; box-shadow:4px 0 20px rgba(0,0,0,.25); }
    /* 모바일에선 sb-collapsed 무시 → 항상 펼침 레이아웃 */
    .app-sidebar.sb-collapsed { flex:0 0 200px !important; width:200px !important; }
    .sidebar-close-btn { display:block; }
    .sidebar-collapse-btn { display:none !important; }
    .sidebar-resize-handle { display:none !important; }
    .sidebar-overlay { display:block; position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:199; opacity:0; pointer-events:none; transition:opacity .25s; }
    .sidebar-overlay.open { opacity:1; pointer-events:auto; }
    .hamburger-btn { display:block; }
    .app-sidebar.sb-collapsed .sb-label { display:block; }
    .app-sidebar.sb-collapsed .sidebar-btn { padding:10px 16px; justify-content:flex-start; }
    .app-sidebar.sb-collapsed .sb-btn-label { display:block; }
    .app-sidebar.sb-collapsed .sf-btn { padding:7px 10px; justify-content:flex-start; }
    .app-sidebar.sb-collapsed .sidebar-foot { padding:8px 14px; }
    .app-sidebar.sb-collapsed .header-clock { display:inline; }
    .app-sidebar.sb-collapsed .sidebar-head { justify-content:space-between; padding:8px 10px; }
  }
  /* 데스크톱: 접기 버튼 표시 + 접힌 상태 (모바일 미디어쿼리 뒤에 배치해 source-order 우선) */
  @media (min-width:769px) {
    .sidebar-collapse-btn { display:inline-flex; }
    .app-sidebar.sb-collapsed { flex-basis:64px !important; width:64px !important; overflow:hidden; }
    .app-sidebar.sb-collapsed .sb-label { display:none; }
    .app-sidebar.sb-collapsed .sidebar-btn { padding:10px 0; justify-content:center; border-right:3px solid transparent; }
    .app-sidebar.sb-collapsed .sidebar-btn.active { border-right-color:var(--cta); }
    .app-sidebar.sb-collapsed .sb-btn-label { display:none; }
    .app-sidebar.sb-collapsed .sf-btn { padding:7px 0; justify-content:center; }
    .app-sidebar.sb-collapsed .sidebar-foot { padding:6px 0; text-align:center; }
    .app-sidebar.sb-collapsed .header-clock { display:none; }
    .app-sidebar.sb-collapsed .sidebar-head { justify-content:center; padding:8px 4px; }
    .app-sidebar.sb-collapsed .sidebar-collapse-btn { margin-left:0; }
  }
  h1 { font-size:22px; font-weight:900; letter-spacing:-.04em; margin:0 0 12px; }
  .title-row h1 { margin:0; min-width:0; overflow-wrap:anywhere; }   /* #128: 긴 팀명(무공백 토큰)도 가로 넘침 없이 줄바꿈 */
  .win-controls { display:none; gap:6px; }
  .win-controls button { min-width:28px; padding:4px 8px; border-radius:6px; }
  .win-controls .danger { border-color:#ef4444; color:#ef4444; }
  h2 { font-size:15px; font-weight:800; margin:0 0 8px; }
  .banner { border:1px solid var(--cta); padding:8px; margin-bottom:12px; border-radius:var(--radius); box-sizing:border-box; overflow-wrap:anywhere; word-break:break-word; }
  .bar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; border:1px solid var(--border); background:var(--card); padding:8px; margin-bottom:12px; border-radius:var(--radius); box-shadow:var(--shadow); }
  .bar .grp { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
  #assigneeFilter { order:2; flex:1 0 100%; min-width:0; }
  #catFilter { order:3; flex:1 0 100%; min-width:0; }
  #catFilter .cat-title { margin-right:2px; }
  #catFilter .cat-item { display:inline-flex; align-items:center; gap:4px; white-space:nowrap; margin-right:8px; }
  #catFilter .cat-item input[type=checkbox] { width:auto; margin:0; }
  #catFilter .cat-name { color:var(--text2); }
  #catFilter .cat-actions { display:inline-flex; gap:4px; margin-right:6px; }
  #catFilter .cat-actions button { padding:2px 7px; font-size:11px; border-radius:6px; }
  #assigneeFilter .as-title { margin-right:2px; }
  #assigneeFilter .as-item { display:inline-flex; align-items:center; gap:4px; white-space:nowrap; margin-right:8px; }
  #assigneeFilter .as-item input[type=checkbox] { width:auto; margin:0; }
  #assigneeFilter .as-name { color:var(--text2); }
  #assigneeFilter .as-actions { display:inline-flex; gap:4px; margin-right:6px; }
  #assigneeFilter .as-actions button { padding:2px 7px; font-size:11px; border-radius:6px; }
  #opacityWrap, #autostartWrap { order:1; }
  #themeWrap { order:1; margin-left:auto; }
  button { font-family:inherit; font-size:13px; font-weight:700; padding:5px 11px; border:1px solid var(--border); background:var(--card); color:var(--text); cursor:pointer; border-radius:var(--pill); }
  button.active { background:var(--cta); color:var(--cta-text); border-color:var(--cta); }
  button.cta { background:var(--cta); color:var(--cta-text); border-color:var(--cta); }
  button.small { padding:3px 8px; font-size:12px; border-radius:var(--radius); }
  label { font-size:13px; color:var(--text2); }
  input, select, textarea { font-family:inherit; font-size:13px; padding:6px; border:1px solid var(--border); background:var(--card); color:var(--text); width:100%; border-radius:var(--radius); }
  /* 빠른 입력창은 테두리를 굵게·강조색으로 눈에 띄게 */
  #txQuick, #quick { border-width:2px; border-color:var(--cta); }
  #txQuick:focus, #quick:focus { outline:none; box-shadow:0 0 0 2px var(--cta); }
  input[type=range] { width:90px; padding:0; border:none; background:transparent; accent-color:var(--cta); }
  .field { margin-bottom:8px; }
  .field > label { display:block; margin-bottom:2px; }
  .row { display:flex; gap:6px; }
  .row > div { flex:1; }
  hr { border:none; border-top:1px solid var(--border); margin:10px 0; }
  /* calendar */
  table.cal { border-collapse:collapse; width:100%; table-layout:fixed; background:var(--card); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); }
  table.cal th, table.cal td { border:1px solid var(--border); vertical-align:top; width:14.28%; }
  table.cal th { padding:6px; font-weight:700; font-size:12px; color:var(--text2); }
  table.cal th:first-child, table.cal th:last-child { color:var(--sunday); }
  table.cal td { height:84px; padding:3px; }
  table.cal[data-weeks="1"] td { height:480px; }
  table.cal[data-weeks="2"] td { height:240px; }
  table.cal[data-weeks="3"] td { height:160px; }
  table.cal[data-weeks="4"] td { height:120px; }
  .daynum { font-size:12px; color:var(--text2); }
  .daynum.sun { color:var(--sunday); }
  .ev { border:1px solid var(--border); border-left-width:3px; background:var(--raised); padding:1px 4px; margin:2px 0; font-size:11px; font-weight:600; cursor:pointer; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; border-radius:4px; }
  #calView .ev { cursor:grab; user-select:none; }
  [data-theme="b"] .ev { backdrop-filter:blur(8px); }
  .ev.sel { outline:2px solid var(--cta); }
  .navmonth { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
  .navmonth strong { font-size:15px; }
  /* timeline */
  .tl-row { display:flex; align-items:center; gap:6px; margin-bottom:5px; }
  .tl-label { flex:0 0 140px; font-size:12px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .tl-track { position:relative; flex:1; height:20px; border:1px solid var(--border); border-radius:4px; background:var(--card); }
  .tl-bar { position:absolute; top:1px; height:16px; border-radius:4px; font-size:11px; font-weight:700; line-height:16px; padding:0 4px; overflow:hidden; white-space:nowrap; cursor:pointer; }
  /* list */
  table.list { border-collapse:collapse; width:100%; background:var(--card); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); }
  table.list th, table.list td { border:1px solid var(--border); padding:6px; text-align:left; font-size:13px; }
  table.list th { font-weight:800; color:var(--text2); }
  .dot { display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:6px; vertical-align:middle; }
  .notes { display:flex; flex-wrap:wrap; align-items:flex-start; gap:6px; }
  .muted { color:var(--text3); font-size:12px; }
  .side-panel { display:flex; flex-direction:column; background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:12px; box-shadow:var(--shadow); }
  .settings-fold { margin-top:10px; border:1px solid var(--border); border-radius:var(--radius); background:var(--raised); padding:8px; }
  .settings-fold > summary { cursor:pointer; font-size:13px; font-weight:800; color:var(--text2); }
  .settings-body { margin-top:8px; }
  .settings-section-head { font-size:13px; font-weight:800; color:var(--text2); margin-bottom:10px; padding-bottom:6px; border-bottom:1px solid var(--border); }
  #assigneeManager, #catColorEditor { display:flex; flex-direction:column; gap:6px; margin-bottom:8px; }
  .assignee-row, .cat-color-row { display:flex; align-items:center; gap:8px; }
  .assignee-row input[type=text] { flex:1; }
  .cat-color-row .name { min-width:90px; font-size:12px; color:var(--text2); }
  .cat-color-row input[type=color] { width:42px; height:28px; padding:2px; border-radius:6px; }
  .cat-color-add { display:flex; gap:6px; align-items:center; }
  .cat-color-add input[type=text] { flex:1; }
  .cat-color-add input[type=color] { width:42px; height:30px; padding:2px; border-radius:6px; }
  .gate { position:fixed; inset:0; display:none; align-items:safe center; justify-content:center; padding:16px; background:rgba(0,0,0,.5); z-index:9999; overflow-y:auto; }
  .gate-card { width:min(360px,100%); background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:14px; box-shadow:var(--shadow); }
  .gate-card h2 { margin:0 0 8px; }
  .gate-msg { min-height:18px; margin-top:6px; color:var(--sunday); font-size:12px; }
  .team-tabs { display:flex; gap:4px; margin-bottom:12px; }
  .team-tab { flex:1; padding:6px; background:var(--bg); border:1px solid var(--border); border-radius:var(--radius); font-size:13px; font-weight:600; cursor:pointer; color:var(--text2); }
  .team-tab.active { background:var(--cta); color:var(--cta-text); border-color:var(--cta); }
  /* holiday */
  .holiday-name { font-size:10px; color:var(--sunday); font-weight:700; line-height:1.2; margin-top:1px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
  /* tabs — Phase 3A: 사이드바로 대체됨. 셀렉터만 비워둠(하위호환) */
  .tab-nav { display:none; }
  .tab-btn { display:none; }
  /* transaction */
  .tx-form { display:flex; flex-wrap:wrap; gap:8px; align-items:flex-end; background:var(--card); border:1px solid var(--border); padding:12px; border-radius:var(--radius); box-shadow:var(--shadow); margin-bottom:12px; }
  .tx-form .field { margin-bottom:0; }
  .tx-summary { display:flex; gap:16px; flex-wrap:wrap; padding:8px 12px; background:var(--card); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); margin-bottom:8px; font-size:13px; }
  table.tx-list { border-collapse:collapse; width:100%; background:var(--card); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); }
  table.tx-list th, table.tx-list td { border:1px solid var(--border); padding:6px 8px; text-align:left; font-size:13px; }
  table.tx-list th { font-weight:800; color:var(--text2); }
  /* ── 정기 결제(구독) ── */
  .subs-wrap { margin-bottom:14px; }
  .subs-box { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
  .subs-head { width:100%; display:flex; justify-content:space-between; align-items:center; gap:8px; padding:10px 12px; background:transparent; border:none; color:var(--text); font-size:13px; cursor:pointer; text-align:left; }
  .subs-head strong { color:var(--cta); }
  .subs-due-badge { display:inline-block; margin-left:6px; font-size:11px; font-weight:800; color:#fff; background:var(--sunday,#ef4444); border-radius:var(--pill); padding:1px 8px; }
  .subs-body { padding:0 10px 10px; }
  table.subs-list { border-collapse:collapse; width:100%; font-size:13px; }
  table.subs-list th, table.subs-list td { border:1px solid var(--border); padding:5px 8px; text-align:left; }
  table.subs-list th { font-weight:800; color:var(--text2); }
  .subs-list tr.subs-inactive { opacity:.5; }
  .subs-posted { color:#22a85a; font-weight:700; font-size:12px; }
  .subs-post-btn { background:var(--cta); color:var(--cta-text); border-color:var(--cta); font-weight:700; }
  .subs-form { display:flex; flex-wrap:wrap; gap:8px; align-items:flex-end; background:var(--card); border:1px solid var(--border); border-top:none; padding:12px; border-radius:0 0 var(--radius) var(--radius); box-shadow:var(--shadow); margin-top:-1px; }
  .subs-form .field { margin-bottom:0; }
  .tx-income { color:#22c55e; font-weight:700; }
  .tx-expense { color:var(--sunday); font-weight:700; }
  .btn-del { background:transparent; color:var(--sunday); border-color:var(--sunday); }
  /* tx filter bar */
  .tx-filter { display:flex; flex-wrap:wrap; gap:8px; align-items:center; background:var(--card); border:1px solid var(--border); padding:8px 12px; border-radius:var(--radius); box-shadow:var(--shadow); margin-bottom:8px; }
  .tx-filter select, .tx-filter input[type=text] { width:auto; flex:1 1 120px; }
  /* info tab */
  table.info-list { border-collapse:collapse; width:100%; background:var(--card); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); margin-bottom:12px; }
  table.info-list th, table.info-list td { border:1px solid var(--border); padding:7px 10px; text-align:left; font-size:13px; }
  table.info-list th { font-weight:800; color:var(--text2); background:var(--raised); }
  table.info-list .label-cell { font-weight:700; width:35%; }
  .info-form { display:flex; flex-wrap:wrap; gap:8px; align-items:flex-end; background:var(--card); border:1px solid var(--border); padding:12px; border-radius:var(--radius); box-shadow:var(--shadow); margin-bottom:12px; }
  .info-form .field { margin-bottom:0; flex:1 1 160px; }
  .info-memo-box { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:12px; box-shadow:var(--shadow); }
  .info-files-box { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:12px; box-shadow:var(--shadow); }
  .info-drop-zone { border:2px dashed var(--border); border-radius:var(--radius); padding:18px; text-align:center; color:var(--text2); cursor:pointer; font-size:13px; margin-bottom:8px; }
  .info-drop-zone.over { border-color:var(--cta); background:var(--raised); }
  .info-usage-bar { height:5px; background:var(--raised); border-radius:3px; margin:0 0 10px; overflow:hidden; }
  .info-usage-fill { height:100%; background:var(--cta); border-radius:3px; }
  table.file-list { border-collapse:collapse; width:100%; background:var(--card); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); }
  table.file-list th, table.file-list td { border:1px solid var(--border); padding:6px 8px; text-align:left; font-size:13px; }
  table.file-list th { font-weight:800; color:var(--text2); background:var(--raised); }
  /* #125 정보탭: 파일/이미지 뷰 토글 + 카메라 + 썸네일 grid */
  .info-files-toolbar { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; flex-wrap:wrap; }
  .info-view-toggle { display:inline-flex; gap:4px; }
  .info-view-toggle button.active { background:var(--cta); color:#fff; border-color:var(--cta); }
  .info-cam-btn { cursor:pointer; white-space:nowrap; }
  .info-img-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(96px, 1fr)); gap:8px; }
  .info-img-cell { position:relative; aspect-ratio:1/1; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:var(--raised); }
  .info-img-thumb { width:100%; height:100%; object-fit:cover; cursor:pointer; display:block; }
  .info-img-del { position:absolute; top:3px; right:3px; width:22px; height:22px; padding:0; border:none; border-radius:50%;
    background:rgba(0,0,0,.55); color:#fff; cursor:pointer; font-size:12px; line-height:22px; text-align:center; }
  .info-img-del:hover { background:rgba(200,0,0,.8); }

  /* weekly goal */
  .weekly-goal-wrap { margin-bottom:12px; }
  .weekly-goal-box { background:var(--cta); color:var(--cta-text); border-radius:var(--radius); padding:10px 16px; cursor:pointer; font-weight:800; font-size:15px; box-shadow:var(--shadow); white-space:pre-line; word-break:break-word; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; line-height:1.4; }
  .weekly-goal-box.empty { background:var(--card); color:var(--text2); border:2px dashed var(--border); font-weight:600; font-size:13px; box-shadow:none; }
  #appTitle { cursor:pointer; }
  #appTitle:hover { opacity:.7; }
  #appTitle input { font-family:inherit; font-size:inherit; font-weight:inherit; letter-spacing:inherit; max-width:100%; padding:2px 6px; }
  .weekly-goal-edit { display:flex; gap:8px; align-items:stretch; }
  .weekly-goal-edit textarea { flex:1; font-weight:700; font-size:14px; resize:none; min-height:42px; }
  .weekly-checklist-wrap { margin-bottom:12px; }
  .weekly-checklist-box { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:8px; box-shadow:var(--shadow); }
  .weekly-checklist-head { width:100%; display:flex; align-items:center; justify-content:space-between; background:var(--raised); border:1px solid var(--border); border-radius:var(--radius); padding:7px 10px; font-weight:700; font-size:12px; }
  .weekly-checklist-add { display:flex; gap:6px; margin-top:8px; }
  .weekly-checklist-add input { flex:1; }
  .weekly-checklist-items { margin-top:7px; }
  .weekly-check-item { display:grid; grid-template-columns:1fr auto; gap:4px; align-items:center; padding:3px 0; }
  .weekly-check-item label { display:flex; align-items:flex-start; gap:5px; font-size:12px; cursor:pointer; min-width:0; }
  .weekly-check-item label input[type=checkbox] { flex-shrink:0; width:auto; margin-top:2px; cursor:pointer; }
  .weekly-check-item label span { flex:1; min-width:0; word-break:keep-all; overflow-wrap:break-word; line-height:1.4; }
  .weekly-check-item.done label span { text-decoration:line-through; color:var(--text3); }
  /* filter fold */
  .bar-top-row { display:flex; align-items:center; justify-content:space-between; width:100%; flex-wrap:nowrap; gap:8px; }
  .bar-body { display:flex; flex-wrap:wrap; gap:8px; width:100%; margin-top:6px; }
  .bar-body.folded { display:none; }
  /* side panel fold */
  .side-panel-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
  .side-panel-header h2 { margin:0; }
  #sideBody.folded { display:none; }
  #requestBody.folded { display:none; }
  /* note enhancements */
  .note { display:flex; flex-direction:column; align-items:flex-start; gap:2px; width:180px; min-width:180px; max-width:180px; height:180px; min-height:180px; max-height:180px; padding:6px; border:1px solid var(--border); background:var(--card); border-radius:var(--radius); box-shadow:var(--shadow); cursor:default; resize:none; overflow:hidden; box-sizing:border-box; position:relative; transition:border-color .12s ease; }
  .note:hover { z-index:10; border-color:var(--cta); }
  [data-theme="b"] .note { backdrop-filter:blur(12px); }
  .note-content-wrap { flex:1; width:100%; white-space:pre-wrap; word-break:break-word; font-size:12px; overflow:auto; outline:none; cursor:text; line-height:1.25; min-height:0; }
  .note-content-wrap:focus { background:rgba(0,0,0,.03); border-radius:3px; }
  [data-theme="b"] .note-content-wrap:focus { background:rgba(255,255,255,.05); }
  .note.drag-over { outline:2px dashed var(--cta); outline-offset:2px; }
  .note-footer { display:flex; align-items:center; justify-content:flex-end; width:100%; margin-top:0; gap:2px; flex-wrap:wrap; flex-shrink:0; }
  .note-footer-main { min-width:0; flex:0 1 auto; margin-right:auto; }
  .note-footer-main:empty { display:none; }
  .note-meta { font-size:10px; color:var(--text3); line-height:1.1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .note-actions { display:flex; align-items:center; gap:2px; }
  .note-actions button {
    width:18px;
    height:18px;
    min-width:18px;
    min-height:18px;
    padding:0;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:10px;
    line-height:1;
    border-radius:4px;
    opacity:.58;
    border-color:transparent;
    background:transparent;
    transition:opacity .12s ease, border-color .12s ease, background-color .12s ease;
  }
  .note:hover .note-actions button,
  .note:focus-within .note-actions button { opacity:.92; border-color:var(--border); background:var(--card); }
  .note-actions button:hover,
  .note-actions button:focus-visible { opacity:1 !important; border-color:var(--cta); background:var(--raised); }
  .note-actions .btn-style { opacity:0; transition:opacity .15s; }
  .note:hover .note-actions .btn-style,
  .note:focus-within .note-actions .btn-style { opacity:1; }
  .note-actions .btn-del { opacity:0; transition:opacity .15s; }
  .note:hover .note-actions .btn-del { opacity:1; }
  .note-style-bar { display:flex; gap:6px; align-items:center; flex-wrap:wrap; margin-top:6px; padding:6px; background:var(--raised); border-radius:4px; font-size:11px; }
  .note-style-bar label { color:var(--text2); display:flex; align-items:center; gap:3px; }
  .note-style-bar input[type=color] { width:28px; height:22px; padding:1px; border-radius:4px; }
  .note-style-bar select { width:auto; font-size:11px; padding:2px 4px; }
  /* calendar overflow */
  .ev-more { font-size:10px; color:var(--cta); padding:1px 4px; font-weight:700; cursor:pointer; text-decoration:underline; }
  /* calendar more popup */
  .cal-more-popup { position:fixed; z-index:9000; background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:10px; box-shadow:0 4px 16px rgba(0,0,0,.18); min-width:180px; max-width:260px; }
  .cal-more-popup .popup-title { font-size:11px; font-weight:800; color:var(--text2); margin-bottom:6px; }
  .cal-more-popup .ev { margin:2px 0; cursor:pointer; }
  .cal-more-popup-close { position:absolute; top:6px; right:8px; font-size:11px; cursor:pointer; color:var(--text3); }
  /* note effect animations */
  @keyframes note-neon-pulse {
    0%,100% { box-shadow:0 0 4px var(--note-glow),0 0 14px var(--note-glow),0 0 28px var(--note-glow); }
    50%      { box-shadow:0 0 8px var(--note-glow),0 0 22px var(--note-glow),0 0 48px var(--note-glow); }
  }
  @keyframes note-sparkle {
    0%,88%,100% { box-shadow:0 0 0 transparent; }
    92%  { box-shadow:0 0 10px var(--note-glow),0 0 28px var(--note-glow),0 0 50px var(--note-glow); }
    96%  { box-shadow:0 0 3px var(--note-glow); }
  }
  @keyframes note-rainbow {
    0%   { border-color:#ff4444; box-shadow:0 0 8px #ff4444,0 0 20px #ff444466; }
    16%  { border-color:#ff9900; box-shadow:0 0 8px #ff9900,0 0 20px #ff990066; }
    33%  { border-color:#ffee00; box-shadow:0 0 8px #ffee00,0 0 20px #ffee0066; }
    50%  { border-color:#22dd44; box-shadow:0 0 8px #22dd44,0 0 20px #22dd4466; }
    66%  { border-color:#33aaff; box-shadow:0 0 8px #33aaff,0 0 20px #33aaff66; }
    83%  { border-color:#aa44ff; box-shadow:0 0 8px #aa44ff,0 0 20px #aa44ff66; }
    100% { border-color:#ff4444; box-shadow:0 0 8px #ff4444,0 0 20px #ff444466; }
  }
  @keyframes note-shimmer {
    0%   { background-position:200% center; }
    100% { background-position:-200% center; }
  }
  .note-fx-neon    { animation:note-neon-pulse 2s ease-in-out infinite; border-width:2px !important; }
  .note-fx-sparkle { animation:note-sparkle 2.5s ease-in-out infinite; border-width:2px !important; }
  .note-fx-rainbow { animation:note-rainbow 3s linear infinite; border-width:2px !important; }
  .note-fx-shimmer { background-size:200% auto !important; animation:note-shimmer 2s linear infinite; border-width:2px !important; }

  /* list status badge */
  .status-badge { display:inline-block; font-size:11px; font-weight:700; padding:2px 8px; border-radius:10px; white-space:nowrap; }
  .status-예정 { background:#e0f2fe; color:#0369a1; }
  .status-진행중 { background:#fef9c3; color:#854d0e; }
  .status-완료 { background:#dcfce7; color:#166534; }
  [data-theme="a"] .status-예정,[data-theme="b"] .status-예정,[data-theme="c"] .status-예정 { background:#1e3a5f; color:#7dd3fc; }
  [data-theme="a"] .status-진행중,[data-theme="b"] .status-진행중,[data-theme="c"] .status-진행중 { background:#4a3800; color:#fde68a; }
  [data-theme="a"] .status-완료,[data-theme="b"] .status-완료,[data-theme="c"] .status-완료 { background:#14532d; color:#86efac; }
  /* category delete button */
  .cat-color-row .btn-cat-del { padding:2px 6px; font-size:11px; color:var(--sunday); border-color:var(--sunday); background:transparent; }
  /* my name row */
  .my-name-row { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
  .my-name-row label { white-space:nowrap; font-size:13px; color:var(--text2); }
  .my-name-row input { width:140px; }

  /* info tab two-column + board */
  .info-cols { display:flex; gap:16px; align-items:flex-start; }
  .info-left { flex:1 1 0; min-width:0; }
  .info-right { flex:0 0 300px; }
  .board-box { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:12px; box-shadow:var(--shadow); }
  .board-form { display:flex; flex-direction:column; gap:6px; margin-bottom:10px; }
  .board-badge { font-size:10px; font-weight:800; padding:1px 7px; border-radius:10px; color:#fff; white-space:nowrap; }
  .board-badge.notice { background:#3b82f6; }
  .board-badge.improve { background:#22c55e; }
  .board-post { border:1px solid var(--border); border-radius:6px; padding:8px; margin-bottom:8px; }
  .board-post-head { display:flex; align-items:center; gap:6px; }
  .board-post-title { font-weight:700; font-size:13px; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .board-post-head .btn-del { padding:1px 6px; font-size:10px; }
  .board-post-body { font-size:12px; color:var(--text2); margin-top:4px; word-break:break-word; line-height:1.55; }
  .board-post-body .bp-section { font-weight:700; font-size:11px; color:var(--text3); text-transform:uppercase; letter-spacing:.04em; margin:8px 0 4px; }
  .board-post-body .bp-list { margin:0 0 4px 0; padding-left:16px; }
  .board-post-body .bp-list li { margin-bottom:3px; }
  .board-post-body b { color:var(--text); font-weight:700; }
  .board-post-date { font-size:10px; color:var(--text3); margin-top:4px; }
  .board-summary { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; }
  .board-summary-text { font-size:11px; color:var(--text2); }
  .board-more-hint { margin-top:2px; font-size:11px; color:var(--text3); }
  .sched-modal { position:fixed; inset:0; z-index:9400; background:rgba(0,0,0,.45); display:none; align-items:flex-start; justify-content:center; padding:20px 14px; overflow-y:auto; }
  /* #136 안전망: 이름 입력 모달은 팀 관리 등 .gate(z-index 9999) 위에서 열릴 수 있으므로 그보다 높게. */
  #memoNameModal { z-index:10000; }
  .sched-modal-card { width:min(440px,100%); background:var(--card); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); padding:14px; margin:auto; }
  .sched-modal-card--wide { width:min(520px,100%); }
  .board-modal { position:fixed; inset:0; z-index:9500; background:rgba(0,0,0,.45); display:none; align-items:center; justify-content:center; padding:14px; }
  .board-modal-card { width:min(760px,100%); max-height:82vh; overflow:auto; background:var(--card); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); padding:12px; }
  /* 글래스 테마에서 모달 배경 반투명 방지 — 불투명 고정값 */
  [data-theme="b"] .sched-modal-card,
  [data-theme="b"] .board-modal-card,
  [data-theme="b"] .gate-card,
  [data-theme="b"] .name-modal-card { background:#1b1f2e; }
  /* 설정 저장 피드백 힌트 */
  .settings-saved-hint { font-size:12px; color:var(--cta); font-weight:700; opacity:0; transition:opacity .3s ease; pointer-events:none; margin-left:auto; margin-right:8px; }
  .board-modal-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px; }
  .board-modal-head h3 { margin:0; font-size:15px; }
  .board-modal-list .board-post:last-child { margin-bottom:0; }
  .request-form { gap:4px; margin-bottom:8px; }
  .request-form input,
  .request-form textarea { font-size:12px; padding:6px 8px; }
  .request-form textarea { min-height:56px; }
  .request-post { padding:6px; margin-bottom:6px; border-radius:6px; }
  .request-post .board-post-head { gap:4px; }
  .request-post .board-post-title { font-size:12px; }
  .request-post .board-post-body { font-size:11px; line-height:1.45; margin-top:4px; }
  .request-post .btn-del { font-size:10px; padding:1px 6px; min-height:22px; }
  .request-post.req-confirmed { opacity:0.45; }
  .request-post.req-confirmed .board-post-title { text-decoration:line-through; }
  .req-check-badge { color:var(--cta); font-size:11px; font-weight:700; }
  .btn-confirm { color:var(--cta); border-color:var(--cta); background:transparent; font-size:10px; padding:1px 6px; min-height:22px; }

  /* ── toast ── */
  #toastBox { position:fixed; bottom:24px; right:24px; z-index:9999; display:flex; flex-direction:column; gap:8px; pointer-events:none; }
  .toast { background:var(--raised); color:var(--text); border:1px solid var(--border); border-radius:var(--radius); padding:9px 16px; font-size:13px; font-weight:600; box-shadow:0 4px 14px rgba(0,0,0,.18); opacity:0; transform:translateY(10px); transition:opacity .22s,transform .22s; }
  .toast.show { opacity:1; transform:translateY(0); }
  .toast.ok  { border-left:3px solid var(--cta); }
  .toast.err { border-left:3px solid var(--sunday); }
  /* ── offline bar ── */
  #offlineBar { display:none; background:#ef4444; color:#fff; font-size:12px; font-weight:700; text-align:center; padding:5px 8px; border-radius:var(--radius); margin-bottom:8px; }
  /* ── schedule tooltip ── */
  .ev { position:relative; }
  .ev-star { font-size:9px; opacity:0; transition:opacity 0.15s; cursor:pointer; user-select:none; margin-right:2px; flex-shrink:0; }
  .ev:hover .ev-star { opacity:0.5; }
  .ev-star.hl { opacity:1 !important; color:#f59e0b; }
  .ev-tip { display:none; position:absolute; z-index:8000; top:calc(100% + 4px); left:0; min-width:160px; max-width:240px; background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:8px 10px; font-size:12px; box-shadow:0 4px 12px rgba(0,0,0,.18); pointer-events:none; white-space:pre-wrap; word-break:break-word; }
  .ev:hover .ev-tip { display:block; }
  .ev-tip-row { color:var(--text2); margin-bottom:3px; }
  .ev-tip-row span { color:var(--text); font-weight:700; }
  /* ── past / done event ── */
  .ev.past { opacity:.38; }
  .ev.done { text-decoration:line-through; opacity:.52; color:var(--text3); }
  /* ── note reads ── */
  .note-reads { display:flex; gap:5px; flex-wrap:wrap; padding:5px 2px 2px; }
  .note-read-chip { display:inline-flex; align-items:center; justify-content:center; min-width:26px; height:26px; border-radius:50%; background:var(--raised); border:1.5px solid var(--border); font-size:13px; line-height:1; transition:background .15s, border-color .15s; padding:0 3px; }
  .note-read-chip.seen { font-weight:700; }
  /* ── assignee avatar wrap ── */
  .avatar-wrap { position:relative; width:30px; height:30px; flex-shrink:0; }
  .assignee-avatar { width:30px; height:30px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:15px; overflow:hidden; user-select:none; }
  .avatar-remove { position:absolute; top:-4px; right:-5px; width:15px; height:15px; border-radius:50%; background:#ef4444; color:#fff; border:none; cursor:pointer; font-size:8px; display:flex; align-items:center; justify-content:center; padding:0; line-height:1; }
  /* ── assignee image upload button ── */
  .as-img-btn { cursor:pointer; font-size:16px; padding:2px 4px; border-radius:4px; border:1px solid var(--border); background:var(--raised); line-height:1.4; }
  .as-img-btn:hover { background:var(--card); border-color:var(--cta); }
  /* ── assignee multi-pick chips (schedule modal) ── */
  .assignee-pick-row { display:flex; flex-wrap:wrap; gap:8px; padding:2px 0; }
  .assignee-pick-chip { display:flex; flex-direction:column; align-items:center; gap:3px; cursor:pointer; padding:5px 6px; border-radius:10px; border:1.5px solid transparent; min-width:46px; transition:background .15s, border-color .15s; }
  .assignee-pick-chip:hover { background:var(--raised); }
  .assignee-pick-chip.sel { background:var(--raised); border-color:var(--cta); }
  .apc-av { width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:700; color:#fff; overflow:hidden; opacity:.5; user-select:none; transition:opacity .15s, box-shadow .15s; }
  .assignee-pick-chip.sel .apc-av { opacity:1; box-shadow:0 0 0 2px var(--card), 0 0 0 4px currentColor; }
  .apc-nm { font-size:10px; color:var(--text2); max-width:56px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .assignee-pick-chip.sel .apc-nm { color:var(--text); font-weight:700; }
  /* ── calendar event start-time badge (replaces star) ── */
  .ev-time { display:inline-block; font-size:10px; font-weight:800; opacity:.8; margin-right:3px; letter-spacing:-.3px; }
  /* ── 구글 캘린더 가져오기 ──
     배경은 CSS 변수 --gcal-c (캘린더별 색)로 옅게 깔고,
     오른쪽 끝에만 가는 빗금을 얹어 "다른 출처"임을 표시.
     (전체에 빗금 깔면 가독성 저하 → 우측 28px 영역만) */
  .ev.gcal {
    cursor:default;
    background:
      repeating-linear-gradient(135deg,
        transparent 0 5px,
        var(--gcal-c, rgba(0,0,0,0.4)) 5px 6px,
        transparent 6px 9px) right center / 28px 100% no-repeat,
      var(--gcal-bg, rgba(66,133,244,0.08)) !important;
  }
  .ev.gcal:hover { filter:brightness(1.08); }
  .gcal-add-row { display:flex; gap:6px; align-items:center; margin-top:6px; flex-wrap:wrap; }
  .gcal-row { display:flex; gap:6px; align-items:center; flex-wrap:wrap; padding:4px 0; border-bottom:1px dashed var(--border); }
  .gcal-row:last-child { border-bottom:none; }
  .gcal-name { font-size:13px; font-weight:700; }
  /* #129: 피드 동기화 상태(성공 N건 / 실패). 실패는 빨강 대신 기본색 강조 + 안내 sub-line. */
  .gcal-status { font-size:11px; margin-left:auto; white-space:nowrap; }
  .gcal-status.fail { color:var(--text); font-weight:700; }
  .gcal-hint { flex-basis:100%; font-size:11px; color:var(--text3); line-height:1.4; margin:2px 0 2px 30px; }
  /* ── category highlight label ── */
  .cat-hl-label { font-size:11px; display:flex; align-items:center; gap:3px; color:var(--text2); white-space:nowrap; }
  /* ── note pin ── */
  .pin-btn.active { color:var(--cta); border-color:var(--cta); }
  .note.pinned::before { content:''; position:absolute; top:0; left:0; right:0; height:4px; background:var(--pin-color, var(--cta)); border-radius:var(--radius) var(--radius) 0 0; z-index:1; }
  .pin-badge { position:absolute; top:2px; right:4px; font-size:13px; line-height:1; z-index:2; pointer-events:none; filter:drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
  /* ── search / note filter ── */
  .note-filter-bar { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:8px; }
  .note-filter-bar input { flex:1 1 140px; }
  /* ── list extra ── */
  .list-ctrl { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:8px; }
  .list-ctrl button.active { background:var(--cta); color:var(--cta-text); border-color:var(--cta); }
  .completed-section { opacity:.55; }
  .completed-section td { text-decoration:line-through; color:var(--text2); }
  /* ── 이름 선택 모달 ── */
  .name-modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,.55); z-index:9000; display:flex; align-items:center; justify-content:center; }
  .name-modal-card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:24px; min-width:260px; box-shadow:var(--shadow); }
  .name-modal-card h3 { font-size:15px; font-weight:800; margin:0 0 8px; }
  .name-modal-card p { font-size:12px; color:var(--text2); margin:0 0 14px; }
  .name-modal-btns { display:flex; flex-direction:column; gap:8px; }
  .name-modal-btns button { font-size:14px; font-weight:700; padding:9px; text-align:left; }
  /* ── 기능 요청 (feature_requests) ── */
  .fr-post { border:1px solid var(--border); border-radius:var(--radius); padding:8px 10px; margin-bottom:6px; font-size:12px; }
  .fr-post.fr-confirmed { opacity:.55; }
  .fr-post-head { display:flex; align-items:center; gap:4px; cursor:pointer; }
  .fr-post-title { flex:1; font-weight:700; font-size:12px; }
  .fr-post-date { font-size:10px; color:var(--text3); white-space:nowrap; }
  .fr-check-badge { font-size:10px; font-weight:700; color:var(--cta); }
  .fr-post-body { margin-top:6px; color:var(--text2); font-size:12px; white-space:pre-wrap; }
  .fr-post-actions { display:flex; justify-content:flex-end; gap:5px; margin-top:6px; }
  .fr-paging { display:flex; align-items:center; justify-content:center; gap:10px; margin-top:8px; padding-top:8px; border-top:1px solid var(--border); }
  /* ── 메모 댓글 ── */
  .note.nc-open { overflow:visible !important; z-index:20; }
  .note-comments-area { position:absolute; top:100%; left:0; right:0; z-index:50; background:var(--card); border:1px solid var(--border); border-top:none; border-radius:0 0 var(--radius) var(--radius); padding:6px 8px 12px; box-shadow:var(--shadow); max-height:200px; overflow-y:auto; }
  .nc-no-sb { font-size:11px; color:var(--text3); padding:1px 0; }
  .nc-empty { font-size:11px; color:var(--text3); padding:1px 0; }
  .nc-item { display:flex; align-items:center; gap:4px; padding:2px 0; border-bottom:1px solid var(--border); }
  .nc-item:last-of-type { border-bottom:none; }
  .nc-author { font-size:10px; font-weight:700; color:var(--text); white-space:nowrap; flex-shrink:0; }
  .nc-content { font-size:11px; color:var(--text2); flex:1 1 60px; word-break:break-word; min-width:0; }
  .nc-del { flex-shrink:0; background:none; border:none; color:var(--text3); font-size:13px; line-height:1; padding:0 2px; cursor:pointer; opacity:.6; }
  .nc-del:hover { opacity:1; color:var(--danger,#e53); }
  .nc-input-row { display:flex; gap:4px; align-items:flex-end; margin-top:5px; }
  .nc-textarea { flex:1; resize:none; font-size:11px; padding:3px 5px; min-height:30px; }
  .nc-submit-btn { flex-shrink:0; width:22px; height:22px; min-width:22px; border-radius:50%; background:var(--cta); color:#fff; border:none; font-size:13px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; }
  .nc-submit-btn:hover { opacity:.85; }
  .note-actions .btn-nc-toggle { display:none; }
  .note-actions .nc-badge { display:inline-flex; align-items:center; justify-content:center; width:auto; min-width:auto; height:16px; padding:0 4px; font-size:10px; font-weight:700; background:var(--cta); color:#fff; border:none; border-radius:8px; cursor:pointer; opacity:1; line-height:1; }
  .note-actions .nc-empty-toggle { display:inline-flex; align-items:center; justify-content:center; width:auto; min-width:auto; height:16px; padding:0 4px; font-size:10px; background:transparent; color:var(--text3); border:1px solid var(--border); border-radius:8px; cursor:pointer; opacity:0; transition:opacity .15s; line-height:1; }
  .note:hover .note-actions .nc-empty-toggle,
  .note:focus-within .note-actions .nc-empty-toggle { opacity:.85; }
  .note-actions .nc-empty-toggle.active { opacity:1 !important; }
  /* ── 이 PC 설정 내 이름 ── */
  .my-name-setting { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
  .my-name-setting span { font-size:12px; color:var(--text2); }
  .my-name-setting strong { font-size:12px; }
  /* ====== 헤더 시계 ====== */
  .header-clock { font-size:12px; color:var(--text2); font-variant-numeric:tabular-nums; letter-spacing:-.02em; white-space:nowrap; -webkit-app-region:no-drag; }

  /* ====== 타이머/스톱워치 floating 위젯 ====== */
  .timer-widget { position:fixed; right:20px; bottom:20px; z-index:9999; width:280px; background:var(--card); border:1px solid var(--border); border-radius:var(--radius); box-shadow:0 8px 32px rgba(0,0,0,.32); display:none; flex-direction:column; overflow:hidden; }
  .tw-drag-handle { display:flex; align-items:center; justify-content:space-between; padding:6px 8px; background:var(--raised); border-bottom:1px solid var(--border); cursor:move; user-select:none; touch-action:none; }
  .tw-tabs { display:flex; gap:4px; }
  .tw-tab { padding:3px 10px; font-size:12px; font-weight:700; background:transparent; border:1px solid transparent; border-radius:var(--radius); color:var(--text2); }
  .tw-tab.active { background:var(--cta); color:var(--cta-text); border-color:var(--cta); }
  .tw-close { width:24px; height:24px; padding:0; font-size:13px; }
  .tw-panel { padding:12px; display:flex; flex-direction:column; align-items:center; gap:8px; }
  .tw-svg-wrap { width:200px; height:200px; position:relative; }
  .tw-svg-wrap svg { width:100%; height:100%; }
  .tw-preset-row { display:flex; gap:4px; flex-wrap:wrap; justify-content:center; align-items:center; }
  .tw-preset-row button { min-width:48px; padding:4px 8px; font-size:12px; font-weight:700; }
  .tw-arc-color { width:22px; height:22px; padding:0; border:1px solid var(--border); border-radius:50%; background:transparent; cursor:pointer; overflow:hidden; margin-left:2px; }
  .tw-arc-color::-webkit-color-swatch-wrapper { padding:0; }
  .tw-arc-color::-webkit-color-swatch { border:none; border-radius:50%; }
  .tw-adj-row { display:flex; gap:4px; flex-wrap:wrap; justify-content:center; }
  .tw-adj-row button { min-width:42px; padding:4px 6px; font-size:11px; }

  /* ====== 타이머 팝아웃 모드 ====== */
  html.timer-popout-mode, body.timer-popout-mode {
    background:transparent !important; margin:0; padding:0; overflow:hidden;
  }
  body.timer-popout-mode > *:not(#timerWidget):not(#toastBox):not(#alarmModal) { display:none !important; }
  body.timer-popout-mode .timer-widget { border-radius:0; box-shadow:none; }
  .tw-ctrl-row { display:flex; gap:6px; width:100%; }
  .tw-ctrl-row button { flex:1; padding:6px; font-size:13px; }
  .tw-stop-display { display:flex; align-items:center; gap:10px; width:100%; }
  .tw-stop-time { flex:1; font-size:26px; font-weight:900; letter-spacing:-0.04em; font-variant-numeric:tabular-nums; color:var(--text); }
  .tw-stop-svg-wrap { width:64px; height:64px; flex-shrink:0; }
  .tw-stop-svg-wrap svg { width:100%; height:100%; }
  .tw-lap-list { width:100%; max-height:120px; overflow-y:auto; border-top:1px solid var(--border); margin-top:4px; padding-top:6px; }
  .tw-lap-item { display:flex; justify-content:space-between; padding:3px 4px; font-size:12px; border-bottom:1px dashed var(--border); }
  .tw-lap-item:last-child { border-bottom:none; }

  /* ====== 알림 흔들기 ====== */
  @keyframes alarm-shake-kf {
    0%,100% { transform:translate(0,0); }
    20% { transform:translate(-6px,2px); }
    40% { transform:translate(6px,-3px); }
    60% { transform:translate(-4px,2px); }
    80% { transform:translate(4px,-2px); }
  }
  body.alarm-shake { animation:alarm-shake-kf 0.5s ease-in-out 1; }

  /* ====== 알림 화면 번쩍임 ====== */
  #alarmFlashOverlay { position:fixed; inset:0; z-index:99998; pointer-events:none; background:var(--cta); opacity:0; }
  @keyframes alarm-flash-kf {
    0%,100% { opacity:0; }
    12%,40%,68% { opacity:0; }
    26%,54%,82% { opacity:0.42; }
  }
  #alarmFlashOverlay.on { animation:alarm-flash-kf 1.5s ease-in-out 1; }

  /* ====== 강조 색상 선택 스와치 ====== */
  .accent-swatch { width:24px; height:24px; min-height:24px; padding:0; border-radius:50%; border:2px solid transparent; box-shadow:0 0 0 1px var(--border); cursor:pointer; flex:0 0 auto; }
  .accent-swatch:hover { box-shadow:0 0 0 2px var(--text3); }
  .accent-swatch.active { border-color:var(--text); }
  .accent-custom { width:30px; height:28px; min-height:28px; padding:1px; border:1px solid var(--border); border-radius:6px; cursor:pointer; }
  .accent-reset { min-height:26px; padding:3px 9px; }

  /* ====== 일과 (routine) 탭 ====== */
  .routine-controls { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:10px; box-shadow:var(--shadow); margin-bottom:10px; }
  .routine-controls .routine-copy-dest + label,
  .routine-controls label { font-size:12px; color:var(--text2); display:inline-flex; align-items:center; gap:2px; }
  .routine-grid-outer { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); overflow:auto; max-height:75vh; }
  .routine-grid {
    position:relative;
    display:grid;
    grid-template-columns:56px repeat(7, minmax(72px, 1fr));
    grid-auto-rows:14px;
    min-width:600px;
  }
  .rt-header { background:var(--raised); padding:6px 4px; font-size:12px; font-weight:800; text-align:center; border-bottom:1px solid var(--border); border-right:1px solid var(--border); position:sticky; top:0; z-index:5; grid-row:span 1; }
  .rt-header.sun { color:var(--sunday); }
  .rt-header.sat { color:#3B82F6; }
  .rt-time-col { background:var(--raised); }
  .rt-time-cell { font-size:10px; color:var(--text3); text-align:right; padding-right:4px; border-right:1px solid var(--border); border-bottom:1px dashed var(--border); grid-column:1; height:14px; line-height:14px; }
  .rt-cell { border-right:1px solid var(--border); border-bottom:1px dashed var(--border); height:14px; cursor:cell; touch-action:none; }
  .rt-cell:hover { background:var(--raised); }
  .rt-block { position:absolute; padding:2px 4px; border-radius:3px; cursor:grab; box-shadow:0 1px 3px rgba(0,0,0,.2); overflow:hidden; font-size:11px; color:#111; touch-action:none; }
  .rt-block:active { cursor:grabbing; }
  .rt-block-label { font-weight:700; line-height:1.1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .rt-block-time { font-size:9px; opacity:0.7; line-height:1.1; }
  .rt-block-handle { position:absolute; left:0; right:0; bottom:0; height:5px; cursor:ns-resize; background:rgba(0,0,0,.15); }
  .rt-ghost { pointer-events:none; }
  .routine-block-edit { background:var(--card); border:1px solid var(--cta); border-radius:var(--radius); padding:12px; margin-top:10px; box-shadow:var(--shadow); max-width:360px; }
  .public-routine-item { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px; border-bottom:1px solid var(--border); }
  .public-routine-item:last-child { border-bottom:none; }

  /* ===== 메모 칸반 (Phase 2 / 3B-2b) ===== */
  .memo-toolbar { display:flex; gap:8px; align-items:center; margin-bottom:10px; flex-wrap:wrap; }
  .memo-trash-zone { margin-left:auto; display:flex; align-items:center; gap:6px; padding:6px 14px; border:1px dashed var(--border); border-radius:var(--radius); color:var(--text2); cursor:pointer; font-size:13px; font-weight:700; white-space:nowrap; }
  .memo-trash-badge { background:var(--card); border-radius:var(--pill); padding:1px 7px; font-size:11px; font-weight:600; }
  .memo-trash-zone.sortable-drag, .memo-trash-zone:hover { border-color:var(--sunday); color:var(--sunday); }
  /* 2D 컬럼-메이슨리: 컬럼 4개(폭에 따라 1~4 표시), 각 컬럼에 레인 세로 스택 */
  /* --lane-w 단일 소스(JS MEMO_LANE_SIZES와 동기). applyLaneSize가 <html>에 inline 오버라이드 */
  :root { --lane-w:260px; }
  .memo-cols { display:flex; gap:12px; align-items:flex-start; overflow-x:auto; overflow-y:visible; padding-bottom:8px; min-height:0; }
  .memo-col { flex:0 0 var(--lane-w); width:var(--lane-w); display:flex; flex-direction:column; gap:12px; min-height:120px; }
  /* #46 가로 모드: 레인 한 줄 나열, 넘치면 가로 스크롤. 폭은 26차 레인크기(--lane-w) 그대로. */
  .memo-lanes-h { display:flex; gap:12px; align-items:flex-start; overflow-x:auto; overflow-y:visible; padding-bottom:8px; min-height:0; }
  .memo-lanes-h .memo-lane { flex:0 0 var(--lane-w); width:var(--lane-w); }
  .memo-lane { width:100%; box-sizing:border-box; background:var(--raised); border:1px solid var(--border); border-radius:var(--radius); display:flex; flex-direction:column; max-height:60vh; }
  .memo-lane-head { display:flex; align-items:center; gap:6px; padding:8px 10px; border-bottom:1px solid var(--border); cursor:grab; }
  .memo-lane-head:active { cursor:grabbing; }
  .memo-lane-name { font-weight:800; font-size:14px; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .memo-lane-count { font-size:11px; color:var(--text2); background:var(--card); border-radius:var(--pill); padding:1px 8px; }
  .memo-lane-del { padding:2px 6px; font-size:11px; color:var(--text3); border-color:transparent; background:transparent; min-height:auto; }
  .memo-lane-del:hover { color:var(--sunday); }
  /* 레인 색상 칩(#44 / 테두리 가시성 #47): 현 레인색 작은 원(무색=외곽선만) */
  /* 색칩 기본: 얇은 어두운 윤곽 — 연한 파스텔이 흰 배경/헤더에 묻히지 않게(라이트 테마 핵심). */
  .memo-lane-color { width:14px; height:14px; min-height:auto; padding:0; border-radius:50%; border:1px solid rgba(0,0,0,.25); cursor:pointer; flex:0 0 auto; box-sizing:border-box; }
  /* 무색(null): 채움이 없어 테두리가 곧 표시자 → x 버튼과 동일 색(--text3)·1px로 눈에 안 띄게 통일. */
  .memo-lane-color[style*="transparent"] { border-width:0.5px; border-color:var(--text3); }
  .memo-lane-color:hover { border-color:var(--cta); }
  .memo-lane-color-pop { position:fixed; z-index:200; display:flex; flex-wrap:wrap; gap:6px; width:152px; padding:8px; background:var(--raised); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); }
  .memo-lane-swatch { width:24px; height:24px; padding:0; min-height:auto; border-radius:50%; border:1px solid var(--border); cursor:pointer; font-size:12px; color:var(--text2); display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; }
  .memo-lane-swatch.active { box-shadow:0 0 0 2px var(--cta); border-color:var(--cta); }
  .memo-cards { flex:1; overflow-y:auto; padding:8px; display:flex; flex-direction:column; gap:6px; min-height:48px; }
  .memo-card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:8px 10px; font-size:13px; cursor:pointer; box-shadow:var(--shadow); max-height:120px; overflow:hidden; }
  .memo-card:hover { border-color:var(--cta); }
  .memo-card-content { word-break:break-word; white-space:pre-wrap; line-height:1.4; }
  .memo-card-title { font-weight:800; font-size:13px; line-height:1.35; word-break:break-word; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
  .memo-card-preview { margin-top:4px; font-size:12px; color:var(--text2); line-height:1.4; word-break:break-word; white-space:pre-wrap; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; }
  .memo-card-title:only-child { -webkit-line-clamp:3; }
  .memo-done .memo-card-title, .memo-done .memo-card-preview, .memo-done .memo-card-content { text-decoration:line-through; opacity:0.55; }
  /* 색칠 카드: 미리보기 가독성 위해 본문도 카드 글자색 따름 */
  .memo-card[style*="background"] .memo-card-preview { color:inherit; opacity:0.85; }
  /* 빠른추가: 평소 '+ 카드' 버튼 → 클릭 시 인라인 폼(제목+본문) */
  .memo-add-btn { display:block; box-sizing:border-box; width:calc(100% - 16px); margin:8px; padding:6px 8px; border:1px dashed var(--border); border-radius:var(--radius); background:transparent; color:var(--text2); font-size:13px; text-align:left; cursor:pointer; }
  .memo-add-btn:hover { color:var(--text); border-color:var(--text3); background:var(--card); }
  .memo-add-form { display:flex; flex-direction:column; gap:6px; margin:8px; }
  .memo-add-form .memo-add-title, .memo-add-form .memo-add-body { box-sizing:border-box; width:100%; padding:6px 8px; border:1px solid var(--border); border-radius:var(--radius); background:var(--card); color:var(--text); font-size:13px; font-family:inherit; }
  .memo-add-form .memo-add-body { resize:vertical; min-height:48px; line-height:1.4; }
  .memo-ghost { opacity:0.4; }
  .memo-chosen { box-shadow:0 0 0 2px var(--cta); }

  /* ===== 캔버스(무한 팬/줌 서피스) — #70 ===== */
  .memo-canvas { position:relative; width:100%; height:72vh; min-height:420px; overflow:hidden;
    background:var(--bg); border:1px solid var(--border); border-radius:var(--radius);
    touch-action:none; cursor:grab; }
  .memo-canvas.panning { cursor:grabbing; }
  .memo-surface { position:absolute; left:0; top:0; width:0; height:0; transform-origin:0 0; }
  /* 레인: 서피스 위 절대좌표 프레임(좌표·크기는 인라인 style) */
  .memo-canvas .memo-lane { position:absolute; width:auto; max-height:none; overflow:hidden; box-shadow:var(--shadow); }
  .memo-canvas .memo-lane-head { cursor:grab; user-select:none; }
  .memo-canvas .memo-lane-head:active { cursor:grabbing; }
  /* 카드 컨테이너(#79): 세로 스택 리스트 — 상단부터 가운데 정렬, 넘치면 스크롤 */
  .memo-canvas .memo-cards { position:relative; flex:1; min-height:0; display:flex; flex-direction:column; align-items:center; gap:6px; overflow-y:auto; overflow-x:hidden; padding:8px; }
  .memo-canvas .memo-card { position:relative; box-sizing:border-box; flex:0 0 auto; }
  /* 리사이즈 핸들(우하단) */
  .memo-lane-resize { position:absolute; right:0; bottom:0; width:16px; height:16px; cursor:nwse-resize; z-index:3; }
  .memo-lane-resize::after { content:''; position:absolute; right:3px; bottom:3px; width:8px; height:8px;
    border-right:2px solid var(--text3); border-bottom:2px solid var(--text3); border-bottom-right-radius:2px; }
  .memo-lane:hover .memo-lane-resize::after { border-color:var(--cta); }
  /* 카드 재정렬 드래그(#79, SortableJS) */
  .memo-card.sortable-ghost { opacity:0.4; }
  .memo-card.sortable-chosen { box-shadow:0 8px 22px rgba(0,0,0,.35); cursor:grabbing; }
  .memo-card.sortable-drag { opacity:0.9; }
  /* 리사이즈 치수 라벨(#72) */
  .memo-size-label { position:fixed; z-index:1100; pointer-events:none; font-size:11px; font-weight:700;
    padding:2px 7px; background:var(--text); color:var(--bg); border-radius:4px; white-space:nowrap; }
  /* 화면고정(잠금): 커서만 변경. 버튼은 라벨(🔒/🔓)로만 상태 표시(#76-A: active 상태색 제거) */
  .memo-canvas.locked-view { cursor:default; }

  /* 미니맵(우하단 고정): 레인 축소뷰 + 뷰포트 사각형, 클릭 이동 */
  .memo-minimap { position:absolute; right:14px; bottom:14px; z-index:5; background:var(--raised);
    border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow);
    padding:4px; cursor:pointer; line-height:0; }
  .memo-minimap canvas { display:block; border-radius:4px; }

  /* 모바일 폴백: 레인=세로 폴더 리스트(접기), 카드=세로 리스트 */
  .memo-mobile { display:flex; flex-direction:column; gap:12px; }
  .memo-mlane { background:var(--raised); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
  .memo-mlane-head { display:flex; align-items:center; gap:8px; padding:10px 12px; cursor:pointer; border-bottom:1px solid var(--border); user-select:none; }
  .memo-mlane-caret { font-size:12px; color:var(--text2); width:12px; flex:0 0 auto; }
  .memo-mlane-cards { padding:8px; display:flex; flex-direction:column; gap:6px; }
  .memo-mobile .memo-card { position:static; width:auto; max-height:120px; }

  /* ===== 관리자 리스트(?admin=1) — 순수 리스트, 장식 없음 ===== */
  .admin-card { background:var(--raised); border:1px solid var(--border); border-radius:var(--radius);
    box-shadow:var(--shadow); padding:18px; width:min(1100px, 94vw); max-height:88vh; overflow:auto; }
  .admin-teams-wrap { overflow:auto; }
  .admin-empty { padding:16px; color:var(--text2); font-size:13px; }
  .admin-table { width:100%; border-collapse:collapse; font-size:12px; }
  .admin-table th, .admin-table td { border:1px solid var(--border); padding:5px 8px; text-align:left; white-space:nowrap; vertical-align:middle; }
  .admin-table th { background:var(--card); font-weight:700; }
  .admin-btn { font-size:11px; padding:2px 8px; min-height:auto; border:1px solid var(--border); background:var(--card); color:var(--text); border-radius:var(--radius); cursor:pointer; }
  .admin-btn:hover { border-color:var(--cta); }
  .admin-activate { margin-left:6px; }
  /* #114: 어드민 이용기간 관리 */
  .admin-name-btn { background:none; border:none; padding:0; color:var(--cta); cursor:pointer; font:inherit; text-decoration:underline; }
  .admin-billing-cell { display:flex; gap:4px; flex-wrap:wrap; }
  .admin-billing-log { margin-top:14px; border:1px solid var(--border); border-radius:var(--radius); padding:12px; background:var(--card); }
  .admin-billing-log-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
  .admin-billing-log .admin-table { margin-top:0; }
  /* #114: 이용 종료 임박 배너 */
  .expiry-banner { position:fixed; top:0; left:0; right:0; z-index:500; display:flex; align-items:center; justify-content:center; gap:12px;
    padding:8px 16px; background:var(--cta); color:#fff; font-size:13px; text-align:center; box-shadow:var(--shadow); box-sizing:border-box; }
  /* #128: 긴 문구·긴 토큰이 고정 배너를 넘쳐 좌우로 잘리지 않도록 텍스트가 줄바꿈되게 */
  #teamExpiryBannerText { min-width:0; overflow-wrap:anywhere; word-break:break-word; }
  .expiry-banner-x { background:none; border:none; color:#fff; cursor:pointer; font-size:13px; line-height:1; padding:2px 6px; }

  /* 본문 라벨 우측 고정 서식 버튼(B/I/S) — #72 (플로팅 폐기) */
  .memo-body-labelrow { display:flex; align-items:center; justify-content:space-between; gap:8px; }
  .memo-fmt-btns { display:flex; gap:3px; }
  .memo-fmt-btns button { min-width:26px; min-height:24px; padding:0 7px; border:1px solid var(--border); background:var(--card);
    color:var(--text); border-radius:4px; cursor:pointer; font-size:13px; line-height:1; }
  .memo-fmt-btns button:hover { border-color:var(--cta); }
  .memo-fmt-btns button.active { background:var(--cta); color:#fff; border-color:var(--cta); }
  .memo-fmt-btns button.active b, .memo-fmt-btns button.active i, .memo-fmt-btns button.active s { color:#fff; }
  .memo-swatch-row { display:flex; gap:8px; flex-wrap:wrap; }
  .memo-swatch { width:30px; height:30px; border-radius:50%; border:1px solid var(--border); cursor:pointer; font-size:10px; color:var(--text2); display:inline-flex; align-items:center; justify-content:center; padding:0; }
  .memo-swatch.active { box-shadow:0 0 0 2px var(--cta); border-color:var(--cta); }
  /* 상단 검색 */
  .memo-search { position:relative; display:inline-flex; align-items:center; }
  .memo-search input { box-sizing:border-box; width:200px; max-width:42vw; padding:6px 26px 6px 10px; border:1px solid var(--border); border-radius:var(--pill); background:var(--card); color:var(--text); font-size:13px; }
  .memo-search-clear { position:absolute; right:6px; top:50%; transform:translateY(-50%); border:none; background:transparent; color:var(--text3); cursor:pointer; font-size:12px; padding:2px 4px; min-height:auto; line-height:1; }
  .memo-search-clear:hover { color:var(--text); }
  /* 상세(카드) 모달 확대 */
  .memo-card-modal-card { max-width:560px; width:92vw; }
  /* #122: 본문 WYSIWYG 에디터(contenteditable). textarea 스타일과 동일한 외형 + 리치 표시 */
  .memo-card-editor { width:100%; box-sizing:border-box; min-height:200px; max-height:50vh; overflow-y:auto;
    resize:vertical; line-height:1.5; font-size:13px; padding:6px; border:1px solid var(--border);
    border-radius:var(--radius); background:var(--card); color:var(--text); white-space:pre-wrap;
    word-break:break-word; outline:none; }
  .memo-card-editor:focus { border-color:var(--cta); }
  .memo-card-editor:empty::before { content:attr(data-placeholder); color:var(--text3); pointer-events:none; }
  /* 자동저장 표시(작게) */
  .memo-save-state { font-size:11px; color:var(--text3); white-space:nowrap; }
  .memo-save-state.saved { color:var(--cta); }
  .memo-save-state.err { color:var(--sunday); }
  /* ===== 댓글 알림 벨 ===== */
  .memo-bell-wrap { position:relative; display:inline-flex; }
  .memo-bell-btn { position:relative; display:inline-flex; align-items:center; justify-content:center; padding:4px 8px; line-height:1; }
  .memo-bell-ico { display:inline-flex; }
  .memo-bell-ico svg { width:16px; height:16px; display:block; }
  .memo-bell-badge { position:absolute; top:-4px; right:-4px; min-width:16px; height:16px; box-sizing:border-box; padding:0 4px; border-radius:8px; background:var(--sunday); color:#fff; font-size:10px; font-weight:700; line-height:16px; text-align:center; }
  .memo-bell-dropdown { position:absolute; top:calc(100% + 6px); right:0; width:300px; max-width:86vw; max-height:60vh; overflow-y:auto; background:var(--raised); border:1px solid var(--border); border-radius:var(--radius); box-shadow:0 6px 22px rgba(0,0,0,.22); z-index:50; }
  .memo-bell-head { padding:8px 12px; font-size:12px; font-weight:800; color:var(--text2); border-bottom:1px solid var(--border); }
  .memo-bell-list { display:flex; flex-direction:column; }
  .memo-bell-empty { padding:16px 12px; font-size:12px; text-align:center; }
  .memo-bell-item { display:flex; flex-direction:column; gap:2px; align-items:stretch; text-align:left; width:100%; padding:9px 12px; border:none; border-bottom:1px solid var(--border); background:transparent; color:var(--text); cursor:pointer; min-height:auto; }
  .memo-bell-item:last-child { border-bottom:none; }
  .memo-bell-item:hover { background:var(--card); }
  .memo-bell-item-top { display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
  .memo-bell-who { font-size:12px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .memo-bell-time { font-size:11px; color:var(--text3); flex:0 0 auto; }
  .memo-bell-title { font-size:12px; color:var(--text2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  /* ===== #96 헤더 온라인 접속자 (Realtime Presence) ===== */
  .presence-wrap { position:relative; display:inline-flex; }
  .presence-stack { display:inline-flex; align-items:center; cursor:pointer; }
  .presence-stack:empty { display:none; }
  .presence-av { width:22px; height:22px; border-radius:50%; font-size:11px; font-weight:700; display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; margin-left:-6px; border:2px solid var(--bg); background:var(--card); color:var(--text2); flex:0 0 auto; overflow:hidden; }
  .presence-av:first-child { margin-left:0; }
  .presence-more { width:auto; min-width:22px; padding:0 6px; border-radius:11px; background:var(--card); border:2px solid var(--bg); color:var(--text2); font-size:11px; font-weight:700; }
  .presence-dropdown { position:absolute; top:calc(100% + 6px); right:0; width:220px; max-width:80vw; max-height:60vh; overflow-y:auto; background:var(--raised); border:1px solid var(--border); border-radius:var(--radius); box-shadow:0 6px 22px rgba(0,0,0,.22); z-index:50; }
  .presence-dd-head { padding:8px 12px; font-size:12px; font-weight:800; color:var(--text2); border-bottom:1px solid var(--border); }
  .presence-dd-item { display:flex; align-items:center; gap:8px; padding:8px 12px; border-bottom:1px solid var(--border); }
  .presence-dd-item:last-child { border-bottom:none; }
  .presence-dd-name { font-size:13px; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; flex:1; min-width:0; }
  .presence-dot { width:8px; height:8px; border-radius:50%; flex:0 0 auto; background:var(--text3); }
  .presence-dot.on { background:#22C55E; }
  .presence-dd-empty { padding:16px 12px; font-size:12px; text-align:center; }
  /* 작성자 표시 */
  .memo-author { display:flex; align-items:center; gap:6px; margin-bottom:10px; }
  .memo-author-avatar { width:22px; height:22px; border-radius:50%; object-fit:cover; flex:0 0 auto; }
  .memo-author-initial { display:inline-flex; align-items:center; justify-content:center; background:var(--card); border:1px solid var(--border); font-size:11px; font-weight:700; color:var(--text2); }
  .memo-author-name { font-size:12px; color:var(--text2); }
  /* ===== Stage 5b: 팀 관리 모달 멤버 목록 ===== */
  .team-member-list { display:flex; flex-direction:column; gap:6px; max-height:340px; overflow:auto; }
  .team-member-row { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:7px 8px; border:1px solid var(--border); border-radius:var(--radius); }
  .team-member-info { display:flex; align-items:center; gap:8px; min-width:0; flex:1; }
  .team-member-meta { display:flex; flex-direction:column; min-width:0; }
  .team-member-name { font-size:13px; color:var(--text); font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .team-member-sub { font-size:11px; }
  .team-role-badge { flex:0 0 auto; font-size:10px; color:var(--text3); border:1px solid var(--border); border-radius:var(--pill); padding:0 6px; line-height:1.7; }
  .team-role-badge.owner { color:var(--cta); border-color:var(--cta); }
  .team-member-actions { display:flex; gap:4px; flex:0 0 auto; }
  /* ===== #125 팀 브랜딩(로고/배경) ===== */
  .header-logo { width:40px; height:40px; max-width:100%; border-radius:8px; object-fit:cover; flex:0 0 auto; border:1px solid var(--border); background:var(--card); }
  .team-branding-banner { height:96px; max-width:100%; box-sizing:border-box; border-radius:var(--radius); margin:8px 0; background-size:cover; background-position:center; background-repeat:no-repeat; }
  .team-branding-section { margin:0 0 12px; }
  .branding-title { font-size:12px; font-weight:700; color:var(--text2); margin:0 0 6px; }
  .branding-note { font-size:12px; padding:2px 0 8px; }
  .branding-row { display:flex; align-items:center; gap:8px; margin-bottom:6px; }
  .branding-label { font-size:13px; color:var(--text); font-weight:600; width:40px; flex:0 0 auto; }
  .branding-state { font-size:12px; flex:1; }
  .branding-pick { cursor:pointer; }
  .branding-msg { font-size:12px; min-height:14px; }
  /* URL 텍스트 표시 (카드 미리보기: 시각만 / 상세: 클릭 가능) */
  .memo-url-text { color:var(--cta); text-decoration:underline; text-decoration-style:dotted; }
  .memo-url-link { color:var(--cta); text-decoration:underline; }
  .memo-url-link:hover { opacity:0.8; }
  /* 상세 모달 본문 렌더 미리보기 */
  .memo-body-preview { margin-top:8px; padding:8px 10px; border:1px dashed var(--border); border-radius:var(--radius); background:var(--bg); font-size:13px; line-height:1.6; white-space:pre-wrap; word-break:break-word; max-height:160px; overflow-y:auto; }
  /* 절취선 (제목/본문 구분, 테마 border 토큰 자동 연동) */
  .memo-card-divider { border:none; border-top:1px dashed var(--border); margin:5px 0; }
  /* 카드 미리보기 줄 수 (기본 3줄은 .memo-card-preview의 -webkit-line-clamp:3 적용) */
  body[data-memo-preview="5"] .memo-card { max-height:none; overflow:visible; }
  body[data-memo-preview="5"] .memo-card-preview { -webkit-line-clamp:5; overflow:hidden; }
  body[data-memo-preview="all"] .memo-card { max-height:none; overflow:visible; }
  body[data-memo-preview="all"] .memo-card-preview { display:block; overflow:visible; -webkit-line-clamp:unset; }
  .memo-trash-item { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px; border-bottom:1px solid var(--border); }
  .memo-trash-item:last-child { border-bottom:none; }
  .memo-trash-text { flex:1; word-break:break-word; }
  /* 메모 이미지 (Phase 3D) */
  .memo-img-controls { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
  .memo-img-pick { cursor:pointer; display:inline-flex; align-items:center; border:1px solid var(--border); border-radius:var(--radius); background:var(--card); color:var(--text); padding:6px 10px; }
  .memo-img-pick:hover { border-color:var(--cta); }
  .memo-img-hint { font-size:12px; }
  .memo-img-status { margin-top:6px; font-size:12px; color:var(--text2); }
  .memo-img-status.memo-img-status-err { color:var(--sunday); }
  .memo-img-grid { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
  .memo-img-item { position:relative; width:96px; height:96px; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:var(--bg); }
  .memo-img-thumb { width:100%; height:100%; object-fit:cover; display:block; }
  .memo-img-del { position:absolute; top:2px; right:2px; min-height:auto; padding:1px 6px; font-size:11px; line-height:1.4; border-color:transparent; background:var(--card); opacity:0.9; }
  .memo-img-del:hover { opacity:1; }

  /* 카드 표면 메타 풋터: 체크리스트·사진·댓글 (한 줄, 왼쪽 정렬) */
  .memo-card { position:relative; }
  .memo-card-meta { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:6px; font-size:11px; color:var(--text3); line-height:1.5; pointer-events:none; }
  .memo-meta-item { display:inline-flex; align-items:center; gap:3px; }
  .memo-cbadge-ico, .memo-check-ico, .memo-img-ico { display:inline-block; vertical-align:-1px; }
  .memo-card[style*="background"] .memo-card-meta { color:inherit; opacity:0.85; }
  .memo-done .memo-card-meta { opacity:0.5; }

  /* 안읽음 표시 (Phase 4B / 색 분기 #48) — 카드 우상단 점(삭제 버튼 왼쪽).
     일반 안읽음=노랑 / 내가 @멘션된 미독=빨강. 흰 테두리+어두운 외곽링으로 어떤 카드 배경색에도 또렷. */
  .memo-card-unread { position:absolute; top:7px; right:23px; width:8px; height:8px; border-radius:50%; background:#FACC15; border:1.5px solid #fff; box-shadow:0 0 0 1px rgba(0,0,0,.35); box-sizing:content-box; pointer-events:none; }
  .memo-card-unread--tag { background:#EF4444; }

  /* 삭제(휴지통 이동) — 카드 우상단 인디케이터(우측 거터, 핀과 대칭). 단색 currentColor, 색칠카드 inherit */
  .memo-card { padding-right:22px; }
  .memo-card-del { position:absolute; top:7px; right:4px; width:15px; height:15px; padding:0; min-height:auto; border:none; background:transparent; color:var(--text3); cursor:pointer; line-height:0; display:inline-flex; align-items:center; justify-content:center; opacity:0.4; }
  .memo-card-del svg { width:11px; height:11px; display:block; }
  .memo-card-del:hover { opacity:0.85; }
  .memo-card[style*="background"] .memo-card-del { color:inherit; }

  /* 핀 고정 — 카드 좌상단 인디케이터(좌측 거터에 배치, 내용과 겹치지 않게) */
  .memo-card { padding-left:22px; }
  .memo-card-pin { position:absolute; top:7px; left:4px; width:15px; height:15px; padding:0; min-height:auto; border:none; background:transparent; color:var(--text3); cursor:pointer; line-height:0; display:inline-flex; align-items:center; justify-content:center; opacity:0.4; }
  .memo-card-pin svg { width:11px; height:11px; display:block; }
  .memo-card-pin:hover { opacity:0.8; }
  .memo-card-pin.active { opacity:1; color:var(--text); }
  .memo-card[style*="background"] .memo-card-pin { color:inherit; }
  /* 상세 모달 핀 버튼 — 아이콘 + 라벨 */
  .memo-pin-btn { display:inline-flex; align-items:center; gap:5px; }
  .memo-pin-btn svg { width:13px; height:13px; }
  .memo-pin-btn.active { color:var(--text); border-color:var(--cta); }

  /* (구) 체크리스트·댓글 absolute 배지는 .memo-card-meta 풋터로 통합됨 */
  /* 체크리스트 (상세 모달) */
  .memo-checklist { display:flex; flex-direction:column; gap:4px; margin:4px 0 8px; }
  .memo-checklist-empty { font-size:12px; padding:2px 0; }
  .memo-checklist-item { display:flex; align-items:center; gap:8px; }
  .memo-checklist-item input[type="checkbox"] { flex:0 0 auto; width:16px; height:16px; margin:0; cursor:pointer; }
  .memo-checklist-text { flex:1; min-width:0; font-size:13px; line-height:1.4; word-break:break-word; }
  .memo-checklist-item.done .memo-checklist-text { text-decoration:line-through; color:var(--text3); }
  .memo-checklist-del { flex:0 0 auto; border:none; background:transparent; color:var(--text3); cursor:pointer; font-size:11px; padding:0 4px; min-height:auto; line-height:1; }
  .memo-checklist-del:hover { color:var(--sunday); }
  .memo-checklist-add { display:flex; gap:6px; }
  .memo-checklist-add input { flex:1; box-sizing:border-box; }

  /* ===== 라벨/태그 v1 ===== */
  /* 카드 표면 칩(미니멀): 색점 + 이름, 장식 없음 */
  .memo-card-labels { display:flex; flex-wrap:wrap; gap:4px; margin-top:5px; }
  .memo-label-chip { display:inline-flex; align-items:center; gap:4px; font-size:11px; line-height:1.5; color:var(--text2); border:1px solid var(--border); border-radius:var(--pill); padding:0 7px; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .memo-label-dot { width:8px; height:8px; border-radius:50%; flex:0 0 auto; }
  .memo-card[style*="background"] .memo-label-chip { color:inherit; border-color:currentColor; opacity:0.9; }
  .memo-done .memo-card-labels { opacity:0.5; }
  /* 토글/필터 칩(상세·툴바): off=외곽선+색점, on=라벨색 채움(pickText 대비) */
  .memo-label-toggles, .memo-label-filters { display:flex; flex-wrap:wrap; gap:6px; }
  .memo-label-filters { margin-bottom:10px; }
  .memo-label-toggle { display:inline-flex; align-items:center; gap:5px; font-size:12px; line-height:1.6; border:1px solid var(--border); border-radius:var(--pill); background:var(--card); color:var(--text2); cursor:pointer; padding:2px 10px; min-height:auto; }
  .memo-label-toggle:hover { border-color:var(--cta); }
  .memo-label-toggle.on { font-weight:700; }
  .memo-label-empty { font-size:12px; }
  .memo-label-manage-link { border:none; background:transparent; color:var(--cta); cursor:pointer; padding:0; min-height:auto; text-decoration:underline; font-size:12px; }
  /* 라벨 관리 모달 */
  .memo-label-new-row { display:flex; gap:6px; }
  .memo-label-new-row input { flex:1; box-sizing:border-box; }
  .memo-label-swatch { width:24px; height:24px; }
  .memo-label-list { display:flex; flex-direction:column; gap:10px; }
  .memo-label-row { border:1px solid var(--border); border-radius:var(--radius); padding:8px; display:flex; flex-direction:column; gap:8px; }
  .memo-label-row-top { display:flex; align-items:center; gap:8px; }
  .memo-label-name-input { flex:1; box-sizing:border-box; }
  .memo-label-row-colors { gap:6px; }

  /* 글자 아바타 설정 (설정 모달) */
  .memo-avatar-setting { display:flex; align-items:center; gap:10px; }
  .memo-avatar-preview .memo-author-avatar { width:38px; height:38px; font-size:17px; }

  /* 읽은 사람 목록 (v1: memo_reads 조회 표시) — 단색, 장식 없음 */
  .memo-readers-field label { display:block; margin-bottom:6px; }
  .memo-readers-list { display:flex; flex-wrap:wrap; gap:8px; }
  .memo-readers-empty { font-size:12px; }
  .memo-reader { display:inline-flex; align-items:center; gap:5px; font-size:12px; color:var(--text2); border:1px solid var(--border); border-radius:var(--pill); padding:1px 8px 1px 2px; max-width:160px; }
  .memo-reader-avatar { width:20px; height:20px; border-radius:50%; object-fit:cover; flex:0 0 auto; }
  .memo-reader-initial { display:inline-flex; align-items:center; justify-content:center; background:var(--card); border:1px solid var(--border); font-size:10px; font-weight:700; color:var(--text2); }
  .memo-reader-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

  /* 메모 댓글 (Phase 4A: 단순 평탄 스레드) */
  .memo-comments-field label { display:block; margin-bottom:6px; }
  .memo-comments-more { margin-bottom:6px; }
  .memo-comments-list { display:flex; flex-direction:column; gap:10px; max-height:240px; overflow-y:auto; padding-right:2px; }
  .memo-comments-empty { font-size:12px; padding:4px 0; }
  .memo-comment { display:flex; gap:8px; align-items:flex-start; }
  .memo-comment-avatar { width:24px; height:24px; border-radius:50%; object-fit:cover; flex:0 0 auto; }
  .memo-comment-initial { display:inline-flex; align-items:center; justify-content:center; background:var(--card); border:1px solid var(--border); font-size:11px; font-weight:700; color:var(--text2); }
  .memo-comment-body { flex:1; min-width:0; }
  .memo-comment-meta { display:flex; align-items:center; gap:6px; line-height:1.4; }
  .memo-comment-name { font-size:12px; font-weight:700; color:var(--text); }
  .memo-comment-time { font-size:11px; color:var(--text3); }
  .memo-comment-del { margin-left:auto; border:none; background:transparent; color:var(--text3); cursor:pointer; font-size:11px; padding:0 4px; min-height:auto; line-height:1; }
  .memo-comment-del:hover { color:var(--sunday); }
  .memo-comment-text { font-size:13px; line-height:1.5; color:var(--text); word-break:break-word; white-space:pre-wrap; margin-top:1px; }
  .memo-comment-input-row { position:relative; display:flex; gap:6px; align-items:flex-end; margin-top:10px; }
  .memo-comment-input { flex:1; box-sizing:border-box; min-height:38px; max-height:120px; resize:vertical; line-height:1.4; }
  /* 댓글 본문 @멘션 강조(#48): 볼드 + 강조 토큰(단색, 칩 느낌) */
  .memo-mention { font-weight:700; color:var(--cta); }
  /* @자동완성 드롭다운(#48): 입력창 위에 띄움(댓글 영역이 모달 하단이라 위로) */
  .memo-mention-dd { position:absolute; left:0; bottom:calc(100% + 4px); z-index:60; min-width:160px; max-height:200px; overflow-y:auto; background:var(--raised); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); padding:4px; }
  .memo-mention-item { display:block; width:100%; text-align:left; padding:6px 8px; border:none; background:transparent; color:var(--text); font-size:13px; border-radius:6px; cursor:pointer; }
  .memo-mention-item:hover, .memo-mention-item.active { background:var(--cta); color:var(--cta-text, #fff); }

  /* mobile responsive */
  @media (max-width:768px){
    /* 사이드바 레이아웃: wrap은 row 유지, main이 전체 폭 */
    .wrap { flex-direction:row; padding:0; gap:0; }
    /* #128: 가로 오버플로우 안전망(root causes 수정 후 보강). clip 은 스크롤 컨테이너를
       만들지 않아 sticky 헤더를 깨지 않음(hidden 과 달리). */
    .main { flex:1; width:100%; min-width:0; padding:10px; overflow-x:clip; }
    .side { flex:none; width:100%; min-width:0; }
    .info-cols { flex-direction:column; }
    .info-right { flex:none; width:100%; }
    /* #128: 헤더 행이 좁은 화면에서 자연스럽게 줄바꿈(고정폭 우측 버튼군이 좌측을 밀어내지 않게) */
    .title-row { margin-bottom:10px; flex-wrap:wrap; }
    /* #128: 공지 배너 — 2줄까지만 표시하고 넘치면 말줄임(긴 문자열은 위 overflow-wrap 로 줄바꿈) */
    .banner { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
    table.cal td { height:56px; padding:2px; }
    table.cal th { font-size:11px; padding:4px 2px; }
    .ev { font-size:10px; padding:1px 2px; }
    .daynum { font-size:11px; }
    .holiday-name { font-size:9px; }
    h1 { font-size:18px; }
    button { min-height:36px; touch-action:manipulation; }
    .bar button, .navmonth button { min-height:32px; }
    .bar .grp { gap:4px; }
    body { font-size:15px; }
    input, select, textarea, .memo-card-editor { font-size:16px; } /* prevents iOS zoom */
    /* 모바일 메모 보드: 컬럼 수는 JS clamp(--lane-w 기준)가 결정. 컬럼은 남는 폭을 채우도록 grow.
       (작게=좁은 화면에서 2컬럼 가능 / 크게=1컬럼) */
    .memo-cols { overflow-x:hidden; padding-bottom:0; }
    .memo-col { flex:1 0 var(--lane-w); width:auto; min-width:0; }
    .memo-lane { max-height:none; }
    .memo-add-btn { width:100% !important; margin:8px 0 !important; box-sizing:border-box !important; }
    .memo-add-form { margin:8px 0 !important; }
  }
