.ws {
  --ws-ink: #33213b;
  --ws-muted: #6d6270;
  --ws-lilac: #eee7f5;
  --ws-line: #e9e1e7;
  --ws-green: #e1ece0;
  --ws-pink: #f7e9eb;
  color: var(--ws-ink);
  width: min(1160px, calc(100% - 64px));
  margin-inline: auto;
  padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3rem, 7vw, 6rem);
}

.ws h1, .ws h2, .ws h3, .ws h4, .ws p { margin: 0; }
.ws h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); line-height: 1.08; letter-spacing: -.055em; }
.ws h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.15; letter-spacing: -.035em; }
.ws h3 { font-size: 1.15rem; line-height: 1.35; letter-spacing: -.015em; }
.ws h4 { margin-block: 1rem .5rem; font-size: .95rem; }

.ws-header { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; margin-bottom: 2rem; }
.ws-header > div { min-width: 0; }
.ws-header p, .ws-section-head p, .ws-auth-intro p, .ws-gate > p { color: var(--ws-muted); margin-top: .6rem; overflow-wrap: anywhere; }
.ws-header p span { padding-inline: .3em; }
.ws-header form { flex: 0 0 auto; }
.ws-header form .ws-actions { margin: 0; }
.ws-header form .ws-feedback { max-width: 170px; }

.ws-workarea { display: grid; grid-template-columns: minmax(165px, 215px) minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
.ws-nav { display: flex; flex-direction: column; gap: .25rem; padding: .5rem; border: 1px solid var(--ws-line); border-radius: 20px; background: #fff; }
.ws-nav a { display: flex; align-items: center; min-height: 44px; color: var(--ws-muted); border-radius: 13px; padding: .55rem .9rem; text-decoration: none; font-weight: 560; font-size: .92rem; }
.ws-nav a:hover, .ws-nav a[aria-current] { color: var(--ws-ink); background: var(--ws-lilac); }
.ws-nav a[aria-current] { font-weight: 720; }
.ws-main { min-width: 0; }
.ws-section-head { margin-bottom: 1.25rem; }
.ws-items { display: grid; gap: .85rem; }
.ws-item { min-width: 0; padding: clamp(1rem, 2.5vw, 1.6rem); border: 1px solid var(--ws-line); border-radius: 20px; background: #fff; }
.ws-item-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .55rem 1rem; margin-bottom: .45rem; }
.ws-item-head h3, .ws-item-copy, .ws-document { overflow-wrap: anywhere; }
.ws-item-copy { color: var(--ws-muted); white-space: pre-line; }
.ws-pill { display: inline-flex; align-items: center; width: fit-content; min-height: 27px; padding: .23rem .6rem; border-radius: 1000px; color: #503865; background: var(--ws-lilac); font-size: .76rem; line-height: 1.2; font-weight: 690; }
.ws-pill[data-state="active"], .ws-pill[data-state="published"], .ws-pill[data-state="completed"], .ws-pill[data-state="registered"], .ws-pill[data-state="ready"], .ws-pill[data-state="succeeded"], .ws-pill[data-state="resolved"] { background: var(--ws-green); color: #345337; }
.ws-pill[data-state="blocked"], .ws-pill[data-state="removed"], .ws-pill[data-state="rejected"], .ws-pill[data-state="expired"], .ws-pill[data-state="canceled"] { background: var(--ws-pink); color: #754353; }
.ws-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr)); gap: .75rem 1rem; margin-block: .95rem; }
.ws-facts dt { color: var(--ws-muted); font-size: .8rem; }
.ws-facts dd { margin: .15rem 0 0; overflow-wrap: anywhere; white-space: pre-line; font-size: .92rem; }
.ws-reply { padding: .75rem 1rem; margin-block: .75rem; border-radius: 12px; background: #f5f0f7; font-size: .9rem; }
.ws-reply p { margin-top: .25rem; overflow-wrap: anywhere; white-space: pre-line; }
.ws-empty { padding: 1rem 1.2rem; color: var(--ws-muted); border: 1px dashed #d7cbd9; border-radius: 16px; background: rgba(255, 255, 255, .72); }
.ws-empty p { margin-bottom: .8rem; }
.ws-notice { padding: .75rem 1rem; border-radius: 12px; background: var(--ws-green); color: #345337; overflow-wrap: anywhere; }
.ws p.ws-notice { margin-block: .7rem 1.1rem; }
.ws-notice[hidden], .ws-feedback[hidden] { display: none; }
.ws-error { color: #872b43; background: var(--ws-pink); }

.ws-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: .8rem; }
.ws-button, .ws-details.ws-create summary { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: .58rem 1.05rem; border: 1px solid transparent; border-radius: 12px; font: inherit; color: #fff; background: var(--ws-ink); line-height: 1.25; font-size: .9rem; font-weight: 670; text-decoration: none; cursor: pointer; }
.ws-button:hover { background: #50355a; }
.ws-secondary, .ws-details.ws-create summary { color: var(--ws-ink); background: var(--ws-lilac); }
.ws-secondary:hover, .ws-details.ws-create summary:hover { color: var(--ws-ink); background: #e4d7ef; }
.ws-button:disabled { cursor: wait; opacity: .6; }
.ws-text-link { color: #523760; font-size: .92rem; font-weight: 680; text-decoration: underline; text-decoration-color: #a287ad; text-underline-offset: .2em; }
.ws-text-link:hover { text-decoration-color: currentColor; }
.ws-delete { min-height: 43px; padding: .45rem 0; border: 0; background: transparent; color: #8a3650; font: inherit; font-size: .9rem; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.ws a:focus-visible, .ws button:focus-visible, .ws summary:focus-visible { outline: 2px solid #785281; outline-offset: 4px; }

.ws-details { margin-top: .85rem; padding-top: .8rem; border-top: 1px solid var(--ws-line); }
.ws-details summary { width: fit-content; min-height: 32px; color: #523760; cursor: pointer; font-size: .9rem; font-weight: 690; }
.ws-details[open] > summary { margin-bottom: .65rem; }
.ws-details.ws-create { margin-block: 0 1rem; padding: 0; border: 0; }
.ws-details.ws-create[open] { padding: 1rem; border: 1px solid var(--ws-line); border-radius: 16px; background: #fff; }
.ws-details.ws-create summary::before { content: '+'; margin-right: .45rem; font-size: 1.1em; }

.ws-form { display: grid; gap: .8rem; min-width: 0; }
.ws-form-grid { display: grid; gap: .85rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ws-form-grid > .ws-wide, .ws-form-grid > .ws-actions { grid-column: 1 / -1; }
.ws-inline-form { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem 1rem; margin-top: 1rem; }
.ws-inline-form .ws-wide { width: 100%; }
.ws-inline-form .ws-actions { margin: 0; }
.ws-field { display: grid; gap: .3rem; min-width: 0; color: var(--ws-ink); font-size: .88rem; font-weight: 620; }
.ws-field small { color: var(--ws-muted); line-height: 1.4; font-weight: 430; }
.ws-field input, .ws-field select, .ws-field textarea { display: block; width: 100%; box-sizing: border-box; min-height: 43px; min-width: 0; padding: .6rem .7rem; border: 1px solid #dcd1df; border-radius: 10px; font: inherit; font-weight: 440; color: var(--ws-ink); background: #fff; }
.ws-field textarea { resize: vertical; line-height: 1.45; }
.ws-field input:focus, .ws-field select:focus, .ws-field textarea:focus { outline: 2px solid #8b6796; outline-offset: 1px; }
.ws-file input { padding: .43rem; background: #faf7fb; }
.ws-file input::file-selector-button { margin-right: .4rem; padding: .45rem .6rem; border: 0; border-radius: 7px; background: var(--ws-lilac); color: var(--ws-ink); font: inherit; cursor: pointer; }
.ws-check { display: inline-flex; align-items: center; gap: .45rem; width: fit-content; min-height: 28px; font-size: .86rem; cursor: pointer; }
.ws-check input { flex: 0 0 auto; width: 1rem; height: 1rem; accent-color: #553963; }
.ws-choices { min-width: 0; margin: 0; padding: .5rem .65rem; border: 1px solid var(--ws-line); border-radius: 10px; }
.ws-choices legend { padding: 0 .2rem; font-size: .88rem; font-weight: 650; }
.ws-choices div { display: flex; flex-wrap: wrap; gap: .2rem .85rem; }
.ws-feedback { padding: .6rem .75rem; border-radius: 10px; font-size: .86rem; overflow-wrap: anywhere; }

.ws-profile-summary { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; padding: 1rem; border-radius: 18px; background: var(--ws-lilac); }
.ws-profile-summary + .ws-actions { margin-block: 0 1rem; }
.ws-profile-summary img, .ws-photo-placeholder { flex: 0 0 62px; width: 62px; height: 62px; object-fit: cover; border-radius: 16px; }
.ws-photo-placeholder { display: grid; place-items: center; background-color: #dac8e7; color: var(--ws-ink); font-size: 1.45rem; }
.ws-profile-summary > div { min-width: 0; overflow-wrap: anywhere; }
.ws-profile-summary p { margin-top: .5rem; color: var(--ws-muted); font-size: .9rem; }
.ws-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.ws-profile-summary .ws-pill { background: #fff; }
.ws-cover, .ws-video { display: block; max-width: 100%; width: min(100%, 400px); max-height: 230px; border-radius: 13px; object-fit: cover; }
.ws-video { max-height: 320px; object-fit: contain; background: var(--ws-ink); }
.ws-documents { margin-top: 1rem; }
.ws-documents > p { margin-block: .3rem .75rem; color: var(--ws-muted); }
.ws-documents > form { margin-top: 1rem; }
.ws-document { padding: .4rem 0; }
.ws-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr)); gap: .8rem; }
.ws-metric { padding: 1rem; border-radius: 16px; background: var(--ws-lilac); }
.ws-metric:nth-child(3n+2) { background: var(--ws-green); }
.ws-metric:nth-child(3n+3) { background: var(--ws-pink); }
.ws-metric span { display: block; margin-bottom: .5rem; font-size: .9rem; }
.ws-metric strong { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1; }
.ws h3.ws-group-title { margin: 1.4rem 0 .7rem; }
.ws-price { font-size: 1.45rem; font-weight: 740; }
.ws-price small { color: var(--ws-muted); font-size: .8rem; font-weight: 500; }
.ws-features { margin: .65rem 0; padding-inline-start: 1.2rem; color: var(--ws-muted); font-size: .9rem; }
.ws-features li + li { margin-top: .25rem; }

.ws-auth { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 1rem; max-width: 865px; }
.ws-auth-intro, .ws-auth-card { min-width: 0; border-radius: 25px; padding: clamp(1.2rem, 4vw, 2.6rem); }
.ws-auth-intro { background: var(--ws-lilac); }
.ws-auth-intro h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.ws-auth-mark { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: clamp(1.25rem, 4vw, 3rem); border-radius: 50%; background: var(--ws-green); color: #3c593e; font-size: 1.55rem; }
.ws-auth-card { background: #fff; border: 1px solid var(--ws-line); }
.ws p.ws-auth-switch { margin-top: 1rem; color: var(--ws-muted); font-size: .9rem; }
.ws-gate { max-width: 800px; }

@media (max-width: 760px) {
  .ws { width: calc(100% - 34px); }
  .ws-workarea { grid-template-columns: minmax(0, 1fr); gap: 1.05rem; }
  .ws-nav { flex-direction: row; flex-wrap: wrap; gap: .2rem; }
  .ws-nav a { min-height: 34px; padding: .35rem .55rem; font-size: .83rem; }
  .ws-header { margin-bottom: 1.2rem; }
  .ws-auth { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .ws-form-grid { grid-template-columns: minmax(0, 1fr); }
  .ws-header { align-items: flex-start; gap: .55rem; }
  .ws-header h1 { font-size: 1.85rem; }
  .ws-header p { font-size: .8rem; }
  .ws-header .ws-button { min-height: 36px; padding: .35rem .6rem; font-size: .8rem; }
  .ws-inline-form .ws-field { width: 100%; }
}

.ws a.ws-metric { text-decoration: none; color: var(--ws-ink); transition: border-color .15s, background .15s; }
.ws a.ws-metric:hover { border-color: #a089b1; background: #faf7fd; }
.ws a.ws-metric small { color: var(--ws-muted); font-size: .78rem; }
.ws a:focus-visible, .ws summary:focus-visible, .ws button:focus-visible { outline: 3px solid #806394; outline-offset: 3px; }
.ws-admin-filters { padding: 1rem; margin-block: 1rem; background: var(--ws-lilac); border-radius: 16px; }
.ws-admin-detail { margin-block: 1.25rem; border-color: #a58ab7; }
.ws-admin-detail > h3 { margin-block: 1.5rem .75rem; }
.ws-capability { display: grid; align-content: start; gap: .4rem; min-width: 0; }
.ws-capability small { color: var(--ws-muted); overflow-wrap: anywhere; }
.ws-details .ws-section-head { margin-top: 1rem; }
.ws-details .ws-section-head h2 { font-size: 1.5rem; }
