/* source: supervisor.css */
:root{font-family:"Microsoft YaHei",system-ui,sans-serif;color:#16251f;background:#f1f5f3;--green:#15483a;--green2:#26705a;--mint:#e6f0ec;--line:#d9e4df;--orange:#ef9c35;--red:#b94738}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}.login-page{display:grid;place-items:center;background:linear-gradient(160deg,#123d32 0 42%,#eef4f1 42%);padding:18px}.login-card{width:min(400px,100%);background:#fff;border-radius:20px;padding:24px;box-shadow:0 20px 60px #092a2040}.login-brand,.head-brand{display:flex;align-items:center;gap:10px}.login-brand img,.head-brand img{width:42px;height:42px;border-radius:11px;object-fit:cover}.login-brand div,.head-brand div{display:grid;gap:2px}.login-brand span,.head-brand span{font-size:12px;color:#74837d}.login-title{margin:34px 0 20px}.login-title>span,.section-kicker{font-size:10px;letter-spacing:.16em;color:#6f827b}.login-title h1{font-size:29px;margin:6px 0}.login-title p{font-size:13px;color:#6f7d78;margin:0}.login-form{display:grid;gap:13px}.login-form label,.compact-form label{display:grid;gap:6px;font-size:12px;color:#52615c}.login-form input,.login-form select,.compact-form input,.compact-form select,.compact-form textarea{width:100%;border:1px solid var(--line);background:#fbfdfc;border-radius:10px;padding:12px;color:#17241f;min-height:46px}.submit-main{width:100%;border:0;border-radius:10px;background:var(--green);color:#fff;padding:13px;font-weight:700;min-height:47px}.submit-main:disabled{opacity:.6}.form-error{min-height:18px;margin:0;color:var(--red);font-size:12px}.login-help{text-align:center;color:#8a9691;font-size:11px;line-height:1.7;margin:17px 0 0}.mobile-head{height:66px;background:#143f34;color:#fff;padding:10px max(14px,env(safe-area-inset-left));display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:5}.head-brand span{color:#bad0c8}.mini-button{border:1px solid #ffffff35;background:#ffffff10;color:#fff;border-radius:8px;padding:7px 11px}.mobile-main{width:min(760px,100%);margin:auto;padding:12px 12px max(26px,env(safe-area-inset-bottom))}.action-card{background:var(--green);color:#fff;border-radius:15px;padding:16px;display:flex;align-items:center;justify-content:space-between;gap:12px}.action-card h1{font-size:20px;margin:4px 0}.action-card p{font-size:12px;line-height:1.5;color:#c6dad3;margin:0}.section-kicker{color:#9fc1b5}.new-button{border:0;background:#f0b253;color:#173b30;border-radius:12px;width:86px;height:78px;display:grid;place-items:center;align-content:center;gap:2px;flex:0 0 auto;font-weight:800}.new-button b{font-size:24px;line-height:1}.new-button span{font-size:12px}.quick-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0}.quick-stat{border:1px solid var(--line);border-radius:11px;background:#fff;padding:10px;text-align:left}.quick-stat b{font-size:20px;display:block}.quick-stat span{font-size:11px;color:#71807a}.orders-head{display:flex;align-items:center;justify-content:space-between;margin:15px 1px 9px;gap:10px}.orders-head h2{font-size:17px;margin:0}.orders-head p{font-size:11px;color:#7b8984;margin:3px 0 0}.orders-head select{border:1px solid var(--line);background:#fff;border-radius:8px;padding:8px;max-width:122px}.my-orders{display:grid;gap:8px}.mobile-order{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px;display:grid;gap:8px}.order-line{display:flex;align-items:center;justify-content:space-between;gap:8px}.order-code{font-size:11px;color:#73817c;font-weight:700}.order-status{font-size:10px;color:var(--green2);background:var(--mint);border-radius:20px;padding:4px 7px}.mobile-order h3{font-size:15px;margin:0}.mobile-order p{font-size:12px;color:#5f6d68;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-meta{display:flex;gap:6px;flex-wrap:wrap;font-size:10px;color:#73817c}.order-meta span{background:#f1f5f3;padding:4px 6px;border-radius:5px}.loading,.mobile-empty{background:#fff;border:1px dashed var(--line);border-radius:12px;padding:38px 12px;text-align:center;color:#82908b;font-size:13px}.sheet{border:0;border-radius:18px 18px 0 0;padding:0;width:min(680px,100%);max-height:92vh;margin:auto auto 0;box-shadow:0 -15px 50px #0b2c2250}.sheet::backdrop{background:#0a241daa}.sheet form{margin:0}.sheet-head{display:flex;justify-content:space-between;align-items:center;padding:16px 16px 11px;border-bottom:1px solid #edf1ef}.sheet-head small{color:#7a8883}.sheet-head h2{font-size:20px;margin:2px 0}.sheet-close{border:0;background:#f0f4f2;border-radius:50%;width:34px;height:34px;font-size:22px}.compact-form{padding:12px 16px;display:grid;gap:10px;overflow:auto}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:9px}.compact-form textarea{resize:vertical}.file-box{border:1px dashed #a9c0b7;border-radius:10px;padding:10px;background:#f7faf9}.file-box input{border:0;padding:2px 0;min-height:auto;background:transparent}.file-box span{font-size:10px;color:#82908a}.sheet-actions{position:sticky;bottom:0;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:100px 1fr;gap:8px;padding:10px 16px max(10px,env(safe-area-inset-bottom))}.cancel-button{border:1px solid var(--line);border-radius:10px;background:#fff}.detail-sheet{padding:16px}.detail-top{display:flex;justify-content:space-between}.detail-top h2{margin:3px 0;font-size:20px}.detail-block{border-top:1px solid var(--line);padding:12px 0}.detail-block h4{font-size:13px;margin:0 0 6px}.detail-block p{font-size:13px;line-height:1.6;color:#53625d;margin:0;white-space:pre-wrap}.price{font-size:23px;font-weight:800;color:var(--green)}.confirm-button{width:100%;border:0;border-radius:10px;padding:13px;background:var(--green);color:#fff;font-weight:700}.mobile-toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,10px);background:#173f34;color:#fff;border-radius:9px;padding:10px 14px;font-size:12px;opacity:0;pointer-events:none;transition:.2s}.mobile-toast.show{opacity:1;transform:translate(-50%,0)}@media(min-width:700px){.submit-page{background:#edf3f0}.mobile-main{padding-top:20px}.sheet{margin:auto;border-radius:18px}.action-card{padding:20px}.my-orders{grid-template-columns:1fr 1fr}}@media(max-width:380px){.mobile-main{padding-left:9px;padding-right:9px}.action-card{padding:13px}.action-card h1{font-size:18px}.new-button{width:76px}.form-row{grid-template-columns:1fr}.sheet{max-height:95vh}}


/* source: material-submit.css */
.material-login-page,
.material-submit-page {
  --material: #d88a0b;
  --material-dark: #704b08;
  --material-soft: #fff7e7;
  --material-line: #ead8b5;
}

html {
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}

body.material-submit-page {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.material-submit-page [hidden] { display: none !important; }

.material-login-page { background: linear-gradient(150deg, #fff8e8, #f3f6fc); }
.material-login-page .login-title > span { color: #a56508; }
.material-login-page .submit-main,
.material-submit-page .submit-main { background: var(--material-dark); }
.material-submit-page .mobile-head { background: #fffaf0; border-bottom-color: #f1d9aa; }
.material-submit-page .action-card { background: linear-gradient(135deg, #704b08, #ae7412); }
.material-submit-page .new-button { color: #724a05; }
.material-submit-page .quick-stat b { color: #8d5b06; }
.material-submit-page .order-status { color: #875605; background: #fff0cb; }
.material-submit-page .mobile-order { border-top: 3px solid var(--material); }
.material-submit-page .mobile-order:hover { border-color: #d88a0b; }

.material-submit-page input,
.material-submit-page textarea,
.material-submit-page select {
  min-width: 0;
  font-size: 16px !important;
}

.material-submit-page button { font-size: 14px; }
.material-submit-page .submit-main,
.material-submit-page .cancel-button,
.material-submit-page .new-button span { font-size: 16px; }
.head-actions { display: flex; gap: 6px; }
.material-submit-page .quick-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.material-sheet {
  width: min(720px, 100%);
  max-width: 100%;
  overflow: hidden;
}

.material-sheet > form {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  max-height: 92vh;
  overflow: hidden;
}

.material-request-form {
  padding: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.request-step {
  display: grid;
  gap: 13px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e5e9e7;
  border-radius: 14px;
  background: #fff;
}

.request-step-title {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.request-step-title > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--material);
  font-size: 13px;
  font-weight: 800;
}

.request-step-title h3,
.request-step-title p {
  margin: 0;
}

.request-step-title h3 {
  color: #21362f;
  font-size: 17px;
}

.request-step-title p {
  margin-top: 3px;
  color: #74827d;
  font-size: 12px;
  line-height: 1.55;
}

.material-store-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 8px;
}

.material-store-search input {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid var(--material-line);
  border-radius: 10px;
  background: #fffdf8;
}

.material-store-search button {
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--material-dark);
  font-weight: 800;
}

.material-store-results {
  display: grid;
  max-height: 230px;
  overflow-y: auto;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--material-line);
  border-radius: 11px;
  background: #fff;
}

.material-store-results button {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 52px;
  padding: 9px 10px;
  border: 1px solid #efe6d5;
  border-radius: 9px;
  color: #3d321e;
  background: #fffcf6;
  text-align: left;
}

.material-store-results button b,
.material-store-results button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-store-results button b { font-size: 14px; }
.material-store-results button small { color: #81745e; font-size: 12px; }
.material-store-empty { margin: 0; padding: 10px; color: #81745e; font-size: 13px; }

.material-form-error {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #efb5b5;
  border-radius: 9px;
  color: #af3036;
  background: #fff5f5;
  font-size: 13px;
  font-weight: 700;
}

.material-selected-store {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #e1bc72;
  border-radius: 11px;
  background: #fff8e8;
}

.material-selected-store div { display: grid; gap: 3px; min-width: 0; }
.material-selected-store b { color: #65440a; font-size: 14px; }
.material-selected-store span { overflow: hidden; color: #796b51; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.material-selected-store button { flex: 0 0 auto; padding: 7px 9px; border: 0; color: #8c5d09; background: transparent; font-weight: 800; }

.material-items { display: grid; gap: 12px; }

.material-item {
  display: grid;
  gap: 11px;
  min-width: 0;
  padding: 13px;
  border: 1px solid #e6dcc8;
  border-radius: 13px;
  background: #fffaf1;
}

.material-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid #eee2ca;
}

.material-item-head div { display: grid; gap: 2px; min-width: 0; }
.material-item-head strong { color: #5d420e; font-size: 15px; }
.material-item-head small { color: #897b61; font-size: 11px; }
.material-item-remove { min-height: 34px; padding: 5px 9px; border: 1px solid #edcaca; border-radius: 8px; color: #ad3c3c; background: #fff; font-size: 12px !important; font-weight: 700; }
.material-item-remove[hidden] { display: none; }

.material-item label,
.delivery-step label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #59645f;
  font-size: 13px;
  font-weight: 700;
}

.material-item label em,
.delivery-step label em { color: #bd3c3c; font-style: normal; }

.material-item input,
.material-item select,
.material-item textarea,
.delivery-step input {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #ddd5c6;
  border-radius: 10px;
  color: #24342e;
  background: #fff;
  font-weight: 400;
}

.material-item textarea { min-height: 92px; resize: vertical; }
.material-item .form-row { min-width: 0; }
.material-item-field.is-invalid input,
.material-item-field.is-invalid select,
.material-item-field.is-invalid textarea,
.delivery-step .is-invalid { border-color: #c84747; box-shadow: 0 0 0 2px #ffe8e8; }
.material-item-error { margin: 0; color: #b13a3a; font-size: 11px; font-weight: 700; }

.material-item-files {
  padding: 11px;
  border: 1px dashed #d5b572;
  border-radius: 10px;
  background: #fffdf8;
}

.material-item-files input { min-height: auto; padding: 4px 0; border: 0; background: transparent; }
.material-item-files span { color: #89795c; font-size: 11px; font-weight: 400; line-height: 1.5; }
.material-file-summary { color: #7a5a18 !important; font-weight: 700 !important; }

.add-material-item {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dfb55d;
  border-radius: 10px;
  color: #815708;
  background: #fffaf0;
  font-size: 14px !important;
  font-weight: 800;
}

.material-upload-progress {
  display: grid;
  gap: 7px;
  padding: 11px 12px;
  border: 1px solid #e0c990;
  border-radius: 11px;
  color: #76591b;
  background: #fff9ec;
  font-size: 13px;
  line-height: 1.5;
}

.material-upload-progress i {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: #eee1c2;
}

.material-upload-progress i::after {
  content: "";
  display: block;
  width: var(--material-upload-progress, 8%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c47b06, #f1ad3f);
  transition: width .25s ease;
}

.material-flow { display: flex; gap: 5px; margin: 14px 0; overflow: auto; }
.material-flow span { flex: 0 0 auto; padding: 5px 7px; color: #7d8796; background: #edf1f6; border-radius: 7px; font-size: 10px; }
.material-flow span.active { color: #fff; background: var(--material-dark); }
.material-flow span.passed { color: #6a4807; background: #f9e8bd; }
.material-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.material-meta-grid > div { min-width: 0; padding: 10px; background: #f7f9fc; border-radius: 9px; }
.material-meta-grid small { display: block; color: #7d8898; font-size: 11px; }
.material-meta-grid b { display: block; overflow: hidden; margin-top: 4px; color: #35465f; font-size: 13px; overflow-wrap: anywhere; }
.material-attachments { display: grid; gap: 7px; }
.material-attachments a { padding: 9px; color: #845407; background: #fff6df; border-radius: 8px; font-size: 12px; text-decoration: none; }
.material-attachment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.material-attachment-card,
.material-file-card { min-width: 0; overflow: hidden; border: 1px solid #eadfc9; border-radius: 10px; color: #493919; background: #fffaf0; text-decoration: none; }
.material-attachment-card img { display: block; width: 100%; height: 132px; background: #f1eadc; object-fit: cover; }
.material-attachment-card span,
.material-file-card { display: grid; gap: 3px; padding: 8px 9px; }
.material-attachment-card b,
.material-file-card b { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.material-attachment-card small,
.material-file-card small { color: #897b61; font-size: 10px; line-height: 1.4; }
.material-detail-empty { margin: 0; padding: 12px; border-radius: 9px; color: #817762; background: #faf7f0; font-size: 12px; }
.material-sheet .confirm-button { background: var(--material-dark); }

@media (max-width: 500px) {
  .head-actions { gap: 3px; }
  .head-actions .mini-button { padding: 7px 8px; }
  .material-submit-page .mobile-head { height: 66px; }
  .material-sheet { width: 100%; max-height: 96vh; }
  .material-sheet > form { max-height: 96vh; }
  .material-request-form { padding: 10px; }
  .request-step { padding: 12px; }
  .material-store-search { grid-template-columns: minmax(0, 1fr) 96px; }
  .material-meta-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 380px) {
  .material-item .form-row,
  .delivery-step .form-row { grid-template-columns: 1fr; }
  .material-store-search { grid-template-columns: 1fr; }
  .material-store-search button { min-height: 44px; }
}


/* source: portal-back.css */
.head-actions{display:flex;align-items:center;gap:6px;min-width:0}.portal-home-button{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 12px;border:1px solid #d6c8f6;border-radius:10px;color:#6436b8;background:#fff;font-size:13px;font-weight:800;text-decoration:none;white-space:nowrap}.portal-back-link{display:inline-flex;align-items:center;gap:6px;margin-bottom:18px;color:#526b62;font-size:13px;font-weight:700;text-decoration:none}.portal-back-link:hover{text-decoration:underline}.success-card .success-actions{display:flex!important;flex-wrap:wrap;justify-content:center;gap:10px;width:100%;height:auto;margin:12px 0 0;border-radius:0;color:inherit;background:transparent;font-size:inherit}.success-actions>*{flex:1 1 220px;max-width:310px}.success-actions .secondary-home{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin-top:12px;padding:0 18px;border:1px solid #d6c8f6;border-radius:11px;color:#6436b8;background:#fff;font:inherit;font-weight:800;line-height:1.35;text-align:center;text-decoration:none;white-space:normal;writing-mode:horizontal-tb}.success-card>.success-check{display:grid;place-items:center;width:58px;height:58px;margin:auto;border-radius:50%;color:#fff;background:#14845f;font-size:28px}.success-card .success-actions button{writing-mode:horizontal-tb;white-space:normal}@media(max-width:520px){.head-actions{gap:3px}.head-actions .mini-button,.head-actions .portal-home-button{padding:6px 7px;font-size:12px}.head-brand{min-width:0}.head-brand div{min-width:0}.head-brand b,.head-brand span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.success-card .success-actions{display:grid!important;grid-template-columns:1fr;width:100%;max-width:360px;margin:12px auto 0}.success-actions>*{width:100%;max-width:none}.success-actions .secondary-home{margin-top:0}}


/* source: ui-v15-tokens.css */
/* V1.15 shared UI tokens. Apply .v15-ui or data-ui-version="15" to a page root. */
:where(.v15-ui, [data-ui-version="15"]) {
  --v15-font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --v15-font-caption: 12px;
  --v15-font-body: 14px;
  --v15-font-subtitle: 16px;
  --v15-font-title: 24px;
  --v15-line-height: 1.55;
  --v15-space-1: 4px;
  --v15-space-2: 8px;
  --v15-space-3: 12px;
  --v15-space-4: 16px;
  --v15-space-5: 24px;
  --v15-space-6: 32px;
  --v15-radius-sm: 8px;
  --v15-radius-md: 12px;
  --v15-radius-lg: 16px;
  --v15-control-height: 44px;
  --v15-content-max: 1440px;
  --v15-color-text: #20324a;
  --v15-color-muted: #66768c;
  --v15-color-surface: #ffffff;
  --v15-color-subtle: #f5f7fb;
  --v15-color-border: #dbe3ef;
  --v15-color-primary: #356ff6;
  --v15-color-primary-strong: #245bd8;
  --v15-color-primary-soft: #edf3ff;
  --v15-color-success: #087754;
  --v15-color-success-soft: #e7f7f0;
  --v15-color-warning: #a76507;
  --v15-color-warning-soft: #fff4dc;
  --v15-color-danger: #c83838;
  --v15-color-danger-soft: #fff0f0;
  --v15-shadow-card: 0 4px 14px rgb(23 59 114 / 6%);
  --v15-shadow-dialog: 0 20px 64px rgb(18 36 66 / 24%);
  --v15-focus-ring: 0 0 0 3px rgb(53 111 246 / 26%);
  --v15-motion-fast: 120ms;
  --v15-motion-normal: 180ms;
  --v15-motion-slow: 240ms;
  --v15-safe-top: env(safe-area-inset-top, 0px);
  --v15-safe-bottom: env(safe-area-inset-bottom, 0px);
}


/* source: ui-v15-base.css */
/* V1.15 base rules are opt-in and deliberately avoid legacy selectors. */
:where(.v15-ui, [data-ui-version="15"]) {
  color: var(--v15-color-text);
  font-family: var(--v15-font-family);
  font-size: var(--v15-font-body);
  line-height: var(--v15-line-height);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

:where(.v15-ui, [data-ui-version="15"]) *,
:where(.v15-ui, [data-ui-version="15"]) *::before,
:where(.v15-ui, [data-ui-version="15"]) *::after { box-sizing: border-box; }

:where(.v15-ui, [data-ui-version="15"]) :where(button, input, select, textarea) { font: inherit; }
:where(.v15-ui, [data-ui-version="15"]) :where(button, a, input, select, textarea):focus-visible {
  outline: 0;
  box-shadow: var(--v15-focus-ring);
}
:where(.v15-ui, [data-ui-version="15"]) :where([hidden]) { display: none; }
:where(.v15-ui, [data-ui-version="15"]) :where(img, svg, video, canvas) { max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  :where(.v15-ui, [data-ui-version="15"]) *,
  :where(.v15-ui, [data-ui-version="15"]) *::before,
  :where(.v15-ui, [data-ui-version="15"]) *::after {
    scroll-behavior: auto;
    transition-duration: 1ms;
    animation-duration: 1ms;
    animation-iteration-count: 1;
  }
}


/* source: ui-v15-components.css */
/* Components require the v15-* class/data hook; no legacy class is restyled globally. */
:where(.v15-ui, [data-ui-version="15"]) .v15-page {
  width: min(100%, var(--v15-content-max));
  margin-inline: auto;
}

:where(.v15-ui, [data-ui-version="15"]) :where(.v15-button, [data-v15-button]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--v15-control-height);
  gap: var(--v15-space-2);
  padding: 10px var(--v15-space-3);
  border: 1px solid var(--v15-color-border);
  border-radius: var(--v15-radius-sm);
  color: var(--v15-color-text);
  background: var(--v15-color-surface);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--v15-motion-fast), background var(--v15-motion-fast), border-color var(--v15-motion-fast), transform var(--v15-motion-fast);
}
:where(.v15-ui, [data-ui-version="15"]) :where(.v15-button, [data-v15-button]):where(:hover, :focus-visible) { border-color: var(--v15-color-primary); color: var(--v15-color-primary-strong); background: var(--v15-color-primary-soft); }
:where(.v15-ui, [data-ui-version="15"]) :where(.v15-button, [data-v15-button]):active { transform: translateY(1px); }
:where(.v15-ui, [data-ui-version="15"]) :where(.v15-button, [data-v15-button])[data-variant="primary"] { border-color: var(--v15-color-primary); color: #fff; background: var(--v15-color-primary); }
:where(.v15-ui, [data-ui-version="15"]) :where(.v15-button, [data-v15-button])[data-variant="danger"] { border-color: #f0b7b7; color: var(--v15-color-danger); background: var(--v15-color-danger-soft); }
:where(.v15-ui, [data-ui-version="15"]) :where(.v15-button, [data-v15-button]):disabled,
:where(.v15-ui, [data-ui-version="15"]) :where(.v15-button, [data-v15-button])[aria-disabled="true"] { cursor: not-allowed; opacity: .5; transform: none; }

:where(.v15-ui, [data-ui-version="15"]) :where(.v15-field, [data-v15-field]) { display: grid; gap: var(--v15-space-2); min-width: 0; color: var(--v15-color-text); font-weight: 600; }
:where(.v15-ui, [data-ui-version="15"]) :where(.v15-field, [data-v15-field]) :where(input, select, textarea) {
  width: 100%;
  min-height: var(--v15-control-height);
  padding: 10px var(--v15-space-3);
  border: 1px solid var(--v15-color-border);
  border-radius: var(--v15-radius-sm);
  color: var(--v15-color-text);
  background: var(--v15-color-surface);
}
:where(.v15-ui, [data-ui-version="15"]) :where(.v15-field, [data-v15-field]) textarea { min-height: 96px; resize: vertical; }
:where(.v15-ui, [data-ui-version="15"]) .v15-field-help { color: var(--v15-color-muted); font-size: var(--v15-font-caption); font-weight: 400; }

:where(.v15-ui, [data-ui-version="15"]) :where(.v15-status, [data-v15-status]) { display: inline-flex; align-items: center; min-height: 24px; max-width: 100%; padding: 3px 8px; border-radius: 999px; color: #315b9a; background: var(--v15-color-primary-soft); font-size: var(--v15-font-caption); font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(.v15-ui, [data-ui-version="15"]) :where(.v15-status, [data-v15-status])[data-tone="success"] { color: var(--v15-color-success); background: var(--v15-color-success-soft); }
:where(.v15-ui, [data-ui-version="15"]) :where(.v15-status, [data-v15-status])[data-tone="warning"] { color: var(--v15-color-warning); background: var(--v15-color-warning-soft); }
:where(.v15-ui, [data-ui-version="15"]) :where(.v15-status, [data-v15-status])[data-tone="danger"] { color: var(--v15-color-danger); background: var(--v15-color-danger-soft); }

:where(.v15-ui, [data-ui-version="15"]) :where(.v15-task-card, [data-v15-task-card]) { display: grid; gap: var(--v15-space-3); min-width: 0; min-height: 156px; padding: var(--v15-space-4); border: 1px solid var(--v15-color-border); border-radius: var(--v15-radius-md); background: var(--v15-color-surface); box-shadow: var(--v15-shadow-card); }
:where(.v15-ui, [data-ui-version="15"]) .v15-task-card__head { display: flex; align-items: flex-start; justify-content: space-between; min-width: 0; gap: var(--v15-space-2); }
:where(.v15-ui, [data-ui-version="15"]) .v15-task-card__title { display: -webkit-box; min-width: 0; margin: 0; overflow: hidden; color: var(--v15-color-text); font-size: var(--v15-font-subtitle); line-height: 1.4; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
:where(.v15-ui, [data-ui-version="15"]) .v15-task-card__meta { display: flex; flex-wrap: wrap; gap: var(--v15-space-2); max-height: 48px; overflow: hidden; color: var(--v15-color-muted); font-size: var(--v15-font-caption); }
:where(.v15-ui, [data-ui-version="15"]) .v15-task-card__footer { display: flex; align-items: center; justify-content: space-between; gap: var(--v15-space-2); margin-top: auto; }

:where(.v15-ui, [data-ui-version="15"]) :where(.v15-pagination, [data-v15-pagination]) { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: var(--v15-space-2); color: var(--v15-color-muted); font-size: var(--v15-font-caption); }
:where(.v15-ui, [data-ui-version="15"]) :where(.v15-pagination, [data-v15-pagination]) :where(button, select, input) { min-height: 36px; padding: 6px 10px; border: 1px solid var(--v15-color-border); border-radius: var(--v15-radius-sm); background: var(--v15-color-surface); color: var(--v15-color-text); }

:where(.v15-ui, [data-ui-version="15"]) :where(dialog.v15-dialog, dialog[data-v15-dialog]) { width: min(720px, calc(100vw - 32px)); max-height: min(800px, calc(100dvh - 32px)); margin: auto; padding: 0; border: 0; border-radius: var(--v15-radius-lg); color: var(--v15-color-text); background: var(--v15-color-surface); box-shadow: var(--v15-shadow-dialog); overflow: hidden; }
:where(.v15-ui, [data-ui-version="15"]) :where(dialog.v15-dialog, dialog[data-v15-dialog])::backdrop { background: rgb(17 34 62 / 52%); }
:where(.v15-ui, [data-ui-version="15"]) .v15-dialog__body { max-height: inherit; overflow: auto; overscroll-behavior: contain; padding: var(--v15-space-5); }
:where(.v15-ui, [data-ui-version="15"]) .v15-dialog__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--v15-space-3); margin: calc(var(--v15-space-5) * -1) calc(var(--v15-space-5) * -1) var(--v15-space-4); padding: var(--v15-space-4) var(--v15-space-5); border-bottom: 1px solid var(--v15-color-border); background: var(--v15-color-surface); }
:where(.v15-ui, [data-ui-version="15"]) .v15-dialog__actions { position: sticky; bottom: 0; z-index: 1; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: var(--v15-space-2); margin: var(--v15-space-5) calc(var(--v15-space-5) * -1) calc(var(--v15-space-5) * -1); padding: var(--v15-space-3) var(--v15-space-5) calc(var(--v15-space-3) + var(--v15-safe-bottom)); border-top: 1px solid var(--v15-color-border); background: var(--v15-color-surface); }


/* source: ui-v15-mobile.css */
/* Mobile overrides for the explicit V1.15 hooks. */
@media (max-width: 768px) {
  :where(.v15-ui, [data-ui-version="15"]) { padding-bottom: var(--v15-safe-bottom); }
  :where(.v15-ui, [data-ui-version="15"]) .v15-page { min-width: 0; }
  :where(.v15-ui, [data-ui-version="15"]) .v15-task-card { min-height: 140px; padding: var(--v15-space-3); }
  :where(.v15-ui, [data-ui-version="15"]) :where(.v15-pagination, [data-v15-pagination]) { justify-content: center; }
  :where(.v15-ui, [data-ui-version="15"]) :where(.v15-pagination, [data-v15-pagination]) [data-v15-page-summary] { flex: 1 0 100%; text-align: center; }
  :where(.v15-ui, [data-ui-version="15"]) :where(dialog.v15-dialog, dialog[data-v15-dialog])[data-dialog-kind="form"] { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border-radius: 0; }
  :where(.v15-ui, [data-ui-version="15"]) :where(dialog.v15-dialog, dialog[data-v15-dialog])[data-dialog-kind="sheet"] { width: 100%; max-width: none; max-height: min(82dvh, 720px); margin: auto 0 0; border-radius: var(--v15-radius-lg) var(--v15-radius-lg) 0 0; }
  :where(.v15-ui, [data-ui-version="15"]) .v15-dialog__body { padding: var(--v15-space-4); padding-top: calc(var(--v15-space-4) + var(--v15-safe-top)); }
  :where(.v15-ui, [data-ui-version="15"]) .v15-dialog__head { margin: calc(var(--v15-space-4) * -1) calc(var(--v15-space-4) * -1) var(--v15-space-3); padding: var(--v15-space-3) var(--v15-space-4); }
  :where(.v15-ui, [data-ui-version="15"]) .v15-dialog__actions { margin: var(--v15-space-4) calc(var(--v15-space-4) * -1) calc(var(--v15-space-4) * -1); padding-inline: var(--v15-space-4); }
  :where(.v15-ui, [data-ui-version="15"]) .v15-dialog__actions > :where(button, a) { flex: 1 1 132px; }
}

@media (max-width: 420px) {
  :where(.v15-ui, [data-ui-version="15"]) :where(.v15-pagination, [data-v15-pagination]) > :where(button, select, label) { flex: 1 1 calc(50% - var(--v15-space-2)); }
}


/* source: ui-v15-legacy-bridge.css */
/*
 * V1.15 opt-in compatibility bridge for legacy markup.
 * Load after the legacy page CSS and opt in at the page root with .v15-ui.
 * This file changes presentation only: no display:none overflow masking, fixed card heights,
 * or selectors coupled to API, upload, or permission state.
 */

.v15-ui :is(p, li, td, th, label, .sub, .muted, .meta, .legend, .field-help, .detail-copy) {
  font-size: max(14px, 1em);
  line-height: 1.55;
}

.v15-ui :is(small, .eyebrow, .caption, .hint, .helper, .field-help, .task-code, .workflow-code, .campaign-code, .store-code, .order-foot, .detail-metric span, .timeline-item time) {
  font-size: 12px;
  line-height: 1.45;
}

.v15-ui :is(button, .primary, .secondary, .ghost, .btn, .action-button, .quick button, .actions a, .header-actions a, .head-actions a):not(.icon):not(.close):not(.modal-close):not(.sheet-close):not(.icon-btn):not(.text-button):not(.text-btn) {
  min-height: 44px;
}

.v15-ui :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]) {
  min-height: 44px;
  font-size: max(14px, 1em);
}

.v15-ui :is(.actions, .modal-actions, .detail-actions, .feedback-actions, .notification-actions, .global-notice-actions, .head-actions, .header-actions) {
  flex-wrap: wrap;
  row-gap: 8px;
}

.v15-ui :is(.task, .order, .workflow-card, .campaign-card, .store-card, .feedback-card, .pulse-card, .module-card, .project-item, .month-card, .channel-card, .mobile-order) {
  min-width: 0;
}

.v15-ui :is(.task, .order, .workflow-card, .campaign-card, .store-card, .feedback-card, .pulse-card, .module-card, .project-item, .month-card, .channel-card, .mobile-order) :is(h2, h3, h4, .title, .task-title, .order-title) {
  overflow-wrap: anywhere;
}

.v15-ui :is(.task .title, .order h3, .workflow-card h3, .campaign-card h3, .store-card h3, .feedback-card h3, .pulse-title strong, .project-item h3, .mobile-order h3) {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.v15-ui :is(.pagination, .list-pagination, .video-pagination) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.v15-ui :is(.pagination, .list-pagination, .video-pagination) :is(button, select, input) {
  min-height: 40px;
}

.v15-ui :is(.toast, .global-notice-button, .global-feedback-button, .notification-button, .feedback-launch) {
  max-width: min(320px, calc(100vw - 24px));
}

.v15-ui .global-notice-button,
.v15-ui .notification-button {
  right: max(12px, var(--v15-safe-right, env(safe-area-inset-right, 0px)));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.v15-ui .global-feedback-button,
.v15-ui .feedback-launch {
  right: max(12px, var(--v15-safe-right, env(safe-area-inset-right, 0px)));
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

.v15-ui :is(.toast, .global-notice-button, .global-feedback-button, .notification-button, .feedback-launch) {
  z-index: 45;
}

.v15-ui dialog {
  width: min(920px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
}

.v15-ui dialog :is(form, .dialog-shell, .workflow-form, .workflow-detail-shell, .global-notice-shell, .global-feedback-shell) {
  min-width: 0;
}

.v15-ui dialog :is(.dialog-head, .modal-head, .sheet-head, .detail-top) {
  gap: 12px;
}

@media (max-width: 768px) {
  .v15-ui :is(main, .workflow-main, .campaign-main, .commerce-main, .page-shell, .mobile-main) {
    min-width: 0;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .v15-ui :is(.toolbar, .workflow-toolbar, .campaign-toolbar, .video-toolbar, .feedback-toolbar, .head-actions, .header-actions, .commerce-user, .schedule-toolbar) {
    min-width: 0;
    gap: 8px;
  }

  .v15-ui :is(.toolbar, .workflow-toolbar, .campaign-toolbar, .video-toolbar, .feedback-toolbar) :is(input, select, button) {
    min-width: 0;
  }

  .v15-ui :is(main > header, .workflow-header, .commerce-header, .app-header) {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 12px;
  }

  .v15-ui :is(.head-actions, .header-actions, .commerce-user) {
    width: 100%;
    min-width: 0;
  }

  .v15-ui :is(.head-actions, .header-actions, .commerce-user, .actions, .modal-actions, .detail-actions, .feedback-actions, .notification-actions, .global-notice-actions) > :is(button, a) {
    min-width: 0;
  }

  .v15-ui aside > nav,
  .v15-ui aside .nav-list,
  .v15-ui aside .module-list {
    min-width: 0;
  }

  .v15-ui :is(.task-list, .workflow-board, .campaign-list, .feedback-list, .annual-board, .channel-summaries, .orders, .module-grid, .pulse-grid) > * {
    min-width: 0;
  }

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

  .v15-ui dialog :is(form, .dialog-shell, .workflow-form, .workflow-detail-shell, .global-notice-shell, .global-feedback-shell) {
    max-width: 100%;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .v15-ui dialog :is(.actions, .modal-actions, .detail-actions, .feedback-actions, .notification-actions, .global-notice-actions) {
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 420px) {
  .v15-ui :is(.pagination, .list-pagination, .video-pagination) {
    justify-content: center;
  }

  .v15-ui :is(.pagination, .list-pagination, .video-pagination) :is(button, label, select) {
    flex: 1 1 calc(50% - 4px);
  }
}


/* source: ui-v15-portals.css */
/* V1.15 portal and login-shell migration. Scoped to pages opted into .v15-ui. */
body.v15-ui {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.v15-ui .portal-brand span,
body.v15-ui .service-copy span {
  font-size: 12px;
}

body.v15-ui button,
body.v15-ui input {
  font: inherit;
}

body.v15-ui .portal-head {
  padding-top: env(safe-area-inset-top);
}

body.v15-ui .portal-head-inner,
body.v15-ui main {
  width: min(1080px, calc(100% - 32px));
}

body.v15-ui .portal-head-inner {
  min-height: 72px;
}

body.v15-ui .service-card button,
body.v15-ui .login-form input,
body.v15-ui .login-form .submit-main,
body.v15-ui .login-button,
body.v15-ui .password-wrap button,
body.v15-ui .mini-button,
body.v15-ui .portal-back-link {
  min-height: 44px;
}

body.v15-ui :is(.portal-guide b, .service-copy > span) {
  font-size: 12px;
}

body.v15-ui .service-card button,
body.v15-ui .login-form .submit-main,
body.v15-ui .login-button {
  touch-action: manipulation;
}

body.v15-ui.login-page {
  min-height: 100dvh;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
}

body.v15-ui .login-card {
  width: min(420px, 100%);
}

body.v15-ui .login-brand span,
body.v15-ui .login-title > span,
body.v15-ui .login-help,
body.v15-ui .form-error,
body.v15-ui .login-form label {
  font-size: max(12px, 0.75rem);
}

body.v15-ui .login-title p {
  font-size: 14px;
  line-height: 1.6;
}

body.v15-ui .login-form {
  gap: 14px;
}

body.v15-ui .login-form input {
  padding: 12px;
}

body.v15-ui .login-form .mini-button {
  justify-self: start;
  min-height: 40px;
}

body.v15-ui .portal-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -8px 0 12px;
}

body.v15-ui:not(.login-page) .login-shell {
  min-height: min(780px, 92dvh);
}

body.v15-ui:not(.login-page) .login-panel {
  padding-bottom: max(48px, env(safe-area-inset-bottom));
}

@media (max-width: 520px) {
  body.v15-ui .portal-head-inner,
  body.v15-ui main {
    width: calc(100% - 24px);
  }

  body.v15-ui .portal-head-inner {
    min-height: 64px;
  }

  body.v15-ui .portal-guide {
    display: none;
  }

  body.v15-ui .portal-hero {
    margin-top: 14px;
  }

  body.v15-ui .service-card {
    min-height: 0;
    padding: 17px;
  }

  body.v15-ui .service-card ul {
    display: none;
  }

  body.v15-ui .service-copy {
    margin-top: 12px;
  }

  body.v15-ui .service-copy p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.v15-ui .service-card button {
    margin-top: 16px;
  }

  body.v15-ui .login-page {
    place-items: start center;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  }

  body.v15-ui .login-card {
    margin: auto 0;
    padding: 20px 18px;
    border-radius: 16px;
  }

  body.v15-ui .login-title {
    margin: 24px 0 18px;
  }

  body.v15-ui .login-title h1 {
    font-size: 26px;
  }

  body.v15-ui:not(.login-page) .login-panel {
    padding: max(24px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom));
  }

  body.v15-ui:not(.login-page) .welcome {
    margin-top: 10vh;
  }

  body.v15-ui:not(.login-page) .hero {
    display: none;
  }
}

@media (max-width: 380px) {
  body.v15-ui .session-status {
    display: none;
  }

  body.v15-ui .portal-hero h1 {
    font-size: 24px;
  }

  body.v15-ui .login-card {
    padding: 18px 16px;
  }
}

@media (min-width: 900px) {
  body.v15-ui.login-page .login-card {
    margin: auto;
  }
}


/* source: ui-v16-layout-preserve.css */
/* V1.16.1 layout-only preservation after reverting the V1.16 brand colors. */
@media (max-width: 800px) {
  body.v15-ui > aside nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body.v15-ui > aside nav::-webkit-scrollbar {
    display: none;
  }

  body.v15-ui > aside :is(.nav, .module-link) {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    white-space: nowrap;
    word-break: keep-all;
  }

  body.v15-ui :is(.global-feedback-button, .global-notice-button) {
    min-width: 48px;
    min-height: 44px;
    font-size: 13px;
  }
}

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