/* 通知设置 */
.notification-intro{margin:4px 0 22px}
.notification-intro h2{font-size:20px;letter-spacing:.02em}
.notification-intro p{margin-top:8px;font-size:13px;color:var(--tx2);line-height:1.7}
.notification-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;width:100%}
.notification-tile{display:flex;flex-direction:column;align-items:stretch;min-width:0;padding:22px;text-align:left;background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:0 4px 8px rgba(24,47,65,.025),0 10px 24px -12px rgba(24,47,65,.18);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.notification-tile[hidden]{display:none}
.notification-tile:focus-visible{outline:3px solid var(--teal);outline-offset:4px}
@media(hover:hover){.notification-tile:hover{transform:translateY(-5px);border-color:var(--teal);box-shadow:0 8px 18px -8px rgba(0,158,149,.16),0 20px 36px -16px rgba(24,47,65,.26)}}
.notification-tile:active{transform:translateY(-1px)}
.notification-tile-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px;flex-wrap:wrap}
.notification-icon{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex:none;border-radius:13px;background:var(--teal-050);color:var(--teal)}
.notification-icon svg{width:24px;height:24px}
.notification-icon-blue{background:#ecf3fe;color:#5084cc}
.notification-icon-purple{background:#f1edfc;color:#8a67c9}
.notification-icon-amber{background:#fdf3e5;color:#be882f}
.notification-icon-rose{background:#fceef0;color:#ca7181}
.notification-badge{max-width:100%;padding:4px 8px;border-radius:6px;background:var(--bg);color:var(--tx2);font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.notification-badge.is-ready{background:var(--teal-050);color:var(--teal-600)}
.notification-badge.is-muted{color:var(--tx2)}
.notification-tile-title{font-size:16px;font-weight:650;line-height:1.5;color:var(--ink)}
.notification-tile-desc{display:block;margin:8px 0 20px;min-height:42px;font-size:12.5px;line-height:1.7;color:var(--tx2)}
.notification-tile-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:14px;border-top:1px solid var(--line2);font-size:11.5px;line-height:1.6;color:var(--tx2)}
.notification-tile-link{display:inline-flex;align-items:center;gap:6px;flex:none;color:var(--teal);font-weight:600}
.notification-dialog{margin:auto;padding:0;width:700px;max-width:calc(100vw - 32px);max-height:88vh;max-height:88dvh;border:1px solid var(--line);border-radius:16px;background:var(--card);color:var(--ink);box-shadow:0 24px 80px rgba(15,22,32,.25)}
.notification-dialog[open]{display:flex;flex-direction:column;animation:dialogIn .16s ease}
.notification-dialog::backdrop{background:rgba(17,24,32,.48);backdrop-filter:blur(4px)}
.notification-dialog-wide{width:1120px}
.notification-dialog-body{min-height:0;overflow-y:auto;overscroll-behavior:contain}
.notification-dialog .dialog-head{padding:19px 24px;gap:16px}
.notification-dialog .dialog-head h3{font-size:17px}
.notification-dialog .dialog-close{width:32px;height:32px;flex:none;font-size:21px}
.notification-dialog .cfg-card{padding:24px}
.notification-dialog .cfg-head{justify-content:space-between}
.notification-dialog .cfg-name{font-size:14px}
.notification-dialog .cfg-desc{color:var(--tx2)}
.notification-dialog .notify-form{padding:0;gap:6px}
.notification-dialog .nf-row{flex-wrap:wrap}
.notification-dialog .nf-row .input{min-width:0}
.notification-dialog .cfg-desc:first-child{margin-top:0}
.notification-dialog .nt-card{margin:0;overflow-x:hidden;overflow-y:auto}
.notification-dialog .nt-card>.card-head{padding:14px 24px;gap:20px}
.notification-dialog .nt-card>.card-head .card-sub{color:var(--tx2);margin:0}
.notification-dialog .nt-content h3{font-size:14px}
.notification-dialog .nt-preview{font-size:13px}
.notification-dialog .dialog-foot{padding:16px 24px;align-items:center}
.notification-save-hint{margin-right:auto;color:var(--tx2);font-size:12px}
body:has(.notification-dialog[open]){overflow:hidden}
body.theme-dark .notification-tile{box-shadow:0 8px 24px -10px rgba(0,0,0,.55)}
body.theme-dark .notification-icon-blue{background:#1d3045;color:#8fb9f0}
body.theme-dark .notification-icon-purple{background:#312743;color:#bd9feb}
body.theme-dark .notification-icon-amber{background:#3a3020;color:#e3bc73}
body.theme-dark .notification-icon-rose{background:#3d2831;color:#e3a0ae}
body.theme-dark .notification-badge.is-ready{background:#163b36;color:#70d5c5}
@media(max-width:1150px){.notification-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
  .notification-grid{grid-template-columns:1fr;gap:14px}
  .notification-tile{padding:18px}
  .notification-tile-top{margin-bottom:12px}
  .notification-tile-desc{min-height:0;margin-bottom:16px}
  .notification-dialog{max-width:calc(100vw - 20px);max-height:92vh;max-height:92dvh;border-radius:12px}
  .notification-dialog .cfg-card,.notification-dialog .dialog-head{padding:16px}
  .notification-dialog .dialog-foot{padding:12px 16px}
  .notification-dialog .nf-row{gap:10px}
  .notification-dialog .nf-label{width:100%}
  .notification-dialog .nt-card>.card-head{padding:12px 14px}
  .notification-dialog .nt-columns{grid-template-columns:minmax(0,1fr)}
  .notification-dialog .nf-row .input{flex-basis:0}
  .notification-dialog .nf-row .nf-label:empty{display:none}
}
@media(prefers-reduced-motion:reduce){.notification-tile{transition:none}.notification-tile:hover,.notification-tile:active{transform:none}.notification-dialog[open]{animation:none}}
.notify-form{margin-top:2px}
.nf-row{display:flex;align-items:center;gap:12px;margin-top:16px}
.nf-label{width:108px;flex:none;font-size:13.5px;color:var(--ink);font-weight:600}
.nf-label .req{color:var(--red);font-weight:400}
.nf-row .input{flex:1}
.nf-row .input.fixed{flex:none;width:170px}
.nf-row .btn{flex:none}
.cfg-form-off{opacity:.5;pointer-events:none}

.nt-card{margin-bottom:18px;overflow:hidden}
.nt-market-tabs{display:flex;gap:8px;padding:16px 20px;flex-wrap:wrap}
.nt-market-tabs .active{background:var(--teal);border-color:var(--teal);color:#fff}
.nt-layout{display:grid;grid-template-columns:170px minmax(0,1fr);border-top:1px solid var(--line)}
.nt-types{padding:12px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:6px}
.nt-types button{text-align:left;padding:12px;border-radius:6px;line-height:1.5}
.nt-types .active{background:var(--teal-050);color:var(--teal);box-shadow:inset 3px 0 var(--teal)}
.nt-content{padding:20px;min-width:0}
.nt-content h3{font-size:16px;margin-bottom:20px}
.nt-columns{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:22px}
.nt-columns label,.nt-preview-label{display:block;font-weight:600;margin-bottom:10px}
#nt-editor{height:310px;width:100%;resize:vertical;line-height:1.8;white-space:pre-wrap}
.nt-preview{background:var(--bg);border-radius:10px;white-space:pre-wrap;overflow-wrap:anywhere;padding:20px;min-height:310px;font:inherit;line-height:1.8}
.nt-variables{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}
.nt-editor-tools{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.nt-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px;flex-wrap:wrap}
#nt-status{font-size:12px;color:var(--tx2);max-width:50%;overflow-wrap:anywhere}
.ignore-skus-dialog{margin:auto;border:0;padding:0;width:660px;max-width:calc(100vw - 28px);max-height:90vh;border-radius:12px;color:var(--ink);background:var(--card);box-shadow:0 20px 60px rgba(15,22,32,.25)}
.ignore-skus-dialog::backdrop{background:rgba(17,24,32,.58)}
.ignore-skus-trigger{min-height:36px;font-weight:650;gap:7px;box-shadow:0 0 0 3px rgba(0,158,149,.1);white-space:nowrap}
.ignore-skus-trigger::before{content:'⊘';font-size:18px;line-height:1;font-weight:700}
.ignore-skus-trigger [data-ignore-count]{display:inline-block;min-width:24px;padding:1px 6px;border-radius:10px;background:rgba(255,255,255,.22);color:#fff;font-weight:700;text-align:center}
.ignore-skus-dialog[open]{display:flex;flex-direction:column}
.ignore-skus-dialog .dialog-body{min-height:0}
.ignore-skus-dialog .dialog-body>*{flex-shrink:0}
.ignore-skus-add{display:flex;gap:12px;align-items:center}
.ignore-skus-add textarea{flex:1;min-width:0;height:72px;min-height:72px;resize:vertical;line-height:1.7}
.ignore-skus-table{max-height:240px;overflow:auto;border:1px solid var(--line);border-radius:8px}
.ignore-skus-table table{width:100%;table-layout:auto}
.ignore-skus-table thead{position:sticky;top:0;background:var(--bg);z-index:1}
.ignore-skus-table td:nth-child(2){overflow-wrap:anywhere;white-space:normal}
.ignore-skus-table th:first-child{width:42px}
.ignore-skus-table th:last-child{width:105px}
.ignore-skus-dialog input[type=checkbox]{accent-color:var(--teal);width:16px;height:16px}
.ignore-skus-selection{display:flex;align-items:center;gap:16px}
#ignore-skus-status{font-size:13px;color:var(--tx2);overflow-wrap:anywhere}
#ignore-skus-status:empty{display:none}
body.theme-dark .ignore-skus-dialog{background:var(--card)}
body.theme-dark .nt-types .active{background:#0f2a28}
@media(max-width:1050px){.nt-columns{grid-template-columns:1fr}.nt-layout{grid-template-columns:145px minmax(0,1fr)}}
@media(max-width:760px){
  .layout:has(:is(#view-notifications,#view-inventory-alerts,#view-stock-automation).active) .sidebar{width:54px}
  .layout:has(:is(#view-notifications,#view-inventory-alerts,#view-stock-automation).active) .brand{padding:14px 9px}
  .layout:has(:is(#view-notifications,#view-inventory-alerts,#view-stock-automation).active) .brand>div:not(.brand-logo),.layout:has(:is(#view-notifications,#view-inventory-alerts,#view-stock-automation).active) .nav-group-title{display:none}
  .layout:has(:is(#view-notifications,#view-inventory-alerts,#view-stock-automation).active) .nav{padding:2px 6px}
  .layout:has(:is(#view-notifications,#view-inventory-alerts,#view-stock-automation).active) .nav-item{font-size:0;gap:0;justify-content:center;padding:10px}
  .layout:has(:is(#view-notifications,#view-inventory-alerts,#view-stock-automation).active) .content{padding:14px 12px 32px}
  .layout:has(:is(#view-notifications,#view-inventory-alerts,#view-stock-automation).active) .topbar{padding:8px 12px;gap:8px}
  .layout:has(:is(#view-notifications,#view-inventory-alerts,#view-stock-automation).active) .user-meta{display:none}
}
@media(max-width:600px){.nt-layout{grid-template-columns:1fr}.nt-types{flex-direction:row;flex-wrap:wrap;border-right:0;border-bottom:1px solid var(--line)}.nt-types button{padding:8px}.nt-content{padding:14px}.nt-market-tabs{padding:14px}.ignore-skus-dialog .dialog-body{padding:14px}.ignore-skus-add{align-items:flex-start;flex-wrap:wrap}.ignore-skus-add textarea{flex-basis:100%}.ignore-skus-dialog .dialog-foot{padding:12px 14px}.ignore-skus-table th:last-child{width:84px}}
