/* 部屋の画面（画面案 Project.dc.html・RoomC.dc.html）。数値は画面案のまま。色は theme.css の --rm-* */

/* ---- 部屋の一覧（Project.dc.html） ---- */
body .main:has(> .rm-list) { gap: 12px; }
.rm-list { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.rm-list-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; }
.rm-title, body.field-ui h1.rm-title { margin: 0; font-size: 22px; font-weight: 500; line-height: normal; }
.rm-flex { flex: 1; }
.rm-lk { color: var(--mk-link); cursor: pointer; font-size: 13px; text-decoration: none; background: none; border: 0; padding: 0; }
.rm-lk-14 { font-size: 14px; }
.rm-lg { color: var(--muted); cursor: pointer; font-size: 13px; background: none; border: 0; padding: 0; text-decoration: none; }
.rm-list .pn .ph { font-size: 13px; font-weight: 500; padding: 7px 12px; display: flex; align-items: center; gap: 8px; }
.rm-list .pn .ph .ph-note { font-size: 12px; font-weight: 400; margin: 0; }
.rm-row { display: flex; align-items: center; gap: 14px; min-height: 73px; padding: 6px 14px; box-sizing: border-box; border-bottom: 1px solid var(--divider); cursor: pointer; color: inherit; text-decoration: none; }
.rm-row:hover { background: var(--rm-hover); color: inherit; }
.rm-row-main { flex: 1; min-width: 0; }
.rm-row-main b { font-size: 14px; font-weight: 500; }
.rm-row-note { display: block; font-size: 12px; color: var(--muted); }
.rm-row-meta { font-size: 12px; color: var(--text-2); }
.rm-row-go { color: var(--faint); }
.rm-row-done .rm-row-main, .rm-row-done .rm-row-meta { color: var(--faint); }

/* ---- 部屋の中（RoomC.dc.html） ---- */
.rm-chat { flex: 1; display: flex; min-height: 0; overflow: hidden; position: relative; font-size: 13px; color: var(--mk-text); } /* 画面の高さ − ヘッダー46px − フッター36px */
.rm-chat a { text-decoration: none; }
.rm-chat button { font-family: inherit; }
body.field-ui .rm-chat .rm-lk, .rm-chat .rm-lk { color: var(--rm-link); font-size: 13px; background: none; border: 0; padding: 0; min-height: 0; cursor: pointer; font-weight: 400; }
body.field-ui .rm-chat .rm-lg, .rm-chat .rm-lg { color: var(--muted); font-size: 13px; background: none; border: 0; padding: 0; min-height: 0; cursor: pointer; font-weight: 400; }
.rm-chat .rm-lk-14 { font-size: 14px; }
.rm-chat .inline-form { display: inline; margin: 0; }
.rm-lock { display: inline-block; width: 13px; height: 15px; flex: none; vertical-align: -3px; margin-right: 3px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%236C757D'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='5'%20y='11'%20width='14'%20height='10'%20rx='2.5'/%3E%3Cpath%20d='M8%2011V8a4%204%200%200%201%208%200v3'/%3E%3C/svg%3E"); }
.rm-ok { display: inline-block; flex: none; vertical-align: middle; width: 16px; height: 16px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2040%2040'%3E%3Ccircle%20cx='20'%20cy='20'%20r='18.5'%20fill='%23FFD95A'%20stroke='%23F0B429'%20stroke-width='1.5'/%3E%3Cpath%20d='M10%2014q2.5-3.5%205%200M25%2014q2.5-3.5%205%200'%20stroke='%23704214'%20stroke-width='2'%20fill='none'%20stroke-linecap='round'/%3E%3Cellipse%20cx='9'%20cy='20'%20rx='3'%20ry='2.2'%20fill='%23FF9EB0'/%3E%3Cellipse%20cx='31'%20cy='20'%20rx='3'%20ry='2.2'%20fill='%23FF9EB0'/%3E%3Ctext%20x='20'%20y='33'%20text-anchor='middle'%20font-family='sans-serif'%20font-weight='bold'%20font-size='12'%20fill='%23C2410C'%3EOK%3C/text%3E%3C/svg%3E"); }
.rm-ok-lg { width: 30px; height: 30px; }
.rm-ok-pick { width: 34px; height: 34px; }

/* 左の列 */
.rm-side { flex: none; padding: 12px 0 8px; display: flex; flex-direction: column; background: var(--surface); min-width: 0; overflow-y: auto; box-sizing: border-box; }
.rm-search { padding: 0 12px 8px; margin: 0; }
.rm-search-input, body.field-ui .rm-search-input { width: 100%; box-sizing: border-box; height: 34px; min-height: 34px; font-size: 13px; border: 0; border-radius: 17px; background: var(--surface); padding: 0 14px; outline: none; }
.rm-top { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px 7px 12px; margin: 1px 8px; border-radius: 10px; cursor: pointer; font-size: 14px; color: var(--mk-text); background: transparent; font-weight: 400; }
.rm-top.on { background: var(--rm-active); font-weight: 500; }
.rm-top:hover, .rm-room:hover, .rm-sub:hover, .rm-trow:hover { background: var(--rm-hover); color: inherit; }
.rm-top.on:hover, .rm-room.on:hover, .rm-sub.on:hover { background: var(--rm-active); }
.rm-top-n { font-size: 12px; color: var(--mk-text); font-weight: 500; }
.rm-sec { padding: 14px 14px 4px; font-size: 12px; color: var(--muted); display: flex; align-items: center; }
.rm-plus { font-size: 14px; padding: 0 2px; line-height: 1; list-style: none; }
.rm-sec .rm-lg { font-size: 14px; padding: 0 2px; }
.rm-room { display: flex; gap: 10px; align-items: center; padding: 7px 10px; margin: 1px 8px; border-radius: 10px; cursor: pointer; background: transparent; color: inherit; }
.rm-room.on { background: var(--rm-active); }
.rm-room-name { flex: 1; min-width: 0; font-size: 14px; color: var(--mk-text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-badge { flex: none; min-width: 18px; height: 18px; border-radius: 9px; background: var(--rm-badge); color: var(--surface); font-size: 11px; display: flex; align-items: center; justify-content: center; padding: 0 5px; box-sizing: border-box; }
.rm-subs { display: flex; flex-direction: column; padding: 0 0 4px; }
.rm-sub { display: flex; gap: 8px; align-items: center; padding: 6px 10px 6px 44px; margin: 1px 8px; border-radius: 8px; cursor: pointer; background: transparent; color: inherit; }
.rm-sub.on { background: var(--rm-active); }
.rm-sub-name { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-sub-more { padding: 5px 10px 3px 44px; margin: 0 8px; font-size: 12px; color: var(--faint); cursor: pointer; }
.rm-sub-new { padding: 3px 10px 3px 44px; margin: 0 8px; font-size: 12px; color: var(--rm-link); cursor: pointer; }
.rm-dm-add { display: block; }
.rm-dm-add summary { list-style: none; }
.rm-dm-add summary::-webkit-details-marker { display: none; }
.rm-dm-pick { position: absolute; z-index: 6; display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 12px; background: var(--rm-side-bg); max-width: 270px; }
.rm-dm-cand { font-size: 13px; }
.rm-av { flex: none; border-radius: 50%; color: var(--surface); display: flex; align-items: center; justify-content: center; }
.rm-av-34 { width: 34px; height: 34px; font-size: 14px; }
.rm-av-36 { width: 36px; height: 36px; font-size: 14px; }
.rm-av-40 { width: 40px; height: 40px; font-size: 16px; }
.rm-av-0 { background: var(--rm-av-0); } .rm-av-1 { background: var(--rm-av-1); } .rm-av-2 { background: var(--rm-av-2); } .rm-av-3 { background: var(--rm-av-3); } .rm-av-4 { background: var(--rm-av-4); } .rm-av-5 { background: var(--rm-av-5); }

/* まん中の列：見出しと一覧 */
.rm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--border); }
.rm-head { padding: 10px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; min-height: 56px; box-sizing: border-box; }
.rm-head-main { flex: 1 1 150px; min-width: 0; }
.rm-head-title { font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-head-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-head-sub-mem { display: flex; align-items: center; gap: 8px; margin-top: 3px; flex-wrap: wrap; overflow: visible; white-space: normal; }
.rm-mem { display: flex; align-items: center; }
.rm-mem-av { flex: none; width: 22px; height: 22px; border-radius: 11px; color: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 10px; border: 2px solid var(--surface); box-sizing: content-box; margin-left: -7px; }
.rm-mem-av:first-child { margin-left: 0; }
.rm-mem-more { min-width: 22px; padding: 0 3px; color: var(--text-2); background: var(--border); }
.rm-head-link, .rm-head-new, .rm-files-link { white-space: nowrap; }
.rm-body { flex: 1; overflow-y: auto; min-height: 0; }
.rm-col { width: 100%; max-width: 760px; margin: 0 auto; box-sizing: border-box; }
.rm-filters { display: flex; gap: 4px; padding: 12px 20px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
.rm-filter { padding: 5px 12px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; }
.rm-filter.on { color: var(--mk-text); font-weight: 500; border-bottom-color: var(--faint); }
.rm-empty { padding: 40px 0; color: var(--faint); font-size: 13px; text-align: center; }
.rm-trow { display: block; padding: 13px 20px; cursor: pointer; border-bottom: 1px solid var(--divider); color: inherit; }
.rm-trow-top { display: flex; gap: 8px; align-items: baseline; }
.rm-trow-title { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-trow-priv { font-size: 11px; color: var(--faint); }
.rm-trow-time { font-size: 12px; color: var(--faint); flex: none; }
.rm-trow-bot { display: flex; gap: 12px; margin-top: 5px; align-items: center; font-size: 12px; color: var(--faint); }
.rm-trow-done .rm-trow-title { color: var(--faint); }

/* やりとり */
.rm-thread { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.rm-head-thread { flex-wrap: wrap; gap: 4px 12px; }
.rm-back { white-space: nowrap; }
.rm-head-act { display: flex; gap: 12px; align-items: center; white-space: nowrap; }
.rm-state { color: var(--text-2); font-size: 13px; }
.rm-vis { padding: 6px max(20px, calc(50% - 380px)); border-bottom: 1px solid var(--divider); font-size: 13px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rm-vis-text { color: var(--text-2); }
.rm-vis-form { flex-wrap: wrap; gap: 6px; }
.rm-vis-form:not([hidden]) { display: flex; }
.rm-msgs { flex: 1; overflow-y: auto; padding: 4px max(20px, calc(50% - 380px)) 14px; display: flex; flex-direction: column; }
.rm-date { display: flex; align-items: center; justify-content: center; margin: 18px 0 8px; }
.rm-date span { font-size: 12px; color: var(--muted); background: var(--rm-hover); border-radius: 12px; padding: 3px 16px; }
.rm-msg { display: flex; gap: 10px; margin: 8px 0; justify-content: flex-start; }
.rm-msg.own { justify-content: flex-end; }
.rm-msg-av { margin-top: 2px; }
.rm-msg-c { position: relative; display: flex; flex-direction: column; align-items: flex-start; max-width: 78%; min-width: 0; }
.rm-msg.own .rm-msg-c { align-items: flex-end; }
.rm-msg-who { font-size: 12px; color: var(--text-2); margin-bottom: 3px; }
.rm-bubrow { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; flex-direction: row; }
.rm-msg.own .rm-bubrow { flex-direction: row-reverse; }
.rm-bub { background: var(--surface); border: 1px solid var(--border); border-radius: 4px 14px 14px 14px; padding: 9px 13px; min-width: 0; max-width: 100%; }
.rm-msg.own .rm-bub { background: var(--chip-bg); border: 0; border-radius: 14px 4px 14px 14px; }
.rm-fw { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.rm-text { line-height: 1.7; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.rm-files { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.rm-media { display: flex; flex-wrap: wrap; gap: 4px; }
.rm-photo, .rm-video { position: relative; display: flex; flex: none; width: 124px; height: 93px; border-radius: 8px; overflow: hidden; cursor: zoom-in; align-items: center; justify-content: center; }
.rm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rm-video { background: var(--rm-file-video); }
.rm-play { width: 30px; height: 30px; border-radius: 15px; background: var(--surface); color: var(--mk-text); display: flex; align-items: center; justify-content: center; font-size: 12px; padding-left: 2px; box-sizing: border-box; }
.rm-doc { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px 8px 10px; min-width: 230px; max-width: 100%; cursor: pointer; box-sizing: border-box; color: inherit; }
.rm-doc-ico { flex: none; width: 36px; height: 36px; border-radius: 8px; color: var(--surface); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; background: var(--rm-file-etc); }
.rm-ty-pdf { background: var(--rm-file-pdf); } .rm-ty-xls { background: var(--rm-file-xls); } .rm-ty-doc { background: var(--rm-file-doc); }
.rm-doc-main { flex: 1; min-width: 0; display: block; }
.rm-doc-name { display: block; font-size: 13px; color: var(--mk-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-doc-meta { display: block; font-size: 11px; color: var(--faint); margin-top: 1px; }
.rm-meta { display: flex; flex-direction: column; gap: 2px; flex: none; font-size: 11px; color: var(--faint); align-items: flex-start; }
.rm-msg.own .rm-meta { align-items: flex-end; }
.rm-read { color: var(--rm-link); cursor: pointer; }
.rm-hv { display: flex; gap: 8px; opacity: .3; }
.rm-msg-c:hover .rm-hv, .rm-hv:focus-within, .rm-hv:has(details[open]) { opacity: 1; }
.rm-pop-wrap, .rm-rx-wrap { display: block; }
.rm-pop-wrap > summary, .rm-rx-wrap > summary { list-style: none; cursor: pointer; }
.rm-pop-wrap > summary::-webkit-details-marker, .rm-rx-wrap > summary::-webkit-details-marker { display: none; }
.rm-ico { font-size: 15px; cursor: pointer; }
.rm-pop { position: absolute; top: 100%; z-index: 6; margin-top: 6px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--rm-pop-shadow); display: flex; }
.rm-msg:not(.own) .rm-pop { left: 0; }
.rm-msg.own .rm-pop { right: 0; }
.rm-stamps { gap: 6px; border-radius: 22px; padding: 5px 12px; align-items: center; }
.rm-stamp { cursor: pointer; font-size: 24px; line-height: 38px; width: 38px; text-align: center; background: none; border: 0; padding: 0; min-height: 0; display: flex; align-items: center; justify-content: center; }
.rm-menu { width: 200px; border-radius: 10px; padding: 4px 0; flex-direction: column; }
.rm-menu-i { display: flex; align-items: center; padding: 8px 16px; font-size: 14px; cursor: pointer; color: var(--mk-text); background: none; border: 0; text-align: left; width: 100%; min-height: 0; }
.rm-menu-i:hover { background: var(--rm-hover); color: var(--mk-text); }
.rm-menu-ic { width: 24px; color: var(--faint); flex: none; }
.rm-menu-del { color: var(--rm-badge); }
.rm-task-tag { margin-top: 4px; font-size: 12px; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 2px 10px; }
.rm-rxs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.rm-rx { display: inline-flex; align-items: center; cursor: pointer; font-size: 12px; border-radius: 12px; padding: 2px 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); }
.rm-rx.mine { border-color: var(--rm-rx-mine-line); background: var(--rm-rx-mine-bg); }
.rm-rx .rm-ok { width: 20px; height: 20px; margin-right: 4px; }
.rm-who { width: 280px; flex-direction: column; border-radius: 10px; padding: 8px 0; }
.rm-who-row { display: flex; align-items: center; gap: 10px; padding: 6px 14px; }
.rm-who-name { flex: 1; font-size: 13px; font-weight: 500; }
.rm-who-stamp { font-size: 18px; }
.rm-note { margin-top: 4px; font-size: 12px; color: var(--muted); }
.rm-closed { padding: 14px max(20px, calc(50% - 380px)); color: var(--muted); font-size: 13px; border-top: 1px solid var(--divider); }

/* 入力の欄 */
.rm-composer-wrap { padding: 8px max(16px, calc(50% - 380px)) 18px; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.rm-at { flex-wrap: wrap; gap: 8px; font-size: 13px; }
.rm-at:not([hidden]) { display: flex; }
.rm-at-label { color: var(--muted); }
.rm-at-i { background: var(--rm-hover); border: 0; border-radius: 12px; padding: 3px 10px; cursor: pointer; font-size: 13px; min-height: 0; }
.rm-composer { background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--rm-composer-shadow); border-radius: 16px; padding: 8px 14px; }
.rm-picked { flex-wrap: wrap; gap: 8px; font-size: 13px; margin-bottom: 4px; }
.rm-picked:not([hidden]) { display: flex; }
.rm-picked-i { padding: 3px 10px 3px 4px; }
.rm-composer-input, body.field-ui .rm-composer-input { width: 100%; box-sizing: border-box; height: 36px; min-height: 36px; font-size: 14px; border: 0; background: transparent; outline: none; padding: 0; }
.rm-file-input { display: none; }
.rm-composer-bar { display: flex; gap: 18px; align-items: center; font-size: 13px; margin-top: 2px; }
.rm-plus-big, body.field-ui .rm-chat .rm-plus-big { font-size: 18px; line-height: 1; }

/* 右の枠 */
.rm-pane { width: 46%; max-width: 560px; min-width: 340px; flex: none; display: flex; flex-direction: column; border-left: 1px solid var(--border); background: var(--surface); }
.rm-pane-wide { width: 60%; max-width: 720px; }
/* 境目（.sb-split と同じ見た目）を動かして幅を変える。範囲は 320〜720px（panesplit が、チャット420pxを残すよう抑える） */
.rm-pane-wrap { display: contents; }
.rm-pane-wrap > .rm-pane { border-left: 0; min-width: 320px; max-width: 720px; width: min(46%, 560px); }
.rm-pane-wrap > .rm-pane-wide { width: min(60%, 720px); }
.rm-head-pane { padding: 10px 16px; }
.rm-pane-title { font-size: 15px; }
.rm-x { font-size: 20px; line-height: 1; padding: 0 4px; }
.rm-pane-body { flex: 1; overflow-y: auto; padding: 16px; }
.rm-file-list { display: flex; flex-direction: column; }
.rm-file-row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; cursor: pointer; border-radius: 8px; color: inherit; }
.rm-file-row:hover { background: var(--rm-hover); }
.rm-thumb { flex: none; width: 44px; height: 44px; border-radius: 6px; overflow: hidden; }
.rm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rm-file-name { display: block; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-file-meta { display: block; font-size: 12px; color: var(--muted); }
.rm-preview-img { display: block; width: 100%; border-radius: 8px; }
.rm-preview-pdf { width: 100%; height: 560px; border: 1px solid var(--border); border-radius: 6px; }
.rm-preview-none { display: flex; justify-content: center; padding: 40px 0; }
.rm-file-form { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.rm-pane-foot { margin-top: 14px; }
.rm-pane-body .pj-members, .rm-pane-body .pj-files { padding: 0; }

/* 窓（小部屋を作る・既読・タスクに送信・転送） */
.rm-modal-room { font-size: 13px; color: var(--muted); }
.rm-modal-room b { color: var(--mk-text); font-weight: 500; }
.rm-modal-lbl { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.rm-modal-hint { font-size: 12px; color: var(--faint); }
.rm-task-quote { background: var(--rm-hover); border-radius: 8px; padding: 8px 12px; font-size: 13px; color: var(--text-2); max-height: 56px; overflow: hidden; }
.rm-due { width: 160px; }
.rm-readers-tabs { display: flex; gap: 6px; }
.rm-readers-tab { cursor: pointer; font-size: 13px; padding: 7px 18px; border: 1px solid var(--border); border-bottom: 0; border-radius: 6px 6px 0 0; background: var(--rm-hover); color: inherit; }
.rm-readers-tab.on { background: var(--surface); }
.rm-readers-list { border: 1px solid var(--border); border-radius: 0 6px 6px 6px; }
.rm-readers-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.rm-readers-name { flex: 1; min-width: 0; font-size: 14px; }
.rm-readers-name b { font-weight: 500; display: block; }
.rm-readers-role { font-size: 12px; color: var(--rm-link); }
.rm-readers-tag { font-size: 12px; color: var(--rm-link); }
.rm-forward { display: flex; flex-direction: column; }
.rm-forward-row { padding: 6px 14px; font-size: 13px; cursor: pointer; background: none; border: 0; text-align: left; width: 100%; min-height: 0; }
.rm-forward-row:hover { background: var(--rm-hover); }
.rm-file-input-visible { font-size: 13px; }

html body.field-ui .rm-chat input.rm-search-input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not([type=submit]):not(.bt):not(.bt-go) { border: 0; box-shadow: none; outline: none; border-radius: 17px; min-height: 34px; height: 34px; padding: 0 14px; font-size: 13px; background: var(--surface); }
html body.field-ui .rm-chat input.rm-composer-input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not([type=submit]):not(.bt):not(.bt-go) { border: 0; box-shadow: none; outline: none; border-radius: 0; min-height: 36px; height: 36px; padding: 0; font-size: 14px; background: transparent; }
body.field-ui .rm-chat .rm-sec .rm-lg, body.field-ui .rm-chat .rm-lk.rm-lk-14 { font-size: 14px; }

.rm-chat { line-height: normal; }
.rm-sublink, .rm-sublink:hover { color: inherit; }

/* 「確認して閉じる」（画面案 RoomC。高さ32px・左右16px・角4px・13px・太さ500） */
.rm-close-row { display: flex; margin-top: 8px; }
.rm-close-btn { height: 32px; padding: 0 16px; border: 0; border-radius: 4px; background: var(--rm-link); color: var(--surface); font-size: 13px; font-weight: 500; display: flex; align-items: center; cursor: pointer; }

/* 部屋の管理（管理者のみ。画面案 Rooms.dc.html）。管理者だけの画面なので、詰めた作り */
.ar-page { padding: 0 4px; display: flex; flex-direction: column; gap: 12px; max-width: 1312px; box-sizing: border-box; }
.ar-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ar-h1 { font-size: 24px; font-weight: 500; margin: 0; }
.ar-sub { font-size: 12px; color: var(--muted); }
.ar-pn, .ar-list, .ar-detail { border-radius: 6px; }
.ar-pn { padding: 6px 18px 14px; }
.ar-hd { font-size: 14px; font-weight: 500; border-bottom: 2px solid var(--text); padding: 10px 0 4px; }
.ar-th { font-size: 12px; color: var(--muted); font-weight: 500; }
.ar-none { padding: 12px 0; color: var(--muted); }
.ar-note { padding-top: 8px; }
.ar-flash { background: var(--ar-flash-bg); color: var(--ar-flash-ink); font-weight: 500; font-size: 14px; padding: 10px 14px; border-radius: 4px; }
.ar-chips { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 10px; }
.ar-chip.on { background: var(--bg); }
.ar-chip.on::before { content: "✓"; } /* 画面案 Rooms：選んだ札は薄い灰色の地に ✓。形は標準の札（pick-chip） */
.ar-cols { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.ar-list { width: 430px; flex: none; max-width: 100%; }
.ar-lhead { display: flex; align-items: center; border-radius: 6px 6px 0 0; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.ar-lrow { display: flex; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--divider); color: inherit; text-decoration: none; }
.ar-lrow.on { background: var(--chip-bg); }
.ar-lfoot { padding: 10px 14px; }
.ar-grow { flex: 1; min-width: 0; }
.ar-w110 { width: 110px; }
.ar-w70 { width: 70px; }
.ar-r { text-align: right; }
.ar-lk { font-size: 12px; color: var(--ar-link); background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap; text-decoration: none; }
.ar-detail { flex: 1; min-width: 520px; padding: 6px 18px 18px; }
.ar-kinds { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 12px; }
.ar-public { margin-top: 14px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; line-height: 1.8; }
.ar-mt16 { margin-top: 16px; margin-bottom: 6px; }
.ar-member { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--divider); }
.ar-av { flex: none; width: 28px; height: 28px; border-radius: 14px; color: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.ar-name { width: 120px; font-weight: 500; }
.ar-foot { padding-top: 18px; }

/* 操作の記録（管理者のみ。画面案 Log.dc.html）。表は、行を押すと内容が開く */
.ar-back { color: var(--ar-link); font-weight: 500; font-size: 14px; text-decoration: none; }
.ar-filter { padding: 14px 18px 16px; }
.ar-kinds-top { padding-top: 0; }
.ar-kinds-row { padding-top: 12px; gap: 12px; }
.ar-lab { width: 84px; }
.ar-lab2 { margin-left: 10px; }
.pick-chip.ar-chip-dark.on, a.pick-chip.ar-chip-dark.on:hover { background: var(--text); border-color: var(--text); color: var(--surface); }
.ar-chip-dark.on::before { content: none; }
.ar-sel { height: 38px; box-sizing: border-box; border: 1px solid var(--border-strong); border-radius: 4px; padding: 0 8px; font-size: 14px; background: var(--surface); color: var(--text); }
.ar-ip { flex: 1; min-width: 240px; height: 38px; box-sizing: border-box; border: 1px solid var(--border-strong); border-radius: 4px; padding: 0 10px; font-size: 15px; background: var(--surface); color: var(--text); }
.ar-log { width: auto; flex: none; padding-bottom: 6px; }
.ar-log-head { align-items: center; gap: 10px; border-radius: 6px 6px 0 0; }
.ar-log-row { border-bottom: 1px solid var(--divider); }
.ar-log-line { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13px; cursor: pointer; list-style: none; }
.ar-log-line::-webkit-details-marker { display: none; }
.ar-c-at { width: 118px; color: var(--text-2); }
.ar-c-who { width: 110px; }
.ar-c-kind { width: 100px; }
.ar-c-target { width: 200px; min-width: 0; }
.ar-kd { display: inline-block; font-size: 12px; border: 1px solid var(--border-strong); border-radius: 3px; padding: 0 6px; line-height: 20px; color: var(--text-2); white-space: nowrap; }
.ar-arrow::before { content: "▸"; color: var(--grid); }
.ar-log-row[open] .ar-arrow::before { content: "▾"; }
.ar-log-detail { margin: 0 14px 12px; padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--divider); border-radius: 4px; font-size: 13px; line-height: 1.8; }
.ar-log-none { padding: 40px 0; text-align: center; color: var(--grid); }
.ar-pager { display: flex; align-items: center; gap: 14px; padding: 12px 14px 6px; }
.ar-btn2 { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 14px; border-radius: 4px; background: var(--surface); color: var(--muted); font-size: 13px; border: 1px solid var(--border-strong); white-space: nowrap; text-decoration: none; }
.ar-btn2.ar-off { visibility: hidden; }

/* プロジェクトの管理：部屋の検索・小部屋の管理（画面案 Rooms.dc.html） */
.ar-lsearch { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.ar-ip-full { width: 100%; }
.ar-subs { margin-top: 22px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ar-btn { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 18px; border-radius: 4px; background: var(--surface); color: var(--text); font-weight: 500; font-size: 14px; border: 1px solid var(--faint); white-space: nowrap; text-decoration: none; }
.ar-dlg-back { position: fixed; inset: 0; background: var(--overlay); z-index: 20; display: flex; align-items: center; justify-content: center; }
.ar-dlg { width: 880px; max-width: 94vw; max-height: 88vh; display: flex; flex-direction: column; box-shadow: var(--shadow-modal); }
.ar-dlg-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 2px solid var(--text); }
.ar-dlg-head b { font-size: 17px; flex: 1; }
.ar-dlg-x { font-size: 20px; color: var(--muted); padding: 0 6px; background: none; border: 0; cursor: pointer; }
.ar-dlg-filter { display: flex; align-items: center; gap: 10px; padding: 12px 20px; flex-wrap: wrap; border-bottom: 1px solid var(--divider); }
.ar-ip-dlg { flex: 1; min-width: 220px; height: 40px; }
.ar-dlg-body { flex: 1; overflow: auto; padding: 0 20px 8px; min-height: 260px; }
.ar-dlg-foot { padding: 10px 20px; border-top: 1px solid var(--divider); }
.ar-flash-dlg { margin-top: 10px; }
.ar-t-row { position: relative; border-bottom: 1px solid var(--divider); }
.ar-t-line { display: flex; align-items: center; gap: 10px; padding: 10px 170px 10px 0; cursor: pointer; list-style: none; }
.ar-t-line::-webkit-details-marker { display: none; }
.ar-t-line .ar-arrow { width: 14px; color: var(--faint); }
.ar-t-name { flex: 1; min-width: 0; }
.ar-t-off { color: var(--grid); }
.ar-t-range { width: 96px; white-space: nowrap; }
.ar-t-n { width: 44px; text-align: right; }
.ar-t-st { width: 56px; text-align: center; white-space: nowrap; color: var(--faint); }
.ar-t-acts { position: absolute; right: 0; top: 0; height: 56px; width: 160px; display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.ar-t-people { margin: 0 0 12px 24px; }
.ar-t-chips { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 6px; }
.ar-t-person { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 4px; border: 1px solid var(--border); border-radius: 15px; font-size: 13px; }
.ar-av-s { width: 22px; height: 22px; border-radius: 11px; font-size: 11px; }
.ar-t-confirm { display: flex; margin: 0 0 10px 24px; padding: 10px 14px; background: var(--ar-warn-bg); border-radius: 4px; font-size: 13px; color: var(--ar-warn-ink); align-items: center; gap: 12px; flex-wrap: wrap; }
.ar-t-del { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border: 1px solid var(--ar-warn-line); border-radius: 4px; background: var(--surface); color: var(--ar-warn-line); font-weight: 500; cursor: pointer; }
.ar-lk-warn { color: var(--faint); }
.rm-admin-band { display: flex; align-items: center; gap: 12px; padding: 10px 20px; background: var(--ar-warn-bg); color: var(--ar-warn-ink); font-size: 13px; border-bottom: 1px solid var(--border); }

/* 役割の管理（画面案61 Roles.dc.html） */
.ar-list-380 { width: 380px; padding-bottom: 10px; }
.ar-lhead-b { font-size: 14px; }
.ar-off-name { color: var(--grid); }
.ar-flash-bad { background: var(--ar-warn-bg); color: var(--ar-warn-ink); }
.ar-detail-role { min-width: 480px; padding: 6px 22px 20px; }
.ar-hd-row { display: flex; align-items: baseline; gap: 10px; }
.ar-fields { display: flex; gap: 16px; flex-wrap: wrap; padding: 10px 0 4px; }
.ar-field { flex: 1; min-width: 200px; display: block; }
.ar-field .ar-ip, .ar-field .ar-sel { display: block; margin-top: 4px; width: 100%; height: 40px; }
.ar-ip-off { background: var(--chip-bg); color: var(--faint); }
.ar-ip-narrow { width: 90px; }
.ar-field-inline { display: flex; align-items: center; gap: 10px; flex: none; margin-top: 8px; }
.ar-field-inline .ar-sel, .ar-field-inline .ar-ip { margin-top: 0; width: auto; }
.ar-q { display: flex; gap: 12px; align-items: flex-start; padding: 12px 4px; border-bottom: 1px solid var(--divider); cursor: pointer; position: relative; }
.ar-q input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ar-bx { flex: none; width: 22px; height: 22px; border-radius: 3px; box-sizing: border-box; margin-top: 1px; background: var(--surface); border: 1.5px solid var(--faint); display: flex; align-items: center; justify-content: center; color: var(--surface); font-weight: 500; font-size: 14px; }
.ar-q:has(input:checked) .ar-bx { background: var(--rm-ok-ink); border-color: var(--rm-ok-ink); }
.ar-q:has(input:checked) .ar-bx::before { content: "✓"; }
.ar-q:has(input:focus-visible) .ar-bx { outline: 2px solid var(--primary); outline-offset: 2px; }
.pick-chip.ar-chip-check:has(input:checked) { background: var(--text); border-color: var(--text); color: var(--surface); }
.ar-chip-check:has(input:checked)::before { content: "✓"; }
.ar-trait { padding-top: 10px; }
.ar-trait summary { cursor: pointer; padding: 6px 0; }
.ar-people { padding: 10px 0 2px; font-size: 14px; line-height: 1.8; }
.ar-mt6 { padding-top: 6px; }
.ar-acts { display: flex; align-items: center; gap: 14px; padding-top: 22px; flex-wrap: wrap; }
.ar-acts .ar-btn { cursor: pointer; }
.ar-acts .ar-btn2 { cursor: pointer; }

/* ユーザーの管理（画面案62 Users.dc.html） */
.ar-list-grow { flex: 1; min-width: 460px; width: auto; padding-bottom: 10px; }
.ar-lhead-wrap { gap: 10px; flex-wrap: wrap; }
.ar-lsearch-row { margin: 0; }
.ar-ip-34 { width: 200px; height: 34px; font-size: 14px; min-width: 0; flex: none; }
.ar-chip-34 { min-height: 34px; font-size: 13px; }
.ar-lcols { display: flex; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--divider); }
.ar-w80 { width: 80px; }
.ar-w60 { width: 60px; }
.ar-ml8 { margin-left: 8px; }
.ar-lcount { padding: 10px 14px 4px; }
.ar-detail-user { width: 566px; max-width: 100%; flex: none; min-width: 0; padding: 6px 22px 20px; }
.ar-col { display: flex; flex-direction: column; gap: 14px; padding: 10px 0 4px; }
.ar-col .ar-fields { padding: 0; }
.ar-mt4 { padding-top: 4px; }
.ar-pt8 { padding: 8px 0 4px; }
.ar-pt10 { padding-top: 10px; }
.ar-pw summary { list-style: none; cursor: pointer; }
.ar-pw summary::-webkit-details-marker { display: none; }
.ar-pw-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.ar-pw[open] { flex-basis: 100%; }

/* 申請書の管理（画面案30 Template.dc.html） */
.ar-list-230 { width: 230px; }
.ar-lrow-tall { min-height: 56px; padding: 6px 14px 6px 10px; border-left: 4px solid transparent; }
.ar-lrow-tall.on { border-left-color: var(--faint); }
.ar-detail-tpl { flex: 1; min-width: 600px; padding: 6px 18px 18px; }
.ar-tpl-top { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.ar-tpl-pv { width: 262px; flex: none; }
.ar-tpl-main { flex: 1; min-width: 420px; }
.ar-paper { margin-top: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-tile); padding: 18px 16px 16px; }
.ar-paper-title { text-align: center; font-size: 15px; font-weight: 700; letter-spacing: .25em; padding-bottom: 6px; border-bottom: 2px solid var(--faint); }
.ar-paper-stamps { display: flex; justify-content: flex-end; margin: 10px 0; }
.ar-stamps { display: flex; border: 1px solid var(--border-strong); border-right: 0; font-size: 9px; }
.ar-stamp { min-width: 44px; padding: 0 3px; box-sizing: border-box; border-right: 1px solid var(--border-strong); text-align: center; }
.ar-stamp-h { padding: 2px 0; background: var(--surface-2); border-bottom: 1px solid var(--border-strong); white-space: nowrap; }
.ar-stamp-b { height: 30px; }
.ar-paper-rows { border-top: 1px solid var(--border-strong); border-left: 1px solid var(--border-strong); border-right: 1px solid var(--border-strong); }
.ar-paper-row { display: flex; border-bottom: 1px solid var(--border-strong); font-size: 10px; }
.ar-paper-k { flex: none; box-sizing: border-box; padding: 6px 7px; background: var(--surface-2); border-right: 1px solid var(--border-strong); width: 96px; }
.ar-paper-v { flex: 1; padding: 6px 7px; }
.ar-mt20 { margin-top: 20px; }
.ar-mt24 { margin-top: 24px; }
.ar-frow { display: flex; align-items: center; gap: 12px; min-height: 44px; border-bottom: 1px solid var(--divider); }
.ar-req { font-size: 12px; white-space: nowrap; color: var(--grid); }
.ar-req.on { color: var(--text); font-weight: 500; }
.ar-step { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; min-height: 48px; padding: 6px 0; border-bottom: 1px solid var(--divider); }
.ar-step-0 { min-height: 44px; padding: 0; gap: 12px; }
.ar-dot { width: 22px; color: var(--muted); }
.ar-muted { color: var(--muted); }
.ar-sel-34 { height: 34px; min-width: 160px; font-size: 13px; }
.ar-chip-26 { min-height: 26px; height: 26px; font-size: 12px; padding: 0 10px; border-radius: 13px; }
.ar-cond { display: flex; align-items: center; gap: 6px; }
.ar-ip-amt { width: 72px; height: 26px; min-width: 0; flex: none; text-align: right; font-size: 13px; }
.ar-lg { font-size: 12px; color: var(--faint); background: none; border: 0; padding: 4px; cursor: pointer; }
.ar-lg:disabled { opacity: .35; cursor: default; }
.ar-flowbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-top: 14px; }
.ar-arrow2 { color: var(--grid); }
.ar-fbox { display: inline-block; text-align: center; font-size: 12px; padding: 6px 10px; border-radius: 4px; background: var(--surface); border: 1px solid var(--border-strong); }
.ar-fbox.dash { border: 1px dashed var(--faint); }
.ar-fsub { display: block; font-size: 11px; color: var(--muted); }
.ar-btn-36 { height: 36px; font-size: 13px; cursor: pointer; }

/* マニュアルの管理（画面案41 Manual12.dc.html） */
.ar-h1-16 { font-size: 16px; }
.ar-tag { font-size: 12px; padding: 0 8px; line-height: 22px; border-radius: 3px; background: var(--bg); color: var(--text-2); }
.ar-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
.ar-tab { padding: 8px 14px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; text-decoration: none; }
.ar-tab.on { color: var(--text); font-weight: 500; border-bottom-color: var(--faint); }
.ar-tab-n { margin-left: 6px; font-size: 12px; color: var(--muted); }
.ar-mfilter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.ar-ip-320 { width: 320px; max-width: 100%; flex: none; }
.ar-mwrap { overflow-x: auto; }
.ar-mrow { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--divider); font-size: 14px; min-height: 56px; min-width: 1030px; box-sizing: border-box; }
.ar-mhead { background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 12px; color: var(--muted); min-height: 0; }
.ar-mmin { min-width: 170px; }
.ar-m13 { font-size: 13px; color: var(--text-2); }
.ar-m56 { width: 56px; } .ar-m84 { width: 84px; } .ar-m48 { width: 48px; } .ar-m96 { width: 96px; } .ar-m110 { width: 110px; } .ar-m176 { width: 176px; }
.ar-macts { display: flex; gap: 6px; white-space: nowrap; justify-content: flex-end; }
.ar-btn2-32 { height: 32px; padding: 0 12px; font-size: 13px; cursor: pointer; }
.ar-st { font-size: 12px; color: var(--muted); }
.ar-st-published { color: var(--rm-ok-ink); font-weight: 500; }
.ar-st-private { color: var(--faint); }

.ar-col .ar-fields .ar-field { min-width: 180px; flex: 1 1 0; }
.ar-field .ar-ip, .ar-field .ar-sel { min-width: 0; box-sizing: border-box; }
.ar-fixed { display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--chip-bg); }
.ar-mpage { max-width: 1304px; padding: 0; }
.ar-over { color: var(--danger); }

/* チェック項目の管理（画面案27 KanriCheck.dc.html） */
.ar-list-520 { width: 520px; padding-bottom: 12px; }
.ar-tabs-in { padding: 0 8px; flex-wrap: wrap; gap: 2px; }
.ar-rolefilter { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); margin: 0; }
.ar-sec { padding-bottom: 2px; }
.ar-sec-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 6px; border-bottom: 1px solid var(--border); }
.ar-sec-head b { font-size: 15px; }
.ar-sec-empty { padding: 12px 14px; font-size: 13px; color: var(--faint); }
.ar-rw { display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 8px; border-bottom: 1px solid var(--divider); color: inherit; text-decoration: none; border-left: 3px solid transparent; }
.ar-rw.on { background: var(--bg); border-left-color: var(--text-2); }
.ar-rw.off .ar-rw-name { color: var(--grid); }
.ar-gp { cursor: grab; color: var(--grid); font-size: 14px; }
.ar-rw-name { font-size: 14px; }
.ar-rw-meta { font-size: 12px; }
.ar-tg { display: inline-block; font-size: 11px; border: 1px solid var(--border-strong); border-radius: 3px; padding: 0 5px; margin-right: 4px; color: var(--text-2); line-height: 18px; }
.ar-rw-go { color: var(--grid); font-size: 16px; }
.ar-dropline { height: 2px; background: var(--brand); margin: 0 6px; }
.ar-dropline[hidden] { display: none; }
.ar-sec-new { padding: 16px 14px 0; }
.ar-sec-new summary { list-style: none; cursor: pointer; }
.ar-sec-new summary::-webkit-details-marker { display: none; }
.ar-sec-form { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; }
.ar-ip-sec { width: 240px; height: 36px; flex: none; }
.ar-lnote { padding: 14px 14px 0; }
.ar-detail-check { flex: 1; min-width: 480px; padding: 6px 22px 20px; }
.ar-none-big { padding: 60px 0; text-align: center; color: var(--faint); font-size: 14px; }
.ar-pt12 { padding-top: 12px; }
.ar-chips-tight { padding-top: 0; }
.ar-ta { height: auto; padding: 8px 10px; width: 100%; box-sizing: border-box; }
#check-review { display: none; }
#check-detail:has(#check_mode_review:checked) #check-review { display: block; }
.ar-q input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ar-q:has(input[type=radio]:checked) .ar-bx { background: var(--rm-ok-ink); border-color: var(--rm-ok-ink); }
.ar-q:has(input[type=radio]:checked) .ar-bx::before { content: "✓"; }
.ar-bx.ar-rd { border-radius: 50%; background: var(--surface); border: 1.5px solid var(--faint); }
.ar-q:has(input[type=radio]:checked) .ar-bx.ar-rd { background: var(--surface); border: 6px solid var(--success); }
.ar-q:has(input[type=radio]:checked) .ar-bx.ar-rd::before { content: none; }
#check-detail label { display: block; }
#check-detail label.pick-chip { display: inline-flex; }
#check-detail label.ar-q { display: flex; }
#check-detail .ar-pt10 .ar-ip, #check-detail .ar-pt8 .ar-ip { margin-top: 4px; display: block; width: 100%; box-sizing: border-box; }

/* チェック項目の管理（A-53）：窓・まとめる・資料とURL */
.ar-listbar { display: flex; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--border); }
.ar-merge { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--ar-warn-bg); color: var(--ar-warn-ink); font-size: 13px; border-bottom: 1px solid var(--border); }
.ar-dlg-narrow { width: 480px; }
.ar-dlg-pad { padding: 14px 20px; }
.ar-dlg-acts { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--divider); }
.ar-del-name { font-size: 15px; padding-bottom: 8px; }
.ar-del-note { margin: 8px 0; }
.ar-del-sub { line-height: 1.7; }
.ar-btn-danger { border-color: var(--ar-warn-line); color: var(--ar-warn-line); cursor: pointer; }
.ar-mgroup { padding: 12px 0; border-bottom: 1px solid var(--divider); }
.ar-mcols { display: flex; gap: 14px; align-items: center; padding-top: 6px; }
.ar-mnow, .ar-mafter { flex: 1; }
.ar-mrow-s { padding: 4px 0; font-size: 13px; }
.ar-marrow { color: var(--grid); font-size: 18px; }
.ar-material { margin-top: 12px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; }
.ar-matrow { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 4px; margin-bottom: 6px; background: var(--surface); font-size: 14px; }
.ar-matpick { border: 0; background: none; padding: 0; }
.ar-warn { margin-top: 8px; font-size: 13px; color: var(--ar-warn-line); }
.ar-pb8 { padding-bottom: 8px; }
.ar-tg.ar-tg-warn { border-color: var(--ar-warn-line); color: var(--ar-warn-line); }
.ar-detail-check { position: sticky; top: 12px; align-self: flex-start; max-height: calc(100vh - 24px); overflow: auto; }
.ar-dlg-merge { width: 560px; }
.ar-dlg-head-plain { border-bottom: 1px solid var(--border); }
.ar-mnow-line { padding-top: 2px; }
.ar-mafter-line { padding-top: 2px; font-size: 14px; }
.ar-merge-note { padding-top: 8px; line-height: 1.7; }
.ar-rolefilter .ar-lk { white-space: nowrap; }
.ar-dlg-narrow .ar-dlg-body, .ar-dlg-merge .ar-dlg-body { min-height: 0; }

/* マスターデータの書き出し／取り込み（A-56。管理者だけの画面なので、詰めた作り）。色は theme.css の変数 */
.md-page { max-width: 960px; }
.md-box { margin-top: 12px; padding: 12px 16px; }
.md-h { font-weight: 700; margin-bottom: 6px; }
.md-actions { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.md-table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 13px; }
.md-table th, .md-table td { border: 1px solid var(--border-strong); padding: 6px 10px; text-align: left; vertical-align: top; }
.md-table th { background: var(--surface-2); font-weight: 500; }
.md-box-error { border-color: var(--danger); }
.md-error, .md-done { margin-top: 12px; padding: 10px 14px; border-radius: var(--radius); font-size: 13px; }
.md-error { background: var(--surface-2); border: 1px solid var(--danger); color: var(--danger); }
.md-done { background: var(--surface-2); border: 1px solid var(--border-strong); }

/* 簡単申請の管理（A-63）：項目の表と、届く内容の枠 */
#admin-easy .ar-easy-tbl { width: 100%; border-collapse: collapse; }
#admin-easy .ar-easy-tbl th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 6px 6px 4px; white-space: nowrap; }
#admin-easy .ar-easy-tbl td { vertical-align: top; padding: 6px; border-top: 1px solid var(--divider); }
#admin-easy .ar-easy-tbl td:nth-child(5) { width: 32%; }
#admin-easy .ar-easy-tbl textarea.ar-ip { width: 100%; height: auto; min-height: 84px; box-sizing: border-box; padding: 6px 8px; }
#admin-easy .ar-easy-tbl .ar-ip { width: 100%; box-sizing: border-box; }
#admin-easy .ar-easy-tbl label.ar-sub { display: block; margin-top: 6px; }
#admin-easy .ar-easy-tbl .ar-acts { white-space: nowrap; }
#admin-easy .ar-step { border: 1px solid var(--border); padding: 10px 12px; margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
#admin-easy .ar-step .ar-field { display: block; }
#admin-easy .ar-step textarea.ar-ip { width: 100%; height: auto; min-height: 84px; box-sizing: border-box; padding: 6px 8px; }
#admin-easy .ar-step { align-items: stretch; }
#admin-easy .ar-step .ar-fields { padding: 0; }
#admin-easy .ar-step .ar-acts { justify-content: flex-start; }
#admin-easy .ar-share-h { margin-top: 10px; font-weight: 500; }

/* A-67 承認ルートの段（画面案 Template.dc.html） */
#admin-templates .ar-stage { border: 1px solid var(--border); margin-top: 10px; padding: 10px 14px; background: var(--surface-2); }
#admin-templates .ar-stage-top { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
#admin-templates .ar-stage-no { font-size: 14px; width: 78px; padding-bottom: 8px; }
#admin-templates .ar-lbl { display: flex; flex-direction: column; gap: 4px; }
#admin-templates .ar-stage-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
#admin-templates .ar-w56 { width: 56px; }
#admin-templates .ar-whochip { display: inline-flex; gap: 6px; align-items: center; height: 30px; padding: 0 10px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 13px; }
#admin-templates .ar-x { border: 0; background: none; color: var(--faint); cursor: pointer; padding: 0; }
#admin-templates .ar-whorow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#tpl-list .ar-newbtns { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
#tpl-list .ar-newform, #tpl-list .ar-newform .ar-btn-full { width: 100%; }
#tpl-list .ar-newform .ar-btn-full { height: 38px; font-size: 13px; }
#admin-templates .ar-whorow a.ar-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 15px; background: var(--surface); color: var(--text-2); font-size: 13px; text-decoration: none; }
#admin-templates .ar-whorow a.ar-chip.ar-chip-dark { background: var(--text); border-color: var(--text); color: var(--surface); }

/* A-69 申請書の管理：左の一覧（幅250px・分類ごとの開け閉め・検索・絞り込み）と右の「状態」の行（画面案30） */
.ar-list-250 { width: 250px; flex: none; max-width: 100%; }
#tpl-list .tpl-lhead { display: flex; align-items: center; gap: 8px; }
#tpl-list .tpl-make { height: 28px; font-size: 12px; padding: 0 10px; }
#tpl-list .tpl-newmenu { padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--border); }
#tpl-list .tpl-newmenu[hidden] { display: none; }
#tpl-list .tpl-search { padding: 10px 14px 6px; }
#tpl-list .tpl-search .ar-ip { display: block; width: 100%; min-width: 0; max-width: 100%; height: 32px; font-size: 13px; box-sizing: border-box; }
#tpl-list .tpl-chips { display: flex; gap: 6px; padding: 0 14px 10px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
#tpl-list .tpl-chip { height: 26px; padding: 0 10px; border-radius: 13px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font-size: 12px; cursor: pointer; }
#tpl-list .tpl-chip.on { background: var(--text); border-color: var(--text); color: var(--surface); }
#tpl-list .tpl-ghead { display: flex; align-items: center; padding: 6px 10px 6px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 13px; }
#tpl-list .tpl-gtoggle { flex: 1; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; color: var(--text); font-size: 13px; }
#tpl-list .tpl-gplus { width: 22px; height: 22px; border: 1px solid var(--border-strong); background: var(--surface); border-radius: 11px; font-size: 13px; line-height: 1; cursor: pointer; color: var(--text-2); padding: 0; }
#tpl-list .tpl-grp[hidden], #tpl-list .tpl-gbody[hidden], #tpl-list .tpl-row[hidden] { display: none; }
#tpl-list .tpl-row { display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px 0 28px; border-bottom: 1px solid var(--divider); text-decoration: none; color: var(--text); font-size: 13px; }
#tpl-list .tpl-row.on { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--faint); }
#tpl-list .tpl-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tpl-list .tpl-tag { flex: none; font-size: 11px; color: var(--muted); border: 1px solid var(--border-strong); border-radius: 9px; padding: 0 6px; }
#tpl-list .tpl-dim { color: var(--faint); }
.tpl-namerow { display: flex; gap: 8px; }
.tpl-namerow .ar-ip { flex: 1; }
.tpl-easyhead { padding-top: 6px; }
.tpl-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 12px; }
.tpl-statebtn { height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font-size: 13px; cursor: pointer; }
.tpl-statebtn.on { background: var(--text); border-color: var(--text); color: var(--surface); }
.tpl-del { color: var(--reject-ink); }
.tpl-delwrap { display: inline-flex; gap: 8px; align-items: center; }

/* 分類の編集・分類を足す（A-70） */
#tpl-list .tpl-gedit { margin-left: auto; margin-right: 8px; }
#tpl-list .tpl-gnew { padding: 10px 14px; border-top: 1px solid var(--border); font-size: 13px; }
#tpl-list .tpl-gnew a { color: var(--ar-link); }
#group-detail .group-form-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
#tpl-more { margin-top: 14px; }
