/* macOS 27 app appearance, isolated from the existing theme. */
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"]{
 --accent:#007aff; --accent-strong:#0064d4; --accent-soft:#e6f0ff;
 --text:#20232a; --text-2:#515866; --text-3:#707888;
 --panel:#fdfdfe; --bg:#f2f4f8; --border:#dfe3e9; --row-line:#e8ebf0;
 --input-bg:#f6f7fa; --hover:#edf2fa; --thead-bg:#f4f6fa; --thead-text:#626c7e;
 --glass-shadow:0 8px 24px #2535550a;
}
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] body{ font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Microsoft YaHei",sans-serif; background:#202936; }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .sidebar{ background:linear-gradient(160deg,#f7fbff9c,#e9f0fc6b); border-right:1px solid rgba(72,96,130,.10); box-shadow:inset -1px 0 #879bb91a; backdrop-filter:blur(32px) saturate(135%); -webkit-backdrop-filter:blur(32px) saturate(135%); }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .sidebar-brand{ height:82px; padding:0 20px; font-size:14px; font-weight:650; }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .sidebar-brand .logo{ width:30px; height:30px; }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .sidebar::after{ background:#ffffff52; border:1px solid rgba(72,96,130,.10); color:#697587; font-size:11px; box-shadow:0 3px 10px rgba(38,63,92,.04); }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .search-box{ padding:0 16px 16px; }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .tree{ padding:6px 12px; }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .tree-row{ min-height:36px; padding:8px 10px; border-radius:12px; transition:background .15s ease; }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .tree-row:hover{ transform:none; background:#ffffff85; }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .tree-row .node-name{ color:#3f4a5b; }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .tree-row .node-icon{ color:#477bad; }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .topbar{ height:82px; padding:0 24px; background:linear-gradient(180deg,#ffffffb8,#fbfcff80); border-bottom:1px solid rgba(72,96,130,.10); box-shadow:0 2px 12px #33466604; backdrop-filter:blur(28px) saturate(130%); -webkit-backdrop-filter:blur(28px) saturate(130%); }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .workspace-title strong{ font-size:18px; font-weight:650; letter-spacing:-.025em; color:#242832; }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .workspace-title span{ font-size:11px; color:#70798a; }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .actions{ gap:7px; }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .toolbar-title{ font-size:22px; font-weight:700; letter-spacing:-.035em; color:#232833; }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .dashboard-topline{ gap:12px; }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .dashboard-domain-grid{ gap:16px; padding:8px 2px 20px; }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .dashboard-card:nth-child(n){ --domain-accent:#3e94e5 !important; height:194px; transition:box-shadow .18s ease,transform .18s ease; }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .dashboard-card-body{ padding:17px; }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .dashboard-card h3{ font-size:14px; color:#272c37; font-weight:650; }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .dashboard-size b{ font-size:24px; color:#283246; font-weight:600; }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .dashboard-card p, html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .dashboard-summary em{ color:#6d788a; }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .dashboard-card .dashboard-icon{ width:34px; height:34px; border-radius:12px; border:1px solid rgba(72,96,130,.10); color:#fff; background:linear-gradient(155deg,#66b9ff,#087be8); box-shadow:0 3px 7px #147dcc26; }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .dashboard-card-foot{ border:0; color:#6c788c; }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .dashboard-arrow{ color:#0877d9; }

html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .notification-button{ border:1px solid rgba(72,96,130,.10); background:linear-gradient(180deg,#ffffffdb,#f4f7fcab); box-shadow:0 2px 5px #3247680d; color:#465164; }


html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] :is(.dashboard-search,.search-box input){ height:34px; min-height:34px; border-radius:12px; font-size:12px; }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] :is(.settings-table,.record-section,.data-source-panel,.data-lineage-panel,.role-editor,.role-sidebar,.data-table-wrap){ border-radius:16px; }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] table thead th{ color:#697487; font-weight:600; }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] table tbody tr:hover{ background:#f0f6ff; }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] :is(.modal,.settings-user-dialog,.profile-dialog,.governance-dialog,.navigation-sort-dialog,.user-popover,.notification-popover,.data-filter-panel){ background:#fafcfff2; border:1px solid rgba(72,96,130,.10); box-shadow:0 20px 55px #24335026; backdrop-filter:blur(28px) saturate(125%); -webkit-backdrop-filter:blur(28px) saturate(125%); }
/* User permissions uses a full-width document tab rail, rather than a segmented control. */
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] :is(.data-version-tabs,.dashboard-view-switch){ background:#e5eaf280; border:1px solid rgba(72,96,130,.10); border-radius:12px; }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] :is(.data-version-tabs,.dashboard-view-switch) button.active{ background:rgba(207,230,250,.68); color:#006fdc; box-shadow:0 2px 4px rgba(28,52,82,.10); border-radius:8px; }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .settings-tabs{ background:transparent; border:0; border-bottom:1px solid rgba(72,96,130,.16); border-radius:0; }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .settings-tabs button, html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .settings-tabs button.active{ background:transparent; box-shadow:none; border-radius:0; }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .settings-tabs button.active{ color:#006fdc; }
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] :is(button,input,select,textarea):focus-visible{ outline:3px solid #007aff70; outline-offset:2px; }
@media (hover:hover) and (pointer:fine) { html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .dashboard-card:hover{ transform:translateY(-3px); box-shadow:0 12px 26px #253f6614; } }
/* Role permissions stay within the blue glass surface instead of falling back to white panels. */
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] :is(.role-sidebar,.role-editor){
  background:linear-gradient(145deg,rgba(235,244,255,.82),rgba(218,232,249,.64)) !important;
  border-color:rgba(126,164,205,.34) !important;
  box-shadow:0 14px 30px rgba(47,86,132,.12), inset 0 1px 0 rgba(255,255,255,.58) !important;
  backdrop-filter:blur(24px) saturate(125%);
  -webkit-backdrop-filter:blur(24px) saturate(125%);
}
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] :is(.role-sidebar-title,.role-sidebar-tools){
  background:rgba(226,238,253,.44) !important;
  border-color:rgba(126,164,205,.22) !important;
}
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .role-list .role-list-item{
  background:rgba(245,250,255,.34) !important;
  border-color:rgba(126,164,205,.16) !important;
}
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .role-list .role-list-item:hover{
  background:rgba(223,239,255,.62) !important;
}
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .role-list .role-list-item.active{
  background:rgba(196,224,255,.78) !important;
  border-color:rgba(47,139,235,.34) !important;
}
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .role-list-icon{
  background:rgba(216,234,253,.72) !important;
}
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .role-list-item.active .role-list-icon{
  background:linear-gradient(145deg,#3b9cff,#0878e7) !important;
}
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .role-list-empty{
  background:rgba(226,238,252,.34) !important;
}
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] :is(.permission-group,.domain-check){
  background:rgba(226,238,252,.52) !important;
  border-color:rgba(126,164,205,.32) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.42);
}
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .permission-check:hover{
  background:rgba(200,226,255,.54) !important;
}
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .role-editor :is(.role-department-field select){
  background:rgba(247,251,255,.56) !important;
  border-color:rgba(126,164,205,.28) !important;
}
@media (max-width:640px) { html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .sidebar{ background:#eef4fcf5; } }
@media (prefers-reduced-motion:reduce) { html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .dashboard-card{ transition:none; } html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .dashboard-card:hover{ transform:none; } }
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) { html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .sidebar{ background:#ecf2fa; } html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .topbar{ background:#f5f8fc; } }

html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .content > .panel:has(.dashboard){
  overflow:hidden;
}
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .dashboard-drawer-body{ scrollbar-gutter:stable; }

/* Compound search control: only its outer shell owns the focus ring. */
:root[data-theme="f"][data-color-theme="blue"] .dashboard-search input, :root[data-theme="f"][data-color-theme="blue"] .dashboard-search input:is(:focus,:focus-visible){
  min-width:0;
  border:0;
  outline:none;
  box-shadow:none;
  background:transparent;
  border-radius:0;
}
:root[data-theme="f"][data-color-theme="blue"] .dashboard-search:focus-within{
  outline:2px solid rgba(0,122,255,.45);
  outline-offset:2px;
}
/* Sidebar search is already a standalone input, not a bordered shell. */
:root[data-theme="f"][data-color-theme="blue"] .search-box:focus-within{
  outline:none;
}

/* The viewport backing must differ from the window, otherwise its rounded
   silhouette is filled by the body. Keep the workspace edge-to-edge. */
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"]{
  --window-corner:18px;
  background:#202936;
}
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] body{
  background:#202936;
}

/* Backdrop filters establish stacking contexts. Raise the toolbar itself so
   its menus paint above later content panels, not just above other actions. */
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .topbar{
  position:relative;
  z-index:20;
  overflow:visible;
}
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .user-popover{
  top:calc(100% + 12px);
  right:0;
  padding:6px;
  background:rgba(250,252,255,.98);
  border:1px solid rgba(96,117,147,.14);
  box-shadow:0 12px 32px rgba(34,51,77,.16);
}
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .user-popover button{
  min-height:34px;
  font:inherit;
  font-size:12px;
  color:#354358;
}
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .user-popover button:hover{
  background:#e8f1ff;
  color:#0064ce;
}

/* Personal profile: readable account details and generous section spacing. */
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .profile-dialog{
  box-sizing:border-box;
  width:min(500px,100%);
  max-height:calc(100dvh - 32px);
  padding:32px;
  background:#f8faff;
  text-align:center;
}
html[data-appearance="macos27"] .profile-dialog .profile-close{
  top:16px; right:16px; width:32px; height:32px; border-radius:12px;
}
html[data-appearance="macos27"] .profile-avatar-wrap{
  width:88px; height:88px; margin:4px auto 22px;
}
html[data-appearance="macos27"] .profile-avatar{ width:88px; height:88px; }
html[data-appearance="macos27"] .profile-avatar-edit{
  right:-20px; bottom:-6px; padding:6px 10px; font-size:11px;
}
html[data-appearance="macos27"] .profile-dialog h3{ font-size:22px; line-height:1.4; font-weight:600; }
html[data-appearance="macos27"] .profile-dialog > p{ margin:8px 0 12px; font-size:12px; line-height:1.6; color:#68768a; }
html[data-appearance="macos27"] .profile-file-hint{
  padding:0 4px; background:transparent; font-size:11px; line-height:1.7; color:#788497;
}
html[data-appearance="macos27"] .profile-info{
  margin-top:26px; padding:20px; border:1px solid var(--glass-line); border-radius:12px; background:var(--glass-surface); backdrop-filter:blur(16px) saturate(122%); -webkit-backdrop-filter:blur(16px) saturate(122%);
}
html[data-appearance="macos27"] .profile-info h4{ margin:0 0 18px; color:#2d394b; font-size:14px; font-weight:600; }
html[data-appearance="macos27"] .profile-info dl{
  grid-template-columns:94px minmax(0,1fr); gap:18px 20px; font-size:13px; line-height:1.6;
}
html[data-appearance="macos27"] .profile-info dt{ color:#728095; }
html[data-appearance="macos27"] .profile-info dd{ color:#354258; overflow-wrap:anywhere; }
html[data-appearance="macos27"] .profile-info dd span{
  display:inline-block; padding:3px 9px; border-radius:8px; font-size:11px; background:#edf4ff; color:#2464b4;
}
html[data-appearance="macos27"] .profile-password{
  margin-top:16px; border:1px solid var(--glass-line); border-radius:12px; background:var(--glass-surface); backdrop-filter:blur(16px) saturate(122%); -webkit-backdrop-filter:blur(16px) saturate(122%);
}
html[data-appearance="macos27"] .profile-password summary{ padding:17px 20px; font-size:13px; font-weight:500; }
html[data-appearance="macos27"] .profile-password > div{ padding:6px 20px 20px; gap:12px; }
html[data-appearance="macos27"] .profile-password label{ font-size:12px; gap:8px; }
html[data-appearance="macos27"] .profile-password input{ height:40px; font-size:13px; }
html[data-appearance="macos27"] .profile-password input:focus-visible{ outline:2px solid #007aff; outline-offset:2px; }
html[data-appearance="macos27"] .profile-actions{ margin-top:26px; gap:12px; }

@supports (corner-shape:round) {
  html[data-appearance="macos27"] :is(.profile-info,.profile-password,.profile-close){ corner-shape:round; }
}
@media (max-width:480px) {
  html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] .profile-dialog{ padding:24px 20px; }
  html[data-appearance="macos27"] .profile-info{ padding:16px; }
  html[data-appearance="macos27"] .profile-info dl{ grid-template-columns:80px minmax(0,1fr); gap:16px 12px; }
}

/* Normalize inherited glass edges across secondary pages and controls. */
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] :is(
  .overview-panel,.dashboard-panel,.risk-list-panel,.quality-panel,.trust-panel,
  .delivery-section,.mall-brand-store-panel,.coverage-analysis-panel,.coverage-fields-panel,
  .coordinate-result-panel,.evidence-panel,.record-geo-section
){
  border-color:rgba(72,96,130,.10);
  box-shadow:0 8px 24px rgba(38,63,92,.06);
}
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] :is(
  .user-menu-button,.coverage-domain-tabs,.delivery-tabs,.delivery-template-tabs,
  .delivery-domain-tabs,.spatial-tabs,.coordinate-result-tabs,
  .evidence-tabs,.governance-config-tabs,.mall-brand-view-tabs,.mall-space-area-tabs
){
  border-color:rgba(72,96,130,.10);
  box-shadow:0 2px 6px rgba(38,63,92,.045);
}
html[data-theme="f"][data-color-theme="blue"][data-appearance="macos27"] :is(
  .coordinate-governance-dialog,.department-roles-dialog,.quick-role-dialog,
  .delivery-review-dialog,.login-card
){
  border-color:rgba(72,96,130,.12);
  box-shadow:0 18px 44px rgba(34,51,77,.15);
}
