/* =========================================================
   Google 관리 콘솔 셸 — 실제 콘솔(admin.google.com) 외형 재현
   pages.css 뒤에 로드되어 기존 셸/홈 스타일을 재정의합니다.
   ========================================================= */

:root{
  --g-blue:#0b57d0;
  --g-blue-hover:#0842a0;
  --g-on-surface:#1f1f1f;
  --g-on-surface-var:#444746;
  --g-muted:#5f6368;
  --g-outline:#c4c7c5;
  --g-divider:#e1e3e1;
  --g-surface-1:#f8fafd;
  --g-surface-card:#f0f4f9;
  --g-nav-active:#d3e3fd;
  --g-nav-active-ink:#041e49;
  --g-hover:rgba(31,31,31,.06);
  --g-sans:'Google Sans','Product Sans',Roboto,'Noto Sans KR','Malgun Gothic','맑은 고딕','Apple SD Gothic Neo',sans-serif;
  --g-text:Roboto,'Noto Sans KR','Malgun Gothic','맑은 고딕','Apple SD Gothic Neo',sans-serif;
  --topbar-h:64px;
}

html,body{margin:0;background:#fff;color:var(--g-on-surface)}
body{font-family:var(--g-text);font-size:14px;line-height:1.45;-webkit-font-smoothing:antialiased}
h1,h2,h3,.brand-text{font-family:var(--g-sans);font-weight:400;letter-spacing:0}
button{font-family:inherit;cursor:pointer}
[hidden]{display:none !important}
::selection{background:#d3e3fd}

.msi{
  font-family:'Material Symbols Outlined';font-weight:400;font-style:normal;
  font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;
  white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:'liga';
  -webkit-font-smoothing:antialiased;font-variation-settings:'opsz' 24,'wght' 300;
  user-select:none;flex:0 0 auto;
}
.msi.s20{font-size:20px}.msi.s18{font-size:18px}.msi.s16{font-size:16px}.msi.fill{font-variation-settings:'FILL' 1,'opsz' 24,'wght' 300}

/* ---------- 상단바 ---------- */
.app-shell{min-height:100vh;display:flex;flex-direction:column}
.topbar{
  height:var(--topbar-h);display:flex;align-items:center;gap:4px;padding:0 8px 0 4px;
  background:#fff;border-bottom:0;position:sticky;top:0;z-index:40;backdrop-filter:none;
}
.icon-button{
  width:48px;height:48px;display:grid;place-items:center;border:0;border-radius:50%;
  background:transparent;color:#444746;transition:background .12s;
}
.icon-button:hover{background:var(--g-hover)}
.icon-button:active{background:rgba(31,31,31,.1)}
.brand{display:flex;align-items:center;gap:8px;padding:0 8px 0 4px;border:0;background:none;text-decoration:none;white-space:nowrap}
.brand-logo{width:30px;height:30px;flex:0 0 auto}
.brand-text{font-size:22px;color:#3c4043;letter-spacing:-.2px}
.brand small{display:none}
.searchbox{
  flex:1;max-width:720px;height:48px;display:flex;align-items:center;gap:14px;
  margin-left:36px;padding:0 18px;border:1px solid transparent;border-radius:8px;
  background:#f1f3f4;color:#5f6368;transition:background .12s,box-shadow .12s;
}
.searchbox:hover{background:#eceef0}
.searchbox:focus-within{background:#fff;box-shadow:0 1px 3px rgba(60,64,67,.3),0 4px 8px rgba(60,64,67,.15);border-color:transparent}
.searchbox .msi{font-size:22px}
.searchbox input{flex:1;min-width:0;border:0;outline:0;background:none;font-size:15px;color:#1f1f1f}
.searchbox input::placeholder{color:#5f6368}
.searchbox input::-webkit-search-cancel-button{-webkit-appearance:none}
.top-actions{margin-left:auto;display:flex;align-items:center;gap:2px;padding-right:4px}
.profile-button{
  width:36px;height:36px;margin-left:8px;display:grid;place-items:center;overflow:hidden;
  border:0;border-radius:50%;background:#a8644a;color:#fff;font-size:13px;font-weight:500;
}
.profile-button img{width:100%;height:100%;object-fit:cover}
.profile-button.full{background:#1a73e8}

/* 연습 모드 전환 (시뮬레이터 전용 UI) */
.mode-switch{display:flex;align-items:center;gap:2px;padding:3px;margin-right:6px;border-radius:999px;background:#f1f3f4}
.mode-switch button{
  height:30px;padding:0 14px;border:0;border-radius:999px;background:transparent;
  color:#5f6368;font-size:12px;font-weight:500;white-space:nowrap;transition:.12s;
}
.mode-switch button:hover{background:#e4e7ea}
.mode-switch button.active{background:#fff;color:#0b57d0;box-shadow:0 1px 2px rgba(60,64,67,.3)}

/* ---------- 작업 영역 ---------- */
.workspace{
  flex:1;display:grid;grid-template-columns:270px minmax(0,1fr) 360px;
  min-height:calc(100vh - var(--topbar-h));transition:grid-template-columns .2s ease;
}
.workspace.rail-collapsed{grid-template-columns:270px minmax(0,1fr) 56px}
.workspace.sidebar-collapsed{grid-template-columns:0 minmax(0,1fr) 360px}
.workspace.sidebar-collapsed.rail-collapsed{grid-template-columns:0 minmax(0,1fr) 56px}

/* ---------- 좌측 내비게이션 ---------- */
.sidebar{
  position:sticky;top:var(--topbar-h);height:calc(100vh - var(--topbar-h));
  display:flex;flex-direction:column;gap:0;overflow-y:auto;overflow-x:hidden;
  padding:8px 0 0;border-right:0;background:#fff;transition:transform .2s;z-index:20;
}
.sidebar::-webkit-scrollbar{width:8px}
.sidebar::-webkit-scrollbar-thumb{background:#dadce0;border-radius:4px}
.sidebar-collapsed .sidebar{transform:translateX(-100%)}
.nav-list{display:flex;flex-direction:column}
.nav-group{display:flex;flex-direction:column}
.nav-item{
  width:calc(100% - 16px);min-height:40px;display:flex;align-items:center;gap:12px;
  padding:8px 16px 8px 4px;border:0;border-radius:0 20px 20px 0;background:none;
  color:#444746;text-align:left;font-size:14px;font-weight:500;font-family:var(--g-text);
  transition:background .1s;
}
.nav-item:hover{background:var(--g-hover)}
.nav-item.active,.nav-item.active-parent{background:var(--g-nav-active);color:var(--g-nav-active-ink);font-weight:500}
.nav-item.active .msi,.nav-item.active-parent .msi{color:var(--g-nav-active-ink)}
.nav-item .nav-chevron{width:20px;flex:0 0 auto;display:grid;place-items:center;color:#5f6368}
.nav-item .nav-chevron .msi{font-size:18px}
.nav-item>.msi:not(.nav-chevron .msi){font-size:22px;color:#444746}
.nav-item .nav-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nav-item em{margin-left:auto;padding:1px 6px;background:#0b57d0;color:#fff;border-radius:8px;font-size:10px;font-style:normal;font-weight:500}
.nav-item .blue-dot{width:8px;height:8px;margin-left:auto;border-radius:50%;background:#0b57d0;flex:0 0 auto}
.nav-item.no-chevron{padding-left:28px}
.subitems{display:flex;flex-direction:column;padding:0 0 4px 0}
.subitems button{
  width:calc(100% - 16px);min-height:36px;padding:7px 16px 7px 52px;border:0;border-radius:0 20px 20px 0;
  background:none;color:#444746;text-align:left;font-size:14px;font-family:var(--g-text);
  display:flex;align-items:center;justify-content:space-between;gap:8px;
}
.subitems button:hover{background:var(--g-hover);color:#444746;font-weight:400}
.subitems button.active{background:var(--g-nav-active);color:var(--g-nav-active-ink);font-weight:500}
.sub-subitems{display:flex;flex-direction:column}
.sub-subitems button{padding-left:68px;font-size:13px}
.sidebar-spacer{flex:1;min-height:12px}
.nav-item.feedback{color:#444746}
.sidebar-legal{padding:14px 16px 18px 28px;color:#5f6368;font-size:11px;display:flex;flex-direction:column;gap:3px}
.sidebar-legal a{color:#0b57d0;text-decoration:none}
.sidebar-legal a:hover{text-decoration:underline}
.sidebar-legal small{margin-top:6px;color:#9aa0a6;font-size:10px;line-height:1.5}

/* ---------- 본문 ---------- */
.content{min-width:0;display:flex;flex-direction:column;background:#fff;padding-bottom:24px}

/* ---------- 우측 도구 패널 ---------- */
.tools-rail{position:relative;border-left:1px solid var(--g-divider);padding:24px 16px 24px 0;background:#fff}
.rail-toggle{
  position:absolute;left:-10px;top:18px;width:36px;height:36px;display:grid;place-items:center;
  border:0;border-radius:50%;background:#fff;color:#444746;
}
.rail-toggle:hover{background:var(--g-hover)}
.rail-collapsed .rail-toggle .msi{transform:rotate(180deg)}
.rail-body{padding-left:36px}
.rail-collapsed .rail-body{display:none}
.tools-rail h2{margin:6px 0 14px;font-size:16px;font-weight:500;color:#1f1f1f}
.rail-item{
  width:100%;min-height:40px;display:flex;align-items:center;gap:14px;padding:8px 12px 8px 0;
  border:0;background:none;color:#1f1f1f;text-align:left;font-size:14px;border-radius:8px;
}
.rail-item:hover{background:var(--g-hover)}
.rail-item .msi{font-size:20px;color:#5f6368}

/* ---------- 홈 대시보드 ---------- */
.home{padding:8px 24px 40px;max-width:1600px}
.home-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:12px 4px 20px}
.home-head h1{margin:0 0 4px;font-size:24px;color:#1f1f1f}
.home-head p{margin:0;color:var(--g-on-surface-var);font-size:13px}
.home-head .ou-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;background:#e8f0fe;color:#0b57d0;font-size:12px;font-weight:500}
.card-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
.card-col{display:flex;flex-direction:column;gap:16px;min-width:0}
.g-card{
  position:relative;padding:24px;border-radius:16px;background:var(--g-surface-card);
  border:1px solid transparent;transition:box-shadow .15s,background .15s;
}
.g-card.clickable{cursor:pointer}
.g-card.clickable:hover{background:#e9eef6;box-shadow:0 1px 3px rgba(60,64,67,.16)}
.g-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.g-card h2{margin:0 0 2px;font-size:22px;line-height:28px;color:#1f1f1f;font-weight:400}
.g-card .sub{margin:0;color:var(--g-on-surface-var);font-size:13px}
.g-card .see-all{border:0;background:none;color:var(--g-blue);font-size:14px;font-weight:500;white-space:nowrap;padding:6px 8px;border-radius:8px}
.g-card .see-all:hover{background:rgba(11,87,208,.08)}
.g-card.tall{min-height:392px;display:flex;flex-direction:column}
.card-link-list{display:flex;flex-direction:column;gap:2px;margin-top:4px}
.card-link-list button{
  min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:8px 10px;border:0;border-radius:8px;background:none;color:#1f1f1f;text-align:left;font-size:14px;
}
.card-link-list button:hover{background:rgba(255,255,255,.75)}
.card-link-list .msi{color:#5f6368;font-size:18px}
.card-stat{display:flex;align-items:baseline;gap:10px;margin:6px 0 10px}
.card-stat b{font-family:var(--g-sans);font-size:34px;font-weight:400;line-height:1}
.card-stat span{color:var(--g-on-surface-var);font-size:13px}
.card-error{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;
  padding:40px 10px;text-align:center;color:var(--g-on-surface-var);font-size:14px;
}
.card-error button{border:0;background:none;color:var(--g-blue);font-weight:500;font-size:14px;letter-spacing:.04em}
.update-list{display:flex;flex-direction:column}
.update-list button{
  display:flex;gap:16px;justify-content:space-between;padding:12px 6px;border:0;border-bottom:1px solid rgba(0,0,0,.06);
  background:none;text-align:left;color:#1f1f1f;font-size:14px;line-height:1.4;
}
.update-list button:last-child{border-bottom:0}
.update-list button:hover{background:rgba(255,255,255,.6)}
.update-list time{color:var(--g-muted);font-size:12px;white-space:nowrap;padding-top:2px}
.discover-art{
  margin:4px 0 18px;border-radius:12px;overflow:hidden;
  background:linear-gradient(135deg,#e8f0fe,#d3e3fd 60%,#c2e7ff);
}
.discover-art svg{display:block;width:100%;height:auto}
.g-card .body-text{margin:0 0 16px;color:var(--g-on-surface-var);font-size:14px;line-height:1.55}
.g-card .text-link{border:0;background:none;padding:0;color:var(--g-blue);font-size:14px;font-weight:500}
.g-card .text-link:hover{text-decoration:underline}

/* 연습 안내 배너 */
.practice-strip{
  display:flex;align-items:center;gap:12px;margin:8px 4px 16px;padding:12px 16px;
  border-radius:12px;background:#e8f0fe;color:#0842a0;font-size:13px;
}
.practice-strip .msi{font-size:20px}
.practice-strip b{font-weight:500}
.practice-strip button{margin-left:auto;border:0;background:none;color:#0b57d0;font-weight:500;font-size:13px}

/* ---------- 권한 없음(센스쿨 모드) ---------- */
.denied{max-width:560px;margin:80px auto;text-align:center;color:var(--g-on-surface-var)}
.denied .msi{font-size:56px;color:#9aa0a6}
.denied h1{margin:16px 0 8px;font-size:22px;color:#1f1f1f}
.denied p{margin:0 0 20px;font-size:14px;line-height:1.6}
.denied .pill{display:inline-block;padding:8px 16px;border-radius:999px;background:#fef7e0;color:#a56800;font-size:13px}

/* ---------- 토스트 (Material) ---------- */
.toast{
  position:fixed;left:24px;bottom:24px;right:auto;z-index:120;max-width:min(560px,calc(100% - 48px));
  display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:8px;
  background:#323232;color:#fff;box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px rgba(0,0,0,.14);
  font-size:14px;animation:toast-in .18s ease-out;
}
.toast .msi{font-size:20px;color:#8ab4f8}
.toast button{margin-left:auto;border:0;background:none;color:#8ab4f8;font-weight:500;font-size:13px;padding:4px 8px}
@keyframes toast-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

/* ---------- 모달 (Material 3) ---------- */
.modal-backdrop{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px;background:rgba(32,33,36,.5)}
.modal{
  width:min(600px,100%);max-height:calc(100vh - 48px);overflow:auto;background:#fff;border-radius:28px;
  box-shadow:0 24px 38px rgba(0,0,0,.14),0 9px 46px rgba(0,0,0,.12);animation:modal-in .16s ease-out;
}
@keyframes modal-in{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}
.modal>header{display:flex;justify-content:space-between;gap:20px;padding:24px 24px 12px;border-bottom:0}
.modal h2{margin:0 0 6px;font-family:var(--g-sans);font-size:22px;font-weight:400}
.modal header p:not(.eyebrow){margin:0;color:var(--g-on-surface-var);font-size:13px}
.modal .eyebrow{margin:0 0 6px;color:#0b57d0;font-size:11px;font-weight:700;letter-spacing:.08em}
.practice-form,.policy-body{display:grid;gap:16px;padding:8px 24px 24px}
.practice-form label>span,.policy-body>label>span,.member-picker legend{font-size:13px;font-weight:500;color:#444746}
.practice-form input,.practice-form select,.practice-form textarea,.policy-body select,.policy-body textarea{
  width:100%;min-height:48px;padding:12px 14px;border:1px solid var(--g-outline);border-radius:8px;background:#fff;outline:0;font-size:14px;
}
.practice-form input:focus,.practice-form select:focus,.practice-form textarea:focus,.policy-body select:focus{border:2px solid var(--g-blue);padding:11px 13px}
.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}
.form-actions button{min-height:40px;padding:0 24px;border:0;border-radius:999px;background:transparent;color:var(--g-blue);font-weight:500;font-size:14px}
.form-actions button:hover{background:rgba(11,87,208,.08)}
.form-actions button[type=submit],.form-actions button.filled{background:var(--g-blue);color:#fff}
.form-actions button[type=submit]:hover,.form-actions button.filled:hover{background:var(--g-blue-hover)}
.policy-body fieldset{display:grid;gap:4px;padding:8px;border:1px solid var(--g-divider);border-radius:12px}
.policy-body fieldset label{display:flex;align-items:center;gap:10px;padding:10px;border-radius:8px}
.policy-body fieldset label:hover{background:#f8f9fa}
.policy-preview{display:flex;justify-content:space-between;gap:16px;padding:14px;border-radius:12px;background:#e8f0fe;color:#0842a0;font-size:13px}

/* ---------- 버튼 공통 ---------- */
.primary-button{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 24px;border:0;border-radius:999px;background:var(--g-blue);color:#fff;font-size:14px;font-weight:500}
.primary-button:hover{background:var(--g-blue-hover);box-shadow:0 1px 2px rgba(60,64,67,.3)}
.outline-button{min-height:40px;display:inline-flex;align-items:center;gap:8px;padding:0 22px;border:1px solid var(--g-outline);border-radius:999px;background:#fff;color:var(--g-blue);font-size:14px;font-weight:500}
.outline-button:hover{background:rgba(11,87,208,.06)}
.link-btn{border:0;background:none;color:var(--g-blue);font-weight:500;padding:0;font-size:inherit}
.link-btn:hover{text-decoration:underline}

/* ---------- 페이지 공통(pages.css 보정) ---------- */
.section-page,.admin-page{width:auto;max-width:1600px;margin:0;padding:20px 24px 48px}
.page-crumb{margin-bottom:10px;color:var(--g-muted);font-size:12px}
.admin-page>h1,.page-title-row h1{font-family:var(--g-sans);font-weight:400;font-size:24px;letter-spacing:0}
.admin-table th{background:#fff;color:var(--g-muted);font-weight:500;border-bottom:1px solid var(--g-divider)}
.admin-table td{border-bottom:1px solid #f1f3f4}
.admin-table tbody tr:hover{background:#f8fafd}
.data-panel,.data-panel.flat,.ou-table-wrap,.org-tree,.settings-card,.chrome-settings-layout,.setup-accordion,.ext-card,.chrome-widgets article,.report-cards article{border-color:var(--g-divider);border-radius:12px}
.blue-text{color:var(--g-blue)}
.settings-row{grid-template-columns:2fr 2fr 1.4fr 1fr}
.settings-row.category-header{background:#f8fafd}
.search-results{padding:24px}

/* ---------- 로그인 화면 ---------- */
.signin-shell{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;padding:40px 20px;background:#f0f4f9}
.signin-card{width:min(460px,100%);padding:44px 40px 36px;background:#fff;border:1px solid #dadce0;border-radius:28px;text-align:center}
.google-wordmark{font-family:var(--g-sans);font-size:30px;font-weight:500;letter-spacing:-1px;margin-bottom:18px}
.signin-card h1{margin:0 0 8px;font-size:24px;font-weight:400}
.signin-sub{margin:0 0 24px;color:var(--g-on-surface-var);font-size:14px}
.account-list{display:flex;flex-direction:column;gap:2px;margin-bottom:20px;text-align:left}
.account-row{display:flex;align-items:center;gap:16px;padding:14px 12px;border:0;border-radius:12px;background:none}
.account-row:hover{background:#f1f3f4}
.account-avatar{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;color:#fff;font-size:13px;font-weight:500;flex:0 0 auto}
.account-avatar.sen{background:#a8644a}
.account-avatar.full{background:#1a73e8}
.account-text{display:flex;flex-direction:column;gap:2px;min-width:0;text-align:left}
.account-text strong{font-size:14px;font-weight:500}
.account-text small{color:var(--g-on-surface-var);font-size:13px}
.account-text em{color:var(--g-muted);font-size:11px;font-style:normal}
.signin-note{margin:0 0 16px;color:var(--g-muted);font-size:12px;line-height:1.6;text-align:left}
.signin-domain{display:inline-block;padding:6px 14px;border-radius:999px;background:#e8f0fe;color:#0842a0;font-size:12px;font-weight:500}
.signin-footer{display:flex;flex-direction:column;align-items:center;gap:4px;color:var(--g-muted);font-size:12px;text-align:center}
.signin-footer a{color:var(--g-blue);text-decoration:none}
.signin-footer small{color:#9aa0a6;font-size:11px}

/* ---------- 반응형 ---------- */
@media(max-width:1400px){
  .workspace{grid-template-columns:270px minmax(0,1fr) 56px}
  .workspace .tools-rail .rail-body{display:none}
  .workspace.rail-open{grid-template-columns:270px minmax(0,1fr) 340px}
  .workspace.rail-open .tools-rail .rail-body{display:block}
  .card-columns{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1000px){
  .searchbox{margin-left:12px}
  .mode-switch button{padding:0 10px}
}
@media(max-width:860px){
  .workspace,.workspace.rail-collapsed,.workspace.rail-open,.workspace.sidebar-collapsed{display:block}
  .tools-rail{display:none}
  .sidebar{position:fixed;top:var(--topbar-h);left:0;width:280px;transform:translateX(-100%);box-shadow:0 8px 24px rgba(0,0,0,.2);z-index:30}
  .workspace:not(.sidebar-collapsed) .sidebar{transform:translateX(0)}
  .card-columns{grid-template-columns:1fr}
  .brand-text{display:none}
  .home,.section-page,.admin-page{padding-left:16px;padding-right:16px}
  .desktop-only{display:none}
  .mode-switch{margin-right:0}
}

/* ---------- 아코디언 설정 카드(details/summary) ---------- */
.accordion-card{padding:0}
.accordion-card>summary{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:20px 22px;cursor:pointer;list-style:none;margin:0}
.accordion-card>summary::-webkit-details-marker{display:none}
.accordion-card>summary::marker{content:''}
.accordion-card>summary h2{margin:0;font-family:var(--g-sans);font-size:18px;font-weight:400}
.accordion-card>summary p{margin:4px 0 0;color:var(--g-on-surface-var);font-size:13px}
.accordion-card>summary:hover{background:#f8fafd;border-radius:12px}
.accordion-card[open]>summary .msi{transform:rotate(180deg)}
.accordion-card .accordion-body{padding:0 22px 20px}
.accordion-card .accordion-body .settings-card-grid,.accordion-card .accordion-body .card-kv{margin-top:0}

/* 카테고리 머리행의 잔여 ::before가 그리드 칸을 밀어내던 문제 수정 */
.settings-row.category-header::before{display:none}
.settings-row.category-header{display:flex;align-items:center;min-height:44px;padding-left:16px}
.settings-row>span,.settings-row>b{min-width:0;overflow-wrap:anywhere}
.settings-row{align-items:start;padding:14px 16px}
.settings-row .platforms{justify-self:start}

.settings-row .platforms{display:inline-flex;gap:6px;color:#9aa0a6;letter-spacing:0}
.settings-row .platforms .msi{font-size:16px}
.ou-picker-tabs{flex-wrap:nowrap;overflow:auto}
.ou-picker-tabs button{white-space:nowrap;font-size:12px;padding:8px}
.table-wrap{overflow-x:auto}

.policy-body input[type=radio],.policy-body input[type=checkbox]{width:20px;height:20px;min-height:0;margin:0;accent-color:var(--g-blue);flex:0 0 auto}
.policy-body fieldset label span{flex:1;text-align:left;font-size:14px;line-height:1.4;word-break:keep-all}
.policy-body legend{font-size:13px;font-weight:500;color:#444746;padding:0 4px}
.member-picker input[type=checkbox]{width:18px;height:18px;min-height:0;accent-color:var(--g-blue)}
.ou-picker-tabs::-webkit-scrollbar{height:0}

/* 좁은 화면 보정 */
.practice-strip{flex-wrap:wrap}
.practice-strip>span:not(.msi){flex:1 1 240px;min-width:0}
.practice-strip button{white-space:nowrap}
.home-head{flex-wrap:wrap}
@media(max-width:860px){
  .topbar{gap:0}
  .searchbox{height:42px;margin-left:4px;padding:0 12px;gap:8px}
  .mode-switch{padding:2px;margin-left:4px}
  .mode-switch button{height:26px;padding:0 8px;font-size:11px}
  .icon-button{width:40px;height:40px}
  .profile-button{margin-left:4px;width:32px;height:32px}
  .g-card{padding:18px}
  .g-card.tall{min-height:0}
  .directory-layout,.apps-layout,.chrome-settings-layout,.dir-settings-layout{grid-template-columns:1fr}
  .page-title-row{flex-direction:column;align-items:stretch;gap:12px}
  .settings-row{grid-template-columns:1fr 1fr;row-gap:4px}
  .settings-row .platforms,.settings-row.header b:nth-child(3),.settings-row.header b:nth-child(4),.settings-row>span:nth-child(3){display:none}
}

/* ---------- 3단계 사이드바 ---------- */
.subitems .nav-branch>button{
  width:calc(100% - 16px);min-height:36px;display:flex;align-items:center;gap:4px;
  padding:7px 12px 7px 52px;border:0;border-radius:0 20px 20px 0;background:none;
  color:#444746;text-align:left;font-size:14px;font-family:var(--g-text);
}
.subitems .nav-branch>button:hover{background:var(--g-hover)}
.subitems .nav-branch>button .nav-chevron{width:18px;margin-left:-22px;margin-right:4px;color:#5f6368}
.subitems .nav-branch>button .nav-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.subitems .nav-branch>button.active{background:var(--g-nav-active);color:var(--g-nav-active-ink);font-weight:500}
/* 펼쳐진 상위 메뉴는 실제 콘솔처럼 파란 테두리 알약으로 */
.subitems .nav-branch>button.has-children.expanded{
  background:#fff;color:var(--g-blue);font-weight:500;
  border:1px solid #a8c7fa;border-radius:20px;width:calc(100% - 20px);margin-left:4px;
}
.subitems .nav-branch>button.has-children.expanded .nav-chevron{color:var(--g-blue)}
.subitems.nested{padding-left:0}
.subitems.nested .nav-branch>button{padding-left:72px}
.subitems.nested .nav-branch>button .nav-chevron{margin-left:-22px}
.subitems.nested .subitems.nested .nav-branch>button{padding-left:92px}

/* ---------- 조직 단위 표 ---------- */
.ou-table td{padding:10px 16px}
.ou-table td:first-child{display:flex;align-items:center;gap:2px}
.ou-toggle{width:28px;height:28px;display:grid;place-items:center;border:0;border-radius:50%;background:none;color:#5f6368;flex:0 0 auto}
.ou-toggle:hover{background:var(--g-hover)}
.ou-toggle.empty{visibility:hidden}
.ou-indent{display:inline-block;flex:0 0 auto}
.ou-name{font-size:14px;color:#1f1f1f}
.ou-name.root{font-weight:500}
.ou-desc{color:var(--g-on-surface-var)}
.ou-toolbar strong{font-size:15px;font-weight:500}
.ou-toolbar .link-btn{display:inline-flex;align-items:center;gap:4px}

/* ---------- 표 행 작업 버튼(빨간 삭제 버튼 대체) ---------- */
.col-actions{width:96px;text-align:right;white-space:nowrap}
.row-action{
  width:32px;height:32px;display:inline-grid;place-items:center;border:0;border-radius:50%;
  background:none;color:#5f6368;opacity:0;transition:opacity .12s,background .12s;
}
tr:hover .row-action,.row-action:focus-visible{opacity:1}
.row-action:hover{background:var(--g-hover)}
.row-action.danger:hover{background:#fce8e6;color:#c5221f}

/* 현재 섹션이 펼쳐져 있을 때 상위 행은 채우지 않음(실제 콘솔과 동일) */
.nav-item.active-parent{background:none;color:#444746;font-weight:500}
.nav-item.active-parent:hover{background:var(--g-hover)}
.nav-item.active-parent .msi{color:#444746}

/* ---------- 어디서나 클릭해 바꾸는 값 ---------- */
.editable{
  display:inline-flex;align-items:center;gap:4px;max-width:100%;
  padding:3px 8px;margin:-3px 0;border:1px solid transparent;border-radius:8px;
  background:none;color:inherit;font:inherit;text-align:left;line-height:1.45;cursor:pointer;
}
.editable>span{min-width:0;overflow-wrap:anywhere}
.editable .msi{opacity:0;color:var(--g-blue);transition:opacity .12s}
.editable:hover{background:#e8f0fe;border-color:#d2e3fc;color:#0842a0}
.editable:hover .msi{opacity:1}
.editable.changed{color:#0b57d0;font-weight:500}
.editable.changed::after{content:'변경됨';margin-left:6px;padding:1px 6px;border-radius:999px;background:#e6f4ea;color:#137333;font-size:10px;font-weight:700}
.editable.status-on{color:#188038;font-weight:500}
.editable.status-off{color:#5f6368}
td .editable,.settings-card-grid .editable{margin-left:-8px}

/* ---------- 계정 팝오버 / 초기화 ---------- */
.popover-backdrop{position:fixed;inset:0;z-index:100;background:transparent}
.account-popover{
  position:absolute;top:60px;right:16px;width:min(360px,calc(100vw - 32px));
  padding:20px;border-radius:20px;background:#fff;
  box-shadow:0 4px 8px rgba(60,64,67,.15),0 8px 24px rgba(60,64,67,.24);
  animation:modal-in .14s ease-out;
}
.account-head{display:flex;align-items:center;gap:14px;margin-bottom:16px}
.account-head>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.account-head strong{font-size:15px;font-weight:500}
.account-head small{color:var(--g-on-surface-var);font-size:13px;overflow-wrap:anywhere}
.account-head em{margin-top:4px;padding:2px 8px;border-radius:999px;background:#e8f0fe;color:#0842a0;font-size:11px;font-style:normal;align-self:flex-start}
.account-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:12px 0;border-top:1px solid var(--g-divider);border-bottom:1px solid var(--g-divider)}
.account-stats span{display:flex;flex-direction:column;gap:2px;color:var(--g-muted);font-size:11px;text-align:center}
.account-stats b{font-family:var(--g-sans);font-size:20px;font-weight:400;color:#1f1f1f}
.account-note{display:flex;gap:8px;margin:14px 0 16px;color:var(--g-on-surface-var);font-size:12px;line-height:1.6}
.account-note .msi{color:var(--g-blue);flex:0 0 auto}
.account-actions{display:flex;flex-direction:column;gap:8px}
.account-actions .outline-button{width:100%;justify-content:center}
@media(max-width:520px){.account-popover{top:auto;bottom:16px;right:16px;left:16px;width:auto}}

/* ---------- 앱 추가(소스 선택) ---------- */
.modal.app-source{width:min(520px,100%)}
.source-list{display:flex;flex-direction:column;gap:4px;padding:8px 16px 24px}
.source-list button{
  display:flex;align-items:center;gap:16px;padding:14px 12px;border:0;border-radius:12px;
  background:none;text-align:left;color:#1f1f1f;
}
.source-list button:hover{background:#f1f3f4}
.source-list button>span:nth-child(2){display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.source-list strong{font-size:14px;font-weight:500}
.source-list small{color:var(--g-on-surface-var);font-size:12px;line-height:1.5}
.source-list .msi{color:#5f6368;flex:0 0 auto}
.source-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;flex:0 0 auto}
.source-icon .msi{color:inherit}
.source-icon.store{background:#e8f0fe;color:#1967d2}
.source-icon.url{background:#e6f4ea;color:#188038}
.source-icon.id{background:#fef7e0;color:#e37400}
.source-icon.play{background:#fce8e6;color:#d93025}
.fab-yellow{transition:box-shadow .12s,transform .12s}
.fab-yellow:hover{box-shadow:0 6px 16px rgba(0,0,0,.28);transform:translateY(-1px)}

/* ---------- 추가 가능한 목록 ---------- */
.list-panel{position:relative;min-height:320px}
.list-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:64px 24px;text-align:center}
.list-empty .msi{font-size:40px;color:#c4c7c5}
.list-empty strong{font-family:var(--g-sans);font-size:17px;font-weight:400;color:#1f1f1f}
.list-empty p{margin:0 0 10px;max-width:420px;color:var(--g-on-surface-var);font-size:13px;line-height:1.6}
.field-help{color:var(--g-muted);font-size:12px}
.practice-form .switch-line{display:flex;align-items:center;gap:10px;padding:12px;border-radius:12px;background:#f8fafd}
.practice-form .switch-line input{width:18px;height:18px;min-height:0;accent-color:var(--g-blue)}
.practice-form .switch-line strong{font-size:13px;font-weight:500}

/* ---------- 건물 및 리소스 ---------- */
.resource-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:16px;position:relative}
.building-pane{border:1px solid var(--g-divider);border-radius:12px;background:#fff;padding:16px;height:fit-content}
.building-pane h2{margin:0 0 12px;font-size:16px;font-weight:500}
.building-empty{color:var(--g-on-surface-var);font-size:13px;line-height:1.7}
.building-empty .link-btn{display:inline-block;margin-top:6px}
.building-list{display:flex;flex-direction:column;gap:2px;margin-top:8px}
.building-list button{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px;border:0;border-radius:8px;background:none;text-align:left;font-size:14px;color:#1f1f1f}
.building-list button:hover{background:var(--g-hover)}
.building-list small{color:var(--g-muted);font-size:12px}
.room-settings-hero{display:flex;align-items:center;gap:14px;padding:22px;border:1px solid var(--g-divider);border-radius:12px;background:#fff;height:fit-content}
.room-settings-hero .section-icon{background:#e8f0fe;color:#1967d2}
.room-settings-hero h2{margin:0;font-size:18px;font-weight:400}
@media(max-width:900px){.resource-layout{grid-template-columns:1fr}}

/* ---------- 보고서 라인 차트 범례 ---------- */
.chart-legend{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:10px}
.chart-legend label{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:#3c4043;cursor:default}
.legend-box{width:18px;height:18px;display:inline-grid;place-items:center;border-radius:3px;color:#fff;flex:0 0 auto}
.legend-box .msi{font-size:14px;font-variation-settings:'wght' 600}

/* ext-card 를 버튼으로 쓸 때 */
button.ext-card{font:inherit;text-align:left;display:block;width:100%}
button.ext-card .link-btn{display:inline-flex;align-items:center;gap:4px;margin-top:14px}

/* ---------- 약관/개인정보 문서 모달 ---------- */
.legal-doc{padding:8px 24px 24px;font-size:14px;line-height:1.7;color:#3c4043}
.legal-doc p{margin:0 0 12px}
.legal-doc b{color:#1f1f1f}
.signin-footer a{color:var(--g-blue)}

/* ---------- 언어 토글 ---------- */
.lang-toggle{
  height:30px;padding:0 14px;margin-right:4px;border:1px solid var(--g-outline);border-radius:999px;
  background:#fff;color:#444746;font-size:12px;font-weight:500;white-space:nowrap;
}
.lang-toggle:hover{background:#f1f3f4}
.signin-lang{position:fixed;top:16px;right:16px;z-index:10}
@media(max-width:860px){.lang-toggle{padding:0 10px}}

/* ---------- 기기 등록 마법사 ---------- */
.modal.enroll-modal{width:min(760px,100%)}
.enroll-body{padding:4px 24px 24px}
.enroll-body h3{margin:8px 0 16px;font-size:15px;font-weight:500;color:#1f1f1f}
.enroll-cards{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px}
.enroll-card{
  display:flex;flex-direction:column;align-items:flex-start;gap:10px;
  padding:22px;border:1px solid var(--g-divider);border-radius:12px;background:#fff;
  text-align:left;font:inherit;cursor:pointer;transition:border-color .12s,box-shadow .12s;
}
.enroll-card:hover{box-shadow:0 1px 6px rgba(60,64,67,.18)}
.enroll-card.selected{border:2px solid var(--g-blue);padding:21px}
.enroll-card .enroll-art{height:48px;display:flex;align-items:center}
.enroll-card strong{font-size:15px;font-weight:500}
.enroll-card p{margin:0;color:var(--g-on-surface-var);font-size:13px;line-height:1.55;min-height:40px}
.enroll-card .outline-button{pointer-events:none;min-height:34px;padding:0 18px}
.enroll-body .form-actions .filled:disabled{background:#e8eaed;color:#9aa0a6;cursor:default}
@media(max-width:640px){.enroll-cards{grid-template-columns:1fr}}
