@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --bg: #f6f7fa;
  --surface: #ffffff;
  --surface-subtle: #f9fafc;
  --surface-hover: #f3f5f9;
  --ink: #171a21;
  --ink-2: #333846;
  --muted: #747b8c;
  --muted-2: #a0a6b4;
  --line: #e7e9ef;
  --line-strong: #d9dde6;
  --primary: #da3222;
  --primary-dark: #b9271b;
  --primary-soft: #fff1ef;
  --primary-line: #f6d4cf;
  --login-story-bg: #f3eee8;
  --success: #278866;
  --success-soft: #edf8f3;
  --warning: #a76b18;
  --warning-soft: #fdf7e9;
  --danger: #bd4b56;
  --danger-soft: #fdf0f1;
  --shadow-xs: 0 1px 2px rgba(24, 28, 40, 0.04);
  --shadow-sm: 0 8px 24px rgba(24, 28, 40, 0.06), 0 1px 3px rgba(24, 28, 40, 0.04);
  --shadow-md: 0 20px 50px rgba(24, 28, 40, 0.11), 0 4px 12px rgba(24, 28, 40, 0.05);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --sidebar: 248px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--bg); font-family: "DM Sans", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }

button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(218, 50, 34, 0.18); outline-offset: 2px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 18px; font-weight: 700; letter-spacing: -.35px; }
.brand-logo { display: block; width: 154px; height: auto; user-select: none; -webkit-user-drag: none; }
.brand-light .brand-logo { width: 176px; padding: 0; background: transparent; box-shadow: none; }

/* Login */
.login-view { position: relative; display: grid; min-height: 100vh; place-items: center; overflow: hidden; background: radial-gradient(circle at 12% 15%, rgba(218,50,34,.08), transparent 24%), linear-gradient(135deg, #f7f3ef 0%, #eef1f4 56%, #f7f4f1 100%); }
.login-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(420px, 1.05fr) minmax(390px, .95fr); width: min(1080px, calc(100% - 48px)); min-height: 660px; overflow: hidden; border: 1px solid rgba(255,255,255,.78); border-radius: 28px; background: #fff; box-shadow: 0 32px 90px rgba(79, 66, 58, .14), 0 4px 16px rgba(79, 66, 58, .06); animation: rise-in .6s cubic-bezier(.2,.8,.2,1) both; }
.login-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 48px; overflow: hidden; color: #302a27; background: var(--login-story-bg); }
.login-story::before { content: ""; position: absolute; inset: 0; opacity: .62; background-image: linear-gradient(rgba(89, 66, 57, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(89, 66, 57, .055) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(135deg, rgba(0,0,0,.8), transparent 70%); }
.login-story::after { content: ""; position: absolute; width: 540px; height: 540px; right: -280px; bottom: -250px; border-radius: 50%; background: radial-gradient(circle at center, rgba(218,50,34,.18) 0 28%, rgba(218,50,34,.08) 29% 48%, transparent 49%); }
.login-story > * { position: relative; z-index: 1; }
.story-copy { max-width: 470px; margin: auto 0; }
.eyebrow { display: inline-block; color: var(--primary); font-size: 13px; line-height: 1; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow.inverse { color: var(--primary); }
.story-copy h1 { margin: 20px 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.17; letter-spacing: -1.8px; }
.story-copy p { max-width: 430px; margin: 0; color: #766b65; font-size: 16px; line-height: 1.9; }
.login-card { display: flex; flex-direction: column; justify-content: center; padding: clamp(44px, 7vw, 78px); background: #fff; }
.mobile-brand { display: none; margin-bottom: 36px; }
.login-heading { margin-bottom: 30px; }
.login-kicker { color: var(--primary); font-size: 13px; font-weight: 700; }
.login-heading h2 { margin: 9px 0 8px; font-size: 30px; line-height: 1.25; letter-spacing: -.8px; }
.login-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.field-label, .form-grid label, .review-form label { display: grid; gap: 9px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.login-card > .field-label { margin-bottom: 18px; }
.input-shell { position: relative; display: block; }
.input-shell svg { position: absolute; z-index: 1; left: 14px; top: 50%; width: 18px; color: var(--muted-2); transform: translateY(-50%); }
.input-shell input { padding-left: 43px; }
input, textarea, select { width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); outline: none; color: var(--ink); background: #fff; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
input, select { min-height: 46px; padding: 0 13px; }
select[name="department"]:disabled { -webkit-appearance: none; appearance: none; background-image: none; }
textarea { min-height: 112px; padding: 12px 13px; line-height: 1.65; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:hover, textarea:hover, select:hover { border-color: #c5cad5; }
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(218,50,34,.1); }
input[readonly], select[name="department"]:disabled { color: #555b68; background: #f7f8fa; }
.form-error { min-height: 18px; margin: -4px 0 8px; color: var(--danger); font-size: 13px; }
.primary-button, .secondary-button, .text-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease; }
.primary-button { border: 1px solid var(--primary); color: #fff; background: var(--primary); box-shadow: 0 6px 14px rgba(218,50,34,.2); }
.primary-button:hover { border-color: var(--primary-dark); background: var(--primary-dark); box-shadow: 0 8px 20px rgba(185,39,27,.26); transform: translateY(-1px); }
.primary-button:active, .secondary-button:active { transform: translateY(1px); }
.primary-button:disabled, .secondary-button:disabled { cursor: wait; opacity: .68; transform: none; }
.login-primary { min-height: 48px; }
.login-primary svg { width: 17px; }
.secondary-button { border: 1px solid var(--line-strong); color: var(--ink-2); background: #fff; box-shadow: var(--shadow-xs); }
.secondary-button:hover { border-color: #c6cad4; background: var(--surface-subtle); }
.wecom-button { min-height: 46px; }
.wecom-dot { width: 16px; height: 13px; border-radius: 50%; background: #2da66f; box-shadow: 7px 5px 0 -3px #68c994; }
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted-2); font-size: 12px; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.login-hint { margin: 20px 0 0; color: var(--muted-2); font-size: 12px; text-align: center; }
.login-ambient { position: absolute; border-radius: 50%; filter: blur(1px); }
.ambient-one { width: 340px; height: 340px; left: -100px; top: -120px; background: rgba(218,50,34,.08); }
.ambient-two { width: 260px; height: 260px; right: -70px; bottom: -100px; background: rgba(181,137,105,.1); }

/* Product shell */
.app-view { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.product-sidebar { position: sticky; z-index: 10; top: 0; display: flex; height: 100vh; flex-direction: column; padding: 106px 16px 18px; border-right: 1px solid var(--line); background: rgba(252,252,253,.96); backdrop-filter: blur(16px); }
.sidebar-brand { position: fixed; z-index: 11; top: 25px; left: 26px; padding: 0; }
.nav-label { margin: 8px 12px; color: var(--muted-2); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tabs { display: grid; gap: 4px; }
.tab, .utility-button { display: flex; width: 100%; min-height: 44px; align-items: center; gap: 11px; padding: 0 12px; border: 0; border-radius: 10px; color: #616878; background: transparent; font-size: 14px; font-weight: 600; text-align: left; transition: color .18s ease, background .18s ease, transform .18s ease; }
.tab svg, .utility-button svg { width: 18px; height: 18px; }
.tab:hover, .utility-button:hover { color: var(--ink); background: var(--surface-hover); }
.tab.active { color: var(--primary-dark); background: var(--primary-soft); }
.tab.active svg { stroke-width: 2.1; }
.nav-badge { min-width: 20px; height: 20px; display: grid; margin-left: auto; place-items: center; border-radius: 999px; color: #fff; background: var(--primary); font-size: 11px; }
.sidebar-bottom { display: grid; gap: 12px; margin-top: auto; }
.utility-button { border-top: 1px solid var(--line); border-radius: 0; color: var(--muted); }
.user-card { display: flex; align-items: center; gap: 10px; padding: 11px 8px 11px 10px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow-xs); }
.avatar { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 10px; color: var(--primary-dark); background: var(--primary-soft); font-size: 14px; font-weight: 700; }
.user-copy { display: grid; min-width: 0; flex: 1; gap: 2px; }
.user-copy strong, .user-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-copy strong { color: var(--ink-2); font-size: 13px; }
.user-copy small { color: var(--muted); font-size: 11px; }
.icon-button { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 10px; color: var(--muted); background: transparent; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.icon-button:hover { color: var(--ink); border-color: var(--line); background: var(--surface-hover); }
.icon-button svg { width: 18px; height: 18px; }
.workspace { min-width: 0; }
.topbar { display: flex; min-height: 126px; align-items: center; justify-content: space-between; gap: 24px; padding: 22px clamp(24px,4vw,52px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.78); backdrop-filter: blur(14px); }
.breadcrumb { display: flex; gap: 8px; align-items: center; margin: 0 0 10px; color: var(--muted-2); font-size: 12px; }
.breadcrumb i { font-style: normal; }
.breadcrumb strong { color: var(--muted); font-weight: 600; }
.topbar h1 { margin: 0; color: var(--ink); font-size: clamp(24px,3vw,31px); line-height: 1.2; letter-spacing: -.8px; }
.topbar-title > p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.date-chip, .read-chip { display: inline-flex; height: 36px; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #fff; font-size: 12px; }
.date-chip svg, .read-chip svg { width: 15px; }
.notification-button { position: relative; border-color: var(--line); background: #fff; }
.notification-button i { position: absolute; width: 6px; height: 6px; top: 7px; right: 7px; border: 1.5px solid #fff; border-radius: 50%; background: var(--danger); }
.content-area { width: min(1380px, 100%); margin: 0 auto; padding: 30px clamp(20px,4vw,52px) 56px; }
.panel { animation: page-in .32s ease both; }

/* Employee form */
.hero-card { position: relative; display: flex; justify-content: space-between; gap: 28px; margin-bottom: 22px; padding: 30px 34px; overflow: hidden; border: 1px solid var(--primary-line); border-radius: var(--radius-lg); background: linear-gradient(135deg, #fffafa 0%, #fff2f0 100%); }
.hero-card::after { content: ""; position: absolute; width: 220px; height: 220px; right: -60px; top: -110px; border: 38px solid rgba(218,50,34,.055); border-radius: 50%; }
.hero-card > * { position: relative; z-index: 1; }
.hero-card h2 { max-width: 680px; margin: 10px 0 9px; font-size: clamp(21px,2.5vw,28px); line-height: 1.4; letter-spacing: -.5px; }
.hero-card p { margin: 0; color: var(--muted); font-size: 14px; }
.hero-meta { display: flex; align-self: center; }
.hero-meta span { display: grid; min-width: 94px; gap: 4px; padding: 2px 20px; border-left: 1px solid var(--primary-line); }
.hero-meta strong { color: var(--primary-dark); font-size: 24px; line-height: 1; }
.hero-meta small { color: var(--muted); font-size: 11px; }
.request-form { display: grid; gap: 14px; }
.form-section, .uploaded-section, .panel-heading, .dashboard-intro { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-xs); }
.form-section { position: relative; padding: 26px 30px 28px 74px; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.form-section:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.section-index { position: absolute; left: 24px; top: 28px; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; color: var(--primary); background: var(--primary-soft); font-size: 11px; font-weight: 700; }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.section-heading h3, .subsection-heading h2, .panel-heading h2, .dashboard-intro h2 { margin: 0; color: var(--ink); font-size: 20px; letter-spacing: -.25px; }
.section-heading p, .subsection-heading p, .panel-heading p, .dashboard-intro p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.completion-chip, .tip-chip, .summary-pill, .live-chip { display: inline-flex; min-height: 27px; align-items: center; flex: 0 0 auto; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.completion-chip { color: var(--success); background: var(--success-soft); }
.tip-chip { color: var(--primary-dark); background: var(--primary-soft); }
.form-grid, .review-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.compact-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.form-grid label > span i, .review-form label > span i { color: var(--danger); font-style: normal; }
.form-grid label > small { margin-top: -2px; color: var(--muted-2); font-size: 11px; font-weight: 400; }
.wide { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.text-button { border: 1px solid transparent; color: var(--muted); background: transparent; }
.text-button:hover { color: var(--ink); background: var(--surface-hover); }
.form-actions .primary-button svg { width: 16px; }
.uploaded-section { margin-top: 28px; padding: 28px 30px; }
#feedbackPanel > .uploaded-section { margin-top: 0; }
.subsection-heading, .panel-heading, .dashboard-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 18px; padding: 0 0 20px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.subsection-heading .eyebrow, .panel-heading .eyebrow, .dashboard-intro .eyebrow { margin-bottom: 9px; }
.subsection-heading p { max-width: 470px; text-align: right; }

/* Cards and review */
.upload-list, .review-list { display: grid; gap: 12px; }
.upload-card, .review-card { position: relative; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.upload-card:hover, .review-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.upload-card::before, .review-card::before { content: ""; position: absolute; left: -1px; top: 20px; bottom: 20px; width: 3px; border-radius: 0 4px 4px 0; background: var(--warning); }
.upload-card.approved::before, .review-card.approved::before { background: var(--success); }
.upload-card.rejected::before, .review-card.rejected::before { background: var(--danger); }
.review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.review-head h3 { margin: 0; color: var(--ink); font-size: 17px; line-height: 1.5; }
.detail-block { margin: 5px 0 14px; color: var(--ink-2); font-size: 14px; line-height: 1.75; }
.review-head .detail-block { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.review-demand-summary { display: grid; grid-template-columns: minmax(180px,.7fr) minmax(0,1.3fr); gap: 10px; margin: 0 0 14px; padding: 12px; border: 1px solid var(--primary-line); border-radius: 12px; background: linear-gradient(135deg,#fffafa 0%,var(--primary-soft) 100%); }
.review-demand-summary > div { display: grid; align-content: center; gap: 6px; min-width: 0; padding: 10px 12px; border-radius: 9px; background: rgba(255,255,255,.78); }
.review-demand-label { color: var(--primary-dark); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.review-demand-summary strong { color: var(--ink-2); font-size: 18px; line-height: 1.55; }
.review-demand-summary .review-subject strong { color: var(--ink); letter-spacing: -.15px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; border-radius: 999px; color: var(--warning); background: var(--warning-soft); font-size: 12px; font-weight: 700; white-space: nowrap; }
.approved .status-pill { color: var(--success); background: var(--success-soft); }
.rejected .status-pill { color: var(--danger); background: var(--danger-soft); }
.status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.meta-grid, .feedback-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; margin: 0 0 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--line); }
.meta-grid div, .feedback-grid div { padding: 13px; background: var(--surface-subtle); }
.meta-grid dt, .feedback-grid dt { color: var(--muted); font-size: 12px; }
.meta-grid dd, .feedback-grid dd { margin: 5px 0 0; color: var(--ink-2); font-size: 14px; font-weight: 600; line-height: 1.6; }
.feedback-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.feedback-block { margin: 0; padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.65; }
.pending-feedback { color: var(--warning); background: var(--warning-soft); }
.rejected-feedback { color: var(--danger); background: var(--danger-soft); }
.upload-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.review-form { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 18px; padding: 18px; border-radius: 12px; background: var(--surface-subtle); }
.review-actions { display: flex; grid-column: 1/-1; justify-content: flex-end; }
.review-submit-button { min-width: 156px; }
.review-submit-button svg { width: 16px; height: 16px; }
.review-submit-button:disabled { cursor: default; opacity: 1; border-color: var(--primary); color: #fff; background: var(--primary); box-shadow: 0 6px 14px rgba(218,50,34,.2); transform: none; }
.review-submit-button:disabled:hover { border-color: var(--primary); background: var(--primary); box-shadow: 0 6px 14px rgba(218,50,34,.2); transform: none; }
.summary-pill { color: var(--warning); background: var(--warning-soft); }
.empty-state { display: grid; min-height: 190px; place-items: center; padding: 32px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); background: var(--surface-subtle); text-align: center; line-height: 1.8; }

/* Dashboard */
.dashboard-intro { align-items: center; margin-bottom: 18px; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.dashboard-intro h2 { font-size: 22px; }
.dashboard-intro p { font-size: 15px; }
.dashboard-intro .eyebrow { font-size: 14px; }
.dashboard-intro .live-chip { font-size: 13px; }
.live-chip { gap: 7px; color: var(--success); background: var(--success-soft); }
.live-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(39,136,102,.1); }
.dashboard-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 14px; }
.dashboard-card { min-height: 190px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-xs); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.dashboard-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.dashboard-card h3 { margin: 0 0 18px; color: var(--ink-2); font-size: 17px; font-weight: 600; }
.metric-card { position: relative; grid-column: span 2; display: flex; min-height: 150px; flex-direction: column; justify-content: space-between; overflow: hidden; }
.metric-card::after { content: ""; position: absolute; width: 86px; height: 86px; right: -30px; bottom: -30px; border: 18px solid currentColor; border-radius: 50%; opacity: .045; }
.metric-card strong { color: var(--ink); font-size: 42px; line-height: 1; letter-spacing: -1.5px; }
.metric-card strong::after { content: " 项"; color: var(--muted-2); font-size: 14px; font-weight: 500; letter-spacing: 0; }
.metric-caption { color: var(--muted); font-size: 14px; }
.metric-card.complete { color: var(--success); }
.metric-card.pending { color: var(--primary); }
.metric-card.urgent { color: var(--danger); }
.chart-card { grid-column: span 3; }
.chart-card.wide { grid-column: 1/-1; }
.chart-empty { display: grid; min-height: 155px; place-items: center; border-radius: 12px; color: var(--muted); background: var(--surface-subtle); font-size: 15px; }
.pie-layout { display: grid; grid-template-columns: minmax(260px,280px) 1fr; align-items: center; gap: 22px; }
.pie-layout svg { width: 260px; height: 260px; max-width: 100%; justify-self: center; stroke: none; }
.pie-total { fill: var(--ink); font-size: 34px; font-weight: 700; }
.pie-label { fill: var(--muted); font-size: 15px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 9px 15px; margin-bottom: 15px; color: var(--muted); font-size: 14px; }
.pie-layout .chart-legend { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend i { width: 7px; height: 7px; border-radius: 3px; }
.stacked-chart { display: grid; gap: 12px; }
.stacked-row { display: grid; grid-template-columns: 130px minmax(0,1fr); align-items: center; gap: 14px; }
.bar-label { color: var(--muted); font-size: 14px; text-align: right; }
.stacked-track { position: relative; height: 22px; overflow: hidden; border-radius: 6px; background: var(--surface-subtle); }
.bar-segment { position: absolute; inset-block: 0; display: grid; min-width: 16px; place-items: center; color: var(--ink); font-size: 14px; font-weight: 800; line-height: 1; }
.monthly-chart { display: flex; min-height: 250px; align-items: flex-end; gap: 26px; overflow-x: auto; padding: 36px 4px 4px; border-bottom: 1px solid var(--line); }
.month-group { display: grid; min-width: 170px; gap: 10px; justify-items: center; }
.month-bars { display: flex; height: 190px; align-items: flex-end; gap: 5px; }
.month-bar { position: relative; width: 13px; overflow: visible; border-radius: 4px 4px 1px 1px; font-size: 0; text-align: center; }
.month-bar::after { content: attr(data-value); position: absolute; z-index: 1; left: 50%; bottom: calc(100% + 6px); color: var(--ink); font-size: 15px; font-weight: 800; line-height: 1; transform: translateX(-50%); }
.month-bar[data-value=""]::after { display: none; }
.month-label { color: var(--muted); font-size: 14px; }

/* Table */
#reviewPanel > .panel-heading, #taskPanel > .panel-heading { align-items: center; margin-bottom: 18px; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-xs); }
.table-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-xs); }
.table-toolbar { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.table-toolbar > div { display: grid; gap: 4px; }
.table-toolbar > .table-toolbar-actions { display: flex; align-items: center; gap: 10px; }
.feedback-scope-switch { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-subtle); }
.feedback-scope-switch.hidden { display: none; }
.feedback-scope-button { min-height: 32px; padding: 0 13px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: color .16s ease, background .16s ease, box-shadow .16s ease; }
.feedback-scope-button:hover { color: var(--ink-2); background: #fff; }
.feedback-scope-button.active { color: var(--primary-dark); background: #fff; box-shadow: var(--shadow-xs); }
.feedback-scope-button:focus-visible { outline: 2px solid var(--primary-line); outline-offset: 1px; }
.feedback-scope-button:disabled { cursor: wait; opacity: .6; }
.table-toolbar strong { color: var(--ink-2); font-size: 14px; }
.table-toolbar span { color: var(--muted); font-size: 12px; }
.mobile-task-filter-button { display: none; min-height: 36px; padding: 0 13px; }
.mobile-feedback-filter-button { display: none; min-height: 36px; padding: 0 13px; }
.task-filter-clear { min-height: 34px; }
.table-wrap { width: 100%; overflow-x: visible; }
table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
th, td { padding: 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; text-align: center; vertical-align: middle; }
th { position: sticky; z-index: 2; top: 0; height: 62px; color: var(--muted); background: var(--surface-subtle); font-size: 12px; font-weight: 600; white-space: nowrap; }
.task-table th { font-size: 13px; }
.task-table td { font-size: 14px; }
.task-table .status-pill { font-size: 13px; }
.task-table td select, .task-table td input { font-size: 13px; }
.task-col-created { width: 12%; }
.task-col-department { width: 10%; }
.task-col-requester { width: 9%; }
.task-col-description { width: 17%; }
.task-col-urgency { width: 7%; }
.task-col-owner { width: 8%; }
.task-col-progress { width: 12%; }
.task-col-expected { width: 11%; }
.task-col-actual { width: 14%; }
.task-col-withdrawal { width: 11%; }
#taskPanel.task-has-withdrawal .task-col-created { width: 11%; }
#taskPanel.task-has-withdrawal .task-col-department { width: 9%; }
#taskPanel.task-has-withdrawal .task-col-requester { width: 9%; }
#taskPanel.task-has-withdrawal .task-col-description { width: 12%; }
#taskPanel.task-has-withdrawal .task-col-urgency { width: 9%; }
#taskPanel.task-has-withdrawal .task-col-owner { width: 8%; }
#taskPanel.task-has-withdrawal .task-col-progress { width: 10%; }
#taskPanel.task-has-withdrawal .task-col-expected { width: 11%; }
#taskPanel.task-has-withdrawal .task-col-actual { width: 11%; }
#taskPanel.task-has-withdrawal .task-col-withdrawal { width: 10%; }
.feedback-col-created { width: 20%; }
.feedback-col-category { width: 16%; }
.feedback-col-requester { width: 0; }
.feedback-col-subject { width: 36%; }
.feedback-col-status { width: 16%; }
.feedback-col-action { width: 12%; }
#feedbackPanel.feedback-department-mode .feedback-col-created { width: 18%; }
#feedbackPanel.feedback-department-mode .feedback-col-category { width: 14%; }
#feedbackPanel.feedback-department-mode .feedback-col-requester { width: 14%; }
#feedbackPanel.feedback-department-mode .feedback-col-subject { width: 28%; }
#feedbackPanel.feedback-department-mode .feedback-col-status { width: 14%; }
#feedbackPanel.feedback-department-mode .feedback-col-action { width: 12%; }
.feedback-table th, .feedback-table .feedback-summary-row td { text-align: center; vertical-align: middle; }
.feedback-summary-row { height: 72px; }
.feedback-table td:first-child, .feedback-table th:first-child { padding-left: 20px; }
.feedback-table td:last-child, .feedback-table th:last-child { padding-right: 20px; }
.feedback-header-label { vertical-align: middle; }
.feedback-filter-button { display: inline-grid; width: 24px; height: 24px; margin-left: 3px; place-items: center; padding: 0; border: 0; border-radius: 7px; color: var(--muted-2); background: transparent; cursor: pointer; vertical-align: middle; transition: color .16s ease, background .16s ease; }
.feedback-filter-button:hover { color: var(--ink-2); background: #fff; }
.feedback-filter-button.active { color: var(--primary); background: var(--primary-soft); }
.feedback-filter-button svg { width: 13px; height: 13px; }
.feedback-subject-cell { color: var(--ink); font-weight: 600; text-align: center; }
.feedback-applicant-cell { text-align: center; }
.feedback-detail-button { min-height: 32px; padding: 0 10px; color: var(--primary); font-weight: 700; }
.feedback-detail-button:hover { color: var(--primary-dark); background: var(--primary-soft); }
.feedback-detail-row > td { padding: 0; background: var(--surface-subtle); text-align: left; }
.feedback-detail-row:hover { background: transparent; }
.feedback-detail { display: grid; gap: 20px; padding: 26px 30px 30px; border-top: 2px solid var(--primary-line); }
.feedback-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.feedback-detail-heading h4 { margin: 5px 0 0; color: var(--ink); font-size: 18px; }
.detail-created-at { color: var(--muted); font-size: 12px; }
.feedback-detail-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.feedback-detail-grid div { padding: 14px; background: #fff; }
.feedback-detail-grid dt { color: var(--muted); font-size: 12px; }
.feedback-detail-grid dd { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.feedback-detail-sections { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.feedback-detail-sections section { min-height: 108px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.feedback-detail-sections h5 { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.feedback-detail-sections p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.75; white-space: pre-wrap; }
.approval-flow-section { display: grid; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.approval-flow { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.approval-step { position: relative; display: grid; grid-template-columns: 24px minmax(0,1fr); grid-template-rows: auto 24px auto; align-items: start; gap: 8px 10px; min-width: 0; }
.approval-step::after { content: ""; position: absolute; z-index: 0; top: 38px; left: 24px; width: calc(100% - 6px); height: 2px; background: var(--line-strong); }
.approval-step:last-child::after { display: none; }
.approval-marker { position: relative; z-index: 1; grid-column: 1; grid-row: 2; display: grid; width: 24px; height: 24px; place-items: center; border: 2px solid var(--line-strong); border-radius: 50%; background: #fff; }
.approval-step strong, .approval-step small { display: block; }
.approval-step strong { grid-column: 1 / -1; grid-row: 1; margin: 0; color: var(--ink-2); font-size: 13px; }
.approval-step small { grid-column: 1 / -1; grid-row: 3; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.approval-step.complete .approval-marker { border-color: var(--success); background: var(--success); box-shadow: inset 0 0 0 5px #fff; }
.approval-step.complete::after { background: var(--success); }
.approval-step.current .approval-marker { border-color: var(--primary); box-shadow: inset 0 0 0 5px var(--primary), 0 0 0 4px var(--primary-soft); }
.approval-step.current strong { color: var(--primary-dark); }
.approval-step.rejected .approval-marker { border-color: var(--danger); background: var(--danger); box-shadow: inset 0 0 0 5px #fff; }
.approval-step.rejected strong { color: var(--danger); }
.approval-step.skipped .approval-marker { border-style: dashed; border-color: var(--muted-2); background: var(--surface-subtle); }
.approval-step.skipped strong { color: var(--muted); }
.task-table td:nth-child(n+7) { padding-inline: 8px; }
.withdrawal-actions { display: flex; align-items: center; justify-content: center; gap: 6px; }
.withdrawal-request-button, .withdrawal-review-button { min-height: 34px; padding: 0 10px; border: 1px solid var(--primary-line); border-radius: 8px; color: var(--primary-dark); background: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.withdrawal-request-button:hover, .withdrawal-review-button.approve:hover { border-color: var(--primary); background: var(--primary-soft); }
.withdrawal-review-button.reject { border-color: var(--line); color: var(--muted); }
.withdrawal-review-button.reject:hover { color: var(--ink-2); background: var(--surface-subtle); }
.withdrawal-result { display: inline-flex; min-height: 30px; align-items: center; justify-content: center; padding: 0 9px; border-radius: 999px; color: var(--muted); background: var(--surface-subtle); font-size: 12px; font-weight: 700; white-space: nowrap; }
.withdrawal-pending { color: #9a6200; background: #fff7e8; }
.withdrawal-success { color: var(--success); background: var(--success-soft); }
.task-table th:first-child, .task-table td:first-child { padding-left: 20px; }
.task-table th:last-child, .task-table td:last-child { padding-right: 20px; }
.task-header-label { vertical-align: middle; }
.task-filter-button { display: none; width: 24px; height: 24px; margin-left: 3px; place-items: center; padding: 0; border: 0; border-radius: 7px; color: var(--muted-2); background: transparent; cursor: pointer; vertical-align: middle; transition: color .16s ease, background .16s ease; }
#taskPanel.task-filtering-enabled .task-filter-button { display: inline-grid; }
#taskPanel:not(.task-filtering-enabled) .task-filter-clear, #taskPanel:not(.task-filtering-enabled) .mobile-task-filter-button { display: none !important; }
.task-filter-button:hover { color: var(--ink-2); background: #fff; }
.task-filter-button.active { color: var(--primary); background: var(--primary-soft); }
.task-filter-button svg { width: 13px; height: 13px; }
.task-filter-popover { position: fixed; z-index: 80; top: 50%; left: 50%; width: min(310px,calc(100vw - 32px)); max-height: calc(100vh - 24px); overflow-y: auto; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 18px 50px rgba(34,38,48,.18); transform: translate(-50%,-50%); }
.task-filter-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.task-filter-heading h3 { margin: 3px 0 0; color: var(--ink); font-size: 17px; }
.task-filter-heading .icon-button { font-size: 21px; line-height: 1; }
.task-filter-body { display: grid; gap: 12px; }
.task-filter-body label, .mobile-filter-field-picker { display: grid; gap: 7px; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.task-filter-body input { min-height: 40px; font-size: 12px; }
.task-filter-options { display: grid; max-height: 220px; gap: 5px; overflow-y: auto; padding: 2px; }
.task-filter-option { display: flex !important; grid-template-columns: none; align-items: center; gap: 9px !important; min-height: 34px; padding: 5px 8px; border-radius: 8px; font-weight: 500 !important; cursor: pointer; }
.task-filter-option:hover { background: var(--surface-subtle); }
.task-filter-option input { width: 15px; min-height: 15px; margin: 0; accent-color: var(--primary); }
.task-filter-date-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.task-filter-empty { color: var(--muted); font-size: 12px; line-height: 1.7; }
.task-filter-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.task-filter-actions .primary-button { min-height: 38px; padding: 0 18px; }
.mobile-filter-field-picker { display: none; margin-bottom: 14px; }
td:nth-child(4) { text-align: left; }
@media (min-width: 761px) {
  #taskPanel:not(.task-has-withdrawal) .task-table-columns col:not(.task-col-withdrawal) { width: calc(100% / 9); }
  #taskPanel .task-table thead th, #feedbackPanel .task-table thead th { padding-inline: 12px; text-align: center; vertical-align: middle; }
  .table-header-control { display: inline-grid; grid-template-columns: 27px max-content 27px; align-items: center; justify-content: center; max-width: 100%; }
  .table-header-control::before { content: ""; width: 27px; height: 24px; }
  .table-header-control .task-header-label, .table-header-control .feedback-header-label { grid-column: 2; text-align: center; }
  .table-header-control .task-filter-button, .table-header-control .feedback-filter-button { width: 24px; min-width: 24px; height: 24px; flex: none; justify-self: start; }
  .table-header-control .task-filter-button, .table-header-control .feedback-filter-button { position: static; margin-left: 3px; transform: none; }
  .table-header-control svg { display: block; width: 13px; min-width: 13px; height: 13px; }
  .task-table tbody td { text-align: center; vertical-align: middle; }
  .task-table tbody td { padding-inline: 12px; }
  .task-table tbody td:nth-child(4) { text-align: center; }
  .task-table tbody td select, .task-table tbody td input { text-align: center; text-align-last: center; }
  .task-table tbody .feedback-detail-row > td { text-align: left; }
}
tbody tr { transition: background .16s ease; }
tbody tr:hover { background: #fffafa; }
tbody tr:last-child td { border-bottom: 0; }
td select, td input { min-width: 0; min-height: 36px; padding-inline: 8px; border-radius: 8px; font-size: 12px; }

/* Feedback & modal */
.attachment-picker { position: relative; display: flex; align-items: center; gap: 9px; margin-top: 9px; }
.attachment-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.attachment-button { display: inline-flex; min-height: 34px; align-items: center; padding: 0 12px; border: 1px dashed var(--primary-line); border-radius: 9px; color: var(--primary); background: var(--primary-soft); font-size: 12px; font-weight: 600; cursor: pointer; }
.attachment-input:focus-visible + .attachment-button { outline: 3px solid rgba(218,50,34,.18); outline-offset: 2px; }
.attachment-picker small { color: var(--muted); font-size: 11px; }
.selected-file-list { display: flex; flex-wrap: wrap; gap: 7px; }
.selected-file { display: inline-flex; max-width: 100%; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-2); background: #fff; font-size: 11px; font-weight: 500; }
.selected-file > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-file small { color: var(--muted); }
.selected-file button { display: grid; width: 18px; height: 18px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 50%; color: var(--muted); background: var(--surface-subtle); cursor: pointer; }
.selected-file button:hover { color: #fff; background: var(--danger); }
.attachment-downloads { display: grid; gap: 8px; margin: 14px 0; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-subtle); }
.attachment-downloads > strong { font-size: 12px; }
.attachment-group { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.attachment-group > span { min-width: 64px; color: var(--muted); font-size: 11px; }
.attachment-group a { padding: 5px 8px; border-radius: 7px; color: var(--primary-dark); background: #fff; font-size: 11px; text-decoration: none; }
.attachment-group a:hover { text-decoration: underline; }
.attachment-group a small { color: var(--muted); }
.toast { position: fixed; z-index: 100; right: 26px; bottom: 26px; display: flex; max-width: min(390px,calc(100% - 40px)); align-items: center; gap: 11px; padding: 13px 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; color: #fff; background: #252833; box-shadow: var(--shadow-md); font-size: 13px; font-weight: 600; animation: toast-in .25s ease both; }
.toast-icon { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; color: #fff; background: var(--success); }
.toast-icon svg { width: 14px; height: 14px; }
.loading-overlay, .modal-backdrop { position: fixed; z-index: 120; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(28,30,39,.26); backdrop-filter: blur(5px); }
.loading-card { display: grid; min-width: 230px; justify-items: center; gap: 8px; padding: 28px; border: 1px solid rgba(255,255,255,.8); border-radius: var(--radius-lg); background: rgba(255,255,255,.96); box-shadow: var(--shadow-md); }
.loading-card strong { margin-top: 4px; font-size: 14px; }
.loading-card small { color: var(--muted); font-size: 11px; }
.loading-spinner { width: 28px; height: 28px; border: 2px solid var(--primary-line); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
.modal-card { width: min(420px,100%); padding: 30px; border: 1px solid rgba(255,255,255,.8); border-radius: 20px; background: #fff; box-shadow: var(--shadow-md); animation: modal-in .24s ease both; text-align: center; }
.modal-icon { display: grid; width: 44px; height: 44px; margin: 0 auto 18px; place-items: center; border-radius: 13px; color: var(--primary); background: var(--primary-soft); }
.modal-card h2 { margin: 0 0 9px; font-size: 21px; }
.modal-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.skeleton { position: relative; overflow: hidden; border-radius: 12px; background: #eef0f4; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg,transparent,rgba(255,255,255,.8),transparent); animation: shimmer 1.3s infinite; }
.skeleton-list { min-height: 150px; }
.skeleton-dashboard { grid-column: 1/-1; min-height: 400px; }
.skeleton-row { min-height: 30px; }
.button-spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.38); border-top-color: currentColor; border-radius: 50%; animation: spin .7s linear infinite; }

@keyframes rise-in { from { opacity: 0; transform: translateY(16px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes page-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .login-layout { grid-template-columns: 1fr 1fr; }
  .login-story { padding: 38px; }
  .login-card { padding: 44px; }
  :root { --sidebar: 208px; }
  .hero-meta { display: none; }
  .review-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric-card { grid-column: span 3; }
  .metric-card:nth-child(3) { grid-column: 1/-1; }
}

@media (max-width: 760px) {
  .login-view { background: #fff; }
  .login-layout { display: block; width: 100%; min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
  .login-story { display: none; }
  .login-card { min-height: 100vh; padding: 34px max(24px,7vw); }
  .mobile-brand { display: inline-flex; }
  .app-view { display: block; }
  .product-sidebar { position: sticky; width: 100%; height: auto; padding: 12px 14px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-brand, .nav-label, .sidebar-bottom { display: none; }
  .tabs { display: flex; gap: 4px; overflow-x: auto; }
  .tab { width: auto; min-width: max-content; padding: 0 13px; }
  .tab svg { display: none; }
  .topbar { min-height: 110px; align-items: flex-start; padding: 20px; }
  .topbar-actions { display: none; }
  .content-area { padding: 18px 14px 36px; }
  .hero-card { padding: 24px; }
  .form-section { padding: 22px 18px; }
  .section-index { position: static; margin-bottom: 14px; }
  .section-heading, .subsection-heading, .panel-heading, .dashboard-intro, .table-toolbar { align-items: flex-start; flex-direction: column; }
  .table-toolbar > .table-toolbar-actions { width: 100%; flex-wrap: wrap; }
  .feedback-scope-switch { width: 100%; order: -1; }
  .feedback-scope-button { flex: 1; }
  #taskPanel.task-filtering-enabled .mobile-task-filter-button { display: inline-flex; }
  #feedbackPanel .mobile-feedback-filter-button { display: inline-flex; }
  .task-filter-popover { width: calc(100vw - 24px); border-radius: 18px; }
  .mobile-filter-field-picker { display: grid; }
  .completion-chip, .tip-chip { display: none; }
  .form-grid, .review-form, .meta-grid, .feedback-grid, .pie-layout, .stacked-row { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  .subsection-heading p { text-align: left; }
  .uploaded-section { padding: 22px 18px; }
  .review-head { align-items: flex-start; flex-direction: column; }
  .review-demand-summary { grid-template-columns: 1fr; }
  .review-form { padding: 14px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .metric-card, .metric-card:nth-child(3), .chart-card, .chart-card.wide { grid-column: 1/-1; }
  .bar-label { text-align: left; }
  .modal-actions { grid-template-columns: 1fr; }
  #reviewPanel > .panel-heading, #taskPanel > .panel-heading { padding: 22px 20px; }
  .table-wrap, table, tbody { display: block; width: 100%; }
  thead { display: none; }
  tbody { padding: 12px; }
  tbody tr { display: grid; gap: 0; margin-bottom: 12px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
  tbody tr:last-child { margin-bottom: 0; }
  tbody td, tbody td:nth-child(4) { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; text-align: left; }
  tbody td::before { content: attr(data-label); color: var(--muted); font-size: 11px; font-weight: 600; }
  tbody td:last-child { border-bottom: 0; }
  tbody td[colspan] { display: block; padding: 0; border: 0; }
  tbody td[colspan]::before { content: none; }
  .feedback-summary-row { height: auto; }
  .feedback-detail-row { display: block; padding: 0; }
  .feedback-detail { gap: 16px; padding: 20px 16px 22px; }
  .feedback-detail-heading { align-items: flex-start; flex-direction: column; }
  .feedback-detail-grid, .feedback-detail-sections, .approval-flow { grid-template-columns: 1fr; }
  .feedback-detail-sections section { min-height: 0; }
  .approval-step { grid-template-columns: 24px minmax(0,1fr); grid-template-rows: auto auto; gap: 5px 10px; min-height: 62px; }
  .approval-step::after { top: 24px; left: 11px; width: 2px; height: calc(100% + 18px); }
  .approval-marker { grid-column: 1; grid-row: 1; }
  .approval-step strong { grid-column: 2; grid-row: 1; margin-top: 3px; }
  .approval-step small { grid-column: 2; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
