/*! Partwise 1.0.0 | Commercial license, see LICENSE.txt */
/* ==========================================================================
   Partwise 1.0 — base
   Tokens, the icon set for CSS, and small helpers. Every component reads the
   variables below, so this is the one place to change colours, corners,
   shadows and speed.
   ========================================================================== */
:root {
  --pw-accent: #2b46e3;                 /* buttons, selected states, focus ring */
  --pw-accent-ink: #ffffff;             /* text on top of the accent colour */
  --pw-accent-text: #2338c4;            /* the accent colour as readable text */
  --pw-bg: #ffffff;                     /* surfaces: panels, menus, inputs */
  --pw-bg-2: #f5f6f8;                   /* quiet backgrounds */
  --pw-bg-3: #eceef2;                   /* hover */
  --pw-text: #14161b;
  --pw-text-2: #474d59;
  --pw-text-3: #626977;
  --pw-line: #dfe2e8;
  --pw-line-2: #c5cad3;
  --pw-ok: #126c40;
  --pw-warn: #93570a;
  --pw-bad: #c2233f;
  --pw-info: #1f5fc2;
  --pw-radius-sm: 7px;
  --pw-radius: 10px;
  --pw-radius-lg: 14px;
  --pw-shadow: 0 1px 2px rgba(16, 20, 30, .06), 0 4px 12px -2px rgba(16, 20, 30, .1);
  --pw-shadow-lg: 0 24px 60px -16px rgba(16, 20, 30, .32), 0 6px 18px rgba(16, 20, 30, .1);
  --pw-ring: 0 0 0 3px color-mix(in srgb, var(--pw-accent) 32%, transparent);
  --pw-backdrop: rgba(12, 14, 20, .55);
  --pw-speed: .18s;
  --pw-font: inherit;                   /* components use the font of your page */
  --pw-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --pw-z: 1000;                         /* overlays start here: modal 1000, floating 1100, toast 1200, tour 1300 */

  /* icons for CSS, used as masks so they take the text colour */
  --pw-i-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  --pw-i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --pw-i-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --pw-i-dash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");
  --pw-i-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.5l-5.9 3.1 1.2-6.5L2.5 9.5l6.6-.9z'/%3E%3C/svg%3E");
}
[data-pw-theme="dark"] {
  --pw-accent: #8194ff;
  --pw-accent-ink: #0a1038;
  --pw-accent-text: #a6b3ff;
  --pw-bg: #16181d;
  --pw-bg-2: #1d2027;
  --pw-bg-3: #272b34;
  --pw-text: #eef0f4;
  --pw-text-2: #bcc2cd;
  --pw-text-3: #979eac;
  --pw-line: #2d323c;
  --pw-line-2: #414856;
  --pw-ok: #4fd39b;
  --pw-warn: #f1b458;
  --pw-bad: #ff8093;
  --pw-info: #80b5ff;
  --pw-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px -2px rgba(0, 0, 0, .5);
  --pw-shadow-lg: 0 24px 60px -16px rgba(0, 0, 0, .75), 0 6px 18px rgba(0, 0, 0, .4);
  --pw-backdrop: rgba(0, 0, 0, .65);
  color-scheme: dark;
}
/* the same colours when the device is in dark mode and the page says data-pw-theme="auto" */
@media (prefers-color-scheme: dark) {
  [data-pw-theme="auto"] {
    --pw-accent: #8194ff;
    --pw-accent-ink: #0a1038;
    --pw-accent-text: #a6b3ff;
    --pw-bg: #16181d;
    --pw-bg-2: #1d2027;
    --pw-bg-3: #272b34;
    --pw-text: #eef0f4;
    --pw-text-2: #bcc2cd;
    --pw-text-3: #979eac;
    --pw-line: #2d323c;
    --pw-line-2: #414856;
    --pw-ok: #4fd39b;
    --pw-warn: #f1b458;
    --pw-bad: #ff8093;
    --pw-info: #80b5ff;
    --pw-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px -2px rgba(0, 0, 0, .5);
    --pw-shadow-lg: 0 24px 60px -16px rgba(0, 0, 0, .75), 0 6px 18px rgba(0, 0, 0, .4);
    --pw-backdrop: rgba(0, 0, 0, .65);
    color-scheme: dark;
  }
}

/* every Partwise element sizes itself the same way */
[class^="pw-"], [class*=" pw-"], [class^="pw-"]::before, [class*=" pw-"]::before, [class^="pw-"]::after, [class*=" pw-"]::after { box-sizing: border-box; }
[class^="pw-"][hidden], [class*=" pw-"][hidden] { display: none !important; }

.pw-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.pw-lock { overflow: hidden !important; }

/* icons made by the scripts */
.pw-icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }

/* a floating element placed next to its anchor by the scripts */
.pw-float { position: fixed; z-index: calc(var(--pw-z) + 100); inset: auto; margin: 0; max-width: calc(100vw - 16px); }
.pw-float:popover-open { position: fixed; inset: auto; margin: 0; }

/* round close button: <button class="pw-close" aria-label="Close"></button> */
.pw-close { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: var(--pw-radius-sm); background: transparent; color: var(--pw-text-2); cursor: pointer; flex: none; font: inherit; }
.pw-close::before { content: ''; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--pw-i-x) center / contain no-repeat; mask: var(--pw-i-x) center / contain no-repeat; }
.pw-close:hover { background: var(--pw-bg-3); color: var(--pw-text); }
.pw-close:focus-visible { outline: none; box-shadow: var(--pw-ring); }

@media (prefers-reduced-motion: reduce) {
  [class^="pw-"], [class*=" pw-"], [class^="pw-"]::before, [class*=" pw-"]::before, [class^="pw-"]::after, [class*=" pw-"]::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Basics (CSS only): button, badge, chip, alert, card, avatar, progress,
   spinner, skeleton, table, breadcrumb, timeline, stat, empty state, kbd
   ========================================================================== */
.pw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 1px solid var(--pw-line-2); border-radius: var(--pw-radius-sm); background: var(--pw-bg); color: var(--pw-text); font: inherit; font-family: var(--pw-font); font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background var(--pw-speed), border-color var(--pw-speed), box-shadow var(--pw-speed); }
.pw-btn:hover { background: var(--pw-bg-3); }
.pw-btn:focus-visible { outline: none; box-shadow: var(--pw-ring); border-color: var(--pw-accent); }
.pw-btn:disabled, .pw-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.pw-btn--primary { border-color: var(--pw-accent); background: var(--pw-accent); color: var(--pw-accent-ink); }
.pw-btn--primary:hover { background: color-mix(in srgb, var(--pw-accent) 88%, var(--pw-text)); }
.pw-btn--soft { border-color: transparent; background: color-mix(in srgb, var(--pw-accent) 12%, var(--pw-bg)); color: var(--pw-accent-text); }
.pw-btn--soft:hover { background: color-mix(in srgb, var(--pw-accent) 20%, var(--pw-bg)); }
.pw-btn--ghost { border-color: transparent; background: transparent; }
.pw-btn--danger { border-color: var(--pw-bad); background: var(--pw-bad); color: var(--pw-bg); }
.pw-btn--danger:hover { background: color-mix(in srgb, var(--pw-bad) 88%, var(--pw-text)); }
.pw-btn--sm { min-height: 32px; padding: 4px 11px; font-size: .88rem; }
.pw-btn--lg { min-height: 48px; padding: 10px 22px; font-size: 1.05rem; }
.pw-btn--icon { width: 40px; padding: 0; }
.pw-btn--icon.pw-btn--sm { width: 32px; }
.pw-btn--block { display: flex; width: 100%; }
.pw-btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.pw-btn.is-loading::after { content: ''; position: absolute; width: 16px; height: 16px; border: 2px solid var(--pw-text-3); border-right-color: transparent; border-radius: 50%; animation: pw-spin .7s linear infinite; }
.pw-btn--primary.is-loading::after, .pw-btn--danger.is-loading::after { border-color: var(--pw-accent-ink); border-right-color: transparent; }
.pw-btn-group { display: inline-flex; }
.pw-btn-group > .pw-btn { border-radius: 0; margin-inline-start: -1px; }
.pw-btn-group > .pw-btn:first-child { border-start-start-radius: var(--pw-radius-sm); border-end-start-radius: var(--pw-radius-sm); margin-inline-start: 0; }
.pw-btn-group > .pw-btn:last-child { border-start-end-radius: var(--pw-radius-sm); border-end-end-radius: var(--pw-radius-sm); }
.pw-btn-group > .pw-btn:focus-visible, .pw-btn-group > .pw-btn[aria-pressed="true"] { position: relative; z-index: 1; }
.pw-btn[aria-pressed="true"] { background: color-mix(in srgb, var(--pw-accent) 12%, var(--pw-bg)); border-color: var(--pw-accent); color: var(--pw-accent-text); }

.pw-badge { display: inline-flex; align-items: center; gap: 5px; min-height: 22px; padding: 1px 9px; border-radius: 99px; background: var(--pw-bg-3); color: var(--pw-text-2); font-family: var(--pw-font); font-size: .78rem; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.pw-badge--ok { background: color-mix(in srgb, var(--pw-ok) 14%, var(--pw-bg)); color: var(--pw-ok); }
.pw-badge--warn { background: color-mix(in srgb, var(--pw-warn) 16%, var(--pw-bg)); color: var(--pw-warn); }
.pw-badge--bad { background: color-mix(in srgb, var(--pw-bad) 13%, var(--pw-bg)); color: var(--pw-bad); }
.pw-badge--info { background: color-mix(in srgb, var(--pw-info) 13%, var(--pw-bg)); color: var(--pw-info); }
.pw-badge--accent { background: var(--pw-accent); color: var(--pw-accent-ink); }
.pw-badge--dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.pw-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; min-height: 26px; padding: 2px 4px 2px 10px; border-radius: 99px; background: var(--pw-bg-3); color: var(--pw-text); font-size: .86rem; font-weight: 500; line-height: 1.3; }
.pw-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-chip > button { display: grid; place-items: center; flex: none; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--pw-text-3); cursor: pointer; }
.pw-chip > button::before { content: ''; width: 12px; height: 12px; background: currentColor; -webkit-mask: var(--pw-i-x) center / contain no-repeat; mask: var(--pw-i-x) center / contain no-repeat; }
.pw-chip > button:hover { background: var(--pw-line-2); color: var(--pw-text); }
.pw-chip > button:focus-visible { outline: 2px solid var(--pw-accent); outline-offset: 1px; }

.pw-alert { display: flex; gap: 12px; padding: 13px 16px; border: 1px solid var(--pw-line); border-inline-start: 4px solid var(--pw-text-3); border-radius: var(--pw-radius); background: var(--pw-bg); color: var(--pw-text-2); font-family: var(--pw-font); line-height: 1.5; }
.pw-alert b, .pw-alert strong { color: var(--pw-text); }
.pw-alert > div { flex: 1; min-width: 0; }
.pw-alert--ok { border-inline-start-color: var(--pw-ok); background: color-mix(in srgb, var(--pw-ok) 7%, var(--pw-bg)); }
.pw-alert--warn { border-inline-start-color: var(--pw-warn); background: color-mix(in srgb, var(--pw-warn) 8%, var(--pw-bg)); }
.pw-alert--bad { border-inline-start-color: var(--pw-bad); background: color-mix(in srgb, var(--pw-bad) 6%, var(--pw-bg)); }
.pw-alert--info { border-inline-start-color: var(--pw-info); background: color-mix(in srgb, var(--pw-info) 6%, var(--pw-bg)); }

.pw-card { border: 1px solid var(--pw-line); border-radius: var(--pw-radius-lg); background: var(--pw-bg); color: var(--pw-text); font-family: var(--pw-font); overflow: hidden; }
.pw-card-body { padding: 20px; }
.pw-card-body > :first-child { margin-top: 0; }
.pw-card-body > :last-child { margin-bottom: 0; }
.pw-card-foot { padding: 14px 20px; border-top: 1px solid var(--pw-line); background: var(--pw-bg-2); }
.pw-card > img:first-child { display: block; width: 100%; height: auto; }

.pw-avatar { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--pw-accent) 16%, var(--pw-bg)); color: var(--pw-accent-text); font-family: var(--pw-font); font-size: .9rem; font-weight: 700; overflow: hidden; }
.pw-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pw-avatar--sm { width: 28px; height: 28px; font-size: .7rem; }
.pw-avatar--lg { width: 56px; height: 56px; font-size: 1.15rem; }
.pw-avatars { display: inline-flex; }
.pw-avatars > .pw-avatar { box-shadow: 0 0 0 2px var(--pw-bg); }
.pw-avatars > .pw-avatar + .pw-avatar { margin-inline-start: -10px; }

.pw-progress { display: block; width: 100%; height: 8px; border: 0; border-radius: 99px; background: var(--pw-bg-3); overflow: hidden; appearance: none; -webkit-appearance: none; }
.pw-progress::-webkit-progress-bar { background: var(--pw-bg-3); }
.pw-progress::-webkit-progress-value { background: var(--pw-accent); border-radius: 99px; transition: width .3s; }
.pw-progress::-moz-progress-bar { background: var(--pw-accent); border-radius: 99px; }

.pw-spinner { display: inline-block; width: 22px; height: 22px; border: 2.5px solid var(--pw-line-2); border-top-color: var(--pw-accent); border-radius: 50%; animation: pw-spin .7s linear infinite; }
@keyframes pw-spin { to { rotate: 360deg; } }
.pw-skeleton { display: block; min-height: 1em; border-radius: var(--pw-radius-sm); background: linear-gradient(90deg, var(--pw-bg-3) 25%, var(--pw-bg-2) 45%, var(--pw-bg-3) 65%) 0 0 / 300% 100%; animation: pw-shimmer 1.4s linear infinite; }
@keyframes pw-shimmer { to { background-position: -150% 0; } }

.pw-table-wrap { border: 1px solid var(--pw-line); border-radius: var(--pw-radius); overflow-x: auto; background: var(--pw-bg); }
.pw-table { width: 100%; border-collapse: collapse; color: var(--pw-text); font-family: var(--pw-font); font-size: .94rem; }
.pw-table th, .pw-table td { padding: 11px 14px; text-align: start; border-bottom: 1px solid var(--pw-line); }
.pw-table th { background: var(--pw-bg-2); font-size: .82rem; font-weight: 650; color: var(--pw-text-2); white-space: nowrap; }
.pw-table tbody tr:last-child td { border-bottom: 0; }
.pw-table tbody tr:hover td { background: var(--pw-bg-2); }
.pw-table--striped tbody tr:nth-child(even) td { background: var(--pw-bg-2); }

.pw-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0; padding: 0; list-style: none; color: var(--pw-text-3); font-family: var(--pw-font); font-size: .92rem; }
.pw-breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.pw-breadcrumb li + li::before { content: ''; width: 14px; height: 14px; background: var(--pw-line-2); -webkit-mask: var(--pw-i-chevron) center / contain no-repeat; mask: var(--pw-i-chevron) center / contain no-repeat; rotate: -90deg; }
[dir="rtl"] .pw-breadcrumb li + li::before { rotate: 90deg; }
.pw-breadcrumb a { color: var(--pw-text-2); text-decoration: none; }
.pw-breadcrumb a:hover { color: var(--pw-accent-text); text-decoration: underline; }
.pw-breadcrumb [aria-current] { color: var(--pw-text); font-weight: 600; }

.pw-timeline { margin: 0; padding: 0; list-style: none; color: var(--pw-text-2); font-family: var(--pw-font); line-height: 1.5; }
.pw-timeline > li { position: relative; padding: 0 0 22px 28px; }
.pw-timeline > li::before { content: ''; position: absolute; left: 5px; top: 5px; width: 11px; height: 11px; border: 2px solid var(--pw-accent); border-radius: 50%; background: var(--pw-bg); }
.pw-timeline > li::after { content: ''; position: absolute; left: 10px; top: 20px; bottom: 2px; width: 1px; background: var(--pw-line-2); }
.pw-timeline > li:last-child { padding-bottom: 0; }
.pw-timeline > li:last-child::after { display: none; }
.pw-timeline > li.is-done::before { background: var(--pw-accent); }
.pw-timeline time { display: block; font-size: .82rem; color: var(--pw-text-3); }
.pw-timeline b { color: var(--pw-text); }

.pw-stat { display: grid; gap: 2px; font-family: var(--pw-font); color: var(--pw-text); }
.pw-stat-label { font-size: .86rem; color: var(--pw-text-3); }
.pw-stat-value { font-size: 1.9rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.pw-stat-note { font-size: .84rem; color: var(--pw-text-3); }
.pw-stat-note.is-up { color: var(--pw-ok); }
.pw-stat-note.is-down { color: var(--pw-bad); }

.pw-empty { display: grid; justify-items: center; gap: 6px; padding: 36px 20px; border: 1.5px dashed var(--pw-line-2); border-radius: var(--pw-radius); color: var(--pw-text-3); font-family: var(--pw-font); text-align: center; }
.pw-empty b { color: var(--pw-text); font-size: 1.02rem; }
.pw-kbd { display: inline-block; min-width: 1.7em; padding: 1px 6px; border: 1px solid var(--pw-line-2); border-bottom-width: 2px; border-radius: 6px; background: var(--pw-bg-2); color: var(--pw-text-2); font: 500 .8em/1.5 var(--pw-mono); text-align: center; }
.pw-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; border: 0; color: var(--pw-text-3); font-size: .84rem; }
.pw-divider::before, .pw-divider::after { content: ''; flex: 1; height: 1px; background: var(--pw-line); }
hr.pw-divider { display: block; height: 1px; background: var(--pw-line); }
hr.pw-divider::before, hr.pw-divider::after { display: none; }

/* ==========================================================================
   Forms (CSS): field, input, textarea, native select, checkbox, radio,
   switch, range, input group, messages
   ========================================================================== */
.pw-field { display: grid; gap: 6px; font-family: var(--pw-font); color: var(--pw-text); }
.pw-label { font-size: .9rem; font-weight: 600; color: var(--pw-text); }
.pw-label .pw-optional { font-weight: 400; color: var(--pw-text-3); }
.pw-hint { margin: 0; font-size: .84rem; color: var(--pw-text-3); line-height: 1.4; }
.pw-error { margin: 0; display: flex; align-items: flex-start; gap: 6px; font-size: .84rem; font-weight: 500; color: var(--pw-bad); line-height: 1.4; }

.pw-input, .pw-textarea, .pw-native-select { display: block; width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--pw-line-2); border-radius: var(--pw-radius-sm); background: var(--pw-bg); color: var(--pw-text); font: inherit; font-family: var(--pw-font); line-height: 1.4; transition: border-color var(--pw-speed), box-shadow var(--pw-speed); }
.pw-textarea { min-height: 92px; resize: vertical; }
.pw-input::placeholder, .pw-textarea::placeholder { color: var(--pw-text-3); opacity: 1; }
.pw-input:hover, .pw-textarea:hover, .pw-native-select:hover { border-color: var(--pw-text-3); }
.pw-input:focus, .pw-textarea:focus, .pw-native-select:focus { outline: none; border-color: var(--pw-accent); box-shadow: var(--pw-ring); }
.pw-input:disabled, .pw-textarea:disabled, .pw-native-select:disabled { background: var(--pw-bg-2); color: var(--pw-text-3); cursor: not-allowed; }
.pw-input[aria-invalid="true"], .pw-textarea[aria-invalid="true"], .pw-native-select[aria-invalid="true"] { border-color: var(--pw-bad); }
.pw-input[aria-invalid="true"]:focus, .pw-textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--pw-bad) 25%, transparent); }
.pw-input--sm { min-height: 32px; padding: 4px 10px; font-size: .9rem; }
.pw-native-select { appearance: none; -webkit-appearance: none; padding-inline-end: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--pw-text-3) 50%), linear-gradient(135deg, var(--pw-text-3) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
[dir="rtl"] .pw-native-select { background-position: 13px 55%, 18px 55%; }

/* input with a button or text attached */
.pw-input-group { display: flex; align-items: stretch; }
.pw-input-group > * { border-radius: 0; }
.pw-input-group > :first-child { border-start-start-radius: var(--pw-radius-sm); border-end-start-radius: var(--pw-radius-sm); }
.pw-input-group > :last-child { border-start-end-radius: var(--pw-radius-sm); border-end-end-radius: var(--pw-radius-sm); }
.pw-input-group > * + * { margin-inline-start: -1px; }
.pw-input-group > .pw-input { flex: 1; min-width: 0; }
.pw-input-group > .pw-input:focus { position: relative; z-index: 1; }
.pw-input-addon { display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--pw-line-2); background: var(--pw-bg-2); color: var(--pw-text-3); white-space: nowrap; }

/* checkbox and radio */
.pw-check, .pw-radio { display: inline-flex; align-items: flex-start; gap: 10px; color: var(--pw-text); font-family: var(--pw-font); line-height: 1.4; cursor: pointer; }
.pw-check input, .pw-radio input { appearance: none; -webkit-appearance: none; display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid var(--pw-line-2); background: var(--pw-bg); cursor: pointer; transition: background var(--pw-speed), border-color var(--pw-speed); }
.pw-check input { border-radius: 5px; }
.pw-radio input { border-radius: 50%; }
.pw-check input::before { content: ''; width: 14px; height: 14px; background: var(--pw-accent-ink); -webkit-mask: var(--pw-i-check) center / contain no-repeat; mask: var(--pw-i-check) center / contain no-repeat; scale: 0; transition: scale .12s; }
.pw-check input:indeterminate::before { -webkit-mask-image: var(--pw-i-dash); mask-image: var(--pw-i-dash); scale: 1; }
.pw-radio input::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--pw-accent-ink); scale: 0; transition: scale .12s; }
.pw-check input:checked, .pw-check input:indeterminate, .pw-radio input:checked { border-color: var(--pw-accent); background: var(--pw-accent); }
.pw-check input:checked::before, .pw-radio input:checked::before { scale: 1; }
.pw-check input:hover, .pw-radio input:hover { border-color: var(--pw-text-3); }
.pw-check input:focus-visible, .pw-radio input:focus-visible, .pw-switch input:focus-visible { outline: none; box-shadow: var(--pw-ring); }
.pw-check input:disabled, .pw-radio input:disabled, .pw-switch input:disabled { opacity: .5; cursor: not-allowed; }
.pw-check input[aria-invalid="true"], .pw-radio input[aria-invalid="true"] { border-color: var(--pw-bad); }

/* switch: <label class="pw-switch"><input type="checkbox" role="switch"> Label</label> */
.pw-switch { display: inline-flex; align-items: center; gap: 10px; color: var(--pw-text); font-family: var(--pw-font); line-height: 1.4; cursor: pointer; }
.pw-switch input { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 40px; height: 24px; margin: 0; border-radius: 99px; background: var(--pw-line-2); cursor: pointer; transition: background var(--pw-speed); }
.pw-switch input::before { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: translate var(--pw-speed); }
.pw-switch input:checked { background: var(--pw-accent); }
.pw-switch input:checked::before { translate: 16px 0; }
[dir="rtl"] .pw-switch input:checked::before { translate: -16px 0; }

/* range */
.pw-range { appearance: none; -webkit-appearance: none; width: 100%; height: 22px; margin: 0; background: transparent; cursor: pointer; }
.pw-range::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(to right, var(--pw-accent) var(--pw-range, 0%), var(--pw-bg-3) var(--pw-range, 0%)); }
[dir="rtl"] .pw-range::-webkit-slider-runnable-track { background: linear-gradient(to left, var(--pw-accent) var(--pw-range, 0%), var(--pw-bg-3) var(--pw-range, 0%)); }
.pw-range::-moz-range-track { height: 6px; border-radius: 99px; background: var(--pw-bg-3); }
.pw-range::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--pw-accent); }
.pw-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border: 2px solid var(--pw-accent); border-radius: 50%; background: var(--pw-bg); box-shadow: var(--pw-shadow); }
.pw-range::-moz-range-thumb { width: 16px; height: 16px; border: 2px solid var(--pw-accent); border-radius: 50%; background: var(--pw-bg); }
.pw-range:focus-visible { outline: none; }
.pw-range:focus-visible::-webkit-slider-thumb { box-shadow: var(--pw-ring); }
.pw-range:focus-visible::-moz-range-thumb { box-shadow: var(--pw-ring); }

/* ==========================================================================
   Accordion
   ========================================================================== */
.pw-accordion { border: 1px solid var(--pw-line); border-radius: var(--pw-radius); background: var(--pw-bg); color: var(--pw-text); font-family: var(--pw-font); overflow: hidden; }
.pw-accordion-item + .pw-accordion-item { border-top: 1px solid var(--pw-line); }
.pw-accordion-item > :is(h2, h3, h4, h5, h6) { margin: 0; font: inherit; }
.pw-accordion-trigger { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 15px 18px; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 600; line-height: 1.35; text-align: start; cursor: pointer; }
.pw-accordion-trigger::after { content: ''; flex: none; width: 18px; height: 18px; background: var(--pw-text-3); -webkit-mask: var(--pw-i-chevron) center / contain no-repeat; mask: var(--pw-i-chevron) center / contain no-repeat; transition: rotate var(--pw-speed); }
.pw-accordion-trigger[aria-expanded="true"]::after { rotate: 180deg; }
.pw-accordion-trigger:hover { background: var(--pw-bg-2); }
.pw-accordion-trigger:focus-visible { outline: 2px solid var(--pw-accent); outline-offset: -2px; }
.pw-accordion-trigger:disabled { color: var(--pw-text-3); cursor: not-allowed; }
.pw-accordion-body { padding: 2px 18px 18px; color: var(--pw-text-2); line-height: 1.6; }
.pw-accordion-body > :first-child { margin-top: 0; }
.pw-accordion-body > :last-child { margin-bottom: 0; }
/* lines only */
.pw-accordion--plain { border: 0; border-radius: 0; background: transparent; border-top: 1px solid var(--pw-line); border-bottom: 1px solid var(--pw-line); }
.pw-accordion--plain .pw-accordion-trigger, .pw-accordion--plain .pw-accordion-body { padding-inline: 2px; }
.pw-accordion--plain .pw-accordion-trigger:hover { background: transparent; color: var(--pw-accent-text); }
/* separate cards */
.pw-accordion--cards { display: grid; gap: 10px; border: 0; background: transparent; overflow: visible; }
.pw-accordion--cards .pw-accordion-item { border: 1px solid var(--pw-line); border-radius: var(--pw-radius); background: var(--pw-bg); overflow: hidden; }
.pw-accordion--cards .pw-accordion-item.is-open { border-color: var(--pw-line-2); box-shadow: var(--pw-shadow); }

/* ==========================================================================
   Tabs
   ========================================================================== */
.pw-tabs { color: var(--pw-text); font-family: var(--pw-font); }
.pw-tablist { position: relative; display: flex; gap: 4px; border-bottom: 1px solid var(--pw-line); overflow-x: auto; scrollbar-width: none; }
.pw-tablist::-webkit-scrollbar { display: none; }
.pw-tablist > [role="tab"] { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; background: transparent; color: var(--pw-text-3); font: inherit; font-weight: 600; white-space: nowrap; text-decoration: none; cursor: pointer; border-radius: var(--pw-radius-sm) var(--pw-radius-sm) 0 0; }
.pw-tablist > [role="tab"]:hover { color: var(--pw-text); background: var(--pw-bg-2); }
.pw-tablist > [role="tab"][aria-selected="true"] { color: var(--pw-text); }
.pw-tablist > [role="tab"]:disabled, .pw-tablist > [role="tab"][aria-disabled="true"] { color: var(--pw-line-2); cursor: not-allowed; background: transparent; }
.pw-tablist > [role="tab"]:focus-visible { outline: 2px solid var(--pw-accent); outline-offset: -2px; }
/* the moving line */
.pw-tablist::after { content: ''; position: absolute; bottom: 0; left: 0; height: 2px; width: var(--pw-tab-w, 0); translate: var(--pw-tab-x, 0) 0; background: var(--pw-accent); border-radius: 2px 2px 0 0; transition: translate var(--pw-speed), width var(--pw-speed); }
.pw-tabpanel { padding: 18px 2px; line-height: 1.6; }
.pw-tabpanel:focus-visible { outline: 2px solid var(--pw-accent); outline-offset: 2px; border-radius: var(--pw-radius-sm); }
.pw-tabpanel > :first-child { margin-top: 0; }
.pw-tabpanel > :last-child { margin-bottom: 0; }
/* pills */
.pw-tabs--pills .pw-tablist { display: inline-flex; max-width: 100%; padding: 4px; border: 0; border-radius: var(--pw-radius); background: var(--pw-bg-3); }
.pw-tabs--pills .pw-tablist::after { top: 4px; bottom: 4px; height: auto; border-radius: var(--pw-radius-sm); background: var(--pw-bg); box-shadow: var(--pw-shadow); }
.pw-tabs--pills .pw-tablist > [role="tab"] { position: relative; z-index: 1; padding: 7px 14px; border-radius: var(--pw-radius-sm); }
.pw-tabs--pills .pw-tablist > [role="tab"]:hover { background: transparent; }
/* vertical: add data-vertical */
.pw-tabs[data-vertical] { display: grid; grid-template-columns: minmax(140px, max-content) minmax(0, 1fr); gap: 0 22px; }
.pw-tabs[data-vertical] .pw-tablist { flex-direction: column; border-bottom: 0; border-inline-end: 1px solid var(--pw-line); overflow: visible; }
.pw-tabs[data-vertical] .pw-tablist > [role="tab"] { justify-content: flex-start; border-radius: var(--pw-radius-sm) 0 0 var(--pw-radius-sm); }
.pw-tabs[data-vertical] .pw-tablist::after { top: 0; bottom: auto; left: auto; inset-inline-end: -1px; width: 2px; height: var(--pw-tab-h, 0); translate: 0 var(--pw-tab-y, 0); transition: translate var(--pw-speed), height var(--pw-speed); border-radius: 2px; }
.pw-tabs[data-vertical] .pw-tabpanel { padding: 4px 0; }
@media (max-width: 560px) {
  .pw-tabs[data-vertical] { display: block; }
  .pw-tabs[data-vertical] .pw-tablist { flex-direction: row; border-inline-end: 0; border-bottom: 1px solid var(--pw-line); overflow-x: auto; }
  .pw-tabs[data-vertical] .pw-tablist::after { display: none; }
  .pw-tabs[data-vertical] .pw-tablist > [role="tab"][aria-selected="true"] { box-shadow: inset 0 -2px var(--pw-accent); }
  .pw-tabs[data-vertical] .pw-tabpanel { padding: 18px 2px; }
}

/* ==========================================================================
   Modal and drawer
   ========================================================================== */
.pw-modal, .pw-drawer { position: fixed; inset: 0; z-index: var(--pw-z); background: var(--pw-backdrop); color: var(--pw-text); font-family: var(--pw-font); animation: pw-fade var(--pw-speed) ease-out; }
.pw-modal { display: grid; place-items: center; padding: 16px; overflow-y: auto; overscroll-behavior: contain; }
.pw-modal-box { display: flex; flex-direction: column; width: min(100%, 520px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); border-radius: var(--pw-radius-lg); background: var(--pw-bg); box-shadow: var(--pw-shadow-lg); outline: 0; animation: pw-pop .22s cubic-bezier(.2, .8, .3, 1); }
.pw-modal--sm .pw-modal-box { width: min(100%, 380px); }
.pw-modal--lg .pw-modal-box { width: min(100%, 780px); }
.pw-modal--full .pw-modal-box { width: 100%; height: 100%; max-height: none; }
.pw-modal-head, .pw-drawer-head { display: flex; align-items: center; gap: 12px; padding: 16px 14px 10px 22px; }
.pw-modal-head :is(h1, h2, h3), .pw-drawer-head :is(h1, h2, h3) { flex: 1; min-width: 0; margin: 0; font-size: 1.15rem; line-height: 1.3; font-weight: 700; }
.pw-modal-body, .pw-drawer-body { flex: 1; min-height: 0; padding: 6px 22px 22px; overflow-y: auto; line-height: 1.55; color: var(--pw-text-2); overscroll-behavior: contain; }
.pw-modal-body > :first-child, .pw-drawer-body > :first-child { margin-top: 0; }
.pw-modal-body > :last-child, .pw-drawer-body > :last-child { margin-bottom: 0; }
.pw-modal-foot, .pw-drawer-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--pw-line); }
.pw-modal.is-closing, .pw-drawer.is-closing { animation: pw-fade-out .16s ease-in forwards; }
.pw-modal.is-closing .pw-modal-box { animation: pw-pop-out .16s ease-in forwards; }
.pw-modal-box.is-nudge { animation: pw-nudge .3s; }

.pw-drawer-panel { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; display: flex; flex-direction: column; width: min(420px, 92vw); background: var(--pw-bg); box-shadow: var(--pw-shadow-lg); outline: 0; animation: pw-slide-end .26s cubic-bezier(.2, .8, .3, 1); }
.pw-drawer[data-side="left"] .pw-drawer-panel { inset-inline: 0 auto; animation-name: pw-slide-start; }
.pw-drawer[data-side="bottom"] .pw-drawer-panel { inset: auto 0 0 0; width: auto; max-height: 86vh; max-height: 86dvh; border-radius: var(--pw-radius-lg) var(--pw-radius-lg) 0 0; animation-name: pw-slide-up; }
.pw-drawer.is-closing .pw-drawer-panel { animation: pw-slide-end-out .18s ease-in forwards; }
.pw-drawer.is-closing[data-side="left"] .pw-drawer-panel { animation-name: pw-slide-start-out; }
.pw-drawer.is-closing[data-side="bottom"] .pw-drawer-panel { animation-name: pw-slide-up-out; }
[dir="rtl"] .pw-drawer-panel { animation-name: pw-slide-start; }
[dir="rtl"] .pw-drawer[data-side="left"] .pw-drawer-panel { animation-name: pw-slide-end; }

@media (max-width: 560px) {
  .pw-modal:not(.pw-modal--full) { place-items: end center; padding: 0; }
  .pw-modal:not(.pw-modal--full) .pw-modal-box { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: var(--pw-radius-lg) var(--pw-radius-lg) 0 0; animation-name: pw-slide-up; }
  .pw-modal.is-closing:not(.pw-modal--full) .pw-modal-box { animation-name: pw-slide-up-out; }
}
@keyframes pw-fade { from { opacity: 0; } }
@keyframes pw-fade-out { to { opacity: 0; } }
@keyframes pw-pop { from { opacity: 0; scale: .96; translate: 0 8px; } }
@keyframes pw-pop-out { to { opacity: 0; scale: .97; } }
@keyframes pw-nudge { 30% { scale: 1.02; } 60% { scale: .995; } }
@keyframes pw-slide-end { from { translate: 100% 0; } }
@keyframes pw-slide-end-out { to { translate: 100% 0; } }
@keyframes pw-slide-start { from { translate: -100% 0; } }
@keyframes pw-slide-start-out { to { translate: -100% 0; } }
@keyframes pw-slide-up { from { translate: 0 100%; } }
@keyframes pw-slide-up-out { to { translate: 0 100%; } }

/* ==========================================================================
   Dropdown menu and context menu
   ========================================================================== */
.pw-menu { min-width: 190px; max-width: min(320px, calc(100vw - 16px)); padding: 5px; border: 1px solid var(--pw-line); border-radius: var(--pw-radius); background: var(--pw-bg); color: var(--pw-text); box-shadow: var(--pw-shadow-lg); font-family: var(--pw-font); font-size: .94rem; overflow-y: auto; animation: pw-menu-in .12s ease-out; }
.pw-menu [role^="menuitem"] { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; padding: 6px 10px; border: 0; border-radius: var(--pw-radius-sm); background: transparent; color: inherit; font: inherit; line-height: 1.3; text-align: start; text-decoration: none; cursor: pointer; }
.pw-menu [role^="menuitem"]:hover, .pw-menu [role^="menuitem"]:focus { background: var(--pw-bg-3); outline: 0; }
.pw-menu [role^="menuitem"]:disabled, .pw-menu [role^="menuitem"][aria-disabled="true"] { color: var(--pw-text-3); background: transparent; cursor: not-allowed; }
.pw-menu [role="menuitemcheckbox"]::before, .pw-menu [role="menuitemradio"]::before { content: ''; flex: none; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--pw-i-check) center / contain no-repeat; mask: var(--pw-i-check) center / contain no-repeat; opacity: 0; }
.pw-menu [aria-checked="true"]::before { opacity: 1; }
.pw-menu hr { margin: 5px -5px; border: 0; border-top: 1px solid var(--pw-line); }
.pw-menu-label { padding: 6px 10px 4px; font-size: .78rem; font-weight: 600; color: var(--pw-text-3); }
.pw-menu .pw-menu-danger { color: var(--pw-bad); }
.pw-menu kbd { margin-inline-start: auto; padding-inline-start: 14px; font: inherit; font-size: .8em; color: var(--pw-text-3); }
.pw-menu .pw-icon { color: var(--pw-text-3); }
@keyframes pw-menu-in { from { opacity: 0; translate: 0 -4px; } }

/* ==========================================================================
   Tooltip and popover
   ========================================================================== */
.pw-tip { width: max-content; max-width: min(260px, calc(100vw - 16px)); padding: 6px 10px; border: 0; border-radius: var(--pw-radius-sm); background: var(--pw-text); color: var(--pw-bg); font-family: var(--pw-font); font-size: .82rem; font-weight: 500; line-height: 1.4; overflow: visible; z-index: calc(var(--pw-z) + 150); animation: pw-fade .12s; }
.pw-tip::after, .pw-popover::after { content: ''; position: absolute; width: 10px; height: 10px; background: inherit; rotate: 45deg; }
.pw-tip[data-side="top"]::after, .pw-popover[data-side="top"]::after { bottom: -5px; left: calc(var(--pw-arrow-x) - 5px); }
.pw-tip[data-side="bottom"]::after, .pw-popover[data-side="bottom"]::after { top: -5px; left: calc(var(--pw-arrow-x) - 5px); }
.pw-tip[data-side="left"]::after, .pw-popover[data-side="left"]::after { right: -5px; top: calc(var(--pw-arrow-y) - 5px); }
.pw-tip[data-side="right"]::after, .pw-popover[data-side="right"]::after { left: -5px; top: calc(var(--pw-arrow-y) - 5px); }

.pw-popover { width: max-content; max-width: min(340px, calc(100vw - 16px)); padding: 16px; border: 1px solid var(--pw-line); border-radius: var(--pw-radius); background: var(--pw-bg); color: var(--pw-text-2); box-shadow: var(--pw-shadow-lg); font-family: var(--pw-font); font-size: .94rem; line-height: 1.5; overflow: visible; outline: 0; animation: pw-fade .14s; }
.pw-popover::after { border: 1px solid var(--pw-line); }
.pw-popover[data-side="top"]::after { bottom: -6px; border-top-color: transparent; border-left-color: transparent; }
.pw-popover[data-side="bottom"]::after { top: -6px; border-bottom-color: transparent; border-right-color: transparent; }
.pw-popover[data-side="left"]::after { right: -6px; border-bottom-color: transparent; border-left-color: transparent; }
.pw-popover[data-side="right"]::after { left: -6px; border-top-color: transparent; border-right-color: transparent; }
.pw-popover > :first-child { margin-top: 0; }
.pw-popover > :last-child { margin-bottom: 0; }
.pw-popover :is(h2, h3, h4) { margin: 0 0 6px; font-size: 1rem; color: var(--pw-text); }

/* ==========================================================================
   Toast
   ========================================================================== */
.pw-toasts { position: fixed; z-index: calc(var(--pw-z) + 200); display: flex; flex-direction: column; gap: 10px; width: min(380px, 100vw); max-height: 100vh; margin: 0; padding: 16px; border: 0; background: transparent; overflow: visible; pointer-events: none; font-family: var(--pw-font); }
.pw-toasts:popover-open { inset: auto; }
.pw-toasts[data-position^="top"] { top: 0; flex-direction: column-reverse; }
.pw-toasts[data-position^="bottom"] { bottom: 0; }
.pw-toasts[data-position$="left"] { left: 0; }
.pw-toasts[data-position$="right"] { right: 0; }
.pw-toasts[data-position$="center"] { left: 50%; translate: -50% 0; }
.pw-toast { position: relative; display: flex; align-items: flex-start; gap: 11px; padding: 12px 10px 12px 14px; border: 1px solid var(--pw-line); border-radius: var(--pw-radius); background: var(--pw-bg); color: var(--pw-text); box-shadow: var(--pw-shadow-lg); font-size: .94rem; line-height: 1.4; pointer-events: auto; overflow: hidden; }
.pw-toast.is-in { animation: pw-toast-in .24s cubic-bezier(.2, .8, .3, 1); }
.pw-toast.is-out { animation: pw-toast-out .18s ease-in forwards; }
.pw-toast > .pw-icon { margin-top: 1px; width: 20px; height: 20px; color: var(--pw-text-3); }
.pw-toast[data-type="success"] > .pw-icon { color: var(--pw-ok); }
.pw-toast[data-type="error"] > .pw-icon { color: var(--pw-bad); }
.pw-toast[data-type="warning"] > .pw-icon { color: var(--pw-warn); }
.pw-toast[data-type="info"] > .pw-icon { color: var(--pw-info); }
.pw-toast-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pw-toast-text b { display: block; font-weight: 650; }
.pw-toast-text span { color: var(--pw-text-2); }
.pw-toast-action { flex: none; align-self: center; padding: 5px 10px; border: 1px solid var(--pw-line-2); border-radius: var(--pw-radius-sm); background: transparent; color: var(--pw-text); font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; }
.pw-toast-action:hover { background: var(--pw-bg-3); }
.pw-toast-action:focus-visible { outline: none; box-shadow: var(--pw-ring); }
.pw-toast .pw-close { width: 28px; height: 28px; margin: -3px 0; }
.pw-toast-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--pw-accent); opacity: .55; transform-origin: left; animation: pw-toast-bar linear forwards; animation-duration: var(--pw-toast-ms, 4000ms); }
.pw-toast.is-paused .pw-toast-bar { animation-play-state: paused; }
@keyframes pw-toast-in { from { opacity: 0; translate: 0 12px; scale: .97; } }
@keyframes pw-toast-out { to { opacity: 0; scale: .96; } }
@keyframes pw-toast-bar { to { transform: scaleX(0); } }

/* ==========================================================================
   Command palette
   ========================================================================== */
.pw-command { position: fixed; inset: 0; z-index: var(--pw-z); display: grid; align-items: start; justify-items: center; padding: min(14vh, 120px) 16px 16px; background: var(--pw-backdrop); color: var(--pw-text); font-family: var(--pw-font); animation: pw-fade .14s ease-out; }
.pw-command-box { display: flex; flex-direction: column; width: min(100%, 600px); max-height: min(520px, calc(100vh - 32px)); border-radius: var(--pw-radius-lg); background: var(--pw-bg); box-shadow: var(--pw-shadow-lg); overflow: hidden; animation: pw-pop .18s cubic-bezier(.2, .8, .3, 1); }
.pw-command-search { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--pw-line); color: var(--pw-text-3); }
.pw-command-input { flex: 1; min-width: 0; height: 54px; border: 0; background: transparent; color: var(--pw-text); font: inherit; font-size: 1.05rem; outline: 0; }
.pw-command-input::placeholder { color: var(--pw-text-3); }
.pw-command-list { flex: 1; min-height: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; }
.pw-command-group + .pw-command-group { margin-top: 4px; }
.pw-command-heading { padding: 8px 10px 4px; font-size: .78rem; font-weight: 600; color: var(--pw-text-3); }
.pw-command-item { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 40px; padding: 6px 10px; border: 0; border-radius: var(--pw-radius-sm); background: transparent; color: inherit; font: inherit; text-align: start; text-decoration: none; cursor: pointer; scroll-margin: 6px; }
.pw-command-item.is-active { background: var(--pw-bg-3); }
.pw-command-item .pw-icon, .pw-command-item > svg { flex: none; width: 18px; height: 18px; color: var(--pw-text-3); }
.pw-command-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-command-label mark { background: transparent; color: var(--pw-accent-text); font-weight: 700; }
.pw-command-hint { flex: none; font-size: .84rem; color: var(--pw-text-3); }
.pw-command kbd { flex: none; min-width: 22px; padding: 2px 6px; border: 1px solid var(--pw-line-2); border-radius: 5px; background: var(--pw-bg-2); color: var(--pw-text-2); font: 500 .74rem/1.4 var(--pw-mono); text-align: center; }
.pw-command-empty { padding: 30px 16px; text-align: center; color: var(--pw-text-3); }
.pw-command-foot { display: flex; align-items: center; gap: 16px; padding: 9px 16px; border-top: 1px solid var(--pw-line); font-size: .8rem; color: var(--pw-text-3); }
.pw-command-foot span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 560px) { .pw-command { padding: 10px; } .pw-command-foot { display: none; } }

/* ==========================================================================
   Select (single, searchable, multiple)
   ========================================================================== */
.pw-select { position: relative; display: block; font-family: var(--pw-font); }
.pw-select > select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.pw-select-control { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 40px; padding: 4px 8px 4px 12px; border: 1px solid var(--pw-line-2); border-radius: var(--pw-radius-sm); background: var(--pw-bg); color: var(--pw-text); line-height: 1.4; cursor: pointer; transition: border-color var(--pw-speed), box-shadow var(--pw-speed); }
.pw-select-control:hover { border-color: var(--pw-text-3); }
.pw-select-control:focus-visible, .pw-select-control[aria-expanded="true"] { outline: none; border-color: var(--pw-accent); box-shadow: var(--pw-ring); }
.pw-select-control[aria-disabled="true"] { background: var(--pw-bg-2); color: var(--pw-text-3); cursor: not-allowed; }
.pw-select.is-invalid .pw-select-control { border-color: var(--pw-bad); }
.pw-select-value { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px; overflow: hidden; }
.pw-select-value > span:only-child:not(.pw-chip) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-select-value.is-placeholder { color: var(--pw-text-3); }
.pw-select-clear { display: grid; place-items: center; flex: none; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--pw-text-3); cursor: pointer; }
.pw-select-clear::before { content: ''; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--pw-i-x) center / contain no-repeat; mask: var(--pw-i-x) center / contain no-repeat; }
.pw-select-clear:hover { background: var(--pw-bg-3); color: var(--pw-text); }
.pw-select-clear:focus-visible { outline: 2px solid var(--pw-accent); }
.pw-select-control::after { content: ''; flex: none; width: 18px; height: 18px; background: var(--pw-text-3); -webkit-mask: var(--pw-i-chevron) center / contain no-repeat; mask: var(--pw-i-chevron) center / contain no-repeat; }

.pw-select-panel { display: flex; flex-direction: column; min-width: 180px; padding: 0; border: 1px solid var(--pw-line); border-radius: var(--pw-radius); background: var(--pw-bg); color: var(--pw-text); box-shadow: var(--pw-shadow-lg); font-family: var(--pw-font); font-size: .95rem; overflow: hidden; animation: pw-menu-in .12s ease-out; }
.pw-select-search { flex: none; margin: 6px 6px 0; width: calc(100% - 12px); min-height: 36px; padding: 6px 10px; border: 1px solid var(--pw-line-2); border-radius: var(--pw-radius-sm); background: var(--pw-bg); color: var(--pw-text); font: inherit; }
.pw-select-search:focus { outline: none; border-color: var(--pw-accent); box-shadow: var(--pw-ring); }
.pw-select-list { flex: 1; min-height: 0; max-height: 280px; padding: 5px; overflow-y: auto; outline: 0; overscroll-behavior: contain; }
.pw-select-option { display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 6px 10px; border-radius: var(--pw-radius-sm); line-height: 1.3; cursor: pointer; scroll-margin: 5px; }
.pw-select-option::before { content: ''; flex: none; width: 16px; height: 16px; background: var(--pw-accent-text); -webkit-mask: var(--pw-i-check) center / contain no-repeat; mask: var(--pw-i-check) center / contain no-repeat; opacity: 0; }
.pw-select-option[aria-selected="true"] { font-weight: 600; }
.pw-select-option[aria-selected="true"]::before { opacity: 1; }
.pw-select-option.is-active { background: var(--pw-bg-3); }
.pw-select-option[aria-disabled="true"] { color: var(--pw-text-3); cursor: not-allowed; }
.pw-select-group { padding: 8px 10px 3px; font-size: .78rem; font-weight: 600; color: var(--pw-text-3); }
.pw-select-empty { padding: 14px 12px; color: var(--pw-text-3); text-align: center; }

/* ==========================================================================
   Date picker
   ========================================================================== */
.pw-date-field { position: relative; display: block; }
.pw-date-field > input { padding-inline-end: 42px; }
.pw-date-btn { position: absolute; top: 50%; inset-inline-end: 4px; translate: 0 -50%; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--pw-radius-sm); background: transparent; color: var(--pw-text-3); cursor: pointer; }
.pw-date-btn:hover { background: var(--pw-bg-3); color: var(--pw-text); }
.pw-date-btn:focus-visible { outline: none; box-shadow: var(--pw-ring); }
.pw-date-btn:disabled { opacity: .5; cursor: not-allowed; }
.pw-date { padding: 12px; border: 1px solid var(--pw-line); border-radius: var(--pw-radius); background: var(--pw-bg); color: var(--pw-text); box-shadow: var(--pw-shadow-lg); font-family: var(--pw-font); font-size: .92rem; outline: 0; animation: pw-menu-in .12s ease-out; }
.pw-date-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.pw-date-title { flex: 1; display: flex; justify-content: center; gap: 4px; }
.pw-date-title select { min-height: 32px; padding: 2px 6px; border: 1px solid transparent; border-radius: var(--pw-radius-sm); background: transparent; color: var(--pw-text); font: inherit; font-weight: 650; cursor: pointer; }
.pw-date-title select:hover { background: var(--pw-bg-3); }
.pw-date-title select:focus-visible { outline: none; border-color: var(--pw-accent); box-shadow: var(--pw-ring); }
.pw-date-nav { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--pw-radius-sm); background: transparent; color: var(--pw-text-2); cursor: pointer; }
.pw-date-nav:hover { background: var(--pw-bg-3); color: var(--pw-text); }
.pw-date-nav:focus-visible { outline: none; box-shadow: var(--pw-ring); }
.pw-date-nav:disabled { opacity: .35; cursor: not-allowed; }
[dir="rtl"] .pw-date-nav .pw-icon { scale: -1 1; }
.pw-date-months { display: flex; gap: 18px; }
.pw-date-caption { margin-bottom: 4px; font-weight: 650; text-align: center; }
.pw-date table { border-collapse: collapse; }
.pw-date th { width: 36px; height: 28px; padding: 0; font-size: .76rem; font-weight: 600; color: var(--pw-text-3); text-align: center; }
.pw-date td { padding: 1px 0; }
.pw-date-day { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--pw-radius-sm); background: transparent; color: var(--pw-text); font: inherit; font-variant-numeric: tabular-nums; cursor: pointer; }
.pw-date-day:hover { background: var(--pw-bg-3); }
.pw-date-day:focus-visible { outline: 2px solid var(--pw-accent); outline-offset: -2px; }
.pw-date-day.is-today { font-weight: 750; color: var(--pw-accent-text); box-shadow: inset 0 0 0 1px var(--pw-line-2); }
.pw-date-day.is-between { border-radius: 0; background: color-mix(in srgb, var(--pw-accent) 13%, var(--pw-bg)); }
.pw-date-day.is-selected { background: var(--pw-accent); color: var(--pw-accent-ink); font-weight: 650; box-shadow: none; }
.pw-date-day.is-start { border-start-end-radius: 0; border-end-end-radius: 0; }
.pw-date-day.is-end { border-start-start-radius: 0; border-end-start-radius: 0; }
.pw-date-day.is-start.is-end { border-radius: var(--pw-radius-sm); }
.pw-date-day[aria-disabled="true"] { color: var(--pw-text-3); opacity: .5; text-decoration: line-through; background: transparent; cursor: not-allowed; }
.pw-date-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--pw-line); }
.pw-date-foot button { padding: 5px 10px; border: 0; border-radius: var(--pw-radius-sm); background: transparent; color: var(--pw-accent-text); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.pw-date-foot button:hover { background: var(--pw-bg-3); }
.pw-date-foot button:focus-visible { outline: none; box-shadow: var(--pw-ring); }

/* ==========================================================================
   File upload
   ========================================================================== */
.pw-upload { display: grid; gap: 10px; font-family: var(--pw-font); color: var(--pw-text); }
.pw-upload-zone { position: relative; display: grid; justify-items: center; gap: 4px; padding: 26px 18px; border: 1.5px dashed var(--pw-line-2); border-radius: var(--pw-radius); background: var(--pw-bg-2); color: var(--pw-text-2); text-align: center; line-height: 1.45; cursor: pointer; transition: border-color var(--pw-speed), background var(--pw-speed); }
.pw-upload-zone:hover { border-color: var(--pw-text-3); }
.pw-upload-zone.is-over { border-color: var(--pw-accent); border-style: solid; background: color-mix(in srgb, var(--pw-accent) 8%, var(--pw-bg)); }
.pw-upload-zone:focus-within { border-color: var(--pw-accent); box-shadow: var(--pw-ring); }
.pw-upload-zone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.pw-upload-zone input[type="file"]:disabled { cursor: not-allowed; }
.pw-upload-zone .pw-icon { width: 26px; height: 26px; color: var(--pw-text-3); }
.pw-upload-zone b { color: var(--pw-accent-text); }
.pw-upload-zone small { font-size: .84rem; color: var(--pw-text-3); }
.pw-upload-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pw-upload-file { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 9px 8px 9px 10px; border: 1px solid var(--pw-line); border-radius: var(--pw-radius); background: var(--pw-bg); }
.pw-upload-thumb { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--pw-radius-sm); background: var(--pw-bg-3); color: var(--pw-text-3); overflow: hidden; grid-column: 1; grid-row: 1 / span 2; }
.pw-upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pw-upload-name { grid-column: 2; font-size: .92rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-upload-meta { grid-column: 2; font-size: .82rem; color: var(--pw-text-3); }
.pw-upload-file .pw-close { grid-column: 3; grid-row: 1 / span 2; width: 30px; height: 30px; }
.pw-upload-file .pw-progress { grid-column: 2; height: 5px; }
.pw-upload-file.is-done .pw-upload-meta { color: var(--pw-ok); }
.pw-upload-file.is-error { border-color: var(--pw-bad); }
.pw-upload-file.is-error .pw-upload-meta { color: var(--pw-bad); }
.pw-upload-errors { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: .86rem; color: var(--pw-bad); }

/* ==========================================================================
   Rating, tag input, code input, stepper and other field helpers
   ========================================================================== */
/* rating: radio buttons drawn as stars */
.pw-rating { margin: 0; padding: 0; border: 0; min-width: 0; font-family: var(--pw-font); color: var(--pw-text); }
.pw-rating legend { padding: 0; margin-bottom: 6px; font-size: .9rem; font-weight: 600; }
.pw-rating-stars { display: inline-flex; vertical-align: middle; }
.pw-rating-stars label { position: relative; display: block; width: 32px; height: 32px; cursor: pointer; }
.pw-rating-stars input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pw-rating-stars label::before { content: ''; position: absolute; inset: 3px; background: var(--pw-line-2); -webkit-mask: var(--pw-i-star) center / contain no-repeat; mask: var(--pw-i-star) center / contain no-repeat; transition: background .12s, scale .12s; }
.pw-rating-stars label.is-on::before { background: var(--pw-rating, #e8a013); }
/* without JavaScript the stars still fill, in browsers that know :has() */
html:not(.pw-js) .pw-rating-stars label:has(input:checked)::before, html:not(.pw-js) .pw-rating-stars label:has(~ label input:checked)::before { background: var(--pw-rating, #e8a013); }
.pw-rating-stars label:hover::before { scale: 1.12; }
.pw-rating-stars label:focus-within { outline: 2px solid var(--pw-accent); outline-offset: 1px; border-radius: 6px; }
.pw-rating-stars.is-readonly label { cursor: default; }
.pw-rating-stars.is-readonly label:hover::before { scale: 1; }
.pw-rating-text { margin-inline-start: 10px; vertical-align: middle; font-size: .9rem; color: var(--pw-text-2); }
.pw-rating--lg .pw-rating-stars label { width: 42px; height: 42px; }
/* read-only stars: <span class="pw-stars" style="--value: 4.5" role="img" aria-label="4.5 out of 5"></span> */
.pw-stars { display: inline-block; width: 100px; height: 20px; vertical-align: middle; background: linear-gradient(to right, var(--pw-rating, #e8a013) calc(var(--value, 0) / 5 * 100%), var(--pw-line-2) 0); -webkit-mask: var(--pw-i-star) 0 50% / 20px 20px repeat-x; mask: var(--pw-i-star) 0 50% / 20px 20px repeat-x; }
[dir="rtl"] .pw-stars { scale: -1 1; }

/* tag input */
.pw-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 40px; padding: 5px 8px; border: 1px solid var(--pw-line-2); border-radius: var(--pw-radius-sm); background: var(--pw-bg); color: var(--pw-text); font-family: var(--pw-font); cursor: text; transition: border-color var(--pw-speed), box-shadow var(--pw-speed); }
.pw-tags:focus-within { border-color: var(--pw-accent); box-shadow: var(--pw-ring); }
.pw-tags.is-disabled { background: var(--pw-bg-2); cursor: not-allowed; }
.pw-tags-input { flex: 1; min-width: 90px; height: 28px; padding: 0 4px; border: 0; background: transparent; color: inherit; font: inherit; outline: 0; }
.pw-tags-list { min-width: 160px; max-height: 240px; padding: 5px; border: 1px solid var(--pw-line); border-radius: var(--pw-radius); background: var(--pw-bg); color: var(--pw-text); box-shadow: var(--pw-shadow-lg); font-family: var(--pw-font); font-size: .95rem; overflow-y: auto; }
.pw-tags-list [role="option"] { padding: 7px 10px; border-radius: var(--pw-radius-sm); cursor: pointer; }
.pw-tags-list [role="option"].is-active { background: var(--pw-bg-3); }

/* one-time code */
.pw-otp { display: inline-flex; gap: 8px; font-family: var(--pw-font); }
.pw-otp input { width: 44px; height: 52px; padding: 0; border: 1px solid var(--pw-line-2); border-radius: var(--pw-radius-sm); background: var(--pw-bg); color: var(--pw-text); font: 600 1.35rem/1 var(--pw-mono); text-align: center; caret-color: var(--pw-accent); transition: border-color var(--pw-speed), box-shadow var(--pw-speed); }
.pw-otp input:focus { outline: none; border-color: var(--pw-accent); box-shadow: var(--pw-ring); }
.pw-otp input:disabled { background: var(--pw-bg-2); color: var(--pw-text-3); }
.pw-otp.is-invalid input { border-color: var(--pw-bad); }
.pw-otp-gap { align-self: center; width: 10px; height: 2px; background: var(--pw-line-2); }
@media (max-width: 400px) { .pw-otp { gap: 5px; } .pw-otp input { width: 38px; height: 48px; } }

/* stepper */
.pw-stepper { display: inline-flex; align-items: stretch; font-family: var(--pw-font); }
.pw-stepper input { width: 64px; min-height: 40px; padding: 4px; border: 1px solid var(--pw-line-2); border-inline: 0; border-radius: 0; background: var(--pw-bg); color: var(--pw-text); font: inherit; font-variant-numeric: tabular-nums; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.pw-stepper input::-webkit-inner-spin-button, .pw-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pw-stepper input:focus { outline: none; position: relative; box-shadow: inset 0 0 0 2px var(--pw-accent); }
.pw-stepper button { display: grid; place-items: center; width: 40px; padding: 0; border: 1px solid var(--pw-line-2); background: var(--pw-bg-2); color: var(--pw-text); cursor: pointer; }
.pw-stepper button:first-child { border-radius: var(--pw-radius-sm) 0 0 var(--pw-radius-sm); }
.pw-stepper button:last-child { border-radius: 0 var(--pw-radius-sm) var(--pw-radius-sm) 0; }
[dir="rtl"] .pw-stepper button:first-child { border-radius: 0 var(--pw-radius-sm) var(--pw-radius-sm) 0; }
[dir="rtl"] .pw-stepper button:last-child { border-radius: var(--pw-radius-sm) 0 0 var(--pw-radius-sm); }
.pw-stepper button:hover { background: var(--pw-bg-3); }
.pw-stepper button:focus-visible { outline: none; position: relative; box-shadow: var(--pw-ring); }
.pw-stepper button:disabled { color: var(--pw-line-2); cursor: not-allowed; background: var(--pw-bg-2); }

/* password field with a show button, and the character counter */
.pw-password { position: relative; display: block; }
.pw-password > input { padding-inline-end: 44px; }
.pw-password-toggle { position: absolute; top: 50%; inset-inline-end: 4px; translate: 0 -50%; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--pw-radius-sm); background: transparent; color: var(--pw-text-3); cursor: pointer; }
.pw-password-toggle:hover { background: var(--pw-bg-3); color: var(--pw-text); }
.pw-password-toggle:focus-visible { outline: none; box-shadow: var(--pw-ring); }
.pw-count { justify-self: end; font-size: .82rem; color: var(--pw-text-3); font-variant-numeric: tabular-nums; }
.pw-count.is-near { color: var(--pw-warn); }
.pw-count.is-full { color: var(--pw-bad); font-weight: 600; }

/* ==========================================================================
   Carousel
   ========================================================================== */
/* slides per view: style="--pw-per-view: 3; --pw-per-view-md: 2; --pw-per-view-sm: 1" (md: up to 900px, sm: up to 640px) */
.pw-carousel { position: relative; --pw-gap: 16px; --pw-n: var(--pw-per-view, 1); font-family: var(--pw-font); color: var(--pw-text); }
@media (max-width: 900px) { .pw-carousel { --pw-n: var(--pw-per-view-md, var(--pw-per-view, 1)); } }
@media (max-width: 640px) { .pw-carousel { --pw-n: var(--pw-per-view-sm, 1); } }
.pw-carousel-track { display: flex; gap: var(--pw-gap); margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: var(--pw-radius); }
.pw-carousel-track::-webkit-scrollbar { display: none; }
.pw-carousel-track:focus-visible { outline: 2px solid var(--pw-accent); outline-offset: 2px; }
.pw-slide { flex: 0 0 calc((100% - var(--pw-gap) * (var(--pw-n) - 1)) / var(--pw-n)); min-width: 0; scroll-snap-align: start; }
.pw-slide > img { display: block; width: 100%; height: auto; border-radius: var(--pw-radius); }
.pw-carousel-bar { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.pw-carousel-dots { display: flex; flex-wrap: wrap; gap: 2px; margin-inline-end: auto; }
.pw-carousel-dots button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.pw-carousel-dots button::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--pw-line-2); transition: background var(--pw-speed), scale var(--pw-speed); }
.pw-carousel-dots button:hover::before { background: var(--pw-text-3); }
.pw-carousel-dots button[aria-current="true"]::before { background: var(--pw-accent); scale: 1.35; }
.pw-carousel-dots button:focus-visible { outline: 2px solid var(--pw-accent); }
.pw-carousel-btn { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--pw-line-2); border-radius: 50%; background: var(--pw-bg); color: var(--pw-text); cursor: pointer; }
.pw-carousel-btn:hover { background: var(--pw-bg-3); }
.pw-carousel-btn:focus-visible { outline: none; box-shadow: var(--pw-ring); border-color: var(--pw-accent); }
.pw-carousel-btn:disabled { color: var(--pw-line-2); cursor: not-allowed; background: var(--pw-bg); }
[dir="rtl"] .pw-carousel-btn[data-dir] .pw-icon { scale: -1 1; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.pw-lightbox { position: fixed; inset: 0; z-index: var(--pw-z); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: rgba(8, 9, 12, .93); color: #fff; font-family: var(--pw-font, inherit); animation: pw-fade .16s ease-out; touch-action: pan-y; }
.pw-lightbox-top { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; font-size: .9rem; color: #d5d8de; font-variant-numeric: tabular-nums; }
.pw-lightbox-top .pw-close { margin-inline-start: auto; color: #fff; width: 40px; height: 40px; }
.pw-lightbox-top .pw-close:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.pw-lightbox .pw-close:focus-visible, .pw-lightbox-nav:focus-visible { outline: 2px solid #fff; outline-offset: 1px; box-shadow: none; }
.pw-lightbox-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 60px; }
.pw-lightbox-stage img { max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; border-radius: 4px; user-select: none; -webkit-user-drag: none; }
.pw-lightbox-stage img.is-loading { opacity: 0; }
.pw-lightbox-stage .pw-spinner { position: absolute; border-color: rgba(255, 255, 255, .25); border-top-color: #fff; }
.pw-lightbox-nav { position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.pw-lightbox-nav:hover { background: rgba(255, 255, 255, .24); }
.pw-lightbox-nav[data-dir="-1"] { left: 10px; }
.pw-lightbox-nav[data-dir="1"] { right: 10px; }
.pw-lightbox-caption { padding: 12px 18px 18px; text-align: center; font-size: .95rem; line-height: 1.45; color: #e6e8ec; min-height: 20px; }
.pw-lightbox-error { color: #ffb4bf; }
@media (max-width: 560px) { .pw-lightbox-stage { padding: 0 6px; } .pw-lightbox-nav { top: auto; bottom: 8px; translate: none; } }

/* ==========================================================================
   Image compare
   ========================================================================== */
.pw-compare { position: relative; display: block; --pw-pos: 50%; overflow: hidden; border-radius: var(--pw-radius); user-select: none; -webkit-user-select: none; font-family: var(--pw-font); line-height: 0; }
.pw-compare > img, .pw-compare > picture, .pw-compare > picture img { display: block; width: 100%; height: auto; }
.pw-compare > :nth-child(2) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 0 0 var(--pw-pos)); }
[dir="rtl"] .pw-compare > :nth-child(2) { clip-path: inset(0 var(--pw-pos) 0 0); }
.pw-compare-line { position: absolute; top: 0; bottom: 0; inset-inline-start: var(--pw-pos); width: 2px; margin-inline-start: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .2); pointer-events: none; }
.pw-compare-line::after { content: ''; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; translate: -50% -50%; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314161b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 22px no-repeat; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.pw-compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.pw-compare:has(input:focus-visible) .pw-compare-line::after { outline: 3px solid var(--pw-accent); outline-offset: 2px; }
.pw-compare-label { position: absolute; top: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(12, 14, 20, .68); color: #fff; font-size: .8rem; font-weight: 600; line-height: 1.4; pointer-events: none; }
.pw-compare-label[data-side="before"] { inset-inline-start: 12px; }
.pw-compare-label[data-side="after"] { inset-inline-end: 12px; }

/* ==========================================================================
   Countdown
   ========================================================================== */
.pw-countdown { display: inline-flex; gap: 10px; font-family: var(--pw-font); color: var(--pw-text); }
.pw-countdown-unit { display: grid; justify-items: center; gap: 2px; min-width: 64px; padding: 12px 8px 9px; border: 1px solid var(--pw-line); border-radius: var(--pw-radius); background: var(--pw-bg); }
.pw-countdown-unit b { font-size: 1.9rem; font-weight: 750; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.pw-countdown-unit small { font-size: .76rem; color: var(--pw-text-3); }
.pw-countdown--plain { gap: 4px; align-items: baseline; }
.pw-countdown--plain .pw-countdown-unit { display: inline-flex; align-items: baseline; gap: 3px; min-width: 0; padding: 0; border: 0; background: transparent; }
.pw-countdown--plain .pw-countdown-unit b { font-size: inherit; letter-spacing: 0; }
.pw-countdown--plain .pw-countdown-unit small { font-size: inherit; margin-inline-end: 6px; }
.pw-countdown-done { font-weight: 650; }
@media (max-width: 400px) { .pw-countdown { gap: 6px; } .pw-countdown-unit { min-width: 54px; } .pw-countdown-unit b { font-size: 1.5rem; } }

/* ==========================================================================
   Code block and copy button
   ========================================================================== */
.pw-codeblock { border: 1px solid var(--pw-line); border-radius: var(--pw-radius); background: var(--pw-code-bg, #14161c); color: var(--pw-code-text, #e4e7ee); font-family: var(--pw-font); overflow: hidden; }
.pw-codeblock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 4px 6px 4px 14px; border-bottom: 1px solid rgba(255, 255, 255, .09); font-size: .8rem; color: #a3abba; }
.pw-codeblock-head button { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 10px; border: 0; border-radius: var(--pw-radius-sm); background: transparent; color: #c9cfda; font: inherit; font-weight: 600; cursor: pointer; }
.pw-codeblock-head button:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.pw-codeblock-head button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.pw-codeblock pre { direction: ltr; text-align: left; margin: 0; padding: 14px 16px; overflow-x: auto; font: 400 .86rem/1.6 var(--pw-mono); tab-size: 2; color: inherit; background: transparent; }
.pw-codeblock pre:focus-visible { outline: 2px solid var(--pw-accent); outline-offset: -2px; }
.pw-codeblock code { font: inherit; background: transparent; padding: 0; }
.pw-codeblock.has-lines code { counter-reset: pw-line; display: block; }
.pw-codeblock.has-lines .pw-line { display: block; }
.pw-codeblock.has-lines .pw-line::before { counter-increment: pw-line; content: counter(pw-line); display: inline-block; width: 2.2em; margin-inline-end: 1.2em; color: #6c7484; text-align: end; user-select: none; -webkit-user-select: none; }
.pw-t-com { color: #8791a3; font-style: italic; }
.pw-t-str { color: #a5d6a7; }
.pw-t-num { color: #f2b872; }
.pw-t-key { color: #c4a7ff; }
.pw-t-fn { color: #82b7ff; }
.pw-t-tag { color: #ff9aa8; }

/* ==========================================================================
   Tour
   ========================================================================== */
.pw-tour { position: fixed; inset: 0; z-index: calc(var(--pw-z) + 300); font-family: var(--pw-font); }
.pw-tour-hole { position: fixed; border-radius: var(--pw-radius); box-shadow: 0 0 0 9999px var(--pw-backdrop), 0 0 0 2px var(--pw-accent); transition: top .25s, left .25s, width .25s, height .25s; pointer-events: none; }
.pw-tour-card { position: fixed; width: min(340px, calc(100vw - 16px)); padding: 16px 18px 14px; border-radius: var(--pw-radius-lg); background: var(--pw-bg); color: var(--pw-text-2); box-shadow: var(--pw-shadow-lg); line-height: 1.5; outline: 0; }
.pw-tour-card h2 { margin: 0 28px 6px 0; font-size: 1.05rem; line-height: 1.3; color: var(--pw-text); }
.pw-tour-card p { margin: 0; font-size: .94rem; }
.pw-tour-card .pw-close { position: absolute; top: 8px; inset-inline-end: 8px; width: 30px; height: 30px; }
.pw-tour-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.pw-tour-count { margin-inline-end: auto; font-size: .82rem; color: var(--pw-text-3); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Cookie consent
   ========================================================================== */
.pw-consent { position: fixed; z-index: calc(var(--pw-z) - 10); inset: auto 16px 16px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; max-width: 880px; margin-inline: auto; padding: 16px 18px; border: 1px solid var(--pw-line); border-radius: var(--pw-radius-lg); background: var(--pw-bg); color: var(--pw-text-2); box-shadow: var(--pw-shadow-lg); font-family: var(--pw-font); font-size: .94rem; line-height: 1.5; animation: pw-toast-in .3s cubic-bezier(.2, .8, .3, 1); }
.pw-consent[data-position="bottom-left"] { inset-inline-end: auto; max-width: 400px; margin-inline: 0; }
.pw-consent[data-position="bottom-right"] { inset-inline-start: auto; max-width: 400px; margin-inline: 0; }
.pw-consent-text { flex: 1 1 320px; min-width: 0; }
.pw-consent-text b { display: block; color: var(--pw-text); font-size: 1rem; }
.pw-consent-text a { color: var(--pw-accent-text); }
.pw-consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pw-consent-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--pw-line); }
.pw-consent-row:first-of-type { border-top: 0; padding-top: 0; }
.pw-consent-row b { display: block; color: var(--pw-text); }
.pw-consent-row span { font-size: .9rem; }
@media (max-width: 560px) { .pw-consent { inset: auto 8px 8px 8px; } .pw-consent-actions { width: 100%; } .pw-consent-actions .pw-btn { flex: 1; } }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.pw-js [data-pw-reveal], .pw-js [data-pw-reveal-group] > * { opacity: 0; translate: 0 26px; }
.pw-js [data-pw-reveal="fade"], .pw-js [data-pw-reveal-group="fade"] > * { translate: none; }
.pw-js [data-pw-reveal="left"], .pw-js [data-pw-reveal-group="left"] > * { translate: -34px 0; }
.pw-js [data-pw-reveal="right"], .pw-js [data-pw-reveal-group="right"] > * { translate: 34px 0; }
.pw-js [data-pw-reveal="zoom"], .pw-js [data-pw-reveal-group="zoom"] > * { translate: none; scale: .93; }
/* the movement belongs to the "in" state only, so hiding at page load is instant */
.pw-js [data-pw-reveal].is-in, .pw-js [data-pw-reveal-group] > .is-in { opacity: 1; translate: none; scale: none; transition: opacity .6s ease, translate .6s cubic-bezier(.2, .7, .2, 1), scale .6s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--pw-delay, 0ms); }
@media (prefers-reduced-motion: reduce) { .pw-js [data-pw-reveal], .pw-js [data-pw-reveal-group] > * { opacity: 1 !important; translate: none !important; scale: none !important; transition: none !important; } }
@media print { .pw-js [data-pw-reveal], .pw-js [data-pw-reveal-group] > * { opacity: 1 !important; translate: none !important; scale: none !important; } }

/* ==========================================================================
   Filter grid
   ========================================================================== */
.pw-filter { font-family: var(--pw-font); color: var(--pw-text); }
.pw-filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.pw-filter-bar .pw-input { width: auto; flex: 1 1 180px; max-width: 280px; }
.pw-filter-bar .pw-native-select { width: auto; }
.pw-filter-count { margin-inline-start: auto; font-size: .88rem; color: var(--pw-text-3); font-variant-numeric: tabular-nums; }
.pw-filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.pw-filter-grid > [hidden] { display: none !important; }       /* wins over your own display rules */
.pw-filter-grid > .is-entering { animation: pw-filter-in .28s ease-out; }
@keyframes pw-filter-in { from { opacity: 0; scale: .96; } }

/* ==========================================================================
   Signature pad
   ========================================================================== */
.pw-signature { display: grid; gap: 8px; font-family: var(--pw-font); color: var(--pw-text); }
.pw-signature canvas { display: block; width: 100%; height: 180px; border: 1px solid var(--pw-line-2); border-radius: var(--pw-radius); background: #fff; touch-action: none; cursor: crosshair; }
.pw-signature canvas:focus-visible { outline: none; border-color: var(--pw-accent); box-shadow: var(--pw-ring); }
.pw-signature.is-empty canvas { background: #fff linear-gradient(#c5cad3, #c5cad3) 24px calc(100% - 44px) / calc(100% - 48px) 1px no-repeat; }
.pw-signature-bar { display: flex; align-items: center; gap: 8px; }
.pw-signature-bar .pw-hint { margin-inline-end: auto; }

/* ==========================================================================
   Banner (announcement bar)
   ========================================================================== */
.pw-banner { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 12px 9px 18px; background: var(--pw-bg-3); color: var(--pw-text); font-family: var(--pw-font); font-size: .94rem; line-height: 1.4; }
.pw-banner > :first-child { margin: 0; flex: 1; text-align: center; }
.pw-banner a { color: inherit; font-weight: 650; text-underline-offset: 3px; }
.pw-banner .pw-close { width: 30px; height: 30px; color: inherit; }
.pw-banner--accent { background: var(--pw-accent); color: var(--pw-accent-ink); }
.pw-banner--accent .pw-close:hover { background: color-mix(in srgb, var(--pw-accent-ink) 18%, transparent); color: inherit; }
.pw-banner--accent .pw-close:focus-visible { box-shadow: 0 0 0 2px var(--pw-accent-ink); }
.pw-banner--dark { background: var(--pw-text); color: var(--pw-bg); }
.pw-banner--dark .pw-close:hover { background: color-mix(in srgb, var(--pw-bg) 18%, transparent); color: inherit; }
.pw-banner--sticky { position: sticky; top: 0; z-index: calc(var(--pw-z) - 20); }
.pw-banner--bottom { position: fixed; inset: auto 0 0 0; z-index: calc(var(--pw-z) - 20); box-shadow: 0 -4px 20px rgba(16, 20, 30, .12); }

/* ==========================================================================
   Navigation bar with dropdown panels
   ========================================================================== */
.pw-nav { position: relative; display: flex; align-items: center; gap: 20px; min-height: 60px; padding: 0 20px; border-bottom: 1px solid var(--pw-line); background: var(--pw-bg); color: var(--pw-text); font-family: var(--pw-font); }
.pw-nav-brand { display: inline-flex; align-items: center; gap: 9px; margin-inline-end: auto; color: inherit; font-size: 1.1rem; font-weight: 750; text-decoration: none; }
.pw-nav-menu { display: flex; align-items: center; gap: 2px; }
.pw-nav-menu > a:not(.pw-btn), .pw-nav-trigger { display: inline-flex; align-items: center; gap: 5px; min-height: 38px; padding: 6px 12px; border: 0; border-radius: var(--pw-radius-sm); background: transparent; color: var(--pw-text-2); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.pw-nav-menu > a:not(.pw-btn):hover, .pw-nav-trigger:hover, .pw-nav-trigger[aria-expanded="true"] { background: var(--pw-bg-3); color: var(--pw-text); }
.pw-nav-menu > a[aria-current="page"] { color: var(--pw-text); }
.pw-nav-menu > a:focus-visible, .pw-nav-trigger:focus-visible, .pw-nav-toggle:focus-visible, .pw-nav-panel a:focus-visible { outline: none; box-shadow: var(--pw-ring); }
.pw-nav-menu > .pw-btn { margin-inline-start: 8px; }
.pw-nav-trigger::after { content: ''; width: 15px; height: 15px; background: currentColor; -webkit-mask: var(--pw-i-chevron) center / contain no-repeat; mask: var(--pw-i-chevron) center / contain no-repeat; transition: rotate var(--pw-speed); }
.pw-nav-trigger[aria-expanded="true"]::after { rotate: 180deg; }
.pw-nav-item { position: relative; }
.pw-nav-panel { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; z-index: calc(var(--pw-z) - 30); min-width: 240px; padding: 8px; border: 1px solid var(--pw-line); border-radius: var(--pw-radius); background: var(--pw-bg); box-shadow: var(--pw-shadow-lg); animation: pw-menu-in .14s ease-out; }
.pw-nav-item--mega { position: static; }
.pw-nav-item--mega > .pw-nav-panel { inset-inline: 20px; top: calc(100% - 4px); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px 12px; padding: 14px; }
.pw-nav-panel a { display: block; padding: 9px 11px; border-radius: var(--pw-radius-sm); color: var(--pw-text); text-decoration: none; line-height: 1.35; }
.pw-nav-panel a:hover { background: var(--pw-bg-3); }
.pw-nav-panel a b { display: block; font-weight: 650; }
.pw-nav-panel a span { display: block; font-size: .86rem; color: var(--pw-text-3); }
.pw-nav-heading { padding: 6px 11px 2px; font-size: .78rem; font-weight: 600; color: var(--pw-text-3); }
.pw-nav-toggle { display: none; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--pw-radius-sm); background: transparent; color: var(--pw-text); cursor: pointer; }
.pw-nav-toggle::before { content: ''; width: 20px; height: 2px; border-radius: 2px; background: currentColor; box-shadow: 0 -6px currentColor, 0 6px currentColor; }
.pw-nav-toggle[aria-expanded="true"]::before { box-shadow: none; rotate: 45deg; }
.pw-nav-toggle[aria-expanded="true"]::after { content: ''; position: absolute; width: 20px; height: 2px; border-radius: 2px; background: currentColor; rotate: -45deg; }
.pw-nav.is-narrow { flex-wrap: wrap; gap: 0 12px; }
.pw-nav.is-narrow .pw-nav-toggle { display: grid; position: relative; }
.pw-nav.is-narrow .pw-nav-menu { display: none; flex: 1 0 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 4px 0 14px; }
.pw-nav.is-narrow.is-open .pw-nav-menu { display: flex; }
.pw-nav.is-narrow .pw-nav-trigger { width: 100%; justify-content: space-between; }
.pw-nav.is-narrow .pw-nav-panel, .pw-nav.is-narrow .pw-nav-item--mega > .pw-nav-panel { position: static; display: block; min-width: 0; margin: 2px 0 6px; padding: 2px 0 2px 10px; border: 0; border-inline-start: 2px solid var(--pw-line); border-radius: 0; box-shadow: none; animation: none; }
.pw-nav.is-narrow .pw-nav-menu > .pw-btn { margin: 8px 0 0; }

/* ==========================================================================
   Pagination
   ========================================================================== */
.pw-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-family: var(--pw-font); }
.pw-pagination :is(a, button, span) { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border: 1px solid transparent; border-radius: var(--pw-radius-sm); background: transparent; color: var(--pw-text-2); font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: none; }
.pw-pagination :is(a, button) { cursor: pointer; }
.pw-pagination :is(a, button):hover { background: var(--pw-bg-3); color: var(--pw-text); }
.pw-pagination :is(a, button):focus-visible { outline: none; box-shadow: var(--pw-ring); border-color: var(--pw-accent); }
.pw-pagination [aria-current="page"] { border-color: var(--pw-accent); background: var(--pw-accent); color: var(--pw-accent-ink); }
.pw-pagination [aria-current="page"]:hover { background: var(--pw-accent); color: var(--pw-accent-ink); }
.pw-pagination [aria-disabled="true"], .pw-pagination button:disabled { color: var(--pw-line-2); cursor: not-allowed; background: transparent; }
.pw-pagination span { color: var(--pw-text-3); min-width: 24px; padding: 0; }
[dir="rtl"] .pw-pagination .pw-icon { scale: -1 1; }
/* without JavaScript the panels open on hover and focus, and the bar wraps */
html:not(.pw-js) .pw-nav { flex-wrap: wrap; }
html:not(.pw-js) .pw-nav-panel { display: none; }
html:not(.pw-js) .pw-nav-item:hover > .pw-nav-panel, html:not(.pw-js) .pw-nav-item:focus-within > .pw-nav-panel { display: block; }
