/* ============================================================
   Platform UI · accounts, companion dashboard, admin dashboard
   ============================================================ */

:root {
  --bg: #faf4ec;
  --paper: #fffbf6;
  --paper-2: #f7eee4;
  --ink: #34262c;
  --ink-2: #57434b;
  --muted: #7d686f;
  --coral: #d96d57;
  --coral-dark: #bd5742;
  --line: rgba(76, 47, 58, 0.13);
  --line-strong: rgba(76, 47, 58, 0.24);
  --green: #5f8a68;
  --green-bg: #e5efe2;
  --amber: #a9792f;
  --amber-bg: #fbf0dc;
  --red: #a64636;
  --red-bg: #f8e3de;
  --blue: #4f6e86;
  --blue-bg: #e7eef4;
  --shadow: 0 20px 55px rgba(80, 48, 43, 0.1);
  --font-display: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --radius: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.platform-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 92% 4%, rgba(247, 212, 195, 0.5), transparent 31%),
    radial-gradient(circle at 4% 96%, rgba(203, 217, 200, 0.28), transparent 30%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.platform-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

::selection {
  background: #f0c8b9;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.platform-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 244, 236, 0.9);
  backdrop-filter: blur(16px);
}

.app-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.app-brand img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.app-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.07em;
  line-height: 1.25;
}

.app-brand span {
  display: block;
  color: var(--muted);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.app-header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.header-link {
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
}

.header-link:hover {
  color: var(--coral-dark);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 220px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s, background 0.18s, border-color 0.18s, opacity 0.18s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: none;
}

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: #21171b;
}

.btn-coral {
  background: var(--coral);
  color: #fff;
}

.btn-coral:hover {
  background: var(--coral-dark);
}

.btn-outline {
  border-color: var(--line-strong);
  background: transparent;
}

.btn-outline:hover {
  background: var(--paper);
}

.btn-soft {
  background: var(--paper-2);
  color: var(--ink-2);
}

.btn-danger {
  border-color: rgba(166, 70, 54, 0.25);
  color: var(--red);
  background: var(--red-bg);
}

.btn-small {
  min-height: 32px;
  padding: 7px 12px;
  font-size: 10px;
}

.btn-block {
  width: 100%;
}

.btn-link {
  padding: 0;
  min-height: auto;
  border: 0;
  background: none;
  color: var(--coral-dark);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Auth */
.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(400px, 0.98fr);
  align-items: stretch;
  min-height: calc(100vh - 69px);
}

.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(34px, 5vw, 66px);
  border-radius: 0 0 42px 0;
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 248, 238, 0.9), transparent 28%),
    linear-gradient(125deg, #f5d7c7 0%, #eec3b1 52%, #e3b19e 100%);
}

.auth-aside h1 {
  max-width: 520px;
  margin: 30px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(35px, 3.9vw, 54px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.auth-aside p {
  max-width: 450px;
  color: rgba(52, 38, 44, 0.68);
  font-size: 12.5px;
  line-height: 2;
}

.auth-kicker {
  color: rgba(52, 38, 44, 0.56);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.auth-points {
  display: grid;
  gap: 8px;
  max-width: 430px;
  margin-top: 28px;
}

.auth-points span {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: rgba(52, 38, 44, 0.62);
  font-size: 10.5px;
}

.auth-points span::before {
  content: "✦";
  color: var(--coral-dark);
}

.auth-aside-footer {
  position: relative;
  margin-top: 36px;
  color: rgba(52, 38, 44, 0.46);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.auth-card-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
}

.auth-card {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 251, 246, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.auth-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}

.auth-card h2 {
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.auth-card .sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border-radius: 999px;
  background: var(--paper-2);
}

.auth-tab {
  flex: 1;
  padding: 8px 10px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}

.auth-tab.is-active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 3px 12px rgba(80, 48, 43, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.field.full {
  grid-column: 1 / -1;
}

.field > span {
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 600;
}

.field > span em {
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: rgba(255, 253, 249, 0.9);
  font-size: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.75;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(217, 109, 87, 0.62);
  box-shadow: 0 0 0 3px rgba(217, 109, 87, 0.09);
}

.field-hint {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.6;
}

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.check-line input {
  margin-top: 2px;
  accent-color: var(--coral);
}

.auth-submit {
  width: 100%;
  margin-top: 2px;
}

.auth-message {
  margin-top: 12px;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.auth-message.is-error {
  background: var(--red-bg);
  color: var(--red);
}

.auth-message.is-success {
  background: var(--green-bg);
  color: var(--green);
}

.auth-footnote {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

/* Dashboard */
.dash-main {
  padding: 28px 0 70px;
}

.dash-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.dash-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.dash-hero .sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11.5px;
}

.dash-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dash-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.58);
  width: fit-content;
  max-width: 100%;
}

.dash-tab {
  padding: 8px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
}

.dash-tab.is-active {
  background: var(--ink);
  color: var(--paper);
}

.panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 251, 246, 0.86);
  box-shadow: 0 10px 30px rgba(80, 48, 43, 0.04);
}

.panel + .panel {
  margin-top: 16px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-head h2,
.panel-head h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.panel-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.section-label {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.empty {
  padding: 36px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.notice {
  padding: 11px 13px;
  border: 1px solid rgba(169, 121, 47, 0.2);
  border-radius: 11px;
  background: var(--amber-bg);
  color: #74582c;
  font-size: 10.5px;
  line-height: 1.7;
}

.notice-red {
  border-color: rgba(166, 70, 54, 0.2);
  background: var(--red-bg);
  color: var(--red);
}

.notice-green {
  border-color: rgba(95, 138, 104, 0.2);
  background: var(--green-bg);
  color: #496b50;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.meta-box {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
}

.meta-box span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.meta-box strong {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
}

/* Status / tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.badge-green {
  background: var(--green-bg);
  color: var(--green);
}

.badge-amber {
  background: var(--amber-bg);
  color: var(--amber);
}

.badge-red {
  background: var(--red-bg);
  color: var(--red);
}

.badge-blue {
  background: var(--blue-bg);
  color: var(--blue);
}

.badge-gray {
  background: var(--paper-2);
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.3;
}

/* Orders */
.order-list {
  display: grid;
  gap: 12px;
}

.order-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fffdf9;
}

.order-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.order-no {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.order-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.order-grid div {
  padding: 8px 9px;
  border-radius: 9px;
  background: var(--paper-2);
}

.order-grid span {
  display: block;
  color: var(--muted);
  font-size: 8.5px;
}

.order-grid strong {
  display: block;
  margin-top: 2px;
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 500;
  word-break: break-word;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.order-actions select {
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-size: 10px;
}

/* Photos */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.photo-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper-2);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.photo-card .photo-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 7px 8px;
}

.photo-card .photo-info .badge {
  font-size: 7.5px;
}

.photo-card .photo-delete {
  padding: 0;
  background: none;
  color: var(--red);
  font-size: 9px;
  cursor: pointer;
}

.avatar-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.avatar-preview {
  display: grid;
  width: 68px;
  height: 68px;
  flex: none;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 22px;
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.upload-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 10px;
  cursor: pointer;
}

.upload-label:hover {
  background: var(--paper);
}

.upload-label input {
  display: none;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.5px;
}

.data-table th,
.data-table td {
  padding: 10px 9px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.data-table td {
  color: var(--ink-2);
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* Admin private info */
.private-box {
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px dashed rgba(166, 70, 54, 0.3);
  border-radius: 9px;
  background: var(--red-bg);
  color: var(--red);
  font-size: 9.5px;
  line-height: 1.75;
}

.private-box strong {
  font-weight: 600;
}

/* Booking */
.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 16px;
}

.booking-aside {
  position: sticky;
  top: 88px;
}

.companion-pick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.companion-pick {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.companion-pick:hover {
  transform: translateY(-2px);
}

.companion-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.companion-pick-media {
  position: relative;
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
  background: linear-gradient(140deg, #f4d8c9, #e5c8d4);
}

.companion-pick-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.companion-pick-media .initial {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(52, 38, 44, 0.45);
  font-family: var(--font-display);
  font-size: 42px;
}

.companion-pick-body {
  padding: 10px;
}

.companion-pick-body h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.companion-pick-body p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.companion-pick-body .tag-row {
  margin-top: 7px;
}

.companion-pick input:checked + .companion-pick-inner {
  outline: 2px solid var(--coral);
  outline-offset: -2px;
}

.companion-pick:has(input:checked) {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--coral), 0 12px 25px rgba(80, 48, 43, 0.1);
}

.summary-strip {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 12px;
  padding: 11px 13px;
  border-radius: 11px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 10.5px;
}

.summary-strip strong {
  color: var(--coral-dark);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.booking-note p {
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

.booking-note p:last-of-type {
  border-bottom: 0;
}

.booking-note strong {
  display: block;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
}

.payment-box {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  margin-top: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.payment-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.payment-qr img {
  width: 180px;
  height: 180px;
  border: 1px solid var(--line);
  border-radius: 10px;
  object-fit: cover;
}

.payment-qr span {
  color: var(--muted);
  font-size: 9px;
}

.payment-copy h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.payment-copy ol {
  margin: 8px 0 10px;
  padding-left: 17px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

.payment-copy li + li {
  margin-top: 3px;
}

.payment-copy p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

.payment-copy strong {
  color: var(--ink-2);
  font-weight: 600;
}

.payment-copy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

@media (max-width: 620px) {
  .payment-box {
    grid-template-columns: 1fr;
  }

  .payment-qr img {
    width: 200px;
    height: 200px;
  }
}

.copy-id {
  display: inline-block;
  margin-top: 3px;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

@media (max-width: 880px) {
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .booking-aside {
    position: static;
    order: -1;
  }

  .companion-pick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .companion-pick-grid {
    grid-template-columns: 1fr;
  }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  z-index: 100;
  max-width: calc(100% - 30px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(52, 38, 44, 0.96);
  color: var(--paper);
  font-size: 10.5px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.22s, transform 0.22s;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-error {
  background: #9f4031;
}

.loading-line {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
}

.loading-line::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--line-strong);
  border-top-color: var(--coral);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Mobile */
@media (max-width: 880px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    border-radius: 0;
    padding: 30px 24px;
  }

  .auth-aside h1 {
    margin: 14px 0 8px;
    font-size: 32px;
  }

  .auth-aside p,
  .auth-points,
  .auth-aside-footer {
    display: none;
  }

  .auth-card-wrap {
    padding: 24px 18px 50px;
  }

  .auth-card {
    padding: 22px;
  }
}

@media (max-width: 620px) {
  .platform-shell {
    width: calc(100% - 28px);
  }

  .app-header-inner {
    min-height: 60px;
  }

  .app-brand span {
    display: none;
  }

  .app-header-actions .header-link {
    display: none;
  }

  .app-header-actions .header-link.mobile-home-link {
    display: inline-flex;
    align-items: center;
    color: var(--coral-dark);
    font-size: 10px;
  }

  .dash-main {
    padding-top: 20px;
  }

  .dash-hero {
    display: block;
  }

  .dash-hero-actions {
    margin-top: 12px;
  }

  .panel {
    padding: 16px;
    border-radius: 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .meta-grid,
  .order-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .dash-tab {
    flex: none;
  }

  .panel-head {
    display: block;
  }

  .panel-actions {
    margin-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
