.op-page { color: var(--text, #1f2329); font: 14px/1.6 var(--font, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", Arial, sans-serif); }
.op-page * { box-sizing: border-box; }
.op-page button, .op-page input, .op-page textarea { font: inherit; }
.op-panel { padding: 24px; margin-bottom: 18px; border: 1px solid var(--border, #ecedf1); border-radius: 18px; background: #fff; box-shadow: 0 3px 20px rgba(16, 24, 40, .025); }
.op-loading { padding: 65px 20px; color: var(--muted, #6b7280); text-align: center; }
.op-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.op-head h2 { margin: 0 0 5px; font-size: 18px; line-height: 1.3; }
.op-head p { margin: 0; color: var(--muted, #6b7280); font-size: 13px; }
.op-head > div:last-child:not(:first-child) { display: flex; gap: 8px; flex-wrap: wrap; }
.op-hint { margin: 10px 0 18px; color: #919aaa; font-size: 12px; line-height: 1.6; }
.op-status { padding: 12px 15px; margin-bottom: 15px; border: 1px solid #c9e9d8; border-radius: 11px; background: #f0fbf5; color: #147d4b; font-size: 13px; }
.op-status[hidden] { display: none; }
.op-status.op-error { border-color: #f4d0d2; background: #fff3f3; color: #c62f3a; }
.op-button { min-height: 36px; display: inline-flex; justify-content: center; align-items: center; padding: 0 14px; border: 1px solid transparent; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .15s, transform .15s; }
.op-button:hover { transform: translateY(-1px); }
.op-button:disabled { opacity: .5; cursor: default; transform: none; }
.op-primary { color: #fff; background: var(--brand, #2f6bff); }
.op-primary:hover { background: var(--brand-hover, #1f57e6); }
.op-outline { color: #405069; background: #fff; border-color: #dfe5ef; }
.op-outline:hover { background: #f5f8ff; }
.op-danger { color: #d9474f; background: #fff5f5; }
.op-danger:hover { background: #ffe9e9; }
.op-danger-solid { color: #fff; background: #db434c; }
.op-danger-solid:hover { background: #c9343f; }
.op-search { display: flex; align-items: end; gap: 9px; margin: 18px 0; }
.op-search label { display: grid; gap: 5px; width: min(100%, 350px); color: #586273; font-size: 12px; font-weight: 600; }
.op-search input, .op-field input, .op-field textarea { width: 100%; min-height: 39px; padding: 8px 11px; border: 1px solid #dfe5ef; border-radius: 10px; outline: 0; background: #fff; color: var(--text, #1f2329); font-weight: 400; }
.op-field textarea { min-height: 84px; resize: vertical; }
.op-search input:focus, .op-field input:focus, .op-field textarea:focus { border-color: var(--brand, #2f6bff); box-shadow: 0 0 0 3px rgba(47, 107, 255, .12); }
.op-attachment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 13px; }
.op-attachment { display: flex; min-width: 0; gap: 12px; padding: 12px; border: 1px solid #e8edf5; border-radius: 15px; background: #fff; }
.op-thumbnail { width: 72px; height: 72px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: #f4f7fc; color: #9aa1ab; font-size: 11px; }
.op-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.op-attachment-info { min-width: 0; flex: 1; }
.op-attachment-info strong, .op-attachment-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-attachment-info strong { font-size: 13px; }
.op-attachment-info small { color: #9aa1ab; font-size: 11px; }
.op-item-actions { display: flex; gap: 6px; margin-top: 7px; }
.op-item-actions .op-button { min-height: 28px; padding: 0 9px; font-size: 11px; }
.op-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; color: var(--muted, #6b7280); font-size: 12px; }
.op-pager > div { display: flex; gap: 8px; }
.op-empty { padding: 45px 20px; border: 1px dashed #dbe2ed; border-radius: 15px; color: #9aa1ab; text-align: center; }
.op-list { display: grid; gap: 10px; }
.op-list-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border: 1px solid #e8edf5; border-radius: 15px; background: #fff; }
.op-list-item strong { font-size: 15px; }
.op-list-item p { margin: 5px 0 0; color: var(--muted, #6b7280); font-size: 12px; }
.op-list-actions, .op-row-actions { display: flex; gap: 7px; flex: none; }
.op-tag { display: inline-flex; align-items: center; margin-left: 10px; padding: 2px 8px; border-radius: 999px; background: #f0f2f5; color: #7b8494; font-size: 11px; font-weight: 600; }
.op-tag.enabled { background: #eaf9f0; color: #148652; }
.op-cleanup-item { display: flex; align-items: center; gap: 12px; padding: 15px 17px; border: 1px solid #e8edf5; border-radius: 13px; cursor: pointer; }
.op-cleanup-item input { width: 17px; height: 17px; flex: none; accent-color: var(--brand, #2f6bff); }
.op-cleanup-item strong, .op-cleanup-item small { display: block; }
.op-cleanup-item small { margin-top: 2px; color: #9aa1ab; font-size: 12px; }
.op-cleanup-year { display: grid; gap: 6px; max-width: 350px; margin: 17px 0 10px; color: #586273; font-size: 12px; font-weight: 600; }
.op-cleanup-year input { width: 100%; min-height: 39px; padding: 8px 11px; border: 1px solid #dfe5ef; border-radius: 10px; background: #fff; color: var(--text, #1f2329); outline: 0; font-weight: 400; }
.op-cleanup-actions { display: flex; align-items: center; justify-content: space-between; gap: 13px; margin-top: 18px; color: var(--muted, #6b7280); font-size: 12px; }
.op-table-scroll { overflow-x: auto; border: 1px solid #e8edf5; border-radius: 14px; }
.op-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.op-table th { padding: 12px 14px; border-bottom: 1px solid #e8edf5; background: #fafbfc; color: #929aaa; font-size: 12px; font-weight: 600; }
.op-table td { padding: 13px 14px; border-bottom: 1px solid #f0f2f6; color: #465165; }
.op-table tbody tr:last-child td { border-bottom: 0; }
.op-table td a { color: var(--brand, #2f6bff); text-decoration: none; }
.op-table td a:hover { text-decoration: underline; }
.op-backdrop { position: fixed; inset: 0; z-index: 115; display: grid; place-items: center; padding: 20px; background: rgba(12, 20, 38, .55); backdrop-filter: blur(4px); }
.op-modal { width: min(100%, 540px); max-height: min(90dvh, 820px); overflow-y: auto; padding: 23px; border: 1px solid #e2e8f3; border-radius: 20px; background: #fff; box-shadow: 0 30px 90px #0c142655; }
.op-modal-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.op-modal-head h3 { margin: 0; font-size: 19px; }
.op-modal-head button { width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: #8b94a4; font-size: 24px; line-height: 1; cursor: pointer; }
.op-modal-head button:hover { background: #eef3ff; }
.op-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.op-field { display: grid; gap: 5px; min-width: 0; color: #526075; font-size: 12px; font-weight: 600; }
.op-field.op-wide { grid-column: 1 / -1; }
.op-check { display: flex; align-items: center; gap: 8px; align-self: end; min-height: 39px; color: #526075; cursor: pointer; }
.op-check input { width: 16px; height: 16px; accent-color: var(--brand, #2f6bff); }
.op-modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
html.netscope-theme-dark .op-panel, html.netscope-theme-dark .op-modal, html.netscope-theme-dark .op-attachment, html.netscope-theme-dark .op-list-item, html.netscope-theme-dark .op-cleanup-item { color: #e7ecf5; background: #111d2f; border-color: #33435c; }
html.netscope-theme-dark .op-search label, html.netscope-theme-dark .op-field, html.netscope-theme-dark .op-check { color: #c4d0e2; }
html.netscope-theme-dark .op-cleanup-year { color: #c4d0e2; }
html.netscope-theme-dark .op-search input, html.netscope-theme-dark .op-field input, html.netscope-theme-dark .op-field textarea, html.netscope-theme-dark .op-cleanup-year input { color: #e7ecf5; background: #0d1727; border-color: #3c4d68; }
html.netscope-theme-dark .op-outline { color: #dce6f5; background: #17243a; border-color: #3c4d68; }
html.netscope-theme-dark .op-outline:hover, html.netscope-theme-dark .op-modal-head button:hover { background: #20314a; }
html.netscope-theme-dark .op-danger { color: #f5a5aa; background: #3d222c; border-color: #633540; }
html.netscope-theme-dark .op-thumbnail { color: #a9b8cb; background: #17243a; }
html.netscope-theme-dark .op-table-scroll { border-color: #33435c; }
html.netscope-theme-dark .op-table th { color: #a9b8cb; background: #17243a; border-color: #33435c; }
html.netscope-theme-dark .op-table td { color: #c4d0e2; border-color: #29364b; }
html.netscope-theme-dark .op-tag { color: #bdcbe0; background: #20314a; }
html.netscope-theme-dark .op-tag.enabled, html.netscope-theme-dark .op-status { color: #73d7a5; background: #153b2b; border-color: #2c6248; }
html.netscope-theme-dark .op-status.op-error { color: #f5a5aa; background: #3d222c; border-color: #633540; }
@media (max-width: 650px) {
  .op-panel { padding: 18px 14px; }
  .op-head { flex-direction: column; }
  .op-head > div:last-child:not(:first-child) { width: 100%; }
  .op-head > div:last-child .op-button { flex: 1; }
  .op-list-item { align-items: stretch; flex-direction: column; }
  .op-list-actions .op-button { flex: 1; }
  .op-pager { align-items: stretch; flex-direction: column; }
  .op-pager > div .op-button { flex: 1; }
  .op-cleanup-actions { align-items: stretch; flex-direction: column; }
  .op-search label { flex: 1; }
  .op-backdrop { align-items: end; padding: 0; }
  .op-modal { width: 100%; max-height: 94dvh; border-radius: 20px 20px 0 0; }
}
@media (max-width: 430px) { .op-form-grid { grid-template-columns: 1fr; } .op-field.op-wide { grid-column: auto; } }
