﻿body.aesthetic-view main > :not(.topbar, .aesthetic-panel),
body.aesthetic-view #newExcelBtn {
  display: none !important;
}
.aesthetic-panel[hidden],
#summaryCancel[hidden],
#aestheticFocusExit[hidden] {
  display: none !important;
}
.aesthetic-menu-slot {
  width: 152px;
  height: 52px;
  flex: 0 0 152px;
}
#sidebarToggle.aesthetic-menu-floating {
  position: fixed !important;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 39;
  background: var(--surface);
  box-shadow: 0 6px 24px #0005;
}
@media (max-width: 760px) {
  .aesthetic-menu-slot {
    width: 132px;
    height: 46px;
    flex-basis: 132px;
  }
}
@media (hover: none) and (pointer: coarse), (max-width: 760px) {
  #sidebarToggle.aesthetic-menu-floating {
    visibility: hidden;
    pointer-events: none;
  }
}
:is(#homePanel, #summaryPanel, #appearancePanel, #lightingPanel) label.rgb-surface {
  padding: 8px;
  border-radius: 10px;
}
.aesthetic-panel {
  min-width: 0;
  padding: 20px 0 40px;
}
.aesthetic-heading {
  margin-bottom: 26px;
}
.aesthetic-heading h2 {
  font-size: clamp(28px, 3vw, 38px);
  margin: 8px 0 12px;
}
.aesthetic-heading p,
.aesthetic-card p {
  line-height: 1.6;
}
.aesthetic-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 20px 0;
  align-items: start;
}
.aesthetic-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--aesthetic-radius, 18px);
  padding: 24px;
  min-width: 0;
  position: relative;
}
.aesthetic-card h3 {
  font-size: 20px;
  margin: 0 0 16px;
}
.aesthetic-card label,
.aesthetic-fonts > label {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.aesthetic-card :is(input:not([type='checkbox']), select, textarea),
.aesthetic-command input {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--input, var(--white));
  font: inherit;
}
.aesthetic-card input[type='color'] {
  width: 72px;
  height: 42px;
  padding: 3px;
}
.aesthetic-card input[type='range'],
.aesthetic-fonts input[type='range'] {
  width: 100%;
  padding: 0;
  min-height: 28px;
  accent-color: var(--blue);
}
.aesthetic-card .aesthetic-check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.aesthetic-check input {
  width: 18px;
  height: 18px;
}
.aesthetic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-top: 16px;
}
.aesthetic-muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.aesthetic-cover {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 42px;
  min-height: 230px;
  color: #fff;
  border-radius: 24px;
  background: linear-gradient(120deg, #0b4548, #33336b);
  background-size: cover;
  background-position: center;
}
.aesthetic-cover[data-cover='sunset'] {
  background-color: #452634;
  background-image: linear-gradient(120deg, #742f34, #54314c, #36264c);
}
.aesthetic-cover[data-cover='midnight'] {
  background-color: #101521;
  background-image: linear-gradient(125deg, #080e1f, #1b3046);
}
.aesthetic-cover[data-cover='forest'] {
  background-color: #143329;
  background-image: linear-gradient(125deg, #103d2c, #304433);
}
.aesthetic-cover h3 {
  font-size: clamp(24px, 3vw, 38px);
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.aesthetic-avatar {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #ffffff24;
  border: 2px solid #ffffff75;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 700;
  overflow: hidden;
}
.aesthetic-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.aesthetic-note {
  font-size: 23px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.aesthetic-numbers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.aesthetic-numbers > div {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.aesthetic-numbers strong {
  font-size: clamp(20px, 2.5vw, 30px);
  overflow-wrap: anywhere;
}
.aesthetic-numbers span {
  font-size: 13px;
  color: var(--muted);
}
#homeDaily {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.aesthetic-widget-tools {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.aesthetic-widget-tools button {
  padding: 5px 12px;
}
#homeWidgets h3[draggable] {
  cursor: grab;
}
.aesthetic-sort-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, 40px);
  gap: 8px;
  align-items: center;
  margin: 10px 0;
}
.aesthetic-sort-row button {
  padding: 7px;
}
.aesthetic-nav-icon {
  display: inline-block;
  width: 24px;
  margin-right: 9px;
  text-align: center;
}
.aesthetic-nav-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 auto;
  fill: none;
  background: transparent;
}
.aesthetic-nav-star {
  margin-left: auto;
  color: #efcf82;
}
#sidebarPanel nav .nav-item {
  display: flex;
  align-items: center;
}
#sidebarPanel {
  overflow-y: auto;
}
.aesthetic-file-tag {
  display: inline-block;
  color: #101820;
  border: 1px solid #0003;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  margin: 6px;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.aesthetic-preview {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: inherit;
  padding: 24px;
}
.aesthetic-demo-icon {
  display: block;
  width: 30px;
  height: 30px;
  margin: 12px auto 24px;
  transform: rotate(45deg);
  font-size: 0;
  border: 1px solid var(--blue);
  color: var(--blue);
}
.aesthetic-chart-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  max-height: 520px;
  overflow-y: auto;
}
.aesthetic-chart-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 14px 0;
}
.aesthetic-chart-list li > span:first-child {
  overflow-wrap: anywhere;
}
.aesthetic-chart-bar {
  grid-column: 1/-1;
  height: 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--muted) 15%, transparent);
  overflow: hidden;
}
.aesthetic-chart-bar::before {
  content: '';
  display: block;
  width: var(--bar-width);
  height: 100%;
  background: var(--bar-color);
  border-radius: inherit;
}
.aesthetic-chart-ring {
  width: min(220px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  margin: 20px auto;
  display: grid;
  place-items: center;
}
.aesthetic-chart-ring strong {
  width: 68%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 34px;
  background: var(--white);
}
#aestheticSearchOpen {
  padding: 9px 12px;
  font-size: 13px;
  white-space: nowrap;
}
.aesthetic-command {
  max-width: 600px;
  width: calc(100% - 32px);
}
#aestheticCommandResults {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  max-height: 48vh;
  overflow: auto;
}
#aestheticCommandResults button {
  text-align: left;
}
#aestheticCommandResults [data-chosen='true'] {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}
#aestheticFocusExit {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 70;
  box-shadow: var(--shadow);
}
body.aesthetic-focus main > :is(.stats, .scan-card, .import-card, .history-card, .workflow-card),
body.aesthetic-focus #paymentPanel > :is(.stats, .history-card, .workflow-card) {
  display: none !important;
}
body {
  letter-spacing: var(--ui-letter-spacing, normal);
}
body[data-custom-font='on'],
body[data-custom-font='on']
  :is(h1, h2, h3, h4, button, input, select, textarea, .brand, .drawer-letter) {
  font-family: var(--ui-font) !important;
}
body[data-ui-sized='true'],
body[data-ui-sized='true'] :is(input, select, textarea, .field label, .records-card td) {
  font-size: var(--ui-font-size) !important;
}
#aestheticFontSample {
  font-size: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
body[data-aesthetic-density='compact'] :is(.fields, .payment-filters) {
  gap: 10px;
}
body[data-aesthetic-density='compact'] :is(.records-card td, .records-card th) {
  padding: 7px 9px;
}
body[data-aesthetic-density='compact'] .field.rgb-surface {
  padding: 8px;
}
body[data-aesthetic-density='spacious'] :is(.fields, .payment-filters) {
  gap: 24px;
}
body[data-aesthetic-density='spacious'] :is(.records-card td, .records-card th) {
  padding: 18px 14px;
}
body[data-aesthetic-density='spacious'] .field.rgb-surface {
  padding: 18px;
}
body[data-aesthetic-buttons='round'] :is(button.primary, button.secondary, button.nav-item) {
  border-radius: 24px;
}
body[data-aesthetic-buttons='flat'] :is(button.primary, button.secondary, button.nav-item) {
  border-radius: 6px;
  box-shadow: none;
}
body[data-aesthetic-buttons='raised'] :is(button.primary, button.secondary, button.nav-item) {
  border-radius: 12px;
  box-shadow:
    0 4px 0 #0004,
    0 7px 12px #0002;
}
body[data-aesthetic-buttons='raised'] button:active {
  box-shadow: 0 1px 0 #0004;
}
body[data-aesthetic-theme='minimal'] {
  --aesthetic-radius: 10px;
  --action-gradient: linear-gradient(115deg, #244c59, #28565d);
}
body[data-aesthetic-theme='elegant'] {
  --aesthetic-radius: 14px;
  --action-gradient: linear-gradient(115deg, #6b4e27, #69522e);
}
body[data-aesthetic-theme='pastel'] {
  --aesthetic-radius: 26px;
  --action-gradient: linear-gradient(115deg, #70538e, #68416e);
}
body[data-aesthetic-theme='future'] {
  --aesthetic-radius: 8px;
  --action-gradient: linear-gradient(115deg, #264875, #35437a);
}
body[data-aesthetic-theme='professional'] {
  --aesthetic-radius: 12px;
  --action-gradient: linear-gradient(115deg, #164c6b, #206271);
}
body:not(.dark)[data-aesthetic-theme='minimal'] {
  --bg: #f5f6f7;
  --white: #fff;
  --surface: #fff;
  --blue: #36566d;
  --line: #d2d8dc;
}
body:not(.dark)[data-aesthetic-theme='elegant'] {
  --bg: #f6f1e9;
  --white: #fffcf7;
  --surface: #fffcf7;
  --blue: #795820;
  --line: #dcd0bb;
}
body:not(.dark)[data-aesthetic-theme='pastel'] {
  --bg: #f5effa;
  --white: #fffaff;
  --surface: #fffaff;
  --blue: #765199;
  --line: #dacbe5;
}
body:not(.dark)[data-aesthetic-theme='future'] {
  --bg: #edf2fa;
  --white: #f8fbff;
  --surface: #f8fbff;
  --blue: #315b9e;
  --line: #c2d4e7;
}
body:not(.dark)[data-aesthetic-theme='professional'] {
  --bg: #eff4f7;
  --white: #fff;
  --surface: #fff;
  --blue: #225978;
  --line: #c8d8e2;
}
body.dark[data-aesthetic-theme='minimal'] {
  --bg: #030507;
  --white: #0b0e11;
  --surface: #0b0e11;
  --blue: #b7cddd;
}
body.dark[data-aesthetic-theme='elegant'] {
  --bg: #070604;
  --white: #12100b;
  --surface: #12100b;
  --blue: #e8ca85;
}
body.dark[data-aesthetic-theme='pastel'] {
  --bg: #07050a;
  --white: #100c17;
  --surface: #100c17;
  --blue: #dbb8f4;
}
body.dark[data-aesthetic-theme='future'] {
  --bg: #02070d;
  --white: #07111d;
  --surface: #07111d;
  --blue: #95d8ff;
}
body.dark[data-aesthetic-theme='professional'] {
  --bg: #03070b;
  --white: #0a131b;
  --surface: #0a131b;
  --blue: #9dcae4;
}
body:not([data-aesthetic-theme='default'])
  :is(.form-card, .records-card, .history-card, .import-card, .lighting-card, .aesthetic-card) {
  border-radius: var(--aesthetic-radius);
}
body[data-aesthetic-background='aurora'] {
  background-image:
    radial-gradient(ellipse at 10% 10%, #558a8c22, transparent 55%),
    radial-gradient(ellipse at 90% 30%, #825cbb24, transparent 60%);
  background-attachment: fixed;
}
body[data-aesthetic-background='sunset'] {
  background-image:
    radial-gradient(ellipse at top left, #ce866f22, transparent 55%),
    radial-gradient(ellipse at right, #a2578122, transparent 60%);
  background-attachment: fixed;
}
body[data-aesthetic-background='mesh'] {
  background-image:
    radial-gradient(at 20% 20%, #72a8b523, transparent 50%),
    radial-gradient(at 90% 80%, #bd9ad323, transparent 50%),
    radial-gradient(at 40% 70%, #acc69b22, transparent 40%);
  background-attachment: fixed;
}
body[data-aesthetic-background='dots'] {
  background-image: radial-gradient(#8598aa33 1px, transparent 1px);
  background-size: 18px 18px;
}
body[data-aesthetic-background='grid'] {
  background-image:
    linear-gradient(#8598aa18 1px, transparent 1px),
    linear-gradient(90deg, #8598aa18 1px, transparent 1px);
  background-size: 26px 26px;
}
body[data-aesthetic-background='paper'] {
  background-image: repeating-linear-gradient(0deg, #8598aa0c 0 1px, transparent 1px 4px);
}
body[data-aesthetic-glass='true']
  :is(
    .aesthetic-card,
    .lighting-card,
    .stats article,
    .form-card,
    .records-card,
    .history-card,
    .scan-card,
    .import-card
  ) {
  background: color-mix(in srgb, var(--white) var(--aesthetic-opacity), transparent);
  backdrop-filter: blur(var(--aesthetic-blur));
}
@keyframes aesthetic-open {
  from {
    opacity: 0.65;
    translate: 0 6px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (prefers-reduced-motion: no-preference) {
  body[data-aesthetic-animations='true']
    :is(
      .aesthetic-panel:not([hidden]),
      .aesthetic-command[open],
      details[open] > .workflow-actions
    ) {
    animation: aesthetic-open 240ms ease-out;
  }
  body[data-aesthetic-animations='true'] .aesthetic-card {
    transition:
      box-shadow 180ms ease,
      border-color 180ms ease;
  }
  body[data-aesthetic-animations='true'] .aesthetic-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow);
  }
}
@media (max-width: 900px) {
  .aesthetic-dashboard {
    grid-template-columns: minmax(0, 1fr);
  }
  .aesthetic-numbers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .header-actions {
    flex-wrap: wrap;
  }
  .aesthetic-fonts :is(input, select) {
    scroll-margin-top: 270px;
  }
}
@media (max-width: 480px) {
  .aesthetic-card {
    padding: 18px;
  }
  .aesthetic-cover {
    padding: 24px;
    gap: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .aesthetic-avatar {
    width: 72px;
    height: 72px;
  }
  .aesthetic-sort-row {
    grid-template-columns: minmax(0, 1fr) repeat(3, 34px);
    gap: 5px;
  }
  .aesthetic-heading h2 {
    font-size: 28px;
  }
  #aestheticFocusExit {
    bottom: 12px;
    right: 12px;
    max-width: calc(100% - 24px);
  }
}
