:root {
  color-scheme: light;
  --ink: #171b20;
  --muted: #5b6470;
  --paper: #f4ead5;
  --paper-deep: #dfcfad;
  --panel: #fff8e8;
  --line: #bcae93;
  --navy: #0e3150;
  --navy-2: #174b75;
  --navy-3: #082337;
  --blue: #1383c8;
  --orange: #f26b21;
  --orange-deep: #bc3d12;
  --teal: #20b9c8;
  --yellow: #f8b72c;
  --green: #77bd34;
  --cream: #fff4dc;
  --green-soft: #dcebc0;
  --blue-soft: #d7eaf2;
  --rose-soft: #f4d7c5;
  --gold: #d88a22;
  --shadow: 0 18px 34px rgba(7, 20, 32, 0.28);
  --shadow-soft: 0 8px 18px rgba(47, 34, 18, 0.14);
  --inset-line: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.12);
  --radius: 8px;
  font-family: "Trebuchet MS", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(rgba(4, 15, 24, 0.26), rgba(4, 15, 24, 0.42)),
    url("./assets/painters-pal-wallpaper.png") center / 520px auto repeat,
    #07192a;
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.72;
  background:
    radial-gradient(circle at 50% 16%, rgba(31, 139, 202, 0.22), transparent 34%),
    linear-gradient(90deg, rgba(4, 15, 24, 0.48), transparent 28%, transparent 72%, rgba(4, 15, 24, 0.48));
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 18%, transparent 78%, rgba(0, 0, 0, 0.28)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 5px);
}

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

button {
  border: 0;
  padding: 0;
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 122, 28, 0.26), transparent 34%),
    radial-gradient(circle at 50% 72%, rgba(31, 180, 255, 0.2), transparent 38%),
    #07192a;
  transition: opacity 520ms ease, visibility 520ms ease;
}

.splash-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-screen img {
  width: min(100vw, 430px);
  height: auto;
  max-height: calc(100svh - 88px);
  object-fit: contain;
}

.splash-loader {
  position: absolute;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(280px, calc(100vw - 48px));
  padding: 14px 16px;
  transform: translateX(-50%);
  border: 3px solid rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  background: rgba(7, 20, 32, 0.72);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
}

.splash-loader span {
  width: 42px;
  height: 42px;
  border: 5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ff7a1c;
  border-right-color: #1fb4ff;
  border-radius: 50%;
  animation: splash-spin 850ms linear infinite;
}

.splash-loader p {
  margin: 0;
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

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

.app-shell {
  width: min(430px, 100vw);
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(13, 49, 80, 0.96) 0 154px, transparent 154px),
    radial-gradient(circle at 8% 18%, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #123a5d 0%, #0e3150 42%, #0a263d 100%);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12), 0 30px 80px rgba(0, 0, 0, 0.42);
}

.app-shell::before,
.app-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0.25;
}

.app-shell::before {
  inset: 132px 0 0;
  background:
    linear-gradient(105deg, transparent 0 26px, rgba(255, 255, 255, 0.12) 26px 34px, transparent 34px 74px),
    linear-gradient(18deg, transparent 0 58px, rgba(255, 255, 255, 0.08) 58px 66px, transparent 66px 120px);
}

.app-shell::after {
  right: -26px;
  top: 104px;
  width: 120px;
  height: 60px;
  border: 12px solid rgba(242, 107, 33, 0.55);
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(-18deg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  min-height: 220px;
  padding: calc(8px + env(safe-area-inset-top)) 0 42px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(19, 65, 103, 0.94), rgba(8, 35, 55, 0.94)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 6px);
  border-bottom: 4px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.26);
}

.brand-lockup {
  display: flex;
  align-items: center;
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  margin-bottom: -30px;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 180px;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  pointer-events: none;
}

.screen-heading {
  grid-column: 1 / -1;
  position: relative;
  z-index: 1;
  margin: 0 0 0 14px;
}

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

h1 {
  margin-bottom: 0;
  color: #fff;
  font-size: 23px;
  line-height: 1.05;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.28);
}

h2 {
  margin-bottom: 14px;
  font-size: 21px;
}

h3 {
  margin-bottom: 4px;
  font-size: 18px;
}

.screen {
  position: relative;
  z-index: 1;
  padding: 18px 14px 112px;
}

.app-shell:not(.pro-mode):not(.plus-mode) .screen {
  padding-bottom: 190px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 16px;
  margin-bottom: 14px;
  border: 4px solid rgba(255, 255, 255, 0.86);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 248, 232, 0.98), rgba(238, 222, 189, 0.98)),
    var(--panel);
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(13, 49, 80, 0.18);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 42px;
  background: linear-gradient(180deg, #174b75, #0e3150);
  border-bottom: 3px solid rgba(13, 49, 80, 0.22);
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 12px;
  width: 68px;
  height: 26px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #4bc7d7 0 33%, #f8b72c 33% 66%, #f26b21 66%);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.14);
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.hero-panel h2 {
  min-height: 28px;
  margin-bottom: 11px;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.34);
}

.home-panel {
  border-color: rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0 42px, transparent 42px),
    linear-gradient(180deg, #fff8e8 0%, #ead8b5 100%);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.3), inset 0 0 0 2px rgba(13, 49, 80, 0.18);
}

.home-panel::before {
  inset: 0 0 auto 0;
  height: 44px;
  background:
    linear-gradient(90deg, #1aa7d9 0 20%, #3ec7d4 20% 34%, #f9c450 34% 50%, #ed9f44 50% 65%, #cc684d 65% 80%, #a85245 80% 100%);
  border-bottom: 3px solid rgba(13, 49, 80, 0.18);
  filter: saturate(1.08);
}

.home-panel::after {
  top: 14px;
  right: 18px;
  width: 88px;
  height: 30px;
  border-radius: 18px;
  background: linear-gradient(90deg, #3ec7d4 0 34%, #f9c450 34% 66%, #f26b21 66%);
  border-color: rgba(255, 255, 255, 0.92);
}

.home-panel h2 {
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.36);
}

.home-panel .hero-copy {
  color: #473f35;
  text-shadow: none;
}

.home-panel .tag {
  box-shadow: var(--inset-line), 0 3px 0 rgba(0, 0, 0, 0.2);
}

.hero-row,
.row,
.card-header,
.list-row,
.split-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.split-row h2 {
  color: #fff;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.28);
}

.hero-copy {
  color: #473f35;
  font-size: 14px;
  line-height: 1.45;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.stat {
  position: relative;
  min-height: 66px;
  padding: 9px 9px 9px 42px;
  border: 2px solid rgba(13, 49, 80, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdf5, #efe1c4);
  box-shadow: var(--inset-line);
}

.stat .stat-picture {
  position: absolute;
  left: 10px;
  top: 50%;
  display: block;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  color: var(--navy);
  font-size: 20px;
  line-height: 1;
  opacity: 0.9;
  text-shadow: none;
}

.stat-house::before {
  content: "🏠";
}

.stat-brush::before {
  content: "🖌";
}

.stat-pot::before {
  content: "🪣";
}

.stat-clients::before {
  content: "👥";
}

.stat-jobs::before {
  content: "▣";
}

.stat strong {
  display: block;
  color: var(--navy);
  font-size: 20px;
}

.stat span {
  color: #6a5639;
  font-size: 11px;
  font-weight: 900;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  margin-bottom: 12px;
}

.search,
.input,
.select,
.textarea {
  width: 100%;
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 13px;
  background: linear-gradient(180deg, #fffaf0, #eadfc9);
  color: var(--ink);
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(13, 49, 80, 0.12), 0 4px 0 rgba(0, 0, 0, 0.12);
}

.search:focus,
.input:focus,
.select:focus,
.textarea:focus {
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(32, 185, 200, 0.28), inset 0 0 0 2px var(--blue);
}

.search,
.input,
.select {
  height: 46px;
  padding: 0 13px;
}

.textarea {
  min-height: 88px;
  padding: 12px;
  resize: vertical;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 3px solid rgba(255, 255, 255, 0.78);
  border-radius: 12px;
  background: linear-gradient(180deg, #2395d2, #07528a);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.28);
  box-shadow: var(--inset-line), 0 5px 0 rgba(4, 24, 40, 0.5);
}

.button.secondary {
  background: linear-gradient(180deg, #fffaf0, #e7d8ba);
  color: var(--navy);
  border-color: rgba(255, 255, 255, 0.86);
  text-shadow: none;
}

.button.warning {
  background: linear-gradient(180deg, #ff8a35, var(--orange-deep));
}

#set-free {
  border-color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(180deg, #2395d2, #07528a);
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.28);
}

#set-plus,
#activate-plus {
  border-color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(180deg, #f8fafc, #aeb8c4 56%, #6b7787);
  color: #111820;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.44);
}

#set-pro,
#activate-pro {
  border-color: rgba(255, 232, 163, 0.9);
  background: linear-gradient(180deg, #ffe8a3, #d69a2e 54%, #7e530c);
  color: #1a1203;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.38);
}

.button.small {
  min-height: 36px;
  padding: 0 11px;
  font-size: 13px;
}

.toolbar .button,
#upgrade-now,
#activate-pro,
#share-job,
.modal .button[type="submit"] {
  background: linear-gradient(180deg, #ff8a35, var(--orange-deep));
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(180deg, #fffaf0, #d9c39d);
  color: var(--navy);
  border: 3px solid rgba(255, 255, 255, 0.72);
  cursor: pointer;
  box-shadow: var(--inset-line), 0 5px 0 rgba(4, 24, 40, 0.45);
}

.topbar .icon-button {
  position: absolute;
  right: 14px;
  top: 174px;
  z-index: 4;
  transform: translateY(-50%);
}

.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(180deg, #23c8da, #0b6da0);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.34);
}

.card {
  position: relative;
  padding: 15px;
  margin-bottom: 11px;
  border: 4px solid rgba(255, 255, 255, 0.82);
  border-radius: 17px;
  background:
    linear-gradient(180deg, rgba(255, 249, 235, 0.98), rgba(234, 219, 191, 0.98));
  box-shadow: var(--shadow-soft), inset 0 0 0 2px rgba(13, 49, 80, 0.12);
}

.card::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 8px;
  height: 2px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
}

.card.is-tappable {
  cursor: pointer;
}

.card.is-tappable:active,
.button:active,
.tab:active {
  transform: translateY(2px);
  box-shadow: var(--inset-line), 0 2px 0 rgba(4, 24, 40, 0.5);
}

.subtle {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.tag-row.compact {
  gap: 5px;
  margin-top: 8px;
}

.subscription-options {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.subscription-options .tag {
  margin-bottom: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 9px;
  border-radius: 9px;
  background: linear-gradient(180deg, #dff1c3, #bcd68b);
  color: #314f14;
  font-size: 12px;
  font-weight: 900;
  border: 2px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--inset-line);
}

.tag.blue {
  background: linear-gradient(180deg, #d8eef8, #9dccdf);
  color: #0a4164;
}

.tag.rose {
  background: linear-gradient(180deg, #f9dccb, #e7b089);
  color: #653415;
}

.tag.gold {
  background: linear-gradient(180deg, #ffe7a1, #e5aa38);
  color: #5d3906;
}

.tag.silver {
  background: linear-gradient(180deg, #f4f7fb, #aeb8c4);
  color: #1f2933;
}

.swatch {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 4px solid rgba(255, 255, 255, 0.86);
  border-radius: 10px;
  box-shadow: inset 0 -11px 0 rgba(255, 244, 212, 0.62), 0 4px 0 rgba(7, 20, 32, 0.25);
  transform: rotate(-1deg);
}

.paint-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.paint-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 2px solid rgba(255, 255, 255, 0.66);
  border-radius: 13px;
  background: linear-gradient(180deg, #174b75, #0a2c47);
  color: #fff;
  box-shadow: var(--inset-line);
}

.inventory-row {
  grid-template-columns: 40px minmax(0, 1fr);
}

.paint-row strong,
.paint-row span {
  color: #fff;
}

.paint-row .subtle {
  color: #fff;
}

.paint-row .swatch {
  width: 40px;
  height: 40px;
  border-width: 3px;
  border-radius: 9px;
}

.voucher-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.voucher-code {
  min-width: 82px;
  padding: 10px 12px;
  border: 3px dashed rgba(13, 49, 80, 0.28);
  border-radius: 13px;
  background: linear-gradient(180deg, #fffaf0, #e8d1a8);
  color: var(--navy);
  font-size: 17px;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0;
  box-shadow: var(--inset-line);
}

.export-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.empty {
  padding: 30px 18px;
  text-align: center;
  border: 3px dashed rgba(255, 255, 255, 0.72);
  border-radius: 17px;
  background: rgba(255, 244, 220, 0.76);
  color: var(--ink);
}

.empty strong {
  display: block;
  margin-bottom: 6px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 4px;
  border-radius: 13px;
  background: #d1bc96;
}

.segment {
  height: 36px;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.segment.is-active {
  background: #fff8e8;
  color: var(--ink);
  box-shadow: var(--inset-line);
}

.pro-lock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #714407;
  font-size: 12px;
  font-weight: 900;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 6;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  width: min(430px, 100vw);
  padding: 9px 8px calc(9px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, rgba(23, 75, 117, 0.96), rgba(8, 35, 55, 0.98));
  border-top: 4px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.3);
}

.ad-strip {
  position: fixed;
  left: 50%;
  bottom: calc(83px + env(safe-area-inset-bottom));
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: min(402px, calc(100vw - 28px));
  min-height: 68px;
  padding: 10px 12px;
  transform: translateX(-50%);
  border: 3px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 244, 220, 0.94)),
    linear-gradient(90deg, rgba(32, 185, 200, 0.2), rgba(248, 183, 44, 0.2), rgba(242, 107, 33, 0.2));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32), inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.ad-strip span {
  display: block;
  margin-bottom: 1px;
  color: #8a520d;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.ad-strip strong {
  display: block;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.05;
}

.ad-strip p {
  margin: 2px 0 0;
  color: #52606b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.ad-cta {
  flex: 0 0 auto;
  min-width: 58px;
  min-height: 42px;
  border-radius: 13px;
  background: linear-gradient(180deg, #ff8a35, var(--orange-deep));
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: var(--inset-line), 0 4px 0 rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.app-shell.pro-mode .ad-strip,
.app-shell.plus-mode .ad-strip {
  display: none;
}

.tab.is-hidden {
  display: none;
}

.tab {
  display: grid;
  gap: 3px;
  place-items: center;
  min-height: 59px;
  border-radius: 13px;
  background: transparent;
  color: #cbd9df;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.tab-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 18px;
  line-height: 1;
}

.tab-icon[class*="icon-"]::before,
.tab-icon[class*="icon-"]::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
  color: currentColor;
}

.icon-home::before {
  left: 8px;
  top: 12px;
  width: 13px;
  height: 10px;
  border: 2px solid currentColor;
  border-top: 0;
}

.icon-home::after {
  left: 8px;
  top: 7px;
  width: 13px;
  height: 13px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}

.icon-room::before {
  left: 9px;
  top: 6px;
  width: 12px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 6px 6px 2px 2px;
}

.icon-room::after {
  left: 17px;
  top: 15px;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.icon-item::before {
  left: 6px;
  top: 7px;
  width: 12px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 3px 3px 2px 2px;
  transform: rotate(-28deg);
}

.icon-item::after {
  left: 14px;
  top: 13px;
  width: 3px;
  height: 12px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-28deg);
}

.icon-paint::before {
  left: 7px;
  top: 11px;
  width: 15px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 2px 2px 6px 6px;
}

.icon-paint::after {
  left: 9px;
  top: 7px;
  width: 11px;
  height: 5px;
  border: 2px solid currentColor;
  border-radius: 999px 999px 2px 2px;
}

.icon-tools::before {
  left: 6px;
  top: 8px;
  width: 15px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.icon-tools::after {
  left: 15px;
  top: 13px;
  width: 8px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-radius: 0 0 3px 0;
}

.icon-vouchers::before {
  left: 6px;
  top: 9px;
  width: 17px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 3px;
  transform: rotate(-10deg);
}

.icon-vouchers::after {
  left: 13px;
  top: 10px;
  width: 2px;
  height: 10px;
  border-left: 2px dashed currentColor;
  transform: rotate(-10deg);
}

.icon-jobs::before {
  left: 8px;
  top: 7px;
  width: 13px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.icon-jobs::after {
  left: 11px;
  top: 11px;
  width: 8px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  box-shadow: 0 4px 0 -1px currentColor;
}

.icon-clients::before {
  left: 10px;
  top: 7px;
  width: 9px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-clients::after {
  left: 7px;
  top: 17px;
  width: 15px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.tab.is-active {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 138, 53, 0.95), rgba(188, 61, 18, 0.95));
  box-shadow: var(--inset-line), 0 4px 0 rgba(0, 0, 0, 0.26);
}

.tab.is-active .tab-icon {
  background: rgba(255, 255, 255, 0.22);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.photo-tile {
  aspect-ratio: 1;
  border: 4px solid rgba(255, 255, 255, 0.82);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(255, 255, 255, 0.18) 12px 16px),
    var(--tile);
  box-shadow: 0 4px 0 rgba(7, 20, 32, 0.22);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  align-items: end;
  background: rgba(4, 15, 24, 0.68);
}

.modal {
  width: min(430px, 100vw);
  max-height: 88vh;
  margin: 0 auto;
  overflow: auto;
  padding: 16px;
  border: 4px solid rgba(255, 255, 255, 0.78);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, #fff8e8, #ead8b5);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.38), inset 0 0 0 2px rgba(13, 49, 80, 0.12);
}

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

.modal-header h2 {
  margin: 0;
}

.danger-zone {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

@media (min-width: 720px) {
  body {
    padding: 24px 0;
  }

  .app-shell {
    min-height: calc(100vh - 48px);
    border-radius: 30px;
  }

  .tabbar {
    bottom: 24px;
    border-radius: 0 0 30px 30px;
  }

  .ad-strip {
    bottom: calc(107px + env(safe-area-inset-bottom));
  }

  .modal {
    margin-bottom: 24px;
    border-radius: 24px;
    border-bottom: 4px solid rgba(255, 255, 255, 0.78);
  }
}

.app-shell.pro-mode {
  --ink: #f8f1dc;
  --muted: #b9ad91;
  --panel: #141414;
  --line: #5b4a22;
  --shadow: 0 20px 42px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.45);
  background:
    radial-gradient(circle at 50% 0%, rgba(214, 154, 46, 0.2), transparent 34%),
    linear-gradient(180deg, #050505 0%, #111 48%, #030303 100%);
  box-shadow: 0 0 0 3px rgba(236, 196, 91, 0.28), 0 30px 90px rgba(0, 0, 0, 0.7);
}

.app-shell.pro-mode::before {
  opacity: 0.18;
  background:
    linear-gradient(105deg, transparent 0 26px, rgba(236, 196, 91, 0.12) 26px 34px, transparent 34px 74px),
    linear-gradient(18deg, transparent 0 58px, rgba(255, 255, 255, 0.06) 58px 66px, transparent 66px 120px);
}

.app-shell.pro-mode::after {
  border-color: rgba(236, 196, 91, 0.42);
  border-left-color: transparent;
}

.app-shell.pro-mode .topbar {
  background:
    linear-gradient(180deg, rgba(15, 15, 15, 0.98), rgba(0, 0, 0, 0.98)),
    repeating-linear-gradient(45deg, rgba(236, 196, 91, 0.08) 0 1px, transparent 1px 7px);
  border-bottom-color: rgba(236, 196, 91, 0.86);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.56);
}

.app-shell.pro-mode h1 {
  color: #ffe8a3;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.55);
}

.app-shell.pro-mode .hero-panel,
.app-shell.pro-mode .card,
.app-shell.pro-mode .modal {
  border-color: rgba(236, 196, 91, 0.72);
  background:
    linear-gradient(90deg, rgba(32, 185, 200, 0.22), rgba(248, 183, 44, 0.16), rgba(242, 107, 33, 0.18)) 0 0 / 100% 5px no-repeat,
    linear-gradient(180deg, rgba(33, 33, 33, 0.98), rgba(9, 9, 9, 0.98));
  color: #f8f1dc;
  box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(255, 232, 163, 0.2);
}

.app-shell.pro-mode .hero-panel::before {
  background: linear-gradient(180deg, #3a2b0d, #080808);
  border-bottom-color: rgba(236, 196, 91, 0.45);
}

.app-shell.pro-mode .hero-panel::after {
  background: linear-gradient(90deg, #fff3b0 0 35%, #d69a2e 35% 70%, #75510d 70%);
  border-color: rgba(255, 232, 163, 0.9);
}

.app-shell.pro-mode .hero-copy,
.app-shell.pro-mode .subtle {
  color: #cfc3a5;
}

.app-shell.pro-mode .stat,
.app-shell.pro-mode .paint-row,
.app-shell.pro-mode .empty {
  border-color: rgba(236, 196, 91, 0.45);
  background: linear-gradient(180deg, #222, #0f0f0f);
  color: #f8f1dc;
}

.app-shell.pro-mode .stat strong {
  color: #ffe8a3;
}

.app-shell.pro-mode .stat span {
  color: #c1a75c;
}

.app-shell.pro-mode .search,
.app-shell.pro-mode .input,
.app-shell.pro-mode .select,
.app-shell.pro-mode .textarea {
  border-color: rgba(236, 196, 91, 0.62);
  background: linear-gradient(180deg, #222, #0c0c0c);
  color: #f8f1dc;
  box-shadow: inset 0 0 0 1px rgba(255, 232, 163, 0.16), 0 4px 0 rgba(0, 0, 0, 0.55);
}

.app-shell.pro-mode .search::placeholder,
.app-shell.pro-mode .input::placeholder,
.app-shell.pro-mode .textarea::placeholder {
  color: #988a69;
}

.app-shell.pro-mode .search:focus,
.app-shell.pro-mode .input:focus,
.app-shell.pro-mode .select:focus,
.app-shell.pro-mode .textarea:focus {
  box-shadow: 0 0 0 4px rgba(236, 196, 91, 0.2), inset 0 0 0 2px #d69a2e;
}

.app-shell.pro-mode .button,
.app-shell.pro-mode .toolbar .button,
.app-shell.pro-mode #upgrade-now,
.app-shell.pro-mode #activate-pro,
.app-shell.pro-mode #share-job,
.app-shell.pro-mode .modal .button[type="submit"] {
  border-color: rgba(255, 232, 163, 0.86);
  background: linear-gradient(180deg, #ffe8a3, #d69a2e 54%, #7e530c);
  color: #1a1203;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.38);
  box-shadow: var(--inset-line), 0 5px 0 rgba(0, 0, 0, 0.68);
}

.app-shell.pro-mode .button.secondary,
.app-shell.pro-mode .icon-button {
  background: linear-gradient(180deg, #2a2a2a, #0d0d0d);
  color: #ffe8a3;
  border-color: rgba(236, 196, 91, 0.66);
}

.app-shell.pro-mode .button.warning {
  background: linear-gradient(180deg, #ff754d, #9b2415);
  color: #fff;
}

.app-shell.pro-mode .avatar {
  background: linear-gradient(180deg, #ffe8a3, #b97913);
  color: #1a1203;
  text-shadow: none;
}

.app-shell.pro-mode .tag {
  background: linear-gradient(180deg, #3a321d, #17130a);
  color: #ffe8a3;
  border-color: rgba(236, 196, 91, 0.48);
}

.app-shell.pro-mode .tag.blue {
  background: linear-gradient(180deg, #d8eef8, #9dccdf);
  color: #0a4164;
}

.app-shell.pro-mode .tag.rose {
  background: linear-gradient(180deg, #f9dccb, #e7b089);
  color: #653415;
}

.app-shell.pro-mode .tag.gold {
  background: linear-gradient(180deg, #ffe8a3, #b97913);
  color: #1a1203;
}

.app-shell.pro-mode .tag.silver {
  background: linear-gradient(180deg, #f4f7fb, #aeb8c4);
  color: #1f2933;
}

.app-shell.pro-mode .swatch,
.app-shell.pro-mode .photo-tile {
  border-color: rgba(236, 196, 91, 0.72);
  box-shadow: inset 0 -11px 0 rgba(255, 232, 163, 0.2), 0 4px 0 rgba(0, 0, 0, 0.55);
}

.app-shell.pro-mode .field label {
  color: #ffe8a3;
}

.app-shell.pro-mode .tabbar {
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.98), rgba(0, 0, 0, 0.98));
  border-top-color: rgba(236, 196, 91, 0.82);
}

.app-shell.pro-mode .tab {
  color: #a89b7b;
}

.app-shell.pro-mode .tab-icon {
  background: rgba(236, 196, 91, 0.12);
}

.app-shell.pro-mode .tab[data-view="home"] {
  min-height: 64px;
  margin-top: -4px;
  border-radius: 15px;
  font-size: 11px;
}

.app-shell.pro-mode .tab.is-active {
  color: #1a1203;
  background: linear-gradient(180deg, #ffe8a3, #d69a2e);
}

.app-shell.plus-mode {
  --ink: #f5f7fa;
  --muted: #c5ced8;
  --panel: #171b20;
  --line: #687485;
  --shadow: 0 20px 42px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.42);
  background:
    radial-gradient(circle at 50% 0%, rgba(198, 210, 224, 0.22), transparent 34%),
    linear-gradient(180deg, #07090c 0%, #171b20 48%, #05070a 100%);
  box-shadow: 0 0 0 3px rgba(198, 210, 224, 0.32), 0 30px 90px rgba(0, 0, 0, 0.62);
}

.app-shell.plus-mode::before {
  opacity: 0.18;
  background:
    linear-gradient(105deg, transparent 0 26px, rgba(226, 232, 240, 0.13) 26px 34px, transparent 34px 74px),
    linear-gradient(18deg, transparent 0 58px, rgba(255, 255, 255, 0.07) 58px 66px, transparent 66px 120px);
}

.app-shell.plus-mode::after {
  border-color: rgba(198, 210, 224, 0.42);
  border-left-color: transparent;
}

.app-shell.plus-mode .topbar {
  background:
    linear-gradient(180deg, rgba(25, 29, 35, 0.98), rgba(7, 9, 12, 0.98)),
    repeating-linear-gradient(45deg, rgba(226, 232, 240, 0.08) 0 1px, transparent 1px 7px);
  border-bottom-color: rgba(198, 210, 224, 0.86);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.app-shell.plus-mode h1 {
  color: #eef3f8;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.55);
}

.app-shell.plus-mode .hero-panel,
.app-shell.plus-mode .card,
.app-shell.plus-mode .modal {
  border-color: rgba(198, 210, 224, 0.74);
  background:
    linear-gradient(90deg, rgba(32, 185, 200, 0.22), rgba(248, 183, 44, 0.15), rgba(242, 107, 33, 0.16)) 0 0 / 100% 5px no-repeat,
    linear-gradient(180deg, rgba(39, 45, 54, 0.98), rgba(12, 15, 19, 0.98));
  color: #f5f7fa;
  box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(226, 232, 240, 0.22);
}

.app-shell.plus-mode .hero-panel::before {
  background: linear-gradient(180deg, #5f6b79, #11151a);
  border-bottom-color: rgba(198, 210, 224, 0.45);
}

.app-shell.plus-mode .hero-panel::after {
  background: linear-gradient(90deg, #f8fafc 0 35%, #b6c0cc 35% 70%, #657181 70%);
  border-color: rgba(248, 250, 252, 0.9);
}

.app-shell.plus-mode .hero-copy,
.app-shell.plus-mode .subtle {
  color: #cbd5df;
}

.app-shell.plus-mode .stat,
.app-shell.plus-mode .paint-row,
.app-shell.plus-mode .empty {
  border-color: rgba(198, 210, 224, 0.48);
  background: linear-gradient(180deg, #2a3038, #101419);
  color: #f5f7fa;
}

.app-shell.plus-mode .stat strong {
  color: #f8fafc;
}

.app-shell.plus-mode .stat span {
  color: #b6c0cc;
}

.app-shell.plus-mode .search,
.app-shell.plus-mode .input,
.app-shell.plus-mode .select,
.app-shell.plus-mode .textarea {
  border-color: rgba(198, 210, 224, 0.68);
  background: linear-gradient(180deg, #2a3038, #101419);
  color: #f5f7fa;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.18), 0 4px 0 rgba(0, 0, 0, 0.55);
}

.app-shell.plus-mode .search::placeholder,
.app-shell.plus-mode .input::placeholder,
.app-shell.plus-mode .textarea::placeholder {
  color: #9ca8b5;
}

.app-shell.plus-mode .button,
.app-shell.plus-mode .toolbar .button,
.app-shell.plus-mode #activate-plus,
.app-shell.plus-mode .modal .button[type="submit"] {
  border-color: rgba(248, 250, 252, 0.88);
  background: linear-gradient(180deg, #f8fafc, #b6c0cc 55%, #6b7787);
  color: #111820;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
  box-shadow: var(--inset-line), 0 5px 0 rgba(0, 0, 0, 0.62);
}

.app-shell.plus-mode .button.secondary,
.app-shell.plus-mode .icon-button {
  background: linear-gradient(180deg, #2f363f, #11161c);
  color: #eef3f8;
  border-color: rgba(198, 210, 224, 0.66);
}

.app-shell.plus-mode .avatar {
  background: linear-gradient(180deg, #f8fafc, #9ca8b5);
  color: #111820;
  text-shadow: none;
}

.app-shell.plus-mode .tag {
  background: linear-gradient(180deg, #313944, #151a20);
  color: #eef3f8;
  border-color: rgba(198, 210, 224, 0.5);
}

.app-shell.plus-mode .tag.blue {
  background: linear-gradient(180deg, #d8eef8, #9dccdf);
  color: #0a4164;
}

.app-shell.plus-mode .tag.rose {
  background: linear-gradient(180deg, #f9dccb, #e7b089);
  color: #653415;
}

.app-shell.plus-mode .tag.silver {
  background: linear-gradient(180deg, #f8fafc, #aeb8c4);
  color: #111820;
}

.app-shell.plus-mode .tag.gold {
  background: linear-gradient(180deg, #ffe8a3, #b97913);
  color: #1a1203;
}

.app-shell.plus-mode .field label {
  color: #eef3f8;
}

.app-shell.plus-mode .tabbar {
  background: linear-gradient(180deg, rgba(25, 29, 35, 0.98), rgba(7, 9, 12, 0.98));
  border-top-color: rgba(198, 210, 224, 0.82);
}

.app-shell.plus-mode .tab {
  color: #c5ced8;
}

.app-shell.plus-mode .tab-icon {
  background: rgba(226, 232, 240, 0.12);
}

.app-shell.plus-mode .tab.is-active {
  color: #111820;
  background: linear-gradient(180deg, #f8fafc, #aeb8c4);
}

.app-shell.pro-mode .hero-panel,
.app-shell.pro-mode .card,
.app-shell.pro-mode .modal,
.app-shell.plus-mode .hero-panel,
.app-shell.plus-mode .card,
.app-shell.plus-mode .modal {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0 42px, transparent 42px),
    linear-gradient(180deg, rgba(255, 249, 235, 0.98), rgba(234, 219, 191, 0.98));
  color: #12243a;
}

.app-shell.pro-mode .hero-panel,
.app-shell.pro-mode .card,
.app-shell.pro-mode .modal {
  box-shadow: var(--shadow-soft), inset 0 0 0 2px rgba(236, 196, 91, 0.22);
}

.app-shell.plus-mode .hero-panel,
.app-shell.plus-mode .card,
.app-shell.plus-mode .modal {
  box-shadow: var(--shadow-soft), inset 0 0 0 2px rgba(198, 210, 224, 0.28);
}

.app-shell.pro-mode .card h2,
.app-shell.pro-mode .card h3,
.app-shell.pro-mode .modal h2,
.app-shell.pro-mode .modal h3,
.app-shell.plus-mode .card h2,
.app-shell.plus-mode .card h3,
.app-shell.plus-mode .modal h2,
.app-shell.plus-mode .modal h3 {
  color: #12243a;
}

.app-shell.pro-mode .hero-panel .hero-copy,
.app-shell.pro-mode .card .subtle,
.app-shell.pro-mode .modal .subtle,
.app-shell.plus-mode .hero-panel .hero-copy,
.app-shell.plus-mode .card .subtle,
.app-shell.plus-mode .modal .subtle {
  color: #473f35;
}

.app-shell.pro-mode .stat,
.app-shell.pro-mode .paint-row,
.app-shell.pro-mode .empty,
.app-shell.plus-mode .stat,
.app-shell.plus-mode .paint-row,
.app-shell.plus-mode .empty {
  background: linear-gradient(180deg, #fffaf0, #ead8b5);
  color: #12243a;
}

.app-shell.pro-mode .stat strong,
.app-shell.pro-mode .stat span,
.app-shell.pro-mode .paint-row strong,
.app-shell.pro-mode .paint-row span,
.app-shell.pro-mode .paint-row .subtle,
.app-shell.plus-mode .stat strong,
.app-shell.plus-mode .stat span,
.app-shell.plus-mode .paint-row strong,
.app-shell.plus-mode .paint-row span,
.app-shell.plus-mode .paint-row .subtle {
  color: #12243a;
}

.app-shell.pro-mode .search,
.app-shell.pro-mode .input,
.app-shell.pro-mode .select,
.app-shell.pro-mode .textarea,
.app-shell.plus-mode .search,
.app-shell.plus-mode .input,
.app-shell.plus-mode .select,
.app-shell.plus-mode .textarea {
  background: linear-gradient(180deg, #fffaf0, #ead8b5);
  color: #12243a;
}

.app-shell.pro-mode .field label,
.app-shell.plus-mode .field label {
  color: #12243a;
}

.app-shell #set-free {
  border-color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(180deg, #2395d2, #07528a);
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.28);
}

.app-shell #set-plus,
.app-shell #activate-plus {
  border-color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(180deg, #f8fafc, #aeb8c4 56%, #6b7787);
  color: #111820;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.44);
}

.app-shell #set-pro,
.app-shell #activate-pro {
  border-color: rgba(255, 232, 163, 0.9);
  background: linear-gradient(180deg, #ffe8a3, #d69a2e 54%, #7e530c);
  color: #1a1203;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.38);
}
