:root {
  --lf-surface-texture: url("/brand/assets/textures/surface-noise.png");
}
body {
  margin: 0;
  min-height: 100vh;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button:disabled {
  cursor: not-allowed;
}
.skip {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
}
.skip:focus {
  top: 12px;
  background: var(--lf-color-card);
  padding: 12px;
}
.loading {
  padding: 80px 24px;
  text-align: center;
}
.header {
  height: 84px;
  min-height: 72px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--lf-color-border);
  background: var(--lf-color-page);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  display: block;
  line-height: 0;
}
.brand img {
  width: auto;
  height: 32px;
  max-width: 100%;
}
.logo-dark {
  display: none;
}
[data-lf-theme="dark"] .logo-dark {
  display: block;
}
[data-lf-theme="dark"] .logo-light {
  display: none;
}
.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.review-bar {
  padding: 10px 32px;
  border-bottom: 1px solid var(--lf-color-border);
  font-size: 13px;
  color: var(--lf-color-muted);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  background: var(--lf-color-inset);
}
.review-bar button {
  font-size: 13px;
  min-height: 36px;
}
.layout {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  max-width: 1500px;
  margin: auto;
  min-height: calc(100vh - 134px);
}
.sidebar {
  border-right: 1px solid var(--lf-color-border);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.account-label {
  padding: 0 14px;
  font-size: 13px;
  color: var(--lf-color-muted);
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.sidebar nav a {
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--lf-color-muted);
  text-decoration: none;
  font-size: 14px;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar nav a[aria-current="page"] {
  background: var(--lf-color-card);
  color: var(--lf-color-text);
  border: 1px solid var(--lf-color-border);
  font-weight: 600;
}
.nav-icon {
  width: 18px;
  flex: none;
  text-align: center;
}
.footer {
  margin-top: auto;
  font-size: 13px;
  line-height: 1.7;
  color: var(--lf-color-muted);
}
.footer a {
  color: inherit;
  display: inline-block;
  min-height: 30px;
  margin-right: 10px;
}
.sidebar .footer {
  padding: 0 14px;
}
.content {
  padding: 48px clamp(24px, 4vw, 64px) 64px;
  max-width: 1120px;
  width: 100%;
  min-width: 0;
}
.lf-app .content h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.018em;
  font-weight: 600;
}
.intro {
  margin-bottom: 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.intro p {
  color: var(--lf-color-muted);
  margin-top: 10px;
  max-width: 580px;
}
.eyebrow {
  font-size: 13px;
  color: var(--lf-color-muted);
  margin-bottom: 10px !important;
}
.stack {
  display: grid;
  gap: 22px;
}
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.panel {
  background: var(--lf-color-card);
  border: 1px solid var(--lf-color-border);
  border-radius: 18px;
  padding: 28px;
  min-width: 0;
}
.lf-app .panel h2 {
  font-size: 20px;
  letter-spacing: -0.018em;
  line-height: 1.35;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.panel-head p {
  color: var(--lf-color-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 7px;
}
.panel > p {
  margin-top: 12px;
}
.form {
  display: grid;
  gap: 20px;
}
.form .lf-field {
  font-weight: 500;
}
.form .lf-field input {
  font-weight: 400;
}
.form .lf-help {
  font-weight: 400;
}
.form .actions {
  padding-top: 4px;
}
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.avatar-row {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
}
.avatar {
  border: 1px solid var(--lf-color-border);
  background: var(--lf-color-inset);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  font-weight: 500;
  object-fit: cover;
  flex: none;
}
.avatar-row p {
  font-size: 13px;
  color: var(--lf-color-muted);
  margin-top: 6px;
}
.list {
  display: grid;
}
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--lf-color-border);
  min-width: 0;
}
.list-item:first-child {
  border-top: 0;
  padding-top: 0;
}
.list-item:last-child {
  padding-bottom: 0;
}
.list-item p {
  font-size: 13px;
  color: var(--lf-color-muted);
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.list-item strong {
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lf-color-success-text);
  margin-right: 6px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--lf-color-border);
  border-radius: 99px;
  font-size: 13px;
  color: var(--lf-color-muted);
  white-space: nowrap;
  line-height: 20px;
}
.product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 26px;
}
.product-head img {
  height: 32px;
  max-width: 100%;
  width: auto;
}
.product-card p {
  color: var(--lf-color-muted);
  font-size: 14px;
  min-height: 48px;
  line-height: 1.65;
  margin-bottom: 22px;
}
.product-card .lf-btn {
  width: 100%;
}
.pub-selector {
  max-width: 360px;
  width: 100%;
  margin-bottom: 24px;
}
.note {
  border: 1px solid var(--lf-color-border);
  border-radius: 12px;
  background: var(--lf-color-inset);
  padding: 16px;
  font-size: 14px;
  color: var(--lf-color-muted);
  line-height: 1.6;
}
.danger {
  border-color: var(--lf-color-error-border);
}
.danger h2 {
  color: var(--lf-color-error-text);
}
.auth-wrap {
  max-width: 1060px;
  margin: 56px auto 80px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.auth-story h1 {
  font-size: 44px;
  letter-spacing: -0.035em;
  line-height: 1.08;
  font-weight: 500;
}
.auth-story p {
  color: var(--lf-color-muted);
  margin-top: 22px;
  max-width: 380px;
}
.auth-story .line {
  width: 48px;
  height: 2px;
  background: var(--lf-color-border);
  margin: 30px 0;
}
.auth-story small {
  color: var(--lf-color-muted);
  font-size: 13px;
  line-height: 1.7;
  display: block;
}
.auth-card {
  padding: 32px;
}
.auth-card h2 {
  font-size: 24px;
  margin-bottom: 10px;
}
.auth-card > .lf-help {
  margin-bottom: 24px;
}
.social {
  display: grid;
  gap: 10px;
}
.social button {
  display: flex;
  justify-content: center;
  gap: 14px;
  width: 100%;
}
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--lf-color-muted);
  font-size: 13px;
  margin: 22px 0;
}
.divider:before,
.divider:after {
  content: "";
  height: 1px;
  background: var(--lf-color-border);
  flex: 1;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  margin-top: 20px !important;
}
.auth-card .form > .lf-btn {
  width: 100%;
}
.review-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.review-choices .lf-btn {
  font-size: 13px !important;
  min-height: 40px;
  padding: 7px 10px;
}
.review-box {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--lf-color-border);
}
.review-box p {
  font-size: 13px;
  color: var(--lf-color-muted);
}
.page-footer {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 30px;
  text-align: center;
}
.notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  width: max-content;
  padding: 14px 20px;
  border: 1px solid var(--lf-color-border);
  border-radius: 12px;
  background: var(--lf-color-card);
  color: var(--lf-color-text);
  box-shadow: 0 8px 32px var(--lf-color-shadow);
  z-index: 110;
  font-size: 14px;
}
.notice[data-error="true"] {
  border-color: var(--lf-color-error-border);
  color: var(--lf-color-error-text);
}
dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  overflow: auto;
  margin: auto;
  padding: 28px;
  border: 1px solid var(--lf-color-border);
  border-radius: 20px;
  background: var(--lf-color-card);
  color: var(--lf-color-text);
  box-shadow: 0 18px 80px var(--lf-color-shadow);
}
dialog::backdrop {
  background: rgb(0 0 0 / 0.42);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.lf-app .dialog-head h2 {
  font-size: 24px;
}
.dialog-head .lf-close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  flex: none;
}
dialog p {
  color: var(--lf-color-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px !important;
}
.mail {
  border-top: 1px solid var(--lf-color-border);
  padding: 18px 0;
  overflow-wrap: anywhere;
}
.mail a {
  display: inline-block;
  min-height: 44px;
  padding-top: 10px;
}
.mail code {
  display: block;
  font-size: 22px;
  letter-spacing: 0.2em;
  margin-top: 12px;
}
.mail small {
  display: block;
  color: var(--lf-color-muted);
  margin: 6px 0;
}
.admin-menu {
  position: relative;
}
.admin-menu > summary {
  list-style: none;
  cursor: pointer;
}
.admin-menu > summary::-webkit-details-marker {
  display: none;
}
.menu-items {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 240px;
  padding: 8px;
  border: 1px solid var(--lf-color-border);
  border-radius: 14px;
  background: var(--lf-color-card);
  box-shadow: 0 8px 24px var(--lf-color-shadow);
  z-index: 30;
}
.menu-items a,
.menu-items button {
  display: block;
  text-align: left;
  width: 100%;
  padding: 10px 12px;
  min-height: 44px;
  color: var(--lf-color-text);
  font-size: 14px;
  border: 0;
  background: none;
  text-decoration: none;
  border-radius: 8px;
}
.menu-items a:hover,
.menu-items button:hover {
  background: var(--lf-color-inset);
}
.empty {
  padding: 26px;
  text-align: center;
  color: var(--lf-color-muted);
}
.product-preview {
  max-width: 920px;
  margin: 60px auto;
  padding: 0 24px;
}
.product-preview .panel {
  margin-top: 28px;
}
.product-preview h1 {
  font-size: 36px;
}
.product-preview .identity-line {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
input[type="file"] {
  max-width: 100%;
  font-size: 14px;
}
code {
  font-family: ui-monospace, monospace;
  overflow-wrap: anywhere;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .content {
    padding: 36px 24px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .auth-wrap {
    gap: 32px;
  }
  .auth-story h1 {
    font-size: 36px;
  }
}
@media (max-width: 639px) {
  .header {
    padding: 0 16px;
    height: 76px;
    gap: 10px;
  }
  .brand img {
    height: 28px;
  }
  .header-actions {
    gap: 10px;
  }
  .header-actions summary {
    padding: 9px 10px;
  }
  .header-actions .lf-btn:before,
  .header-actions .lf-btn:after {
    display: none;
  }
  .header-actions .lf-btn {
    display: flex;
  }
  .review-bar {
    padding: 9px 16px;
    align-items: flex-start;
    gap: 8px;
  }
  .review-bar span {
    max-width: 200px;
  }
  .layout {
    display: block;
  }
  .sidebar {
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--lf-color-border);
    gap: 12px;
  }
  .sidebar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .sidebar nav a {
    padding: 10px 12px;
    min-height: 44px;
  }
  .nav-icon {
    display: none;
  }
  .sidebar .footer,
  .account-label {
    display: none;
  }
  .content {
    padding: 28px 16px 48px;
  }
  .lf-app .content h1 {
    font-size: 28px;
  }
  .intro {
    margin-bottom: 24px;
    display: block;
  }
  .intro .badge {
    margin-top: 12px;
  }
  .panel {
    padding: 22px 18px;
    border-radius: 16px;
  }
  .panel-head {
    gap: 12px;
    flex-wrap: wrap;
  }
  .list-item {
    flex-wrap: wrap;
  }
  .list-item .lf-btn {
    min-height: 44px;
  }
  .auth-wrap {
    margin: 28px auto 40px;
    padding: 0 16px;
    display: block;
  }
  .auth-story {
    margin-bottom: 28px;
  }
  .auth-story h1 {
    font-size: 32px;
  }
  .auth-story p {
    margin-top: 12px;
  }
  .auth-story .line,
  .auth-story small {
    display: none;
  }
  .auth-card {
    padding: 24px 18px;
  }
  .auth-card h2 {
    font-size: 22px;
  }
  .auth-card .social {
    gap: 8px;
  }
  .product-head {
    flex-wrap: wrap;
  }
  .notice {
    bottom: 16px;
  }
  .avatar-row {
    gap: 14px;
  }
  .avatar {
    width: 60px;
    height: 60px;
    font-size: 20px;
  }
  .footer.page-footer {
    display: block;
  }
  .lf-appearance > .lf-system-reset {
    display: none !important;
  }
  dialog {
    padding: 20px;
  }
  .product-preview {
    margin: 32px auto;
  }
  .lf-app .product-preview h1 {
    font-size: 28px;
  }
  .actions .lf-btn {
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .content,
  .auth-wrap,
  .product-preview {
    animation: enter 180ms ease-out;
  }
  @keyframes enter {
    from {
      opacity: 0.5;
      transform: translateY(3px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

.avatar-row > div {
  min-width: 0;
}
input[type="file"] {
  width: 100%;
}
.mobile-footer {
  display: none;
}
.sidebar .page-footer {
  text-align: left;
  padding: 0 14px;
}
@media (max-width: 639px) {
  .sidebar .footer {
    display: none !important;
  }
  .mobile-footer {
    display: block;
  }
  .avatar-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .avatar-row > div {
    width: 100%;
  }
  .header .product-brand img {
    height: 36px;
  }
  .header .full-mark {
    display: none;
  }
  .header .short-mark {
    display: block;
  }
  .header .short-mark.logo-dark {
    display: none;
  }
  [data-lf-theme="dark"] .header .short-mark.logo-light {
    display: none;
  }
  [data-lf-theme="dark"] .header .short-mark.logo-dark {
    display: block;
  }
}
@media (min-width: 640px) {
  .short-mark {
    display: none !important;
  }
}

.short-mark {
  display: none;
}
@media (max-width: 639px) {
  .header .short-mark {
    display: block;
  }
  .header .short-mark.logo-dark {
    display: none;
  }
  [data-lf-theme="dark"] .header .short-mark.logo-light {
    display: none;
  }
  [data-lf-theme="dark"] .header .short-mark.logo-dark {
    display: block;
  }
}

.footer .lf-system-reset {
  display: block;
  width: auto;
  font-size: 13px;
  min-height: 44px;
  margin: 10px 0;
  color: var(--lf-color-muted);
}
.avatar-row input[type="file"] {
  min-height: 46px;
  color: var(--lf-color-muted);
}
.avatar-row input[type="file"]::file-selector-button {
  min-height: 46px;
  margin-right: 10px;
  padding: 10px 16px;
  border: 1px solid var(--lf-color-border);
  border-radius: var(--lf-radius-pill);
  background: var(--lf-color-field);
  color: var(--lf-color-text);
  font: 600 14px/21px var(--lf-type-family-ui);
  box-shadow: var(--lf-shadow-secondary);
  cursor: pointer;
}
.page-footer:not(.sidebar .page-footer) .lf-system-reset {
  margin: 10px auto;
}
