:root {
  --blue: #287cff;
  --blue-hover: #176be9;
  --ink: #1b2f4e;
  --muted: #7a91ae;
  --border: #dce8f5;
  --bg: #f3f8fc;
  --white: #fff;
  --green: #20bd94;
  --shadow: 0 5px 22px #294e7510;
  --radius: 16px;
  font-family: Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  color: var(--ink);
  font-size: 14px;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  line-height: 1.6;
}

button,input,textarea,select {
  font: inherit;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-hover);
}

button,a,input,textarea,select {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {
  outline: 3px solid #287cff40;
  outline-offset: 3px;
}

svg.icon {
  width: 19px;
  height: 19px;
  vertical-align: middle;
  flex-shrink: 0;
  stroke-width: 1.7;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  background: linear-gradient(155deg,#fff 30%,#f3fbff);
  border-right: 1px solid #d1e4f6;
  padding: 28px 20px 20px;
  z-index: 30;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  padding: 0 4px 29px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: linear-gradient(145deg,#4499ff,#1d70f9);
  color: white;
  box-shadow: 0 5px 12px #287cff24;
  transform: rotate(-7deg);
}

.brand-mark svg.icon {
  width: 27px;
  height: 27px;
  transform: rotate(7deg);
}

.brand strong {
  font-size: 17px;
  letter-spacing: .3px;
}

.brand small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.2px;
  margin-top: 1px;
}

.nav-list {
  display: grid;
  gap: 7px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #5d7a9d;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 13px;
  transition: .18s;
}

.nav-item:hover {
  background: #edf6ff;
  color: var(--blue);
}

.nav-item.active {
  color: var(--blue);
  border-color: #aed3ff;
  background: linear-gradient(125deg,#f8fcff,#ecfaff);
  box-shadow: 0 3px 8px #287cff0c;
}

.nav-item .icon {
  width: 20px;
  height: 20px;
}

.nav-label {
  font-size: 11px;
  color: #8ca1bb;
  margin: 24px 5px 13px;
  padding-top: 17px;
  border-top: 1px solid var(--border);
  letter-spacing: 1px;
}

.sidebar-note {
  margin-top: auto;
  padding: 24px 12px 16px;
  color: #96a9bf;
  font-size: 11px;
}

.sidebar-note span {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.sidebar-note i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #36c8a4;
}

.account {
  background: #ffffffb8;
  border: 1px solid #cee3ff;
  border-radius: 15px;
  padding: 13px 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: var(--shadow);
}

.avatar {
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg,#dcf0ff,#c2d9ff);
  color: var(--blue);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}

.account-text {
  min-width: 0;
  flex: 1;
}

.account-text strong {
  display: block;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-text small {
  font-size: 11px;
  color: var(--muted);
}

.account form {
  margin: 0;
}

.main-area {
  margin-left: 238px;
}

.topbar {
  height: 73px;
  border-bottom: 1px solid #d5e5f5;
  background: #ffffffd9;
  display: flex;
  align-items: center;
  padding: 0 30px;
  gap: 22px;
}

.topbar-title {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
  flex-shrink: 0;
}

.topbar-title small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}

.topbar-notice {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f0f7ff;
  color: #718fb4;
  border: 1px solid #d4e6ff;
  border-radius: 13px;
  padding: 7px 12px;
  font-size: 12px;
  max-width: 680px;
}

.topbar-notice .icon {
  color: var(--blue);
  width: 17px;
}

.topbar-end {
  margin-left: auto;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: #6c86a6;
}

.version {
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #f9fcff;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 9px;
}

.topbar-user .avatar {
  width: 31px;
  height: 31px;
}

.icon-button.menu-toggle {
  display: none;
}

.content {
  max-width: 1700px;
  margin: 0 auto;
  padding: 32px 30px 27px;
}

.breadcrumb {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8aa0bb;
  margin-bottom: 16px;
}

.breadcrumb .icon {
  width: 14px;
  height: 14px;
}

.breadcrumb span:last-child {
  color: #536d8d;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.page-heading h1 {
  font-size: 29px;
  line-height: 1.3;
  letter-spacing: .3px;
  margin: 0 0 8px;
  font-weight: 750;
}

.page-heading p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}

.heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #cfe2ff;
  color: var(--blue);
  background: #fff;
  line-height: 1.4;
  transition: .16s;
}

.btn .icon {
  width: 15px;
  height: 15px;
}

.btn:hover {
  background: #f2f8ff;
  color: var(--blue-hover);
  border-color: #a5cbff;
}

.btn-primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
  box-shadow: 0 4px 9px #287cff20;
}

.btn-primary:hover {
  background: var(--blue-hover);
  color: white;
  border-color: var(--blue-hover);
}

.btn-subtle {
  border-color: var(--border);
  color: #667f9e;
  background: #fff;
}

.btn-danger {
  color: #e65061;
  border-color: #ffd3d9;
}

.btn-danger:hover {
  background: #fff5f6;
  color: #dc3f50;
  border-color: #f4aab4;
}

.btn-small {
  font-size: 12px;
  min-height: 29px;
  padding: 5px 10px;
}

.icon-button {
  border: 1px solid var(--border);
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: #f9fcff;
  color: #7794b7;
  padding: 0;
}

.icon-button:hover {
  background: #edf6ff;
  color: var(--blue);
}

.icon-button .icon {
  height: 16px;
  width: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
  margin-bottom: 23px;
}

.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 23px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.stat-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg,#fff,#edf5ff);
  border: 1px solid #cfe2ff;
  border-radius: 13px;
  color: var(--blue);
}

.stat-icon.green {
  color: #16b58b;
  border-color: #c4efdf;
  background: linear-gradient(145deg,#fff,#effaf4);
}

.stat-icon.violet {
  color: #9373ff;
  border-color: #e3d8ff;
  background: linear-gradient(145deg,#fff,#f4efff);
}

.stat-icon.cyan {
  color: #13b7c3;
  border-color: #cdf0f2;
  background: #effcfd;
}

.stat-card label {
  color: #7991b0;
  font-size: 12px;
}

.stat-card strong {
  display: block;
  font-size: 30px;
  line-height: 1.35;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stat-card small {
  display: block;
  font-size: 11px;
  color: #91a5bf;
  margin-top: 3px;
}

.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-padding {
  padding: 24px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 23px 19px;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  gap: 7px;
}

.filter-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #768aa5;
  border: 1px solid transparent;
  padding: 7px 12px;
  border-radius: 8px;
}

.filter-tab b {
  font-size: 11px;
  background: #edf3f9;
  color: #8498b2;
  border-radius: 4px;
  padding: 0 5px;
  font-weight: 500;
}

.filter-tab.active {
  color: var(--blue);
  background: #eef6ff;
  border-color: #d5e7ff;
  font-weight: 600;
}

.filter-tab.active b {
  background: #dcecff;
  color: var(--blue);
}

.filter-form {
  display: flex;
  gap: 9px;
  align-items: center;
}

.search-input {
  position: relative;
}

.search-input>.icon {
  position: absolute;
  top: 10px;
  left: 11px;
  width: 15px;
  height: 15px;
  color: #99abc1;
}

.search-input input {
  padding-left: 34px;
  width: 235px;
}

.input,input[type=text],input[type=password],input[type=url],input[type=number],select,textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  min-height: 35px;
  padding: 8px 11px;
  color: var(--ink);
  font-size: 12px;
  transition: .16s;
  max-width: 100%;
}

input::placeholder,textarea::placeholder {
  color: #a5b4c7;
}

input:focus,select:focus,textarea:focus {
  border-color: #8dbbff;
  outline: 3px solid #287cff0c;
}

select {
  padding-right: 25px;
}

.table-scroll {
  overflow-x: auto;
  padding: 0 23px;
}

table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
  font-size: 12px;
}

th {
  color: #8091a9;
  font-weight: 500;
  background: #f6f9fc;
  padding: 14px 13px;
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #eaf0f7;
}

th:first-child {
  border-radius: 9px 0 0 9px;
}

th:last-child {
  border-radius: 0 9px 9px 0;
}

td {
  padding: 18px 13px;
  border-bottom: 1px solid #eef2f7;
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fbfdff;
}

.card-info {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 210px;
}

.card-thumb {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  background: #edf5ff;
  border: 1px solid #ecf1f7;
}

.card-placeholder {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  background: linear-gradient(145deg,#e1efff,#f1f8ff);
  display: grid;
  place-items: center;
  color: #5999ed;
  border: 1px solid #d8e9fe;
  flex-shrink: 0;
}

.card-placeholder .icon {
  width: 25px;
  height: 25px;
}

.card-info strong {
  display: block;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 600;
}

.card-info small {
  display: block;
  color: #98a8bd;
  margin-top: 5px;
  font-size: 11px;
}

.shortlink {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #6c83a3;
}

.shortlink>a {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #647c9d;
}

.copy-icon {
  border: 0;
  background: none;
  color: #9aacbf;
  padding: 4px;
  cursor: pointer;
  display: inline-flex;
}

.copy-icon:hover {
  color: var(--blue);
}

.copy-icon .icon {
  width: 15px;
  height: 15px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #537361;
}

.status:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #1fc391;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #1fc3910d;
}

.status.off {
  color: #94a2b4;
}

.status.off:before {
  background: #a7b4c5;
  box-shadow: none;
}

.metric {
  color: #4e6685;
  font-variant-numeric: tabular-nums;
}

.metric em {
  font-style: normal;
  color: #acb9c9;
  margin: 0 4px;
}

.text-muted {
  color: var(--muted);
}

.text-xs {
  font-size: 11px;
}

.row-actions {
  display: flex;
  gap: 13px;
  align-items: center;
}

.text-action {
  border: 0;
  background: none;
  padding: 0;
  color: var(--blue);
  font: inherit;
  cursor: pointer;
}

.text-action:hover {
  color: var(--blue-hover);
}

.row-actions form {
  margin: 0;
}

.dropdown {
  position: relative;
}

.dropdown summary {
  display: flex;
  gap: 3px;
  align-items: center;
  color: #7790ac;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
}

.dropdown summary::-webkit-details-marker {
  display: none;
}

.dropdown summary .icon {
  width: 13px;
  height: 13px;
}

.dropdown-menu {
  position: absolute;
  z-index: 10;
  top: 26px;
  right: 0;
  min-width: 125px;
  padding: 6px;
  background: white;
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px #233e5e20;
  border-radius: 10px;
}

.dropdown-menu>a,.dropdown-menu button {
  display: block;
  text-align: left;
  width: 100%;
  border: 0;
  background: none;
  padding: 8px 10px;
  font: inherit;
  color: #6a809b;
  border-radius: 6px;
  cursor: pointer;
}

.dropdown-menu>a:hover,.dropdown-menu button:hover {
  background: #f0f7ff;
  color: var(--blue);
}

.dropdown-menu .danger {
  color: #df5866;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 23px;
  border-top: 1px solid #eef2f7;
  font-size: 12px;
  color: #91a3ba;
}

.pagination {
  display: flex;
  gap: 6px;
}

.pagination a {
  display: grid;
  place-items: center;
  min-width: 29px;
  height: 29px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: #7e91aa;
  padding: 0 8px;
}

.pagination a.active {
  color: var(--blue);
  border-color: #b9d7ff;
  background: #f0f7ff;
}

.pagination .icon {
  width: 14px;
  height: 14px;
}

.page-foot {
  color: #98abc1;
  font-size: 11px;
  padding: 20px 5px 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.page-foot span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-foot .icon {
  width: 13px;
  height: 13px;
}

.empty-state {
  padding: 65px 24px 70px;
  text-align: center;
  max-width: 550px;
  margin: auto;
  white-space: normal;
}

.empty-art {
  width: 80px;
  height: 80px;
  border: 1px solid #dbebff;
  background: linear-gradient(150deg,#f8fcff,#e9f3ff);
  border-radius: 24px;
  display: grid;
  place-items: center;
  margin: 0 auto 21px;
  position: relative;
  box-shadow: 0 7px 24px #287cff0a;
}

.empty-art:after {
  content: "+";
  position: absolute;
  right: -5px;
  bottom: 0;
  width: 25px;
  height: 25px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  line-height: 18px;
}

.empty-art .icon {
  width: 33px;
  height: 33px;
  color: #78aef2;
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
}

.empty-state p {
  font-size: 12px;
  color: #91a2b9;
  margin: 0 0 21px;
}

.flash {
  padding: 12px 15px;
  border: 1px solid #c9e9d9;
  color: #338460;
  background: #f0fbf5;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.flash.error {
  background: #fff5f5;
  border-color: #ffd4d9;
  color: #c6505f;
}

.flash .icon {
  width: 17px;
  height: 17px;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 330px;
  gap: 24px;
  align-items: start;
}

.form-panel {
  padding: 26px 28px;
}

.section-heading {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 22px;
}

.section-heading .icon {
  color: #78a1d4;
  width: 18px;
  height: 18px;
}

.form-section+.form-section {
  border-top: 1px solid #eaf0f7;
  padding-top: 25px;
  margin-top: 25px;
}

.field {
  margin-bottom: 20px;
}

.field:last-child {
  margin-bottom: 0;
}

.field>label {
  display: block;
  font-size: 12px;
  color: #506a8c;
  font-weight: 500;
  margin-bottom: 8px;
}

.required {
  color: #f17b87;
  margin-left: 3px;
}

.field input:not([type=checkbox]):not([type=file]),.field textarea,.field select {
  width: 100%;
  min-height: 39px;
  font-size: 13px;
}

.field textarea {
  min-height: 94px;
  resize: vertical;
  line-height: 1.65;
}

.field .help {
  display: block;
  color: #97a8be;
  font-size: 11px;
  margin-top: 6px;
  line-height: 1.75;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px;
}

.field-row .field {
  margin-bottom: 0;
}

.upload-area {
  position: relative;
  border: 1px dashed #bfd6f3;
  border-radius: 11px;
  padding: 22px 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: #f9fcff;
}

.upload-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #edf5ff;
  color: #80aeec;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.upload-description strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #617c9e;
}

.upload-description small {
  display: block;
  font-size: 11px;
  color: #a0b0c4;
  margin-top: 3px;
}

.upload-area input[type=file] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-existing {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
}

.upload-url {
  margin-top: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #7087a4;
  cursor: pointer;
}

.checkbox-label input {
  accent-color: var(--blue);
  width: 15px;
  height: 15px;
}

.check-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #f7fbff;
  border: 1px solid #e4eef9;
  border-radius: 10px;
}

.check-card strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}

.check-card small {
  color: #97a8be;
  font-size: 11px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 35px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  background: #c8d6e6;
  border-radius: 20px;
  cursor: pointer;
  transition: .2s;
}

.switch span:before {
  content: "";
  width: 14px;
  height: 14px;
  position: absolute;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: white;
  transition: .2s;
  box-shadow: 0 1px 4px #223c5a17;
}

.switch input:checked+span {
  background: var(--blue);
}

.switch input:checked+span:before {
  transform: translateX(15px);
}

.switch input:focus-visible+span {
  outline: 3px solid #287cff40;
  outline-offset: 3px;
}

.form-actions {
  padding-top: 22px;
  margin-top: 25px;
  border-top: 1px solid #eaf0f7;
  display: flex;
  gap: 10px;
  align-items: center;
}

.form-actions .autosave-hint {
  font-size: 11px;
  color: #a0b1c6;
  margin-left: auto;
}

.preview-aside {
  position: sticky;
  top: 24px;
}

.preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #8398b4;
  margin-bottom: 14px;
}

.preview-heading span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-heading .icon {
  width: 15px;
  height: 15px;
}

.live-tag {
  color: #6d92c1;
  background: #edf5ff;
  border: 1px solid #dceafe;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10px;
}

.phone-preview {
  width: 282px;
  margin: auto;
  background: white;
  border: 7px solid #fff;
  outline: 1px solid #dae6f2;
  border-radius: 33px;
  overflow: hidden;
  box-shadow: 0 15px 35px #284a7310;
  position: relative;
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 15px 5px;
  height: 32px;
  font-size: 10px;
  font-weight: 600;
  background: #f8fafc;
}

.phone-top .icon {
  width: 15px;
  height: 15px;
}

.phone-bar {
  height: 36px;
  background: #f8fafc;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  border-bottom: 1px solid #edf1f6;
}

.phone-bar .icon {
  width: 11px;
  height: 11px;
  color: #8ba0ba;
}

.phone-bar strong {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.preview-image {
  width: 100%;
  aspect-ratio: 3/3.5;
  object-fit: cover;
  display: block;
}

.preview-empty-cover {
  aspect-ratio: 3/3.5;
  background: linear-gradient(145deg,#f2f7ff,#e8f2ff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8baedb;
  gap: 13px;
  font-size: 11px;
}

.preview-empty-cover .icon {
  width: 43px;
  height: 43px;
  stroke-width: 1.2;
}

.preview-empty-cover p {
  color: #789ccc;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.preview-bottom {
  min-height: 139px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 29px 15px 21px;
}

.preview-cta {
  display: block;
  background: #ff5900;
  color: white;
  border: 0;
  border-radius: 40px;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-caption {
  text-align: center;
  font-size: 11px;
  color: #98abc1;
  margin: 18px 0 0;
}

.note-panel {
  padding: 16px 17px;
  margin-top: 23px;
  border: 1px solid #dce9fa;
  background: #f1f7fe;
  border-radius: 11px;
  color: #7c96b7;
  font-size: 11px;
  line-height: 1.9;
}

.note-panel strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #527aaa;
  margin-bottom: 5px;
}

.note-panel .icon {
  width: 14px;
  height: 14px;
}

.note-panel p {
  margin: 0;
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0,1fr) 340px;
  gap: 23px;
  align-items: start;
}

.inline-panel-title {
  padding: 22px 23px 16px;
  font-size: 14px;
  font-weight: 600;
}

.inline-panel-title small {
  display: block;
  font-weight: 400;
  color: #91a4bb;
  font-size: 11px;
  margin-top: 5px;
}

.inline-form {
  padding: 22px;
}

.inline-form h2 {
  font-size: 15px;
  margin: 0 0 20px;
}

.badge {
  display: inline-block;
  background: #eff6ff;
  color: #688ebd;
  border: 1px solid #dce9fa;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 10px;
}

.badge.green {
  background: #eefbf5;
  color: #22a782;
  border-color: #caeddf;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
}

.template-card {
  overflow: hidden;
}

.template-cover {
  height: 185px;
  overflow: hidden;
  background: linear-gradient(130deg,#e4f1ff,#f3f9ff);
  display: grid;
  place-items: center;
  color: #8cb4e9;
}

.template-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template-cover .icon {
  width: 48px;
  height: 48px;
  stroke-width: 1.2;
}

.template-body {
  padding: 18px 20px;
}

.template-body h3 {
  font-size: 14px;
  margin: 0 0 5px;
}

.template-body p {
  margin: 0;
  color: #90a4bd;
  font-size: 11px;
}

.template-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}

.template-actions form {
  margin: 0;
}

.hero {
  border: 1px solid #cfe5ff;
  background: linear-gradient(112deg,#f8fcff,#eaf8ff);
  padding: 30px 32px;
  border-radius: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  min-height: 207px;
}

.hero .eyebrow {
  font-size: 11px;
  color: #85a4ca;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: 27px;
  margin: 10px 0 8px;
}

.hero p {
  font-size: 12px;
  color: #7b98ba;
  margin: 0 0 22px;
}

.hero-art {
  width: 260px;
  min-width: 200px;
  margin-left: 30px;
  height: 157px;
  position: relative;
}

.art-card {
  position: absolute;
  width: 100px;
  height: 137px;
  background: white;
  border: 1px solid #d1e7ff;
  box-shadow: 6px 7px 0 #cadff5;
  border-radius: 13px;
  top: 0;
  left: 80px;
  transform: rotate(7deg);
  padding: 17px;
}

.art-card:before,.art-card:after {
  content: "";
  display: block;
  height: 6px;
  background: #c2d8ed;
  border-radius: 4px;
  margin: 26px 0 0;
}

.art-card:after {
  width: 70%;
  margin-top: 8px;
}

.art-card .icon {
  color: #70a7ee;
  width: 28px;
  height: 28px;
}

.art-card.blue {
  transform: rotate(-11deg);
  background: #5aa8ff;
  left: 5px;
  top: 20px;
  z-index: 2;
  box-shadow: 5px 6px 0 #3783de;
  border-color: #75b9ff;
}

.art-card.blue .icon {
  color: white;
}

.art-card.blue:before,.art-card.blue:after {
  background: #b5deff;
}

.art-card.green {
  transform: rotate(12deg);
  background: #57dcb2;
  left: 156px;
  top: 23px;
  z-index: 3;
  box-shadow: 5px 6px 0 #30b790;
  border-color: #79e8c6;
}

.art-card.green .icon {
  color: white;
}

.art-card.green:before,.art-card.green:after {
  background: #b4f5de;
}

.dashboard-stats {
  grid-template-columns: repeat(4,minmax(0,1fr));
}

.dashboard-stats .stat-card {
  padding: 20px 18px;
  align-items: flex-start;
}

.dashboard-stats .stat-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.dashboard-stats .stat-card strong {
  font-size: 27px;
}

.dashboard-panels {
  display: grid;
  grid-template-columns: minmax(0,1.6fr) minmax(0,1fr);
  gap: 23px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.panel-title h2 {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
}

.panel-title .icon {
  width: 17px;
  color: #78a1d4;
}

.panel-title a {
  font-size: 11px;
}

.setup-steps {
  display: grid;
  gap: 19px;
}

.setup-step {
  display: flex;
  gap: 13px;
}

.step-number {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #5c97e6;
  border: 1px solid #d5e6fc;
  background: #f4f9ff;
  font-size: 11px;
  flex-shrink: 0;
}

.setup-step h3 {
  font-size: 12px;
  margin: 0 0 4px;
  font-weight: 500;
}

.setup-step p {
  font-size: 11px;
  color: #8da3bd;
  margin: 0;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.quick-action {
  padding: 12px 5px;
  text-align: center;
  color: var(--ink);
}

.quick-action>.stat-icon {
  margin: 0 auto 9px;
  width: 38px;
  height: 38px;
}

.quick-action strong {
  font-size: 12px;
  display: block;
}

.quick-action small {
  display: block;
  font-size: 11px;
  color: #8aa1bf;
  margin-top: 6px;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: radial-gradient(ellipse at 15% 0,#e1eeff,transparent 55%),radial-gradient(ellipse at 90% 90%,#e8f9fa,transparent 55%),#f6faff;
}

.auth-card {
  width: 100%;
  max-width: 425px;
  border-radius: 20px;
  border: 1px solid #d9e7f8;
  background: #fff;
  box-shadow: 0 15px 60px #2a538b12;
  padding: 34px;
}

.auth-card .brand {
  padding: 0 0 27px;
}

.auth-card h1 {
  font-size: 24px;
  margin: 0 0 8px;
}

.auth-description {
  color: #8ca1bc;
  font-size: 12px;
  margin: 0 0 26px;
}

.auth-card .btn {
  width: 100%;
  min-height: 40px;
  margin-top: 6px;
}

.auth-footer {
  text-align: center;
  margin: 20px 0 0;
  font-size: 11px;
  color: #9cacbe;
}

.auth-card code {
  background: #f1f6fd;
  border: 1px solid #e0eaf6;
  border-radius: 5px;
  padding: 2px 5px;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.alert {
  font-size: 12px;
  color: #6c8aaa;
  border: 1px solid #d6e7fb;
  background: #f3f8ff;
  border-radius: 10px;
  padding: 13px;
  margin-bottom: 22px;
  line-height: 1.8;
}

.error-page {
  text-align: center;
}

.error-page .brand {
  justify-content: center;
}

.error-code {
  font-size: 65px;
  line-height: 1.3;
  color: #c2d8f5;
  font-weight: 700;
}

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  color: white;
  background: #203b5b;
  box-shadow: 0 6px 25px #1a345f26;
  padding: 10px 19px;
  border-radius: 10px;
  font-size: 12px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: .2s;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.mobile-scrim {
  display: none;
}

.monospace {
  font-family: ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size: 11px;
}

.no-wrap {
  white-space: nowrap;
}

@media(min-width:1700px) {
  .content {
    padding: 37px 38px;
  }
  .topbar {
    padding: 0 38px;
  }
  .stat-card {
    padding: 25px;
  }
  .panel-padding {
    padding: 27px;
  }
}

@media(max-width:1250px) {
  .sidebar {
    width: 210px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .main-area {
    margin-left: 210px;
  }
  .topbar-notice {
    max-width: 420px;
    white-space: nowrap;
    overflow: hidden;
  }
  .content {
    padding: 25px 23px;
  }
  .topbar {
    padding: 0 23px;
  }
  .form-grid {
    grid-template-columns: minmax(0,1fr) 285px;
    gap: 20px;
  }
  .phone-preview {
    width: 260px;
  }
  .split-panel {
    grid-template-columns: 1fr;
  }
  .inline-form .field-row {
    display: grid;
  }
  .inline-form {
    max-width: 650px;
  }
  .dashboard-stats {
    grid-template-columns: 1fr 1fr;
  }
  .template-grid {
    grid-template-columns: 1fr 1fr;
  }
  .filter-form .search-input input {
    width: 195px;
  }
}

@media(max-width:950px) {
  .topbar-notice {
    display: none;
  }
  .toolbar {
    gap: 15px;
  }
  .filter-form {
    width: 100%;
  }
  .filter-form .search-input {
    flex: 1;
  }
  .filter-form .search-input input {
    width: 100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .preview-aside {
    position: static;
    order: 2;
  }
  .preview-aside .note-panel {
    max-width: 550px;
    margin: 25px auto;
  }
  .preview-aside .preview-heading {
    max-width: 300px;
    margin: 0 auto 18px;
  }
  .dashboard-panels {
    grid-template-columns: 1fr;
  }
  .hero-art {
    width: 210px;
    transform: scale(.85);
    transform-origin: right center;
    margin-left: 0;
  }
  .hero h1 {
    font-size: 23px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 18px 15px;
    gap: 10px;
  }
  .stat-icon {
    width: 38px;
    height: 38px;
  }
  .stat-card strong {
    font-size: 26px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
}

@media(max-width:700px) {
  .sidebar {
    transform: translateX(-100%);
    transition: .2s;
    width: 238px;
  }
  .nav-open .sidebar {
    transform: none;
  }
  .mobile-scrim {
    position: fixed;
    inset: 0;
    background: #16344d30;
    z-index: 25;
    border: 0;
  }
  .nav-open .mobile-scrim {
    display: block;
  }
  .main-area {
    margin-left: 0;
  }
  .topbar {
    height: 65px;
    padding: 0 17px;
    gap: 12px;
  }
  .icon-button.menu-toggle {
    display: grid;
    flex-shrink: 0;
  }
  .topbar-title {
    font-size: 15px;
  }
  .topbar-user>span:last-child {
    display: none;
  }
  .version {
    font-size: 10px;
  }
  .content {
    padding: 22px 16px;
  }
  .breadcrumb {
    margin-bottom: 14px;
  }
  .page-heading {
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 21px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .page-heading p {
    font-size: 11px;
    max-width: 230px;
  }
  .heading-actions {
    gap: 6px;
    padding-top: 4px;
  }
  .heading-actions .btn-subtle {
    display: none;
  }
  .btn {
    font-size: 12px;
    min-height: 32px;
    padding: 7px 10px;
  }
  .stats-grid {
    gap: 8px;
    margin-bottom: 17px;
  }
  .stat-card {
    padding: 14px 12px;
    display: block;
  }
  .stat-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    margin-bottom: 9px;
  }
  .stat-icon .icon {
    width: 16px;
    height: 16px;
  }
  .stat-card label {
    font-size: 10px;
  }
  .stat-card strong {
    font-size: 24px;
  }
  .stat-card small {
    font-size: 10px;
  }
  .toolbar {
    padding: 16px 14px;
  }
  .filter-tab {
    padding: 6px 9px;
    font-size: 11px;
  }
  .filter-tab b {
    font-size: 10px;
  }
  .filter-form {
    flex-wrap: wrap;
    gap: 7px;
  }
  .filter-form .search-input {
    min-width: 145px;
  }
  .filter-form select {
    max-width: 120px;
    font-size: 11px;
  }
  .filter-form .btn {
    font-size: 11px;
  }
  .table-scroll {
    padding: 0 13px;
  }
  .table-footer {
    padding: 14px;
  }
  .page-foot {
    font-size: 10px;
  }
  .page-foot span:last-child {
    display: none;
  }
  .form-panel {
    padding: 22px 19px;
  }
  .form-section+.form-section {
    padding-top: 22px;
    margin-top: 22px;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .form-actions .autosave-hint {
    display: none;
  }
  .form-actions .btn {
    min-height: 35px;
  }
  .split-panel {
    gap: 17px;
  }
  .template-grid {
    grid-template-columns: 1fr;
  }
  .template-cover {
    height: 210px;
  }
  .hero {
    padding: 24px 22px;
    min-height: 192px;
  }
  .hero h1 {
    font-size: 22px;
  }
  .hero p {
    font-size: 11px;
    max-width: 200px;
  }
  .hero-art {
    position: absolute;
    right: -35px;
    opacity: .3;
    transform: scale(.7);
    pointer-events: none;
  }
  .hero>div:first-child {
    z-index: 1;
    position: relative;
  }
  .dashboard-stats {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-stats .stat-card {
    display: flex;
    padding: 14px 12px;
    gap: 10px;
  }
  .dashboard-stats .stat-icon {
    width: 32px;
    height: 32px;
  }
  .dashboard-stats .stat-card strong {
    font-size: 23px;
  }
  .auth-card {
    padding: 28px;
  }
  .panel-padding {
    padding: 20px;
  }
  .empty-state {
    padding: 45px 16px 50px;
  }
}

[hidden] {
  display: none!important;
}
