/* 漢威牧區｜名單頁共用樣式（組員通訊錄、新朋友名單） */
/* ===== 通訊錄（Apple 風格：電腦＝表格＋右側檢閱器；手機＝白色卡片） ===== */
html.sr-members, html.sr-members body { font-size: 16px; }
.m-dark-field { height: 38px; border-radius: 10px; background: #1C1C1E; border: 1px solid rgba(255,255,255,.08); color: #fff; font: inherit; font-size: 15px; padding: 0 12px; }
select.m-dark-field { appearance: none; padding-right: 30px; cursor: pointer;
  background: #1C1C1E url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aeaeb2' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px; }
select.m-dark-field option { background: #1C1C1E; }
.m-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 11px; background: #1C1C1E; color: rgba(235,235,245,.5); }
.m-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; font: inherit; font-size: 16px; outline: none; }
.m-seg { display: inline-flex; padding: 2px; border-radius: 10px; background: #1C1C1E; }
.m-seg button { height: 34px; padding: 0 16px; border-radius: 8px; border: 0; background: transparent; color: rgba(235,235,245,.8); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.m-seg button[aria-pressed="true"] { background: #636366; color: #fff; }
.m-round { width: 38px; height: 38px; border-radius: 50%; border: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
/* 縮小視窗時文字不要直排：按鈕、選單、標籤一律不換行，工具列整排換行 */
.m-dark-field, .m-btn, .m-chip, .m-seg button, .m-search input, .m-in, .sr-pill, .m-link { white-space: nowrap; }
.m-dark-field { min-width: 0; max-width: 100%; text-overflow: ellipsis; overflow: hidden; }
.m-th { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; padding: 4px 6px; margin: -4px -6px; border-radius: 7px; font: inherit; font-size: 13px; font-weight: 700; color: #6E6E73; cursor: pointer; white-space: nowrap; }
.m-th:hover { background: #ECECF0; color: #1D1D1F; }
.m-th[data-active="true"] { color: #007E8A; background: #D9F1F3; }
.m-th svg { flex: none; }
.m-th { max-width: 100%; } .m-th .lbl { overflow: hidden; text-overflow: ellipsis; }
.m-dark-btn { height: 38px; background: #1C1C1E; color: rgba(235,235,245,.9); border: 1px solid rgba(255,255,255,.08); }
.m-dark-btn:hover { background: #2C2C2E; }
.m-colmenu { position: fixed; z-index: 90; min-width: 200px; max-height: 60vh; overflow-y: auto; background: #fff; color: #1D1D1F; border-radius: 12px; padding: 6px; box-shadow: 0 12px 40px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.06); }
.m-colmenu button { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: transparent; text-align: left; padding: 8px 10px; border-radius: 8px; font: inherit; font-size: 15px; color: #1D1D1F; cursor: pointer; white-space: nowrap; }
.m-colmenu button:hover, .m-colmenu button:focus-visible { background: #F2F2F7; outline: none; }
.m-colmenu .chk { width: 16px; color: #007E8A; font-weight: 900; }
.m-colmenu hr { border: 0; border-top: 1px solid #E5E5EA; margin: 4px 6px; }
#inspector:not(.hidden) { animation: m-slide .18s ease-out; }
@keyframes m-slide { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.sr-avatar { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; line-height: 1; }
.sr-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }

/* 電腦版：白色表格 */
.m-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.m-table th { position: sticky; top: 0; z-index: 2; text-align: left; font-size: 13px; font-weight: 700; color: #6E6E73; padding: 10px 12px; background: #F9F9FB; border-bottom: 1px solid #D1D1D6; white-space: nowrap; }
.m-table td { font-size: 15px; color: #1D1D1F; padding: 8px 12px; border-bottom: 1px solid #EFEFF4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-table td > div { min-width: 0; } .m-table td > div > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.m-table tbody tr { cursor: pointer; }
.m-table tbody tr:nth-child(even) td { background: #FBFBFD; }
.m-table tbody tr:hover td { background: #F0F7F8; }
.m-table tbody tr[aria-selected="true"] td { background: #D9F1F3; }
.m-muted { color: #AEAEB2; }

/* 淺色面板（檢閱器、手機個人資料頁） */
.m-light { color: #1D1D1F; }
.m-group { background: #fff; border-radius: 14px; overflow: hidden; }
.m-row { display: flex; flex-direction: column; gap: 2px; padding: 11px 16px; border-top: 1px solid #E5E5EA; }
.m-row:first-child { border-top: 0; }
.m-lab { font-size: 13px; font-weight: 600; color: #6E6E73; }
.m-val { font-size: 18px; font-weight: 500; color: #1D1D1F; word-break: break-word; white-space: pre-line; }
.m-in { width: 100%; box-sizing: border-box; min-height: 40px; border-radius: 9px; border: 1px solid #D1D1D6; background: #fff; padding: 7px 10px; font: inherit; font-size: 16px; color: #1D1D1F; }
.m-in:focus { outline: 3px solid rgba(0,126,138,.35); border-color: #007E8A; }
.m-in:disabled { background: #F2F2F7; color: #3A3A3C; }
select.m-in { appearance: none; padding-right: 30px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px; }
.m-in.sr-invalid { border-color: #E5484D; }
.m-lseg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 2px; border-radius: 9px; background: #E5E5EA; }
.m-lseg button { height: 34px; border: 0; border-radius: 7px; background: transparent; font: inherit; font-size: 15px; font-weight: 700; color: #3A3A3C; cursor: pointer; }
.m-lseg button[aria-pressed="true"] { background: #fff; color: #1D1D1F; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.m-btn { height: 40px; border-radius: 10px; border: 0; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 14px; text-decoration: none; }
.m-btn:disabled { opacity: .5; cursor: not-allowed; }
.m-btn-teal { background: #007E8A; color: #fff; }
.m-btn-white { background: #fff; color: #1D1D1F; }
.m-btn-gray { background: #E5E5EA; color: #1D1D1F; }
.m-btn-red { background: transparent; color: #D70015; }
.m-act { flex: 1; height: 64px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 14px; font-weight: 700; text-decoration: none; }

/* 手機版：白色卡片 */
.m-card { display: flex; align-items: center; gap: 12px; background: #fff; color: #1D1D1F; border-radius: 18px; padding: 12px 12px 12px 14px; }
.m-card > button { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border: 0; background: transparent; text-align: left; font: inherit; color: inherit; padding: 0; cursor: pointer; }
.m-call { flex: none; width: 52px; height: 52px; border-radius: 50%; background: #007E8A; color: #fff; display: flex; align-items: center; justify-content: center; }
.m-chip { flex: none; height: 36px; border-radius: 999px; border: 0; padding: 0 14px; font: inherit; font-size: 15px; font-weight: 700; background: #1C1C1E; color: rgba(235,235,245,.85); cursor: pointer; }
.m-chip[aria-pressed="true"] { background: #007E8A; color: #fff; }
.m-scroll-x { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.m-scroll-x::-webkit-scrollbar { display: none; }

/* 手機全螢幕個人資料頁 */
.m-sheet { position: fixed; inset: 0; z-index: 120; background: #000; overflow-y: auto; overscroll-behavior: contain; }
.m-sheet-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 0 8px; background: rgba(0,0,0,.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
#inspector [data-foot] { background: #F2F2F7; }
#sheetBody [data-foot] { background: #000; }
#sheetBody .m-head-name { color: #fff; }
.m-link { border: 0; background: transparent; color: #2DD4DF; font: inherit; font-size: 17px; font-weight: 600; padding: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; }
