:root {
  color-scheme: light;
  --ink: #153938;
  --sub: #566a69;
  --line: #d5dfdc;
  --blue: #12655f;
  --page: #f5f7f6;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
select,
input,
textarea {
  font: inherit;
  color: inherit;
}
button,
select,
summary {
  cursor: pointer;
}
button:disabled {
  opacity: 0.47;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #c87e26;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.shell {
  width: min(1064px, calc(100% - 64px));
  margin: auto;
}
.topbar {
  background: white;
  border-bottom: 1px solid var(--line);
}
.head-inner {
  height: 65px;
  display: flex;
  align-items: center;
  gap: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.8px;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: #146059;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  position: relative;
}
.brand-mark:before,
.brand-mark i {
  content: "";
  width: 13px;
  height: 17px;
  border: 1.6px solid white;
  position: absolute;
  transform: rotate(-13deg) translateX(-2px);
  border-radius: 1px;
}
.brand-mark i {
  background: #146059;
  transform: rotate(8deg) translateX(2px);
}
.brand-mark i:after {
  content: "";
  display: block;
  width: 7px;
  height: 2px;
  margin: 5px 2px;
  background: #fff;
  box-shadow: 0 4px #fff;
}
.main-nav {
  display: flex;
  height: 100%;
  gap: 27px;
}
.main-nav a,
.tabs a {
  display: grid;
  place-items: center;
  border-bottom: 3px solid transparent;
  font-size: 14px;
  color: var(--sub);
}
.main-nav a.active,
.tabs a.active {
  border-color: #17887e;
  color: #12635d;
  font-weight: 700;
}
.system {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--sub);
}
.dot,
.device-status i {
  width: 7px;
  height: 7px;
  border-radius: 100%;
  display: inline-block;
  background: #33967c;
}
.system.off .dot,
.device-status.warn i {
  background: #bb7f43;
}
.hero {
  margin-top: 26px;
  min-height: 233px;
  isolation: isolate;
  position: relative;
  background: linear-gradient(110deg, #133e3d 0%, #164b48 54%, #52827c 100%);
  color: white;
  border-radius: 18px;
  overflow: hidden;
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 28px 42px;
}
.ink-strips {
  display: flex;
  gap: 3px;
  margin: 1px 0 11px;
}
.ink-strips i {
  width: 21px;
  height: 4px;
  transform: skewX(-18deg);
  background: #81d9d4;
}
.ink-strips i:nth-child(2) {
  background: #eeaaaa;
}
.ink-strips i:nth-child(3) {
  background: #f2d879;
}
.ink-strips i:last-child {
  background: #dae4d7;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -2px;
  line-height: 1.25;
}
.hero-copy p {
  margin: 7px 0 18px;
  color: #d2e3de;
  font-size: 14px;
}
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  background: #f4faf5;
  color: #1a4841;
  padding: 7px 12px;
  border-radius: 5px;
  font-weight: 650;
}
.hero-link span {
  font: 16px Arial;
}
.hero-art {
  position: absolute;
  inset: 0 0 0 48%;
  overflow: hidden;
  background-image: radial-gradient(#d6efd12e 1px, transparent 1.5px);
  background-size: 10px 10px;
}
.orbit {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  inset: 0;
  margin: auto;
  background: #adcac0;
  box-shadow:
    0 0 0 12px #c8ded22a,
    0 0 0 13px #d9e8df47;
}
.hero-paper {
  width: 180px;
  height: 175px;
  position: absolute;
  left: 20%;
  top: 28%;
  background:
    repeating-linear-gradient(0deg, transparent 0 9px, #96ada17a 9px 10px),
    #d9e6d9;
  transform: rotate(-18deg);
  box-shadow: -6px 6px #96b5a6;
}
.hero-art img {
  position: absolute;
  width: auto;
  height: 94%;
  inset: 2% 0 0;
  margin: auto;
  filter: drop-shadow(0 8px 5px #0b242b55);
}
.device-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -17px 20px 0;
  padding: 14px 20px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px #13362f0c;
  position: relative;
  z-index: 2;
  border-radius: 10px;
}
.device-row small,
.device-row b {
  display: block;
}
.device-row small {
  color: var(--sub);
  font-size: 10px;
}
.device-row b {
  font-size: 16px;
}
.device-icon {
  background: #e3f0ec;
  color: #266d64;
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 22px;
}
.device-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--sub);
}
.chev {
  font: 23px Arial;
  color: #66847d;
}
.tabs {
  display: flex;
  gap: 33px;
  border-bottom: 1px solid var(--line);
  margin: 14px 0 17px;
}
.tabs a {
  padding: 12px 5px 10px;
  font-size: 17px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.card {
  position: relative;
  text-align: left;
  border: 1px solid var(--edge);
  background: var(--surface);
  color: var(--tone);
  border-radius: 12px;
  padding: 23px;
  min-height: 151px;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 13px #1c363310;
}
.c-doc {
  --tone: #235665;
  --surface: #e1f0f1;
  --edge: #c6dedf;
}
.c-image {
  --tone: #41625d;
  --surface: #e3efe9;
  --edge: #c8dfd5;
}
.c-text {
  --tone: #685235;
  --surface: #f6eedb;
  --edge: #e8dcbf;
}
.c-bead {
  --tone: #514b78;
  --surface: #eeeafa;
  --edge: #dcd6ef;
}
.c-exam {
  --tone: #346256;
  --surface: #e1efeb;
  --edge: #c6ddd4;
}
.c-invoice {
  --tone: #805847;
  --surface: #f8eae2;
  --edge: #edd6c8;
}
.arrow {
  position: absolute;
  right: 15px;
  top: 12px;
  font-size: 18px;
  opacity: 0.75;
}
.card-text {
  display: block;
  position: relative;
  z-index: 1;
}
.card-text strong,
.card-text small {
  display: block;
}
.card-text strong {
  font-size: 21px;
  letter-spacing: -0.7px;
}
.card-text small {
  font-size: 12px;
  margin-top: 4px;
}
.art {
  display: block;
  height: 42px;
  width: 47px;
  margin-bottom: 12px;
  position: relative;
}
.paper-art:before,
.paper-art i,
.bill-art:before {
  position: absolute;
  content: "";
  inset: 1px 8px 0 4px;
  border: 1px solid #68999f;
  background: #b3d5d5;
  transform: rotate(-12deg);
  border-radius: 2px;
}
.paper-art i {
  transform: rotate(7deg);
  background:
    repeating-linear-gradient(0deg, transparent 0 4px, #94b5b94d 4px 5px),
    #fafcf8;
}
.paper-art b {
  position: absolute;
  top: 14px;
  left: 0;
  background: #347782;
  color: white;
  font: 700 9px Arial;
  padding: 2px 4px;
  transform: rotate(5deg);
}
.pic-art:before,
.pic-art i {
  content: "";
  position: absolute;
  inset: 6px 0 2px 0;
  background: #e1ba76;
  border: 1px solid #749684;
  transform: rotate(-12deg);
}
.pic-art i {
  transform: rotate(6deg);
  background:
    radial-gradient(circle at 70% 26%, #fff0b7 0 4px, transparent 5px),
    linear-gradient(140deg, transparent 48%, #799d83 49% 75%, #4e7163 76%),
    #a4cdba;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #9caaa3;
}
.type-art {
  font:
    700 39px/1 Georgia,
    serif;
  letter-spacing: -3px;
  transform: rotate(-6deg);
  text-shadow: 1px 2px #d3c09b;
}
.bead-art {
  border: 2px solid #b8a8d0;
  border-radius: 5px;
  background:
    radial-gradient(circle, #745a9b 0 2.9px, transparent 3.4px) 0 0/9px 9px,
    #fff9ff;
  transform: rotate(-7deg);
}
.erase-art:before {
  content: "";
  position: absolute;
  width: 40px;
  height: 21px;
  border: 1px solid #4b8f7a;
  border-radius: 5px;
  transform: rotate(-33deg);
  top: 9px;
  background: linear-gradient(90deg, #e9b4a3 0 42%, #8fbcb0 42% 100%);
}
.erase-art i {
  position: absolute;
  width: 30px;
  height: 2px;
  background: #89ab98;
  bottom: 0;
  left: 12px;
}
.bill-art {
  padding: 5px 0 0 8px;
  font: 700 24px Georgia;
  transform: rotate(5deg);
}
.bill-art:before {
  inset: 0 8px 0 0;
  z-index: -1;
  transform: none;
  border: 1px solid #bd9c89;
  background: repeating-linear-gradient(0deg, #fffaf4 0 4px, #e4cbbb 5px 6px);
}
.drop,
.empty {
  padding: 15px;
  text-align: center;
  color: var(--sub);
  font-size: 13px;
}
.drop {
  margin: 14px 0 32px;
  border: 1px dashed #bbcfc7;
  border-radius: 8px;
}
.drop.over {
  background: #d7eae4;
}
.subpage {
  margin: 28px 0;
}
.sub-title,
.dialog-heading,
.dialog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sub-title {
  margin: 12px 0 20px;
}
.sub-title h1 {
  font-size: 32px;
}
.sub-title small,
.backlink {
  font-size: 13px;
  color: var(--sub);
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.menu-grid a,
.info-card,
.guide-list,
.jobs,
#reserved {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.menu-grid a {
  padding: 20px;
  display: grid;
  gap: 9px;
}
.menu-grid i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: #e8f1ed;
  color: #306c60;
  border-radius: 6px;
  font: 22px Georgia;
}
.menu-grid span,
.guide-list p {
  font-size: 13px;
  color: var(--sub);
}
.guide-list details {
  padding: 16px 20px;
}
.guide-list details + details,
.job + .job {
  border-top: 1px solid var(--line);
}
.guide-list summary {
  font-weight: 600;
}
.guide-list p {
  margin-top: 10px;
  line-height: 1.75;
}
.info-card {
  padding: 22px;
  display: flow-root;
}
.device-photo {
  float: right;
  width: clamp(80px, 22%, 170px);
}
dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 18px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
dt {
  color: var(--sub);
}
dd {
  margin: 0;
}
.job {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
}
.job-id,
.job-file small {
  font-size: 12px;
  color: var(--sub);
}
.job-file {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.job-file strong {
  display: block;
  font-size: 14px;
}
.job-status {
  background: #edf1f0;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 12px;
}
.job-status.done {
  background: #e0f0e4;
  color: #316044;
}
.job-status.error,
.alert {
  background: #fff1dc;
  color: #784320;
}
#reserved {
  text-align: center;
  padding: 44px 15px;
  margin: 16px 0;
  display: grid;
  gap: 10px;
  justify-items: center;
}
#reserved p {
  font-size: 14px;
  color: var(--sub);
}
.reserved-art {
  font-size: 35px;
  color: #399383;
}
.textlink {
  color: #006c5c;
  font-size: 14px;
  text-decoration: underline;
}
.bottom-nav {
  display: none;
}
.secondary,
.page-controls button,
.toolbar button,
.mini {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 11px;
  font-size: 13px;
}
.page-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}
.page-controls button {
  padding: 1px 11px;
  font-size: 18px;
}
dialog {
  width: min(690px, calc(100vw - 24px));
  max-height: 92dvh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 24px 80px #0c192542;
  color: var(--ink);
}
dialog::backdrop {
  background: #14243a66;
}
.dialog-heading,
.dialog-foot {
  padding: 17px 23px;
}
.dialog-heading {
  border-bottom: 1px solid var(--line);
}
.icon {
  font-size: 24px;
  line-height: 1;
  width: 31px;
  height: 31px;
  border: 0;
  background: #eff2f5;
  border-radius: 50%;
}
.dialog-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  padding: 22px;
}
.preview-panel {
  min-width: 0;
  text-align: center;
}
.preview {
  height: 270px;
  display: grid;
  place-items: center;
  background: #edf0f4;
  border-radius: 6px;
  padding: 15px;
  font-size: 13px;
  color: var(--sub);
}
.preview img {
  max-height: 240px;
  max-width: 100%;
  object-fit: contain;
  box-shadow: 0 3px 12px #23364a24;
}
.preview img.gray {
  filter: grayscale(1);
}
.preview-panel small {
  display: block;
  margin-top: 8px;
}
.settings h3 {
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.settings p {
  font-size: 12px;
  color: var(--sub);
  margin: 4px 0 10px;
}
.settings label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin: 10px 0 5px;
}
.settings select,
.stepper {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  font-size: 14px;
}
.settings select {
  height: 35px;
  padding: 0 7px;
}
.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 112px;
  height: 32px;
}
.stepper button {
  background: transparent;
  border: 0;
  width: 32px;
  height: 100%;
}
.settings #paper-hint {
  margin-top: 12px;
}
.dialog-foot {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}
.primary {
  border: 0;
  background: var(--blue);
  color: white;
  padding: 10px 20px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 14px;
}
.alert {
  background: #fff0df;
  border: 1px solid #f0d4ab;
  color: #754218;
  border-radius: 7px;
  padding: 10px 13px;
  font-size: 13px;
  margin: 12px 0;
}
dialog .alert {
  margin: 0 22px 13px;
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #192c45;
  color: white;
  border-radius: 9px;
  padding: 12px 19px;
  z-index: 5;
  box-shadow: 0 6px 25px #17305025;
  font-size: 14px;
  max-width: 94vw;
}
.settings input,
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  font-size: 14px;
}
.dialog-foot button {
  min-height: 38px;
}
.dialog-heading h2 {
  font-size: 21px;
}
.settings {
  min-width: 0;
}
.dialog-body {
  align-items: start;
}
.settings #paper-hint {
  color: var(--sub);
}
.preview-panel small {
  font-size: 12px;
}
.page-controls small {
  margin: 0;
}
.dialog-heading,
.dialog-foot {
  position: sticky;
  background: white;
  z-index: 2;
}
.dialog-heading {
  top: 0;
}
.dialog-foot {
  bottom: 0;
}
.icon {
  display: grid;
  place-items: center;
}
.primary {
  background: #14675e;
}
.toolbar,
.actions {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}
#studio {
  width: min(770px, calc(100% - 24px));
}
#studio-body {
  padding: 18px 22px;
}
.field {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
}
.toolbar .field {
  flex: 1;
  min-width: 90px;
}
.field textarea {
  line-height: 1.65;
  resize: vertical;
}
.toolstack {
  display: grid;
  gap: 14px;
}
.toolnote {
  font-size: 13px;
  color: var(--sub);
  line-height: 1.55;
}
.filezone {
  width: 100%;
  border: 1px dashed #91b8ab;
  background: #f3f8f5;
  color: #235e51;
  border-radius: 8px;
  min-height: 46px;
  padding: 10px;
  font-weight: 600;
}
.strip {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  border: 1px solid var(--line);
  padding: 6px 11px;
  border-radius: 20px;
  background: white;
  font-size: 13px;
}
.chip.active,
.toolbar button.active,
.pattern.active,
.choice.active {
  background: #e0eee7;
  border-color: #5a9683;
  color: #155949;
}
.canvas-wrap {
  background: #e9efec;
  border-radius: 8px;
  padding: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.canvas-wrap canvas {
  display: block;
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  touch-action: none;
  background: white;
}
.pattern-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pattern,
.choice {
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px;
  font-size: 13px;
}
.pattern canvas {
  height: 52px;
  width: 52px;
  display: block;
  margin: 0 auto 4px;
}
.list-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 7px 0;
}
.list-item b {
  flex: 1;
  overflow-wrap: anywhere;
}
.toolstack input[type="range"] {
  padding: 0;
}
.mode-bar {
  display: flex;
  gap: 7px;
}
.choice {
  flex: 1;
}
.subtle {
  font-size: 12px;
  color: var(--sub);
}
.preview {
  height: 300px;
}
.preview img {
  max-height: 272px;
}
.error-line {
  color: #8b4521;
}
#studio-error {
  margin: 0 20px 12px;
}
@media (max-width: 740px) {
  .shell {
    width: calc(100% - 32px);
  }
  .head-inner {
    height: 56px;
    gap: 24px;
  }
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    min-height: 190px;
  }
  .hero-copy {
    padding: 24px;
  }
  .hero-art {
    left: 55%;
  }
  .hero h1 {
    font-size: 36px;
  }
  .menu-grid {
    grid-template-columns: 1fr 1fr;
  }
  .device-row {
    margin-left: 12px;
    margin-right: 12px;
  }
}
@media (max-width: 540px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }
  .shell {
    width: calc(100% - 24px);
  }
  .head-inner {
    height: 50px;
  }
  .brand {
    font-size: 18px;
  }
  .brand-mark {
    height: 27px;
    width: 27px;
  }
  .main-nav {
    display: none;
  }
  .system {
    font-size: 11px;
  }
  .hero {
    margin-top: 13px;
    min-height: 164px;
    border-radius: 13px;
  }
  .hero-copy {
    padding: 16px;
  }
  .hero h1 {
    font-size: clamp(23px, 6.8vw, 33px);
  }
  .hero-copy p {
    font-size: 11px;
    max-width: 48%;
    line-height: 1.5;
    margin: 6px 0 10px;
  }
  .hero-link {
    font-size: 11px;
    padding: 4px 8px;
  }
  .hero-art {
    left: 54%;
  }
  .hero-art img {
    width: 96%;
    height: auto;
    inset: 0;
  }
  .orbit {
    width: 95%;
    height: auto;
    aspect-ratio: 1;
  }
  .hero-paper {
    width: 45%;
    height: 55%;
  }
  .ink-strips {
    margin: 1px 0 7px;
  }
  .ink-strips i {
    width: 12px;
    height: 3px;
  }
  .device-row {
    margin: -9px 7px 0;
    padding: 9px 10px;
    gap: 8px;
  }
  .device-row b {
    font-size: 14px;
  }
  .device-icon {
    height: 30px;
    width: 30px;
  }
  .tabs {
    gap: 0;
    justify-content: space-around;
    margin: 8px 0 11px;
  }
  .tabs a {
    padding: 10px 9px 8px;
    font-size: 15px;
  }
  .tiles {
    gap: 9px;
  }
  .card {
    padding: 13px;
    min-height: 127px;
  }
  .card-text strong {
    font-size: 17px;
  }
  .card-text small {
    font-size: 11px;
    line-height: 1.45;
  }
  .art {
    transform: scale(0.86);
    transform-origin: left bottom;
    margin-bottom: 8px;
  }
  .arrow {
    right: 9px;
    top: 8px;
    font-size: 15px;
  }
  .drop {
    display: none;
  }
  .bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    justify-content: space-evenly;
    background: #fffffff5;
    border-top: 1px solid var(--line);
    padding: 6px 0 calc(5px + env(safe-area-inset-bottom));
  }
  .bottom-nav a {
    display: grid;
    justify-items: center;
    color: var(--sub);
    font-size: 10px;
    gap: 1px;
    min-width: 72px;
  }
  .bottom-nav i {
    font: 22px/1.1 Georgia;
  }
  .bottom-nav a.active {
    color: #087467;
    font-weight: 750;
  }
  .dialog-body {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 13px;
  }
  .dialog-heading,
  .dialog-foot {
    padding: 12px 15px;
  }
  .preview {
    height: 158px;
  }
  .preview img {
    max-height: 139px;
  }
  .settings {
    display: grid;
    grid-template-columns: 76px 1fr;
    align-items: center;
    gap: 5px;
  }
  .settings h3,
  .settings p {
    grid-column: 1/-1;
  }
  .settings label {
    margin: 0;
  }
  .dialog-heading h2 {
    font-size: 18px;
  }
  #studio-body {
    padding: 12px;
  }
  .canvas-wrap canvas {
    max-height: 235px;
  }
  .menu-grid {
    grid-template-columns: 1fr;
  }
  .sub-title h1 {
    font-size: 26px;
  }
  .job {
    gap: 7px;
    padding: 10px;
  }
  .card:hover {
    transform: none;
  }
}

body:not([data-auth="in"]) [data-authenticated] { display: none; }
.session-loading { padding: 40px 0; text-align: center; color: var(--sub); }
.login-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 840px;
  margin: clamp(35px, 12vh, 120px) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 12px 36px #243f3510;
}
.login-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 32px;
  color: white;
  background: #24554d;
}
.login-art h1 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.04em; }
.login-art p { margin-top: 10px; line-height: 1.6; color: #e0eee8; font-size: 14px; }
.login-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 260px;
  right: -42px;
  bottom: -45px;
  border-radius: 50%;
  background: #afcac0;
  box-shadow: 0 0 0 14px #ffffff12;
}
.login-art img {
  position: absolute;
  right: 2%;
  bottom: 0;
  height: 57%;
  max-width: 94%;
  object-fit: contain;
  filter: drop-shadow(0 9px 4px #15383036);
}
.account-form { display: grid; gap: 8px; align-content: start; }
.login-form { padding: clamp(26px, 4vw, 48px); }
.account-form h2, .panel-title { font-size: 21px; margin: 0 0 12px; }
.account-form label { font-weight: 600; font-size: 14px; }
.account-form input {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  border: 1px solid #a7bbb6;
  border-radius: 7px;
  padding: 8px 11px;
  background: #fff;
  font-size: 16px;
}
.account-form label:not(:first-of-type) { margin-top: 9px; }
.account-form small, .account-name, .user-row small { color: var(--sub); }
.account-form small { font-size: 12px; line-height: 1.55; }
.account-form .primary { min-height: 43px; margin-top: 12px; }
.login-form > small { text-align: center; margin-top: 4px; }
.form-error { color: #96370e; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.form-success { color: #186455; font-size: 13px; line-height: 1.55; }
.account-name { margin-top: 5px; font-size: 14px; overflow-wrap: anywhere; }
.user-layout { display: grid; grid-template-columns: minmax(240px, .85fr) minmax(280px, 1.5fr); gap: 20px; align-items: start; }
.admin-card { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.user-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 12px;
  padding: 13px 17px;
}
.user-row + .user-row { border-top: 1px solid var(--line); }
.user-row strong { overflow-wrap: anywhere; font-size: 15px; }
.user-row small { grid-column: 1; font-size: 12px; }
.user-role { grid-column: 2; grid-row: 1 / span 2; color: var(--sub); font-size: 13px; }
#admin-jobs .job-file small, .order-detail { display: block; line-height: 1.6; }
#admin-view .form-error:not([hidden]) { padding: 8px 0; }
.more-orders { display: block; min-height: 42px; margin: 14px auto; }
@media (max-width: 660px) {
  .login-panel { grid-template-columns: minmax(0, 1fr); max-width: 440px; margin: 22px auto; }
  .login-art { min-height: 126px; padding: 20px; }
  .login-art h1 { font-size: 25px; }
  .login-art p { font-size: 12px; width: 57%; }
  .login-art img { right: -2%; width: 44%; height: 81%; }
  .login-art::before { width: 140px; height: 140px; bottom: -36px; right: -31px; }
  .login-form { padding: 23px; }
  .user-layout { grid-template-columns: minmax(0, 1fr); }
  .admin-card { padding: 17px; }
}

.pricing-form { max-width: 460px; }
.price-field {
  display: flex;
  align-items: center;
  border: 1px solid #a7bbb6;
  border-radius: 7px;
  padding-left: 12px;
}
.price-field span { color: var(--sub); font-size: 14px; }
.price-field input { border: 0; }
.checkout { max-width: 610px; margin: 28px auto; }
.back-button { border: 0; padding: 6px 0; background: transparent; min-height: 36px; }
.checkout-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
}
.checkout-total { padding: 22px 26px; background: #20534b; color: white; position: relative; }
.checkout-total span,.checkout-total small { display: block; color: #dcece6; font-size: 13px; }
.checkout-total strong { display: block; margin: 3px 0; font-size: clamp(30px,6vw,42px); letter-spacing: -.03em; }
.checkout-body { padding: 22px 26px; }
.checkout-body h2 { font-size: 19px; overflow-wrap: anywhere; }
.checkout-body dl { margin: 16px 0; grid-template-columns: max-content minmax(0,1fr); }
.checkout-body dd { text-align: right; font-weight: 550; }
.quote-expiry { margin: 0 0 16px; font-size: 13px; line-height: 1.55; color: var(--sub); }
#payment-confirm { width: 100%; min-height: 44px; }
.checkout-body .form-error { margin-bottom: 8px; }
.print-receipt { margin: 16px 0; }
.print-progress { padding: 24px; text-align: center; background: #e8f1ed; }
.print-progress img { display: block; margin: 0 auto 12px; max-width: 100%; object-fit: contain; }
.print-progress h1 { font-size: clamp(26px, 5vw, 34px); }
.print-progress p { margin-top: 8px; color: var(--sub); font-size: 14px; }
.print-receipt .checkout-body dl { margin-bottom: 0; }
.print-receipt .form-error { margin: 16px 24px; }
.print-home { display: inline-block; padding: 8px 0; }
a.job:hover, a.job:focus-visible { background: #edf4f1; }
@media (max-width: 540px) {
  .checkout { margin-top: 12px; }
  .checkout-total,.checkout-body { padding: 18px; }
  .admin-tabs { justify-content: flex-start; gap: 17px; }
}
