/* [project]/src/app/globals.css [app-client] (css) */
:root {
  --bg: #fafaf9;
  --panel: #fff;
  --text: #191919;
  --muted: #626262;
  --line: #d2d2d0;
  --red: #bd2c23;
  --soft: #f0f0ed;
  --accent-line: #e8bab5;
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Arial, sans-serif;
  font-weight: 400;
}

:root[data-theme="dark"] {
  --bg: #191919;
  --panel: #222;
  --text: #f5f5f2;
  --muted: #b9b9b4;
  --line: #545450;
  --red: #ff7a6c;
  --soft: #2c2c29;
  --accent-line: #78504b;
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

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

button, a, input, select, textarea {
  touch-action: manipulation;
}

button, a {
  outline-offset: 4px;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

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

button, input, select {
  min-height: 44px;
}

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--red);
}

button:hover, a:hover {
  color: var(--red);
}

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

h1 {
  letter-spacing: -1.25px;
  font-size: clamp(29px, 3vw, 42px);
  font-weight: 450;
  line-height: 1.17;
}

h2, h3 {
  letter-spacing: -.4px;
  font-weight: 500;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 20px;
}

p {
  line-height: 1.5;
}

.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.sr-only {
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.skip {
  z-index: 30;
  background: var(--panel);
  padding: 16px;
  position: fixed;
  top: -100px;
}

.skip:focus {
  top: 0;
}

#sidebar {
  border-right: 1px solid var(--line);
  background: var(--panel);
  z-index: 8;
  flex-direction: column;
  width: 205px;
  padding: 27px 20px;
  display: flex;
  position: fixed;
  inset: 0 auto 0 0;
}

.brand {
  align-items: center;
  min-height: 44px;
  display: flex;
}

.brand img {
  width: 164px;
  height: auto;
}

.brand-dark {
  display: none;
}

:root[data-theme="dark"] .brand-dark {
  display: block;
}

:root[data-theme="dark"] .brand-light {
  display: none;
}

#sidebar nav {
  gap: 5px;
  margin-top: 34px;
  display: grid;
}

#sidebar nav a {
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 9px 7px;
  font-size: 15px;
  display: flex;
  position: relative;
}

#sidebar nav a[aria-current="page"] {
  font-weight: 500;
}

#sidebar nav a[aria-current="page"]:before {
  content: "";
  background: var(--red);
  width: 2px;
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: -20px;
}

#sidebar nav a:not(:last-child):after {
  content: "";
  background: var(--line);
  opacity: .55;
  height: 1px;
  position: absolute;
  bottom: -3px;
  left: 41px;
  right: 7px;
}

.nav-icon {
  width: 22px;
  height: 22px;
  color: var(--muted);
  flex: none;
  display: block;
}

[aria-current="page"] .nav-icon {
  color: var(--red);
}

.sidebar-bottom {
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding-top: 12px;
  display: grid;
}

.sidebar-bottom button {
  text-align: left;
  font-size: 14px;
}

.sidebar-bottom span {
  margin-top: 16px;
  font-size: 11px;
}

#main {
  min-width: 0;
  min-height: 100vh;
  margin-left: 205px;
  padding: 20px 34px 0;
}

#main:focus {
  outline: none;
}

.utility {
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
  display: flex;
}

.utility form {
  border-bottom: 1px solid var(--line);
  flex: 1;
  max-width: 780px;
  display: flex;
}

.utility input {
  background: none;
  border: 0;
  flex: 1;
  min-width: 0;
  font-size: 16px;
}

.utility button {
  min-width: 44px;
}

.account-button {
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 240px;
  font-size: 14px;
  overflow: hidden;
}

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

.page-head p {
  color: var(--muted);
  max-width: 640px;
  margin-top: 12px;
}

.section-rule {
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  align-items: center;
  gap: 17px;
  margin: 27px 0 15px;
  font-size: 11px;
  display: flex;
}

.section-rule:before {
  content: "";
  background: var(--red);
  width: 17px;
  height: 1px;
  box-shadow: 0 -4px var(--red);
}

.section-rule:after {
  content: "";
  background: var(--red);
  opacity: .7;
  flex: 1;
  height: 1px;
}

.section-rule a {
  letter-spacing: 0;
  text-transform: none;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  display: flex;
}

.feature-grid {
  counter-reset: feature;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 22px;
  display: grid;
}

.feature {
  counter-increment: feature;
  min-width: 0;
}

.feature-grid .visual {
  height: clamp(210px, 21vw, 320px);
}

.visual {
  background: var(--soft);
  display: block;
  position: relative;
  overflow: hidden;
}

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

.visual .tag {
  color: #fff;
  letter-spacing: .4px;
  background: #191919e6;
  max-width: calc(100% - 20px);
  padding: 5px 8px;
  font-size: 10px;
  position: absolute;
  bottom: 10px;
  left: 10px;
}

.feature .eyebrow {
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 10px;
  display: flex;
}

.feature .eyebrow:before {
  content: counter(feature,decimal-leading-zero);
  color: var(--red);
  border-right: 1px solid var(--accent-line);
  padding-right: 10px;
  font-size: 11px;
}

.feature h2 {
  border-bottom: 1px solid var(--line);
  margin: 6px 0;
  padding-bottom: 10px;
  font-size: clamp(20px, 1.8vw, 25px);
  line-height: 1.25;
}

.feature p {
  color: var(--muted);
  font-size: 14px;
}

.text-action {
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 14px;
  display: inline-flex;
}

.text-action:before {
  content: "↗";
  color: var(--red);
  border-bottom: 1px solid var(--red);
  place-items: center;
  width: 23px;
  height: 25px;
  font-size: 17px;
  display: grid;
}

.mini-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  display: grid;
}

.mini {
  min-width: 0;
}

.mini .visual {
  height: 110px;
}

.mini .tag {
  display: none;
}

.mini h3 {
  margin: 9px 0 3px;
  font-size: 16px;
}

.mini p {
  color: var(--muted);
  font-size: 13px;
}

.steps-inline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 10px 0 20px;
  display: grid;
}

.steps-inline p {
  font-size: 17px;
}

.steps-inline span {
  color: var(--red);
  margin-bottom: 10px;
  font-size: 12px;
  display: block;
}

.steps-inline small {
  color: var(--muted);
  font-size: 14px;
}

.catalog-search {
  gap: 8px;
  max-width: 620px;
  margin-bottom: 16px;
  font-size: 14px;
  display: grid;
}

.catalog-toolbar {
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  display: flex;
}

.chip {
  border-bottom: 2px solid #0000;
  padding: 8px 15px;
  font-size: 14px;
}

.chip[aria-pressed="true"] {
  border-color: var(--red);
  font-weight: 500;
}

.catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 22px;
  display: grid;
}

.tool-card {
  min-width: 0;
}

.tool-card .visual {
  height: 190px;
}

.tool-card h2 {
  margin-top: 13px;
  font-size: 21px;
}

.tool-card p {
  color: var(--muted);
  margin-top: 7px;
  font-size: 14px;
}

.card-end {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex;
}

.card-end .muted {
  font-size: 13px;
}

.empty {
  border: 1px solid var(--line);
  text-align: center;
  justify-items: center;
  gap: 16px;
  padding: 50px 24px;
  line-height: 1.6;
  display: grid;
}

.back {
  align-items: center;
  min-height: 44px;
  margin-bottom: 12px;
  font-size: 14px;
  display: inline-flex;
}

.editor-head h1 {
  letter-spacing: -.8px;
  font-size: 34px;
}

.workspace {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  display: grid;
}

.workspace > section {
  min-width: 0;
}

.settings {
  border-left: 1px solid var(--line);
  flex-direction: column;
  align-self: start;
  gap: 20px;
  padding-left: 26px;
  display: flex;
}

.settings h2 {
  align-items: center;
  gap: 10px;
  font-size: 20px;
  display: flex;
}

.settings h2:before {
  content: "";
  background: var(--red);
  width: 18px;
  height: 2px;
}

fieldset {
  border: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
}

legend {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.radio {
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 0;
  font-size: 15px;
  display: flex;
}

.radio input {
  min-height: 20px;
  accent-color: var(--red);
}

.radio small {
  color: var(--muted);
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.5;
  display: block;
}

.mode-price {
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  margin-left: auto;
}

.mode-price small {
  font-size: 11px;
}

.settings > label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  display: block;
}

.settings > label textarea, .settings > label select {
  margin-top: 8px;
}

textarea, input[type="search"], input[type="text"], input[type="email"], input[type="password"], select {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  max-width: 100%;
  padding: 10px 12px;
  font-size: 16px;
}

input::placeholder, textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

textarea {
  resize: vertical;
  width: 100%;
  min-height: 100px;
}

.settings select {
  width: 100%;
}

.button {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 3px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
}

.primary {
  background: #bd2c23;
  border-color: #bd2c23;
  color: #fff !important;
}

.primary:hover {
  background: #a0231c;
}

.submit-area {
  gap: 10px;
  display: grid;
}

.notice {
  border-left: 2px solid var(--red);
  background: var(--soft);
  margin-bottom: 20px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.settings .notice {
  color: var(--muted);
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
  font-size: 13px;
}

.media-picker {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  min-width: 0;
  overflow: hidden;
}

.media-header {
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  display: flex;
}

.media-header h2 {
  letter-spacing: 0;
  font-size: 16px;
  font-weight: 450;
}

.media-switch {
  align-items: center;
  gap: 4px;
  display: flex;
}

.media-switch button {
  border-bottom: 2px solid #0000;
  min-height: 44px;
  padding: 8px;
  font-size: 14px;
}

.media-switch button[aria-pressed="true"] {
  border-color: var(--red);
}

.media-stage {
  background: var(--soft);
  justify-content: center;
  align-items: center;
  height: 340px;
  padding: 18px;
  display: flex;
  position: relative;
}

.media-stage img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.media-stage > .visual {
  width: 100%;
  height: 100%;
}

.media-stage:before, .media-stage:after {
  content: "";
  border-color: var(--red);
  pointer-events: none;
  z-index: 1;
  border-style: solid;
  width: 21px;
  height: 21px;
  position: absolute;
}

.media-stage:before {
  border-width: 1px 0 0 1px;
  top: 9px;
  left: 9px;
}

.media-stage:after {
  border-width: 0 1px 1px 0;
  bottom: 9px;
  right: 9px;
}

.media-caption {
  color: var(--muted);
  padding: 10px 18px 0;
  font-size: 14px;
  line-height: 20px;
}

.media-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  display: flex;
}

.file-button {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.file-button input {
  opacity: 0;
  cursor: pointer;
  width: 100%;
  position: absolute;
  inset: 0;
}

.file-button:focus-within {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.file-name {
  overflow-wrap: anywhere;
  max-width: 100%;
  color: var(--muted);
  font-size: 13px;
}

.media-secondary {
  text-underline-offset: 4px;
  min-height: 44px;
  font-size: 13px;
  text-decoration: underline;
}

.media-hint {
  color: var(--muted);
  padding: 0 18px 12px;
  font-size: 13px;
  line-height: 1.5;
}

.media-frame-note {
  border-left: 2px solid var(--red);
  margin-top: 12px;
  padding-left: 12px;
}

.example-pair {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  height: 100%;
  display: grid;
}

.example-pair figure {
  justify-content: center;
  min-width: 0;
  min-height: 0;
  margin: 0;
  display: flex;
  position: relative;
}

.example-pair figcaption {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 5px 10px;
  font-size: 13px;
  position: absolute;
  bottom: 8px;
  left: 8px;
}

.input-slot {
  text-align: center;
  width: 100%;
  min-width: 0;
  height: 100%;
  color: var(--muted);
  place-items: center;
  font-size: 14px;
  display: grid;
}

.two-inputs {
  gap: 14px;
}

.two-inputs .input-slot {
  width: 50%;
}

.error {
  color: var(--red);
  font-size: 14px;
  line-height: 1.5;
}

.auth-dialog {
  background: var(--panel);
  width: min(480px, 100% - 28px);
  max-height: 90dvh;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 26px;
  overflow: auto;
}

.auth-dialog::backdrop {
  background: #0009;
}

.dialog-head {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  display: flex;
}

.dialog-head button {
  min-width: 44px;
  font-size: 20px;
}

.auth-form {
  gap: 16px;
  margin: 20px 0;
  display: grid;
}

.auth-form label {
  gap: 7px;
  font-size: 14px;
  display: grid;
}

.auth-form small {
  color: var(--muted);
}

.social-buttons {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  display: grid;
}

.auth-switch {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0;
  display: flex;
}

.auth-switch button {
  text-underline-offset: 3px;
  font-size: 13px;
  text-decoration: underline;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  justify-content: space-between;
  gap: 20px;
  margin: 38px 0 0;
  padding: 20px 0;
  font-size: 11px;
  display: flex;
}

.mobile-head, .bottom-nav {
  display: none;
}

@media (min-width: 1700px) {
  #main {
    max-width: 1560px;
    margin-inline: auto;
    padding-left: 239px;
  }
}

@media (max-width: 1150px) {
  #sidebar {
    width: 180px;
    padding: 24px 14px;
  }

  #sidebar nav a {
    font-size: 13px;
  }

  #main {
    margin-left: 180px;
    padding: 18px 24px 0;
  }

  .feature-grid {
    gap: 16px;
  }

  .feature h2 {
    font-size: 20px;
  }

  .workspace {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
  }

  .settings {
    padding-left: 18px;
  }

  .account-button {
    max-width: 150px;
  }

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

@media (max-width: 1050px) {
  .workspace {
    flex-direction: column;
    gap: 20px;
    display: flex;
  }

  .workspace > .settings {
    border-left: 0;
    border-top: 1px solid var(--line);
    align-self: stretch;
    padding: 20px 0 0;
  }

  .page-head {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  #sidebar {
    border-bottom: 1px solid var(--line);
    width: auto;
    padding: 0 18px 16px;
    display: none;
    position: static;
  }

  #sidebar.open {
    display: flex;
  }

  #sidebar > .brand {
    display: none;
  }

  #sidebar nav {
    margin-top: 0;
  }

  #sidebar nav a {
    font-size: 16px;
  }

  #sidebar nav a[aria-current="page"]:before {
    left: -10px;
  }

  .sidebar-bottom {
    margin-top: 14px;
  }

  .mobile-head {
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    justify-content: space-between;
    align-items: center;
    min-height: 62px;
    padding: 10px 18px;
    display: flex;
  }

  .mobile-head .brand img {
    width: 154px;
  }

  .bottom-nav {
    z-index: 7;
    border-top: 1px solid var(--line);
    background: var(--panel);
    padding-bottom: env(safe-area-inset-bottom);
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .bottom-nav a {
    flex-direction: column;
    flex: 1;
    justify-content: center;
    align-items: center;
    gap: 4px;
    min-height: 60px;
    padding: 7px 4px;
    font-size: 12px;
    line-height: 16px;
    display: flex;
  }

  .bottom-nav a + a {
    border-left: 1px solid color-mix(in srgb,var(--line) 50%,transparent);
  }

  .bottom-nav a[aria-current="page"] {
    color: var(--red);
    box-shadow: inset 0 2px var(--red);
  }

  .bottom-nav .nav-icon {
    width: 20px;
    height: 20px;
  }

  #main {
    padding: 16px 18px calc(80px + env(safe-area-inset-bottom));
    margin: 0;
  }

  .utility {
    gap: 12px;
    margin-bottom: 22px;
  }

  .account-button {
    max-width: 100px;
  }

  .utility input {
    font-size: 16px;
  }

  .page-head {
    flex-wrap: wrap;
    gap: 0;
  }

  .page-head p {
    margin-top: 12px;
    font-size: 14px;
  }

  h1 {
    letter-spacing: -.9px;
    font-size: 31px;
  }

  .section-rule {
    letter-spacing: .65px;
    gap: 10px;
    margin-top: 22px;
    font-size: 10px;
  }

  .section-rule a {
    font-size: 12px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px 16px;
  }

  .feature:first-child {
    grid-column: 1 / -1;
  }

  .feature-grid .visual {
    height: 185px;
  }

  .feature:first-child .visual {
    height: 250px;
  }

  .feature h2 {
    font-size: 20px;
  }

  .feature p, .feature .text-action {
    font-size: 13px;
  }

  .feature .eyebrow {
    letter-spacing: .5px;
    gap: 6px;
  }

  .feature .eyebrow:before {
    padding-right: 6px;
  }

  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
  }

  .mini .visual {
    height: 105px;
  }

  .catalog-grid {
    gap: 24px 15px;
  }

  .catalog-grid .visual {
    height: 135px;
  }

  .tool-card h2 {
    font-size: 18px;
  }

  .tool-card p {
    font-size: 13px;
  }

  .card-end .muted {
    font-size: 12px;
  }

  .steps-inline {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .steps-inline span {
    width: 35px;
    margin: 0;
    display: inline-block;
  }

  .steps-inline small {
    margin-left: 35px;
  }

  .editor-head h1 {
    font-size: 29px;
  }

  .media-header {
    gap: 4px;
    padding: 8px 10px;
  }

  .media-stage {
    height: 240px;
    padding: 12px;
  }

  .media-stage:before, .media-stage:after {
    width: 13px;
    height: 13px;
  }

  .media-caption {
    padding: 10px 12px 0;
    font-size: 13px;
  }

  .media-actions {
    padding: 6px 12px;
  }

  .media-hint {
    padding: 0 12px 12px;
  }

  .media-frame-note {
    font-size: 13px;
  }

  .settings .button {
    min-height: 48px;
  }

  .example-pair {
    gap: 8px;
  }

  .auth-dialog {
    padding: 20px;
  }

  .dialog-head h2 {
    font-size: 22px;
  }

  footer {
    flex-direction: column;
    gap: 10px;
  }

  .visual .tag {
    font-size: 9px;
    bottom: 6px;
    left: 6px;
  }
}

@media (max-width: 360px) {
  #main {
    padding-inline: 14px;
  }

  .feature h2 {
    font-size: 18px;
  }

  .feature-grid .visual {
    height: 150px;
  }

  .feature:first-child .visual {
    height: 220px;
  }

  .feature .eyebrow {
    font-size: 9px;
  }

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

  .catalog-grid .visual {
    height: 180px;
  }

  .section-rule a {
    max-width: 105px;
  }

  .media-stage {
    height: 210px;
  }

  .media-header {
    gap: 0;
  }

  .example-pair figcaption {
    padding: 3px 7px;
    bottom: 3px;
    left: 3px;
  }

  .account-button {
    max-width: 65px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

.recovery-panel {
  max-width: 480px;
}

.recovery-panel p {
  margin-top: 12px;
}

.visual.photoshoot-crop img {
  max-width: none;
  width: 200% !important;
  height: 200% !important;
  inset: auto 0 0 auto !important;
}

body:has(.editor-head) .utility {
  display: none;
}

.cabinet-columns {
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  align-items: start;
  gap: 48px;
  display: grid;
}

.cabinet-columns > * {
  min-width: 0;
}

.cabinet-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 26px;
}

.cabinet-panel > h2 {
  margin: 8px 0 14px;
}

.cabinet-panel > p {
  margin-bottom: 14px;
}

.balance-block {
  border-bottom: 1px solid var(--line);
  padding: 22px 0 32px;
}

.balance-number {
  letter-spacing: -2px;
  margin: 12px 0;
  font-size: clamp(42px, 6vw, 70px);
  font-weight: 450;
  line-height: 1.2;
  display: block;
}

.balance-block > p + p {
  margin-top: 12px;
}

.gift-panel {
  padding: 24px 0;
}

.gift-panel > p {
  margin: 12px 0;
}

.facts {
  gap: 12px;
  margin: 22px 0;
  display: grid;
}

.facts > div {
  justify-content: space-between;
  gap: 18px;
  display: flex;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  text-align: right;
  overflow-wrap: anywhere;
  margin: 0;
}

.entry {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  display: flex;
}

.entry h3 {
  margin-bottom: 5px;
  font-size: 17px;
}

.entry p {
  color: var(--muted);
  font-size: 14px;
}

.entry > strong {
  white-space: nowrap;
  font-weight: 500;
}

.payment-offer {
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

.payment-offer > .button {
  width: 100%;
  margin: 14px 0;
  display: block;
}

.payment-panel .notice {
  margin-top: 20px;
}

.action-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  display: flex;
}

.quote-confirm {
  border: 1px solid var(--red);
  background: var(--panel);
  margin: 20px 0;
  padding: 20px;
}

.quote-confirm > h2 {
  margin: 8px 0 15px;
}

.work-row {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 36px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 16px;
  padding: 28px 0;
  display: grid;
}

.work-row h2 {
  font-size: 22px;
}

.work-row p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 14px;
}

.work-row > strong {
  white-space: nowrap;
  font-weight: 450;
}

.work-index {
  color: var(--red);
  font-size: 28px;
}

.result-stage {
  background: var(--soft);
  border: 1px solid var(--line);
  justify-content: center;
  align-items: center;
  min-height: 300px;
  display: flex;
}

.result-stage > img {
  object-fit: contain;
  width: 100%;
  max-height: 680px;
}

.result-caption {
  margin: 15px 0;
}

.result-details > h2 {
  margin: 10px 0;
}

.result-details .payment-panel {
  margin: 24px 0;
}

.correction-form {
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding-top: 24px;
}

.operator-table {
  border: 1px solid var(--line);
  max-width: 100%;
  overflow: auto;
}

.operator-table table {
  border-collapse: collapse;
  text-align: left;
  min-width: 100%;
  font-size: 13px;
}

.operator-table th, .operator-table td {
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
  min-width: 110px;
  max-width: 250px;
  padding: 14px;
}

.operator-table th {
  background: var(--soft);
  font-weight: 500;
}

.metric-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  display: grid;
}

.secret-block {
  background: var(--soft);
  overflow-wrap: anywhere;
  margin: 20px 0;
  padding: 18px;
}

.secret-block code {
  word-break: break-all;
  margin-top: 12px;
  display: block;
}

.secret-block ul {
  padding-left: 18px;
}

.mfa-panel .text-action {
  margin-top: 18px;
}

.mfa-panel .notice {
  margin-top: 20px;
}

.payment-panel input, .payment-panel select, .mfa-panel input {
  width: 100%;
  min-width: 0;
}

.mfa-panel label, .payment-panel label {
  overflow-wrap: anywhere;
}

@media (max-width: 1150px) {
  .cabinet-columns {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 1fr);
    gap: 26px;
  }

  .cabinet-panel {
    padding: 20px;
  }

  .metric-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .cabinet-columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .order-columns {
    gap: 20px;
  }

  .work-row {
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 22px 0;
  }

  .work-row > span:last-child {
    display: none;
  }

  .work-row h2 {
    font-size: 19px;
  }

  .work-row > strong {
    font-size: 14px;
  }

  .result-stage {
    min-height: 220px;
  }

  .cabinet-panel {
    padding: 20px;
  }

  .balance-number {
    font-size: 56px;
  }

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

  .metric-list .balance-number {
    font-size: 40px;
  }

  .metric-list .eyebrow {
    font-size: 10px;
  }

  .operator-table td {
    max-width: 190px;
  }

  .quote-confirm {
    padding: 16px;
  }

  .facts {
    font-size: 14px;
  }
}

.library-layout {
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
  display: grid;
}

.library-main, .library-folders, .batch-fields {
  min-width: 0;
}

.library-folders {
  border-right: 1px solid var(--line);
  gap: 4px;
  padding-right: 22px;
  display: grid;
}

.library-folders > button {
  text-align: left;
  overflow-wrap: anywhere;
  padding: 10px 8px;
}

.library-folders > button[aria-pressed="true"] {
  border-left: 2px solid var(--red);
  background: var(--soft);
}

.library-folders form {
  margin-top: 20px;
}

.library-folders label, .library-search label, .library-filters label, .batch-fields label, .batch-role label {
  gap: 8px;
  min-width: 0;
  font-size: 14px;
  display: grid;
}

.library-layout input:not([type="checkbox"]), .library-layout select, .batch-compose select, .batch-compose textarea, .library-dialog input {
  border: 1px solid var(--line);
  background: var(--panel);
  width: 100%;
  min-width: 0;
  padding: 10px;
  font-size: 16px;
}

.library-search {
  align-items: end;
  gap: 12px;
  display: flex;
}

.library-search > label {
  flex: 1;
}

.library-filters {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
  display: grid;
}

.library-toolbar {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  display: flex;
}

.library-toolbar h2 {
  margin-bottom: 8px;
}

.library-toolbar > div {
  flex: 1;
  min-width: 180px;
}

.library-selection {
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 14px 0;
  font-size: 14px;
  display: flex;
}

.library-selection > label {
  align-items: center;
  gap: 8px;
  display: flex;
}

.library-selection select {
  max-width: 180px;
}

.library-selection input[type="checkbox"], .library-work input[type="checkbox"], .batch-result-row input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  accent-color: var(--red);
}

.library-work .work-row {
  grid-template-columns: 24px minmax(0, 1fr) auto 44px;
  gap: 14px;
}

.library-work h2 {
  overflow-wrap: anywhere;
}

.library-work .work-row > button {
  font-size: 20px;
}

.library-work .work-row > strong {
  white-space: normal;
  text-align: right;
}

.work-versions {
  margin: 14px 0 22px 38px;
}

.work-versions summary, details summary {
  cursor: pointer;
  min-height: 44px;
  padding: 12px 0;
  font-size: 14px;
}

.work-versions p {
  border-top: 1px solid var(--line);
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  font-size: 14px;
  display: flex;
}

.work-versions p span {
  color: var(--muted);
}

.library-archives {
  margin-top: 34px;
}

.archive-row {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  padding: 22px 0;
  display: flex;
}

.archive-row > div {
  min-width: 0;
}

.archive-row h3 {
  margin-bottom: 8px;
}

.archive-row li {
  overflow-wrap: anywhere;
  margin: 8px 0;
  font-size: 14px;
}

.archive-row .action-row {
  flex-direction: column;
  flex-shrink: 0;
  align-items: start;
  margin: 0;
}

.library-dialog {
  background: var(--panel);
  width: calc(100% - 32px);
  max-width: 560px;
  max-height: 85vh;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 28px;
  overflow: auto;
}

.library-dialog::backdrop {
  background: #0008;
}

.library-dialog p {
  margin-top: 18px;
}

.danger {
  color: var(--red);
}

.batch-compose > .library-filters {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.batch-upload {
  border-block: 1px solid var(--line);
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  padding: 24px 0;
  display: flex;
}

.batch-upload > .button {
  flex-shrink: 0;
}

.batch-empty {
  text-align: center;
  background: var(--soft);
  margin-top: 24px;
  padding: 50px 24px;
}

.batch-empty h3 {
  margin: 16px 0 10px;
}

.batch-input {
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}

.batch-input header {
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  display: flex;
}

.batch-input-grid {
  flex-wrap: wrap;
  align-items: start;
  gap: 24px;
  display: flex;
}

.batch-role {
  flex: 1;
  min-width: 180px;
  max-width: 300px;
}

.batch-role img {
  object-fit: contain;
  background: var(--soft);
  width: 100%;
  height: 160px;
  margin-bottom: 16px;
}

.batch-role input {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  font-size: 13px;
}

.batch-role input::file-selector-button {
  background: var(--panel);
  max-width: 100%;
  min-height: 44px;
  color: var(--text);
  border: 1px solid var(--line);
}

.batch-fields {
  flex: 2;
  gap: 16px;
  min-width: 200px;
  display: grid;
}

.batch-fields textarea {
  resize: vertical;
  min-height: 100px;
}

.batch-input > p {
  margin-top: 12px;
}

.batch-prices {
  padding: 0;
  list-style: none;
}

.batch-prices li {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  display: flex;
}

.batch-prices strong {
  font-weight: 500;
}

.batch-result-row {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  display: grid;
}

.batch-result-row > strong {
  font-weight: 500;
}

.batch-results > .button {
  margin-top: 20px;
}

.batch-history {
  margin-top: 40px;
}

@media (max-width: 1100px) {
  .library-layout {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 22px;
  }

  .library-folders {
    padding-right: 14px;
  }

  .archive-row {
    flex-direction: column;
  }

  .archive-row .action-row {
    flex-direction: row;
  }

  .library-filters {
    grid-template-columns: 1fr 1fr;
  }

  .library-filters > label:first-child {
    grid-column: 1 / -1;
  }
}

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

  .library-folders {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 0 18px;
    display: flex;
  }

  .library-folders form {
    flex: 100%;
    margin-top: 8px;
  }

  .library-folders > button {
    border: 1px solid var(--line);
    padding: 8px 12px;
  }

  .library-folders > button[aria-pressed="true"] {
    border-color: var(--red);
  }

  .library-search {
    flex-wrap: wrap;
  }

  .library-search > label {
    flex-basis: 100%;
  }

  .library-work .work-row {
    grid-template-columns: 20px minmax(0, 1fr) 44px;
    gap: 10px;
  }

  .library-work .work-row > strong {
    text-align: left;
    grid-area: 2 / 2;
  }

  .library-work .work-row > button {
    grid-area: 1 / 3;
  }

  .work-versions {
    margin-left: 0;
  }

  .work-versions p {
    flex-wrap: wrap;
    gap: 6px;
  }

  .library-toolbar {
    gap: 16px;
  }

  .library-dialog {
    padding: 22px;
  }

  .batch-compose > .library-filters {
    grid-template-columns: 1fr;
  }

  .batch-upload {
    flex-direction: column;
    align-items: start;
    gap: 14px;
  }

  .batch-input-grid {
    flex-direction: column;
    gap: 20px;
  }

  .batch-role {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .batch-role img {
    height: 200px;
  }

  .batch-fields {
    width: 100%;
    min-width: 0;
  }

  .batch-input header {
    align-items: start;
  }

  .batch-input header h3 {
    padding-top: 10px;
  }

  .batch-results .section-rule {
    flex-wrap: wrap;
  }
}

.batch-download-terms {
  color: var(--muted);
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  display: block;
}

.batch-prices li > span {
  min-width: 0;
}

.batch-prices li > strong {
  white-space: nowrap;
}

/*# sourceMappingURL=src_app_globals_162hn9o.css.map*/