:root {
  color-scheme: light;
  --ink: #282640;
  --muted: #89879b;
  --line: #eeedf4;
  --purple: #7658df;
  --purple-dark: #6546d2;
  --lavender: #f3f0ff;
  --surface: #fff;
  --shadow: 0 14px 42px rgba(62, 49, 111, .08);
  font-family: "DM Sans", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 12% 10%, rgba(220, 213, 255, .54), transparent 34rem),
    radial-gradient(ellipse at 93% 39%, rgba(255, 228, 230, .46), transparent 32rem),
    #f8f7fb;
}

button, input { font: inherit; }
button { color: inherit; }
.material-symbols-rounded {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
}

.page { width: min(100% - 40px, 1060px); margin: 0 auto; padding: 48px 0 30px; }
.intro { margin: 0 0 26px 4px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 7px;
  color: var(--purple);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
}
.eyebrow .material-symbols-rounded { font-size: 16px; }
h1 { margin: 0; font-size: clamp(28px, 4vw, 36px); letter-spacing: -.06em; line-height: 1.3; }
.intro-copy { margin: 7px 0 0; color: #878497; font-size: 14px; }

.workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: stretch; }
.wheel-card, .options-card, .history-card {
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 22px;
  background: rgba(255, 255, 255, .91);
  box-shadow: var(--shadow);
}
.wheel-card { display: flex; flex-direction: column; align-items: center; padding: 30px 28px 22px; }
.wheel-area { position: relative; width: min(100%, 390px); aspect-ratio: 1; }
.wheel {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 10px 13px rgba(60, 47, 105, .13));
}
#wheel-rotor { transform-origin: 250px 250px; }
.wheel-pointer {
  position: absolute;
  z-index: 2;
  top: -1px;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-top: 30px solid #168fe2;
  border-right: 17px solid transparent;
  border-left: 17px solid transparent;
  filter: drop-shadow(0 3px 4px rgba(48, 37, 91, .23));
}
.wheel-card.wobble-enabled.is-spinning .wheel-pointer {
  animation: pointer-wobble .16s ease-in-out infinite alternate;
  transform-origin: 50% 0;
}
@keyframes pointer-wobble {
  from { transform: translateX(calc(-50% - 2px)) rotate(-3deg); }
  to { transform: translateX(calc(-50% + 2px)) rotate(3deg); }
}
.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 5px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--purple);
  box-shadow: 0 3px 12px rgba(63, 48, 120, .25);
  pointer-events: none;
}
.wheel-center .material-symbols-rounded { font-size: 23px; }
.spin-area { width: min(100%, 310px); margin-top: 17px; text-align: center; }
.spin-button {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(105deg, #8365e8, #684bd3);
  box-shadow: 0 8px 18px rgba(109, 78, 213, .25);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.spin-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 11px 22px rgba(109, 78, 213, .3); }
.spin-button:active:not(:disabled) { transform: translateY(0); }
.spin-button:disabled { cursor: not-allowed; opacity: .58; box-shadow: none; }
.spin-button .material-symbols-rounded { font-size: 23px; }
.spin-hint { min-height: 17px; margin: 9px 0 0; color: #a09daf; font-size: 11px; }
.result {
  display: flex;
  width: min(100%, 310px);
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid #eeeafc;
  border-radius: 13px;
  background: #f8f6ff;
}
.result-label { flex: 0 0 auto; color: #8e89a2; font-size: 11px; }
.result-value { overflow: hidden; color: #6249c2; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.options-card { padding: 24px 24px 17px; }
.section-heading { display: flex; align-items: center; gap: 12px; }
.section-eyebrow { margin-bottom: 3px; font-size: 9px; }
h2 { margin: 0; font-size: 17px; letter-spacing: -.035em; }
.options-card > .section-heading { justify-content: space-between; }
.count-badge { padding: 6px 10px; border-radius: 20px; color: #7259d4; background: #f2efff; font-size: 11px; font-weight: 700; }
.field-label { color: #555267; font-size: 11px; font-weight: 700; }
.bulk-entry { margin-top: 18px; }
.bulk-entry .field-label { display: block; margin-bottom: 7px; }
.bulk-input {
  display: block;
  width: 100%;
  min-height: 88px;
  resize: vertical;
  padding: 10px 11px;
  border: 1px solid #dedfe4;
  border-radius: 9px;
  outline: none;
  color: #45464a;
  background: #fff;
  font: inherit;
  font-size: 12px;
}
.bulk-input:focus { border-color: #168fe2; box-shadow: 0 0 0 3px rgba(22, 143, 226, .12); }
.bulk-input:disabled { background: #f5f5f6; }
.bulk-actions { display: flex; gap: 8px; }
.bulk-add { margin-top: 8px; border-style: solid; }
.options-message { min-height: 15px; margin: 6px 0 0; color: #73757b; font-size: 10px; }
.list-heading { display: flex; justify-content: space-between; align-items: center; margin: 20px 0 9px; }
.muted { color: #aaa7b7; font-weight: 400; }
.list-shortcut { color: #aaa7b7; font-size: 9px; }
.list-shortcut .material-symbols-rounded { font-size: 16px; }
.option-list { display: grid; gap: 7px; max-height: 248px; overflow-y: auto; margin: 0; padding: 1px 3px 1px 1px; list-style: none; scrollbar-color: #ded8f4 transparent; scrollbar-width: thin; }
.option-row { display: flex; min-height: 40px; align-items: center; gap: 9px; }
.option-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; }
.option-input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 11px;
  border: 1px solid #eeedf3;
  border-radius: 9px;
  outline: none;
  color: #3b394d;
  background: #fff;
  font-size: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.option-input:hover { border-color: #d7d1ed; }
.option-input:focus { border-color: #9c87eb; box-shadow: 0 0 0 3px rgba(118, 88, 223, .1); }
.remove-option {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: #aaa7b5;
  background: transparent;
  cursor: pointer;
}
.remove-option:hover { color: #d75f76; background: #fff1f2; }
.remove-option .material-symbols-rounded { font-size: 19px; }
.add-button {
  display: flex;
  width: 100%;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  border: 1px dashed #d9d4e9;
  border-radius: 10px;
  color: #735bd0;
  background: #fbfaff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: background .15s, border-color .15s;
}
.add-button:hover:not(:disabled) { border-color: #a996ed; background: #f6f3ff; }
.add-button:disabled { cursor: not-allowed; opacity: .5; }
.add-button .material-symbols-rounded { font-size: 18px; }
.option-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.utility-button {
  min-height: 36px;
  padding: 6px 9px;
  border: 1px solid #dedfe4;
  border-radius: 9px;
  color: #55565b;
  background: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
}
.utility-button:hover:not(:disabled) { border-color: #168fe2; color: #087bc9; background: #f4faff; }
.utility-button:disabled { cursor: not-allowed; opacity: .45; }
.utility-button.clear-options:hover:not(:disabled) { border-color: #d95762; color: #d95762; background: #fff5f5; }
.utility-button.reset-options { grid-column: 1 / -1; }
.settings { margin-top: 18px; padding-top: 15px; border-top: 1px solid #f0eef5; }
.settings-title { margin: 0 0 12px; color: #55565b; font-size: 13px; font-weight: 700; }
.speed-setting { display: grid; gap: 8px; margin-bottom: 15px; }
.speed-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.speed-button {
  min-height: 36px;
  padding: 5px 4px;
  border: 1px solid #dedfe4;
  border-radius: 8px;
  color: #55565b;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
}
.speed-button[aria-pressed="true"] { border-color: #168fe2; color: #087bc9; background: #eef7ff; font-weight: 700; }
.speed-button:hover { border-color: #168fe2; }
.speed-button:focus-visible { outline: 3px solid rgba(22, 143, 226, .2); outline-offset: 2px; }
.toggle-row { position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle-icon { display: grid; flex: 0 0 auto; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: #8d78dd; background: #f4f1ff; }
.toggle-icon .material-symbols-rounded { font-size: 18px; }
.toggle-copy { display: grid; flex: 1; gap: 3px; }
.toggle-title { color: #555267; font-size: 10px; font-weight: 600; }
.toggle-description { color: #a09daf; font-size: 9px; }
.toggle-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.toggle-switch { position: relative; flex: 0 0 auto; width: 34px; height: 20px; border-radius: 12px; background: #d8d6e0; transition: background .18s; }
.toggle-switch::after { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0002; content: ""; transition: transform .18s; }
.toggle-input:checked + .toggle-switch { background: var(--purple); }
.toggle-input:checked + .toggle-switch::after { transform: translateX(14px); }
.toggle-input:focus-visible + .toggle-switch { outline: 3px solid rgba(118, 88, 223, .24); outline-offset: 2px; }
.range-row { display: flex; align-items: center; gap: 10px; margin: 10px 0 2px; }
.range-row .toggle-copy { flex: 1; cursor: pointer; }
.range-row.is-muted .toggle-icon { color: #92939a; background: #f1f2f5; }
.volume-range { flex: 0 0 96px; width: 96px; min-width: 0; height: 18px; margin: 0; padding: 0; accent-color: var(--purple); cursor: pointer; }
.volume-value { flex: 0 0 34px; color: #92939a; font-size: 9px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.range-row.is-disabled { opacity: .5; }
.volume-range:disabled { cursor: not-allowed; }
@media (max-width: 420px) {
  .volume-range { flex-basis: 76px; width: 76px; }
}
.saved-note { display: flex; align-items: center; gap: 5px; margin: 15px 0 0; color: #aaa7b5; font-size: 9px; }
.saved-note .material-symbols-rounded { font-size: 15px; color: #8e83bf; }
.export-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 15px; }
.export-progress { display: block; width: 100%; height: 8px; margin-top: 10px; accent-color: #168fe2; }
.export-message { min-height: 15px; margin: 7px 0 0; color: #92939a; font-size: 10px; }

.settings-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.settings-heading .settings-title { margin: 0; }
.saved-data { margin-top: 16px; padding-top: 14px; border-top: 1px solid #ebecf0; }
.saved-data .settings-title { margin: 0 0 8px; }
.manual-save { width: 100%; }
.save-message { min-height: 15px; margin: 6px 0 0; color: #92939a; font-size: 10px; }
.save-list { display: grid; gap: 6px; max-height: 320px; margin: 8px 0 0; padding: 0; overflow-y: auto; list-style: none; scrollbar-color: #c9cbd1 transparent; scrollbar-width: thin; }
.save-item { padding: 7px 8px; border: 1px solid #e8e9ed; border-radius: 9px; background: #fafbfc; }
.save-row { display: flex; align-items: center; gap: 7px; }
.save-badge { flex: 0 0 auto; padding: 3px 7px; border-radius: 20px; font-size: 9px; font-weight: 700; }
.save-badge.auto { color: #087bc9; background: #eef7ff; }
.save-badge.manual { color: #5e6066; background: #f1f2f5; }
.save-meta { flex: 1; min-width: 0; overflow: hidden; color: #92939a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.save-toggle, .save-restore { flex: 0 0 auto; min-height: 28px; padding: 4px 9px; font-size: 10px; }
.save-delete { display: grid; flex: 0 0 auto; width: 26px; height: 26px; place-items: center; border: 0; border-radius: 50%; color: #96979d; background: transparent; cursor: pointer; }
.save-delete:hover { color: #d95762; background: #fff0f1; }
.save-delete .material-symbols-rounded { font-size: 16px; }
.save-preview { margin-top: 7px; padding-top: 7px; border-top: 1px dashed #e3e5ea; }
.save-preview-line { display: block; margin: 0 0 5px; color: #777980; font-size: 10px; }
.save-preview-line:last-child { margin-bottom: 0; }
.save-preview-options { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.save-preview-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 3px 7px; border-radius: 20px; color: #55565b; background: #f1f2f5; font-size: 10px; }
.save-preview-chip > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.save-preview-dot { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; }
.empty-saves { margin: 8px 0 2px; color: #92939a; font-size: 10px; }

.history-card { margin-top: 18px; padding: 19px 22px 15px; }
.history-heading { display: flex; align-items: center; justify-content: space-between; }
.history-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: #785ed9; background: #f3f0ff; }
.history-icon .material-symbols-rounded { font-size: 19px; }
.text-button { display: inline-flex; align-items: center; gap: 4px; padding: 7px 8px; border: 0; border-radius: 8px; color: #a09dac; background: transparent; cursor: pointer; font-size: 10px; }
.text-button:hover:not(:disabled) { color: #d45e75; background: #fff3f4; }
.text-button:disabled { cursor: default; opacity: .45; }
.text-button .material-symbols-rounded { font-size: 17px; }
.history-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 15px 0 0; padding: 0; list-style: none; }
.history-item { min-width: 0; padding: 10px 12px; border: 1px solid #f0eef5; border-radius: 11px; background: #fcfbfe; }
.history-number { display: block; margin-bottom: 3px; color: #aaa6b5; font-size: 9px; }
.history-value { display: block; overflow: hidden; color: #555167; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.empty-history { margin: 17px 0 3px; color: #a5a2b0; font-size: 11px; text-align: center; }
.footer { display: flex; align-items: center; justify-content: center; padding: 25px 3px 0; color: #a09dac; font-size: 10px; }
.footer a { color: var(--purple); text-decoration: none; }
.footer a:hover { color: var(--purple-dark); text-decoration: underline; }

button:focus-visible, a:focus-visible { outline: 3px solid rgba(118, 88, 223, .3); outline-offset: 3px; }

@media (max-width: 760px) {
  .page { width: min(100% - 28px, 520px); padding-top: 35px; }
  .workspace { grid-template-columns: 1fr; gap: 14px; }
  .wheel-card { padding: 22px 18px 18px; }
  .wheel-area { width: min(100%, 350px); }
  .options-card { padding: 21px 19px 16px; }
  .history-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .page { width: calc(100% - 24px); padding-top: 27px; }
  .intro { margin-left: 2px; margin-bottom: 20px; }
  .wheel-card { padding: 18px 13px 15px; }
  .wheel-area { width: min(100%, 315px); }
  .wheel-pointer { border-top-width: 25px; border-right-width: 14px; border-left-width: 14px; }
  .wheel-center { width: 47px; height: 47px; }
  .options-card { padding-right: 15px; padding-left: 15px; }
  .list-shortcut { display: none; }
  .footer { padding-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .wheel-card.wobble-enabled.is-spinning .wheel-pointer { animation: none; }
}

/* Keep the controls close to a simple mobile app rather than a dashboard. */
:root {
  --ink: #45464a;
  --muted: #8d8e94;
  --line: #e6e7eb;
  --purple: #168fe2;
  --purple-dark: #087bc9;
  --lavender: #eef7ff;
  --surface: #fff;
  --shadow: 0 2px 9px rgba(30, 42, 60, .06);
}

body {
  background: #fff;
}

.page { padding-top: 36px; }
.intro { margin-bottom: 20px; }
.eyebrow { color: #168fe2; letter-spacing: .04em; }
.intro h1 { display: flex; align-items: center; gap: 7px; color: #168fe2; font-size: clamp(30px, 4vw, 38px); letter-spacing: -.06em; }
.intro h1 .material-symbols-rounded { font-size: .8em; }
.intro-copy { color: #888990; }

.wheel-card, .options-card, .history-card {
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.wheel-card { background: transparent; box-shadow: none; }
.wheel { filter: drop-shadow(0 4px 5px rgba(44, 49, 58, .16)); }
.wheel-pointer {
  border-top-color: #168fe2;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
}
.wheel-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  width: 82px;
  height: 82px;
  padding: 5px;
  border: 0;
  border-radius: 50%;
  color: #168fe2;
  background: #fff;
  box-shadow: 0 2px 6px rgba(40, 50, 65, .12);
  cursor: pointer;
  pointer-events: auto;
  transition: background .15s, transform .15s, opacity .15s;
}
.wheel-center:hover:not(:disabled) { transform: translate(-50%, -50%) scale(1.04); background: #f6fbff; }
.wheel-center:active:not(:disabled) { transform: translate(-50%, -50%) scale(.97); }
.wheel-center:disabled { cursor: not-allowed; opacity: .55; }
.wheel-center .material-symbols-rounded { font-size: 20px; }
.wheel-center span:last-child { font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.wheel-center:focus-visible { outline: 3px solid rgba(22, 143, 226, .28); outline-offset: 3px; }

.spin-area { width: auto; margin-top: 0; }
.spin-hint { color: #92939a; font-size: 12px; }
.result {
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-height: 85px;
  margin: 0 0 8px;
  padding: 5px 0 14px;
  border: 0;
  background: transparent;
  text-align: center;
}
.result-label { color: #777980; font-size: 13px; font-weight: 600; }
.result-value { max-width: 100%; color: #45464a; font-size: 23px; }

.options-card { padding: 23px; }
.count-badge {
  border: 0;
  border-radius: 18px;
  color: #5e6066;
  background: #f1f2f5;
}
.list-shortcut, .muted { color: #92939a; }
.option-list { scrollbar-color: #c9cbd1 transparent; }
.option-dot { border: 0; border-radius: 50%; }
.option-input {
  height: 42px;
  border: 1px solid #dedfe4;
  border-radius: 9px;
  color: #45464a;
  background: #fff;
  font-size: 13px;
}
.option-input:hover { border-color: #b9bbc2; }
.option-input:focus { border-color: #168fe2; box-shadow: 0 0 0 3px rgba(22, 143, 226, .12); }
.remove-option { border-radius: 50%; color: #96979d; }
.remove-option:hover { color: #d95762; background: #fff0f1; }
.add-button {
  border: 1px solid #168fe2;
  border-radius: 9px;
  color: #168fe2;
  background: #fff;
}
.add-button:hover:not(:disabled) { border-color: #087bc9; background: #f4faff; }
.settings { border-top: 1px solid #ebecf0; }
.toggle-icon, .history-icon {
  border: 0;
  border-radius: 50%;
  color: #168fe2;
  background: #eef7ff;
}
.toggle-title { color: #55565b; }
.toggle-description, .saved-note { color: #92939a; }
.toggle-switch { border: 0; background: #d2d3d8; }
.toggle-input:checked + .toggle-switch { background: #168fe2; }
.toggle-input:focus-visible + .toggle-switch { outline-color: rgba(22, 143, 226, .3); }
.saved-note .material-symbols-rounded { color: #168fe2; }
.history-item {
  border: 1px solid #e8e9ed;
  border-radius: 9px;
  background: #fafbfc;
}
.history-number, .empty-history { color: #92939a; }
.history-value { color: #45464a; }
.text-button:hover:not(:disabled) { color: #d95762; background: #fff0f1; }
.footer { color: #92939a; }

.options-card { display: none; }
.options-card.is-open { display: block; }
.workspace.is-edit-open { grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); }
.edit-toggle {
  position: fixed;
  z-index: 5;
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #168fe2;
  box-shadow: 0 3px 10px rgba(30, 66, 100, .25);
  cursor: pointer;
}
.edit-toggle .material-symbols-rounded { font-size: 25px; }
.edit-toggle:hover { background: #087bc9; }

@media (max-width: 760px) {
  .page { padding-top: 26px; }
  .wheel-card, .options-card, .history-card { box-shadow: 0 1px 5px rgba(30, 42, 60, .07); }
  .options-card.is-open { scroll-margin-top: 16px; }
  .workspace.is-edit-open { grid-template-columns: 1fr; }
}

.wheel-card {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.option-color {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid rgba(38, 29, 68, .16);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.option-color:hover:not(:disabled) { transform: scale(1.12); }
.option-color:disabled { cursor: not-allowed; opacity: .5; }

.color-popover {
  position: fixed;
  z-index: 100;
  width: 188px;
  padding: 12px;
  border: 1px solid #e6e7eb;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(30, 42, 60, .18);
}
.color-popover-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 9px; }
.color-popover-title { margin: 0; color: #45464a; font-size: 11px; font-weight: 700; }
.color-popover-close {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #96979d;
  background: transparent;
  cursor: pointer;
}
.color-popover-close:hover { color: #45464a; background: #f1f2f5; }
.color-popover-close .material-symbols-rounded { font-size: 16px; }
.color-swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.color-swatch {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(38, 29, 68, .15);
  cursor: pointer;
  transition: transform .12s;
}
.color-swatch:hover { transform: scale(1.12); }
.color-swatch.is-selected { box-shadow: 0 0 0 2px #168fe2; }
.color-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #f0f1f3;
  color: #55565b;
  font-size: 10px;
  font-weight: 600;
}
.color-custom input {
  width: 32px;
  height: 24px;
  padding: 0;
  border: 1px solid #dedfe4;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.option-ratio {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  height: 34px;
  padding: 0 5px;
  border: 1px solid #dedfe4;
  border-radius: 8px;
  background: #fff;
}
.option-ratio-label {
  color: #92939a;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .02em;
}
.option-weight {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  outline: none;
  color: #45464a;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  appearance: textfield;
}
.option-weight::-webkit-outer-spin-button,
.option-weight::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.option-ratio:focus-within { border-color: #168fe2; box-shadow: 0 0 0 3px rgba(22, 143, 226, .12); }
.option-weight:disabled { opacity: .55; }
.save-preview-weight { color: #92939a; font-size: 9px; font-weight: 700; }

@media (max-width: 420px) {
  .option-ratio { padding: 0 4px; }
  .option-ratio-label { font-size: 7px; }
  .option-weight { width: 26px; font-size: 11px; }
}
