:root {
  --ink: #14213d;
  --muted: #77839d;
  --line: #e7ebf3;
  --soft: #f6f8fc;
  --canvas: #f2f5fa;
  --card: #ffffff;
  --nav: #0b1020;
  --nav-2: #171d31;
  --brand: #e3343d;
  --brand-dark: #c42732;
  --blue: #3867ff;
  --success: #118b68;
  --warning: #e98d18;
  --shadow: 0 14px 35px rgb(27 41 74 / 8%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

@property --reception-orbit-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* Centralized two-role permission center. */
.nav-item--admin { margin-top: 10px; border-top: 1px solid rgb(255 255 255 / 12%); border-radius: 0 0 8px 8px; padding-top: 15px; color: #dce9ff; }
.permission-center { display: grid; gap: 18px; }
.permission-hero { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 24px; align-items: center; padding: 28px; border: 1px solid #dbe6f5; border-radius: 18px; background: linear-gradient(135deg, #f7fbff, #f4f2ff); box-shadow: var(--shadow); }
.permission-hero > div > span, .permission-accounts header span { color: #326ed8; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.permission-hero h2, .permission-accounts h2 { margin: 7px 0; color: #1e293b; }
.permission-hero p, .permission-accounts p { max-width: 780px; margin: 0; color: #637089; line-height: 1.65; }
.permission-hero aside { display: grid; justify-items: center; padding: 18px; border: 1px solid #cfe0f5; border-radius: 15px; background: rgb(255 255 255 / 78%); }
.permission-hero aside span, .permission-hero aside small { color: #6d7890; font-size: 11px; }
.permission-hero aside strong { color: #1e65d6; font-size: 38px; line-height: 1.2; }
.management-access-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 22px 24px; border: 1px solid #d8e4f3; border-radius: 17px; background: #fff; box-shadow: 0 10px 28px rgb(44 67 104 / 8%); }
.management-access-card.is-public { border-color: #b9dfcb; background: linear-gradient(135deg, #fbfffd, #f1fbf6); }
.management-access-card.is-private { border-color: #d8e0ec; background: linear-gradient(135deg, #fff, #f5f7fb); }
.management-access-icon { display: grid; width: 48px; height: 48px; place-items: center; color: #2467d2; border-radius: 14px; background: #eaf2ff; }
.management-access-icon .nav-icon { width: 25px; height: 25px; }
.management-access-copy { display: grid; gap: 5px; min-width: 0; }
.management-access-copy > span { color: #326ed8; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.management-access-copy h2 { margin: 0; color: #1f2a3c; font-size: 18px; }
.management-access-copy p { margin: 0; color: #5f6d83; line-height: 1.55; }
.management-access-copy a { width: fit-content; color: #2467d2; font-size: 12px; font-weight: 700; text-decoration: none; }
.management-access-copy a:hover { text-decoration: underline; }
.management-access-copy small { color: #7c8799; line-height: 1.45; }
.management-access-control { display: grid; justify-items: end; gap: 9px; }
.management-access-status { display: inline-flex; align-items: center; gap: 7px; color: #536179; font-size: 12px; font-weight: 700; }
.management-access-status i { width: 8px; height: 8px; border-radius: 999px; background: #7f8ba0; box-shadow: 0 0 0 3px #e8ecf2; }
.is-public .management-access-status { color: #18724a; }
.is-public .management-access-status i { background: #25a66c; box-shadow: 0 0 0 3px #d9f3e5; }
.management-access-switch { display: flex; min-height: 44px; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.management-access-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.management-access-switch > span { display: flex; width: 48px; height: 26px; align-items: center; padding: 3px; border-radius: 999px; background: #b9c3d2; transition: background-color 180ms ease; }
.management-access-switch > span i { width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgb(24 38 61 / 25%); transition: transform 180ms ease; }
.management-access-switch input:checked + span { background: #2475df; }
.management-access-switch input:checked + span i { transform: translateX(22px); }
.management-access-switch input:focus-visible + span { outline: 3px solid rgb(36 117 223 / 30%); outline-offset: 3px; }
.management-access-switch input:disabled + span { opacity: .55; }
.management-access-switch strong { min-width: 96px; color: #334155; font-size: 12px; text-align: right; }
.permission-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.permission-metrics article { display: grid; gap: 5px; padding: 19px; border: 1px solid #e0e7f1; border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgb(50 73 110 / 7%); }
.permission-metrics span { color: #68758c; font-size: 12px; font-weight: 700; }
.permission-metrics strong { color: #202a3a; font-size: 28px; }
.permission-metrics small { color: #8a95a8; }
.permission-role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.permission-role-card { display: grid; gap: 16px; padding: 22px; border: 1px solid #dde6f2; border-radius: 17px; background: #fff; box-shadow: 0 10px 28px rgb(44 67 104 / 8%); }
.permission-role-card.is-admin { border-color: #bfd5f7; background: linear-gradient(145deg, #fff, #f3f7ff); }
.permission-role-card header { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; }
.permission-role-card header > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: #edf4ff; color: #2e6cd3; }
.permission-role-card .nav-icon { width: 22px; height: 22px; }
.permission-role-card header p { margin: 0 0 3px; color: #70809a; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.permission-role-card h2 { margin: 0; color: #212a3a; font-size: 20px; }
.permission-role-card header b { padding: 6px 9px; border-radius: 999px; background: #eaf3ff; color: #2862bf; font-size: 10px; }
.permission-role-card > p { margin: 0; color: #637089; line-height: 1.65; }
.permission-role-card ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.permission-role-card li { padding: 9px 10px; border-radius: 9px; background: #f5f8fc; color: #4f5d74; font-size: 12px; }
.permission-role-card li::before { margin-right: 7px; color: #2470d8; content: "✓"; }
.permission-role-card footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid #e8edf4; color: #708097; font-size: 11px; }
.permission-role-card footer strong { color: #33445f; }
.permission-warning { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid #f0c8c8; border-radius: 12px; background: #fff6f6; color: #a82b2b; }
.permission-warning span { color: #7f4a4a; }
.permission-accounts { overflow: hidden; }
.permission-accounts > header { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 21px 23px; border-bottom: 1px solid #e5ebf3; }
.permission-accounts > header b { padding: 7px 10px; border-radius: 999px; background: #eef5ff; color: #3268bd; font-size: 11px; }
.permission-table-wrap { overflow-x: auto; }
.permission-table-wrap table { width: 100%; min-width: 620px; table-layout: fixed; }
.permission-table-wrap th:nth-child(1) { width: 36%; }
.permission-table-wrap th:nth-child(2) { width: 15%; }
.permission-table-wrap th:nth-child(3) { width: 16%; }
.permission-table-wrap th:nth-child(4) { width: 18%; }
.permission-table-wrap th:nth-child(5) { width: 15%; }
.permission-account { display: flex; min-width: 0; gap: 10px; align-items: center; }
.permission-account > span { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: #eaf2ff; color: #2c68c7; font-weight: 800; }
.permission-account > div { display: grid; min-width: 0; gap: 2px; }
.permission-account strong { overflow-wrap: anywhere; }
.permission-account small { color: #8792a5; }
.permission-type { display: inline-flex; padding: 6px 9px; border-radius: 999px; background: #edf5ff; color: #2f68bd; font-size: 11px; font-weight: 750; }
.permission-type.is-admin { background: #edeaff; color: #5d4ac6; }
.permission-status { display: inline-flex; gap: 7px; align-items: center; color: #35634b; font-size: 12px; font-weight: 700; }
.permission-status i { width: 8px; height: 8px; border-radius: 50%; background: #35a66a; box-shadow: 0 0 0 3px #e5f6ed; }
.permission-status.is-paused { color: #945f18; }
.permission-status.is-paused i { background: #d68a24; box-shadow: 0 0 0 3px #fff1d8; }
.permission-management-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(270px, .7fr); gap: 16px; align-items: start; }
.permission-management-grid > * { min-width: 0; }
.permission-accounts > header .button { min-height: 42px; flex: 0 0 auto; }
.permission-account-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.permission-account-actions .button { min-height: 38px; }
.permission-protected { display: inline-flex; padding: 7px 9px; border: 1px solid #dfe4ec; border-radius: 8px; color: #77849a; background: #f7f9fc; font-size: 11px; font-weight: 750; }
.permission-activity { overflow: hidden; }
.permission-activity > header { display: grid; gap: 14px; padding: 21px 20px 16px; border-bottom: 1px solid #e5ebf3; }
.permission-activity > header span { color: #326ed8; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.permission-activity > header h2 { margin: 6px 0; color: #1e293b; font-size: 18px; }
.permission-activity > header p { margin: 0; color: #748097; font-size: 11px; line-height: 1.55; }
.permission-activity-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 9px; align-items: center; }
.permission-activity-controls label { grid-column: 1 / -1; color: #5d6b82; font-size: 11px; font-weight: 750; }
.permission-activity-controls select { width: 100%; min-width: 0; min-height: 40px; padding: 8px 30px 8px 10px; border: 1px solid #d7e1ee; border-radius: 9px; color: #26364e; background: #fff; font: inherit; font-size: 12px; cursor: pointer; }
.permission-activity-controls select:focus-visible { outline: 2px solid #2f6fcb; outline-offset: 2px; }
.permission-activity-controls b { display: grid; min-width: 40px; height: 40px; place-items: center; border-radius: 9px; color: #2f68bd; background: #eef5ff; font-size: 11px; }
.permission-activity-list { max-height: 620px; overflow-y: auto; overscroll-behavior: contain; }
.permission-activity-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 14px 16px; border-bottom: 1px solid #edf0f5; }
.permission-activity-item:last-child { border-bottom: 0; }
.permission-activity-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; color: #376ab9; background: #edf4ff; }
.permission-activity-icon .nav-icon { width: 19px; height: 19px; }
.permission-activity-item > div { min-width: 0; }
.permission-activity-item strong { display: block; overflow: hidden; color: #263449; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.permission-activity-item p { margin: 3px 0; color: #536178; font-size: 12px; line-height: 1.45; }
.permission-activity-item small { display: block; overflow: hidden; color: #8a95a7; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.permission-activity-action { padding: 4px 6px; border-radius: 999px; color: #66748a; background: #f0f3f7; font-size: 9px; font-style: normal; font-weight: 800; }
.permission-activity-action.is-login { color: #3264b1; background: #eaf3ff; }
.permission-activity-action.is-create { color: #237455; background: #e5f7ef; }
.permission-activity-action.is-update { color: #8a621d; background: #fff2d8; }
.permission-activity-action.is-delete { color: #a53b46; background: #ffebed; }
.permission-activity-empty { display: grid; gap: 5px; padding: 28px 20px; color: #647188; text-align: center; }
.permission-activity-empty span { color: #8b96a8; font-size: 11px; }
.permission-activity-empty.is-warning { color: #9b6417; background: #fffbf1; }

.publisher-editor-modal { width: min(100%, 680px); }
.publisher-delete-modal { width: min(100%, 570px); }
.publisher-form-error { margin-bottom: 16px; padding: 11px 13px; border: 1px solid #f1c0c5; border-radius: 9px; color: #a72838; background: #fff3f4; font-size: 12px; font-weight: 700; line-height: 1.5; }
.publisher-form-error[hidden] { display: none; }
.publisher-form-intro { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; margin-bottom: 21px; padding: 14px; border: 1px solid #d9e6f8; border-radius: 12px; background: #f5f9ff; }
.publisher-form-intro > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 11px; color: #3168bc; background: #e5f0ff; }
.publisher-form-intro .nav-icon { width: 21px; height: 21px; }
.publisher-form-intro div { display: grid; gap: 3px; }
.publisher-form-intro strong { color: #243650; font-size: 13px; }
.publisher-form-intro small { color: #687991; line-height: 1.5; }
.publisher-password-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.publisher-password-control .button { min-width: 62px; min-height: 44px; }
.publisher-modal-safety { color: #6d7b91; font-size: 11px; font-weight: 700; }
.publisher-delete-target { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; align-items: center; margin-bottom: 16px; }
.publisher-delete-target > span { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 12px; color: #a82f40; background: #ffecee; font-weight: 850; }
.publisher-delete-target > div { display: grid; min-width: 0; gap: 3px; }
.publisher-delete-target strong { overflow: hidden; color: #243047; text-overflow: ellipsis; white-space: nowrap; }
.publisher-delete-target small { color: #7e899b; }
.publisher-delete-warning { margin-bottom: 17px; padding: 15px 17px; border: 1px solid #f1c6ca; border-radius: 11px; color: #7d3841; background: #fff7f7; }
.publisher-delete-warning strong { color: #a32737; }
.publisher-delete-warning ul { display: grid; gap: 6px; margin: 9px 0 0; padding-left: 19px; font-size: 12px; line-height: 1.5; }
.publisher-delete-modal .modal-foot .button.danger { min-height: 44px; padding-inline: 17px; color: #fff; background: #b92c3d; }
.publisher-delete-modal .modal-foot .button.danger:hover { background: #9f2031; }

/* Three-action public translation workspace. */
.nav-item .nav-icon--translations { color:#8fb7ff; }
.translation-workspace { display:grid; gap:18px; }
.translation-toolbar .button { min-height:44px; }
.translation-integrity-trigger[aria-busy="true"] { cursor:wait; }
.translation-overview-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.translation-overview-grid article { display:grid; gap:5px; min-width:0; padding:18px; border:1px solid #e0e7f1; border-radius:14px; background:#fff; box-shadow:0 8px 24px rgb(50 73 110 / 7%); }
.translation-overview-grid span { color:#68758c; font-size:12px; font-weight:750; }
.translation-overview-grid strong { color:#202a3a; font-size:27px; }
.translation-overview-grid small { color:#8a95a8; line-height:1.45; }
.translation-config-warning,.translation-source-warning,.translation-boundary,.translation-job-error { padding:15px 17px; border-radius:12px; line-height:1.55; }
.translation-config-warning { border:1px solid #efcc8d; color:#80531d; background:#fff9ec; }
.translation-config-warning strong,.translation-config-warning p,.translation-job-error strong,.translation-job-error p { display:block; margin:0; }
.translation-config-warning p { margin-top:4px; }
.translation-config-warning code { padding:2px 5px; border-radius:5px; color:#714410; background:#fff1d2; }
.translation-source-warning { border:1px solid #e9c87e; color:#704a0d; background:#fff8e8; }
.translation-source-warning > strong,.translation-source-warning > p { display:block; margin:0; }
.translation-source-warning > p { margin-top:5px; }
.translation-source-warning details { margin-top:10px; }
.translation-source-warning summary { display:flex; align-items:center; min-height:44px; font-weight:800; cursor:pointer; }
.translation-source-warning ul { display:grid; gap:8px; margin:4px 0 0; padding-left:20px; }
.translation-source-warning li { line-height:1.5; }
.translation-source-warning li span { display:block; color:#83652d; }
.translation-integrity-result { padding:15px 17px; border:1px solid #cbd9ee; border-radius:12px; color:#385171; background:#f4f8ff; line-height:1.55; }
.translation-integrity-result strong,.translation-integrity-result p { display:block; margin:0; }
.translation-integrity-result p { margin-top:4px; }
.translation-integrity-result p > span { display:block; margin-top:3px; color:inherit; font-size:11px; opacity:.8; }
.translation-integrity-result.is-passed { border-color:#b9dfcd; color:#285f49; background:#f1fbf6; }
.translation-integrity-result.is-failed { border-color:#efbdc4; color:#8c2938; background:#fff3f5; }
.translation-integrity-result.is-running { border-color:#bfd4f3; color:#2f5f9d; background:#f2f7ff; }
.translation-integrity-result details { margin-top:9px; }
.translation-integrity-result summary { display:flex; min-height:44px; align-items:center; font-weight:800; cursor:pointer; }
.translation-integrity-result ul { display:grid; max-height:360px; gap:9px; margin:3px 0 0; padding:0 0 0 20px; overflow:auto; }
.translation-integrity-result li { padding-right:8px; }
.translation-integrity-result li code,.translation-integrity-result li span,.translation-integrity-result li small { display:block; overflow-wrap:anywhere; }
.translation-integrity-result li code { color:inherit; font-size:11px; font-weight:800; }
.translation-integrity-result li span { margin-top:2px; }
.translation-integrity-result li small { margin-top:2px; opacity:.82; }
.translation-integrity-truncated { display:block; margin-top:10px; font-weight:750; }
.translation-job-card { padding:22px; }
.translation-job-card > header,.translation-language-card > header { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; }
.translation-job-card > header span,.translation-language-card > header span { color:#326ed8; font-size:11px; font-weight:800; letter-spacing:.14em; }
.translation-job-card h2,.translation-language-card h2 { margin:6px 0; color:#1e293b; }
.translation-job-card header p,.translation-language-card header p { margin:0; color:#6f7d93; line-height:1.55; }
.translation-job-card header > b { display:grid; min-width:70px; height:54px; place-items:center; border-radius:14px; color:#275fb4; background:#eef5ff; font-size:20px; }
.translation-progress { height:10px; margin:21px 0 13px; overflow:hidden; border-radius:999px; background:#e9eef6; }
.translation-progress i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#3867ff,#31a47c); transition:width .25s ease; }
.translation-job-counts { display:flex; flex-wrap:wrap; gap:8px 20px; color:#738098; font-size:12px; }
.translation-job-counts strong { color:#33445f; }
.translation-job-error { margin-top:16px; border:1px solid #f0c1c7; color:#8e2d3c; background:#fff4f5; }
.translation-job-error span { display:block; margin-top:5px; color:#855965; font-size:11px; }
.translation-language-card { padding:22px; }
.translation-language-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:18px; }
.translation-language { display:flex; justify-content:space-between; gap:14px; align-items:center; min-width:0; padding:13px 14px; border:1px solid #e4e9f1; border-radius:11px; background:#f9fbfe; }
.translation-language > div { display:grid; min-width:0; gap:3px; }
.translation-language span { overflow:hidden; color:#26364e; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }
.translation-language small { color:#8190a5; }
.translation-language-status { flex:0 0 auto; padding:5px 8px; border-radius:999px; color:#3268bd; background:#eaf3ff; font-size:10px; }
.translation-language-status.is-pending { color:#8a5f16; background:#fff0d2; }
.translation-language-status.is-disabled { color:#7b8290; background:#eceff3; }
.translation-boundary { border:1px solid #d7e5de; color:#3d6453; background:#f4fbf7; }
.translation-boundary strong { display:block; color:#24684c; }
.translation-boundary p { margin:4px 0 0; }
.translation-language-modal { width:min(100%,640px); }
.translation-language-modal input,.translation-language-modal select { min-height:44px; font-size:16px; }
.translation-language-modal :is(input,select,button):focus-visible { outline:3px solid rgb(56 103 255 / 30%); outline-offset:2px; }
.translation-language-modal select[size] { min-height:280px; padding:4px; }
.translation-language-modal select[size] option { padding:10px 9px; border-radius:7px; }
.translation-language-modal select[size] option:checked { color:#fff; background:#3867ff linear-gradient(0deg,#3867ff,#3867ff); }
.translation-form-error { padding:11px 13px; border:1px solid #f1c0c5; border-radius:9px; color:#a72838; background:#fff3f4; font-size:12px; font-weight:700; }
.translation-form-error[hidden] { display:none; }

@media (max-width:980px) {
  .translation-overview-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:620px) {
  .translation-overview-grid,.translation-language-list { grid-template-columns:1fr; }
  .translation-toolbar { width:100%; }
  .translation-toolbar .button { flex:1 1 100%; justify-content:center; }
  .translation-job-card > header,.translation-language-card > header { flex-direction:column; }
}

@media (prefers-reduced-motion:reduce) {
  .translation-progress i { transition:none; }
}

@media (max-width: 1180px) {
  .permission-management-grid { grid-template-columns: 1fr; }
  .permission-activity-list { max-height: 430px; }
}

@media (max-width: 980px) {
  .permission-hero { grid-template-columns: 1fr; }
  .permission-hero aside { justify-items: start; }
  .management-access-card { grid-template-columns: auto minmax(0, 1fr); }
  .management-access-control { grid-column: 1 / -1; width: 100%; grid-template-columns: 1fr auto; align-items: center; justify-items: start; }
  .management-access-switch { justify-self: end; }
  .permission-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .permission-role-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .management-access-card { grid-template-columns: 1fr; padding: 19px; }
  .management-access-icon { width: 44px; height: 44px; }
  .management-access-control { grid-column: auto; }
  .management-access-switch strong { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .management-access-switch > span,
  .management-access-switch > span i { transition: none; }
}

@media (max-width: 620px) {
  .permission-metrics { grid-template-columns: 1fr; }
  .permission-role-card ul { grid-template-columns: 1fr; }
  .permission-role-card header { grid-template-columns: 42px 1fr; }
  .permission-role-card header b { grid-column: 1 / -1; justify-self: start; }
  .permission-role-card footer, .permission-accounts > header { align-items: flex-start; flex-direction: column; }
  .permission-accounts > header .button { width: 100%; justify-content: center; }
  .permission-activity-item { grid-template-columns: 34px minmax(0, 1fr); }
  .permission-activity-action { grid-column: 2; justify-self: start; }
  .publisher-password-control { grid-template-columns: 1fr; }
  .publisher-password-control .button { width: 100%; }
  .publisher-modal-safety { display: none; }
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(360px, 1.05fr);
  background: #0b1020;
}

.login-intro {
  min-height: 100%;
  color: #fff;
  padding: clamp(35px, 7vw, 108px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle at 20% 12%, #303d6a 0%, #12182b 38%, #090d1a 76%);
}

.login-intro::before, .login-intro::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  pointer-events: none;
}
.login-intro::before { width: 420px; height: 420px; right: -150px; bottom: 5%; border: 1px solid rgb(255 255 255 / 13%); box-shadow: 0 0 0 44px rgb(255 255 255 / 3%), 0 0 0 88px rgb(255 255 255 / 2%); }
.login-intro::after { width: 170px; height: 170px; left: -50px; top: 21%; background: var(--brand); filter: blur(1px); opacity: .88; }

.brand-lockup { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .12em; font-size: 15px; z-index: 1; }
.brand-logo { display:block; width:44px; height:44px; object-fit:contain; background:transparent; }
.login-copy { position: relative; z-index: 1; max-width: 530px; }
.eyebrow { color: var(--brand); font-size: 12px; letter-spacing: .16em; font-weight: 800; text-transform: uppercase; }
.login-copy h1 { font-size: clamp(40px, 5vw, 70px); line-height: 1.02; letter-spacing: -.06em; margin: 18px 0; }
.login-copy p { max-width: 460px; color: #c0c8dc; font-size: 16px; line-height: 1.8; }
.login-foot { position: relative; z-index: 1; color: #8e99b6; font-size: 13px; }

.login-panel { background: #fff; display: grid; place-items: center; padding: 32px; }
.login-card { width: min(100%, 430px); }
.login-card h2 { font-size: 30px; letter-spacing: -.045em; margin: 0 0 10px; }
.login-card > p { color: var(--muted); line-height: 1.65; margin: 0 0 33px; }

.field { display: grid; gap: 8px; margin-bottom: 17px; }
.field label, .field-label { font-size: 13px; font-weight: 750; color: #36415a; }
.field small { color: var(--muted); line-height: 1.5; }
.field input, .field select, .field textarea, .input-like {
  width: 100%; border: 1px solid #d9e0ed; border-radius: 11px; background: #fff; color: var(--ink); padding: 11px 12px; outline: none; transition: border-color .18s, box-shadow .18s, background .18s;
}
.field textarea { min-height: 114px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgb(56 103 255 / 12%); }
.field input[readonly] { color: #8a94a8; background: #f7f9fc; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 47px; }
.password-toggle { position: absolute; right: 7px; top: 7px; border: 0; color: var(--muted); background: transparent; width: 35px; height: 35px; border-radius: 8px; }
.password-toggle:hover { background: var(--soft); }
.login-help { padding: 13px 14px; border-left: 3px solid var(--brand); color: #68748e; background: #fff5f6; border-radius: 0 9px 9px 0; font-size: 13px; line-height: 1.55; margin-top: 22px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 25px; padding: 25px 14px; color: #d9e1f0; background: linear-gradient(180deg, #111827 0%, #0d1423 100%); box-shadow: inset -1px 0 rgb(148 163 184 / 11%); }
.sidebar::before { display: none; }
.sidebar .brand-lockup { padding: 4px 11px; color: #f8fafc; font-family: "Segoe UI Variable Display", "SF Pro Display", "Microsoft YaHei UI", sans-serif; font-weight: 780; letter-spacing: .13em; }
.sidebar .brand-logo { width:42px; height:42px; }
.workspace-label { margin: 4px 0 8px; padding: 0 11px; color: #71809b; font-family: "Segoe UI Variable Text", "SF Pro Text", "Microsoft YaHei UI", sans-serif; font-size: 10px; font-weight: 760; letter-spacing: .15em; text-transform: uppercase; }
.side-nav { display: grid; gap: 2px; }
.nav-item { position: relative; min-height: 43px; border: 0; border-radius: 8px; color: #aebbd0; background: transparent; display: flex; align-items: center; gap: 12px; padding: 8px 11px; text-align: left; font-family: "Segoe UI Variable Text", "SF Pro Text", "Microsoft YaHei UI", "PingFang SC", sans-serif; font-size: 14px; font-weight: 610; letter-spacing: -.01em; line-height: 1.2; text-decoration: none; transition: color .16s ease, background .16s ease; }
.nav-item::after { position: absolute; top: 50%; left: 0; width: 2px; height: 16px; border-radius: 0 4px 4px 0; background: transparent; content: ""; transform: translateY(-50%); transition: height .16s ease, background .16s ease; }
.nav-item:hover { color: #f8fafc; background: rgb(148 163 184 / 9%); transform: none; }
.nav-item.is-active { color: #f8fafc; background: rgb(148 163 184 / 13%); box-shadow: inset 0 0 0 1px rgb(148 163 184 / 9%); }
.nav-item.is-active::after { height: 21px; background: #70a5ff; }
.nav-item-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item--external { margin-top: 15px; border-radius: 8px; color: #b8c8e3; box-shadow: inset 0 1px rgb(148 163 184 / 13%); }
.nav-item--external:hover { color: #fff; background: rgb(100 137 204 / 11%); }
.nav-item--external b { margin-left: auto; color: #7897d0; font-size: 13px; font-weight: 600; }
.side-nav .nav-item--external .nav-item-label { flex: 1 1 auto; }
.side-nav .nav-item--external.has-pending {
  isolation: isolate;
  color: #315f6f;
  border-color: rgb(54 190 139 / 24%);
  background: linear-gradient(105deg, rgb(232 251 245 / 82%), rgb(239 247 255 / 76%));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 58%), 0 8px 22px rgb(29 143 104 / 9%);
}
.side-nav .nav-item--external.has-pending::before {
  position: absolute;
  z-index: 0;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--reception-orbit-angle), transparent 0 58%, rgb(71 216 165 / 30%) 66%, #eafff7 70%, #2ac88f 73%, transparent 81%);
  content: "";
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: receptionOrbit 2.8s linear infinite;
}
.side-nav .nav-item--external.has-pending > * { position: relative; z-index: 1; }
.side-nav .nav-item--external.has-pending:hover {
  color: #195b69;
  border-color: rgb(42 200 143 / 38%);
  background: linear-gradient(105deg, rgb(225 250 241 / 94%), rgb(234 244 255 / 88%));
}
.side-nav .nav-item:focus-visible { outline: 2px solid rgb(54 116 226 / 58%); outline-offset: 2px; }
.side-nav .nav-item--external .reception-count {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0 5px;
  border: 1px solid rgb(61 207 154 / 34%);
  border-radius: 999px;
  color: #075f45;
  background: #d9f8ec;
  box-shadow: 0 0 0 3px rgb(61 207 154 / 8%);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.side-nav .nav-item--external.has-pending .nav-external-arrow { margin-left: 0; color: #4e8b82; }
@keyframes receptionOrbit { to { --reception-orbit-angle: 360deg; } }
.nav-item--tracking { margin-top: 3px; color: #e8bac5; background: transparent; box-shadow: none; }
.nav-item--tracking:hover { color: #fff3f5; background: rgb(228 77 108 / 11%); }
.nav-item--tracking.is-active { color: #fff7f8; background: rgb(228 77 108 / 15%); box-shadow: inset 0 0 0 1px rgb(244 114 136 / 14%); }
.nav-item--tracking.is-active::after { background: #f36a85; }
.nav-icon { flex: 0 0 auto; display: inline-grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 0; background: transparent; box-shadow: none; transition: color .16s ease, filter .16s ease, transform .16s ease; }
.nav-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.75; }
.nav-item:hover .nav-icon, .nav-item.is-active .nav-icon { filter: brightness(1.14) saturate(1.08); transform: translateY(-1px); }
.nav-icon--dashboard { color: #69a7ff; }
.nav-icon--products { color: #4cd7b0; }
.nav-icon--modtek { color: #f6bb58; }
.nav-icon--articles { color: #ba90f3; }
.nav-icon--media { color: #ef82b5; }
.nav-icon--manuals { color: #4fd1e5; }
.nav-icon--inquiries { color: #8ea6ff; }
.nav-icon--settings { color: #a9b6cb; }
.nav-icon--reception { color: #e9b35d; }
.nav-icon--tracking { color: #f07b94; }
.side-spacer { flex: 1; }
.side-card { border: 1px solid rgb(255 255 255 / 8%); background: linear-gradient(145deg, rgb(255 255 255 / 8%), rgb(255 255 255 / 2%)); border-radius: 14px; padding: 14px; color: #c1c9dc; font-size: 12px; line-height: 1.6; }
.side-card strong { color: #fff; display: block; margin-bottom: 3px; font-size: 13px; }
.logout-link { color: #93a0bc; background: transparent; border: 0; padding: 9px 12px; text-align: left; font-weight: 650; }
.logout-link:hover { color: #fff; }

.main { min-width: 0; padding: 25px clamp(20px, 4vw, 54px) 50px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 52px; margin-bottom: 31px; }
.crumb { color: var(--muted); font-size: 13px; }
.crumb strong { color: var(--ink); font-size: 14px; }
.topbar-actions { display: flex; align-items: center; gap: 11px; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 6px 10px 6px 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; color: #59647a; font-size: 12px; font-weight: 700; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #eff2f8; color: var(--brand); font-weight: 800; }

.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-heading h1 { margin: 0; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.05em; }
.page-heading p { color: var(--muted); margin: 7px 0 0; font-size: 14px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.button { border: 0; background: #edf1f8; color: #37425a; border-radius: 10px; padding: 10px 13px; font-size: 13px; font-weight: 750; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; transition: transform .18s, box-shadow .18s, background .18s; }
.button:hover { transform: translateY(-1px); box-shadow: 0 6px 13px rgb(18 35 70 / 10%); }
.button.primary { color: #fff; background: var(--brand); }
.button.primary:hover { background: var(--brand-dark); }
.button.dark { color: #fff; background: var(--ink); }
.button.ghost { background: #fff; border: 1px solid var(--line); }
.button.danger { color: #b82735; background: #fff0f1; }
.button.small { padding: 7px 9px; font-size: 12px; border-radius: 8px; }
.button:disabled { cursor: not-allowed; opacity: .52; transform: none; box-shadow: none; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.metric { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: 0 7px 17px rgb(21 36 68 / 3%); min-width: 0; }
.metric-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; font-weight: 750; }
.metric-icon { display: grid; place-items: center; width: 31px; height: 31px; background: #fff0f1; color: var(--brand); border-radius: 10px; font-size: 16px; }
.metric strong { display: block; margin-top: 13px; font-size: 28px; letter-spacing: -.05em; }
.metric span { color: var(--muted); font-size: 12px; }

.dashboard-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 7px 17px rgb(21 36 68 / 3%); }
.panel-head { padding: 18px 20px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel-head h2 { margin: 0; font-size: 15px; letter-spacing: -.02em; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.panel-body { padding: 0 20px 20px; }
.quick-actions { display: grid; gap: 10px; }
.quick-action { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 13px; display: flex; align-items: center; gap: 12px; text-align: left; }
.quick-action:hover { border-color: #cdd6ef; background: #fbfcff; }
.quick-icon { width: 35px; height: 35px; border-radius: 10px; display: grid; place-items: center; color: var(--blue); background: #eef2ff; font-size: 17px; }
.quick-action strong { display: block; font-size: 13px; }
.quick-action span { color: var(--muted); font-size: 12px; }
.feed { display: grid; }
.feed-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid #f0f2f7; }
.feed-row:last-child { border-bottom: 0; }
.feed-dot { width: 28px; height: 28px; display: grid; place-items: center; color: var(--blue); background: #f0f3ff; border-radius: 8px; font-size: 13px; }
.feed-title { font-size: 13px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.feed-meta { color: var(--muted); font-size: 11px; margin-top: 3px; }

.content-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.list-controls { padding: 15px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.search { display: flex; gap: 9px; align-items: center; min-width: min(100%, 320px); color: var(--muted); background: #f7f9fc; padding: 0 11px; border-radius: 9px; border: 1px solid transparent; }
.search:focus-within { border-color: #bdc9ef; background: #fff; }
.search input { width: 100%; border: 0; background: transparent; outline: 0; padding: 9px 0; color: var(--ink); }
.filter-tabs { display: flex; gap: 5px; padding: 3px; background: #f1f4f9; border-radius: 9px; }
.filter-tab { border: 0; border-radius: 7px; background: transparent; color: #68748e; padding: 7px 9px; font-size: 12px; font-weight: 700; }
.filter-tab.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgb(16 30 65 / 10%); }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { background: #fafbfe; color: #8190aa; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 11px 18px; font-weight: 800; }
.data-table td { padding: 13px 18px; border-top: 1px solid #eff2f7; color: #5c6880; font-size: 13px; vertical-align: middle; }
.data-table tr:hover td { background: #fcfdff; }
.row-title { color: var(--ink); font-weight: 780; display: block; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-title--link { color: var(--ink); text-decoration: none; transition: color .18s ease; }
.row-title--link span { display: inline-block; margin-left: 6px; color: var(--brand); font-size: 12px; transform: translateY(-1px); }
.row-title--link:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.row-title--article { display: inline-flex; align-items: center; transition: color .18s ease, transform .22s cubic-bezier(.2,.8,.2,1); }
.row-title--article span { transition: transform .22s cubic-bezier(.2,.8,.2,1), color .18s ease; }
.data-table tr:hover .row-title--article, .row-title--article:hover, .row-title--article:focus-visible { color: var(--brand); transform: translateX(5px); text-decoration: none; }
.data-table tr:hover .row-title--article span, .row-title--article:hover span, .row-title--article:focus-visible span { transform: translate(4px, -1px); }
.row-title--article:focus-visible { outline: 2px solid rgb(56 103 255 / 45%); outline-offset: 3px; border-radius: 3px; }
.article-row-title { display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: center; gap: 12px; min-width: 0; }
.article-row-cover { display: block; width: 68px; height: 48px; overflow: hidden; border: 1px solid #dde5f0; border-radius: 7px; object-fit: cover; background: #edf1f7; }
.article-row-cover--empty { display: grid; place-items: center; color: #9aa8bc; font-size: 15px; }
.row-sub { color: var(--muted); font-size: 11px; display: block; margin-top: 3px; }
.row-actions { display: flex; gap: 7px; justify-content: flex-end; }
.buyer-link { color: #fff; background: var(--ink); border-color: var(--ink); text-decoration: none; white-space: nowrap; }
.buyer-link:hover { color: #fff; background: #142149; border-color: #142149; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 800; line-height: 1; }
.badge.published { color: #087457; background: #e5f8f1; }
.badge.draft { color: #8b6510; background: #fff4dc; }
.badge.modtek { color: #b2202a; background: #fff0f1; }
.badge.standard { color: #3754a8; background: #eef2ff; }
.badge.upcoming { color: #7747aa; background: #f5efff; }
.empty { padding: 60px 24px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 15px; margin: 8px 0; }
.empty-graphic { font-size: 35px; color: #b9c3d8; }

.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgb(8 13 28 / 52%); backdrop-filter: blur(4px); }
.modal { width: min(100%, 920px); max-height: min(88vh, 900px); overflow: auto; background: #fff; border-radius: 18px; box-shadow: 0 28px 80px rgb(0 0 0 / 24%); animation: pop .18s ease-out; }
.modal.wide { width: min(100%, 1100px); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-head { padding: 20px 24px 16px; display: flex; align-items: start; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
.modal-head h2 { margin: 0; font-size: 20px; letter-spacing: -.035em; }
.modal-head p { color: var(--muted); font-size: 12px; margin: 5px 0 0; }
.close { border: 0; background: #f1f4f8; color: #59657b; border-radius: 9px; width: 34px; height: 34px; font-size: 20px; }
.close:hover { background: #e8edf4; }
.modal-body { padding: 22px 24px; }
.modal-foot { padding: 16px 24px 21px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; align-items: center; position: sticky; bottom: 0; background: #fff; }
.modal-foot .actions { display: flex; gap: 9px; margin-left: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.span-2 { grid-column: 1 / -1; }
.form-section { border-top: 1px solid var(--line); padding-top: 19px; margin-top: 8px; }
.form-section h3 { margin: 0 0 2px; font-size: 15px; }
.form-section p { margin: 5px 0 15px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.form-section.is-hidden { display: none; }
.helper-row { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 0 0 16px; padding: 10px 12px; background: #f6f8fc; border-radius: 9px; }
.commerce-form-section { margin-top: 22px; padding: 22px; border: 1px solid #dbe4f4; border-radius: 14px; background: linear-gradient(140deg, #fbfcff 0%, #f4f7ff 100%); }
.product-form-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.product-form-heading span { display: block; margin-bottom: 5px; color: #3867ff; font-size: 10px; font-weight: 850; letter-spacing: .16em; }
.product-form-heading h3 { margin: 0; font-size: 16px; }
.product-form-heading p { max-width: 420px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.commerce-toggle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.commerce-toggle { display: flex; align-items: flex-start; gap: 10px; min-height: 66px; padding: 13px; border: 1px solid #d8e1f0; border-radius: 11px; background: #fff; cursor: pointer; }
.commerce-toggle:hover { border-color: #8ca8ff; }
.commerce-toggle input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--blue); }
.commerce-toggle span { display: grid; gap: 3px; }
.commerce-toggle b { color: #24304a; font-size: 13px; }
.commerce-toggle small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.commerce-form-note { margin-top: 4px; padding: 10px 12px; border-left: 3px solid #3867ff; background: #eaf0ff; color: #53617a; font-size: 11px; line-height: 1.55; }
.product-publish-modal { width: min(100%, 1280px) !important; }
.product-publish-head { align-items: center; }
.product-publish-overline { display: block; margin-bottom: 6px; color: var(--brand); font-size: 10px; font-weight: 850; letter-spacing: .15em; }
.product-publish-state { display: flex; align-items: center; gap: 12px; }
.product-editor { padding: 0; }
.product-editor-layout { display: grid; grid-template-columns: 218px minmax(0, 1fr); align-items: start; }
.product-editor-nav { position: sticky; top: 75px; display: grid; gap: 4px; min-height: 100%; padding: 22px 13px; border-right: 1px solid var(--line); background: #f7f9fd; }
.product-editor-nav-title { padding: 0 9px 8px; color: #9ba7bc; font-size: 9px; font-weight: 850; letter-spacing: .15em; }
.product-editor-nav button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px; border: 0; border-radius: 9px; color: #6b7891; background: transparent; font-size: 12px; font-weight: 750; text-align: left; transition: .18s ease; }
.product-editor-nav button:hover { color: #28354d; background: #eef2f8; }
.product-editor-nav button.is-active { color: #fff; background: var(--ink); box-shadow: 0 7px 14px rgb(24 37 65 / 14%); }
.product-editor-nav button > span { flex: 0 0 24px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; color: inherit; background: rgb(98 115 148 / 12%); font-size: 10px; font-weight: 850; }
.product-editor-nav button.is-active > span { background: rgb(255 255 255 / 14%); }
.product-editor-nav-modtek { color: #bc2d36 !important; }
.product-editor-nav-modtek.is-hidden { display: none; }
.product-editor-checklist { display: grid; gap: 7px; margin: 18px 5px 0; padding: 13px 5px 0; border-top: 1px solid #e1e7f1; }
.product-editor-checklist span { display: flex; gap: 7px; align-items: center; color: #98a4b7; font-size: 10px; font-weight: 700; }
.product-editor-checklist i { color: #aab4c4; font-size: 12px; font-style: normal; }
.product-editor-checklist .is-done { color: #188263; }
.product-editor-checklist .is-done i { color: #188263; }
.product-editor-content { min-width: 0; padding: 24px; }
.product-editor-section { scroll-margin-top: 92px; padding: 20px; border: 1px solid #e2e8f2; border-radius: 14px; background: linear-gradient(145deg, #fff 0%, #fbfcff 100%); box-shadow: 0 7px 16px rgb(22 39 78 / 3%); }
.product-modtek-fields { display: contents; }
.product-editor [data-product-modtek].is-hidden,
.product-editor [data-product-standard].is-hidden,
.product-publish-foot [data-product-modtek].is-hidden,
.product-publish-foot [data-product-standard].is-hidden { display: none !important; }
.product-editor-section + .product-editor-section { margin-top: 18px; }
.product-editor-section-head { margin: 0 0 17px; }
.product-editor-section-head > span, .product-editor-handoff > span { display: block; margin-bottom: 5px; color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.product-editor-section-head h3, .product-editor-handoff h3 { margin: 0; color: #233049; font-size: 17px; letter-spacing: -.02em; }
.product-editor-section-head p, .product-editor-handoff p { max-width: 690px; margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.product-media-grid { display: grid; grid-template-columns: minmax(210px, .55fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.product-image-preview { display: grid; min-height: 255px; place-items: center; overflow: hidden; border: 1px dashed #c9d4e4; border-radius: 12px; background: linear-gradient(145deg, #f1f4f9, #e9eef6); }
.product-image-preview.is-empty { padding: 24px; color: #8491a7; font-size: 12px; line-height: 1.55; text-align: center; }
.product-image-preview img { display: block; width: 100%; height: 100%; min-height: 255px; object-fit: cover; }
.product-video-preview { display: grid; min-height: 220px; place-items: center; margin-top: 18px; overflow: hidden; border: 1px dashed #c9d4e4; border-radius: 12px; background: #111827; }
.product-video-preview.is-empty { padding: 24px; color: #8591a6; background: #f1f4f9; font-size: 12px; line-height: 1.55; text-align: center; }
.product-video-preview video { display: block; width: 100%; max-height: 430px; background: #05070b; }
.product-media-workbench { display: grid; grid-template-columns: minmax(0, 1fr) 278px; gap: 18px; align-items: start; }
.product-media-stage { min-width: 0; padding: 14px; border: 1px solid #dce5f1; border-radius: 13px; background: linear-gradient(145deg, #f8faff, #fff); }
.product-media-stage-head, .product-gallery-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.product-media-stage-head { margin: 0 0 12px; }
.product-media-stage-head span { display: block; color: #647696; font-size: 10px; font-weight: 850; letter-spacing: .11em; }
.product-media-stage-head h4 { margin: 3px 0 0; color: #25334c; font-size: 15px; }
.product-media-stage-head small { max-width: 158px; color: #8b97aa; font-size: 10px; line-height: 1.45; text-align: right; }
.product-media-stage .product-video-preview { min-height: 250px; margin: 0; border-style: solid; border-color: #d7e0ee; }
.product-media-stage .product-video-preview.is-empty { background: linear-gradient(145deg, #eaf0f8, #f9fbfe); }
.product-gallery-panel { grid-column: 1 / -1; min-width: 0; padding: 14px; border: 1px solid #dce5f1; border-radius: 13px; background: linear-gradient(145deg, #f8faff, #fff); }
.product-gallery-head { align-items: center; }
.product-gallery-head b { display: block; color: #2c3a53; font-size: 13px; }
.product-gallery-head small { display: block; max-width: 520px; margin-top: 3px; color: #8490a4; font-size: 10px; line-height: 1.45; }
.product-gallery-head .button { flex: 0 0 auto; }
.product-gallery-queue { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.product-gallery-empty { grid-column: 1 / -1; display: grid; place-items: center; min-height: 150px; padding: 22px; border: 1px dashed #c6d2e2; border-radius: 10px; color: #8190a7; background: #fff; text-align: center; }
.product-gallery-empty span { color: #89a0c2; font-size: 26px; }
.product-gallery-empty b { margin-top: 5px; color: #53627d; font-size: 12px; }
.product-gallery-empty small { max-width: 270px; margin-top: 4px; font-size: 10px; line-height: 1.5; }
.product-gallery-slot, .product-gallery-item { position: relative; min-width: 0; min-height: 128px; margin: 0; border-radius: 9px; }
.product-gallery-slot { display: grid; grid-template-rows: auto 1fr auto; place-items: center; padding: 8px; border: 1px dashed #cbd7e7; color: #8290a5; background: rgb(255 255 255 / 68%); cursor: pointer; font: inherit; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.product-gallery-slot > span { justify-self: start; color: #9aa7ba; font-size: 9px; font-weight: 850; }
.product-gallery-slot > i { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; color: #5474a9; background: #edf3fc; font-size: 21px; font-style: normal; }
.product-gallery-slot > b { color: #718099; font-size: 9px; }
.product-gallery-slot:hover { border-color: #7796c9; color: #47689f; background: #f6f9ff; box-shadow: 0 6px 15px rgb(35 68 119 / 8%); }
.product-gallery-item { padding: 5px; border: 1px solid #d8e2ef; background: #fff; cursor: grab; box-shadow: 0 2px 7px rgb(26 48 87 / 4%); transition: opacity .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.product-gallery-item:active { cursor: grabbing; }
.product-gallery-item:hover { border-color: #88a2ce; box-shadow: 0 6px 15px rgb(35 68 119 / 11%); }
.product-gallery-item.is-dragging { opacity: .38; transform: scale(.97); }
@property --product-gallery-drop-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes product-gallery-drop-flow { to { --product-gallery-drop-angle: 360deg; } }
@keyframes product-gallery-drop-pulse { from { box-shadow: 0 0 0 3px var(--product-gallery-glow-soft, rgb(40 105 206 / 15%)), 0 5px 17px rgb(40 105 206 / 10%); } to { box-shadow: 0 0 0 5px var(--product-gallery-glow-soft, rgb(40 105 206 / 24%)), 0 9px 25px var(--product-gallery-glow-soft, rgb(14 116 232 / 21%)); } }
.product-gallery-item.is-drop-target, .product-gallery-slot.is-drop-target { z-index: 2; border-color: var(--product-gallery-glow-b, #1769df); background: #f3f8ff; outline: 1px solid var(--product-gallery-glow-b, rgb(36 125 246 / 42%)); outline-offset: 1px; animation: product-gallery-drop-pulse 1.8s ease-in-out infinite alternate; }
.product-gallery-item.is-drop-target::before, .product-gallery-slot.is-drop-target::before { content: ""; position: absolute; z-index: 4; inset: -4px; padding: 3px; border-radius: 12px; pointer-events: none; background: conic-gradient(from var(--product-gallery-drop-angle), transparent 0deg 205deg, transparent 220deg, var(--product-gallery-glow-a, #7dd3fc) 246deg, var(--product-gallery-glow-b, #1688f8) 278deg, var(--product-gallery-glow-c, #2857e5) 306deg, transparent 338deg 360deg); filter: drop-shadow(0 0 5px var(--product-gallery-glow-shadow, rgb(42 137 255 / 66%))); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: product-gallery-drop-flow 2.4s linear infinite; }
.product-gallery-thumb { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 6px; background: #edf1f7; }
.product-gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumb span { position: absolute; top: 5px; left: 5px; padding: 2px 5px; border-radius: 4px; color: #fff; background: rgb(17 32 56 / 78%); font-size: 9px; font-weight: 850; }
.product-gallery-item p { overflow: hidden; margin: 5px 1px 0; color: #53617a; font-size: 10px; font-weight: 700; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.product-gallery-item-actions { position: absolute; z-index: 1; right: 8px; bottom: 27px; display: flex; gap: 2px; opacity: 0; transform: translateY(3px); transition: .15s ease; }
.product-gallery-item:hover .product-gallery-item-actions, .product-gallery-item:focus-within .product-gallery-item-actions { opacity: 1; transform: none; }
.product-gallery-item-actions button { display: grid; width: 22px; height: 22px; place-items: center; padding: 0; border: 0; border-radius: 5px; color: #fff; background: rgb(24 39 65 / 87%); font: inherit; font-size: 14px; }
.product-gallery-item-actions button:hover:not(:disabled) { background: #2c5fb9; }
.product-gallery-item-actions button:disabled { opacity: .42; cursor: not-allowed; }
.product-gallery-item-actions .product-gallery-remove { background: rgb(178 41 52 / 91%); }
.product-media-controls { display: grid; gap: 11px; }
.product-media-control { display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 8px 10px; padding: 13px; border: 1px solid #dce5f1; border-radius: 12px; background: #fff; }
.product-media-control-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 8px; color: #315da8; background: #eaf0fb; font-weight: 850; }
.product-media-control:first-child .product-media-control-icon { color: #a93648; background: #fdecef; }
.product-media-control b { display: block; color: #2b3952; font-size: 12px; }
.product-media-control small { display: block; margin-top: 3px; color: #76839a; font-size: 10px; line-height: 1.45; }
.product-media-control strong { grid-column: 1 / -1; overflow: hidden; padding: 7px 8px; border-radius: 7px; color: #4e5d76; background: #f5f7fb; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.product-media-control > div:last-child { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 7px; }
.product-media-control > div:last-child .button { flex: 1 1 130px; justify-content: center; }
.product-media-rule { padding: 12px 13px; border-left: 3px solid var(--blue); border-radius: 0 9px 9px 0; background: #eef4ff; }
.product-media-rule b { color: #2d4b81; font-size: 11px; }
.product-media-rule p { margin: 4px 0 0; color: #5f7295; font-size: 10px; line-height: 1.55; }
.product-media-data { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.product-asset-picker { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; }
.product-asset-picker-shade { position: absolute; inset: 0; background: rgb(5 11 24 / 60%); backdrop-filter: blur(4px); }
.modal-foot > [data-action="close-modal"],.modal-foot > [data-action="manual-close"],.modal-foot > [data-action="manual-back-editor"],.modal-foot .actions > [data-action="close-modal"],.modal-foot .actions > [data-action="manual-close"],.modal-foot .actions > [data-action="manual-back-editor"],.modal-foot .actions > [data-action="back-to-composer"],.product-asset-picker-dialog footer [data-product-picker-close] { display:none; }
.product-asset-picker-dialog { position: relative; z-index: 1; display: grid; grid-template-rows: auto auto minmax(180px, 1fr) auto; width: min(980px, 100%); max-height: min(780px, 92vh); overflow: hidden; border: 1px solid #ced9e9; border-radius: 16px; background: #fff; box-shadow: 0 28px 80px rgb(0 0 0 / 28%); animation: pop .18s ease-out; }
.product-asset-picker-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 20px 22px 15px; border-bottom: 1px solid #e4e9f2; }
.product-asset-picker-dialog header span { display: block; color: #4b73bd; font-size: 10px; font-weight: 850; letter-spacing: .13em; }
.product-asset-picker-dialog header h3 { margin: 4px 0 0; color: #23314a; font-size: 18px; }
.product-asset-picker-dialog header p { margin: 5px 0 0; color: #68758c; font-size: 12px; line-height: 1.5; }
.product-asset-picker-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 22px; border-bottom: 1px solid #e8edf5; background: #f8faff; }
.product-asset-picker-tools label { display: flex; align-items: center; gap: 7px; width: min(420px, 100%); min-height: 36px; padding: 0 10px; border: 1px solid #d4ddea; border-radius: 8px; color: #8290a6; background: #fff; }
.product-asset-picker-tools label:focus-within { border-color: #7094d4; box-shadow: 0 0 0 3px rgb(72 114 190 / 12%); }
.product-asset-picker-tools input { min-width: 0; width: 100%; border: 0; outline: 0; color: #2a3850; background: transparent; font: inherit; font-size: 12px; }
.product-asset-picker-tools span { flex: 0 0 auto; color: #536b98; font-size: 11px; font-weight: 800; }
.product-asset-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); align-content: start; gap: 12px; overflow: auto; min-height: 0; padding: 18px 22px; background: #fcfdff; }
.product-asset-card { position: relative; min-width: 0; overflow: hidden; padding: 0; border: 1px solid #dce4f0; border-radius: 10px; color: inherit; background: #fff; text-align: left; transition: .15s ease; }
.product-asset-card:hover { border-color: #8ba4cf; box-shadow: 0 7px 17px rgb(34 60 106 / 12%); transform: translateY(-1px); }
.product-asset-card.is-selected { border-color: #3867b3; box-shadow: 0 0 0 2px rgb(56 103 179 / 17%); }
.product-asset-card.is-disabled { opacity: .45; cursor: not-allowed; filter: saturate(.55); }
.product-asset-card.is-disabled:hover { border-color: #dce4f0; box-shadow: none; transform: none; }
.product-asset-card-preview { position: relative; aspect-ratio: 1.15; overflow: hidden; display: grid; place-items: center; color: #fff; background: #1b2435; }
.product-asset-card-preview img, .product-asset-card-preview video { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-asset-card-preview video { opacity: .78; }
.product-asset-card-preview span { position: absolute; display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: rgb(0 0 0 / 60%); font-size: 16px; }
.product-asset-card > div:nth-child(2) { padding: 8px; }
.product-asset-card b, .product-asset-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-asset-card b { color: #35445e; font-size: 11px; }
.product-asset-card small { margin-top: 3px; color: #8793a8; font-size: 9px; }
.product-asset-card i { position: absolute; top: 7px; right: 7px; display: grid; min-width: 21px; height: 21px; place-items: center; padding: 0 4px; border-radius: 50%; color: #587196; background: rgb(255 255 255 / 93%); box-shadow: 0 2px 6px rgb(17 32 57 / 18%); font-size: 10px; font-style: normal; font-weight: 850; }
.product-asset-card.is-selected i { color: #fff; background: #2e65b8; }
.product-asset-picker-empty { grid-column: 1 / -1; display: grid; min-height: 160px; place-items: center; color: #8290a6; font-size: 12px; }
.product-asset-picker-dialog > footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 22px; border-top: 1px solid #e5eaf2; background: #fff; }
.product-asset-picker-dialog > footer small { color: #8591a6; font-size: 10px; }
.product-asset-picker-dialog > footer > div { display: flex; gap: 7px; }
.rich-editor { overflow: hidden; border: 1px solid #d9e0ed; border-radius: 11px; background: #fff; transition: border-color .18s, box-shadow .18s; }
.rich-editor:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgb(56 103 255 / 12%); }
.rich-editor__toolbar { display: flex; gap: 3px; flex-wrap: wrap; padding: 7px; border-bottom: 1px solid #e3e8f1; background: #f6f8fc; }
.rich-editor__format-group { display:flex; gap:3px; padding-right:4px; margin-right:2px; border-right:1px solid #dce4f0; }
.rich-editor__toolbar button { min-width: 31px; height: 29px; padding: 0 7px; border: 0; border-radius: 6px; color: #51607b; background: transparent; font-size: 11px; font-weight: 800; }
.rich-editor__toolbar button svg { display:block; width:16px; height:16px; margin:auto; fill:none; stroke:currentColor; stroke-linecap:round; stroke-width:1.4; }
.rich-editor__toolbar button:hover { color: #1e2c45; background: #e6ebf4; }
.rich-editor__surface { min-height: 250px; padding: 14px; outline: 0; color: #27344b; font-size: 13px; line-height: 1.75; }
.rich-editor--compact .rich-editor__surface { min-height: 112px; }
.rich-editor__surface:empty::before { content: "请输入产品详细介绍…"; color: #9aa6b9; }
.rich-editor__surface h2, .rich-editor__surface h3, .rich-editor__surface h4 { margin: 16px 0 8px; color: #1f2c45; }
.rich-editor__surface h2 { font-size: 20px; }
.rich-editor__surface h3 { font-size: 16px; }
.rich-editor__surface p { margin: 0 0 12px; }
.rich-editor__surface ul, .rich-editor__surface ol { margin: 0 0 13px; padding-left: 23px; }
.rich-editor__surface blockquote { margin: 12px 0; padding: 8px 13px; border-left: 3px solid var(--brand); color: #5d687b; background: #fff6f7; }
.rich-editor__surface a { color: var(--blue); text-decoration: underline; }
.rich-editor__surface img { display: block; width: auto; max-width: min(100%, 680px); height: auto; margin: 16px 0; border: 1px solid #dce4f1; border-radius: 8px; background: #f5f7fb; }
.rich-editor__surface video, .rich-editor__surface iframe { display: block; width: min(100%, 760px); margin: 16px 0; border: 0; border-radius: 8px; background: #111827; }
.rich-editor__surface video { height: auto; max-height: 480px; }
.rich-editor__surface iframe { aspect-ratio: 16 / 9; }
.rich-media-picker-file-icon { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid rgb(255 255 255 / 18%); border-radius: 10px; color: #d7e5ff; background: rgb(255 255 255 / 9%); font-size: 10px; font-weight: 850; letter-spacing: .04em; }
.rich-editor__uploading { display: inline-flex; align-items: center; margin: 5px 0; padding: 5px 8px; border-radius: 6px; color: #47617f; background: #edf3fb; font-size: 11px; font-weight: 700; }
.product-check { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid #dce4f1; border-radius: 10px; background: #f8faff; cursor: pointer; }
.product-check input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--brand); }
.product-check span { display: grid; gap: 3px; }
.product-check b { color: #2c3951; font-size: 13px; }
.product-check small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.product-spec-editor { display: grid; gap: 12px; }
.product-spec-editor__rows { display: grid; gap: 10px; }
.product-spec-row { display: grid; grid-template-columns: minmax(180px, .9fr) minmax(260px, 1.35fr) auto; gap: 10px; align-items: end; padding: 13px; border: 1px solid #dce4f1; border-radius: 11px; background: #f8faff; }
.product-spec-row .field { min-width: 0; }
.product-spec-row .field label { font-size: 11px; }
.product-spec-row input[readonly] { color: #45546f; background: #edf1f7; cursor: default; }
.product-spec-required { align-self: center; padding: 5px 7px; border-radius: 999px; color: #087457; background: #e5f8f1; font-size: 10px; font-weight: 800; white-space: nowrap; }
.product-spec-remove { align-self: center; color: #9d2344; border-color: #ecc9d4; background: #fff; }
.product-spec-editor > small { color: #71809a; font-size: 11px; line-height: 1.55; }
.product-spec-limit { color: #52637e; font-size: 11px; font-weight: 750; line-height: 1.5; }
.product-spec-limit.is-limit { color: #a1263c; }
.inline-form > .product-spec-limit { grid-column: 1 / -1; }
.product-editor-handoff { margin-top: 18px; padding: 20px; border: 1px solid #f0d3d6; border-radius: 14px; background: linear-gradient(135deg, #fff7f7, #fff); }
.product-editor-handoff > span { color: var(--brand); }
.product-save-hint { color: var(--muted); font-size: 12px; }
.product-publish-foot { z-index: 3; }
.article-editor { display: grid; gap: 18px; }
.article-editor-section { padding: 17px; border: 1px solid #e2e8f2; border-radius: 12px; background: #fbfcff; }
.article-editor-section h3 { margin: 0 0 13px; color: #24304a; font-size: 14px; }
.article-editor-note { margin: -3px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.article-title-image-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.article-title-image-actions .button { flex: 1 1 132px; justify-content: center; }
.article-title-image .article-title-image-preview { min-height: 92px; max-height: 116px; margin-top: 10px; }
.article-title-image .article-title-image-preview img { max-height: 116px; }
.article-title-image small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.article-author-identity { display: flex; min-height: 42px; box-sizing: border-box; flex-direction: column; justify-content: center; gap: 3px; padding: 9px 11px; border: 1px solid #dce4ef; border-radius: 8px; background: #f4f7fb; }
.article-author-identity strong { color: #34415a; font-size: 13px; font-weight: 700; }
.article-author-identity small { color: #7c879b; font-size: 10px; line-height: 1.4; }
.article-excerpt-field textarea { min-height: 92px; resize: vertical; }
.article-excerpt-field small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.article-image-preview { display: grid; width: 100%; min-height: 160px; max-height: 270px; place-items: center; margin-top: 14px; overflow: hidden; border: 1px dashed #cbd6e7; border-radius: 9px; background: #f1f4f9; }
.article-image-preview.is-empty { padding: 20px; color: var(--muted); font-size: 12px; text-align: center; }
.article-image-preview img { display: block; width: 100%; height: 100%; max-height: 270px; object-fit: cover; }
.article-translation { padding: 17px; border: 1px solid #e2e8f2; border-radius: 12px; background: #fff; }
.article-translation summary { color: #314260; font-size: 13px; font-weight: 700; cursor: pointer; }
.article-translation[open] summary { margin-bottom: 16px; }
.commerce-manual-fields { margin-top: 19px; padding: 17px; border: 1px dashed #b8c8e7; border-radius: 11px; background: rgb(255 255 255 / 72%); }
.commerce-manual-fields > span { display: block; margin-bottom: 5px; color: #3867ff; font-size: 10px; font-weight: 850; letter-spacing: .15em; }
.commerce-manual-fields h4 { margin: 0 0 15px; color: #33405a; font-size: 13px; }

.detail-tabs { display: flex; gap: 5px; padding: 4px; overflow: auto; background: #f2f5f9; border-radius: 11px; margin-bottom: 18px; }
.detail-tab { border: 0; background: transparent; border-radius: 8px; padding: 8px 10px; color: #71809a; font-size: 12px; font-weight: 750; white-space: nowrap; }
.detail-tab.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgb(17 31 66 / 10%); }
.detail-pane { display: none; }
.detail-pane.is-active { display: block; }
.mini-list { display: grid; gap: 8px; }
.mini-row { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 9px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; }
.mini-row strong { color: var(--ink); font-size: 13px; }
.mini-row span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-row.two { grid-template-columns: 1fr auto; }
.mini-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.inline-form { display: grid; grid-template-columns: 1fr 1fr minmax(130px,.55fr) auto; gap: 8px; margin-top: 12px; }
.inline-form textarea { min-height: 38px; }
.inline-form input, .inline-form select, .inline-form textarea { border: 1px solid #d9e0ed; border-radius: 8px; padding: 8px; outline: none; min-width: 0; }

.media-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 18px; }
.media-libraries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.media-library-card { --library-accent: #4d63ba; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--library-accent); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); min-width: 0; }
.media-library-card--video { --library-accent: #8f4d68; }
.media-library-card--image { --library-accent: #3a79a6; }
.media-library-card--audio { --library-accent: #7960a6; }
.media-library-card--subtitle { --library-accent: #40837f; }
.media-library-card--other { --library-accent: #71629d; }
.media-library-head { display: flex; align-items: flex-start; gap: 10px; padding: 17px 17px 14px; border-bottom: 1px solid var(--line); }
.media-library-icon { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: color-mix(in srgb, var(--library-accent) 14%, white); color: var(--library-accent); font-weight: 800; }
.media-library-head h2 { margin: 0; color: var(--ink); font-size: 15px; }
.media-library-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.48; }
.media-library-head b { margin-left: auto; min-width: 27px; padding: 4px 7px; border-radius: 999px; background: #f0f3f9; color: var(--library-accent); font-size: 12px; text-align: center; }
.media-upload-form { padding: 13px 17px 12px; background: #fbfcff; border-bottom: 1px solid var(--line); }
.media-file-picker, .media-folder-picker { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.media-upload-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.media-upload-actions .button { flex: 1 1 105px; justify-content: center; }
.media-upload-note { min-height: 17px; margin: 9px 0 0; color: #4c5a74; font-size: 12px; }
.media-upload-hint { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.media-library-files { max-height: 620px; overflow: auto; padding: 13px; }
.media-folder + .media-folder { margin-top: 16px; padding-top: 15px; border-top: 1px solid #e8ecf4; }
.media-folder-head { display: flex; gap: 6px; align-items: center; margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.media-folder-head > span { color: var(--library-accent); font-size: 15px; }
.media-folder-head strong { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-folder-meta { display: flex; align-items: center; gap: 8px; margin-left: auto; white-space: nowrap; }
.media-folder-root-note { color: #8a96aa; font-size: 10px; font-weight: 700; }
.media-folder-delete { min-height: 25px; padding: 4px 7px; border: 1px solid #efcfd4; border-radius: 7px; color: #b02b3a; background: #fff; font: inherit; font-size: 10px; font-weight: 750; }
.media-folder-delete:hover, .media-folder-delete:focus-visible { border-color: #d96775; color: #961d2c; background: #fff3f4; outline: 0; }
.media-folder .media-grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.media-folder-empty { margin: 0; padding: 10px 0 1px; color: var(--muted); font-size: 12px; }
.library-empty { min-height: 136px; display: grid; place-content: center; gap: 7px; padding: 18px; text-align: center; color: var(--muted); }
.library-empty span { color: var(--library-accent); font-size: 27px; }
.library-empty p { max-width: 210px; margin: 0; font-size: 12px; line-height: 1.55; }
.media-directory-settings { display: grid; gap: 10px; padding: 13px; border-top: 1px solid var(--line); background: #fbfcff; }
.media-directory-settings > label { display: grid; gap: 6px; }
.media-directory-settings span { color: #53617a; font-size: 11px; font-weight: 750; }
.media-directory-settings select, .media-directory-settings input { width: 100%; min-height: 36px; border: 1px solid #d3ddec; border-radius: 8px; background: #fff; color: var(--ink); outline: none; padding: 8px 10px; }
.media-directory-settings select:focus, .media-directory-settings input:focus { border-color: #7c9ad8; box-shadow: 0 0 0 3px rgb(91 126 204 / 12%); }
.media-library-switch-layout { display: grid; grid-template-columns: 238px minmax(0, 1fr); gap: 16px; align-items: start; }
.media-library-switcher { position: sticky; top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: rgb(255 255 255 / 92%); box-shadow: var(--shadow); }
.media-library-switcher-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.media-library-switcher-head span { color: var(--ink); font-size: 14px; font-weight: 850; }
.media-library-switcher-head small { color: var(--muted); font-size: 11px; }
.media-library-tabs { display: grid; gap: 4px; padding: 7px; }
.media-library-tab { --library-accent: #4d63ba; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; min-height: 66px; padding: 10px; border: 1px solid transparent; border-radius: 11px; color: #56637b; background: transparent; text-align: left; transition: .16s ease; }
.media-library-tab:hover { border-color: #dce4f2; background: #f7f9fd; color: var(--ink); }
.media-library-tab.is-active { border-color: color-mix(in srgb, var(--library-accent) 25%, #dce4f2); background: color-mix(in srgb, var(--library-accent) 10%, white); color: var(--ink); box-shadow: inset 3px 0 0 var(--library-accent); }
.media-library-tab--video, .media-library-workspace--video { --library-accent: #8f4d68; }
.media-library-tab--image, .media-library-workspace--image { --library-accent: #3a79a6; }
.media-library-tab--audio, .media-library-workspace--audio { --library-accent: #7960a6; }
.media-library-tab--subtitle, .media-library-workspace--subtitle { --library-accent: #40837f; }
.media-library-tab--other, .media-library-workspace--other { --library-accent: #71629d; }
.media-library-tab .media-library-icon { width: 32px; height: 32px; }
.media-library-tab strong, .media-library-tab small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-library-tab strong { color: currentColor; font-size: 13px; }
.media-library-tab small { margin-top: 3px; color: #8793a9; font-size: 10px; }
.media-library-workspace { --library-accent: #4d63ba; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-top: 3px solid var(--library-accent); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.media-library-workspace-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 21px 15px; border-bottom: 1px solid var(--line); }
.media-library-title { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
.media-library-title h2 { margin: 1px 0 0; color: var(--ink); font-size: 17px; }
.media-library-title p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.media-library-count { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; color: var(--library-accent); background: color-mix(in srgb, var(--library-accent) 10%, white); font-size: 11px; white-space: nowrap; }
.media-library-tools { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 12px 21px; border-bottom: 1px solid var(--line); background: #fbfcff; color: var(--muted); font-size: 11px; }
.media-multi-delete-status { color: #ad2637; font-size: 11px; }
.media-library-search { display: flex; align-items: center; gap: 8px; width: min(420px, 100%); min-height: 36px; padding: 0 10px; border: 1px solid #d4ddeb; border-radius: 9px; background: #fff; color: #74829b; }
.media-library-search:focus-within { border-color: #7c9ad8; box-shadow: 0 0 0 3px rgb(91 126 204 / 12%); }
.media-library-search input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.media-library-workspace .media-upload-form { padding: 15px 20px 13px; }
.media-library-workspace .media-upload-actions .button { flex: 0 1 168px; }
.media-library-workspace .media-library-files { max-height: 700px; padding: 19px 20px; }
.media-library-workspace .media-folder .media-grid { grid-template-columns: repeat(auto-fill, minmax(174px, 1fr)); gap: 13px; }
.media-library-workspace .library-empty p { max-width: 360px; }
.media-library-workspace .media-directory-settings { grid-template-columns: minmax(210px, .8fr) minmax(280px, 1.2fr); align-items: end; gap: 14px; padding: 14px 20px; }
.media-directory-settings .media-new-folder { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.media-directory-settings .media-new-folder label { display: grid; gap: 6px; }
.media-directory-settings .media-new-folder .button { min-height: 36px; white-space: nowrap; }
.media-directory-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: stretch; }
.media-directory-tree, .media-directory-browser, .media-upload-dock { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.media-directory-tree { min-height: 500px; overflow: hidden; }
.media-directory-tree-head { display: grid; gap: 3px; padding: 17px; border-bottom: 1px solid var(--line); }
.media-directory-tree-head span { color: var(--ink); font-size: 14px; font-weight: 800; }
.media-directory-tree-head small { color: var(--muted); font-size: 11px; }
.directory-library-list, .directory-library-list ul { margin: 0; padding: 0; list-style: none; }
.directory-library-list > li { border-bottom: 1px solid #edf0f5; }
.directory-library-list > li:last-child { border-bottom: 0; }
.directory-library, .directory-tree-item { width: 100%; border: 0; background: transparent; color: #53617a; text-align: left; transition: .15s ease; }
.directory-library { display: flex; align-items: center; gap: 9px; padding: 13px 15px; font-size: 13px; }
.directory-library span { width: 22px; color: #6b7fae; text-align: center; }
.directory-library strong { font-weight: 750; }
.directory-library.is-active { color: var(--ink); background: #f2f5fb; }
.directory-tree-root { padding: 0 8px 8px; }
.directory-tree-item { display: flex; align-items: center; gap: 7px; min-height: 30px; padding: 5px 8px 5px calc(12px + var(--tree-depth, 0) * 14px); border-radius: 7px; font-size: 12px; }
.directory-tree-item:hover { color: var(--ink); background: #f1f4f9; }
.directory-tree-item.is-active { color: #1d376c; background: #e9effd; font-weight: 750; }
.directory-tree-item span { color: #6881b2; font-size: 14px; }
.directory-tree-root-button { --tree-depth: 0; }
.media-directory-browser { min-width: 0; overflow: hidden; }
.media-directory-browser-head { padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.media-directory-browser-head h2 { margin: 4px 0 0; color: var(--ink); font-size: 17px; }
.media-directory-browser-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.media-directory-body { min-height: 420px; padding: 18px; }
.media-subfolder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 11px; margin-bottom: 16px; }
.media-subfolder { display: grid; grid-template-columns: 27px 1fr; align-items: center; gap: 8px; min-height: 64px; padding: 11px; border: 1px solid #dbe3f0; border-radius: 10px; background: #fbfcff; text-align: left; }
.media-subfolder:hover { border-color: #8da5d5; background: #f4f7fd; }
.media-subfolder > span { grid-row: 1 / span 2; display: grid; width: 27px; height: 27px; place-items: center; border-radius: 7px; background: #e8eefb; color: #4869ae; }
.media-subfolder strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.media-subfolder small { color: var(--muted); font-size: 11px; }
.media-upload-dock { margin-top: 16px; padding: 19px 21px; }
.media-upload-dock-head { margin-bottom: 15px; }
.media-upload-dock-head span { color: #446ab4; font-size: 10px; font-weight: 850; letter-spacing: .13em; }
.media-upload-dock-head h2 { margin: 3px 0 0; color: var(--ink); font-size: 16px; }
.media-upload-dock-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.media-upload-targets { display: grid; grid-template-columns: minmax(210px, 1fr) minmax(260px, 1fr); gap: 12px; padding: 13px; border: 1px solid #e0e7f2; border-radius: 11px; background: #f9fbff; }
.media-upload-targets .field, .media-new-folder label { display: grid; gap: 6px; margin: 0; }
.media-upload-targets span { color: #53617a; font-size: 11px; font-weight: 750; }
.media-upload-targets select, .media-new-folder input { width: 100%; min-height: 37px; border: 1px solid #d3ddec; border-radius: 8px; background: #fff; color: var(--ink); outline: none; padding: 8px 10px; }
.media-upload-targets select:focus, .media-new-folder input:focus { border-color: #7c9ad8; box-shadow: 0 0 0 3px rgb(91 126 204 / 12%); }
.media-new-folder { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.media-new-folder .button { height: 37px; white-space: nowrap; }
.media-upload-dock .media-upload-actions { margin-top: 14px; }
.media-upload-dock .media-upload-actions .button { flex: 0 1 170px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 13px; }
.media-card { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; cursor: context-menu; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.media-card:hover { border-color: #c9d6ea; box-shadow: 0 8px 20px rgb(31 57 103 / 8%); transform: translateY(-1px); }
.media-card:focus-visible { outline: 3px solid rgb(91 126 204 / 24%); outline-offset: 2px; }
.media-card.is-multi-delete { border-color: #e1a4ad; cursor: pointer; }
.media-card.is-multi-delete:hover, .media-card.is-multi-delete:focus-visible { border-color: #c93648; box-shadow: 0 8px 20px rgb(179 37 54 / 14%); }
.media-card.is-multi-delete .media-card-hint { color: #b02b3a; }
.media-card.is-deleting { pointer-events: none; opacity: .55; }
.media-card-deleted-placeholder { min-width: 0; pointer-events: none; }
.media-preview { position: relative; aspect-ratio: 1.23; background: #f1f4fa; display: grid; place-items: center; overflow: hidden; color: #8794ae; font-size: 31px; }
.media-preview img { width: 100%; height: 100%; object-fit: cover; }
.media-animated-badge { position: absolute; right: 8px; bottom: 8px; z-index: 2; display: inline-flex; align-items: center; min-height: 20px; padding: 3px 7px; border: 1px solid rgb(255 255 255 / 58%); border-radius: 999px; color: #fff; background: #159447; box-shadow: 0 3px 10px rgb(5 68 31 / 28%); font-size: 10px; font-weight: 850; line-height: 1; letter-spacing: .04em; pointer-events: none; }
.media-info { padding: 9px; }
.media-name { display: block; color: var(--ink); font-size: 12px; font-weight: 750; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.media-meta { color: var(--muted); font-size: 11px; margin-top: 4px; }
.media-card-hint { display: block; margin-top: 8px; color: #98a4b9; font-size: 10px; font-weight: 700; }
.media-context-menu { position: fixed; z-index: 80; width: 190px; padding: 5px; border: 1px solid #d7e0ed; border-radius: 11px; background: rgb(255 255 255 / 98%); box-shadow: 0 16px 38px rgb(17 36 76 / 19%); backdrop-filter: blur(12px); }
.media-context-menu-title { overflow: hidden; padding: 7px 8px 8px; border-bottom: 1px solid #e9eef6; color: #5e6b83; font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.media-context-menu button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 34px; margin-top: 2px; padding: 7px 8px; border: 0; border-radius: 7px; color: #3c4b66; background: transparent; font: inherit; font-size: 12px; font-weight: 720; text-align: left; }
.media-context-menu button:hover, .media-context-menu button:focus-visible { color: var(--ink); background: #f0f4fb; outline: 0; }
.media-context-menu button span { width: 15px; color: #61769d; font-size: 15px; text-align: center; }
.media-context-menu button.is-danger { color: #b02b3a; }
.media-context-menu button.is-danger span { color: currentColor; }
.media-context-menu button.is-danger:hover, .media-context-menu button.is-danger:focus-visible { background: #fff1f2; }
.media-recycle-modal { width: min(920px, 100%); }
.media-recycle-summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 15px; padding: 11px 13px; border: 1px solid #efd6da; border-radius: 10px; background: #fff7f7; color: #a52b38; font-size: 12px; }
.media-recycle-summary span { color: #7d6970; font-size: 11px; }
.media-recycle-list { display: grid; gap: 9px; }
.media-recycle-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px; border: 1px solid #e1e6ef; border-radius: 10px; background: #fff; }
.media-recycle-preview { display: grid; width: 62px; height: 48px; place-items: center; overflow: hidden; border-radius: 7px; color: #7887a1; background: #f0f3f8; font-size: 18px; }
.media-recycle-preview img { width: 100%; height: 100%; object-fit: cover; }
.media-recycle-copy { min-width: 0; }
.media-recycle-copy strong, .media-recycle-copy span, .media-recycle-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-recycle-copy strong { color: var(--ink); font-size: 12px; }
.media-recycle-copy span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.media-recycle-copy small { margin-top: 4px; color: #9b6770; font-size: 10px; }
.media-recycle-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.media-recycle-empty { display: grid; min-height: 170px; place-items: center; border: 1px dashed #ccd5e4; border-radius: 11px; color: var(--muted); font-size: 12px; }
.upload-box { height: fit-content; border: 1px dashed #b8c5dc; border-radius: 14px; background: #fbfcff; padding: 20px; }
.upload-box h3 { margin: 0; font-size: 15px; }
.upload-box p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.upload-input { width: 100%; color: #5f6d86; font-size: 12px; margin: 9px 0 13px; }
.asset-url { display: flex; gap: 6px; align-items: center; padding: 8px; border: 1px solid var(--line); background: #fff; border-radius: 8px; color: #7a879f; font-size: 11px; word-break: break-all; }

.settings-form { max-width: 980px; }
.settings-campaign-editor { overflow: hidden; margin-top: 6px; border: 1px solid #d9e3f3; border-radius: 15px; background: linear-gradient(145deg, rgb(246 249 255 / 96%), rgb(249 247 255 / 96%)); box-shadow: 0 14px 35px rgb(76 91 151 / 7%); }
.settings-campaign-editor__head { position: relative; padding: 19px 21px 16px; overflow: hidden; border-bottom: 1px solid rgb(215 225 241 / 88%); background: linear-gradient(115deg, rgb(230 241 255 / 82%), rgb(239 232 255 / 74%) 66%, rgb(225 247 255 / 72%)); }
.settings-campaign-editor__head::after { position: absolute; top: -80px; right: -35px; width: 210px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgb(111 91 255 / 18%), transparent 69%); content: ""; pointer-events: none; }
.settings-campaign-editor__head span { position: relative; z-index: 1; color: #5e63bd; font-size: 9px; font-weight: 850; letter-spacing: .16em; }
.settings-campaign-editor__head h3 { position: relative; z-index: 1; margin: 5px 0 4px; color: #1b2941; font-size: 17px; }
.settings-campaign-editor__head p { position: relative; z-index: 1; max-width: 700px; margin: 0; color: #65728a; font-size: 12px; line-height: 1.65; }
.settings-campaign-editor__fields { padding: 19px 21px 21px; }
.campaign-rich-editor .rich-editor__surface { min-height: 108px; }
.campaign-rich-editor .rich-editor__surface:empty::before { content: "请输入导航栏活动文案；留空则不显示活动推广条。"; }
.campaign-rich-editor [data-rich-editor-command="heading"],
.campaign-rich-editor [data-rich-editor-command="ul"],
.campaign-rich-editor [data-rich-editor-command="ol"],
.campaign-rich-editor [data-rich-editor-command="quote"],
.campaign-rich-editor [data-rich-editor-command="image"],
.campaign-rich-editor [data-rich-editor-command="video-upload"],
.campaign-rich-editor [data-rich-editor-command="library-image"],
.campaign-rich-editor [data-rich-editor-command="library-video"],
.campaign-rich-editor [data-rich-editor-command="video-link"],
.campaign-rich-editor [data-rich-editor-command="library-file"] { display: none; }
.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; gap: 9px; }
.toast { background: #17213a; color: #fff; border-radius: 10px; padding: 11px 14px; box-shadow: 0 12px 25px rgb(7 15 33 / 22%); font-size: 13px; animation: toast .2s ease-out; }
.toast.error { background: #b92835; }
@keyframes toast { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.loading { min-height: 250px; display: grid; place-items: center; color: var(--muted); }
.spinner { width: 29px; height: 29px; border: 3px solid #e1e6f1; border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Operations dashboard: denser, calmer and purpose-built for daily use. */
body { background: radial-gradient(circle at 77% -8%, #e4eaff 0, transparent 31%), radial-gradient(circle at 36% 107%, #ffe7e8 0, transparent 29%), #f5f7fb; }
.main { position: relative; }
.main::before { content: ""; pointer-events: none; position: fixed; inset: 0 0 0 258px; opacity: .42; background-image: linear-gradient(rgb(111 127 165 / 7%) 1px, transparent 1px), linear-gradient(90deg, rgb(111 127 165 / 7%) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, #000, transparent 68%); z-index: -1; }
.topbar { padding: 7px 0 20px; border-bottom: 1px solid rgb(219 225 239 / 70%); margin-bottom: 27px; }
.page-heading { margin-bottom: 22px; }
.page-heading h1 { font-weight: 820; }
.page-heading p { max-width: 630px; line-height: 1.55; }
.content-card, .panel { border-color: rgb(218 225 239 / 92%); box-shadow: 0 17px 44px rgb(36 55 95 / 6%); }
.content-card { background: rgb(255 255 255 / 92%); backdrop-filter: blur(10px); }
.panel { background: rgb(255 255 255 / 88%); backdrop-filter: blur(11px); }
.dashboard-hero { min-height: 168px; display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 28px 30px; margin-bottom: 16px; overflow: hidden; position: relative; border-radius: 22px; color: #fff; background: linear-gradient(120deg, #121b34 0%, #202b51 55%, #74313d 145%); box-shadow: 0 24px 54px rgb(15 25 58 / 23%); }
.dashboard-hero::before { content: ""; position: absolute; width: 420px; height: 420px; right: -105px; top: -267px; border: 1px solid rgb(255 255 255 / 20%); border-radius: 50%; box-shadow: 0 0 0 45px rgb(255 255 255 / 4%), 0 0 0 91px rgb(255 255 255 / 3%); }
.dashboard-hero::after { content: ""; position: absolute; right: 82px; bottom: -90px; width: 180px; height: 180px; transform: rotate(28deg); background: linear-gradient(135deg, transparent 28%, rgb(227 52 61 / 92%) 29% 31%, transparent 32%); opacity: .9; }
.dashboard-hero > * { position: relative; z-index: 1; }
.dashboard-kicker, .panel-eyebrow { color: #8292ba; font-size: 10px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.dashboard-kicker { display: flex; align-items: center; gap: 9px; color: #bcc9e8; }
.dashboard-kicker > span { width: 8px; height: 8px; background: #55d6a5; border-radius: 50%; box-shadow: 0 0 0 4px rgb(85 214 165 / 14%); }
.dashboard-kicker b { margin-left: 7px; padding-left: 15px; color: #f3b8bd; border-left: 1px solid rgb(255 255 255 / 20%); font-size: 10px; letter-spacing: .08em; }
.dashboard-hero h2 { margin: 11px 0 7px; letter-spacing: -.055em; font-size: clamp(27px, 3.1vw, 40px); line-height: 1; }
.dashboard-hero p { max-width: 650px; margin: 0; color: #c8d2e8; font-size: 13px; line-height: 1.7; }
.dashboard-hero-actions { display: flex; gap: 9px; flex: 0 0 auto; }
.dashboard-hero .button.ghost { border-color: rgb(255 255 255 / 19%); color: #fff; background: rgb(255 255 255 / 9%); }
.metrics--operations { gap: 13px; margin-bottom: 16px; }
.metrics--operations .metric { position: relative; min-height: 143px; padding: 18px 19px; border-radius: 17px; overflow: hidden; }
.metrics--operations .metric::after { content: ""; position: absolute; width: 95px; height: 95px; border-radius: 50%; right: -48px; bottom: -48px; background: var(--metric-wash, #edf0ff); }
.metrics--operations .metric:nth-child(1) { --metric-wash: #e5ebff; }
.metrics--operations .metric:nth-child(2) { --metric-wash: #e4f6ef; }
.metrics--operations .metric:nth-child(3) { --metric-wash: #ffe8eb; }
.metrics--operations .metric:nth-child(4) { --metric-wash: #fff1d8; }
.metrics--operations .metric strong { font-size: 32px; position: relative; z-index: 1; }
.metrics--operations .metric > span { display: block; max-width: 190px; line-height: 1.45; position: relative; z-index: 1; }
.metrics--operations .metric > i { display: inline-block; margin-top: 11px; padding: 4px 7px; border-radius: 999px; color: #62708d; background: #f3f5f9; font-size: 10px; font-style: normal; font-weight: 800; position: relative; z-index: 1; }
.metrics--operations .metric.metric--messages { --metric-wash: #ddf8ee; border-color: rgb(180 226 210 / 78%); }
.metrics--operations .metric.metric--messages::after { background: radial-gradient(circle, rgb(61 207 154 / 17%), rgb(8 168 245 / 5%) 62%, transparent 64%); }
.metrics--operations .metric--messages .metric-icon { color: #087354; background: linear-gradient(135deg, #ddf9ef, #e5f2ff); }
.metrics--operations .metric--messages strong { margin-top: 10px; }
.message-breakdown { position: relative; z-index: 1; display: grid; gap: 5px; margin-top: 8px; }
.message-breakdown > span { display: flex; max-width: none; align-items: center; gap: 7px; min-width: 0; color: #63728b; font-size: 10.5px; line-height: 1.25; }
.message-breakdown em { min-width: 0; overflow: hidden; font-style: normal; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.message-breakdown b { margin-left: auto; color: #243b51; font-size: 11px; font-weight: 850; font-variant-numeric: tabular-nums; }
.message-source-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; }
.message-source-dot--contact { background: #4c79dc; box-shadow: 0 0 0 3px rgb(76 121 220 / 10%); }
.message-source-dot--reception { background: #21ae7b; box-shadow: 0 0 0 3px rgb(33 174 123 / 10%); }
.dashboard-analytics-grid { display: grid; grid-template-columns: minmax(0, 1.36fr) minmax(320px, .64fr); gap: 16px; margin-bottom: 16px; }
.dashboard-bottom-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.panel { min-width: 0; border-radius: 17px; }
.panel-head { padding: 18px 20px 15px; }
.panel-head h2 { margin-top: 5px; font-size: 16px; }
.panel-head p { line-height: 1.5; }
.panel-eyebrow { display: block; color: #8a98b3; }
.period-chip { padding: 6px 9px; border-radius: 999px; color: #52617c; background: #eff3fa; font-size: 11px; font-weight: 800; white-space: nowrap; }
.traffic-period-picker { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; max-width: 244px; }
.traffic-period-option { min-width: 42px; border: 1px solid #dce3ef; border-radius: 999px; padding: 5px 7px; color: #6e7c95; background: #fff; font-size: 10px; font-weight: 800; line-height: 1.1; transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.traffic-period-option:hover { border-color: #ef9ba1; color: #d3343d; }
.traffic-period-option.is-active { border-color: #e3343d; color: #fff; background: #e3343d; box-shadow: 0 4px 9px rgb(227 52 61 / 20%); }
.trend-panel { background: linear-gradient(145deg, rgb(255 255 255 / 97%), rgb(243 247 255 / 88%)); }
.traffic-chart { display: grid; grid-template-columns: 25px 1fr; gap: 8px; height: 190px; padding: 0 0 4px; }
.traffic-scale { display: flex; flex-direction: column; justify-content: space-between; color: #a1adbf; font-size: 10px; text-align: right; padding: 4px 0 28px; }
.traffic-bars { display: grid; grid-template-columns: repeat(var(--traffic-day-count, 7), minmax(0, 1fr)); gap: clamp(5px, 1.4vw, 16px); }
.traffic-day { display: grid; grid-template-rows: 1fr auto auto; align-items: end; text-align: center; color: #7987a0; font-size: 11px; }
.traffic-track { height: 145px; display: flex; align-items: end; justify-content: center; position: relative; border-bottom: 1px solid #dde4f0; background: repeating-linear-gradient(to bottom, transparent 0 35px, rgb(215 223 238 / 62%) 36px 37px); }
.traffic-track i { position: relative; display: block; width: min(31px, 70%); min-height: 3px; border-radius: 8px 8px 3px 3px; background: linear-gradient(to top, #e43440, #ff818a); box-shadow: 0 6px 12px rgb(227 52 61 / 22%); transition: height .35s ease; }
.traffic-track i b { position: absolute; top: -21px; left: 50%; transform: translateX(-50%); color: #26334d; font-size: 10px; font-style: normal; font-weight: 850; }
.traffic-day > span { margin-top: 9px; font-weight: 800; }
.traffic-day small { margin-top: 2px; color: #a5afc0; font-size: 9px; }
.traffic-line-wrap { min-width: 0; display: grid; grid-template-rows: 145px auto; }
.traffic-line { display: block; width: 100%; height: 145px; overflow: visible; }
.traffic-line-grid { fill: none; stroke: #d7dfee; stroke-width: 1; vector-effect: non-scaling-stroke; }
.traffic-line-area { fill: url(#traffic-line-fill); }
.traffic-line-path { fill: none; stroke: #e3343d; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 4px 4px rgb(227 52 61 / 18%)); }
.traffic-line-labels { display: grid; grid-template-columns: repeat(var(--traffic-day-count), minmax(0, 1fr)); align-items: start; min-height: 28px; color: #a5afc0; font-size: 9px; }
.traffic-line-labels span { min-width: 0; text-align: center; white-space: nowrap; transform: translateX(-50%); }
.traffic-line-labels span:first-child { text-align: left; transform: none; }
.traffic-line-labels span:last-child { text-align: right; transform: none; }
.traffic-source-panel { margin-bottom: 16px; background: linear-gradient(145deg, rgb(255 255 255 / 97%), rgb(245 250 248 / 90%)); }
.traffic-source-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr); gap: 22px; }
.traffic-source-list { display: grid; gap: 3px; }
.traffic-source-row { display: grid; grid-template-columns: 31px minmax(0, 1fr) 84px; gap: 9px; align-items: center; min-height: 49px; border-bottom: 1px solid #e9f0ee; }
.traffic-source-row:last-child { border-bottom: 0; }
.traffic-source-icon { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 8px; color: #197a63; background: #e5f7f0; font-size: 13px; font-weight: 850; }
.traffic-source-row strong, .traffic-source-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.traffic-source-row strong { color: #34465d; font-size: 12px; }
.traffic-source-row small { margin-top: 2px; color: #94a3ad; font-size: 10px; }
.traffic-source-value { position: relative; align-self: stretch; display: grid; grid-template-columns: auto auto; justify-content: end; align-content: center; column-gap: 3px; padding-bottom: 5px; }
.traffic-source-value b { color: #1e3250; font-size: 13px; }
.traffic-source-value small { margin: 0; }
.traffic-source-value i { position: absolute; right: 0; bottom: 0; width: var(--source-width); height: 3px; border-radius: 999px; background: linear-gradient(90deg, #33bd92, #0d8064); }
.traffic-qr-summary { display: grid; align-content: start; padding: 14px 15px; border: 1px solid #d7ebe3; border-radius: 13px; background: #f4fbf8; }
.traffic-qr-summary > span { color: #30826c; font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.traffic-qr-summary > strong { margin-top: 5px; color: #153a35; font-size: 31px; line-height: 1; }
.traffic-qr-summary > small { margin-top: 5px; color: #7b948e; font-size: 10px; }
.traffic-qr-summary > p { margin: 14px 0 0; color: #879b96; font-size: 11px; line-height: 1.45; }
.traffic-qr-list { display: grid; gap: 6px; margin-top: 13px; padding-top: 10px; border-top: 1px solid #dceee8; }
.traffic-qr-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; color: #4d665f; font-size: 11px; }
.traffic-qr-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.traffic-qr-list b { color: #197a63; font-size: 11px; }
.rank-list { display: grid; gap: 2px; }
.rank-row { min-width: 0; display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; gap: 9px; align-items: center; min-height: 41px; border-bottom: 1px solid #edf0f5; }
.rank-row:last-child { border-bottom: 0; }
.rank-index { color: #acb7c9; font-size: 11px; font-weight: 850; }
.rank-row:first-child .rank-index { color: var(--brand); }
.rank-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #43506a; font-size: 12px; font-weight: 750; }
.rank-row strong { color: #15223e; font-size: 13px; }
.rank-row strong small { margin-left: 4px; color: #95a2b8; font-size: 10px; font-weight: 700; }
.text-button { border: 0; padding: 5px 0; color: var(--brand); background: transparent; font-size: 11px; font-weight: 850; }
.workflow-list { display: grid; gap: 7px; }
.workflow-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 46px; padding: 8px 9px; border: 1px solid #edf0f5; border-radius: 10px; color: #26324d; background: rgb(255 255 255 / 72%); text-align: left; transition: .18s ease; }
.workflow-row:hover { border-color: #c9d3ec; background: #fff; transform: translateX(2px); }
.workflow-row strong, .workflow-row small { display: block; }
.workflow-row strong { font-size: 12px; }
.workflow-row small { margin-top: 2px; color: #929fb5; font-size: 10px; }
.workflow-row em { color: #5770b5; font-size: 11px; font-style: normal; font-weight: 800; }
.recent-panel .feed-row { padding: 9px 0; }
.quick-panel { margin-bottom: 5px; }
.quick-actions--wide { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.quick-actions--wide .quick-action { align-items: flex-start; min-height: 86px; }
.quick-actions--wide .quick-action:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgb(25 44 87 / 8%); }
.quick-actions--wide .quick-action:nth-child(2) .quick-icon { color: var(--brand); background: #fff0f1; }
.quick-actions--wide .quick-action:nth-child(3) .quick-icon { color: #8149aa; background: #f5efff; }
.quick-actions--wide .quick-action:nth-child(4) .quick-icon { color: #0c8767; background: #e8f8f2; }

.tracking-workspace { display: grid; gap: 16px; }
.tracking-create-panel { overflow: hidden; background: linear-gradient(135deg, #ffffff 0%, #f1f7ff 100%); }
.tracking-form { padding-top: 1px; }
.tracking-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 15px; }
.tracking-form .field { margin: 0; }
.tracking-form .field label { display: block; margin-bottom: 6px; color: #596985; font-size: 11px; font-weight: 800; }
.tracking-fixed-field { display: grid; align-content: center; min-height: 65px; padding: 10px 12px; border: 1px solid #dce7f2; border-radius: 9px; background: #f7faff; }
.tracking-fixed-field label, .tracking-fixed-field small { color: #7e8fa8; font-size: 10px; font-weight: 750; }
.tracking-fixed-field strong { margin: 2px 0; color: #263d66; font-size: 15px; letter-spacing: .04em; }
.tracking-medium-control { display: flex; gap: 7px; }
.tracking-medium-control select { min-width: 0; flex: 1; }
.tracking-medium-field > small { display: block; margin-top: 5px; color: #7e8fa8; font-size: 10px; }
.tracking-medium-editor { display: grid; gap: 10px; padding: 12px; border: 1px solid #cdddf1; border-radius: 10px; background: #f4f8ff; }
.tracking-medium-editor > div:first-child { display: grid; gap: 3px; }
.tracking-medium-editor strong { color: #314b74; font-size: 12px; }
.tracking-medium-editor small { color: #7386a1; font-size: 10px; line-height: 1.45; }
.tracking-medium-editor-fields { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) auto; gap: 8px; }
.tracking-medium-library { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; padding: 11px 12px; border: 1px solid #e0e8f2; border-radius: 10px; background: #fbfcfe; }
.tracking-medium-library > div:first-child { display: grid; align-content: start; gap: 3px; }
.tracking-medium-library strong { color: #536683; font-size: 11px; }
.tracking-medium-library small, .tracking-medium-library p { margin: 0; color: #8291a6; font-size: 10px; line-height: 1.45; }
.tracking-medium-list { display: flex; flex-wrap: wrap; gap: 6px; align-content: start; }
.tracking-medium-item { display: flex; align-items: center; gap: 5px; padding: 4px 4px 4px 7px; border: 1px solid #dfe7f1; border-radius: 7px; background: #fff; }
.tracking-medium-item span { display: inline-flex; align-items: baseline; gap: 4px; color: #50627e; font-size: 10px; }
.tracking-medium-item b { font-size: 10px; }
.tracking-medium-item code { color: #8290a5; font-size: 9px; }
.tracking-medium-item .button { min-height: 24px; padding: 4px 6px; font-size: 9px; }
.tracking-medium-item.is-archived { opacity: .56; background: #f1f4f8; }
.tracking-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 17px; padding-top: 15px; border-top: 1px solid #dae5f2; }
.tracking-form-foot small { max-width: 560px; color: #7e8fa8; font-size: 11px; line-height: 1.5; }
.tracking-library-panel { background: rgb(255 255 255 / 90%); }
.tracking-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); gap: 13px; }
.tracking-card { display: grid; grid-template-columns: 126px minmax(0, 1fr); gap: 15px; padding: 15px; border: 1px solid #dbe4f0; border-radius: 14px; background: #fff; box-shadow: 0 6px 16px rgb(20 45 82 / 4%); }
.tracking-card.is-archived { opacity: .72; background: #f8fafc; }
.tracking-qr { display: grid; align-self: start; place-items: center; overflow: hidden; min-height: 126px; padding: 8px; border: 1px solid #d8e2ef; border-radius: 11px; background: #fff; }
.tracking-qr img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.tracking-card-main { min-width: 0; }
.tracking-card-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.tracking-code-status { display: inline-block; padding: 3px 6px; border-radius: 999px; color: #23765e; background: #e6f8f1; font-size: 9px; font-weight: 850; }
.is-archived .tracking-code-status { color: #7e889a; background: #edf0f5; }
.tracking-card h3 { margin: 6px 0 0; color: #273751; font-size: 15px; }
.tracking-link { display: block; overflow: hidden; margin-top: 7px; color: #4e73b7; font-size: 10px; line-height: 1.45; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.tracking-link:hover { color: var(--brand); text-decoration: underline; }
.tracking-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.tracking-tags span { padding: 3px 6px; border: 1px solid #e0e7f1; border-radius: 5px; color: #728099; background: #f8faff; font-size: 9px; font-weight: 750; }
.tracking-card-stats { display: flex; align-items: center; gap: 11px; margin-top: 10px; padding: 9px 10px; border-radius: 8px; background: #f3f7fc; }
.tracking-card-stats strong { display: flex; align-items: baseline; gap: 4px; color: #1d365d; font-size: 19px; }
.tracking-card-stats strong small { color: #697d9a; font-size: 10px; font-weight: 700; }
.tracking-card-stats > span { color: #8390a4; font-size: 10px; }
.tracking-note { display: grid; gap: 5px; margin-top: 10px; }
.tracking-note > span { color: #8290a5; font-size: 10px; font-weight: 800; }
.tracking-note textarea { min-height: 53px; resize: vertical; padding: 8px; border: 1px solid #dce4ee; border-radius: 7px; color: #44536c; background: #fff; font-size: 11px; line-height: 1.45; }
.tracking-note textarea:focus { outline: 0; border-color: #7498d7; box-shadow: 0 0 0 3px rgb(62 112 203 / 10%); }
.tracking-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.tracking-card-actions a { text-decoration: none; }

/* Dynamic attribution QR management */
.tracking-environment-alert { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid #f1cd87; border-radius: 10px; color: #765212; background: #fff8e8; font-size: 13px; line-height: 1.5; }
.tracking-environment-alert strong { flex: 0 0 auto; padding: 3px 8px; border-radius: 999px; color: #fff; background: #a66b08; font-size: 11px; letter-spacing: .04em; }
.tracking-summary-grid, .tracking-detail-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tracking-summary-grid article, .tracking-detail-metrics article { display: grid; gap: 4px; min-height: 112px; padding: 17px 18px; border: 1px solid #dce5f0; border-radius: 12px; background: #fff; box-shadow: 0 5px 14px rgb(15 23 42 / 4%); }
.tracking-summary-grid span, .tracking-detail-metrics span { color: #62738f; font-size: 12px; font-weight: 750; }
.tracking-summary-grid strong, .tracking-detail-metrics strong { color: #172b4d; font-size: 28px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tracking-summary-grid small, .tracking-detail-metrics small { color: #7b8ba4; font-size: 12px; line-height: 1.45; }
.tracking-list-head { align-items: flex-end; }
.tracking-list-controls { display: grid; grid-template-columns: minmax(260px, 1fr) 180px; gap: 12px; margin-bottom: 16px; }
.tracking-list-controls label { display: grid; gap: 6px; }
.tracking-list-controls label > span { color: #5a6b86; font-size: 12px; font-weight: 800; }
.tracking-list-controls input, .tracking-list-controls select { min-height: 44px; font-size: 14px; }
.tracking-table-wrap { overflow-x: auto; border: 1px solid #dce5ef; border-radius: 12px; }
.tracking-table { width: 100%; min-width: 1080px; border-collapse: collapse; background: #fff; }
.tracking-table th { padding: 11px 12px; border-bottom: 1px solid #dce5ef; color: #667792; background: #f7f9fc; font-size: 11px; font-weight: 850; letter-spacing: .03em; text-align: left; white-space: nowrap; }
.tracking-table td { max-width: 270px; padding: 12px; border-bottom: 1px solid #e8edf4; color: #35445d; font-size: 13px; vertical-align: middle; }
.tracking-table tr:last-child td { border-bottom: 0; }
.tracking-table tbody tr { transition: background 180ms ease; }
.tracking-table tbody tr:hover { background: #f8fbff; }
.tracking-table td > a { display: block; overflow: hidden; margin-top: 4px; color: #4b6fae; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.tracking-table td > small, .tracking-table td > span + small { display: block; margin-top: 4px; color: #7c8aa0; font-size: 11px; }
.tracking-table-qr { display: grid; width: 58px; height: 58px; padding: 5px; border: 1px solid #dce5ef; border-radius: 8px; background: #fff; cursor: pointer; transition: border-color 180ms ease, box-shadow 180ms ease; }
.tracking-table-qr:hover, .tracking-table-qr:focus-visible { border-color: #7498d7; box-shadow: 0 0 0 3px rgb(3 105 161 / 10%); outline: 0; }
.tracking-table-qr img { width: 100%; height: 100%; object-fit: contain; }
.tracking-name-link { display: grid; max-width: 250px; gap: 5px; padding: 0; border: 0; color: inherit; background: none; text-align: left; cursor: pointer; }
.tracking-name-link strong { color: #223656; font-size: 13px; }
.tracking-name-link code { overflow: hidden; color: #5978aa; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.tracking-domain-label { display: block; color: #2f4568; font-size: 12px; font-weight: 800; }
.tracking-medium-badge { display: inline-flex; padding: 4px 7px; border: 1px solid #dbe5f1; border-radius: 6px; color: #4f6484; background: #f7f9fc; font-size: 11px; font-weight: 800; }
.tracking-count { display: block; color: #1f3b67; font-size: 20px; font-variant-numeric: tabular-nums; }
.tracking-code-status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 850; white-space: nowrap; }
.tracking-code-status::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.tracking-code-status.is-active { color: #137155; background: #e7f7f1; }
.tracking-code-status.is-paused { color: #96630b; background: #fff3d8; }
.tracking-code-status.is-disabled { color: #6d7789; background: #edf0f4; }
.tracking-code-status.is-trashed { color: #9b2c39; background: #ffeaed; }
.button.tracking-recycle-trigger { min-height: 44px; }
.tracking-recycle-trigger > span { display: inline-grid; min-width: 20px; height: 20px; place-items: center; padding: 0 5px; border-radius: 999px; color: #fff; background: #b82735; font-size: 10px; font-variant-numeric: tabular-nums; }
.tracking-row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.tracking-filter-empty { padding: 28px; color: #718098; text-align: center; }
.tracking-settings-panel { overflow: hidden; border: 1px solid #dce5ef; border-radius: 12px; background: #fff; }
.tracking-settings-panel summary { padding: 15px 18px; color: #344966; font-size: 13px; font-weight: 850; cursor: pointer; }
.tracking-settings-body { display: grid; gap: 14px; padding: 0 18px 18px; border-top: 1px solid #e8edf4; }
.tracking-settings-body > div:first-child { padding-top: 16px; }
.tracking-settings-body p { margin: 4px 0 0; color: #73829a; font-size: 12px; line-height: 1.55; }
.tracking-settings-body > .button { justify-self: start; }

.tracking-detail-workspace { display: grid; gap: 16px; }
.tracking-back { justify-self: start; padding: 5px 0; border: 0; color: #506b98; background: none; font-size: 13px; font-weight: 800; cursor: pointer; }
.tracking-back:hover { color: #0369a1; }
.tracking-detail-hero { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 22px; padding: 22px; }
.tracking-detail-qr { display: grid; align-content: start; justify-items: center; gap: 9px; padding: 13px; border: 1px solid #dce5ef; border-radius: 12px; background: #fff; }
.tracking-detail-qr img { width: 160px; height: 160px; }
.tracking-detail-qr span { color: #6d7c92; font-size: 11px; font-weight: 800; }
.tracking-detail-main { min-width: 0; }
.tracking-detail-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.tracking-detail-title h2 { margin: 8px 0 4px; color: #1c3154; font-size: 24px; }
.tracking-detail-title p { margin: 0; color: #728199; font-size: 13px; }
.tracking-detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.tracking-fixed-link { display: grid; gap: 7px; margin-top: 20px; padding: 14px 15px; border: 1px solid #cfe0f3; border-radius: 10px; background: #f5f9ff; }
.tracking-fixed-link > span { color: #647895; font-size: 11px; font-weight: 850; }
.tracking-fixed-link code { overflow-wrap: anywhere; color: #204c87; font-size: 14px; font-weight: 650; }
.tracking-fixed-link > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 3px; }
.tracking-fixed-link a { text-decoration: none; }
.tracking-detail-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; }
.tracking-target-panel .panel-head, .tracking-trend-panel .panel-head { align-items: flex-start; }
.tracking-target-domain { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 8px; background: #f5f8fc; }
.tracking-target-domain span { color: #718098; font-size: 12px; }
.tracking-target-domain strong { color: #263d62; font-size: 13px; }
.tracking-target-url { display: block; overflow-wrap: anywhere; margin-top: 12px; color: #3e69ad; font-size: 13px; line-height: 1.55; }
.tracking-definition-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 16px 0; }
.tracking-definition-list div { padding: 10px 11px; border: 1px solid #e1e8f1; border-radius: 8px; }
.tracking-definition-list dt { color: #7a889d; font-size: 11px; }
.tracking-definition-list dd { overflow-wrap: anywhere; margin: 3px 0 0; color: #314763; font-size: 12px; font-weight: 750; }
.tracking-final-url { margin-bottom: 14px; padding: 10px 11px; border: 1px solid #e1e8f1; border-radius: 8px; }
.tracking-final-url summary { color: #536a8b; font-size: 12px; font-weight: 800; cursor: pointer; }
.tracking-final-url code { display: block; overflow-wrap: anywhere; margin-top: 9px; color: #5c6c83; font-size: 11px; line-height: 1.55; }
.tracking-daily-chart { display: flex; align-items: end; gap: 5px; min-height: 240px; padding: 18px 10px 26px; border-bottom: 1px solid #dce5ef; }
.tracking-daily-column { position: relative; display: flex; flex: 1 1 0; align-items: end; height: 190px; }
.tracking-daily-column i { display: block; width: 100%; height: var(--bar-height); min-height: 3px; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, #4e8bd5, #235fa9); transition: height 220ms ease; }
.tracking-daily-column small { position: absolute; top: calc(100% + 7px); color: #8190a5; font-size: 10px; white-space: nowrap; }
.tracking-daily-column:last-child small { right: 0; }
.tracking-history-list { display: grid; }
.tracking-history-list article { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; padding: 4px 0 22px; }
.tracking-history-list article:not(:last-child)::before { position: absolute; top: 14px; bottom: 0; left: 6px; width: 1px; background: #d8e2ee; content: ""; }
.tracking-history-dot { z-index: 1; width: 13px; height: 13px; margin-top: 2px; border: 3px solid #d7e8fb; border-radius: 50%; background: #2f6fb9; }
.tracking-history-list header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tracking-history-list header strong { color: #2a3f5e; font-size: 13px; }
.tracking-history-list time { color: #7e8ca1; font-size: 11px; }
.tracking-history-list p { margin: 4px 0 0; color: #6d7c92; font-size: 12px; }
.tracking-history-change { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 9px; margin-top: 9px; padding: 10px; border-radius: 8px; background: #f7f9fc; }
.tracking-history-change del, .tracking-history-change ins { overflow-wrap: anywhere; font-size: 11px; line-height: 1.45; text-decoration: none; }
.tracking-history-change del { color: #8a6470; }
.tracking-history-change ins { color: #28745e; }

.tracking-modal { max-width: 620px; }
.tracking-editor-form { display: grid; gap: 16px; }
.tracking-editor-form .field { margin: 0; }
.tracking-editor-form input, .tracking-editor-form select { min-height: 44px; font-size: 14px; }
.tracking-editor-form textarea { min-height: 92px; font-size: 14px; }
.tracking-editor-form .field small { display: block; margin-top: 6px; color: #74839a; font-size: 12px; line-height: 1.5; }
.tracking-modal-notice, .tracking-readonly-code { display: grid; gap: 5px; padding: 12px 13px; border: 1px solid #cfe0f3; border-radius: 9px; background: #f4f8fe; }
.tracking-modal-notice.is-test { border-color: #f0d397; background: #fff8e9; }
.tracking-modal-notice strong, .tracking-readonly-code span { color: #526b8f; font-size: 11px; }
.tracking-modal-notice span, .tracking-readonly-code code { overflow-wrap: anywhere; color: #244b80; font-size: 12px; }
.tracking-check { display: flex; align-items: flex-start; gap: 10px; min-height: 48px; padding: 11px 12px; border: 1px solid #dce5ef; border-radius: 9px; cursor: pointer; }
.tracking-check input { width: 18px; min-height: 18px; margin-top: 2px; }
.tracking-check span { display: grid; gap: 3px; }
.tracking-check strong { color: #354966; font-size: 13px; }
.tracking-check small { color: #74839a; font-size: 12px; line-height: 1.45; }
.tracking-inline-error { padding: 10px 12px; border: 1px solid #efb7b7; border-radius: 8px; color: #9e2929; background: #fff3f3; font-size: 12px; line-height: 1.5; }
.tracking-address-comparison { display: grid; gap: 8px; }
.tracking-address-comparison div { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid #e0e7f0; border-radius: 8px; background: #f8fafc; }
.tracking-address-comparison span { color: #78869a; font-size: 11px; font-weight: 800; }
.tracking-address-comparison code { overflow-wrap: anywhere; color: #405979; font-size: 12px; line-height: 1.5; }
.danger-copy { color: #9b3333; font-size: 12px; }
.button.tracking-lifecycle-action { min-height: 44px; padding-inline: 13px; }
.tracking-danger-modal .modal-head { border-top: 4px solid #b82735; }
.tracking-danger-modal .modal-foot .button.danger { min-height: 44px; padding-inline: 17px; color: #fff; background: #b82735; }
.tracking-danger-modal .modal-foot .button.danger:hover { background: #98212e; }
.tracking-lifecycle-warning { display: grid; gap: 8px; padding: 14px 15px; border: 1px solid #efc1c6; border-radius: 10px; color: #6f3037; background: #fff5f6; }
.tracking-lifecycle-warning strong { color: #7f2330; font-size: 14px; }
.tracking-lifecycle-warning code { overflow-wrap: anywhere; color: #98313e; font-size: 12px; }
.tracking-lifecycle-warning p { margin: 0; color: #7f5960; font-size: 12px; line-height: 1.55; }
.tracking-lifecycle-warning.is-critical { border-color: #e99fa8; background: #fff0f2; }
.tracking-lifecycle-warning ul { display: grid; gap: 6px; margin: 0; padding-left: 20px; color: #7c3640; font-size: 12px; line-height: 1.45; }
.tracking-purge-identity { display: grid; gap: 5px; padding: 11px 13px; border: 1px solid #dde5ef; border-radius: 9px; background: #f8fafc; }
.tracking-purge-identity span { color: #53637b; font-size: 12px; font-weight: 800; }
.tracking-purge-identity code { color: #213e68; font-size: 14px; font-weight: 750; letter-spacing: .04em; }
.tracking-recycle-modal { max-width: 900px; }
.tracking-recycle-list { display: grid; gap: 10px; }
.tracking-recycle-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 15px 16px; border: 1px solid #dce5ef; border-radius: 12px; background: #fff; }
.tracking-recycle-item-main { display: grid; min-width: 0; gap: 7px; }
.tracking-recycle-item-main > div { display: flex; align-items: center; gap: 9px; }
.tracking-recycle-item h3 { overflow: hidden; margin: 0; color: #233754; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.tracking-recycle-item code { overflow: hidden; color: #55739f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.tracking-recycle-item a { overflow: hidden; color: #607590; font-size: 11px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.tracking-recycle-item a:hover { color: #285d9e; text-decoration: underline; }
.tracking-recycle-item p { margin: 0; color: #7a899e; font-size: 11px; line-height: 1.45; }
.tracking-recycle-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.tracking-recycle-empty { display: grid; justify-items: center; gap: 8px; padding: 48px 20px; color: #738198; text-align: center; }
.tracking-recycle-empty > span { color: #aab5c6; font-size: 34px; }
.tracking-recycle-empty strong { color: #2f425f; font-size: 15px; }
.tracking-recycle-empty p { max-width: 420px; margin: 0; font-size: 12px; line-height: 1.55; }
.tracking-domain-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 10px; padding: 15px; border: 1px solid #dce5ef; border-radius: 10px; background: #f8fafe; }
.tracking-domain-form .field { margin: 0; }
.tracking-domain-form input { min-height: 44px; }
.tracking-domain-form .tracking-inline-error { grid-column: 1 / -1; }
.tracking-domain-list { display: grid; gap: 8px; margin-top: 16px; }
.tracking-domain-list article { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border: 1px solid #e0e7f0; border-radius: 9px; }
.tracking-domain-list article > div { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 7px 10px; min-width: 0; }
.tracking-domain-list strong { overflow: hidden; color: #2c405f; font-size: 13px; text-overflow: ellipsis; }
.tracking-domain-list small { grid-column: 1 / -1; color: #78869a; font-size: 11px; }

@media (prefers-reduced-motion: reduce) {
  .tracking-table tbody tr, .tracking-table-qr, .tracking-daily-column i { transition: none; }
}

@media (max-width: 1050px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid, .dashboard-analytics-grid, .media-layout { grid-template-columns: 1fr; }
  .media-libraries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-library-switch-layout { grid-template-columns: 1fr; }
  .media-library-switcher { position: static; }
  .media-library-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .media-directory-layout { grid-template-columns: 1fr; }
  .media-directory-tree { min-height: 0; }
  .dashboard-bottom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recent-panel { grid-column: 1 / -1; }
  .quick-actions--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .traffic-source-layout { grid-template-columns: 1fr; }
  .tracking-card-grid { grid-template-columns: 1fr; }
  .tracking-summary-grid, .tracking-detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tracking-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1380px) {
  .media-libraries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .trend-panel .panel-head { align-items: flex-start; flex-direction: column; }
  .traffic-period-picker { justify-content: flex-start; max-width: none; }
  .tracking-form-grid { grid-template-columns: 1fr; }
  .tracking-medium-editor-fields, .tracking-medium-library { grid-template-columns: 1fr; }
  .tracking-form-foot { align-items: stretch; flex-direction: column; }
  .tracking-form-foot .button { justify-content: center; }
  .tracking-card { grid-template-columns: 1fr; }
  .tracking-qr { width: 142px; }
  .tracking-summary-grid, .tracking-detail-metrics { grid-template-columns: 1fr; }
  .tracking-summary-grid article, .tracking-detail-metrics article { min-height: 96px; }
  .tracking-list-controls { grid-template-columns: 1fr; }
  .tracking-list-head { align-items: stretch; }
  .tracking-list-head .traffic-period-picker { width: 100%; }
  .tracking-table-wrap { overflow: visible; border: 0; }
  .tracking-table { min-width: 0; background: transparent; }
  .tracking-table thead { display: none; }
  .tracking-table tbody { display: grid; gap: 10px; }
  .tracking-table tr { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 8px 12px; padding: 13px; border: 1px solid #dce5ef; border-radius: 12px; background: #fff; }
  .tracking-table td { display: block; max-width: none; padding: 0; border: 0; }
  .tracking-table td:first-child { grid-row: 1 / span 2; }
  .tracking-table td:nth-child(n+3) { grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid #edf1f6; }
  .tracking-table td:nth-child(4), .tracking-table td:nth-child(5), .tracking-table td:nth-child(6) { display: inline-flex; grid-column: auto; align-items: center; gap: 7px; border: 0; }
  .tracking-table td:nth-child(7), .tracking-table td:nth-child(8) { grid-column: 1 / -1; }
  .tracking-name-link { max-width: 100%; }
  .tracking-detail-hero { grid-template-columns: 1fr; padding: 15px; }
  .tracking-detail-qr { justify-self: start; }
  .tracking-detail-title { flex-direction: column; }
  .tracking-detail-actions { justify-content: flex-start; }
  .tracking-definition-list { grid-template-columns: 1fr; }
  .tracking-daily-chart { min-height: 190px; }
  .tracking-daily-column { height: 140px; }
  .tracking-history-list header { align-items: flex-start; flex-direction: column; gap: 3px; }
  .tracking-history-change { grid-template-columns: 1fr; }
  .tracking-history-change span { transform: rotate(90deg); }
  .tracking-domain-form { grid-template-columns: 1fr; }
  .tracking-domain-list article { align-items: flex-start; flex-direction: column; }
  .tracking-modal .modal-foot { align-items: stretch; flex-direction: column; }
  .tracking-modal .modal-foot .actions { width: 100%; }
  .tracking-modal .modal-foot .actions .button { flex: 1; }
  .tracking-recycle-item { grid-template-columns: 1fr; align-items: stretch; }
  .tracking-recycle-actions { justify-content: stretch; }
  .tracking-recycle-actions .button { flex: 1; }
  .tracking-recycle-modal .modal-foot { align-items: stretch; flex-direction: column; }
  .tracking-recycle-modal .modal-foot .button { width: 100%; min-height: 44px; }
  .media-libraries { grid-template-columns: 1fr; }
  .media-library-tabs { grid-template-columns: 1fr; }
  .media-library-tab { min-height: 56px; }
  .media-library-workspace-head, .media-library-tools { align-items: stretch; flex-direction: column; }
  .media-library-count { align-self: flex-start; }
  .media-library-search { width: 100%; }
  .media-library-workspace .media-directory-settings { grid-template-columns: 1fr; }
  .media-upload-targets { grid-template-columns: 1fr; }
  .media-new-folder { grid-template-columns: 1fr; }
  .media-upload-dock .media-upload-actions .button { flex: 1 1 100%; }
  .media-recycle-summary, .media-recycle-row { align-items: stretch; grid-template-columns: 1fr; }
  .media-recycle-summary { flex-direction: column; }
  .media-recycle-preview { width: 100%; height: 120px; }
  .media-recycle-actions { justify-content: flex-start; }
  .product-asset-picker { padding: 0; }
  .product-asset-picker-dialog { width: 100%; max-height: 100vh; height: 100vh; border-radius: 0; }
  .product-asset-picker-dialog > header { padding: 17px; }
  .product-asset-picker-tools { align-items: stretch; flex-direction: column; padding: 10px 17px; }
  .product-asset-picker-tools label { width: 100%; }
  .product-asset-picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 15px 17px; }
  .product-asset-picker-dialog > footer { align-items: stretch; flex-direction: column; padding: 12px 17px; }
  .product-asset-picker-dialog > footer > div { width: 100%; }
  .product-asset-picker-dialog > footer .button { flex: 1; justify-content: center; }
}
@media (max-width: 780px) {
  .login-page { grid-template-columns: 1fr; }
  .login-intro { min-height: 270px; padding: 32px; }
  .login-copy h1 { font-size: 38px; }
  .login-copy p { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 13px; gap: 12px; }
  .workspace-label, .side-card, .side-spacer, .logout-link { display: none; }
  .side-nav { display: flex; overflow: auto; padding-bottom: 2px; }
  .nav-item { flex: 0 0 auto; min-height: 43px; gap: 8px; padding: 7px 9px; font-size: 13px; }
  .nav-item--external, .nav-item--tracking { margin-top: 0; }
  .nav-item::after { display: none; }
  .nav-icon { width: 20px; height: 20px; border-radius: 0; }
  .main { padding: 18px 14px 36px; }
  .topbar { margin-bottom: 21px; }
  .user-chip span { display: none; }
  .page-heading { align-items: start; flex-direction: column; margin-bottom: 18px; }
  .main::before { left: 0; }
  .dashboard-hero { align-items: flex-start; flex-direction: column; min-height: 0; padding: 24px 20px; }
  .dashboard-hero::after { display: none; }
  .dashboard-hero-actions { width: 100%; }
  .dashboard-hero-actions .button { flex: 1; }
  .dashboard-kicker b { display: none; }
  .dashboard-bottom-grid { grid-template-columns: 1fr; }
  .recent-panel { grid-column: auto; }
  .quick-actions--wide { grid-template-columns: 1fr; }
  .data-table th:nth-child(3), .data-table td:nth-child(3), .data-table th:nth-child(4), .data-table td:nth-child(4) { display: none; }
  .list-controls { align-items: stretch; flex-direction: column; }
  .search { min-width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .commerce-toggle-grid { grid-template-columns: 1fr; }
  .product-form-heading { display: block; }
  .product-form-heading p { margin-top: 8px; }
  .product-editor-layout { display: block; }
  .product-editor-nav { position: sticky; top: 0; z-index: 4; display: flex; min-height: 0; gap: 5px; overflow-x: auto; padding: 9px 12px; border-right: 0; border-bottom: 1px solid var(--line); background: rgb(247 249 253 / 96%); backdrop-filter: blur(8px); }
  .product-editor-nav-title, .product-editor-checklist { display: none; }
  .product-editor-nav button { flex: 0 0 auto; width: auto; padding: 7px 9px; font-size: 11px; white-space: nowrap; }
  .product-editor-nav button > span { display: none; }
  .product-editor-content { padding: 17px; }
  .product-editor-section { padding: 16px; }
  .product-spec-row { grid-template-columns: 1fr; align-items: stretch; }
  .product-spec-required, .product-spec-remove { justify-self: start; }
  .product-media-grid { grid-template-columns: 1fr; }
  .product-media-workbench { grid-template-columns: 1fr; }
  .product-media-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-image-preview, .product-image-preview img { min-height: 200px; }
  .product-publish-head { align-items: flex-start; }
  .product-publish-state .badge { display: none; }
  .product-publish-foot { align-items: stretch; flex-direction: column; }
  .product-publish-foot > div, .product-publish-foot .actions { width: 100%; }
  .product-publish-foot .actions .button { flex: 1; }
  .span-2 { grid-column: auto; }
  .modal-backdrop { padding: 0; }
  .modal { max-height: 100vh; border-radius: 0; }
  .modal-head, .modal-body, .modal-foot { padding-left: 17px; padding-right: 17px; }
  .product-media-controls { grid-template-columns: 1fr; }
  .product-gallery-head { align-items: flex-start; flex-direction: column; }
  .product-gallery-head .button { width: 100%; }
  .product-gallery-queue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-gallery-slot, .product-gallery-item { min-height: 146px; }
  .product-gallery-item-actions { opacity: 1; transform: none; }
  .product-gallery-item-actions button { width: 30px; height: 30px; }
  .inline-form { grid-template-columns: 1fr; }
  .mini-row { grid-template-columns: 1fr auto; }
  .mini-row span { grid-column: 1 / -1; }
}

/* Desktop operations refresh: a calmer, higher-density workspace without
   changing Directus calls, forms, or editor behaviour. */
@media (min-width:1025px) {
  :root { --ink:#13233a; --muted:#687991; --line:#dce5ef; --soft:#f4f7fb; --canvas:#eef3f8; --card:#fff; --nav:#101d31; --nav-2:#182a43; --brand:#df6430; --brand-dark:#c95020; --blue:#2f6fcb; --shadow:0 18px 42px rgb(20 42 67 / 8%); }
  body { background:radial-gradient(circle at 88% 2%,#e1edf6 0,transparent 28%),var(--canvas); }
  .app-shell { grid-template-columns:274px minmax(0,1fr); }
  .sidebar { gap:30px; padding:27px 16px 22px; background:linear-gradient(165deg,#142943 0%,#0c1728 78%); box-shadow:inset -1px 0 rgb(255 255 255 / 8%),12px 0 34px rgb(15 31 50 / 5%); }
  .sidebar::before { display:block; position:absolute; width:260px; height:260px; top:-155px; right:-125px; border:1px solid rgb(255 255 255 / 10%); border-radius:50%; box-shadow:0 0 0 34px rgb(255 255 255 / 2%),0 0 0 70px rgb(255 255 255 / 2%); content:""; pointer-events:none; }
  .sidebar .brand-lockup { padding:7px 12px; font-size:15px; }
  .sidebar .brand-logo { width:42px; height:42px; }
  .workspace-label { margin:8px 0 10px; }
  .side-nav { gap:4px; }
  .nav-item { min-height:46px; padding:9px 12px; border-radius:10px; }
  .nav-item.is-active { background:linear-gradient(90deg,rgb(111 165 255 / 19%),rgb(111 165 255 / 6%)); box-shadow:inset 0 0 0 1px rgb(151 187 243 / 10%); }
  .nav-item.is-active::after { width:3px; background:#ee8a4c; }
  .side-card { border-radius:16px; background:linear-gradient(145deg,rgb(255 255 255 / 11%),rgb(255 255 255 / 3%)); }
  .main { padding:30px clamp(34px,4vw,68px) 64px; }
  .topbar { position:sticky; top:0; z-index:5; min-height:68px; margin:0 -24px 31px; padding:0 24px; background:rgb(238 243 248 / 84%); border-bottom:1px solid rgb(210 221 233 / 66%); backdrop-filter:blur(14px); }
  .page-heading { margin-bottom:30px; }
  .page-heading h1 { font-size:clamp(31px,2.5vw,42px); letter-spacing:-.06em; }
  .page-heading p { max-width:620px; font-size:14px; line-height:1.65; }
  .button { min-height:39px; border-radius:9px; padding:10px 14px; }
  .button.primary { background:linear-gradient(135deg,#ee7940,#d85526); box-shadow:0 9px 17px rgb(210 75 33 / 18%); }
  .button.primary:hover { background:linear-gradient(135deg,#f18b52,#cf4c20); }
  .metrics { gap:18px; margin-bottom:26px; }
  .metric { min-height:136px; padding:20px; border-color:#dce5ef; border-radius:16px; box-shadow:0 12px 26px rgb(22 45 72 / 5%); }
  .metric::after { position:absolute; right:0; bottom:0; width:86px; height:5px; border-radius:999px 0 0; background:linear-gradient(90deg,transparent,#f1a16f); content:""; }
  .metric strong { margin-top:17px; color:#142842; font-size:32px; }
  .panel,.content-card { border-color:#dbe5ee; border-radius:17px; box-shadow:var(--shadow); }
  .panel-head { padding:21px 23px 16px; }
  .panel-head h2 { color:#172940; font-size:17px; }
  .panel-body { padding:0 23px 23px; }
  .quick-action { padding:15px; border-radius:12px; }
  .quick-action:hover { border-color:#f0b28f; background:#fffcfa; }
  .content-card { overflow:visible; }
  .list-controls { min-height:72px; padding:16px 20px; background:#fff; border-radius:17px 17px 0 0; }
  .data-table th { padding:13px 20px; background:#f5f8fb; }
  .data-table td { padding:16px 20px; }
  .data-table tbody tr { transition:background .16s ease; }
  .data-table tbody tr:hover { background:#fffcfa; }
  .search { min-height:40px; border:1px solid #e1e8f0; background:#fbfcfe; }
  .filter-tabs { background:#edf2f6; }
  .filter-tab.is-active { color:#19304b; box-shadow:0 2px 7px rgb(20 43 68 / 10%); }
  .modal-backdrop { padding:34px; background:rgb(10 25 42 / 48%); backdrop-filter:blur(6px); }
  .modal { border:1px solid rgb(255 255 255 / 75%); border-radius:18px; box-shadow:0 34px 90px rgb(7 20 36 / 28%); }
  .product-editor-nav { background:#f5f8fb; }
  .product-editor-section { border-radius:14px; }
}

/* Keep permission-center overrides after the legacy console theme layer. */
.side-nav .nav-item--admin { margin-top:10px; padding-top:15px; border-top:1px solid rgb(255 255 255 / 12%); color:#dce9ff; }
.permission-accounts.content-card { overflow:hidden; }

@media (prefers-reduced-motion: reduce) {
  .side-nav .nav-item--external.has-pending::before { animation: none; }
  .product-gallery-item.is-drop-target, .product-gallery-slot.is-drop-target, .product-gallery-item.is-drop-target::before, .product-gallery-slot.is-drop-target::before { animation: none; }
}

@media (max-width: 620px) {
  .metrics--operations .metric.metric--messages { grid-column: 1 / -1; }
  .message-breakdown > span { font-size: 11.5px; }
}

/* The editing surface mirrors every semantic format supported on the public
   site, so the author sees a faithful preview before saving. */
.rich-editor__surface { overflow-wrap:anywhere; }
.rich-editor__surface > :first-child { margin-top:0; }
.rich-editor__surface > :last-child { margin-bottom:0; }
.rich-editor__surface h1,
.rich-editor__surface h2,
.rich-editor__surface h3,
.rich-editor__surface h4,
.rich-editor__surface h5,
.rich-editor__surface h6 { margin:1.55em 0 .65em; color:#1f2c45; line-height:1.3; }
.rich-editor__surface h1 { font-size:24px; }
.rich-editor__surface h4 { font-size:15px; }
.rich-editor__surface h5 { font-size:14px; }
.rich-editor__surface h6 { font-size:13px; text-transform:uppercase; }
.rich-editor__surface ul { list-style:disc outside; }
.rich-editor__surface ol { list-style:decimal outside; }
.rich-editor__surface ul ul { list-style-type:circle; }
.rich-editor__surface li+li { margin-top:4px; }
.rich-editor__surface mark { padding:1px 3px; border-radius:3px; color:inherit; background:#e9e5ff; }
.rich-editor__surface s,
.rich-editor__surface strike,
.rich-editor__surface del { opacity:.72; }
.rich-editor__surface hr { height:1px; margin:24px 0; border:0; background:linear-gradient(90deg,#d9e9ff,#a99df4,#d9e9ff); }
.rich-editor__surface figure { max-width:100%; margin:18px 0; }
.rich-editor__surface figcaption { margin-top:7px; color:#71809a; font-size:11px; line-height:1.5; text-align:center; }
.rich-editor__surface pre { max-width:100%; overflow:auto; margin:16px 0; padding:13px; border-radius:8px; color:#eef4ff; background:#172640; font:500 12px/1.65 "JetBrains Mono",Consolas,monospace; white-space:pre-wrap; }
.rich-editor__surface :not(pre)>code { padding:2px 4px; border:1px solid #dfe7f6; border-radius:4px; color:#394d80; background:#eff4ff; font:500 12px/1.4 "JetBrains Mono",Consolas,monospace; }
.rich-editor__surface table { display:block; width:100%; max-width:100%; overflow-x:auto; margin:18px 0; border:1px solid #d9e2f0; border-collapse:collapse; border-radius:8px; }
.rich-editor__surface th,
.rich-editor__surface td { min-width:110px; padding:8px 9px; border:1px solid #d9e2f0; color:inherit; text-align:start; white-space:normal; }
.rich-editor__surface th { font-weight:800; background:linear-gradient(135deg,#edf6ff,#f2efff); }
.rich-editor__surface img,
.rich-editor__surface video,
.rich-editor__surface iframe { max-inline-size:100%; }
.rich-editor__toolbar button { cursor:pointer; transition:color .18s ease,background .18s ease; }
.rich-editor__toolbar button:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }

/* MODTEK category management uses one shared Directus source for the editor
   dropdown and the public catalogue filters. */
.product-category-cell { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
.product-category-cell > b { color:#2e3a51; font-size:12px; }
.field-warning { color:#b82735 !important; font-weight:720; }
.product-category-manager-modal { width:min(100%,1160px) !important; }
.product-category-manager-layout { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr); gap:22px; align-items:start; background:linear-gradient(145deg,#f8fbff,#fbf9ff); }
.product-category-manager-side { min-width:0; display:grid; gap:12px; align-self:start; position:sticky; top:83px; }
.product-category-manager-list,
.product-category-manager-editor { min-width:0; border:1px solid #dfe6f1; border-radius:15px; background:#fff; box-shadow:0 8px 22px rgb(25 43 82 / 5%); }
.product-category-manager-list { overflow:hidden; }
.product-category-manager-list > header { min-height:62px; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:11px 15px; border-bottom:1px solid #e7ebf2; }
.product-category-manager-list > header > div { display:flex; align-items:center; gap:9px; color:#738098; font-size:11px; font-weight:780; }
.product-category-manager-list > header b { min-width:25px; height:25px; display:grid; place-items:center; border-radius:8px; color:#fff; background:#1e293b; font-size:11px; }
.product-category-manager-list > header .button { min-height:40px; }
.product-category-manager-list > div { display:grid; gap:9px; max-height:490px; overflow:auto; padding:13px; }
.product-category-manager-card { position:relative; display:grid; grid-template-columns:54px minmax(0,1fr) auto; gap:13px; align-items:center; padding:12px; border:1px solid #e1e7f0; border-radius:12px; background:#fff; transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease; }
.product-category-manager-card:hover,
.product-category-manager-card.is-active { border-color:#91a9e8; box-shadow:0 8px 18px rgb(40 70 139 / 9%); transform:translateY(-1px); }
.product-category-manager-select { position:absolute; z-index:1; inset:0; border:0; border-radius:inherit; background:transparent; cursor:pointer; }
.product-category-manager-select:focus-visible { outline:3px solid rgb(56 103 255 / 38%); outline-offset:2px; }
.product-category-manager-icon,
.product-category-manager-copy { position:relative; z-index:2; pointer-events:none; }
.product-category-manager-icon,
.product-management-category-icon,
.product-category-editor-icon { display:grid; place-items:center; overflow:hidden; border:1px solid #dce5f2; background:linear-gradient(145deg,#edf7ff,#f0edff); color:#5163d6; }
.product-category-manager-icon { width:54px; height:54px; border-radius:13px; }
.product-category-manager-icon img,
.product-management-category-icon img,
.product-category-editor-icon img { width:100%; height:100%; object-fit:contain; }
.product-category-manager-icon svg,
.product-management-category-icon svg,
.product-category-editor-icon svg { width:54%; height:54%; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.product-category-manager-copy { min-width:0; display:grid; gap:5px; }
.product-category-manager-copy > span { min-width:0; display:flex; align-items:baseline; gap:8px; }
.product-category-manager-card strong { overflow:hidden; color:#202b40; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.product-category-manager-card code { overflow:hidden; color:#c32637; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.product-category-manager-card p { display:-webkit-box; overflow:hidden; margin:0; color:#66738a; font-size:11px; line-height:1.45; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.product-category-manager-card small { color:#8793a6; font-size:10px; }
.product-category-manager-actions { position:relative; z-index:2; display:flex; gap:6px; }
.product-category-manager-actions .button { min-height:36px; }
.product-category-manager-empty { padding:42px 24px; color:#7c899f; font-size:12px; line-height:1.7; text-align:center; }
.product-category-display-setting { min-width:0; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:18px; align-items:center; padding:16px 18px; border:1px solid #dce5f2; border-radius:15px; background:linear-gradient(145deg,#f3f9ff,#f5f2ff); box-shadow:0 8px 22px rgb(42 67 132 / 7%); }
.product-category-display-setting > div { min-width:0; }
.product-category-display-setting > div > span { display:block; color:#4d61d7; font-size:9px; font-weight:850; letter-spacing:.15em; }
.product-category-display-setting h3 { margin:5px 0 3px; color:#202b40; font-size:15px; letter-spacing:-.02em; }
.product-category-display-setting p { margin:0; color:#68758a; font-size:10px; line-height:1.55; }
.product-category-display-toggle { position:relative; min-width:91px; min-height:48px; display:flex; align-items:center; justify-content:flex-end; gap:8px; cursor:pointer; user-select:none; }
.product-category-display-toggle input { position:absolute; width:1px; height:1px; overflow:hidden; opacity:0; }
.product-category-display-toggle > span { position:relative; width:46px; height:26px; flex:0 0 auto; border:1px solid #cbd5e4; border-radius:999px; background:#dfe5ee; box-shadow:inset 0 2px 5px rgb(40 55 85 / 10%); transition:border-color .2s ease,background .2s ease,box-shadow .2s ease; }
.product-category-display-toggle > span i { position:absolute; top:3px; left:3px; width:18px; height:18px; border-radius:50%; background:#fff; box-shadow:0 2px 6px rgb(30 46 78 / 22%); transition:transform .2s ease; }
.product-category-display-toggle input:checked + span { border-color:#5468dc; background:linear-gradient(135deg,#4c73e8,#765de7); box-shadow:inset 0 1px rgba(255,255,255,.22),0 5px 12px rgb(80 88 216 / 18%); }
.product-category-display-toggle input:checked + span i { transform:translateX(20px); }
.product-category-display-toggle input:focus-visible + span { outline:3px solid rgb(56 103 255 / 34%); outline-offset:3px; }
.product-category-display-toggle input:disabled + span { opacity:.55; }
.product-category-display-toggle strong { min-width:37px; color:#526079; font-size:10px; }
.product-category-manager-editor { position:static; padding:22px; border-top:4px solid #dc2626; }
.product-category-manager-editor > span { display:block; color:#c92738; font-size:9px; font-weight:850; letter-spacing:.16em; }
.product-category-manager-editor > h3 { margin:7px 0 5px; color:#1e293b; font-size:20px; letter-spacing:-.035em; }
.product-category-manager-editor > p { margin:0 0 20px; color:#738098; font-size:12px; line-height:1.6; }
.product-category-icon-editor { display:grid; grid-template-columns:82px minmax(0,1fr); gap:16px; align-items:center; margin:0 0 20px; padding:15px; border:1px solid #dfe6f1; border-radius:13px; background:linear-gradient(145deg,#f8fbff,#f8f6ff); }
.product-category-editor-icon { width:82px; height:82px; border-radius:19px; box-shadow:inset 0 1px 0 #fff,0 10px 22px rgb(58 77 143 / 9%); }
.product-category-icon-copy { min-width:0; }
.product-category-icon-copy > span { color:#c32637; font-size:9px; font-weight:840; letter-spacing:.13em; }
.product-category-icon-copy h4 { margin:5px 0 4px; color:#253149; font-size:14px; }
.product-category-icon-copy p { margin:0; color:#77849a; font-size:10px; line-height:1.5; }
.product-category-icon-copy > div { display:flex; flex-wrap:wrap; gap:7px; margin-top:10px; }
.product-category-icon-copy .button { min-height:38px; }
.product-category-manager-editor .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.product-category-manager-editor .field:last-child { grid-column:1/-1; }
.product-category-manager-note { padding:11px 12px; border-left:3px solid #dc2626; border-radius:0 8px 8px 0; color:#5e6a80; background:#fff3f4; font-size:11px; line-height:1.55; }
.product-category-manager-footnote { color:#7f8ca1; font-size:11px; }
.product-category-manager-modal .modal-foot .button.primary { min-height:44px; padding-inline:18px; }
.product-category-manager-modal button:focus-visible,
[data-product-category-select]:focus-visible { outline:2px solid #3867ff; outline-offset:2px; }

@media(max-width:800px) {
  .product-category-manager-layout { grid-template-columns:1fr; }
  .product-category-manager-side { position:static; }
}

@media(max-width:560px) {
  .product-category-manager-card { grid-template-columns:48px minmax(0,1fr); }
  .product-category-manager-icon { width:48px; height:48px; }
  .product-category-manager-actions { grid-column:1/-1; justify-content:flex-end; }
  .product-category-display-setting { grid-template-columns:1fr; gap:10px; }
  .product-category-display-toggle { justify-content:flex-start; }
  .product-category-icon-editor { grid-template-columns:64px minmax(0,1fr); padding:12px; }
  .product-category-editor-icon { width:64px; height:64px; border-radius:15px; }
  .product-category-manager-editor .form-grid { grid-template-columns:1fr; }
  .product-category-manager-editor .field:last-child { grid-column:auto; }
  .product-category-manager-footnote { display:none; }
  .product-category-manager-modal .modal-foot .actions,
  .product-category-manager-modal .modal-foot .button { width:100%; }
}

@media(prefers-reduced-motion:reduce) {
  .product-category-manager-card { transition:none; }
  .product-category-display-toggle > span,
  .product-category-display-toggle > span i { transition:none; }
  .product-category-manager-card:hover,
  .product-category-manager-card.is-active { transform:none; }
}

/* One shared homepage-product picker for Standard and MODTEK listings. */
.homepage-products-button span {
  display:inline-grid;
  min-width:34px;
  height:24px;
  place-items:center;
  padding:0 7px;
  border-radius:999px;
  color:#4257a6;
  background:linear-gradient(135deg,#dbeeff,#eee2ff);
  font-size:11px;
}
.homepage-product-picker-modal { width:min(100%,1120px); }
.homepage-product-picker-modal .modal-head { align-items:center; }
.homepage-product-picker-modal .modal-head > div:first-child { min-width:0; flex:1; }
.homepage-product-picker-count {
  display:flex;
  align-items:baseline;
  justify-content:center;
  min-width:84px;
  min-height:52px;
  padding:8px 15px;
  border:1px solid #cbd8f4;
  border-radius:14px;
  color:#334a9c;
  background:linear-gradient(135deg,#e3f1ff,#eee7ff);
}
.homepage-product-picker-count strong { font-size:24px; line-height:1; }
.homepage-product-picker-count span { margin-left:4px; color:#72809a; font-size:12px; font-weight:760; }
.homepage-product-picker-summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
  padding:15px 17px;
  border:1px solid #e1e7f1;
  border-radius:13px;
  background:linear-gradient(135deg,#fbfdff,#f5f5ff);
}
.homepage-product-picker-summary strong,
.homepage-product-picker-summary span { display:block; }
.homepage-product-picker-summary strong { color:#27334a; font-size:14px; }
.homepage-product-picker-summary span { margin-top:4px; color:#7b8799; font-size:11px; line-height:1.5; }
.homepage-product-picker-summary > b { flex:0 0 auto; color:#4f62ba; font-size:12px; }
.homepage-product-picker-warning {
  margin-bottom:14px;
  padding:11px 13px;
  border:1px solid #e5cf94;
  border-radius:10px;
  color:#7a5b13;
  background:#fff9e9;
  font-size:12px;
  line-height:1.5;
}
.homepage-product-picker-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.homepage-product-choice {
  position:relative;
  display:grid;
  grid-template-columns:84px minmax(0,1fr) 34px;
  gap:12px;
  align-items:center;
  min-height:118px;
  padding:11px;
  overflow:hidden;
  border:1px solid #dde4ef;
  border-radius:14px;
  color:#46536a;
  background:#fff;
  cursor:pointer;
  text-align:left;
  transition:border-color .2s ease,background .2s ease,box-shadow .2s ease,transform .2s ease;
}
.homepage-product-choice:hover:not(:disabled) {
  border-color:#acbff0;
  background:#fafdff;
  box-shadow:0 10px 24px rgb(54 80 151 / 10%);
  transform:translateY(-2px);
}
.homepage-product-choice.is-selected {
  border-color:#758de3;
  background:linear-gradient(135deg,#edf7ff 0%,#f0edff 100%);
  box-shadow:0 9px 24px rgb(74 86 192 / 13%);
}
.homepage-product-choice:disabled { cursor:not-allowed; opacity:.48; }
.homepage-product-choice:focus-visible { outline:3px solid rgb(56 103 255 / 24%); outline-offset:2px; }
.homepage-product-choice__media {
  display:grid;
  width:84px;
  height:92px;
  overflow:hidden;
  place-items:center;
  border-radius:10px;
  color:#556bd2;
  background:linear-gradient(145deg,#edf6ff,#eee9ff);
}
.homepage-product-choice__media img { width:100%; height:100%; object-fit:contain; mix-blend-mode:multiply; }
.homepage-product-choice__media b { font-size:25px; }
.homepage-product-choice__copy { min-width:0; }
.homepage-product-choice__copy .badge { margin-bottom:7px; }
.homepage-product-choice__copy strong,
.homepage-product-choice__copy small { display:block; overflow:hidden; text-overflow:ellipsis; }
.homepage-product-choice__copy strong {
  color:#27334a;
  font-size:12px;
  font-weight:800;
  line-height:1.42;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
.homepage-product-choice__copy small { margin-top:5px; color:#8792a3; font-size:10px; white-space:nowrap; }
.homepage-product-choice__state {
  display:grid;
  width:32px;
  height:32px;
  place-items:center;
  border:1px solid #dce3ed;
  border-radius:10px;
  color:#7f8ca0;
  background:#f7f9fc;
  font-size:17px;
  font-weight:800;
}
.homepage-product-choice.is-selected .homepage-product-choice__state {
  border-color:#5368df;
  color:#fff;
  background:linear-gradient(135deg,#2563eb,#7c3aed);
}
.homepage-product-picker-empty {
  grid-column:1/-1;
  padding:48px 24px;
  border:1px dashed #ccd6e5;
  border-radius:14px;
  color:#7f8ca0;
  background:#fafbfd;
  text-align:center;
}
.homepage-product-picker-footnote { color:#7f8ca1; font-size:11px; }
.homepage-product-picker-modal .modal-foot .button.primary { min-height:44px; padding-inline:18px; }
.product-homepage-selection-note {
  display:grid;
  gap:5px;
  padding:14px 15px;
  border:1px solid #dce5f5;
  border-radius:12px;
  background:linear-gradient(135deg,#f4faff,#f8f5ff);
}
.product-homepage-selection-note b { color:#334a9c; font-size:13px; }
.product-homepage-selection-note small { color:#72809a; line-height:1.55; }

@media(max-width:980px) {
  .homepage-product-picker-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media(max-width:620px) {
  .homepage-product-picker-modal .modal-head { align-items:flex-start; }
  .homepage-product-picker-count { min-width:68px; min-height:46px; }
  .homepage-product-picker-summary { align-items:flex-start; flex-direction:column; gap:8px; }
  .homepage-product-picker-grid { grid-template-columns:1fr; }
  .homepage-product-picker-footnote { display:none; }
  .homepage-product-picker-modal .modal-foot .actions,
  .homepage-product-picker-modal .modal-foot .button { width:100%; }
}

@media(prefers-reduced-motion:reduce) {
  .homepage-product-choice { transition:none; }
  .homepage-product-choice:hover:not(:disabled) { transform:none; }
}

/* Product-management category rail: shared data, separate filters per list. */
.product-management-layout {
  display:grid;
  grid-template-columns:250px minmax(0,1fr);
  gap:18px;
  align-items:start;
}
.product-management-results { min-width:0; }
.product-management-results .content-card { overflow-x:auto; }
.product-management-categories {
  position:sticky;
  top:18px;
  overflow:hidden;
  border:1px solid #dfe6f1;
  border-radius:15px;
  background:linear-gradient(145deg,#fff,#f7f9ff);
  box-shadow:0 10px 26px rgb(25 43 82 / 6%);
}
.product-management-categories > header {
  padding:16px 15px 13px;
  border-bottom:1px solid #e5eaf2;
}
.product-management-categories > header strong {
  display:block;
  color:#253149;
  font-size:13px;
  font-weight:820;
}
.product-management-categories > header small {
  display:block;
  margin-top:5px;
  color:#8a95a7;
  font-size:10px;
  line-height:1.4;
}
.product-management-categories nav {
  display:grid;
  gap:7px;
  max-height:calc(100vh - 245px);
  overflow:auto;
  padding:10px;
}
.product-management-category-card {
  width:100%;
  min-height:64px;
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:10px;
  align-items:center;
  overflow:hidden;
  padding:9px 10px;
  border:1px solid transparent;
  border-radius:10px;
  color:#526078;
  background:#f5f7fb;
  cursor:pointer;
  font-size:12px;
  font-weight:740;
  line-height:1.35;
  text-align:left;
  transition:border-color .2s ease,background .2s ease,color .2s ease,box-shadow .2s ease,transform .2s ease;
}
.product-management-category-icon { width:42px; height:42px; border-radius:11px; }
.product-management-category-card > span:last-child { min-width:0; display:grid; gap:3px; }
.product-management-category-card strong,
.product-management-category-card small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.product-management-category-card strong { color:inherit; font-size:12px; }
.product-management-category-card small { color:#8793a6; font-size:9px; font-weight:570; }
.product-management-category-card:hover {
  border-color:#b8c7ec;
  color:#34466c;
  background:#fff;
  box-shadow:0 7px 16px rgb(40 70 139 / 8%);
  transform:translateY(-1px);
}
.product-management-category-card.is-active {
  border-color:#b3c5f6;
  color:#334a9c;
  background:linear-gradient(135deg,#dbeeff 0%,#e5e9ff 52%,#eee2ff 100%);
  box-shadow:0 9px 20px rgb(93 113 207 / 14%);
}
.product-management-categories.is-modtek .product-management-category-card.is-active {
  border-color:#5368df;
  color:#fff;
  background:linear-gradient(135deg,#2563eb 0%,#5558df 52%,#7c3aed 100%);
  box-shadow:0 9px 20px rgb(76 72 205 / 22%);
}
.product-management-category-card.is-active .product-management-category-icon { border-color:rgb(255 255 255 / 35%); background:rgb(255 255 255 / 18%); color:inherit; }
.product-management-category-card.is-active small { color:currentColor; opacity:.72; }
.product-management-category-card:focus-visible {
  outline:3px solid rgb(56 103 255 / 28%);
  outline-offset:2px;
}
.product-management-pagebar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 20px 20px;
  border-top:1px solid #edf0f5;
  color:#7b8799;
  font-size:12px;
  font-weight:680;
}
.product-management-pagebar nav {
  display:flex;
  align-items:center;
  gap:6px;
}
.product-management-pagebar button {
  display:inline-grid;
  min-width:44px;
  min-height:44px;
  place-items:center;
  padding:0 10px;
  border:1px solid #dfe5ef;
  border-radius:10px;
  color:#55627a;
  background:#fff;
  cursor:pointer;
  font:inherit;
  font-weight:760;
  transition:border-color .2s ease,color .2s ease,background .2s ease,box-shadow .2s ease,transform .2s ease;
}
.product-management-pagebar button:hover:not(:disabled) {
  border-color:#aebef0;
  color:#334a9c;
  background:#f3f6ff;
  box-shadow:0 6px 14px rgb(72 93 167 / 10%);
  transform:translateY(-1px);
}
.product-management-pagebar button.is-active {
  border-color:#aebef0;
  color:#334a9c;
  background:linear-gradient(135deg,#dbeeff,#eee2ff);
}
.product-management-pagebar button:disabled {
  cursor:not-allowed;
  opacity:.42;
}
.product-management-pagebar button:focus-visible {
  outline:3px solid rgb(56 103 255 / 24%);
  outline-offset:2px;
}
.product-management-page-ellipsis {
  min-width:22px;
  color:#9aa4b4;
  text-align:center;
}

@media(max-width:1400px) {
  .product-management-layout { grid-template-columns:1fr; }
  .product-management-categories { position:static; }
  .product-management-categories > header { display:flex; align-items:center; justify-content:space-between; gap:15px; }
  .product-management-categories > header small { margin-top:0; }
  .product-management-categories nav { display:flex; max-height:none; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; }
  .product-management-categories nav::-webkit-scrollbar { display:none; }
  .product-management-category-card { width:auto; min-width:230px; flex:0 0 auto; }
}

@media(max-width:560px) {
  .product-management-categories > header { align-items:flex-start; flex-direction:column; gap:3px; }
  .product-management-category-card { min-width:220px; }
  .product-management-pagebar { align-items:flex-start; flex-direction:column; }
  .product-management-pagebar nav { width:100%; overflow-x:auto; padding-bottom:3px; }
}

@media(prefers-reduced-motion:reduce) {
  .product-management-category-card,
  .product-management-pagebar button { transition:none; }
  .product-management-category-card:hover,
  .product-management-pagebar button:hover:not(:disabled) { transform:none; }
}
