:root {
  --navy: #052e4c;
  --blue: #054b96;
  --green: #32a082;
  --ink: #14364c;
  --muted: #637988;
  --line: #dce5ec;
  --surface: #f3f6f9;
  --white: #fff;
  --danger: #a43d35;
  --warn: #8a620d;
  --good: #17653c;
  --shadow: 0 12px 38px #052e4c0b;
  font-family: Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  background: var(--surface);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,input,select,textarea {
  font: inherit;
}
button,a,input,select,textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: .52;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,a:focus-visible {
  outline: 3px solid #32a08288;
  outline-offset: 3px;
}
input:focus,select:focus,textarea:focus {
  outline: 2px solid #054b9633;
  border-color: var(--blue);
}
h1,h2,h3,p {
  margin-top: 0;
}
h1 {
  font-size: 28px;
  letter-spacing: -.6px;
  line-height: 1.3;
}
h2 {
  font-size: 18px;
  line-height: 1.4;
}
h3 {
  font-size: 15px;
}
small,.small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.break {
  overflow-wrap: anywhere;
}
.mono {
  font: 12px ui-monospace,SFMono-Regular,monospace;
}
.boot {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
}
.spinner {
  width: 25px;
  height: 25px;
  border: 2px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(380px,1.15fr) 1fr;
  background: white;
}
.login-story {
  padding: 64px clamp(36px,6vw,100px);
  background: radial-gradient(ellipse at 100% 100%,#126d7577,transparent 65%),var(--navy);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}
.brand-logo {
  width: 200px;
  height: auto;
}
.login-story h1 {
  font-size: clamp(32px,3.8vw,54px);
  line-height: 1.35;
  letter-spacing: -1.5px;
  margin: 70px 0 24px;
}
.login-story .intro {
  color: #c7d6df;
  max-width: 390px;
  font-size: 16px;
  line-height: 1.9;
}
.story-line {
  width: 56px;
  height: 3px;
  background: var(--green);
  margin-bottom: 26px;
}
.story-foot {
  color: #b4cad7;
  font-size: 12px;
  letter-spacing: 1px;
}
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 28px;
}
.login-card {
  width: 100%;
  max-width: 380px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.3px;
  color: var(--green);
  margin-bottom: 12px;
}
.login-card h2 {
  font-size: 28px;
  margin-bottom: 10px;
}
.login-card>p {
  margin-bottom: 32px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  margin: 0 0 18px;
}
.field>span,.field>label {
  font-size: 13px;
  font-weight: 600;
}
.field em {
  font-style: normal;
  color: var(--danger);
  margin-left: 4px;
}
.field small {
  color: var(--muted);
  line-height: 1.5;
}
.input {
  display: block;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 10px 12px;
  color: var(--ink);
}
textarea.input {
  min-height: 105px;
  resize: vertical;
}
select.input {
  padding-right: 24px;
}
.input[readonly] {
  background: #f7f9fb;
  color: var(--muted);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
}
.button:hover {
  text-decoration: none;
}
.button.primary {
  color: white;
  background: var(--blue);
}
.button.primary:hover:not(:disabled) {
  background: #073f7a;
}
.button.secondary {
  color: var(--ink);
  background: white;
  border-color: var(--line);
}
.button.secondary:hover:not(:disabled) {
  background: #f1f6fa;
}
.button.quiet {
  background: transparent;
  color: var(--muted);
  padding: 7px 9px;
}
.button.danger {
  color: var(--danger);
  background: #fff3f1;
  border-color: #f1d5d1;
}
.button.small {
  font-size: 12px;
  padding: 6px 10px;
  min-height: 32px;
}
.full {
  width: 100%;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.actions.end {
  justify-content: flex-end;
}
.message {
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 18px;
  line-height: 1.6;
  background: #edf4fb;
  border: 1px solid #d6e5f6;
  color: var(--blue);
}
.message.error {
  background: #fff3f1;
  border-color: #f0d6d2;
  color: var(--danger);
}
.message.success {
  background: #eef8f2;
  border-color: #d4e8dc;
  color: var(--good);
}
.message:empty {
  display: none;
}
.login-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 22px;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 224px minmax(0,1fr);
}
.sidebar {
  background: var(--navy);
  color: #dce8ef;
  padding: 29px 18px;
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.sidebar .brand-logo {
  width: 170px;
  margin: 0 7px 28px;
}
.workspace-name {
  font-size: 11px;
  letter-spacing: 2px;
  color: #9db7c7;
  padding: 0 14px;
  margin-bottom: 12px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #bfd0db;
  font-weight: 500;
}
.nav a:hover {
  background: #ffffff0c;
  text-decoration: none;
}
.nav a.active {
  background: #ffffff14;
  color: white;
  box-shadow: inset 3px 0 var(--green);
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 22px 12px 0;
  border-top: 1px solid #ffffff18;
  font-size: 12px;
  color: #9db7c7;
}
.sidebar-bottom strong {
  display: block;
  color: #dce8ef;
  font-weight: 500;
  margin-bottom: 3px;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 36px;
  background: #ffffffd9;
  gap: 12px;
}
.topbar-title {
  font-weight: 600;
}
.account-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e9f1f7;
  color: var(--blue);
  display: flex;
  justify-content: center;
  align-items: center;
}
.content {
  max-width: 1500px;
  margin: 0 auto;
  padding: 32px 36px 64px;
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.page-head h1 {
  margin-bottom: 7px;
}
.page-head p {
  margin: 0;
  color: var(--muted);
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 15px;
  font-size: 13px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 22px;
}
.card-head {
  padding: 19px 23px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-head h2 {
  margin: 0;
}
.card-body {
  padding: 23px;
}
.toolbar {
  padding: 17px 22px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.toolbar .input {
  width: auto;
  min-width: 150px;
  min-height: 38px;
  padding: 7px 11px;
}
.toolbar .search {
  width: 270px;
}
.tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.tab {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 7px 11px;
  line-height: 1.5;
}
.tab.active {
  background: #eaf2fa;
  color: var(--blue);
  font-weight: 600;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .3px;
  background: #f9fbfd;
  white-space: nowrap;
}
td,th {
  padding: 16px 22px;
  border-bottom: 1px solid #eaf0f5;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fbfdff;
}
.product-cell {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 230px;
}
.product-cover {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 7px;
  background: #eef3f7;
  flex: none;
}
.product-title {
  font-weight: 600;
  margin-bottom: 3px;
}
.product-subtitle {
  color: var(--muted);
  font-size: 12px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 5px;
  color: var(--muted);
  background: #edf2f6;
  white-space: nowrap;
}
.tag.good {
  color: var(--good);
  background: #edf7f0;
}
.tag.blue {
  color: var(--blue);
  background: #e9f1fa;
}
.tag.warn {
  color: var(--warn);
  background: #faf3e5;
}
.tag.danger {
  color: var(--danger);
  background: #fceeea;
}
.tag+.tag {
  margin-left: 4px;
}
.price {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.price small {
  font-weight: 400;
  color: var(--muted);
}
.table-foot {
  padding: 15px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.empty {
  padding: 55px 24px;
  text-align: center;
  color: var(--muted);
}
.empty .icon {
  width: 34px;
  height: 34px;
  color: #a2b4c0;
  margin-bottom: 12px;
}
.empty h3 {
  color: var(--ink);
  margin: 0 0 6px;
}
.empty p {
  margin: 0 0 16px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(280px,.8fr);
  gap: 22px;
  align-items: start;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.col-full {
  grid-column: 1/-1;
}
.section-title {
  font-size: 13px;
  letter-spacing: .2px;
  border-left: 3px solid var(--green);
  padding-left: 10px;
  margin: 5px 0 20px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 4px 0 18px;
}
.check-row input {
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
}
.cover-editor {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.cover-large {
  width: 110px;
  height: 110px;
  border-radius: 9px;
  object-fit: cover;
  background: #edf2f7;
  border: 1px solid var(--line);
}
.cover-large:empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.file-button {
  position: relative;
  overflow: hidden;
}
.file-button input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.help {
  color: var(--muted);
  font-size: 12px;
  margin: 7px 0 0;
}
.sticky-actions {
  padding: 18px 23px;
  border-top: 1px solid var(--line);
  background: #fbfdff;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 15px;
  margin-bottom: 22px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 19px 22px;
}
.metric-label {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}
.metric-value {
  font-size: 27px;
  line-height: 1.3;
  font-weight: 650;
  color: var(--navy);
}
.metric-value small {
  font-size: 12px;
  font-weight: 400;
  margin-left: 5px;
  color: var(--muted);
}
.kv {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 13px 12px;
  font-size: 13px;
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline li {
  position: relative;
  padding: 0 0 23px 24px;
  border-left: 1px solid var(--line);
  margin-left: 5px;
}
.timeline li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}
.timeline li:before {
  content: "";
  position: absolute;
  left: -4px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.timeline strong {
  font-size: 13px;
  display: block;
}
.timeline p {
  font-size: 12px;
  color: var(--muted);
  margin: 3px 0;
}
.order-product {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 22px;
}
.order-product img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
}
.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.link-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.link-list li:last-child {
  border: 0;
}
.delivery-row {
  display: grid;
  grid-template-columns: minmax(100px,.65fr) minmax(150px,1.4fr) 34px;
  gap: 8px;
  margin-bottom: 9px;
}
.delivery-row .input {
  min-width: 0;
}
.icon-button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  min-width: 34px;
  color: var(--muted);
}
.log-item {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.log-item:last-child {
  border: 0;
}
.log-item p {
  margin: 6px 0;
  font-size: 13px;
}
.log-item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 25px;
  transform: translateX(-50%);
  padding: 12px 20px;
  background: var(--navy);
  color: white;
  border-radius: 9px;
  box-shadow: 0 10px 35px #052e4c33;
  max-width: calc(100vw - 32px);
  font-size: 13px;
}
.toast.error {
  background: #8e362f;
}
.toast[hidden] {
  display: none;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 440px;
  width: calc(100vw - 32px);
  padding: 25px;
  color: var(--ink);
  box-shadow: 0 25px 100px #052e4c44;
}
dialog::backdrop {
  background: #052e4c66;
}
dialog h2 {
  margin-bottom: 10px;
}
dialog p {
  color: var(--muted);
  white-space: pre-line;
}
dialog .actions {
  justify-content: flex-end;
  margin-top: 25px;
}
.loading-box {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
}
.badge-count {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 8px;
}
.mobile-brand {
  display: none;
}
.inline-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.error-detail {
  overflow-wrap: anywhere;
}
.wide-min {
  min-width: 750px;
}
.password-card {
  max-width: 620px;
}
.info-line {
  font-size: 13px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.info-line:last-child {
  border: 0;
}
@media(max-width:1050px) {
  .sidebar {
    width: 190px;
  }
  .shell {
    grid-template-columns: 190px minmax(0,1fr);
  }
  .sidebar .brand-logo {
    width: 145px;
  }
  .content {
    padding: 26px 24px 50px;
  }
  .topbar {
    padding: 0 24px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .summary-grid {
    grid-template-columns: repeat(3,1fr);
  }
  .kv {
    grid-template-columns: 110px 1fr;
  }
}
@media(max-width:720px) {
  .login-layout {
    display: block;
  }
  .login-story {
    min-height: 0;
    padding: 26px;
  }
  .login-story h1 {
    font-size: 26px;
    margin: 25px 0 10px;
    letter-spacing: 0;
  }
  .login-story .intro,.story-foot,.story-line {
    display: none;
  }
  .login-story .brand-logo {
    width: 170px;
  }
  .login-panel {
    padding: 35px 24px;
  }
  .login-card h2 {
    font-size: 25px;
  }
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: auto;
    padding: 18px 16px 10px;
  }
  .sidebar .brand-logo {
    width: 155px;
    margin: 0 5px 16px;
  }
  .workspace-name,.sidebar-bottom {
    display: none;
  }
  .nav {
    flex-direction: row;
    overflow: auto;
    gap: 4px;
  }
  .nav a {
    padding: 9px 11px;
    font-size: 12px;
    gap: 6px;
    white-space: nowrap;
  }
  .nav a .icon {
    width: 16px;
    height: 16px;
  }
  .nav a.active {
    box-shadow: inset 0 -2px var(--green);
  }
  .main {
    display: block;
  }
  .topbar {
    height: 59px;
    padding: 0 18px;
  }
  .account-nav {
    gap: 8px;
  }
  .account-nav .username {
    display: none;
  }
  .content {
    padding: 23px 16px 40px;
  }
  .page-head {
    gap: 12px;
  }
  .page-head h1 {
    font-size: 23px;
  }
  .page-head p {
    font-size: 12px;
  }
  .page-head>.actions .button {
    font-size: 12px;
    padding: 8px 11px;
  }
  .card-body {
    padding: 18px;
  }
  .card-head,.toolbar {
    padding: 16px 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .summary-grid {
    gap: 8px;
  }
  .metric {
    padding: 15px 12px;
  }
  .metric-label {
    font-size: 11px;
  }
  .metric-value {
    font-size: 22px;
  }
  .table-foot {
    padding: 13px 16px;
  }
  .toolbar .search {
    width: 100%;
  }
  .toolbar {
    gap: 8px;
  }
  .toolbar .input {
    flex: 1;
    min-width: 120px;
  }
  .table-foot .actions {
    gap: 4px;
  }
  .delivery-row {
    grid-template-columns: 1fr 34px;
  }
  .delivery-row .delivery-url {
    grid-row: 2;
    grid-column: 1/-1;
  }
  .sticky-actions {
    padding: 16px 18px;
  }
  .kv {
    grid-template-columns: 90px 1fr;
  }
  .cover-editor {
    gap: 15px;
  }
  .cover-large {
    width: 90px;
    height: 90px;
  }
  .account-nav .button {
    font-size: 12px;
  }
  .card {
    border-radius: 10px;
  }
  .info-line {
    display: block;
  }
  .info-line span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 4px;
  }
}
.spaced {
  margin-top: 20px;
}
.metric-value.metric-date {
  font-size: 20px;
}
.account-caption {
  margin: 25px 0 16px;
  color: var(--muted);
  font-size: 13px;
}
.account-caption strong {
  color: var(--ink);
}
