.cloud-login { display: grid; min-height: 100svh; place-items: center; padding: 24px; background: #eef3fb; }
.login-panel { width: min(440px, 100%); padding: 36px; border: 1px solid var(--border); border-radius: 18px; background: var(--paper); box-shadow: 0 15px 48px #20345a12; }
.login-panel img { display: block; margin-bottom: 22px; object-fit: cover; border-radius: 9px; }
.login-panel h1 { font-size: 1.75rem; }
.login-panel p { margin: 9px 0 24px; color: var(--muted); line-height: 1.6; }
.login-panel .button { width: 100%; min-height: 46px; }
.login-form { display: grid; gap: 15px; }
.login-form label { display: grid; gap: 6px; font-weight: 620; font-size: .91rem; }
.login-form input:is([type=text],[type=password]) { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #d9e2f1; border-radius: 7px; background: #fff; font-size: 1rem; }
.login-form .login-remember { display: flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 500; }
.login-form input[type=checkbox] { accent-color: var(--primary); }
.login-form .login-message { margin: 0; color: #a44050; line-height: 1.5; font-size: .9rem; }
.cloud-setup .form-footer { margin-top: 12px; }
.cloud-setup .field { margin-top: 12px; }
.cloud-setup input[type=file] { width: 100%; }
#cloud-pair-key { font: .86rem ui-monospace, Consolas, monospace; }

@media (max-width: 650px) {
  .sidebar { padding-block: 8px 2px; }
  .sidebar .brand { max-width: 72px; margin-bottom: 5px; border-radius: 5px; }
  .sidebar .brand-image { background-position: center 0; }
  .sidebar .navigation { flex-wrap: nowrap; overflow-x: auto; gap: 4px; padding-block: 3px; }
  .sidebar .navigation a { flex: 0 0 auto; white-space: nowrap; font-size: .875rem; min-height: 39px; }
  .sidebar-footer { display: none; }
  .topbar { padding-block: 8px; flex-wrap: wrap; }
  .topbar-actions { margin-left: auto; }
  .topbar-actions .button, .topbar-actions .schedule-pill { min-height: 35px; }
  .breadcrumb { font-size: .875rem; }
  .sidebar .nav-label { display: none; }
  .page-head { margin-bottom: 13px; }
  .custom-tabs button { min-height: 43px; }
  .custom-toolbar { align-items: flex-start; }
  #custom .custom-toolbar .actions { display: grid; width: 100%; grid-template-columns: repeat(3,minmax(0,1fr)); }
  #custom-goods-search, #custom-orders-search { grid-column: 1 / -1; width: 100%; }
  #custom-orders .custom-toolbar .actions { grid-template-columns: 1fr auto; }
  #custom-orders-search { order: -1; }
  #custom .button, #custom .custom-quantity input { min-height: 38px; }
  .custom-toolbar .custom-summary { row-gap: 6px; }
  .custom-table, .custom-table tbody { display: block; min-width: 0; }
  .custom-table colgroup, .custom-table thead { display: none; }
  .custom-table tr:is([data-good],[data-order]) { display: grid; grid-template-columns: 67px minmax(0,1fr); gap: 6px 12px; padding: 13px 12px; border-top: 1px solid var(--line); }
  .custom-table tr > td { min-height: auto; height: auto; min-width: 0; padding: 0; align-self: center; border: 0; }
  .custom-table tr > td.empty { display: block; padding: 20px 12px; }
  .custom-table [data-good] > td:first-child, .custom-order-photo { grid-row: 1 / span 4; align-self: start; }
  .custom-picture { display: grid; justify-items: center; }
  .custom-thumb { width: 64px; height: 62px; }
  .custom-pencil { flex-basis: 34px; width: 34px; height: 34px; }
  .custom-table .custom-inline-price { justify-content: flex-start; }
  .custom-table td[data-label] { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; text-align: left; }
  .custom-table td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .875rem; }
  .custom-catalog td[data-field=price] .custom-inline-price::before { content: "单价"; color: var(--muted); font-size: .875rem; white-space: nowrap; }
  .custom-order-table [data-order] > td:last-child { grid-column: 2; }
  .custom-order-actions { margin-left: -5px; }
  .custom-order-actions .link-button { min-height: 37px; padding-inline: 8px; font-size: .875rem; }
}
