:root {
  --red: #a82127;
  --red-deep: #77171c;
  --red-soft: #faeded;
  --ink: #20201e;
  --muted: #77736d;
  --line: #e6dfd7;
  --paper: #faf8f5;
  --white: #fff;
  --green: #2e8059;
  --green-soft: #e8f4ed;
  --amber: #bd7410;
  --amber-soft: #fff2dc;
  --blue: #356989;
  --blue-soft: #e9f2f8;
  --brand-blue: #17447d;
  --brand-gold: #f0ad59;
  --shadow: 0 22px 65px rgba(54, 42, 33, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.platform-page #peopleView .onboarding-approval-workspace {
  padding: 20px;
  min-width: 0;
}
.platform-page #peopleView .onboarding-approval-workspace .promotion-toolbar > div {
  min-width: 0;
}
.platform-page #peopleView .onboarding-approval-workspace .onboarding-review-list article {
  grid-template-columns: minmax(0, 1fr) minmax(120px, 160px) auto;
}
.platform-page #peopleView .onboarding-approval-workspace .onboarding-review-list article > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.platform-page #peopleView .onboarding-approval-workspace .onboarding-review-list article > div {
  flex-wrap: wrap;
}
.platform-page #peopleView .onboarding-approval-workspace .status {
  display: inline-block;
  padding: 3px 8px;
  margin-top: 4px;
}
@media (max-width: 900px) {
  .platform-page #peopleView .onboarding-approval-workspace { padding: 12px; }
  .platform-page #peopleView .onboarding-approval-workspace .onboarding-review-list article { grid-template-columns: minmax(0, 1fr); }
}

.task-training-people-fields { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #faf8f5; }
.task-training-people-fields small { color: var(--muted); font-weight: 400; line-height: 1.45; }
.logo-mark {
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center;
  color: #fff; background: var(--red); font-weight: 900; font-size: 16px; letter-spacing: -1px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.logo-mark.small { width: 43px; height: 43px; border-radius: 13px; font-size: 13px; }
.btn {
  min-height: 42px; border-radius: 11px; border: 1px solid transparent;
  padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-weight: 750; text-decoration: none; transition: .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { cursor: wait; opacity: .68; transform: none; }
.btn.primary { color: #fff; background: var(--red); box-shadow: 0 10px 24px rgba(168,33,39,.18); }
.btn.primary:hover { background: var(--red-deep); }
.btn.ghost { color: var(--ink); background: #fff; border-color: var(--line); box-shadow: none; }
.btn.soft { color: var(--red); background: var(--red-soft); border-color: transparent; }
.btn.white { background: #fff; color: var(--red); }
.btn.wide { width: 100%; }
.text-btn { padding: 4px; border: 0; background: none; color: var(--red); font-weight: 750; }

.toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 3000;
  display: flex; align-items: center; gap: 10px;
  background: #1d1d1b; color: #fff; border-radius: 13px; padding: 13px 16px;
  box-shadow: 0 18px 45px rgba(0,0,0,.25);
  font-size: 13px; opacity: 0; transform: translateY(24px); pointer-events: none; transition: .25s;
}
.toast.show { opacity: 1; transform: none; }
.toast.error i { background: #c64a4a; }
.toast i { width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: #3b9468; font-weight: 900; }

.entry-screen {
  min-height: 100vh; color: #fff; display: flex; flex-direction: column;
  background:
    radial-gradient(circle at 76% 16%, rgba(184,31,38,.27), transparent 30rem),
    radial-gradient(circle at 15% 86%, rgba(23,68,125,.16), transparent 28rem),
    linear-gradient(126deg, #111211 0%, #1b1716 52%, #351719 100%);
  position: relative; overflow: hidden;
}
.entry-screen:before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 58px 58px; mask-image: linear-gradient(90deg,#000,transparent 78%); }
.entry-screen:after {
  content: ""; width: 430px; height: 430px; border: 55px solid rgba(255,255,255,.035);
  position: absolute; right: -150px; bottom: -190px; border-radius: 50%;
}
.entry-brand {
  display: flex; align-items: center; gap: 13px; padding: 28px clamp(24px, 6vw, 82px);
  position: relative; z-index: 1;
}
.entry-brand-logo { width: clamp(170px, 17vw, 225px); height: 62px; object-fit: contain; object-position: left center; filter: drop-shadow(0 8px 20px rgba(0,0,0,.18)); }
.entry-brand-system { padding-left: 15px; border-left: 1px solid rgba(255,255,255,.18); }
.entry-character { position: absolute; z-index: 0; pointer-events: none; user-select: none; opacity: .085; filter: saturate(.9); }
.entry-character-left { width: min(35vw, 470px); left: -95px; bottom: -120px; transform: rotate(8deg); }
.entry-character-right { width: min(31vw, 410px); right: -80px; top: 60px; transform: rotate(-8deg); }
.entry-brand strong { display: block; font-size: 19px; letter-spacing: .03em; }
.entry-brand small { display: block; margin-top: 4px; color: rgba(255,255,255,.5); font-size: 11px; }
.entry-wrap {
  width: min(1240px, calc(100% - 64px)); margin: auto;
  display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(55px, 8vw, 125px);
  align-items: center; position: relative; z-index: 1; padding: 40px 0 70px;
}
.entry-copy .eyebrow {
  display: inline-flex; align-items: center; gap: 9px; color: rgba(255,255,255,.52); font-size: 10px; letter-spacing: .18em;
}
.entry-copy .eyebrow i { width: 27px; height: 1px; background: var(--brand-gold); box-shadow: 0 0 12px rgba(240,173,89,.45); }
.entry-copy h1 { margin: 25px 0 21px; font-size: clamp(43px, 4.7vw, 68px); line-height: 1.16; letter-spacing: -.045em; font-weight: 760; }
.entry-copy h1 em { color: #e15c56; font-style: normal; text-shadow: 0 8px 30px rgba(200,44,48,.18); }
.entry-copy > p { max-width: 610px; color: rgba(255,255,255,.56); line-height: 1.95; font-size: 14px; }
.entry-highlights { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; max-width: 650px; margin-top: 32px; }
.entry-highlights span { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.62); font-size: 11px; letter-spacing: .02em; white-space: nowrap; }
.entry-highlights i { display: inline-grid; place-items: center; width: 19px; height: 19px; border: 1px solid rgba(240,173,89,.45); border-radius: 50%; color: var(--brand-gold); background: rgba(240,173,89,.08); font-size: 10px; font-style: normal; box-shadow: 0 0 18px rgba(240,173,89,.08); }
.entry-card {
  background: rgba(253,252,249,.97); color: var(--ink); border: 1px solid rgba(240,173,89,.24); border-radius: 24px; padding: 17px 26px 26px;
  box-shadow: 0 38px 110px rgba(0,0,0,.38), 0 0 0 1px rgba(255,255,255,.3) inset; min-height: 465px; backdrop-filter: blur(18px);
}
.entry-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: #968c82; font-size: 8px; letter-spacing: .15em; }
.entry-card-top i { color: #538168; font-style: normal; letter-spacing: .08em; }
.entry-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; background: #eeeae4; border-radius: 12px; padding: 4px; margin: 0 0 25px; }
.entry-tabs button { border: 0; border-radius: 8px; padding: 10px; background: transparent; color: var(--muted); font-size: 12px; }
.entry-tabs button.active { background: #fff; color: var(--red); font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.entry-form { display: none; animation: reveal .25s ease; }
.entry-form.active { display: block; }
.form-title h2 { font-size: 23px; margin: 0 0 7px; letter-spacing: -.03em; }
.form-title p { margin: 0 0 20px; color: var(--muted); font-size: 12px; }
.entry-form > label { display: block; font-size: 11px; font-weight: 800; margin: 14px 0; }
.entry-form input {
  display: block; width: 100%; margin-top: 7px; border: 1px solid var(--line); border-radius: 11px;
  padding: 13px; outline: none; background: rgba(255,255,255,.9); font-weight: 500; transition: .18s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(168,33,39,.08); }
.form-error { min-height: 17px; margin: 2px 0 6px; color: #c33e43; font-size: 11px; }
.quick-login { margin-top: 18px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.quick-login span { color: var(--muted); font-size: 10px; width: 100%; }
.quick-login button { border: 1px solid var(--line); color: var(--muted); background: #fff; border-radius: 999px; padding: 6px 9px; font-size: 10px; }
.quick-login button:hover { color: var(--red); border-color: #d7a6a8; }
.trial-note { display: flex; align-items: center; gap: 7px; background: #f5f1eb; color: #7d756e; padding: 10px 11px; border-radius: 9px; margin-top: 14px; font-size: 9px; }
.trial-note i { width: 6px; height: 6px; border-radius: 50%; background: #4c9b6c; box-shadow: 0 0 0 4px rgba(76,155,108,.1); }
.entry-inspect-icon { width: 78px; height: 78px; margin: 28px auto 17px; border-radius: 24px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); font-size: 29px; font-weight: 900; }
.entry-inspect-text { text-align: center; color: var(--muted); font-size: 12px; line-height: 1.7; margin-bottom: 24px; }
#entryInspect .text-btn { width: 100%; margin-top: 12px; }
.entry-screen footer { padding: 20px; text-align: center; color: rgba(255,255,255,.32); font-size: 10px; position: relative; z-index: 1; }

.inspection-screen { min-height: 100vh; background: #eee9e3; padding: 24px; }
.inspection-shell {
  width: min(720px, 100%); margin: 0 auto; background: #fff; border-radius: 23px; overflow: hidden;
  box-shadow: var(--shadow); min-height: calc(100vh - 48px);
}
.inspection-head {
  color: #fff; background: linear-gradient(130deg, #861a20, #b53435); min-height: 135px;
  padding: 28px 31px; display: flex; align-items: flex-start; gap: 20px; position: relative; overflow: hidden;
}
.inspection-head:after { content: ""; position: absolute; right: -80px; top: -130px; width: 300px; height: 300px; border: 36px solid rgba(255,255,255,.07); border-radius: 50%; }
.back-btn { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.22); color: #fff; background: rgba(255,255,255,.08); border-radius: 10px; font-size: 18px; position: relative; z-index: 1; }
.mini-brand { display: flex; gap: 12px; align-items: center; position: relative; z-index: 1; }
.mini-brand > img { background: #fff; width: 48px; height: 48px; padding: 3px; border-radius: 12px; object-fit: contain; box-shadow: 0 8px 20px rgba(80,0,0,.18); }
.mini-brand strong { display: block; font-size: 18px; margin-bottom: 5px; }
.mini-brand small { color: rgba(255,255,255,.66); font-size: 10px; }
.inspection-content { padding: 28px 32px 36px; }
.form-grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: block; margin-bottom: 20px; }
.field > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 800; margin-bottom: 8px; }
.field > span b { color: var(--red); }
.field > span small { color: #aaa39b; font-weight: 500; margin-left: auto; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 11px;
  padding: 12px 13px; outline: none; color: var(--ink);
}
.field textarea { resize: vertical; line-height: 1.65; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); color: var(--muted); background: #fff; border-radius: 999px; padding: 9px 14px; font-size: 11px; }
.chip.selected { color: var(--red); border-color: #dba5a8; background: var(--red-soft); font-weight: 800; }
.level-chips .chip[data-value="严重"].selected { color: #b42b33; background: #fbe8e8; }
.level-chips .chip[data-value="一般"].selected { color: var(--amber); background: var(--amber-soft); border-color: #efc987; }
.level-chips .chip[data-value="优化"].selected { color: var(--green); background: var(--green-soft); border-color: #acd6bd; }
.upload-box {
  min-height: 150px; border: 1.5px dashed #d5cbc1; border-radius: 13px; position: relative;
  overflow: hidden; display: grid; place-items: center; background: #fcfbf9; cursor: pointer;
}
.upload-box input, .small-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 3; }
.upload-placeholder { text-align: center; color: var(--muted); padding: 20px; }
.upload-placeholder i { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; margin: 0 auto 8px; background: var(--red-soft); color: var(--red); font-style: normal; font-size: 19px; }
.upload-placeholder strong, .upload-placeholder small { display: block; }
.upload-placeholder strong { font-size: 11px; margin-bottom: 4px; }
.upload-placeholder small { font-size: 9px; color: #aaa39b; }
.upload-box img { width: 100%; height: 230px; object-fit: cover; display: none; }
.upload-box.has-image img { display: block; }
.upload-box.has-image .upload-placeholder { display: none; }
.remove-photo { display: none; position: absolute; right: 10px; bottom: 10px; z-index: 4; border: 0; color: #fff; background: rgba(0,0,0,.62); border-radius: 8px; padding: 7px 9px; font-size: 10px; }
.upload-box.has-image .remove-photo { display: block; }
.submit-btn { min-height: 49px; }
.inspection-submit-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inspection-submit-row .btn { min-height: 49px; }
.draft-panel { margin-top: 18px; padding: 18px; border: 1px solid #dfd5cb; border-radius: 14px; background: #f8f4ef; }
.draft-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.draft-head strong, .draft-head small { display: block; }
.draft-head strong { font-size: 13px; }
.draft-head small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.draft-list { display: grid; gap: 8px; margin-bottom: 13px; }
.draft-item { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 9px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.draft-thumb { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; background: #eee8e1; display: grid; place-items: center; color: var(--muted); font-size: 9px; }
.draft-item strong { display: block; margin-bottom: 4px; font-size: 11px; }
.draft-item p { margin: 0; overflow: hidden; color: var(--muted); font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.draft-item button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: var(--red-soft); color: var(--red); }
.submit-success { padding: 45px 15px; text-align: center; }
.success-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-size: 32px; font-weight: 900; margin: 0 auto 19px; }
.submit-success h2 { margin: 0 0 10px; }
.submit-success > p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.success-ticket { display: grid; grid-template-columns: 1fr 1fr; max-width: 330px; margin: 22px auto; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; padding: 14px; gap: 5px 12px; text-align: left; }
.success-ticket span { color: var(--muted); font-size: 9px; }
.success-ticket strong { font-size: 12px; }
.submit-success .btn { max-width: 330px; margin: 8px auto 0; }

.app-screen { min-height: 100vh; display: grid; grid-template-columns: 224px minmax(0,1fr); }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 224px; z-index: 30;
  background: #191918; color: #fff; padding: 24px 16px 18px; display: flex; flex-direction: column;
}
.sidebar-brand { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 0 6px 24px; }
.sidebar-brand-logo { width: 155px; height: 49px; object-fit: contain; object-position: left center; filter: drop-shadow(0 5px 13px rgba(0,0,0,.22)); }
.sidebar-brand strong { display: block; font-size: 17px; }
.sidebar-brand small { display: block; margin-top: 4px; color: rgba(255,255,255,.46); font-size: 10px; letter-spacing: .08em; }
.sidebar nav { display: grid; gap: 7px; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.sidebar nav button {
  min-height: 45px; border: 0; border-radius: 10px; padding: 0 13px;
  background: transparent; color: rgba(255,255,255,.64); text-align: left; display: flex; gap: 12px; align-items: center; position: relative;
}
.sidebar nav button:hover { color: #fff; background: rgba(255,255,255,.06); }
.sidebar nav button.active { color: #fff; background: var(--red); }
.sidebar nav button > span { width: 18px; text-align: center; font-size: 17px; }
.sidebar nav button i { margin-left: auto; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,.14); font-size: 9px; font-style: normal; }
.sidebar-user { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding: 18px 5px 0; display: flex; align-items: center; gap: 10px; }
.sidebar-user > div { width: 33px; height: 33px; border-radius: 10px; background: var(--red); display: grid; place-items: center; font-size: 12px; font-weight: 900; }
.sidebar-user span { min-width: 0; flex: 1; }
.sidebar-user strong, .sidebar-user small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user strong { font-size: 11px; }
.sidebar-user small { margin-top: 3px; color: rgba(255,255,255,.45); font-size: 9px; }
.sidebar-user button { border: 0; color: rgba(255,255,255,.5); background: transparent; font-size: 16px; }
.workspace { grid-column: 2; min-width: 0; padding: 0 32px 45px; }
.topbar { height: 82px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-left small { color: var(--muted); font-size: 10px; }
.topbar-left h1 { margin: 4px 0 0; font-size: 27px; letter-spacing: -.04em; }
.menu-button { display: none; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.today { border: 1px solid var(--line); background: rgba(255,255,255,.66); border-radius: 10px; padding: 10px 12px; color: var(--muted); font-size: 10px; }
.top-avatar { width: 35px; height: 35px; border-radius: 10px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); font-weight: 900; font-size: 12px; }
.view { display: none; padding-top: 24px; }
.view.active { display: block; }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.hero-card {
  min-height: 132px; border-radius: 19px; overflow: hidden; position: relative;
  padding: 24px 28px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: linear-gradient(112deg, #8b1b21 0%, #ad262c 68%, #c44a42 100%);
  box-shadow: 0 18px 40px rgba(120,26,30,.15);
}
.hero-card:after { content: ""; width: 270px; height: 270px; position: absolute; right: -70px; top: -105px; border: 35px solid rgba(255,255,255,.08); border-radius: 50%; }
.hero-card:before { content: ""; position: absolute; right: 35px; bottom: -82px; width: 175px; height: 220px; background: url("/assets/brand-primary.png") center/contain no-repeat; opacity: .075; transform: rotate(-7deg); }
.hero-card > * { position: relative; z-index: 1; }
.hero-card small { color: rgba(255,255,255,.65); font-size: 10px; }
.hero-card h2 { margin: 7px 0; font-size: 21px; }
.hero-card p { margin: 0; color: rgba(255,255,255,.72); font-size: 11px; }
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin: 17px 0; }
.metric { min-height: 104px; padding: 17px; background: #fff; border: 1px solid var(--line); border-radius: 15px; display: flex; gap: 13px; align-items: center; box-shadow: 0 8px 25px rgba(60,45,34,.04); }
.metric-icon { width: 41px; height: 41px; flex: 0 0 auto; border-radius: 13px; display: grid; place-items: center; font-size: 18px; font-weight: 900; }
.metric-icon.red { background: var(--red-soft); color: var(--red); }
.metric-icon.amber { background: var(--amber-soft); color: var(--amber); }
.metric-icon.blue { background: var(--blue-soft); color: var(--blue); }
.metric-icon.green { background: var(--green-soft); color: var(--green); }
.metric small, .metric strong, .metric span { display: block; }
.metric small { color: var(--muted); font-size: 10px; }
.metric strong { font-size: 25px; margin: 4px 0; letter-spacing: -.04em; }
.metric span { color: #aaa49d; font-size: 9px; }
.cloud-usage-card {
  position: relative; display: grid; grid-template-columns: minmax(270px,1fr) minmax(260px,.9fr) auto;
  align-items: center; gap: 22px; margin: 0 0 17px; padding: 17px 19px; overflow: hidden;
  border: 1px solid #dce8df; border-radius: 16px; background: linear-gradient(110deg,#f9fcfa,#fff);
  box-shadow: 0 8px 28px rgba(47,94,64,.045);
}
.cloud-usage-card:after { content: ""; position: absolute; right: -30px; top: -55px; width: 150px; height: 150px; border: 24px solid rgba(73,148,102,.055); border-radius: 50%; pointer-events: none; }
.cloud-usage-main { min-width: 0; display: flex; align-items: center; gap: 13px; }
.cloud-usage-icon { width: 43px; height: 43px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; background: #e8f4ec; color: var(--green); font-size: 19px; }
.cloud-usage-heading { display: flex; align-items: center; gap: 8px; }
.cloud-usage-heading small { color: var(--muted); font-size: 9px; }
.cloud-usage-main strong { display: block; margin: 5px 0 3px; font-size: 14px; }
.cloud-usage-main p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.cloud-usage-status { padding: 4px 7px; border-radius: 999px; color: var(--green); background: var(--green-soft); font-size: 8px; font-weight: 800; }
.cloud-usage-meter { min-width: 0; }
.cloud-usage-track { height: 8px; overflow: hidden; border-radius: 999px; background: #e9ede9; }
.cloud-usage-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width .45s ease; }
.cloud-usage-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 7px; color: var(--muted); font-size: 8px; }
.cloud-usage-refresh { position: relative; z-index: 1; border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; color: var(--muted); background: #fff; font-size: 9px; }
.cloud-usage-card[data-level="warning"] { border-color: #ead4a9; background: linear-gradient(110deg,#fffaf0,#fff); }
.cloud-usage-card[data-level="warning"] .cloud-usage-icon, .cloud-usage-card[data-level="warning"] .cloud-usage-status { color: var(--amber); background: var(--amber-soft); }
.cloud-usage-card[data-level="warning"] .cloud-usage-track i { background: var(--amber); }
.cloud-usage-card[data-level="danger"] { border-color: #efc3c5; background: linear-gradient(110deg,#fff6f6,#fff); }
.cloud-usage-card[data-level="danger"] .cloud-usage-icon, .cloud-usage-card[data-level="danger"] .cloud-usage-status { color: var(--red); background: var(--red-soft); }
.cloud-usage-card[data-level="danger"] .cloud-usage-track i { background: var(--red); }
.cloud-usage-card[data-level="unknown"] { border-color: #e5ded5; background: linear-gradient(110deg,#faf9f7,#fff); }
.cloud-usage-card[data-level="unknown"] .cloud-usage-icon, .cloud-usage-card[data-level="unknown"] .cloud-usage-status { color: #777169; background: #efebe6; }
.dashboard-grid { display: grid; grid-template-columns: 1.38fr .9fr; gap: 16px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 19px; min-width: 0; box-shadow: 0 8px 30px rgba(60,45,34,.035); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head h3 { margin: 0; font-size: 14px; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 10px; }
th { color: #99938b; font-weight: 600; text-align: left; padding: 0 9px 10px; white-space: nowrap; }
td { padding: 12px 9px; border-top: 1px solid #eee9e3; vertical-align: middle; }
tbody tr { transition: .15s; }
tbody tr:hover { background: #fdf9f6; }
.store-name { display: flex; align-items: center; gap: 7px; font-weight: 800; white-space: nowrap; }
.store-name i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.sub-id { color: #aaa39b; font-size: 8px; margin-top: 4px; }
.status, .severity { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 5px 8px; white-space: nowrap; font-weight: 700; font-size: 9px; }
.status.pending { color: var(--red); background: var(--red-soft); }
.status.processing { color: var(--amber); background: var(--amber-soft); }
.status.review { color: var(--blue); background: var(--blue-soft); }
.status.confirmed { color:#176b55; background:#dff4eb; }
.status.done { color: var(--green); background: var(--green-soft); }
.severity { padding: 0; color: var(--muted); font-weight: 500; }
.severity i { width: 6px; height: 6px; border-radius: 50%; }
.severity.high i { background: #d64950; }
.severity.mid i { background: #e1a13c; }
.severity.low i { background: #58a579; }
.ranking { display: grid; gap: 13px; }
.rank-row { display: grid; grid-template-columns: 66px 1fr 25px; gap: 9px; align-items: center; font-size: 9px; }
.rank-row strong { font-size: 10px; }
.rank-bar { height: 7px; background: #eeeae5; border-radius: 99px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: linear-gradient(90deg,var(--red),#d4675e); border-radius: inherit; }
.rank-row span { color: var(--muted); text-align: right; }
.type-breakdown { display: flex; align-items: center; gap: 18px; border-top: 1px solid #eee9e3; margin-top: 17px; padding-top: 16px; }
.donut { width: 76px; height: 76px; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(var(--red) 0 40%,#d98950 40% 65%,#507b94 65% 82%,#a5a79a 82% 100%); position: relative; }
.donut:before { content: ""; position: absolute; inset: 12px; background: #fff; border-radius: 50%; }
.donut span { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; font-size: 15px; font-weight: 900; }
.type-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 11px; flex: 1; font-size: 8px; color: var(--muted); }
.type-legend span { display: flex; align-items: center; gap: 5px; }
.type-legend i { width: 6px; height: 6px; border-radius: 50%; }

.section-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 18px; }
.section-title h2 { margin: 0 0 5px; font-size: 21px; }
.section-title p { margin: 0; color: var(--muted); font-size: 11px; }
.issue-store-navigator { margin-bottom:14px; border:1px solid var(--line); border-radius:16px; padding:15px; background:#fff; }
.issue-store-nav-head { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:12px; }
.issue-store-nav-head > div { display:grid; gap:3px; }
.issue-store-nav-head strong { font-size:13px; }
.issue-store-nav-head span { color:var(--muted); font-size:9px; }
.issue-store-nav-head .text-btn.active { border-radius:9px; padding:7px 10px; color:#fff; background:var(--red); }
.issue-store-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
.issue-store-card { display:grid; grid-template-columns:1fr auto; gap:4px 8px; min-height:78px; border:1px solid #e9e1da; border-radius:12px; padding:11px 12px; text-align:left; color:var(--ink); background:#fbf8f5; cursor:pointer; }
.issue-store-card:hover { border-color:#d6a6a8; transform:translateY(-1px); }
.issue-store-card > span { grid-column:2; grid-row:1; align-self:start; border-radius:999px; padding:3px 6px; color:#867c75; background:#eee9e4; font-size:8px; }
.issue-store-card > strong { grid-column:1; grid-row:1; font-size:12px; }
.issue-store-card > small { grid-column:1/-1; align-self:end; color:#81776f; font-size:9px; }
.issue-store-card > small b { color:var(--red); font-size:13px; }
.issue-store-card.own { border-color:#e2b4b6; background:#fff5f5; }
.issue-store-card.own > span { color:#fff; background:var(--red); }
.issue-store-card.active { border-color:var(--red); box-shadow:0 0 0 2px rgba(184,31,41,.1); }
.own-store-row { background:#fff9f8; }
.own-store-badge { display:inline-flex; margin-left:6px; border-radius:999px; padding:2px 5px; color:#fff; background:var(--red); font-size:7px; vertical-align:middle; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 13px; }
.filters input, .filters select {
  min-height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0 12px; outline: none; color: var(--ink);
}
.filters input { flex: 1; min-width: 230px; }
.issue-panel { padding: 8px 17px 14px; }
.action-btn { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px; padding: 6px 8px; white-space: nowrap; font-size: 9px; }
.action-btn:hover { color: var(--red); border-color: #daa9aa; }
.empty-state { padding: 52px 20px; text-align: center; color: var(--muted); display: grid; place-items: center; gap: 6px; }
.empty-state i { width: 42px; height: 42px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-style: normal; font-size: 18px; }
.empty-state strong { color: var(--ink); font-size: 12px; }
.empty-state span { font-size: 9px; }
.inline-empty { padding: 30px 12px; color: var(--muted); text-align: center; font-size: 10px; line-height: 1.7; }
.analytics-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 16px; }
.insight-card { padding: 17px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.insight-card small { color: var(--muted); font-size: 9px; }
.insight-card strong { display: block; margin: 8px 0 5px; font-size: 15px; }
.insight-card p { color: var(--muted); margin: 0; line-height: 1.65; font-size: 9px; }
.analytics-bars { display: grid; gap: 13px; padding: 8px 0; }
.analytics-bar { display: grid; grid-template-columns: 72px 1fr 68px; gap: 10px; align-items: center; font-size: 9px; }
.analytics-bar > strong { font-size: 10px; }
.bar-track { height: 16px; border-radius: 5px; background: #f0ece7; overflow: hidden; }
.bar-track span { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,var(--red),#d66e63); }
.analytics-bar > span { color: var(--muted); text-align: right; }
.analytics-types { display: grid; gap: 11px; }
.analytics-type { display: grid; grid-template-columns: 1fr auto; gap: 9px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid #eee9e3; }
.analytics-type:last-child { border: 0; }
.analytics-type strong { font-size: 11px; }
.analytics-type span { color: var(--muted); font-size: 9px; }

.workflow-summary { display: grid; grid-template-columns: repeat(2,minmax(0,220px)); gap: 12px; margin-bottom: 14px; }
.workflow-summary article { padding: 15px 17px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 7px 22px rgba(60,45,34,.035); }
.workflow-summary small, .workflow-summary strong, .workflow-summary span { display: block; }
.workflow-summary small { color: var(--muted); font-size: 9px; }
.workflow-summary strong { margin: 5px 0 3px; font-size: 23px; }
.workflow-summary span { color: #aaa39b; font-size: 8px; }
.workflow-summary article.danger { border-color: #efc9cb; background: #fff8f8; }
.workflow-summary article.danger strong { color: var(--red); }
.overdue-chip { display: inline-flex; padding: 5px 8px; border-radius: 999px; color: var(--red); background: var(--red-soft); font-size: 9px; font-weight: 800; white-space: nowrap; }
.admin-log-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 16px; align-items: start; }
.count-pill { min-width: 25px; height: 25px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; color: var(--red); background: var(--red-soft); font-size: 9px; font-weight: 800; }
.recycle-list, .audit-list { display: grid; gap: 9px; max-height: 560px; overflow-y: auto; }
.recycle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fcfaf8; }
.recycle-row > div { min-width: 0; }
.recycle-row strong, .recycle-row small { display: block; }
.recycle-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.recycle-row small { margin-top: 5px; color: var(--muted); font-size: 8px; }
.audit-row { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; align-items: start; padding: 10px 2px; border-bottom: 1px solid #eee9e3; }
.audit-row:last-child { border-bottom: 0; }
.audit-row > i { width: 7px; height: 7px; margin-top: 3px; border-radius: 50%; background: var(--red); }
.audit-row strong { display: block; font-size: 10px; }
.audit-row p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.audit-row time { color: #aaa39b; font-size: 8px; white-space: nowrap; }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(20,18,17,.58); backdrop-filter: blur(5px); }
.modal-card { width: min(720px,100%); max-height: 90vh; overflow-y: auto; background: var(--paper); border-radius: 20px; box-shadow: var(--shadow); animation: reveal .2s ease; }
.modal-card.compact { width: min(540px,100%); }
.modal-card > header { position: sticky; top: 0; z-index: 2; background: rgba(250,248,245,.96); backdrop-filter: blur(8px); padding: 18px 21px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-card header small { color: var(--muted); font-size: 9px; }
.modal-card header h2 { margin: 4px 0 0; font-size: 17px; }
.modal-card header > button { width: 33px; height: 33px; border: 0; border-radius: 9px; background: #eee9e3; font-size: 19px; }
.modal-content { padding: 21px; }
.detail-loading { min-height: 260px; display: grid; place-items: center; align-content: center; gap: 9px; color: var(--muted); text-align: center; }
.detail-loading i { width: 30px; height: 30px; border: 3px solid #eadfd6; border-top-color: var(--red); border-radius: 50%; animation: spin .75s linear infinite; }
.detail-loading strong { color: var(--ink); font-size: 12px; }
.detail-loading span { font-size: 9px; }
.detail-loading.error i { display: none; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.detail-box { border: 1px solid var(--line); background: #fff; border-radius: 11px; padding: 12px; }
.detail-box small, .detail-box strong { display: block; }
.detail-box small { color: var(--muted); font-size: 8px; margin-bottom: 5px; }
.detail-box strong { font-size: 11px; }
.detail-description { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 13px; margin: 12px 0; line-height: 1.7; font-size: 11px; }
.photo-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.photo-card { min-height: 160px; border-radius: 12px; overflow: hidden; background: #e9e3dc; position: relative; display: grid; place-items: center; color: var(--muted); font-size: 10px; text-align: center; }
.photo-card img { width: 100%; height: 210px; object-fit: cover; }
.photo-card span { position: absolute; left: 8px; top: 8px; border-radius: 7px; padding: 5px 7px; background: rgba(0,0,0,.58); color: #fff; font-size: 8px; }
.photo-preview-button { position: relative; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden; }
.photo-preview-button img { display: block; transition: transform .2s ease; }
.photo-preview-button:hover img { transform: scale(1.025); }
.photo-preview-button em { position: absolute; right: 8px; bottom: 8px; padding: 6px 8px; border-radius: 8px; background: rgba(0,0,0,.66); color: #fff; font-size: 9px; font-style: normal; }
.photo-viewer { position: fixed; inset: 0; z-index: 600; display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 12px; padding: 18px; background: rgba(7,7,7,.94); color: #fff; }
.photo-viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.photo-viewer-bar strong { font-size: 14px; }
.photo-viewer-bar button { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; background: rgba(255,255,255,.1); color: #fff; font-size: 25px; }
.photo-viewer-stage { min-height: 0; overflow: auto; display: grid; place-items: center; overscroll-behavior: contain; }
.photo-viewer-stage img { max-width: 94vw; max-height: 82vh; width: auto; height: auto; object-fit: contain; border-radius: 8px; touch-action: pinch-zoom; }
.photo-viewer > p { margin: 0; color: rgba(255,255,255,.58); text-align: center; font-size: 10px; }
body.photo-viewing { overflow: hidden; }
.timeline { margin: 17px 0; padding-left: 9px; }
.timeline-row { position: relative; border-left: 1px solid #d8d0c7; padding: 0 0 16px 18px; }
.timeline-row:last-child { padding-bottom: 0; }
.timeline-row:before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); position: absolute; left: -4.5px; top: 3px; }
.timeline-row strong { font-size: 10px; }
.timeline-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.btn.danger { color: #b4232b; background: #fff4f4; border: 1px solid #efc9cb; box-shadow: none; }
.btn.danger:hover { background: #b4232b; border-color: #b4232b; color: #fff; }
.small-upload { min-height: 90px; border: 1.5px dashed #d4cbc1; border-radius: 11px; position: relative; display: grid; place-items: center; overflow: hidden; color: var(--muted); font-size: 10px; }
.small-upload img { width: 100%; height: 190px; object-fit: cover; display: none; }
.small-upload.has-image img { display: block; }
.small-upload.has-image span { display: none; }
.review-choice { display: grid; gap: 8px; margin-bottom: 18px; }
.review-choice label { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 11px; font-size: 10px; }
.security-content h3 { margin: 0 0 7px; font-size: 14px; }
.security-tip { margin: 0 0 18px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.admin-reset { margin-top: 25px; padding-top: 23px; border-top: 1px solid var(--line); }
.account-admin-block + .account-admin-block { margin-top: 24px; padding-top: 23px; border-top: 1px solid var(--line); }
.reset-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.account-reset-tip { margin: 8px 0 0; }
.account-save-button { margin-top: 12px; }
.account-default-password { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 14px; margin: 14px 0 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #f8f5f2; }
.account-default-password span { color: var(--muted); font-size: 10px; }
.account-default-password strong { grid-row: 1 / span 2; grid-column: 2; font-size: 16px; letter-spacing: .04em; }
.account-default-password small { color: var(--muted); font-size: 9px; }
.task-create-card.modal-card.compact { width:min(680px,100%); }
.assignee-picker { display:block; max-height:330px; overflow:auto; padding:0; border:1px solid var(--line); border-radius:14px; background:#f8f5f2; }
.assignee-owner,.assignee-group { padding:12px; border-bottom:1px solid #e8e0d9; }
.assignee-group:last-child { border-bottom:0; }
.assignee-owner>header,.assignee-group-title,.assignee-subgroup>header { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:8px; }
.assignee-owner>header strong,.assignee-group-title strong { font-size:13px; color:#231f1c; }
.assignee-owner>header span,.assignee-group-title span,.assignee-subgroup>header span { color:var(--muted); font-size:10px; }
.assignee-subgroup { margin-top:12px; padding-top:11px; border-top:1px dashed #ddd3cb; }
.assignee-subgroup>header strong { padding-left:9px; border-left:3px solid #c72a31; color:#5f5650; font-size:12px; }
.assignee-group-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.assignee-group-empty { padding:10px; color:var(--muted); font-size:11px; text-align:center; background:#fff; border-radius:10px; }
.assignee-option { display:flex; align-items:center; gap:10px; min-width:0; padding:11px; border:1px solid #e8dfd7; border-radius:11px; cursor:pointer; background:#fff; transition:.16s ease; }
.assignee-option:hover { border-color:#d8acae; transform:translateY(-1px); box-shadow:0 5px 14px rgba(76,39,32,.06); }
.assignee-option:has(input:checked) { border-color:#c72a31; background:#fff0ef; box-shadow:inset 0 0 0 1px rgba(199,42,49,.08); }
.assignee-option.assignee-self { border-color:#d14349; background:linear-gradient(135deg,#fff0ef,#fff8f4); }
.assignee-option.assignee-self:has(input:checked) { color:#fff; border-color:#b82029; background:linear-gradient(135deg,#b82029,#d44747); }
.assignee-option input { width:16px; height:16px; margin:0; accent-color:var(--red); }
.assignee-option span { display:grid; gap:2px; min-width:0; }
.assignee-option strong { display:flex; align-items:center; gap:6px; font-size:12px; }
.assignee-option strong em { padding:2px 5px; border-radius:99px; color:#fff; background:#b82029; font-size:8px; font-style:normal; }
.assignee-option.assignee-self:has(input:checked) strong em { color:#b82029; background:#fff; }
.assignee-option small { color:var(--muted); font-size:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.assignee-option.assignee-self:has(input:checked) small { color:rgba(255,255,255,.78); }
.account-delete-button { margin-top:12px; }
.account-delete-tip { margin:7px 0 0; color:#a33; }

@media (max-width: 1020px) {
  .entry-wrap { grid-template-columns: 1fr 420px; gap: 40px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .cloud-usage-card { grid-template-columns: 1fr auto; }
  .cloud-usage-meter { grid-column: 1 / -1; grid-row: 2; }
  .admin-log-grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .entry-wrap { grid-template-columns: 1fr; width: min(520px,calc(100% - 32px)); padding-top: 10px; }
  .entry-copy { text-align: center; }
  .entry-copy > p { margin-left: auto; margin-right: auto; }
  .entry-highlights { justify-content: center; margin-left: auto; margin-right: auto; }
  .entry-card { min-height: 430px; }
  .app-screen { display: block; }
  .sidebar { transform: translateX(-100%); transition: .25s; box-shadow: 25px 0 55px rgba(0,0,0,.22); }
  .sidebar.open { transform: none; }
  .workspace { padding: 0 15px 35px; }
  .topbar { height: 72px; }
  .menu-button { display: block; }
  .topbar-left small, .today { display: none; }
  .topbar-left h1 { font-size: 21px; }
  .topbar-actions .soft { display: none; }
  .hero-card { align-items: flex-start; flex-direction: column; }
  .analytics-cards { grid-template-columns: 1fr; }
  .workflow-summary { grid-template-columns: 1fr 1fr; }
  .inspection-screen { padding: 0; background: #fff; }
  .inspection-shell { min-height: 100vh; border-radius: 0; box-shadow: none; }
  .inspection-content { padding: 22px 18px 30px; }
  .inspection-head { padding: 25px 18px; }
  .form-grid.two { grid-template-columns: 1fr; gap: 0; }
  .detail-grid, .photo-compare { grid-template-columns: 1fr; }
  .inspection-submit-row { grid-template-columns: 1fr; }
  th:nth-child(4), td:nth-child(4), th:nth-child(5), td:nth-child(5) { display: none; }
}
@media (max-width: 500px) {
  .entry-brand { padding: 20px; }
  .entry-brand-logo { width: 145px; height: 50px; }
  .entry-brand-system { padding-left: 9px; }
  .entry-brand-system strong { font-size: 15px; }
  .entry-brand-system small { font-size: 8px; }
  .entry-character-left { width: 80vw; opacity: .055; }
  .entry-character-right { width: 72vw; opacity: .05; }
  .entry-copy h1 { font-size: 39px; }
  .entry-copy > p { font-size: 12px; }
  .entry-highlights { gap: 10px 16px; }
  .entry-highlights span { font-size: 9px; }
  .entry-card { padding: 8px 17px 20px; }
  .metric-grid { grid-template-columns: 1fr; }
  .workflow-summary { grid-template-columns: 1fr; }
  .metric { min-height: 88px; }
  .hero-card { padding: 21px; }
  .cloud-usage-card { grid-template-columns: 1fr; gap: 14px; }
  .cloud-usage-meter { grid-column: auto; grid-row: auto; }
  .cloud-usage-refresh { width: 100%; }
  .section-title { align-items: flex-start; flex-direction: column; }
  .export-btn { width: 100%; }
  .type-breakdown { align-items: flex-start; }
}

/* 综合管理平台 */
.platform-nav { overflow-y:auto; padding-right:4px; }
.platform-nav .nav-standalone,.platform-nav .nav-parent { width:100%; }
.nav-group { margin:4px 0; }
.nav-group .nav-parent { display:flex; align-items:center; gap:12px; color:#d8d4ce; background:transparent; border:0; border-radius:14px; padding:13px 16px; font-size:15px; cursor:pointer; }
.nav-group .nav-parent:hover { background:rgba(255,255,255,.06); color:#fff; }
.nav-group .nav-parent span { width:22px; font-size:18px; text-align:center; }
.nav-group .nav-parent em { margin-left:auto; font-style:normal; color:#777; transition:transform .18s ease; }
.sidebar nav button i.point-approval-count { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; min-width:22px; height:22px; padding:0 6px; color:#fff; background:var(--red); border-radius:999px; font-size:12px; font-weight:700; font-variant-numeric:tabular-nums; }
.sidebar nav button i.point-approval-count[hidden] { display:none!important; }
.nav-group .nav-parent .point-approval-count:not([hidden]) + em { margin-left:0; }
.metric.point-approval-metric { position:relative; }
.platform-page #dashboardView .metric.point-approval-metric > button { position:absolute!important; inset:0; width:100%; height:100%; min-height:0; border:0!important; border-radius:inherit; padding:0; background:transparent!important; box-shadow:none!important; cursor:pointer; }
.platform-page #dashboardView .metric.point-approval-metric > button:focus-visible { outline:2px solid var(--red); outline-offset:-4px; }
.nav-group.open .nav-parent em { transform:rotate(180deg); }
.nav-children { display:none; padding:2px 0 7px 32px; }
.nav-group.open .nav-children { display:block; }
.platform-nav .nav-children button { min-height:36px; margin:1px 0; padding:8px 12px; border-radius:10px; font-size:13px; color:#aaa49c; }
.platform-nav .nav-children button:hover,.platform-nav .nav-children button.active { color:#fff; background:rgba(184,31,41,.28); }
.platform-nav .nav-children button i { margin-left:auto; }
.preset-chips { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.preset-chips:has(.preset-group-tabs) { display:block; }
.preset-group-tabs { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; padding:8px; border:1px solid #e8dfd7; border-radius:13px; background:#f8f5f2; }
.preset-group-tab { display:flex; align-items:center; gap:7px; padding:8px 12px; border:1px solid transparent; border-radius:10px; background:transparent; color:#6b625b; cursor:pointer; }
.preset-group-tab small { min-width:20px; padding:2px 5px; border-radius:99px; background:#ebe4dd; color:#81766e; font-size:9px; }
.preset-group-tab.selected { border-color:#d36a6f; background:#fff; color:#aa1d26; box-shadow:0 4px 12px rgba(80,45,36,.06); }
.preset-group-tab.selected small { color:#fff; background:#b82029; }
.preset-group-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.preset-chip { text-align:left; min-height:46px; padding:11px 13px; border:1px solid #e5ddd5; border-radius:12px; background:#fff; color:#4d4945; cursor:pointer; transition:.15s ease; }
.preset-chip:hover { border-color:#c88789; background:#fff8f7; }
.preset-chip.selected { border-color:#b82029; background:#fff0ef; color:#a71922; box-shadow:0 0 0 2px rgba(184,32,41,.08); }
.task-metrics .metric-card { background:#fff; border:1px solid #e9e1da; border-radius:18px; padding:20px; box-shadow:0 8px 28px rgba(62,42,30,.05); }
.task-metrics .metric-card small { display:block; color:#8b8179; margin-bottom:8px; }
.task-metrics .metric-card strong { font-size:30px; color:#231f1c; }
.task-panel { min-height:260px; }
.task-board { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; }
.task-card { position:relative; padding:18px; border:1px solid #e9e1da; border-radius:17px; background:#fff; overflow:hidden; box-shadow:0 7px 22px rgba(56,38,28,.05); }
.task-card::before { content:""; position:absolute; inset:0 auto 0 0; width:6px; background:#4d87a6; }
.task-card.urgent { border-color:#e1a8ac; background:linear-gradient(135deg,#fff5f5,#fff); }.task-card.urgent::before { background:#b71924; }
.task-card.important { border-color:#edcc97; background:linear-gradient(135deg,#fff9ec,#fff); }.task-card.important::before{background:#df921d}
.task-card.routine { border-color:#bed2dd; background:linear-gradient(135deg,#f5fbfe,#fff); }.task-card.routine::before{background:#367b9f}
.task-card-top,.task-meta,.task-card-actions { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.task-priority { font-size:12px; font-weight:800; padding:5px 10px; border-radius:999px; color:#fff; background:#367b9f; }
.task-card.urgent .task-priority { background:#b71924; }.task-card.important .task-priority { background:#df921d; }.task-card.routine .task-priority { background:#367b9f; }
.task-card h3 { margin:14px 0 7px; font-size:17px; color:#24201d; }
.task-card>p { min-height:38px; margin:0 0 14px; color:#7f756e; font-size:13px; line-height:1.55; }
.task-meta { align-items:flex-start; flex-direction:column; color:#817871; font-size:12px; }
.overdue-text { color:#bd2029!important; font-weight:700; }
.task-progress { display:flex; align-items:center; gap:9px; margin:14px 0; }
.task-progress>div { flex:1; height:7px; background:#eee9e4; border-radius:99px; overflow:hidden; }.task-progress i{display:block;height:100%;background:linear-gradient(90deg,#b82029,#e05b58);border-radius:99px}.task-progress strong{font-size:12px}
.task-card-actions { justify-content:flex-end; padding-top:4px; }.danger-link{color:#b82029!important}
.standards-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.standard-card { background:#fff; border:1px solid #e8e0d9; border-radius:18px; padding:20px; box-shadow:0 8px 30px rgba(58,38,27,.05); }
.standard-card header { display:flex; justify-content:space-between; align-items:center; padding-bottom:13px; border-bottom:1px solid #eee8e2; }.standard-card header strong{font-size:18px}.standard-card header span{color:#a82127;font-size:12px;background:#fff0ef;padding:5px 8px;border-radius:99px}
.standard-card ul { margin:13px 0 0; padding-left:19px; color:#645d57; }.standard-card li{margin:9px 0;line-height:1.45}
.standards-grid .standard-card ul { list-style:none; padding-left:0; }
.standards-grid .standard-card li { display:grid; grid-template-columns:10px minmax(0,1fr) 25px; gap:8px; align-items:start; min-height:25px; padding:0; }
.standards-grid .standard-card li::before { content:"•"; grid-column:1; color:#645d57; line-height:25px; }
.standards-grid .standard-card li span { grid-column:2; min-width:0; overflow-wrap:anywhere; line-height:25px; }
.standards-grid .standard-card li button { grid-column:3; width:25px; height:25px; margin:0; border:0; border-radius:8px; color:#a82028; background:#fff0ef; cursor:pointer; }
.standard-add-form { display:flex; gap:8px; margin-top:16px; padding-top:14px; border-top:1px solid #eee8e2; }
.standard-add-form input { min-width:0; flex:1; padding:10px 11px; border:1px solid #e3dad2; border-radius:10px; }
.standard-add-form button { border:0; border-radius:10px; padding:9px 12px; color:#fff; background:#b82029; cursor:pointer; white-space:nowrap; }
.people-row{display:grid;grid-template-columns:1.2fr 1fr .8fr;gap:20px;align-items:center;padding:14px 10px;border-bottom:1px solid #eee8e2}.people-row>span:first-child{display:flex;flex-direction:column;gap:4px}.people-row small{color:#978d86}.people-head{font-size:12px;color:#968c84;background:#faf8f6;border-radius:12px}.people-head>span{display:block!important}
.permission-grid,.settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }.permission-grid article{background:#fff;border:1px solid #e8e0d9;border-radius:18px;padding:22px}.permission-grid strong{font-size:17px}.permission-grid p,.settings-note{color:#7d746d;line-height:1.7}
.settings-grid.one-column { grid-template-columns:1fr; }
.setting-tags { display:flex;flex-wrap:wrap;gap:9px;margin-top:16px}.setting-tags span{padding:8px 12px;border-radius:10px;background:#f6f1ed;color:#5c554f}
.store-people-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.transfer-toolbar{display:flex;justify-content:flex-end;margin-bottom:14px}.transfer-row{display:grid;grid-template-columns:1fr 1.4fr .8fr 1.4fr;gap:16px;align-items:center;padding:14px 10px;border-bottom:1px solid #eee8e2}.transfer-row>span:first-child{display:flex;flex-direction:column;gap:3px}.transfer-row small{color:#978d86}.transfer-row .action-btn{margin-left:6px}.transfer-head{font-size:12px;color:#968c84;background:#faf8f6;border-radius:12px}
.people-archive-toolbar { display:flex; justify-content:space-between; gap:18px; align-items:end; margin-bottom:18px; }
.people-archive-toolbar > div:first-child { display:grid; gap:5px; }
.people-archive-toolbar > div:first-child strong { font-size:18px; }
.people-archive-toolbar > div:first-child small { color:#8a817a; }
.people-archive-toolbar > div:last-child { display:flex; gap:9px; min-width:min(520px,48%); }
.people-archive-toolbar input,.people-archive-toolbar select { min-width:0; border:1px solid #e2d9d2; border-radius:11px; padding:10px 12px; background:#fff; }
.people-archive-toolbar input { flex:1; }
.people-archive-table { overflow-x:auto; }
.people-archive-row { display:grid; grid-template-columns:1.05fr 1.25fr 1fr .8fr 1fr 1fr .65fr; gap:12px; align-items:center; min-width:1180px; padding:13px 12px; border-bottom:1px solid #eee8e2; }
.people-archive-head { border:0; border-radius:11px; color:#8d837b; background:#faf7f5; font-size:12px; }
.archive-person { display:grid; grid-template-columns:34px minmax(0,1fr); gap:1px 9px; align-items:center; }
.archive-person i { grid-row:1/3; display:grid; place-items:center; width:34px; height:34px; border-radius:10px; color:#fff; background:#a91822; font-style:normal; font-weight:800; }
.archive-person b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.archive-person small { color:#3a8b61; font-size:11px; }
.people-archive-row code { color:#766d66; font-size:12px; }
.archive-phone.missing { color:#b27118; }
.archive-stack,.people-archive-row>span:nth-child(5),.people-archive-row>span:nth-child(6){display:grid;gap:4px}.archive-stack small,.people-archive-row>span:nth-child(5) small,.people-archive-row>span:nth-child(6) small{color:#8b817a;font-size:11px}.archive-doc{display:inline-flex;width:max-content;max-width:100%;padding:5px 8px;border-radius:999px;font-size:12px}.archive-doc.valid{color:#28795c;background:#eaf7f1}.archive-doc.warning{color:#a4620c;background:#fff3df}.archive-doc.expired{color:#b91f29;background:#fff0f1}.archive-doc.missing{color:#766c65;background:#f0ece9}
@media(max-width:1100px){.task-board,.standards-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.preset-chips,.task-board,.standards-grid,.permission-grid,.settings-grid,.store-people-grid{grid-template-columns:1fr}.people-row,.transfer-row{grid-template-columns:1fr}.people-head,.transfer-head{display:none}.nav-children{padding-left:24px}}

@keyframes spin { to { transform: rotate(360deg); } }

.learning-host-view { margin: -8px -8px -52px; }
.learning-frame-home { position:relative; min-height:calc(100vh - 112px); overflow:hidden; border-radius:20px 20px 0 0; background:#f7f3ee; }
.learning-host-view iframe { display:block; width:100%; min-height:calc(100vh - 112px); border:0; background:#f7f3ee; border-radius:20px 20px 0 0; opacity:1; transition:opacity .14s ease; }
.learning-frame-home.is-loading iframe { opacity:0; pointer-events:none; }
.learning-frame-loading { position:absolute; z-index:2; inset:0; display:none; place-content:center; justify-items:center; gap:9px; min-height:calc(100vh - 112px); color:#6f665f; text-align:center; background:#f7f3ee; }
.learning-frame-home.is-loading .learning-frame-loading { display:grid; }
.learning-frame-loading i { width:24px; height:24px; border:2px solid #dfd7d0; border-top-color:#c91e2c; border-radius:50%; animation:spin .8s linear infinite; }
.learning-frame-loading strong { color:#28231f; font-size:16px; }
.learning-frame-loading span { color:#8d837b; font-size:13px; }
.photo-source-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:10px 0; }
.photo-source-actions label { position:relative; cursor:pointer; }
.photo-source-actions input { position:absolute; inset:0; width:100%; opacity:0; cursor:pointer; }
.photo-source-actions b { display:block; padding:14px; text-align:center; color:#a61d25; background:#fff4f3; border:1px solid #edc9c8; border-radius:13px; }
.preview-only { cursor:default; }
.task-schedule-panel { margin-bottom:18px; }
.schedule-switch { display:flex; padding:3px; background:#f1ece7; border-radius:11px; }
.schedule-switch button { border:0; padding:8px 15px; border-radius:9px; color:#817770; background:transparent; cursor:pointer; }
.schedule-switch button.active { color:#a51e26; background:#fff; box-shadow:0 3px 10px rgba(60,40,28,.08); font-weight:700; }
.task-schedule { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:16px; }
.schedule-item { position:relative; display:grid; gap:5px; text-align:left; border:1px solid #bdd2dd; border-radius:14px; background:#f7fbfd; padding:14px 14px 14px 19px; cursor:pointer; overflow:hidden; }
.schedule-item::before { content:""; position:absolute; inset:0 auto 0 0; width:6px; background:#367b9f; }.schedule-item.urgent{border-color:#e1a8ac;background:#fff4f4}.schedule-item.urgent::before{background:#b71924}.schedule-item.important{border-color:#edcc97;background:#fff9ec}.schedule-item.important::before{background:#df921d}
.schedule-item span,.schedule-item small { color:#8a817a; font-size:12px; }.schedule-item strong{color:#2b2724;font-size:14px}
.permission-switch-list { display:grid; gap:4px; margin-top:12px; max-height:360px; overflow:auto; }
.permission-switch-list label { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:10px 4px; border-bottom:1px solid #eee8e2; }
.permission-switch-list label span { display:grid; gap:3px; }.permission-switch-list small{color:#91877f}.permission-switch-list input{width:42px;height:22px;accent-color:#b82029}
.task-access-legend,.task-access-row { display:grid; grid-template-columns:minmax(220px,.9fr) minmax(300px,1.25fr) 150px; gap:18px; align-items:center; }
.task-access-legend { margin-top:16px; padding:0 14px 9px; border-bottom:1px solid #e9e1da; color:#978d85; font-size:12px; }
.task-access-legend span:last-child { text-align:right; }
.task-access-list { display:grid; max-height:520px; overflow:auto; }
.task-access-row { padding:14px; border-bottom:1px solid #eee7e1; }
.task-access-row:last-child { border-bottom:0; }
.task-access-person { display:grid; grid-template-columns:40px minmax(0,1fr); gap:11px; align-items:center; }
.task-access-person > i { display:grid; place-items:center; width:40px; height:40px; border-radius:12px; color:#a91822; background:#f8e8e9; font-weight:800; font-style:normal; }
.task-access-person span { display:grid; gap:2px; min-width:0; }
.task-access-person small,.task-access-person code { overflow:hidden; color:#8b8179; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.task-access-scope { display:flex; flex-wrap:wrap; gap:7px; }
.task-access-scope span { display:flex; gap:6px; border-radius:9px; padding:7px 9px; color:#6f665f; background:#f8f4f1; font-size:12px; }
.task-access-scope b { color:#403934; }
.task-access-toggle { display:flex; justify-content:flex-end; align-items:center; gap:9px; color:#6f665f; font-size:12px; }
.task-access-toggle input { width:42px; height:22px; accent-color:#b82029; }
.permission-person-selector { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:18px 0; padding:17px; border:1px solid #e8dfd7; border-radius:15px; background:#faf7f4; }
.permission-person-selector label { display:grid; gap:7px; color:#756b63; font-size:12px; font-weight:700; }
.permission-person-selector select { width:100%; border:1px solid #dfd5cd; border-radius:11px; padding:12px; color:#342f2b; background:#fff; }
.permission-person-editor-card { display:grid; gap:16px; }
.permission-person-editor-card > header { display:grid; grid-template-columns:48px minmax(0,1fr); gap:12px; align-items:center; padding:16px; border-radius:14px; color:#fff; background:linear-gradient(135deg,#991922,#c92c35); }
.permission-person-editor-card > header > i { display:grid; place-items:center; width:48px; height:48px; border-radius:13px; color:#a71922; background:#fff; font-style:normal; font-weight:900; }
.permission-person-editor-card > header span { display:grid; gap:3px; }.permission-person-editor-card > header small,.permission-person-editor-card > header code{color:rgba(255,255,255,.82);font-size:11px}
.permission-person-editor-card > section { padding:16px; border:1px solid #e9e1da; border-radius:14px; background:#fff; }
.permission-person-editor-card h4 { margin:0 0 12px; }
.permission-scope { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }.permission-scope span{display:flex;gap:7px;padding:8px 10px;border-radius:9px;background:#f8f3ef;color:#706760;font-size:12px}.permission-scope b{color:#37312d}
.permission-switch { display:flex; align-items:center; gap:10px; color:#5f5751; font-size:13px; }.permission-switch input{width:42px;height:22px;accent-color:#b82029}
.permission-module-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }.permission-module-grid label{display:flex;align-items:center;gap:8px;padding:10px;border-radius:10px;background:#faf6f3;color:#5f5751}.permission-module-grid input{accent-color:#b82029}
.permission-reporting-grid { display:grid; grid-template-columns:1fr 1fr auto; gap:10px; align-items:end; }.permission-reporting-grid label{display:grid;gap:6px;color:#756b63;font-size:12px}.permission-reporting-grid select{width:100%;border:1px solid #dfd5cd;border-radius:10px;padding:10px;background:#fff}
.person-select-stack{display:grid;gap:8px;width:100%;min-width:0}.person-select-stack>input,.person-select-stack>select{width:100%;min-width:0}.person-select-search{min-height:44px}.permission-reporting-grid .person-select-stack input,.permission-reporting-grid .person-select-stack select{min-height:44px;border:1px solid #dfd5cd;border-radius:10px;padding:10px;background:#fff}.permission-reporting-grid .person-select-stack input:focus-visible,.permission-reporting-grid .person-select-stack select:focus-visible{outline:2px solid #d01932;outline-offset:2px}
.form-grid.two.single-field { grid-template-columns:1fr; }
@media(max-width:1100px){.task-schedule{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.learning-host-view{margin:0 -12px -36px}.learning-frame-home,.learning-host-view iframe,.learning-frame-loading{min-height:calc(100vh - 92px)}.learning-frame-home,.learning-host-view iframe{border-radius:14px 14px 0 0}}
@media(prefers-reduced-motion:reduce){.learning-host-view iframe{transition:none}.learning-frame-loading i{animation:none}}
@media(max-width:700px){.photo-source-actions,.task-schedule{grid-template-columns:1fr}}
@media(max-width:700px){.assignee-group-grid{grid-template-columns:1fr}.assignee-picker{max-height:360px}}
@media(max-width:700px){.preset-group-list{grid-template-columns:1fr}.preset-group-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.preset-group-tab{justify-content:space-between}}
@media(max-width:700px){.permission-person-selector,.permission-module-grid,.permission-reporting-grid{grid-template-columns:1fr}.workflow-item>footer{align-items:flex-start;flex-direction:column}}
.route-badge {
  display: inline-flex;
  align-items: center;
  margin: 6px 0 0 8px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.route-badge.front { color: #285d89; background: #eaf4fb; }
.route-badge.kitchen { color: #9a5c00; background: #fff2d8; }
.route-badge.shared { color: #6a4b7b; background: #f3ebf7; }

.feedback-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(480px, 1.22fr);
  gap: 22px;
  align-items: start;
}

.feedback-compose,
.feedback-admin { padding: 26px; }

.feedback-private {
  color: #8b6a33;
  background: #fff5df;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.feedback-list {
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 260px);
  overflow: auto;
  padding-right: 5px;
}

.feedback-item {
  border: 1px solid #ece4db;
  border-left: 4px solid #d8d1ca;
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}

.feedback-item.pending { border-left-color: var(--red); background: #fffafa; }
.feedback-item.done { opacity: 0.84; }
.feedback-item-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.feedback-item-head > div { display: grid; gap: 5px; }
.feedback-item-head span { color: var(--red); font-size: 12px; font-weight: 700; }
.feedback-item-head strong { font-size: 17px; }
.feedback-item-head em { font-style: normal; font-size: 12px; border-radius: 999px; background: #f7e7e8; color: var(--red); padding: 5px 9px; white-space: nowrap; }
.feedback-item.done .feedback-item-head em { background: #e8f4ed; color: #258151; }
.feedback-item > p { color: #4e4843; line-height: 1.75; white-space: pre-wrap; margin: 12px 0 8px; }
.feedback-item > small { color: #928980; }
.feedback-reply { margin-top: 14px; }
.feedback-actions { display: flex; justify-content: flex-end; margin-top: 10px; }

@media (max-width: 1050px) {
  .feedback-layout { grid-template-columns: 1fr; }
  .feedback-list { max-height: none; }
}

.split-workspace { display:grid; grid-template-columns:minmax(360px,.76fr) minmax(520px,1.24fr); gap:22px; align-items:start; }
.split-workspace > .panel { padding:24px; }
.compact-form { display:grid; gap:16px; margin-top:18px; }
.workflow-list { display:grid; gap:12px; margin-top:16px; }
.workflow-item { border:1px solid #e9e1da; border-radius:15px; padding:15px; background:#fff; }
.workflow-item header { display:flex; justify-content:space-between; gap:12px; align-items:center; }
.workflow-item p { margin:10px 0; color:#4e4843; line-height:1.65; white-space:pre-wrap; }
.workflow-item small { color:#8a817a; }
.workflow-item > footer { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:10px; }
.workflow-item > div { display:flex; justify-content:flex-end; gap:8px; margin-top:12px; }
.report-analysis { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:16px; }
.report-summary-card { border:1px solid #e9e1da; border-radius:15px; padding:15px; background:#fffaf8; }
.report-summary-card header { display:flex; justify-content:space-between; gap:12px; border-bottom:1px solid #eee6df; padding-bottom:10px; }
.report-summary-card header span,.report-summary-card p { color:#756b63; }
.report-summary-card b { display:block; margin-top:11px; font-size:13px; }
.report-summary-card p { margin:4px 0 0; line-height:1.55; }
.subsection-heading { margin-top:24px; }
.module-permission-list { display:grid; gap:12px; }
.module-permission-list > article { border:1px solid #e9e1da; border-radius:15px; padding:15px; }
.module-permission-list header { display:flex; justify-content:space-between; gap:12px; margin-bottom:12px; }
.module-permission-list header span { color:#8a817a; }
.module-permission-list > article > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.module-permission-list > article > div label { display:flex; align-items:center; gap:8px; padding:9px 10px; border-radius:10px; background:#faf6f3; }
.module-permission-list input { accent-color:#b82029; }
.organization-tree { display:grid; gap:22px; }
.org-root { width:min(520px,100%); margin:0 auto; padding:20px; text-align:center; border-radius:18px; color:#fff; background:linear-gradient(135deg,#a91822,#cf343c); box-shadow:0 12px 28px rgba(168,24,34,.18); }
.org-root strong,.org-root span { display:block; }
.org-root strong { font-size:21px; }
.org-root span { margin-top:6px; opacity:.85; }
.org-tree-line { width:2px; height:22px; margin:-22px auto 0; background:#d9c9c2; }
.org-team-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; align-items:start; position:relative; }
.org-team-grid.org-four-branches { grid-template-columns:repeat(4,minmax(0,1fr)); }
.org-team-grid.org-four-branches::before { content:""; position:absolute; top:-23px; left:12.5%; right:12.5%; height:23px; border-top:2px solid #d9c9c2; }
.org-team { border:1px solid #e9e1da; border-radius:18px; padding:16px; background:#fff; }
.org-branch { position:relative; }
.org-branch::before { content:""; position:absolute; top:-24px; left:50%; width:2px; height:24px; background:#d9c9c2; }
.org-branch.admin { border-top:4px solid #9a6b3e; }
.org-branch.area { border-top:4px solid #507b94; }
.org-branch.main-store { border-top:4px solid #b82029; }
.org-team > header { display:flex; justify-content:space-between; gap:12px; border-bottom:1px solid #eee6df; padding-bottom:12px; }
.org-team > header div { display:grid; gap:4px; }
.org-team > header small { color:#8a817a; line-height:1.5; }
.org-team > header > span { color:#a91822; font-size:12px; font-weight:700; white-space:nowrap; }
.org-manager { margin:12px 0; }
.org-manager > label { display:block; margin-bottom:7px; color:#8a817a; font-size:11px; font-weight:700; }
.org-store-groups { display:grid; gap:12px; }
.org-store-groups section { border-top:1px dashed #e8ded6; padding-top:12px; }
.org-store-groups h4 { margin:0 0 8px; font-size:13px; color:#756b63; }
.org-store-groups section > div { display:grid; gap:7px; }
.org-store-groups .org-store { border:1px solid #eee5de; border-radius:14px; padding:12px; background:#fffdfa; }
.org-store > h4 { display:flex; align-items:center; justify-content:space-between; }
.org-store > h4 small { color:#9a918a; font-weight:500; }
.org-store-leaders { display:grid; gap:7px; }
.org-departments { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:10px; }
.org-department { padding:0 !important; border:1px solid #eadfd7 !important; border-radius:11px; overflow:hidden; background:#fff; }
.org-department-toggle { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:44px; padding:9px 11px; border:0; color:#5f554e; background:#f8f3ef; cursor:pointer; }
.org-department-toggle span { display:flex; align-items:baseline; gap:7px; }
.org-department-toggle small { color:#948a82; }
.org-department-toggle i { width:8px; height:8px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); transition:transform .18s ease; }
.org-department.open .org-department-toggle i { transform:rotate(180deg); }
.org-department-toggle:focus-visible,.org-person:focus-visible { outline:3px solid rgba(185,31,41,.25); outline-offset:2px; }
.org-department-members { display:grid; gap:7px; padding:8px; border-top:1px solid #eee5de; }
.org-person { display:grid; grid-template-columns:1fr auto; gap:3px 10px; width:100%; border:1px solid #eadfd7; border-radius:12px; padding:10px 12px; text-align:left; background:#fffaf8; cursor:pointer; }
.org-person:hover { border-color:#c52a34; box-shadow:0 5px 15px rgba(168,24,34,.08); }
.org-person span { color:#a91822; font-size:12px; }
.org-person small { grid-column:1/-1; color:#8a817a; }
.org-vacancy { padding:12px; border:1px dashed #d9cdc5; border-radius:12px; color:#9b918a; text-align:center; }
@media (max-width:720px) { .org-departments { grid-template-columns:1fr; } }

.workbench-priority-list { display:grid; gap:10px; }
.workbench-priority { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:4px 12px; align-items:center; width:100%; border:1px solid #ebe2dc; border-left:4px solid #7594a6; border-radius:14px; padding:14px 15px; text-align:left; color:#312c28; background:#fff; cursor:pointer; }
.workbench-priority:hover { border-color:#d7b8b9; box-shadow:0 7px 18px rgba(58,42,36,.07); transform:translateY(-1px); }
.workbench-priority.warning { border-left-color:#d59635; }
.workbench-priority.danger { border-left-color:#bd2029; background:#fffafa; }
.workbench-priority.report { border-left-color:#1f6f7d; background:#f7fbfc; }
.workbench-priority > span { grid-row:1/3; align-self:center; border-radius:999px; padding:5px 8px; color:#9b2027; background:#f9e9ea; font-size:11px; font-weight:700; }
.workbench-priority.report > span { color:#17606d; background:#e7f3f5; }
.workbench-priority strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:15px; }
.workbench-priority small { color:#8b8179; }
.workbench-priority em { grid-column:3; grid-row:1/3; color:#a91822; font-size:12px; font-style:normal; }
.workbench-priority:focus-visible { outline:3px solid rgba(189,32,41,.24); outline-offset:2px; }
.workbench-clear { display:grid; justify-items:center; gap:6px; padding:54px 20px; color:#82776f; text-align:center; }
.workbench-clear i { display:grid; place-items:center; width:44px; height:44px; border-radius:50%; color:#29865b; background:#e7f4ed; font-size:22px; font-style:normal; }
.workbench-clear strong { color:#39332f; }
.workbench-clear span { font-size:12px; }
.workbench-side-content { display:grid; gap:16px; }
.workbench-scope { display:grid; gap:8px; border-radius:14px; padding:14px; background:#faf6f3; }
.workbench-scope > strong { margin-bottom:2px; font-size:13px; }
.workbench-scope > span { display:flex; justify-content:space-between; gap:12px; color:#756c65; font-size:12px; }
.workbench-scope > span b { color:#3d3732; }
.workbench-scope > span i { color:#a91822; font-style:normal; }
.workbench-quick-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.workbench-quick-grid button { display:grid; gap:5px; min-height:94px; border:1px solid #ebe2dc; border-radius:14px; padding:13px; text-align:left; color:#3a342f; background:#fff; cursor:pointer; }
.workbench-quick-grid button:hover { border-color:#c98f92; background:#fffafa; }
.workbench-quick-grid button small { color:#8b8179; }
.workbench-quick-grid button span { margin-top:auto; color:#a91822; font-size:11px; }
.feedback-user-reply,.feedback-waiting { margin-top:14px; border-radius:12px; padding:13px 14px; background:#f6f3f0; color:#70665f; }
.feedback-user-reply { border-left:3px solid #3c8a62; }
.feedback-user-reply strong { color:#2f6f50; font-size:12px; }
.feedback-user-reply p { margin:6px 0; color:#49423d; line-height:1.65; white-space:pre-wrap; }
.feedback-user-reply small,.feedback-waiting { font-size:12px; }

@media (max-width: 1180px) {
  .split-workspace { grid-template-columns:1fr; }
  .org-team-grid.org-four-branches { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .org-team-grid.org-four-branches::before,.org-branch::before,.org-tree-line { display:none; }
}
@media (max-width: 700px) {
  .report-analysis,.module-permission-list > article > div { grid-template-columns:1fr; }
  .split-workspace > .panel { padding:18px; }
  .org-team-grid.org-four-branches,.workbench-quick-grid { grid-template-columns:1fr; }
  .workbench-priority { grid-template-columns:auto minmax(0,1fr); }
  .workbench-priority em { display:none; }
}

/* v0.15 information architecture and workflow layout */
.platform-nav { gap:3px; }
.platform-nav .nav-standalone,.nav-group .nav-parent { min-height:42px; border-radius:10px; padding:0 12px; font-size:14px; }
.nav-group { margin:1px 0; }
.nav-group .nav-parent { padding:10px 12px; }
.nav-group .nav-parent span,.platform-nav .nav-standalone > span { width:22px; opacity:.9; }
.nav-children { padding:2px 0 7px 42px; }
.platform-nav .nav-children button { min-height:32px; padding:6px 10px; font-size:12px; border-radius:8px; }
.platform-nav .nav-children button.active { background:rgba(184,31,41,.22); box-shadow:inset 3px 0 0 #d84850; }
.platform-nav .nav-standalone.active { background:rgba(184,31,41,.28); box-shadow:inset 3px 0 0 #d84850; }
.nav-divider { height:1px; margin:8px 8px; background:rgba(255,255,255,.09); }

.task-navigation { margin-bottom:16px; padding:6px; border:1px solid var(--line); border-radius:17px; background:#f0ebe6; }
.task-scope-tabs { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:6px; margin:0; }
.task-scope-tabs button { display:grid; gap:3px; min-width:0; border:0; border-radius:12px; padding:13px 16px; text-align:left; color:#726962; background:transparent; cursor:pointer; }
.task-scope-tabs button strong { font-size:15px; }.task-scope-tabs button small { color:#958b83; font-size:11px; font-weight:400; }
.task-scope-tabs button.active { color:#a91822; background:#fff; box-shadow:0 4px 13px rgba(44,35,29,.08),inset 0 -3px 0 #b82029; }
.task-scope-tabs button.active small { color:#8f6d6f; }
.task-state-tabs { display:flex; align-items:center; gap:6px; padding:8px 7px 2px; }
.task-state-tabs > span { margin-right:3px; color:#948a82; font-size:11px; }
.task-state-tabs button { border:0; border-radius:999px; padding:6px 11px; color:#756c65; background:transparent; cursor:pointer; font-size:12px; }
.task-state-tabs button.active { color:#a91822; background:#fff; font-weight:700; }

.split-workspace { grid-template-columns:minmax(0,560px) minmax(0,1fr); }
.split-workspace > *,.compact-form,.compact-form .field,.compact-form .form-grid,.compact-form .form-grid > * { min-width:0; }
.compact-form input,.compact-form select,.compact-form textarea { max-width:100%; min-width:0; }
.workflow-item .approval-chain { justify-content:flex-start; flex-wrap:wrap; padding:9px 11px; border-radius:10px; background:#f8f3ef; color:#756b63; font-size:12px; }
.approval-chain b { color:#342f2b; }.approval-chain em { margin-left:auto; color:#a91822; font-style:normal; }

.report-ai-panel { margin-bottom:20px; padding:24px; border-color:#e5c8ca; background:linear-gradient(135deg,#fff,#fff8f7); }
.ai-executive-summary { padding:16px 18px; border-radius:14px; color:#fff; background:linear-gradient(135deg,#8f1720,#c52d36); }
.ai-executive-summary p { margin:8px 0 0; line-height:1.75; }
.ai-store-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:14px; }
.ai-store-grid article { border:1px solid #eadfda; border-radius:14px; padding:15px; background:#fff; }
.ai-store-grid article > p { color:#665e58; line-height:1.65; }
.ai-store-grid b { display:block; margin-top:11px; font-size:13px; }
.ai-store-grid ul,.ai-management-actions ol { margin:6px 0 0; padding-left:20px; color:#665e58; line-height:1.65; }
.ai-management-actions { margin-top:14px; padding:15px 18px; border-radius:14px; background:#f7f1ed; }

.reporting-line-list { display:grid; gap:10px; }
.reporting-line-list article { display:grid; grid-template-columns:minmax(160px,.7fr) minmax(0,2fr); gap:14px; align-items:center; padding:14px; border:1px solid #e9e1da; border-radius:14px; }
.reporting-line-list header { display:grid; gap:4px; }.reporting-line-list header span { color:#8a817a; font-size:12px; }
.reporting-line-list article > div { display:grid; grid-template-columns:1fr 1fr auto; gap:10px; align-items:end; min-width:0; }
.reporting-line-list label { display:grid; gap:6px; color:#756b63; font-size:12px; min-width:0; }
.reporting-line-list select { width:100%; min-width:0; border:1px solid var(--line); border-radius:10px; padding:10px; background:#fff; }

#securityModal .modal-card { width:min(900px,100%); }
.account-roster { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; max-height:300px; overflow:auto; }
.account-roster article { display:grid; grid-template-columns:36px minmax(0,1fr) auto; gap:10px; align-items:center; padding:10px; border:1px solid #e8dfd8; border-radius:12px; }
.account-roster article.readonly { background:#f8f6f4; }
.account-avatar { width:36px; height:36px; display:grid; place-items:center; border-radius:10px; color:#fff; background:#a91822; font-weight:800; }
.account-roster .account-avatar,.account-roster article > div { grid-row:1/3; }
.account-roster article.readonly .account-avatar { background:#8b8580; }
.account-roster article div { min-width:0; display:grid; gap:2px; }
.account-roster small,.account-roster code { overflow:hidden; color:#8a817a; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.account-roster em { grid-column:3; grid-row:1; justify-self:end; border-radius:999px; padding:4px 7px; color:#a91822; background:#f9e9ea; font-size:10px; font-style:normal; }
.account-roster .action-btn { grid-column:3; grid-row:2; justify-self:end; }
.account-roster article.readonly em { color:#756f6a; background:#ebe8e5; }
.forced-password-notice { margin-bottom:15px; padding:13px 15px; border-radius:12px; color:#8f1720; background:#fff0f1; line-height:1.6; }
.forced-hidden { display:none !important; }
#securityModal.forced-password .modal-card { width:min(540px,100%); }

@media(max-width:900px){
  .split-workspace { grid-template-columns:1fr; }
  .ai-store-grid,.account-roster { grid-template-columns:1fr; }
  .reporting-line-list article { grid-template-columns:1fr; }
  .reporting-line-list article > div { grid-template-columns:1fr; }
  .task-scope-tabs { grid-template-columns:repeat(auto-fit,minmax(90px,1fr)); }
  .task-scope-tabs button { padding:11px 9px; text-align:center; }
  .task-scope-tabs button small { display:none; }
  .task-state-tabs { flex-wrap:wrap; }
  .people-archive-toolbar { align-items:stretch; flex-direction:column; }
  .people-archive-toolbar > div:last-child { min-width:0; }
}

@media(max-width:1180px){
  .split-workspace { grid-template-columns:1fr; }
}

@media(max-width:800px){
  .task-access-legend { display:none; }
  .task-access-row { grid-template-columns:1fr; }
  .task-access-toggle { justify-content:flex-start; }
  .task-access-scope { margin-left:51px; }
  .issue-store-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
/* 0.18.4: 汇报、报账和积分工作台补充样式 */
.dashboard-points-ranking{margin:0 0 20px}.dashboard-rank-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.dashboard-rank-list>span{display:grid;grid-template-columns:30px 1fr;gap:2px 8px;align-items:center;padding:12px;border:1px solid var(--line,#eadfd7);border-radius:14px;background:#fff}.dashboard-rank-list i{grid-row:1/3;font-style:normal;font-weight:800;color:#bd2029}.dashboard-rank-list small{color:#8a817b}.dashboard-rank-list>span>strong{text-align:right;grid-column:1/3;color:#bd2029}
.invoice-preview{display:block;max-width:220px;max-height:180px;margin-top:10px;border-radius:12px;border:1px solid #eadfd7;object-fit:cover}.expense-summary{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 12px;margin:8px 0;background:#fff7f3;border-radius:12px}.expense-summary>b{font-size:20px;color:#bd2029}.expense-summary span{flex:1;min-width:180px}.report-entry-panel,.report-summary-panel,.submitted-report-panel,.report-ai-action{margin-bottom:18px}.report-entry-panel .compact-form{max-width:920px}.report-entry-panel .btn{min-width:180px}.submitted-report-panel>summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;list-style:none}.submitted-report-panel>summary::-webkit-details-marker{display:none}.submitted-report-panel>summary span{display:grid;gap:4px}.submitted-report-panel>summary small{color:#8a817b;font-weight:400}.submitted-report-panel>summary em{font-style:normal;color:#bd2029}.submitted-report-panel[open]>summary{padding-bottom:16px;border-bottom:1px solid #eee}.submitted-report-panel .workflow-list{margin-top:14px;max-height:520px;overflow:auto}.report-ai-action{display:flex;align-items:center;justify-content:space-between;gap:20px}.report-ai-action p{margin:5px 0 0;color:#8a817b}
.approval-module-tabs{display:inline-flex;gap:6px;padding:6px;margin-bottom:18px;border-radius:14px;background:#eee9e4}.approval-module-tabs button{border:0;border-radius:10px;padding:11px 20px;background:transparent;color:#6f6762;font-weight:700;cursor:pointer}.approval-module-tabs button.active{background:#fff;color:#b91f29;box-shadow:0 3px 12px #3a1a1212}.approval-module.hidden{display:none}
@media(max-width:900px){.dashboard-rank-list{grid-template-columns:1fr 1fr}.report-ai-action{align-items:flex-start;flex-direction:column}}@media(max-width:560px){.dashboard-rank-list{grid-template-columns:1fr}}

/* Work reports: focused editor with scannable recent activity. */
.work-report-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:4px 0 18px;padding-bottom:16px;border-bottom:1px solid #e5ddd7}.work-report-head h3{margin:0 0 5px;font-size:22px}.work-report-head p{margin:0;color:#7e746d}.work-report-head>div:last-child{display:flex;gap:9px}.work-report-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr);gap:24px;align-items:start}.work-report-layout .report-entry-panel,.work-report-side>section{margin:0;border:1px solid #e5ddd7;border-radius:8px;background:#fff}.work-report-layout .report-entry-panel{padding:24px}.report-panel-title{display:flex;align-items:center;gap:12px;margin-bottom:20px}.report-panel-title>span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;color:#fff;background:#252321;font-size:12px;font-weight:800}.report-panel-title h3{margin:0;font-size:18px}.report-panel-title p{margin:3px 0 0;color:#887f78;font-size:12px}.work-report-side{display:grid;gap:18px}.work-report-side>section{padding:20px}.work-report-side .report-analysis{display:grid;gap:10px;max-height:300px;overflow:auto}.work-report-side .workflow-list{display:grid;gap:10px;max-height:480px;overflow:auto}.work-report-side .workflow-item{border:0;border-top:1px solid #eee6e1;border-radius:0;padding:14px 0;background:transparent}.work-report-side .workflow-item:first-child{border-top:0;padding-top:0}.work-report-layout textarea{resize:vertical}.work-report-layout .compact-form{max-width:none}.work-report-layout .compact-form>.btn{min-height:46px}
@media(max-width:980px){.work-report-layout{grid-template-columns:1fr}.work-report-side{grid-template-columns:1fr 1fr}}@media(max-width:700px){.work-report-head{align-items:flex-start;flex-direction:column}.work-report-head>div:last-child{width:100%;flex-wrap:wrap}.work-report-side{grid-template-columns:1fr}.work-report-layout .report-entry-panel,.work-report-side>section{padding:16px}.work-report-layout .form-grid.two{grid-template-columns:1fr}}

/* 0.19.0: 朋友圈素材与统一积分入口 */
.moments-upload-panel{margin-bottom:18px}.moments-points-tip{border-radius:999px;padding:7px 12px;color:#a91822;background:#fff0f1;font-size:12px;font-weight:700}.moments-form{display:grid;grid-template-columns:minmax(260px,.7fr) minmax(320px,1fr);gap:20px}.moments-file-box{position:relative;display:grid;place-items:center;min-height:300px;overflow:hidden;border:2px dashed #decfc7;border-radius:18px;background:#faf7f4;cursor:pointer}.moments-file-box input{position:absolute;width:1px;height:1px;opacity:0}.moments-file-box img{width:100%;height:100%;max-height:420px;object-fit:contain;background:#191919}.moments-file-box>span{display:grid;gap:6px;text-align:center;color:#847a73}.moments-file-box>span b{color:#a91822;font-size:19px}.moments-file-box>span small{font-size:12px}.moments-form-fields{display:flex;flex-direction:column;gap:14px}.moments-form-fields textarea{min-height:160px}.moments-upload-progress{position:relative;height:38px;overflow:hidden;border-radius:12px;background:#eee7e2}.moments-upload-progress i{position:absolute;inset:0 auto 0 0;width:0;background:linear-gradient(90deg,#a91822,#dc555c);transition:width .2s}.moments-upload-progress strong{position:relative;z-index:1;display:grid;height:100%;place-items:center;color:#2f2925;font-size:12px}.moments-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.moment-card{overflow:hidden;border:1px solid #e9dfd8;border-radius:16px;background:#fff}.moment-card>button{display:block;width:100%;height:220px;padding:0;border:0;background:#1b1918;cursor:zoom-in}.moment-card img{width:100%;height:100%;object-fit:cover}.moment-card>div{display:grid;gap:5px;padding:13px}.moment-card strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.moment-card span,.moment-card small{color:#8b817a;font-size:12px}.moment-card small{color:#b0212a}.moments-review-list{display:grid;gap:12px}.moment-review-item{display:grid;grid-template-columns:150px minmax(0,1fr);gap:16px;padding:13px;border:1px solid #eadfd7;border-radius:15px;background:#fff}.moment-review-photo{width:150px;height:120px;padding:0;overflow:hidden;border:0;border-radius:11px;background:#181818;cursor:zoom-in}.moment-review-photo img{width:100%;height:100%;object-fit:cover}.moment-review-item header{display:flex;align-items:center;justify-content:space-between;gap:10px}.moment-review-item p{margin:8px 0;color:#655d57;line-height:1.6}.moment-review-item ul{margin:5px 0 8px;padding-left:18px;color:#8f5d44}.moment-review-item small{color:#8b817a}.moment-review-actions{display:flex;gap:8px;margin-top:12px}.moment-review-actions .btn{padding:8px 13px}
.moments-library-filter{display:flex;align-items:center;gap:8px;color:#817770;font-size:13px}.moments-library-filter select,.moment-review-actions select{min-width:112px;padding:9px 34px 9px 11px;border:1px solid #ded3cc;border-radius:10px;background:#fff;color:#342d29}.moment-card small b{display:inline-block;margin-right:7px;padding:3px 7px;border-radius:999px;background:#fff0f1;color:#a91822;font-size:11px}.moment-review-actions{align-items:center;flex-wrap:wrap}
.moments-category-list{display:grid;gap:18px}.moments-category-disclosure{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.moments-category-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:64px;padding:10px 13px;border:1px solid #e7dcd5;border-radius:13px;color:#3a322e;background:#faf7f4;cursor:pointer;text-align:left;transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease}.moments-category-toggle span{display:grid;gap:2px}.moments-category-toggle strong{font-size:15px}.moments-category-toggle small{color:#887e77;font-size:11px}.moments-category-toggle i{width:9px;height:9px;border-right:2px solid #8c817a;border-bottom:2px solid #8c817a;transform:rotate(45deg);transition:transform .18s ease}.moments-category-toggle:hover{border-color:#d8b9b7;background:#fff4f3}.moments-category-toggle.active{border-color:#bd2029;background:#fff0f1;box-shadow:0 4px 14px rgba(169,24,34,.1)}.moments-category-toggle.active i{border-color:#b51f29;transform:rotate(225deg)}.moments-category-toggle:focus-visible{outline:3px solid rgba(169,24,34,.24);outline-offset:2px}.moments-category-hint{padding:22px;border:1px dashed #dfd2ca;border-radius:14px;color:#7d736d;background:#fcfaf8;text-align:center}.moments-category-section{display:grid;gap:12px}.moments-category-section>header{display:flex;align-items:center;justify-content:space-between;padding-bottom:10px;border-bottom:1px solid #eee4de}.moments-category-section h4{margin:0;font-size:20px}.moments-category-section>header span{padding:5px 10px;border-radius:999px;background:#fff0f1;color:#b51f29;font-size:12px;font-weight:700}.moment-card-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:8px;margin-top:7px}.moment-download-button,.moment-caption-button,.moment-delete-button{min-height:44px;padding:9px 12px;border:1px solid #e2d7d0;border-radius:10px;font-weight:700;cursor:pointer}.moment-download-button{background:#faf7f4;color:#a91822}.moment-download-button:hover{border-color:#c72e37;background:#fff0f1}.moment-caption-button{background:#fff;color:#7a4742}.moment-caption-button:hover{border-color:#d8b9b7;background:#fff7f5;color:#a91822}.moment-delete-button{background:#efebe8;color:#6f625b}.moment-delete-button:hover{border-color:#d9c6c5;background:#e7dedd;color:#a91822}.moment-download-button:focus-visible,.moment-caption-button:focus-visible,.moment-delete-button:focus-visible{outline:3px solid rgba(169,24,34,.24);outline-offset:2px}.moment-download-button:disabled,.moment-caption-button:disabled,.moment-delete-button:disabled{cursor:wait;opacity:.65}.moment-review-actions .secondary{background:#fff4e6;color:#9b5a00;border-color:#f3cf96}.moment-caption-modal-card{max-width:620px}.moment-caption-modal-card .field>span{display:flex;justify-content:space-between;gap:12px}.moment-caption-modal-card .field>span small{color:#8b817a;font-weight:500}.moment-caption-help{margin:0;color:#7d736d;font-size:13px;line-height:1.6}
.batch-account-box{margin-bottom:18px;padding:14px;border:1px solid #e6dad2;border-radius:14px;background:#faf7f4}.batch-account-box>summary{cursor:pointer;color:#b11f29;font-weight:800}.batch-account-box[open]>summary{margin-bottom:10px}.batch-account-box textarea{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;line-height:1.65}
@media(max-width:1100px){.moments-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.moments-category-disclosure{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.moments-form{grid-template-columns:1fr}.moments-file-box{min-height:240px}.moments-grid{grid-template-columns:1fr}.moments-category-disclosure{grid-template-columns:repeat(2,minmax(0,1fr))}.moment-review-item{grid-template-columns:96px minmax(0,1fr)}.moment-review-photo{width:96px;height:96px}.moments-review-actions{flex-wrap:wrap}}@media(max-width:420px){.moments-category-disclosure{grid-template-columns:1fr}}

/* v0.20: scalable organization flow and moments download metadata */
.organization-flow{gap:18px}
.org-flow-legend{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}
.org-flow-legend span{padding:7px 11px;border-radius:999px;color:#756b63;background:#f7f2ee;font-size:12px}
.org-area-list{display:grid;gap:18px}
.org-area-flow{overflow:hidden;border:1px solid #e6dcd5;border-left:5px solid #507b94;border-radius:18px;background:#fff}
.org-area-flow.admin{border-left-color:#9a6b3e}.org-area-flow.main-store{border-left-color:#b82029}
.org-area-flow>header{display:grid;grid-template-columns:minmax(180px,1fr) auto minmax(210px,.75fr);gap:14px;align-items:center;padding:15px 18px;border-bottom:1px solid #eee5df;background:#fdfaf8}
.org-area-flow>header>div{display:grid;gap:3px}.org-area-flow>header>div>strong{font-size:20px}.org-area-flow>header>div>small{color:#8a817a}
.org-area-flow>header>span{color:#a91822;font-size:12px;font-weight:800}
.org-area-flow>header .org-person{background:#fff}
.org-store-flow-list{display:grid;gap:12px;padding:14px}
.org-store-flow{overflow:hidden;border:1px solid #eee4dd;border-radius:14px;background:#fffdfa}
.org-store-flow>header{display:flex;justify-content:space-between;align-items:center;padding:11px 14px;background:#f8f3ef}
.org-store-flow>header small{color:#8d837c}
.org-position-flow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px}
.org-department-lane{min-width:0;border:1px solid #e9ddd5;border-radius:13px;background:#fff}
.org-department-lane>header{display:flex;justify-content:space-between;align-items:center;padding:9px 11px;color:#6f655f;background:#fcf8f5}
.org-department-lane>header small{color:#9a8f88}
.org-department-leader{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:58px;padding:10px 12px;border:0;border-top:1px solid #eee4dd;color:#2e2926;background:#fff;cursor:pointer;text-align:left}
.org-department-leader span{display:grid;gap:3px}.org-department-leader small{color:#b1202a}
.org-department-leader i{width:9px;height:9px;margin-right:3px;border-right:2px solid #8c817a;border-bottom:2px solid #8c817a;transform:rotate(45deg);transition:transform .18s ease}
.org-department-lane.open .org-department-leader i{transform:rotate(225deg)}
.org-department-leader:hover{background:#fff6f3}.org-department-leader:focus-visible{outline:3px solid rgba(185,31,41,.25);outline-offset:-3px}
.org-department-lane .org-department-members{padding:10px;background:#fbf8f5}
.org-admin-members{padding:12px 18px}.org-admin-members>summary{display:flex;justify-content:space-between;cursor:pointer;color:#756b63;font-weight:700}.org-admin-members>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:12px}
.moment-card>div>span{min-height:18px}.moment-download-button:disabled{cursor:wait;opacity:.65}
@media(max-width:900px){.org-area-flow>header{grid-template-columns:1fr auto}.org-area-flow>header .org-person{grid-column:1/-1}.org-admin-members>div{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.org-position-flow{grid-template-columns:1fr}.org-area-flow>header{grid-template-columns:1fr}.org-area-flow>header>span{justify-self:start}.org-admin-members>div{grid-template-columns:1fr}}

/* v0.32: 岗位级别与晋升独立工作区 */
.promotion-workspace{display:grid;gap:18px}
.promotion-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:18px}
.promotion-toolbar>div:first-child{display:grid;gap:5px}
.promotion-toolbar>div:first-child strong{font-size:20px}
.promotion-toolbar>div:first-child small{color:#887e77;line-height:1.6}
.promotion-toolbar>div:last-child{display:flex;gap:9px;min-width:min(560px,50%)}
.promotion-toolbar input,.promotion-toolbar select{min-width:0;padding:11px 13px;border:1px solid #e2d9d2;border-radius:11px;background:#fff;color:#312b28}
.promotion-toolbar input{flex:1}
.promotion-table{overflow-x:auto;border:1px solid #e9dfd8;border-radius:15px;background:#fff}
.promotion-row{display:grid;grid-template-columns:1.05fr .95fr .65fr .55fr 1.45fr .68fr;gap:12px;align-items:center;min-width:1050px;padding:14px 15px;border-bottom:1px solid #eee6e1}
.promotion-row:last-child{border-bottom:0}
.promotion-row>span{min-width:0}
.promotion-row>span:not(.archive-person){display:grid;gap:4px}
.promotion-row small{color:#8b817a;font-size:12px}
.promotion-head{color:#887e77;background:#faf7f5;font-size:12px;font-weight:700}
.promotion-points{color:#bd2029;font-size:22px}
.promotion-condition{color:#655c56;line-height:1.55}
.promotion-editor-dialog{width:min(680px,calc(100vw - 28px))}
.promotion-editor-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px;padding:14px;border:1px solid #eadfd8;border-radius:13px;background:#faf7f4}
.promotion-editor-summary span{display:grid;gap:3px}
.promotion-editor-summary small{color:#8b817a}
@media(max-width:900px){.promotion-toolbar{align-items:stretch;flex-direction:column}.promotion-toolbar>div:last-child{min-width:0}.promotion-editor-summary{grid-template-columns:1fr}}
@media(max-width:560px){.promotion-toolbar>div:last-child{flex-direction:column}}
.profile-document-state{display:block;margin-top:6px;color:#857b74;font-size:11px;line-height:1.4}.profile-document-state.valid{color:#28795c}.profile-document-state.warning{color:#a4620c}.profile-document-state.expired{color:#b91f29}.profile-document-state.missing{color:#766c65}
.person-profile-timeline{display:grid;max-height:320px;overflow:auto}.person-profile-timeline article{display:grid;grid-template-columns:82px 14px minmax(0,1fr);gap:11px;align-items:start;position:relative;padding:10px 0}.person-profile-timeline article:not(:last-child)::after{content:"";position:absolute;left:88px;top:28px;bottom:-10px;width:1px;background:#dfd7d2}.person-profile-timeline time{padding-top:2px;color:#8a817a;font-size:12px}.person-profile-timeline i{position:relative;z-index:1;width:10px;height:10px;margin-top:4px;border:2px solid #bd2029;border-radius:50%;background:#fff}.person-profile-timeline article>div{display:grid;gap:4px}.person-profile-timeline article span{color:#817770;font-size:12px}
/* Store operations pages follow the approved compact formal-demo rhythm. */
.store-page-title{align-items:flex-end}.store-page-title>div>small{display:block;margin-bottom:10px;color:#be1e2d;font-weight:800;letter-spacing:.12em}.store-overview-metrics{margin-bottom:24px}.store-overview-metrics .metric-card{min-height:136px}.compact-tabs{display:flex;gap:8px;flex-wrap:wrap}.compact-tabs button{border:1px solid var(--line,#ded9d2);background:#fff;padding:9px 16px;border-radius:7px;color:#6e6862}.compact-tabs button.active{background:#272522;color:#fff;border-color:#272522}.store-overview-table{border:1px solid var(--line,#ded9d2);border-radius:10px;overflow:hidden}.store-overview-row{display:grid;grid-template-columns:1.4fr .75fr .7fr 1fr .7fr 1.1fr;align-items:center;width:100%;min-height:78px;padding:0 24px;border:0;border-bottom:1px solid var(--line,#e5e0da);background:#fff;text-align:left;color:#211f1d}.store-overview-row:last-child{border-bottom:0}.store-overview-row:not(.store-overview-head):hover{background:#faf8f5}.store-overview-row span{display:flex;flex-direction:column;gap:3px}.store-overview-row small{color:#918a82}.store-overview-row i{display:block;width:90px;height:5px;border-radius:9px;background:#eeeae5;overflow:hidden}.store-overview-row i em{display:block;height:100%;background:#2d8066}.store-overview-head{min-height:48px;background:#f8f6f3;color:#7e7770;font-weight:700;pointer-events:none}.inspection-type-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:24px}.inspection-type-cards button{display:grid;grid-template-columns:1fr auto;gap:8px 12px;min-height:134px;padding:22px;border:1px solid var(--line,#ded9d2);border-radius:10px;background:#fff;text-align:left;color:#1f1d1b}.inspection-type-cards button:hover,.inspection-type-cards button.active{border-color:#be1e2d;box-shadow:0 8px 24px rgba(95,28,31,.08)}.inspection-type-cards button.active{box-shadow:inset 4px 0 #be1e2d}.inspection-type-cards span{font-size:20px;font-weight:800}.inspection-type-cards b{font-size:28px;color:#be1e2d}.inspection-type-cards small{grid-column:1/-1;color:#7e7770;line-height:1.55}.inspection-ledger-filters{display:flex;gap:10px;align-items:center}.inspection-ledger-filters input{min-width:260px}.inspection-ledger-filters input,.inspection-ledger-filters select,.inspection-ledger-filters button{height:42px;border:1px solid var(--line,#ded9d2);border-radius:7px;background:#fff;padding:0 14px}.inspection-ledger-table td small{display:block;color:#8c857e;margin-top:4px}.inspection-type-pill{display:inline-flex;padding:6px 10px;border-radius:6px;background:#f4f0eb;font-weight:700}.inspection-type-pill.supervision{color:#b21f2d;background:#fbeaec}.inspection-type-pill.hr{color:#176a7b;background:#eaf5f7}.inspection-type-pill.cross{color:#936513;background:#fbf2df}.inspection-type-pill.mystery{color:#594889;background:#f0ecfa}.inspection-ledger-score{font-size:18px;color:#278067}.inspection-ledger-score.warning{color:#bd6419}@media(max-width:1100px){.inspection-type-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.store-overview-row{grid-template-columns:1.4fr .8fr .7fr .8fr}.store-overview-row span:nth-child(4),.store-overview-row span:nth-child(5){display:none}.inspection-ledger-filters{flex-wrap:wrap}.inspection-ledger-filters input{min-width:180px}}@media(max-width:720px){.inspection-type-cards{grid-template-columns:1fr}.store-overview-row{grid-template-columns:1.6fr .8fr 1fr;padding:0 14px}.store-overview-row span:nth-child(2),.store-overview-row span:nth-child(4),.store-overview-row span:nth-child(5){display:none}}
/* Rectification dashboard: one-row filters and five compact metrics */
.issue-formal-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.issue-formal-filters {
  display: grid !important;
  grid-template-columns: 112px minmax(180px, 1.25fr) minmax(170px, 1fr) 132px 152px;
  gap: 12px;
  align-items: center;
}

.issue-formal-filters > * {
  width: 100%;
  min-width: 0;
}

@media (max-width: 1500px) {
  .issue-formal-filters {
    grid-template-columns: 104px minmax(156px, 1.2fr) minmax(148px, 1fr) 120px 140px;
  }
}

@media (max-width: 900px) {
  .issue-formal-metrics,
  .issue-formal-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.inspection-ledger-table .inspection-store-group td { padding:0; border-top:10px solid #f4f1ed; background:#fff; }
.inspection-ledger-table .inspection-store-group button { display:flex; align-items:center; justify-content:space-between; gap:16px; width:100%; min-height:64px; padding:10px 16px; border:0; background:#f7f5f2; text-align:left; color:#2f2b27; cursor:pointer; }
.inspection-ledger-table .inspection-store-group button span { display:grid; gap:4px; }
.inspection-ledger-table .inspection-store-group button strong { font-size:15px; }
.inspection-ledger-table .inspection-store-group button small { margin:0; color:#7e7770; }
.inspection-ledger-table .inspection-store-group button > b { color:#8a8179; font-size:12px; }
.inspection-ledger-table .inspection-store-group.is-current-store button { border-left:5px solid #c51c2b; color:#a81824; background:#fff0f1; }
.inspection-ledger-table .inspection-store-record.is-current-store { background:#fffafa; }
.inspection-ledger-table .inspection-store-record.is-current-store td:first-child { border-left:5px solid rgba(197,28,43,.35); }

.org-add-person-action {
  white-space: nowrap;
}

.person-create-dialog {
  width: min(860px, calc(100vw - 32px));
  max-height: min(880px, calc(100vh - 32px));
}

.person-create-content {
  display: grid;
  gap: 20px;
  overflow-y: auto;
}

.person-create-intro {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border-left: 4px solid #c91b2d;
  background: #fff4f5;
}

.person-create-intro span {
  color: #746c66;
  line-height: 1.6;
}

.person-create-batch {
  margin-top: 4px;
  border-top: 1px solid #e4ddd5;
  padding-top: 18px;
}

.employee-growth-ledger-grid,
.person-profile-activity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 18px;
  align-items: start;
}

.person-profile-activity-grid > section {
  min-width: 0;
  border: 1px solid #e4ddd4;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.person-profile-activity-grid > section.point-entry {
  background: #fffaf7;
}

.person-profile-activity-grid > section > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid #ece5dd;
}

.person-profile-activity-grid > section > header div {
  display: grid;
  gap: 4px;
}

.person-profile-activity-grid > section > header small {
  color: #817870;
  line-height: 1.45;
}

.person-profile-activity-grid > section > header > b {
  flex: 0 0 auto;
  color: #b31928;
  font-size: 13px;
}

.person-profile-activity-grid .person-profile-timeline {
  max-height: 410px;
  margin: 0;
  padding: 8px 18px 14px;
}

.point-entry-card {
  background: #fffaf7;
}

.promotion-editor-dialog .form-note strong {
  color: #b31928;
}

@media (max-width: 900px) {
  .employee-growth-ledger-grid,
  .person-profile-activity-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .org-heading-actions {
    width: 100%;
    align-items: stretch;
  }

  .org-add-person-action {
    width: 100%;
  }

  .person-create-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }

  .person-profile-activity-grid > section > header {
    padding: 14px;
  }

  .person-profile-activity-grid .person-profile-timeline {
    padding-inline: 12px;
  }
}
