:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #23211d;
  background: #f3efe6;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, textarea { font: inherit; }
.hidden { display: none !important; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 10%, #f6dca8, transparent 34%), #f3efe6; }
.login-card { width: min(400px, 100%); padding: 34px 36px 30px; border: 1px solid #d8d0c1; border-radius: 20px; background: rgba(255,255,255,.9); box-shadow: 0 18px 54px rgba(64,49,23,.1); }
.login-kicker { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.login-card h1 { margin: 8px 0; font-size: 28px; line-height: 1.25; }
.login-intro { margin: 0 0 18px; color: #716b60; font-size: 14px; line-height: 1.6; }
.environment-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border: 1px solid #dec9a5; border-radius: 999px; color: #7b5a2c; background: #fff6e3; font-size: 11px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
label { display: block; margin-top: 14px; color: #3e3a32; font-size: 13px; font-weight: 700; }
input { width: 100%; margin-top: 7px; padding: 12px 13px; border: 1px solid #cfc7b9; border-radius: 9px; background: white; color: #23211d; transition: border-color .15s ease, box-shadow .15s ease; }
input:focus { outline: none; border-color: #9b5a36; box-shadow: 0 0 0 3px rgba(180,95,55,.14); }
textarea { width: 100%; margin-top: 7px; padding: 12px 13px; resize: vertical; border: 1px solid #cfc7b9; border-radius: 9px; color: #23211d; background: white; line-height: 1.6; transition: border-color .15s ease, box-shadow .15s ease; }
textarea:focus { outline: none; border-color: #9b5a36; box-shadow: 0 0 0 3px rgba(180,95,55,.14); }
input:-webkit-autofill { box-shadow: 0 0 0 1000px #fff inset; -webkit-text-fill-color: #23211d; }
.primary { width: 100%; margin-top: 22px; padding: 12px 14px; border: 0; border-radius: 9px; color: white; background: #a95632; font-weight: 700; cursor: pointer; }
.primary:disabled { cursor: wait; opacity: .72; }
.message { min-height: 22px; margin: 12px 0 0; color: #716b60; font-size: 13px; line-height: 1.5; }
.message.error { margin-top: 12px; padding: 9px 11px; border: 1px solid #e1b7a7; border-radius: 8px; color: #8f3527; background: #fff3ef; }
.error { color: #a43c2c; }

.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
aside { position: sticky; top: 0; height: 100vh; min-height: 0; display: flex; flex-direction: column; padding: 28px 18px; overflow: hidden; background: #26251f; color: white; }
.brand { display: grid; gap: 3px; padding: 0 12px 26px; }
.brand span { font-size: 25px; font-weight: 800; letter-spacing: .08em; }
.brand small { color: #aaa597; }
.brand + .environment-badge { align-self: flex-start; margin: -14px 12px 22px; }
nav { display: grid; gap: 5px; min-height: 0; overflow-y: auto; }
.nav-item, .logout { border: 0; border-radius: 9px; padding: 11px 12px; text-align: left; color: #d9d5cb; background: transparent; cursor: pointer; }
.nav-item:hover, .nav-item.active { color: white; background: #3b3931; }
.logout { margin-top: auto; color: #bdb7a8; }
.content { min-width: 0; padding: 42px clamp(24px, 4.5vw, 64px) 80px; }
.view-header { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 24px; }
.view-header h2 { max-width: 760px; margin: 5px 0 0; font-size: clamp(24px, 3vw, 38px); line-height: 1.15; }
.view-header time { color: #817a6d; font-size: 13px; }
.view-subtitle { max-width: 780px; margin: 9px 0 0; color: #716b60; font-size: 14px; line-height: 1.55; }
.eyebrow { margin: 0; color: #a65732; font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.coverage-note { display: grid; gap: 5px; margin: 0 0 20px; padding: 13px 16px; border: 1px solid #d7c7aa; border-radius: 12px; color: #62594a; background: #fff8e9; font-size: 13px; line-height: 1.55; }
.coverage-note strong { color: #8a4d30; }
h3 { margin: 0; font-size: 18px; }
.panel { margin: 16px 0; padding: 17px 19px; border: 1px solid #ded7c9; border-radius: 14px; background: rgba(255,255,255,.64); }
.nested-panel { margin: 14px 0 0; padding: 14px; background: rgba(255,255,255,.5); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.section-heading h3 { font-size: 18px; }
.section-heading span { max-width: 62%; color: #8b7c6b; font-size: 12px; line-height: 1.45; text-align: right; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(162px, 1fr)); gap: 12px; margin: 0 0 18px; }
.kpi-card { min-width: 0; min-height: 122px; padding: 16px 17px; border: 1px solid #ded7c9; border-radius: 14px; background: rgba(255,255,255,.78); }
.kpi-card > span { display: block; color: #746f65; font-size: 13px; line-height: 1.35; }
.kpi-card > strong { display: block; margin-top: 8px; color: #1f2a30; font-size: 29px; line-height: 1.1; overflow-wrap: anywhere; }
.kpi-card > small { display: block; margin-top: 8px; color: #8b7c6b; font-size: 12px; line-height: 1.45; }
.attention-card { border-color: #e1bfa9; background: #fff8ef; }
.attention-card > strong, .attention-number { color: #a34a38 !important; }
.status-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.status-item { display: flex; align-items: baseline; gap: 8px; min-width: 102px; padding: 9px 11px; border-radius: 10px; background: #f7f4ee; }
.status-item span { color: #716b60; font-size: 12px; }
.status-item strong { color: #1f2a30; font-size: 19px; }
.status-item.success { background: #edf6ee; }
.status-item.success strong { color: #2d7d46; }
.trend-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.trend-column { display: grid; min-width: 0; gap: 2px; padding: 9px 7px; border-radius: 9px; background: #f7f4ee; text-align: center; }
.trend-column > span { color: #716b60; font-size: 11px; }
.trend-column > strong { color: #1f2a30; font-size: 18px; }
.trend-column > small { color: #8b7c6b; font-size: 10px; line-height: 1.3; }
.trend-column > em { margin-top: 5px; color: #6f777c; font-size: 12px; font-style: normal; }
.attention { margin: 16px 0; padding: 17px 19px; border: 1px solid #dfd0b6; border-radius: 14px; background: #fffaf0; }
.attention-item { color: #8a4d30; font-size: 14px; line-height: 1.6; }
.attention-empty { color: #52684e; font-size: 14px; }
.behavior-note { display: flex; gap: 14px; margin: 16px 0; padding: 16px 18px; border: 1px solid #ded7c9; border-radius: 14px; color: #716b60; background: rgba(255,255,255,.55); font-size: 13px; line-height: 1.6; }
.behavior-note strong { flex: 0 0 auto; color: #8a4d30; }

.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid #ded7c9; border-radius: 12px; background: rgba(255,255,255,.72); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 11px 12px; border-bottom: 1px solid #e6e0d5; text-align: left; vertical-align: top; white-space: normal; overflow-wrap: anywhere; }
th { color: #716b60; background: #f7f4ee; font-size: 12px; font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td strong { display: block; color: #2a2722; font-size: 13px; line-height: 1.35; }
td small { display: block; margin-top: 3px; color: #8b7c6b; font-size: 11px; line-height: 1.4; }
.text-action, .secondary-action { border: 1px solid #c9bda9; border-radius: 8px; color: #7b4229; background: #fffaf1; cursor: pointer; }
.text-action { padding: 6px 10px; white-space: nowrap; }
.secondary-action { margin: 18px 0; padding: 9px 14px; }
.text-action:hover, .secondary-action:hover { background: #f4e4cc; }
.empty-state, .empty, .loading { padding: 26px; border: 1px dashed #d0c6b5; border-radius: 12px; color: #716b60; background: rgba(255,255,255,.45); font-size: 13px; }
.error { margin: 16px 0; padding: 18px; border: 1px solid #e1b7a7; border-radius: 12px; color: #8f3527; background: #fff3ef; font-size: 14px; }
.muted { color: #8b7c6b; }
.pill { display: inline-block; margin: 3px; padding: 4px 8px; border-radius: 99px; background: #ece5d8; }
.status-pill { display: inline-flex; align-items: center; width: max-content; max-width: 100%; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.35; white-space: nowrap; }
.normal-pill { color: #2d6a42; background: #eaf4ec; }
.attention-pill { color: #8b4a2b; background: #fff0df; }
.status-DRAFT { color: #6b6357; background: #eee7da; }
.status-CONFIRMING { color: #7b5a2c; background: #fff1d9; }
.status-MATCHING { color: #315f76; background: #e6f2f7; }
.status-PEOPLE_READY { color: #4b5e77; background: #edf0f7; }
.status-IN_PROGRESS { color: #4b5e77; background: #edf0f7; }
.status-SUCCEEDED { color: #2d6a42; background: #eaf4ec; }
.status-FAILED { color: #8c3c2f; background: #fff0eb; }
.status-CANCELLED { color: #72695e; background: #f0ece5; }
.filter-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 0; }
.filter-chip { padding: 7px 11px; border: 1px solid #d7cbbb; border-radius: 999px; color: #71685c; background: rgba(255,255,255,.65); cursor: pointer; font-size: 12px; }
.filter-chip:hover, .filter-chip.active { border-color: #a95632; color: #7b3e25; background: #fff4e6; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.stat-line { min-width: 0; padding: 12px 13px; border-radius: 10px; background: #f7f4ee; }
.stat-line > span { display: block; color: #716b60; font-size: 12px; }
.stat-line > strong { display: block; margin-top: 5px; color: #1f2a30; font-size: 23px; line-height: 1.15; overflow-wrap: anywhere; }
.stat-line > small { display: block; margin-top: 4px; color: #8b7c6b; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.split-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ai-panel { background: rgba(255,255,255,.7); }
.ai-status-line { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ai-status-line small { color: #8b7c6b; font-size: 12px; }
.window-note { display: grid; gap: 5px; margin: 0 0 16px; padding: 13px 16px; border: 1px solid #d7c7aa; border-radius: 12px; color: #62594a; background: #fff8e9; font-size: 13px; line-height: 1.55; }
.window-note strong { color: #8a4d30; }
.drop-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.drop-callout { display: flex; align-items: baseline; gap: 8px; min-width: 0; padding: 12px 13px; border: 1px solid #e1c9aa; border-radius: 12px; color: #754126; background: #fff4e5; font-size: 12px; line-height: 1.5; }
.drop-callout strong { flex: 0 0 auto; }
.funnel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 9px; }
.funnel-step { position: relative; min-width: 0; padding: 14px; border-radius: 11px; background: #f7f4ee; }
.funnel-step .step-number { display: inline-flex; align-items: center; justify-content: center; width: 21px; height: 21px; border-radius: 50%; color: #8a4d30; background: #f0ddc2; font-size: 11px; font-weight: 800; }
.funnel-step > strong { display: block; margin: 8px 0 6px; font-size: 13px; line-height: 1.35; }
.funnel-value { color: #1f2a30; font-size: 26px; font-weight: 800; line-height: 1.1; }
.funnel-value small { margin-left: 4px; color: #8b7c6b; font-size: 11px; font-weight: 500; }
.funnel-step p { margin: 9px 0 4px; color: #716b60; font-size: 11px; line-height: 1.4; }
.funnel-step > small { display: block; color: #8b7c6b; font-size: 10px; line-height: 1.4; }
.bar-chart { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding-top: 8px; overflow-x: auto; }
.bar-column { display: flex; flex: 1 0 20px; min-width: 20px; height: 100%; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; }
.bar-value { color: #8b7c6b; font-size: 10px; }
.bar-track { position: relative; width: 100%; height: 112px; }
.bar { position: absolute; bottom: 0; left: 18%; display: block; width: 64%; min-height: 4px; border-radius: 4px 4px 2px 2px; background: #c98458; }
.bar-level-0 { height: 4px; }
.bar-level-1 { height: 10%; }
.bar-level-2 { height: 20%; }
.bar-level-3 { height: 30%; }
.bar-level-4 { height: 40%; }
.bar-level-5 { height: 50%; }
.bar-level-6 { height: 60%; }
.bar-level-7 { height: 70%; }
.bar-level-8 { height: 80%; }
.bar-level-9 { height: 90%; }
.bar-level-10 { height: 100%; }
.bar-column small { min-height: 32px; color: #8b7c6b; font-size: 9px; line-height: 1.2; text-align: center; writing-mode: vertical-rl; }
.retention-panel table { min-width: 640px; }
.status-summary { display: flex; gap: 13px; align-items: flex-start; margin: 0 0 16px; padding: 17px 19px; border: 1px solid #d7c7aa; border-radius: 14px; background: #fff8e9; }
.status-summary strong { display: block; color: #2d6a42; font-size: 17px; }
.status-summary p { margin: 5px 0 0; color: #62594a; font-size: 13px; line-height: 1.55; }
.status-summary-attention { border-color: #e1c9aa; background: #fff4e5; }
.status-summary-attention strong { color: #8a4d30; }
.status-summary-critical { border-color: #e1b7a7; background: #fff0eb; }
.status-summary-critical strong { color: #9e3d2c; }
.status-dot { flex: 0 0 auto; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: #4b8d5d; }
.status-summary-attention .status-dot { background: #c47a42; }
.status-summary-critical .status-dot { background: #b44834; }
.status-card-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.status-card { min-width: 0; padding: 14px 15px; border: 1px solid #ded7c9; border-radius: 12px; background: rgba(255,255,255,.72); }
.status-card > span { display: block; color: #746f65; font-size: 12px; }
.status-card > strong { display: block; margin-top: 6px; color: #1f2a30; font-size: 21px; line-height: 1.15; }
.status-card > small { display: block; margin-top: 5px; color: #8b7c6b; font-size: 11px; line-height: 1.4; }
.tech-details { margin: 16px 0; border: 1px solid #d8d0c1; border-radius: 12px; background: rgba(255,255,255,.52); }
.tech-details > summary { padding: 14px 16px; color: #62594a; cursor: pointer; font-size: 13px; font-weight: 700; }
.details-body { padding: 0 14px 14px; }
.detail-summary { margin: 0 0 16px; padding: 18px; border: 1px solid #ded7c9; border-radius: 14px; background: rgba(255,255,255,.7); }
.detail-main > strong { display: block; margin-top: 9px; color: #1f2a30; font-size: 25px; line-height: 1.2; }
.detail-main > small { display: block; margin-top: 4px; color: #8b7c6b; font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 10px; margin-top: 16px; }
.detail-grid > div { padding: 10px 11px; border-radius: 9px; background: #f7f4ee; }
.detail-grid span { display: block; color: #8b7c6b; font-size: 11px; }
.detail-grid strong { display: block; margin-top: 4px; color: #2a2722; font-size: 13px; overflow-wrap: anywhere; }

@media (max-width: 1350px) {
  .status-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .funnel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .drop-summary { grid-template-columns: 1fr; }
  .split-grid { grid-template-columns: 1fr; }
  .status-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .admin-shell { grid-template-columns: 1fr; }
  aside { position: relative; height: auto; overflow: visible; }
  nav { grid-template-columns: repeat(2, 1fr); overflow: visible; }
  .logout { margin-top: 20px; }
  .view-header { display: block; }
  .view-header time { display: block; margin-top: 10px; }
  .login-card { padding: 28px 24px 24px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .funnel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-card-grid { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .section-heading span { display: block; max-width: none; margin-top: 4px; text-align: left; }
  .behavior-note { display: block; }
  .trend-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .login-shell { padding: 14px; }
  .login-card { padding: 24px 20px 20px; border-radius: 16px; }
  .login-card h1 { font-size: 25px; }
  .login-kicker { align-items: flex-start; flex-direction: column; gap: 8px; }
  .content { padding: 28px 16px 60px; }
  .kpi-grid, .funnel-grid, .stat-grid { grid-template-columns: 1fr; }
  .trend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Data governance and User 360 */
.scope-control { display: grid; gap: 7px; margin: -10px 12px 18px; padding: 11px; border: 1px solid #45423a; border-radius: 10px; background: #302e27; }
.scope-control label { margin: 0; color: #bdb7a8; font-size: 11px; }
.scope-control select { width: 100%; margin: 0; padding: 7px 8px; border-color: #5d584c; color: #f2eee4; background: #26251f; font-size: 12px; }
.scope-stamp { width: max-content; padding: 3px 8px; border-radius: 999px; color: #486047; background: #eaf2e8; font-size: 10px; font-weight: 800; }
.scope-stamp[data-scope="test"] { color: #7b4a25; background: #ffe9c9; }
.scope-stamp[data-scope="all"] { color: #8a3e30; background: #ffe2d8; }
.scope-governance { padding: 6px 8px; border: 1px solid #5d584c; border-radius: 7px; color: #d9d5cb; background: transparent; font-size: 11px; cursor: pointer; text-align: left; }
.scope-governance:hover { background: #3b3931; }
.sidebar-status-region { display: grid; flex: 0 1 auto; gap: 8px; max-height: 132px; margin: -8px 12px 18px; overflow-y: auto; overscroll-behavior: contain; }
.sidebar-status-region:empty, .sidebar-status-region:not(:has(> :not(.hidden))) { display: none; }
.scope-banner { margin: 0; padding: 10px 11px; border: 1px solid #b97b3e; border-radius: 8px; color: #8a4d30; background: #fff0df; font-size: 11px; line-height: 1.45; }
.scope-pending { margin: 0; padding: 10px 11px; border: 1px solid #d0a25c; border-radius: 8px; color: #855226; background: #fff6e3; font-size: 11px; line-height: 1.45; }
.scope-pending.governance-complete { border-color: #9db59b; color: #486047; background: #edf5eb; }
.user-cell { display: flex; align-items: center; gap: 8px; min-width: 180px; }
.user-avatar, .avatar-fallback { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; object-fit: cover; background: #e8dfd0; }
.avatar-fallback { display: grid; place-items: center; color: #8a4d30; font-size: 12px; font-weight: 800; }
.classification-badge { display: inline-flex; margin-left: 4px; padding: 2px 6px; border-radius: 999px; font-size: 10px; font-weight: 800; vertical-align: middle; }
.classification-badge.production { color: #2d6a42; background: #eaf4ec; }
.classification-badge.test { color: #8b4a2b; background: #fff0df; }
.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; background: rgba(34,31,25,.5); }
.modal-card { width: min(900px, 100%); max-height: 86vh; overflow: auto; border: 1px solid #d8d0c1; border-radius: 16px; background: #fffaf1; box-shadow: 0 24px 70px rgba(30,25,18,.25); }
.modal-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border-bottom: 1px solid #e3dacb; }
.modal-heading h2 { margin: 0; font-size: 20px; }
.modal-close { border: 1px solid #d0c3ae; border-radius: 8px; padding: 6px 10px; color: #7b4229; background: #fffaf1; cursor: pointer; }
.modal-body { padding: 18px 20px 22px; }
.modal-intro { margin: 0 0 14px; color: #716b60; font-size: 13px; line-height: 1.6; }
.feedback-status-card { width: min(560px, 100%); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.modal-actions .secondary-action, .modal-actions .primary { width: auto; margin: 0; }
.modal-primary { min-width: 112px; }
.form-error { margin: 9px 0 0; color: #8f3527; font-size: 12px; line-height: 1.5; }
body.modal-open { overflow: hidden; }
.governance-group { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eee6d9; }
.governance-group strong { display: block; font-size: 14px; }
.governance-group small { display: block; margin-top: 3px; color: #8b7c6b; font-size: 11px; }
.governance-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.reveal-result { margin: 14px 0; padding: 12px 14px; border: 1px solid #d7c7aa; border-radius: 10px; background: #fff8e9; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.user360-hero { display: flex; gap: 18px; align-items: flex-start; padding: 20px; border: 1px solid #ded7c9; border-radius: 16px; background: rgba(255,255,255,.76); }
.user360-avatar { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 50%; object-fit: cover; background: #e8dfd0; }
.user360-hero-main { min-width: 0; flex: 1; }
.user360-hero-main h2 { margin: 0; font-size: 28px; line-height: 1.2; }
.user360-hero-main p { margin: 5px 0 0; color: #716b60; font-size: 13px; }
.user360-hero-actions { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.timeline-lane { margin: 12px 0; }
.timeline-lane h4 { margin: 0 0 7px; color: #716b60; font-size: 12px; }
.timeline-row { display: grid; grid-template-columns: 145px 1fr auto; gap: 10px; padding: 8px 0; border-bottom: 1px solid #eee6d9; font-size: 12px; }
.timeline-row time { color: #8b7c6b; }
.timeline-row small { color: #8b7c6b; }
.reveal-button { margin: 4px 0; }
@media (max-width: 760px) { .user360-hero { display: block; } .user360-avatar { margin-bottom: 12px; } .user360-hero-actions { justify-content: flex-start; margin-top: 12px; } .timeline-row { grid-template-columns: 1fr; gap: 2px; } }

@media (max-width: 480px) {
  .modal { padding: 14px; align-items: end; }
  .feedback-status-card { max-height: min(82vh, 680px); border-radius: 16px 16px 12px 12px; }
  .modal-heading, .modal-body { padding-left: 16px; padding-right: 16px; }
  .modal-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .modal-actions .secondary-action, .modal-actions .primary { width: 100%; }
}

.real-account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.real-account-card { display: flex; gap: 12px; min-width: 0; padding: 14px; border: 1px solid #ded7c9; border-radius: 12px; background: #fffaf1; cursor: pointer; }
.real-account-card:has(input:checked) { border-color: #a95632; background: #fff2df; box-shadow: 0 0 0 2px rgba(169,86,50,.12); }
.real-account-card input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #a95632; }
.real-account-main { min-width: 0; flex: 1; }
.real-account-main strong { display: block; font-size: 15px; }
.real-account-main small { display: block; margin-top: 4px; color: #8b7c6b; font-size: 11px; line-height: 1.5; }
.real-account-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.real-account-count { color: #716b60; font-size: 13px; }
.real-account-confirm { border: 0; border-radius: 8px; padding: 9px 14px; color: white; background: #a95632; font-weight: 700; cursor: pointer; }
.real-account-confirm:disabled { cursor: not-allowed; opacity: .45; }

.feedback-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 18px 0;
}

.feedback-toolbar .window-note {
  margin: 0;
}

.feedback-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
  color: var(--ink-2, #3f464b);
}

.feedback-screenshots {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.feedback-shot {
  display: block;
  width: 180px;
  height: 180px;
  overflow: hidden;
  border: 1px solid var(--border, #ece6da);
  border-radius: 14px;
  background: #f5f0e5;
}

.feedback-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feedback-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.management-nav {
  margin-top: 18px;
  color: var(--muted, #6f777c);
  border-top: 1px solid var(--border, #ece6da);
  border-radius: 0;
}

.command-health,
.command-today,
.command-pending,
.command-guidance {
  margin-top: 24px;
}

.command-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.command-health-grid > div {
  padding: 16px;
  border: 1px solid var(--border, #ece6da);
  border-radius: 14px;
  background: #fffdf8;
}

.command-health-grid span,
.command-health-grid small,
.command-kpis span,
.command-kpis small {
  display: block;
  color: var(--muted, #6f777c);
  font-size: 12px;
}

.command-health-grid strong,
.command-kpis strong {
  display: block;
  margin: 6px 0;
  font-size: 20px;
}

.command-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.command-kpis > div {
  padding: 18px;
  border-radius: 16px;
  background: #f5f0e5;
}

.command-pending-list {
  display: grid;
  gap: 10px;
}

.command-pending-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--border, #ece6da);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: #fffdf8;
}

.command-pending-item strong {
  font-size: 20px;
}

.command-pending-item em {
  color: #8b6b2e;
  font-style: normal;
  font-size: 13px;
}

.guidance-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.guidance-item {
  padding: 18px;
  border: 1px solid var(--border, #ece6da);
  border-radius: 16px;
  background: #fffdf8;
}

.guidance-item p {
  color: var(--muted, #6f777c);
  line-height: 1.55;
}

.analysis-shell .view-header {
  margin-top: 0;
}
