.aw-page {
  max-width: 1380px;
  margin: 0 auto;
  padding: 22px 36px 70px;
}
.aw-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px 0 22px;
}
.aw-eyebrow {
  font-size: 12px;
  color: var(--fg-muted);
}
.aw-header h1 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.3;
  font-weight: 400;
  margin: 10px 0 0;
}
.aw-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.aw-identity .st-avatar {
  width: 48px;
  height: 48px;
}
.aw-identity > div {
  display: grid;
  gap: 7px;
}
.aw-identity strong {
  font-size: 14px;
  font-weight: 500;
}
.aw-availability {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-muted);
  font-size: 11px;
}
.aw-availability::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #b1b6ba;
  border-radius: 50%;
}
.aw-availability.is-open::before {
  background: #6b788f;
}
.aw-notice {
  font-size: 12px;
  line-height: 1.7;
  color: #a35d45;
  margin: 0;
}
.aw-notice:not(:empty) {
  padding: 12px 0;
}
.aw-tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--border);
  margin: 0 0 28px;
}
.aw-tabs button {
  position: relative;
  background: transparent;
  color: var(--fg-muted);
  border: 0;
  padding: 15px 2px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.aw-tabs button[aria-pressed="true"] {
  color: var(--fg);
}
.aw-tabs button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  height: 2px;
  left: 0;
  right: 0;
  bottom: -1px;
  border-radius: 2px;
  background: #737b8a;
}
.aw-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 38px;
}
.aw-metric {
  min-width: 0;
  padding: 23px;
  text-align: left;
  background: color-mix(in srgb, var(--bg-card) 88%, transparent);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  color: var(--fg);
  cursor: pointer;
  display: grid;
  gap: 15px;
  transition:
    border-color 0.18s,
    transform 0.18s;
}
.aw-metric > span {
  font-size: 12px;
  color: var(--fg-muted);
}
.aw-metric b {
  font-size: 34px;
  line-height: 1;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.aw-metric small {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--fg-muted);
}
.aw-metric[aria-pressed="true"] {
  border-color: #828996;
}
.aw-metric:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.aw-orders-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.aw-orders-heading h2 {
  font-size: 23px;
  font-weight: 400;
  margin: 0;
}
.aw-orders-heading h2 span {
  font-size: 12px;
  color: var(--fg-muted);
  padding-left: 10px;
}
.aw-unread-total {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
  padding: 7px 11px;
  cursor: pointer;
  font-size: 12px;
  color: #a75d4d;
}
.aw-search {
  display: flex;
  align-items: center;
  width: min(100%, 550px);
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 5px;
  background: var(--bg-card);
  margin-bottom: 18px;
}
.aw-search input {
  flex: 1;
  width: 0;
  border: 0;
  background: transparent;
  min-height: 38px;
  padding: 6px 12px;
  font: inherit;
  color: var(--fg);
  font-size: 13px;
}
.aw-search button {
  min-height: 36px;
  padding: 7px 14px;
  font: inherit;
  font-size: 12px;
  border: 0;
  background: var(--bg-soft);
  color: var(--fg);
  border-radius: 8px;
  cursor: pointer;
}
.aw-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 23px;
}
.aw-filters button {
  padding: 9px 15px;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: transparent;
  color: var(--fg-muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.aw-filters button[aria-pressed="true"] {
  color: var(--bg);
  background: var(--fg);
  border-color: var(--fg);
}
.aw-order-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.aw-order {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  color: var(--fg);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.aw-order:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.aw-order-preview {
  width: 112px;
  height: 128px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
}
.aw-order-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.aw-order-preview > span {
  font-size: 36px;
  font-weight: 300;
  color: #959ba6;
}
.aw-order-main {
  min-width: 0;
}
.aw-order-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.aw-order-status {
  font-size: 10px;
  line-height: 1.4;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--fg-muted);
}
.aw-order-status--inquiry {
  background: #f9ece1;
  color: #95633e;
}
.aw-order-status--in_progress {
  background: #e8ebf0;
  color: #515c6e;
}
.aw-order-status--ready {
  background: #e9eef7;
  color: #536c96;
}
.aw-unread {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  min-height: 19px;
  padding: 2px 5px;
  background: #bb6253;
  color: white;
  border-radius: 12px;
  font-size: 10px;
}
.aw-order h3 {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  margin: 0 0 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aw-customer {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-muted);
  font-size: 11px;
  min-width: 0;
}
.aw-customer .st-avatar {
  width: 21px;
  height: 21px;
  font-size: 9px;
  flex-shrink: 0;
}
.aw-customer > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aw-customer > span:last-child {
  white-space: nowrap;
}
.aw-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 10px;
  color: var(--fg-muted);
}
.aw-order-meta strong {
  color: var(--fg);
  font-size: 12px;
  font-weight: 500;
}
.aw-last-message {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--fg-muted);
  font-size: 11px;
  margin: 12px 0 0;
}
.aw-order-open {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 10px;
  color: var(--fg-muted);
}
.aw-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 28px 0;
  font-size: 12px;
  color: var(--fg-muted);
}
.aw-pagination button,
.aw-empty button {
  min-height: 40px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--fg);
  padding: 9px 18px;
  border-radius: 10px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.aw-pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}
.aw-empty {
  grid-column: 1/-1;
  text-align: center;
  background: color-mix(in srgb, var(--bg-card) 70%, transparent);
  border: 1px dashed var(--border-strong);
  border-radius: 20px;
  padding: 64px 22px;
}
.aw-empty-symbol {
  display: inline-block;
  font-size: 44px;
  line-height: 1;
  color: #959ba6;
  margin-bottom: 20px;
}
.aw-empty h2,
.aw-empty h3 {
  font-size: 19px;
  font-weight: 400;
  margin: 0;
}
.aw-empty p {
  margin: 13px 0 22px;
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.8;
}
.aw-not-artisan {
  margin-top: 10px;
}
.aw-not-artisan > div {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  font-size: 13px;
}
.aw-not-artisan > div > a:not(.aw-primary) {
  color: var(--fg-muted);
}
.aw-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  font: inherit;
  font-size: 13px;
  border: 0;
  border-radius: 12px;
  background: var(--fg);
  color: var(--bg);
  cursor: pointer;
}
.aw-primary:disabled {
  opacity: 0.5;
  cursor: wait;
}
.aw-profile {
  max-width: 780px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
  padding: 34px;
}
.aw-profile-heading h2 {
  font-size: 23px;
  font-weight: 400;
  margin: 0 0 25px;
}
.aw-profile-heading p {
  font-size: 13px;
  line-height: 1.7;
  margin: -12px 0 28px;
  color: var(--fg-muted);
}
.aw-field {
  display: grid;
  gap: 9px;
  color: var(--fg-muted);
  font-size: 12px;
  margin: 0 0 22px;
}
.aw-field input,
.aw-field textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
}
.aw-field textarea {
  min-height: 130px;
  resize: vertical;
}
.aw-accepting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.aw-accepting > span {
  display: grid;
  gap: 9px;
}
.aw-accepting strong {
  font-size: 14px;
  font-weight: 500;
}
.aw-accepting small {
  color: var(--fg-muted);
  font-size: 11px;
}
.aw-accepting input {
  width: 21px;
  height: 21px;
  accent-color: #6d7788;
  cursor: pointer;
}
.aw-profile-note {
  font-size: 12px;
  color: #a0694c;
  line-height: 1.7;
}
.aw-profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  margin-top: 16px;
}
.aw-profile-actions p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--fg-muted);
}
.aw-page [hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  .aw-order {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }
  .aw-order-preview {
    width: 80px;
    height: 100px;
  }
}
@media (max-width: 700px) {
  .aw-page {
    padding: 12px 18px 50px;
  }
  .aw-header {
    padding: 8px 0 22px;
    gap: 15px;
    align-items: flex-start;
  }
  .aw-header h1 {
    font-size: 28px;
  }
  .aw-eyebrow {
    font-size: 10px;
  }
  .aw-identity {
    gap: 8px;
    padding-top: 8px;
  }
  .aw-identity .st-avatar {
    width: 34px;
    height: 34px;
  }
  .aw-identity strong {
    max-width: 85px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12px;
  }
  .aw-availability {
    font-size: 10px;
  }
  .aw-tabs {
    margin-bottom: 20px;
  }
  .aw-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 28px;
  }
  .aw-metric {
    padding: 18px;
    gap: 13px;
  }
  .aw-metric b {
    font-size: 30px;
  }
  .aw-orders-heading h2 {
    font-size: 22px;
  }
  .aw-unread-total {
    font-size: 10px;
  }
  .aw-search input {
    font-size: 16px;
    min-height: 40px;
  }
  .aw-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 7px;
    padding-bottom: 5px;
    margin-bottom: 15px;
  }
  .aw-filters button {
    flex: 0 0 auto;
    padding: 9px 14px;
    min-height: 42px;
  }
  .aw-order-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .aw-order {
    grid-template-columns: 85px minmax(0, 1fr);
    padding: 16px;
    gap: 14px;
  }
  .aw-order-preview {
    width: 85px;
    height: 110px;
  }
  .aw-order h3 {
    font-size: 15px;
  }
  .aw-empty {
    padding: 45px 18px;
  }
  .aw-profile {
    padding: 24px 20px;
  }
  .aw-field input,
  .aw-field textarea {
    font-size: 16px;
  }
  .aw-profile-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .aw-metric,
  .aw-order {
    transition: none;
  }
}

.aw-preview-label {
  display: inline-flex;
  margin-top: 12px;
  padding: 5px 9px;
  border-radius: 6px;
  background: #e8eaee;
  color: #626a79;
  font-size: 11px;
}
.aw-identity-photo {
  width: 45px;
  flex: 0 0 45px;
}
.aw-identity-photo .ap-portrait {
  aspect-ratio: 1;
  border-radius: 12px;
}
.aw-identity-photo .ap-portrait > span {
  display: none;
}
.aw-identity-photo .ap-portrait svg {
  width: 80%;
}
.aw-management-back {
  color: var(--fg-muted);
  font-size: 12px;
  margin-left: 15px;
}
.aw-profile-photos {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}
.aw-profile-photos .ap-portfolio {
  gap: 10px;
}
.aw-profile-photos .ap-work {
  min-height: 104px;
}
.aw-photo-placeholder {
  display: grid;
  place-items: center;
  min-height: 100px;
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--fg-muted);
  font-size: 11px;
}
.aw-portfolio-placeholder {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.aw-identity-photo .aw-photo-placeholder {
  min-height: 45px;
  font-size: 8px;
}
.aw-profile-details {
  display: grid;
  gap: 22px;
  margin: 0;
}
.aw-profile-details > div {
  display: grid;
  gap: 9px;
}
.aw-profile-details dt {
  font-size: 12px;
  color: var(--fg-muted);
}
.aw-profile-details dd {
  font-size: 14px;
  line-height: 1.85;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.aw-management {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  align-items: start;
  gap: 28px;
  margin-top: 15px;
}
.aw-account-directory {
  min-width: 0;
}
.aw-management-new {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--fg);
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  cursor: pointer;
}
.aw-account-list {
  display: grid;
  gap: 14px;
}
.aw-account-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 20px;
  padding: 23px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.aw-account-main {
  min-width: 0;
}
.aw-account-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.aw-account-name h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  overflow-wrap: anywhere;
}
.aw-account-username {
  font-size: 12px;
  color: var(--fg-muted);
  margin: 10px 0 20px;
  overflow-wrap: anywhere;
}
.aw-account-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  margin: 0;
}
.aw-account-facts > div {
  min-width: 0;
}
.aw-account-facts dt {
  font-size: 10px;
  color: var(--fg-muted);
  margin-bottom: 7px;
}
.aw-account-facts dd {
  margin: 0;
  font-size: 12px;
  color: var(--fg);
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.aw-account-facts .aw-cooperation {
  color: #6a7486;
  letter-spacing: 2px;
  font-size: 14px;
}
.aw-account-preview {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 14px;
  color: var(--fg);
  font-size: 12px;
  min-height: 34px;
}
.aw-account-create {
  padding: 28px;
}
.aw-account-create .aw-profile-heading h2 {
  font-size: 22px;
}
.aw-account-create .aw-field {
  margin-bottom: 18px;
}
.aw-account-create .aw-field input,
.aw-account-create .aw-field textarea {
  font-size: 13px;
}
.aw-account-create .aw-profile-actions {
  flex-direction: column;
  align-items: stretch;
}
.aw-account-create form {
  scroll-margin-top: 125px;
}
@media (max-width: 1050px) {
  .aw-management {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 20px;
  }
  .aw-account-card {
    grid-template-columns: 65px minmax(0, 1fr);
    padding: 18px;
    gap: 15px;
  }
  .aw-account-create {
    padding: 22px;
  }
}
@media (max-width: 800px) {
  .aw-management {
    grid-template-columns: minmax(0, 1fr);
  }
  .aw-account-create {
    max-width: none;
  }
  .aw-account-passwords {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }
}
@media (max-width: 600px) {
  .aw-identity:has(.aw-management-back) {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 160px;
  }
  .aw-management-back {
    margin-left: 0;
    flex-basis: 100%;
    text-align: right;
    font-size: 10px;
  }
  .aw-identity-photo {
    width: 34px;
    flex-basis: 34px;
  }
  .aw-account-card {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 17px;
    gap: 15px;
  }
  .aw-account-name {
    align-items: flex-start;
  }
  .aw-account-name h3 {
    font-size: 16px;
  }
  .aw-account-name .aw-availability {
    font-size: 10px;
  }
  .aw-account-facts {
    gap: 14px 10px;
  }
  .aw-account-facts dd {
    font-size: 11px;
  }
  .aw-account-create .aw-field input,
  .aw-account-create .aw-field textarea {
    font-size: 16px;
  }
  .aw-account-passwords {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .aw-profile-photos {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 14px;
  }
  .aw-profile-photos .ap-portfolio {
    gap: 5px;
  }
  .aw-profile-photos .ap-work {
    min-height: 78px;
  }
  .aw-profile-photos .ap-work > span {
    font-size: 8px;
  }
}
