:root {
  --navy: #17243c;
  --navy-deep: #101a2c;
  --blue: #2864dc;
  --blue-dark: #1f52bb;
  --blue-soft: #edf4ff;
  --ink: #182230;
  --muted: #667085;
  --line: #e4e8ef;
  --surface: #ffffff;
  --canvas: #f5f7fa;
  --green: #17875d;
  --green-soft: #eaf8f2;
  --amber: #a15c07;
  --amber-soft: #fff5df;
  --radius: 6px;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, select { font: inherit; }
input, select { font-size: 12px; }
input::placeholder { color: #98a2b3; font-size: 11px; }
button { cursor: pointer; }
.hidden { display: none !important; }

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-view {
  min-height: 100vh;
  background: #eef2f7;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(420px, 100%);
  min-height: 430px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e1e6ed;
  box-shadow: 0 20px 50px rgba(27, 39, 61, 0.14);
}

.login-form {
  min-height: 430px;
  padding: 62px 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-form header { margin-bottom: 38px; text-align: center; }
.login-form h1 { margin: 0; font-size: 24px; letter-spacing: 0; }
.login-form label { display: block; margin-bottom: 20px; }
.login-form label > span { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.input-wrap { position: relative; }
.input-wrap > svg { position: absolute; left: 13px; top: 10px; width: 18px; color: #8b95a5; }
.input-wrap input {
  width: 100%;
  height: 40px;
  padding: 0 44px 0 42px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  outline: none;
  transition: border .15s, box-shadow .15s;
}
.input-wrap input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40,100,220,.12); }
.visibility-button { position: absolute; right: 3px; top: 2px; width: 36px; height: 36px; border: 0; background: transparent; color: #758094; }
.visibility-button svg { width: 18px; }
.login-form .remember-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -4px 0 14px;
  color: #566276;
  font-size: 12px;
  cursor: pointer;
}
.login-form .remember-option input { width: 14px; height: 14px; margin: 0; accent-color: var(--blue); }
.login-form .remember-option > span { display: inline; margin: 0; font-size: 12px; font-weight: 400; }
.login-error { min-height: 20px; margin: -7px 0 9px; color: #c83b3b; font-size: 12px; }

.primary, .secondary, .text-button {
  min-height: 34px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
}
.primary { background: var(--blue); color: #fff; }
.primary:hover { background: var(--blue-dark); }
.primary svg, .secondary svg { width: 18px; }
.secondary { background: #fff; color: #344054; border-color: #d7dde6; }
.secondary:hover { background: #f8fafc; }
.text-button { background: transparent; color: var(--muted); padding-inline: 8px; }
.login-button { width: 100%; height: 40px; justify-content: space-between; padding: 0 14px; }
.login-form .login-button { border-radius: 8px; }
.login-button:disabled { opacity: .7; cursor: wait; }

.app-view { min-height: 100vh; display: flex; background: var(--canvas); }
.sidebar { position: sticky; top: 0; width: 276px; height: 100vh; flex: 0 0 276px; align-self: flex-start; display: flex; flex-direction: column; background: var(--navy-deep); color: #fff; }
.sidebar-brand { min-height: 70px; padding: 0 18px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-brand-title { font-size: 16px; font-weight: 700; white-space: nowrap; }
.nav-label { padding: 20px 22px 9px; color: #72809a; font-size: 11px; font-weight: 700; }
.nav-list { min-height: 0; flex: 1; padding: 0 10px 12px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #344057 transparent; }
.nav-group { margin: 2px 0; }
.nav-query-button, .nav-report-button {
  width: 100%;
  height: 42px;
  margin: 2px 0 8px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 5px;
  color: #c1cad8;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}
.nav-query-button { margin-bottom: 2px; }
.nav-report-button { margin-bottom: 8px; }
.nav-query-button svg, .nav-report-button svg { width: 17px; height: 17px; color: #718099; }
.nav-query-button:hover, .nav-report-button:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-query-button.active, .nav-report-button.active { color: #fff; background: #2457bd; }
.nav-query-button.active svg, .nav-report-button.active svg { color: #d8e4ff; }
.nav-group-toggle {
  width: 100%;
  height: 42px;
  padding: 0 10px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #c1cad8;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
}
.nav-group-toggle:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-group-toggle svg { width: 15px; height: 15px; color: #718099; transition: transform .18s ease; }
.nav-group.expanded .nav-group-toggle svg { transform: rotate(90deg); }
.nav-children { display: none; padding: 1px 0 5px; }
.nav-group.expanded .nav-children { display: block; }
.nav-item {
  width: 100%;
  min-height: 43px;
  margin: 2px 0;
  padding: 8px 10px 8px 16px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #aab5c7;
  text-align: left;
  font-size: 12px;
  line-height: 1.45;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-item.active { color: #fff; background: #2457bd; }
.nav-number { color: #6f7d96; font-size: 10px; text-align: center; }
.nav-item.active .nav-number { color: #c9d9ff; }
.mail-nav-dot { width: 24px; height: 18px; display: grid; place-items: center; }
.mail-nav-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sidebar-user { min-height: 70px; flex: 0 0 70px; padding: 12px 14px; display: grid; grid-template-columns: 34px minmax(0, 1fr) 36px; align-items: center; gap: 9px; border-top: 1px solid rgba(255,255,255,.08); background: #0d1627; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #3d70da; font-size: 12px; font-weight: 700; }
.sidebar-user .avatar { display: grid; }
.avatar svg { width: 18px; height: 18px; stroke-width: 1.9; }
.sidebar-user strong, .sidebar-user span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { margin-bottom: 3px; font-size: 12px; }
.sidebar-user div > span { color: #79869d; font-size: 10px; }
.icon-button { position: relative; width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 5px; color: #64748b; background: transparent; }
.icon-button:hover { background: rgba(127,142,163,.12); color: var(--ink); }
.sidebar .icon-button { color: #8693a8; }
.sidebar .icon-button:hover { color: #fff; }
.icon-button svg { width: 19px; }
.mobile-only { display: none; }

.workspace { min-width: 0; flex: 1; }
.topbar { height: 70px; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--line); }
.topbar-title { display: flex; align-items: center; gap: 10px; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.settings-button { height: 34px; padding: 0 7px; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 5px; color: #586477; background: transparent; font-size: 12px; }
.settings-button:hover { color: var(--blue); background: var(--blue-soft); }
.settings-button.active { color: var(--blue); background: var(--blue-soft); }
.settings-button svg { width: 18px; height: 18px; }

.content { padding: 28px 30px 40px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-heading h2 { margin: 0 0 7px; font-size: 22px; }
.page-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.page-heading p strong { color: var(--blue); }
.filter-bar { min-height: 60px; padding: 12px 14px; display: flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); border-bottom: 0; border-radius: 7px 7px 0 0; }
.search-box { position: relative; width: min(380px, 42vw); }
.search-box svg { position: absolute; left: 11px; top: 8px; width: 17px; color: #98a2b3; }
.search-box input, .filter-bar select { height: 34px; border: 1px solid #d8dee8; border-radius: 5px; background: #fff; outline: none; color: #344054; }
.search-box input { width: 100%; padding: 0 14px 0 39px; }
.filter-bar select { min-width: 130px; padding: 0 32px 0 12px; }
.search-box input:focus, .filter-bar select:focus { border-color: #8eb1f8; }
.data-panel { background: #fff; border: 1px solid var(--line); border-radius: 0 0 7px 7px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 980px; border-collapse: collapse; }
th, td { height: 58px; padding: 0 15px; border-bottom: 1px solid #edf0f4; text-align: left; white-space: nowrap; font-size: 12px; }
th { height: 43px; color: #707b8e; background: #fafbfc; font-size: 11px; font-weight: 600; }
td { color: #344054; }
td strong { color: #1f2937; font-size: 12px; }
.remarks-cell { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.align-right { text-align: right; }
.record-code { color: var(--blue); font-weight: 600; }
.record-code-button { padding: 0; border: 0; background: transparent; cursor: pointer; font: inherit; }
.record-code-button:hover { color: var(--blue-dark); text-decoration: underline; }
.preview-column, .preview-cell { width: 46px; min-width: 46px; padding: 0 8px; text-align: center; }
.preview-record-button { width: 28px; height: 28px; padding: 0; display: inline-grid; place-items: center; border: 0; border-radius: 4px; color: #667085; background: transparent; }
.preview-record-button:hover { color: var(--blue); background: var(--blue-soft); }
.preview-record-button svg { width: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.processing { color: #2259b9; background: var(--blue-soft); }
.status.pending { color: var(--amber); background: var(--amber-soft); }
.status.complete { color: var(--green); background: var(--green-soft); }
.row-actions { display: inline-flex; gap: 2px; }
.row-actions button { width: 28px; height: 28px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 4px; background: transparent; color: #778296; }
.row-actions button:hover { color: var(--blue); background: var(--blue-soft); }
.row-actions .danger-action:hover { color: #c63838; background: #fff0f0; }
.row-actions button:disabled { opacity: .5; cursor: wait; }
.row-actions svg { width: 16px; }
.pagination { min-height: 62px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; color: #7d8798; font-size: 11px; }
.pagination-controls, .page-buttons, .page-size-control { display: flex; align-items: center; }
.pagination-controls { gap: 14px; }
.page-buttons { gap: 5px; }
.page-size-control { gap: 6px; color: #7d8798; font-size: 11px; }
.page-size-control select { width: 58px; height: 28px; padding: 0 5px; border: 1px solid #dce1e8; border-radius: 4px; color: #566276; background: #fff; outline: none; }
.page-button { min-width: 28px; height: 28px; padding: 0; display: grid; place-items: center; border: 1px solid #dce1e8; border-radius: 4px; color: #667085; background: #fff; }
.page-button svg { width: 15px; }
.page-button.active { color: #fff; background: var(--blue); border-color: var(--blue); }
.page-button:disabled { color: #bdc4cf; cursor: default; }
.empty-state { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #8a95a6; }
.empty-state svg { width: 42px; height: 42px; margin-bottom: 14px; color: #b0bac8; }
.empty-state strong { margin-bottom: 6px; color: #586477; font-size: 14px; }
.empty-state span { font-size: 12px; }
.toast { position: fixed; right: 26px; bottom: 26px; padding: 12px 16px; border-radius: 5px; color: #fff; background: #273449; box-shadow: 0 10px 30px rgba(20,30,45,.2); font-size: 13px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translateY(0); }
.sidebar-overlay { display: none; }

.settings-heading { margin-bottom: 22px; }
.unified-search-form { min-height: 74px; margin-bottom: 16px; padding: 14px 16px; display: grid; grid-template-columns: 190px minmax(260px, 520px) 86px; align-items: end; justify-content: start; gap: 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.unified-search-form label > span { display: block; margin-bottom: 7px; color: #566276; font-size: 11px; font-weight: 600; }
.unified-search-form select, .unified-search-form input { width: 100%; height: 34px; padding: 0 10px; border: 1px solid #d8dee8; border-radius: 5px; color: #344054; background: #fff; outline: none; }
.unified-search-form select:focus, .unified-search-form input:focus { border-color: #8eb1f8; box-shadow: 0 0 0 3px rgba(40,100,220,.08); }
.unified-search-form .primary { width: 86px; height: 34px; }
.unified-results-heading { justify-content: space-between; }
.unified-results-heading p strong { color: var(--blue); }
.unified-search-table { min-width: 1040px; }
.unified-search-empty { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #8a95a6; font-size: 12px; }
.unified-search-empty svg { width: 34px; height: 34px; color: #b0bac8; }
.report-filter-form { min-height: 74px; margin-bottom: 14px; padding: 14px 16px; display: grid; grid-template-columns: 190px 220px 86px; align-items: end; justify-content: start; gap: 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.report-filter-form label > span { display: block; margin-bottom: 7px; color: #566276; font-size: 11px; font-weight: 600; }
.report-filter-form select { width: 100%; height: 34px; padding: 0 10px; border: 1px solid #d8dee8; border-radius: 5px; color: #344054; background: #fff; outline: none; }
.report-filter-form select:focus { border-color: #8eb1f8; box-shadow: 0 0 0 3px rgba(40,100,220,.08); }
.report-filter-form .primary { width: 86px; height: 34px; }
.report-summary { margin-bottom: 14px; display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.report-summary > div { min-height: 74px; padding: 15px 18px; display: flex; flex-direction: column; justify-content: center; gap: 7px; border-right: 1px solid var(--line); }
.report-summary > div:last-child { border-right: 0; }
.report-summary span { color: var(--muted); font-size: 11px; }
.report-summary strong { font-size: 19px; font-weight: 700; }
.report-table { min-width: 880px; }
.mail-table { min-width: 1080px; }
.report-results-heading { justify-content: space-between; }
.primary:disabled { opacity: .55; cursor: not-allowed; }
.settings-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 18px; align-items: start; }
.user-create-panel, .user-list-panel { background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.section-heading { min-height: 60px; padding: 0 20px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.section-heading h3 { margin: 0; font-size: 15px; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.section-heading p strong { color: var(--blue); }
.user-form { padding: 22px 20px; }
.user-form label { display: block; margin-bottom: 18px; }
.user-form label > span { display: block; margin-bottom: 8px; color: #344054; font-size: 12px; font-weight: 600; }
.user-form input { width: 100%; height: 36px; padding: 0 10px; border: 1px solid #d8dee8; border-radius: 6px; outline: none; }
.user-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40,100,220,.1); }
.user-form .primary { width: 100%; }
.user-form .primary:disabled { opacity: .65; cursor: wait; }
.form-error { min-height: 20px; margin: -4px 0 10px; color: #c83b3b; font-size: 11px; line-height: 1.5; }
.user-table { min-width: 660px; }
.user-type { display: inline-block; padding: 4px 8px; border-radius: 4px; color: #566276; background: #f0f2f5; font-size: 11px; }
.user-type.admin { color: #2259b9; background: var(--blue-soft); }
.account-status { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 11px; }
.account-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.user-row-actions { display: inline-flex; align-items: center; gap: 2px; }
.password-user-button, .delete-user-button { width: 28px; height: 28px; padding: 0; display: inline-grid; place-items: center; border: 0; border-radius: 4px; color: #8b95a5; background: transparent; }
.password-user-button:hover { color: var(--blue); background: var(--blue-soft); }
.delete-user-button:hover { color: #c63838; background: #fff0f0; }
.password-user-button:disabled, .delete-user-button:disabled { opacity: .5; cursor: wait; }
.password-user-button svg, .delete-user-button svg { width: 16px; height: 16px; }
.user-loading { min-height: 180px; display: grid; place-items: center; color: var(--muted); font-size: 12px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; padding: 24px; display: grid; place-items: center; background: rgba(15, 23, 42, .48); }
.modal-panel { width: min(880px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; border-radius: 8px; background: #fff; box-shadow: 0 24px 70px rgba(15, 23, 42, .25); }
.modal-header { min-height: 64px; padding: 0 20px 0 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font-size: 17px; }
.modal-title-actions { min-width: 0; display: flex; align-items: center; gap: 8px; }
.modal-title-actions h2 { margin-right: 4px; }
.modal-query-button { min-height: 30px; padding: 0 10px; font-size: 11px; white-space: nowrap; }
.registration-form { padding: 22px 24px 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid label { display: block; }
.form-grid label > span { display: block; margin-bottom: 8px; color: #344054; font-size: 12px; font-weight: 600; }
.form-grid input, .form-grid select { width: 100%; height: 36px; padding: 0 10px; border: 1px solid #d8dee8; border-radius: 6px; background: #fff; outline: none; }
.form-grid input[readonly] { color: #7a8494; background: #f4f6f8; cursor: default; }
.form-grid textarea { width: 100%; min-height: 92px; padding: 10px; resize: vertical; border: 1px solid #d8dee8; border-radius: 6px; font: inherit; font-size: 12px; line-height: 1.6; outline: none; }
.form-grid textarea::placeholder { color: #98a2b3; font-size: 11px; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40,100,220,.1); }
.full-field { grid-column: 1 / -1; }
.business-section-divider { grid-column: 1 / -1; position: relative; height: 28px; margin-top: 4px; display: flex; align-items: center; }
.business-section-divider::before { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.business-section-divider span { position: relative; padding-right: 12px; color: #596579; background: #fff; font-size: 12px; font-weight: 700; }
.trademark-image-field { grid-column: 1 / -1; }
.trademark-image-field > span { display: block; margin-bottom: 8px; color: #344054; font-size: 12px; font-weight: 600; }
.trademark-image-editor { display: grid; grid-template-columns: 150px minmax(0, 1fr); grid-template-rows: auto auto; gap: 12px 16px; align-items: start; }
.trademark-image-preview { width: 150px; aspect-ratio: 1 / 1; grid-row: 1 / 3; display: grid; place-items: center; overflow: hidden; border: 1px dashed #c9d1dd; border-radius: 6px; color: #98a2b3; background: #fafbfc; }
.trademark-image-preview img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.trademark-image-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 11px; }
.trademark-image-empty svg { width: 30px; height: 30px; }
.trademark-image-actions { display: flex; align-items: center; gap: 8px; }
.remove-image-button { min-height: 34px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 5px; color: #c63838; background: transparent; font-size: 12px; }
.remove-image-button:hover { background: #fff0f0; }
.remove-image-button svg { width: 16px; height: 16px; }
.upload-progress { max-width: 360px; display: grid; grid-template-columns: minmax(0, 1fr) 36px; align-items: center; gap: 9px; }
.upload-progress > div { height: 6px; overflow: hidden; border-radius: 3px; background: #e8edf4; }
.upload-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--blue); transition: width .12s linear; }
.upload-progress > span { color: var(--muted); font-size: 10px; text-align: right; }
.registration-form > .form-error { margin: 14px 0 0; }
.password-panel { width: min(460px, 100%); }
.password-form { padding: 22px 24px 20px; }
.password-form > p { margin: 0 0 20px; color: #667085; font-size: 12px; }
.password-form > p strong { color: #344054; }
.password-form label { display: block; margin-bottom: 16px; }
.password-form label > span { display: block; margin-bottom: 8px; color: #344054; font-size: 12px; font-weight: 600; }
.password-form input:not([type="hidden"]) { width: 100%; height: 36px; padding: 0 10px; border: 1px solid #d8dee8; border-radius: 6px; outline: none; }
.password-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40,100,220,.1); }
.preview-panel { width: min(920px, 100%); }
.record-preview-body { padding: 22px 24px 26px; }
.preview-grid { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.preview-item { min-width: 0; padding: 12px 0; border-bottom: 1px solid #edf0f4; }
.preview-item.wide { grid-column: 1 / -1; }
.preview-item dt { margin-bottom: 6px; color: #7a8494; font-size: 11px; }
.preview-item dd { margin: 0; color: #263244; font-size: 12px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.preview-section-title { grid-column: 1 / -1; margin: 24px 0 2px; padding-bottom: 9px; border-bottom: 1px solid #dce2ea; color: #344054; font-size: 12px; font-weight: 700; }
.preview-logo { grid-column: 1 / -1; padding: 14px 0; border-bottom: 1px solid #edf0f4; }
.preview-logo > span { display: block; margin-bottom: 9px; color: #7a8494; font-size: 11px; }
.preview-logo-frame { width: 150px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border: 1px solid #d8dee8; border-radius: 6px; color: #98a2b3; background: #fafbfc; font-size: 11px; }
.preview-logo-frame img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.modal-footer { margin-top: 16px; padding-top: 18px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); }
.modal-footer button { min-width: 88px; }

@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 20; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 10px 0 30px rgba(15,23,42,.18); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { position: fixed; inset: 0; z-index: 19; background: rgba(15,23,42,.35); }
  .sidebar-overlay.show { display: block; }
  .mobile-only { display: grid; }
  .sidebar-brand .mobile-only { margin-left: auto; }
  .settings-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .login-view { background: #fff; }
  .login-panel { min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
  .login-form { min-height: 100vh; padding: 48px 28px; }
  .topbar { padding: 0 16px; }
  .content { padding: 22px 16px 32px; }
  .page-heading { align-items: flex-start; }
  .page-heading h2 { font-size: 18px; }
  .page-heading .primary { min-width: 40px; padding: 0 10px; font-size: 0; }
  .filter-bar { flex-wrap: wrap; }
  .search-box { width: 100%; }
  .filter-bar select { flex: 1; }
  .unified-search-form { grid-template-columns: 1fr; }
  .unified-search-form .primary { width: 100%; }
  .report-filter-form { grid-template-columns: 1fr; }
  .report-filter-form .primary { width: 100%; }
  .report-summary { grid-template-columns: 1fr; }
  .report-summary > div { min-height: 62px; border-right: 0; border-bottom: 1px solid var(--line); }
  .report-summary > div:last-child { border-bottom: 0; }
  .pagination { padding: 12px 14px; }
  .pagination { align-items: flex-start; gap: 10px; }
  .pagination-controls { flex-direction: column; align-items: flex-end; gap: 7px; }
  .modal-backdrop { padding: 0; align-items: end; }
  .preview-grid { grid-template-columns: 1fr; }
  .preview-item.wide, .preview-section-title, .preview-logo { grid-column: 1; }
  .modal-panel { max-height: 92vh; border-radius: 8px 8px 0 0; }
  .modal-header { min-height: 70px; gap: 8px; }
  .modal-title-actions { flex-wrap: wrap; padding: 10px 0; }
  .modal-title-actions h2 { width: 100%; }
  .registration-form { padding: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .full-field { grid-column: auto; }
  .trademark-image-editor { grid-template-columns: 120px minmax(0, 1fr); }
  .trademark-image-preview { width: 120px; }
}
