:root {
  --green-950: #063f1c;
  --green-900: #07461f;
  --green-800: #0a5928;
  --green-700: #0f7d36;
  --green-600: #159447;
  --green-500: #23ad56;
  --green-100: #eaf7ee;
  --ink: #1e2420;
  --muted: #5f6963;
  --line: #e2ebe4;
  --panel: #ffffff;
  --bg: #f6faf7;
  --shadow: 0 14px 40px rgba(10, 40, 20, .08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
}

button,
a {
  font: inherit;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 218px;
  padding: 22px 16px;
  color: #fff;
  background:
    radial-gradient(circle at 30% 0%, rgba(48, 170, 82, .32), transparent 32%),
    linear-gradient(180deg, #063f1c 0%, #052f18 100%);
  box-shadow: inset -1px 0 rgba(255, 255, 255, .08);
}

.profile {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.avatar {
  position: relative;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 4px solid #d5f0db;
  border-radius: 50%;
  background: linear-gradient(180deg, #c8efd1, #7fcf90);
}

.avatar-head {
  position: absolute;
  top: 15px;
  left: 23px;
  width: 19px;
  height: 21px;
  border-radius: 50% 50% 46% 46%;
  background: #0e8e43;
}

.avatar-body {
  position: absolute;
  right: 13px;
  bottom: -4px;
  left: 13px;
  height: 34px;
  border-radius: 20px 20px 8px 8px;
  background: #087333;
}

.profile-text strong,
.profile-text span {
  display: block;
}

.profile-text strong {
  margin-bottom: 4px;
  font-size: 15px;
}

.profile-text span {
  color: rgba(255, 255, 255, .84);
  font-size: 12px;
}

.public-link {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  margin-top: 10px;
  padding: 6px 8px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.public-link svg {
  width: 13px;
}

.side-nav {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.side-nav a {
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 50px;
  padding: 0 12px;
  color: rgba(255, 255, 255, .92);
  text-decoration: none;
  border-radius: 9px;
  font-weight: 700;
}

.side-nav a svg {
  width: 23px;
  height: 23px;
}

.side-nav a.active {
  background: linear-gradient(90deg, rgba(74, 183, 87, .9), rgba(43, 150, 72, .82));
  box-shadow: 0 10px 22px rgba(0, 0, 0, .16);
}

.logout {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 38px;
  margin-left: auto;
  margin-right: 18px;
  color: #d7322d;
  background: #fff4f2;
  border: 1px solid #ffd0cb;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 800;
}

.logout svg {
  width: 18px;
  height: 18px;
}

.app {
  min-height: 100vh;
  margin-left: 218px;
}

.topbar {
  display: flex;
  align-items: center;
  height: 66px;
  padding-left: 34px;
  background: #fff;
  border-bottom: 1px solid #dbe7de;
  box-shadow: 0 8px 24px rgba(8, 39, 18, .05);
}

.tabs {
  display: flex;
  align-items: stretch;
  height: 100%;
  min-width: 0;
}

.tabs a {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  color: #1f2521;
  text-decoration: none;
  font-weight: 800;
}

.tabs svg {
  width: 19px;
  height: 19px;
}

.tabs a.selected {
  color: var(--green-700);
}

.tabs a.selected::after {
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 3px;
  content: "";
  background: var(--green-600);
  border-radius: 3px 3px 0 0;
}

.content-shell {
  display: grid;
  grid-template-columns: minmax(720px, 1fr) 308px;
  gap: 18px;
  padding: 20px 18px 24px 22px;
}

.main-panel,
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 22px;
  border-bottom: 1px solid #eef3ef;
}

h1 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.15;
}

.panel-header p,
.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.save {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-width: 168px;
  height: 42px;
  justify-content: center;
  color: #fff;
  background: linear-gradient(180deg, #126733, #073f20);
  border: 0;
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(10, 91, 43, .22);
  cursor: pointer;
  font-weight: 800;
}

.save svg {
  width: 18px;
}

.products {
  padding: 22px 20px 0;
}

.product-row {
  position: relative;
  display: grid;
  grid-template-columns: 126px 140px 1fr;
  gap: 18px;
  align-items: center;
  padding: 10px 0 20px;
  border-bottom: 1px solid #e8eee9;
}

.product-row + .product-row {
  padding-top: 30px;
}

.product-art {
  position: relative;
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f1f8ed, #eef6e7);
  border-radius: 12px;
}

.product-art .emoji {
  position: relative;
  z-index: 1;
  font-size: 62px;
  filter: drop-shadow(0 9px 8px rgba(20, 50, 20, .18));
}

.canister {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 80px;
  background: linear-gradient(135deg, #1f8f45, #08672f);
  border-radius: 9px 9px 12px 12px;
  box-shadow: inset -10px 0 0 rgba(0, 0, 0, .12), 0 12px 16px rgba(15, 80, 30, .18);
}

.canister::before {
  position: absolute;
  top: 8px;
  left: 12px;
  width: 32px;
  height: 8px;
  content: "";
  background: #d8f3dc;
  border-radius: 8px;
}

.canister-handle {
  position: absolute;
  top: -14px;
  left: 16px;
  width: 38px;
  height: 22px;
  border: 8px solid #0b6b32;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.canister-cap {
  position: absolute;
  top: 8px;
  right: -7px;
  width: 14px;
  height: 18px;
  background: #0a5128;
  border-radius: 4px;
}

.canister-label {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #baf2c0, #5fbd63);
  border-radius: 6px;
}

.canister-label span {
  width: 14px;
  height: 20px;
  background: #2f9e44;
  border-radius: 100% 0 100% 0;
  transform: rotate(35deg);
}

.no-symbol {
  position: absolute;
  right: -11px;
  bottom: 6px;
  width: 36px;
  height: 36px;
  border: 5px solid #e25b31;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}

.no-symbol::after {
  position: absolute;
  top: 13px;
  left: 2px;
  width: 28px;
  height: 5px;
  content: "";
  background: #e25b31;
  border-radius: 5px;
  transform: rotate(45deg);
}

.product-art::after {
  position: absolute;
  width: 76px;
  height: 76px;
  content: "";
  background: rgba(37, 153, 70, .08);
  border-radius: 50%;
}

.product-info h3 {
  margin: 0 0 13px;
  font-size: 20px;
  line-height: 1;
}

.product-info p {
  margin: 0;
  max-width: 140px;
  color: #202722;
  line-height: 1.55;
  font-weight: 500;
}

.options-wrap {
  min-width: 0;
}

.options-title {
  margin-bottom: 12px;
  font-weight: 700;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(106px, 1fr));
  gap: 16px;
  max-width: 520px;
}

.option-card {
  height: 124px;
  padding: 16px 10px 12px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--green-700);
  background: #fff;
  border: 1px solid #cfe6d4;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition: .18s ease;
}

.option-card[aria-pressed="false"] {
  color: #1f2824;
  border-color: #dde7df;
}

.option-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 80, 30, .08);
}

.option-card svg.option-icon {
  width: 38px;
  height: 38px;
  stroke-width: 1.8;
}

.option-card span {
  display: block;
  min-height: 18px;
}

.dot {
  width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: #fff;
  border: 2px solid #aeb9b2;
  border-radius: 50%;
}

.dot.active-dot {
  background: var(--green-600);
  border-color: var(--green-600);
}

.dot svg {
  width: 12px;
  height: 12px;
  stroke-width: 4;
}

.visibility {
  position: absolute;
  top: 26px;
  right: 6px;
  width: 39px;
  height: 21px;
  padding: 2px;
  background: var(--green-600);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}

.visibility::after {
  display: block;
  width: 17px;
  height: 17px;
  margin-left: 18px;
  content: "";
  background: #fff;
  border-radius: 50%;
  transition: .18s ease;
}

.visibility.off {
  background: #a8b7ad;
}

.visibility.off::after {
  margin-left: 0;
}

.add-product {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  width: calc(100% - 40px);
  height: 55px;
  margin: 26px 20px 0;
  color: var(--green-700);
  background: linear-gradient(90deg, rgba(232, 250, 237, .7), rgba(255, 255, 255, .72));
  border: 1px dashed #a7dbb6;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.add-product svg {
  width: 22px;
}

.right-column {
  display: grid;
  align-content: start;
  gap: 18px;
}

.card {
  padding: 18px;
}

.card h2 {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 16px;
  font-size: 15px;
}

.card h2 svg {
  width: 18px;
  color: var(--green-700);
}

.public-card {
  padding: 0;
}

.public-card h2 {
  padding: 18px 18px 16px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.public-card > p {
  padding: 18px 18px 10px;
  color: #303833;
}

.public-list {
  padding: 0 18px 16px;
}

.public-item {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 73px;
  border-bottom: 1px solid #edf2ee;
}

.public-item:last-child {
  border-bottom: 0;
}

.public-thumb {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #f1f8ec;
  border-radius: 7px;
  font-size: 25px;
}

.public-thumb.thumb-canister {
  position: relative;
  background: #eef8ee;
}

.public-thumb.thumb-canister::before {
  width: 23px;
  height: 27px;
  content: "";
  background: linear-gradient(135deg, #1f8f45, #08672f);
  border-radius: 4px 4px 5px 5px;
  box-shadow: inset -5px 0 rgba(0, 0, 0, .12);
}

.public-thumb.thumb-canister::after {
  position: absolute;
  top: 7px;
  left: 15px;
  width: 14px;
  height: 8px;
  content: "";
  border: 4px solid #0b6b32;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}

.public-thumb.thumb-canister span {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 16px;
  height: 16px;
  border: 3px solid #e25b31;
  border-radius: 50%;
}

.public-thumb.thumb-canister span::after {
  position: absolute;
  top: 5px;
  left: 1px;
  width: 11px;
  height: 3px;
  content: "";
  background: #e25b31;
  border-radius: 3px;
  transform: rotate(45deg);
}

.public-name {
  font-weight: 800;
}

.public-icons {
  display: flex;
  gap: 13px;
  color: var(--green-600);
}

.public-icons svg {
  width: 19px;
  height: 19px;
}

.public-icons .disabled {
  color: #b7c0ba;
}

.legend {
  display: grid;
  gap: 14px;
}

.legend h2 {
  margin-bottom: 2px;
}

.legend p {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #25302a;
  font-weight: 500;
}

.mini-toggle {
  position: relative;
  width: 31px;
  height: 16px;
  background: var(--green-600);
  border-radius: 999px;
}

.mini-toggle::after {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  content: "";
  background: #fff;
  border-radius: 50%;
}

.help {
  display: flex;
  gap: 14px;
}

.question {
  flex: 0 0 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green-500);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 800;
}

.help h2 {
  margin-bottom: 7px;
}

.help a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  color: var(--green-700);
  text-decoration: none;
  font-weight: 800;
}

.help a svg {
  width: 15px;
}

@media (max-width: 1180px) {
  .sidebar {
    width: 88px;
    padding-inline: 12px;
  }

  .profile {
    justify-content: center;
    padding-bottom: 18px;
  }

  .profile-text,
  .side-nav a span {
    display: none;
  }

  .side-nav a {
    justify-content: center;
    padding: 0;
  }

  .app {
    margin-left: 88px;
  }

  .content-shell {
    grid-template-columns: 1fr;
  }

  .right-column {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .topbar {
    overflow-x: auto;
    padding-left: 10px;
    padding-right: 10px;
  }

  .tabs {
    flex: 1 1 auto;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .tabs a {
    min-width: 156px;
  }

  .logout {
    flex: 0 0 auto;
    margin-right: 0;
    margin-left: 10px;
  }

  .content-shell {
    padding: 14px;
  }

  .panel-header,
  .product-row {
    grid-template-columns: 1fr;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-row {
    gap: 14px;
  }

  .visibility {
    top: 18px;
  }

  .option-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    max-width: none;
  }

  .right-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 13px;
    background: #fff;
  }

  .sidebar {
    position: static;
    width: auto;
    min-height: auto;
    padding: 14px 12px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
  }

  .profile {
    padding-bottom: 12px;
  }

  .avatar {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .profile-text {
    display: block;
  }

  .public-link {
    display: none;
  }

  .side-nav {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .side-nav a {
    flex: 0 0 56px;
    min-height: 48px;
    justify-content: center;
  }

  .side-nav a span {
    display: none;
  }

  .app {
    margin-left: 0;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    height: 58px;
    padding-left: 8px;
  }

  .tabs a {
    min-width: 52px;
    padding: 0 14px;
  }

  .tabs a svg {
    width: 20px;
    height: 20px;
  }

  .tabs a {
    font-size: 0;
    gap: 0;
  }

  .tabs a.selected::after {
    right: 10px;
    left: 10px;
  }

  .logout {
    min-width: 44px;
    width: 44px;
    height: 38px;
    padding: 0;
    font-size: 0;
  }

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

  .content-shell {
    padding: 10px;
  }

  .main-panel,
  .card {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .panel-header {
    padding: 16px 14px;
  }

  h1 {
    font-size: 18px;
  }

  .save {
    width: 100%;
  }

  .products {
    padding: 12px 14px 0;
  }

  .product-row {
    padding: 18px 0 22px;
  }

  .product-art {
    width: 104px;
    height: 104px;
  }

  .product-info p {
    max-width: none;
  }

  .option-card {
    height: 104px;
    grid-template-columns: 42px 1fr 24px;
    place-items: center start;
    text-align: left;
    padding: 12px 14px;
  }

  .option-card svg.option-icon {
    width: 32px;
    height: 32px;
  }

  .visibility {
    top: 22px;
    right: 0;
  }

  .add-product {
    width: calc(100% - 28px);
    margin: 18px 14px 0;
  }

  .public-item {
    grid-template-columns: 44px 1fr;
  }

  .public-icons {
    grid-column: 1 / -1;
    padding: 0 0 12px 56px;
  }
}
