/* design-port/cards/mockup.css */
:root {
  --radius-control: 8px;
  --radius-tab-active: 6px;
  --radius-surface: 12px;
  --radius-modal: 16px;
  --radius-message: 14px;
  --radius-pill: 9999px;
}
html,
body {
  margin: 0;
  padding: 0;
  background: #F3F4F6;
}
* {
  box-sizing: border-box;
}
a {
  color: #B20018;
  text-decoration: none;
}
a:hover {
  color: #8E1220;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: #D2D5D9;
  border-radius: 99px;
  border: 3px solid #ffffff;
}
::-webkit-scrollbar-track {
  background: transparent;
}
textarea,
input,
button {
  font-family: inherit;
}
.fx:focus-visible {
  outline: 2px solid #B20018;
  outline-offset: 2px;
}
.taginput:focus-within {
  border-color: #B20018 !important;
  box-shadow: 0 0 0 3px rgba(178, 0, 24, 0.12);
}
@keyframes mdFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes mdRise {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes mdToast {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes mdScrim {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
  }
}

/* design-port/feedback/mockup.css */
:root {
  --radius-control: 8px;
  --radius-tab-active: 6px;
  --radius-surface: 12px;
  --radius-modal: 16px;
  --radius-pill: 9999px;
}
html,
body {
  margin: 0;
  padding: 0;
  background: #F3F4F6;
}
* {
  box-sizing: border-box;
}
a {
  color: #B20018;
  text-decoration: none;
}
a:hover {
  color: #8E1220;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: #D2D5D9;
  border-radius: 99px;
  border: 3px solid #ffffff;
}
::-webkit-scrollbar-track {
  background: transparent;
}
textarea,
input,
button {
  font-family: inherit;
}
.fx:focus-visible {
  outline: 2px solid #B20018;
  outline-offset: 2px;
}
@keyframes mdFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes mdRise {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes mdScrim {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes mdSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes mdPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
@keyframes mendanRecBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
  }
}

/* design-port/login/mockup.css */
[data-design-port=login] {
  --radius-control: 8px;
  --radius-surface: 12px;
  --radius-pill: 9999px;
}
[data-design-port=login] {
  margin: 0;
  padding: 0;
  background: #F3F4F6;
}
[data-design-port=login] * {
  box-sizing: border-box;
}
a {
  color: #B20018;
  text-decoration: none;
}
a:hover {
  color: #8E1220;
}
[data-design-port=login] input,
[data-design-port=login] button {
  font-family: inherit;
}
[data-design-port=login] .fx:focus-visible {
  outline: 2px solid #B20018;
  outline-offset: 2px;
}
@keyframes lgRise {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-design-port=login] * {
    animation: none !important;
  }
}

/* design-port/loading/loading.generated.css */
[data-design-port=loading] {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
[data-design-port=loading][data-loading-mode=fullscreen] {
  position: fixed;
  inset: 0;
  min-height: 100vh;
}
[data-design-port=loading][data-loading-mode=panel] {
  min-height: 18rem;
}
.ios-spinner {
  display: block;
  width: 40px;
  height: 40px;
}
.ios-spinner__spoke {
  animation: ios-spoke 0.8s linear infinite;
}
.ios-spinner__spoke:nth-child(1) {
  animation-delay: -0.8s;
}
.ios-spinner__spoke:nth-child(2) {
  animation-delay: -0.7s;
}
.ios-spinner__spoke:nth-child(3) {
  animation-delay: -0.6s;
}
.ios-spinner__spoke:nth-child(4) {
  animation-delay: -0.5s;
}
.ios-spinner__spoke:nth-child(5) {
  animation-delay: -0.4s;
}
.ios-spinner__spoke:nth-child(6) {
  animation-delay: -0.3s;
}
.ios-spinner__spoke:nth-child(7) {
  animation-delay: -0.2s;
}
.ios-spinner__spoke:nth-child(8) {
  animation-delay: -0.1s;
}
@keyframes ios-spoke {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0.15;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ios-spinner__spoke {
    animation: none;
  }
}

/* design-port/error/mockup.css */
[data-design-port=error] * {
  box-sizing: border-box;
}
[data-design-port=error] {
  margin: 0;
}
@keyframes full-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* design-port/error/runtime.css */
[data-design-port=error][data-error-mode=fullscreen] {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: #fff;
}
[data-design-port=error][data-error-mode=panel] [data-error-surface] {
  min-height: 18rem !important;
  width: 100%;
}
@media (prefers-reduced-motion: reduce) {
  [data-design-port=error] [data-error-surface] {
    animation: none !important;
  }
}

/* src/styles/profile.css */
.profile-editor__title,
.profile-preview__title {
  margin: 0 0 var(--space-3);
  font-size: 1.125rem;
}
.profile-editor__metadata,
.profile-editor__sample-note,
.profile-preview__timing,
.profile-preview__semantic,
.profile-preview__fingerprint,
.profile-help,
.profile-editor__unavailable {
  color: var(--color-muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}
.profile-editor__toolbar {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto auto auto;
  gap: var(--space-2);
  margin: var(--space-4) 0 var(--space-2);
}
.profile-editor__toolbar input,
.profile-editor__toolbar select,
.profile-editor__toolbar button,
.profile-catalog-row__move-menu button {
  min-height: 2.5rem;
  border: 1px solid var(--color-border-strong);
  border-radius: 8px;
  background: var(--color-surface);
}
.profile-editor__results,
.profile-editor__reorder-note {
  margin: var(--space-2) 0;
  color: var(--color-muted);
  font-size: 0.8125rem;
}
.profile-editor__empty {
  padding: var(--space-6);
  text-align: center;
  border: 1px dashed var(--color-border);
  border-radius: 12px;
}
.profile-errors,
.profile-registry-warning {
  margin-bottom: var(--space-4);
  padding: var(--space-3);
  border: 1px solid var(--color-alert);
  border-radius: var(--radius-control);
  background: var(--color-alert-surface);
  color: var(--color-alert);
}
.profile-errors ul,
.profile-diff-paths,
.profile-enum-options {
  margin-bottom: 0;
  padding-left: var(--space-6);
}
.profile-section {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.profile-section__title {
  margin: 0;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}
.profile-section__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
}
.profile-section__heading .profile-section__title {
  border-bottom: 0;
}
.profile-section__count {
  color: var(--color-muted);
  font-size: 0.8125rem;
}
.profile-catalog-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  background: var(--color-surface);
}
.profile-catalog-row:focus-within {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.profile-catalog-row.is-disabled {
  background: var(--color-canvas);
  color: var(--color-muted);
}
.profile-catalog-row__handle {
  min-width: 2.5rem;
  min-height: 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-muted);
  cursor: grab;
  font: inherit;
  letter-spacing: -0.2em;
}
.profile-catalog-row__handle:active {
  cursor: grabbing;
}
.profile-catalog-row__handle:focus-visible,
.profile-catalog-row__details summary:focus-visible,
.profile-catalog-row__toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.profile-catalog-row__identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-1) var(--space-3);
}
.profile-catalog-row__sample {
  grid-row: 2;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 0.8125rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-catalog-row__label {
  overflow-wrap: anywhere;
}
.profile-catalog-row__type {
  grid-row: 2;
  color: var(--color-muted);
  font-size: 0.75rem;
}
.profile-catalog-row__new {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 0.125rem var(--space-2);
  border-radius: 999px;
  background: var(--color-high-surface);
  color: var(--color-high);
  font-size: 0.75rem;
  font-weight: 700;
}
.profile-catalog-row__toggle {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--color-primary);
}
.profile-catalog-row__details {
  grid-column: 1 / -1;
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 0.8125rem;
}
.profile-catalog-row__detail-heading {
  margin: var(--space-3) 0 var(--space-1);
  font-size: 0.8125rem;
}
.profile-catalog-row__description,
.profile-catalog-row__sample-full {
  margin: 0;
  line-height: 1.6;
}
.profile-catalog-row__move-menu {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.profile-catalog-row__move-menu button {
  padding: 0 var(--space-3);
}
.profile-state-banner {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
}
.profile-state-banner--blocked,
.profile-state-banner--conflict {
  border-color: #f59e0b;
  background: #fffbeb;
}
.profile-state-banner button {
  margin-left: 12px;
}
.profile-widget-preview__note {
  color: #64748b;
  font-size: 12px;
}
.profile-widget-preview {
  overflow: hidden;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(15 23 42 / 8%);
}
.profile-widget-preview__header {
  display: flex;
  justify-content: space-between;
  padding: 14px;
  color: #fff;
  background: #173b63;
}
.profile-widget-preview__recording {
  padding-left: 18px;
  color: #fecaca;
}
.profile-widget-preview__tabs {
  display: flex;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 12px;
}
.profile-widget-preview__tabs [aria-selected=true] {
  color: #155e75;
  font-weight: 700;
}
.profile-widget-preview__progress,
.profile-widget-preview__empty {
  margin: 14px;
  padding: 10px;
  border-radius: 8px;
  background: #f1f5f9;
}
.profile-summary {
  margin: 14px;
  padding: 12px;
  border-radius: 8px;
  background: #f1f5f9;
}
.profile-summary-title {
  margin-right: 10px;
  font-weight: 700;
}
.profile-bar {
  overflow: hidden;
  height: 5px;
  margin-top: 8px;
  border-radius: 99px;
  background: #dbe3ee;
}
.profile-bar-fill {
  height: 100%;
  background: #0f766e;
}
.profile-summary-line {
  margin: 7px 0 0;
  font-size: 12px;
  color: #475569;
}
.profile-widget-preview__section {
  padding: 0 14px 12px;
}
.profile-widget-preview > details.profile-section {
  margin: 0 14px 10px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.profile-widget-preview .profile-section-title {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}
.profile-widget-preview__section h3 {
  margin: 8px 0;
  font-size: 13px;
  color: #475569;
}
.profile-widget-preview__item {
  display: grid;
  grid-template-columns: minmax(100px, .8fr) minmax(140px, 1.2fr);
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid #eef2f7;
  font-size: 12px;
}
.profile-editor__announce {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.profile-editor__toast {
  position: sticky;
  top: 8px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #173b63;
  color: #fff;
}
.profile-publish-dialog,
.profile-comparison-dialog {
  width: min(34rem, calc(100vw - 2rem));
  padding: 20px;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgb(15 23 42 / 28%);
}
.profile-publish-dialog::backdrop,
.profile-comparison-dialog::backdrop {
  background: rgb(15 23 42 / 45%);
}
.profile-publish-dialog__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #f1f5f9;
}
.revision-item__active {
  padding: 2px 7px;
  border-radius: 99px;
  color: #166534;
  background: #dcfce7;
  font-size: 11px;
  font-weight: 700;
}
.profile-catalog-row__details summary {
  width: fit-content;
  cursor: pointer;
  color: var(--color-primary);
  font-weight: 700;
}
.profile-catalog-row__assurance {
  margin: var(--space-3) 0;
  color: var(--color-high);
  font-weight: 700;
}
.profile-catalog-row__detail-list {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--space-2) var(--space-4);
  margin: 0;
}
.profile-catalog-row__detail-list dt {
  font-weight: 700;
}
.profile-catalog-row__detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.profile-section__empty {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.8125rem;
}
.profile-item {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
}
.profile-item legend {
  padding: 0 var(--space-2);
  font-weight: 700;
}
.profile-control {
  display: grid;
  gap: var(--space-1);
  color: var(--color-text-secondary);
  font-size: 0.8125rem;
}
.profile-control input[type=text],
.profile-control select,
.profile-control textarea {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
}
.profile-control input:disabled,
.profile-control select:disabled,
.profile-control textarea:disabled {
  background: var(--color-canvas);
  color: var(--color-muted);
}
.profile-preview-panel {
  margin-top: var(--space-6);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-canvas);
}
.profile-preview__semantic {
  font-weight: 700;
}
@media (max-width: 720px) {
  .profile-editor__toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .profile-catalog-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: var(--space-3);
  }
  .profile-catalog-row__detail-list {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }
  .profile-catalog-row__detail-list dd + dt {
    margin-top: var(--space-2);
  }
}
#settings-shell:has(#profile-editor-panel:not([hidden])) {
  display: block;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#settings-shell:has(#profile-editor-panel:not([hidden])) > .revision-list {
  display: none;
}
#settings-shell:has(#profile-editor-panel:not([hidden])) > .revision-detail.profile-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(565px, 0.9fr);
  align-items: start;
  gap: 24px;
  min-height: 0;
  padding: 0;
}
#settings-shell:has(#profile-editor-panel:not([hidden])) > .settings-footer {
  position: sticky;
  z-index: 6;
  bottom: 0;
  margin-top: 20px;
  min-height: 64px;
  border: 1px solid #e7e8ea;
  border-radius: 10px;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 -4px 16px rgb(17 17 17 / 6%);
  backdrop-filter: blur(8px);
}
.profile-workspace__editor {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
}
.profile-workspace__preview {
  position: sticky;
  top: 20px;
  min-width: 0;
  max-height: calc(100dvh - 40px);
  margin: 0;
  padding: 0;
  overflow-y: auto;
  border: 0;
  background: transparent;
}
.profile-page-status {
  display: grid;
  gap: 5px;
  padding-bottom: 4px;
}
.profile-page-status .profile-editor__title {
  margin: 0;
  color: #111;
  font-size: 20px;
  line-height: 1.35;
}
.profile-page-status__description,
.profile-page-status__metadata {
  margin: 0;
  color: #5d6166;
  font-size: 12.5px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.profile-state-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 14px 16px;
  border-color: #e7e8ea;
  border-radius: 10px;
  background: #fafafb;
  color: #3a3a3a;
  font-size: 13px;
  line-height: 1.55;
}
.profile-state-banner p {
  margin: 0;
}
.profile-state-banner--blocked,
.profile-state-banner--conflict {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92600a;
}
.profile-state-banner button {
  min-height: 36px;
  margin: 0 0 0 auto;
  border: 1px solid #e7b845;
  border-radius: 8px;
  background: #fff;
  color: #7a5007;
  font-weight: 700;
}
.profile-editor__metadata,
.profile-editor__sample-note,
.profile-editor__sample-warning {
  margin: 0;
}
.profile-editor__toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.profile-editor__toolbar input {
  min-width: 200px;
  max-width: 320px;
  flex: 1 1 200px;
  padding: 0 12px;
}
.profile-editor__toolbar select {
  min-width: 112px;
  padding: 0 32px 0 12px;
}
.profile-editor__toolbar button {
  padding: 0 12px;
  color: #3a3a3a;
  font-size: 12px;
  font-weight: 700;
}
.profile-editor__toolbar input,
.profile-editor__toolbar select,
.profile-editor__toolbar button {
  height: 40px;
  border-color: #dddfe3;
  border-radius: 8px;
}
.profile-editor__results,
.profile-editor__reorder-note {
  margin: -8px 0 0;
}
.profile-editor__sections {
  display: grid;
  gap: 12px;
}
.profile-section {
  display: block;
  margin: 0;
  overflow: hidden;
  border: 1px solid #e7e8ea;
  border-radius: 10px;
  background: #fff;
}
.profile-section__header {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border: 0;
  background: #fff;
}
.profile-section__copy {
  display: grid;
  gap: 2px;
}
.profile-section__title {
  margin: 0;
  padding: 0;
  border: 0;
  color: #191919;
  font-size: 14px;
}
.profile-section__description {
  margin: 0;
  color: #7a7e83;
  font-size: 11.5px;
  line-height: 1.45;
}
.profile-section__count {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f2f3f4;
  color: #5d6166;
  font-size: 11.5px;
  font-weight: 700;
}
.profile-section__empty {
  margin: 0;
  padding: 9px 16px;
  border-top: 1px solid #eceef0;
  background: #fafafb;
}
.profile-section__rows {
  border-top: 1px solid #e7e8ea;
}
.profile-section__rows > .profile-catalog-row + .profile-catalog-row {
  border-top: 1px solid #eceef0;
}
.profile-catalog-row {
  grid-template-columns: 28px minmax(150px, 190px) minmax(140px, 1fr) 44px minmax(124px, 168px);
  gap: 12px;
  min-height: 62px;
  padding: 10px 14px;
  border: 0;
  border-radius: 0;
}
.profile-catalog-row.is-disabled {
  background: #fafafb;
  color: inherit;
}
.profile-catalog-row__handle {
  min-width: 28px;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: #9a9da1;
}
.profile-catalog-row__identity {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
}
.profile-catalog-row__label {
  font-size: 13px;
}
.profile-catalog-row__sample {
  grid-column: 1 / -1;
  color: #6e7277;
  font-size: 11.5px;
}
.profile-catalog-row__switch {
  display: inline-flex;
  width: 40px;
  height: 24px;
  align-items: center;
  padding: 2px;
  border: 0;
  border-radius: 999px;
  background: #b5b9be;
  cursor: pointer;
  transition: background 120ms ease;
}
.profile-catalog-row__switch[aria-checked=true] {
  justify-content: flex-end;
  background: #b20018;
}
.profile-catalog-row__switch:disabled {
  cursor: not-allowed;
  opacity: .5;
}
.profile-catalog-row__switch-track {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(17 17 17 / 22%);
}
.profile-catalog-row__switch:focus-visible {
  outline: 3px solid rgb(178 0 24 / 25%);
  outline-offset: 2px;
}
.profile-catalog-row__details {
  grid-column: 2 / 6;
  margin: 0;
  padding: 0;
  border: 0;
}
.profile-catalog-row__details summary {
  min-height: 36px;
  padding: 8px 0;
  color: #3a3a3a;
  font-size: 12px;
}
.profile-catalog-row__details[open] {
  margin: 4px 0 2px;
  padding: 12px 14px;
  border: 1px solid #e7e8ea;
  border-radius: 8px;
  background: #fafafb;
}
.profile-catalog-row__move-menu {
  position: relative;
  grid-column: 5;
  grid-row: 1;
  justify-self: end;
}
.profile-catalog-row__move-menu > summary {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid #dddfe3;
  border-radius: 8px;
  cursor: pointer;
  color: #5d6166;
  font-size: 11px;
  font-weight: 700;
  list-style: none;
}
.profile-catalog-row__move-menu > summary::-webkit-details-marker {
  display: none;
}
.profile-catalog-row__move-menu > summary::after {
  content: "\2304";
  margin-left: 6px;
}
.profile-catalog-row__move-actions {
  position: absolute;
  z-index: 5;
  top: calc(100% + 4px);
  right: 0;
  display: grid;
  width: 132px;
  padding: 5px;
  border: 1px solid #dddfe3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgb(17 17 17 / 12%);
}
.profile-catalog-row__move-actions button {
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
  font-size: 11px;
}
.profile-catalog-row__move-actions button:hover {
  background: #f6f7f8;
}
.profile-widget-preview__note {
  margin: 0 0 8px;
  color: #7a7e83;
}
.profile-widget-preview {
  border-color: #e7e8ea;
  border-radius: 10px;
  box-shadow: none;
}
.profile-widget-preview__header {
  padding: 12px 14px;
  background: #202833;
  font-size: 12px;
}
.profile-widget-preview__recording::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #e23a4f;
}
.profile-widget-preview__recording {
  color: #fff;
}
.profile-widget-preview__tabs {
  gap: 0;
  padding: 0 12px;
  background: #fff;
}
.profile-widget-preview__tabs [role=tab] {
  flex: 1;
  padding: 10px 5px 8px;
  border-bottom: 2px solid transparent;
  text-align: center;
}
.profile-widget-preview__tabs [aria-selected=true] {
  border-color: #b20018;
  color: #b20018;
}
.profile-summary {
  margin: 12px;
  padding: 12px;
  background: #f6f7f8;
}
.profile-bar-fill {
  background: #3d9a5f;
}
.profile-widget-preview > details.profile-section {
  margin: 0 12px 9px;
  padding: 0;
  border-color: #e5e7eb;
  border-radius: 6px;
}
.profile-widget-preview .profile-section-title {
  padding: 8px 12px;
}
.profile-widget-preview__item {
  margin: 0 12px;
  padding: 7px 0;
}
.profile-editor__toast {
  position: fixed;
  z-index: 20;
  right: 24px;
  bottom: 80px;
  top: auto;
  min-width: 280px;
  background: #202833;
}
.profile-publish-dialog,
.profile-comparison-dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 24px;
  border-radius: 12px;
}
.profile-comparison-dialog {
  width: min(560px, calc(100vw - 32px));
}
.profile-publish-dialog h2,
.profile-comparison-dialog h2 {
  margin: 0 0 18px;
  font-size: 18px;
}
.profile-publish-dialog__summary {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding: 14px;
  background: #f6f7f8;
}
.profile-publish-dialog__summary > div {
  display: grid;
  gap: 3px;
}
.profile-publish-dialog__summary-label {
  color: #7a7e83;
  font-size: 11px;
}
.profile-publish-dialog__arrow {
  color: #9a9da1;
}
.profile-change-group {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #e7e8ea;
  border-radius: 8px;
}
.profile-change-group h3 {
  margin: 0;
  font-size: 13px;
}
.profile-change-group ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: #5d6166;
  font-size: 12px;
}
.profile-dialog__note {
  padding: 12px 14px;
  border-radius: 8px;
  background: #fffbeb;
  color: #6e4a07;
  font-size: 12px;
}
.profile-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}
.profile-dialog__actions button {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid #dddfe3;
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
}
.profile-dialog__actions .profile-dialog__primary {
  border-color: #b20018;
  background: #b20018;
  color: #fff;
}
@media (max-width: 1180px) {
  #settings-shell:has(#profile-editor-panel:not([hidden])) > .revision-detail.profile-workspace {
    grid-template-columns: 1fr;
  }
  .profile-workspace__preview {
    position: static;
    max-height: none;
  }
}
@media (max-width: 720px) {
  .profile-editor__toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .profile-editor__toolbar input {
    max-width: none;
    grid-column: 1 / -1;
  }
  .profile-catalog-row {
    grid-template-columns: 28px minmax(0, 1fr) 44px;
  }
  .profile-catalog-row__identity {
    grid-column: 2;
  }
  .profile-catalog-row__switch {
    grid-column: 3;
  }
  .profile-catalog-row__details,
  .profile-catalog-row__move-menu {
    grid-column: 2 / 4;
  }
  .profile-catalog-row__move-menu {
    grid-row: auto;
    justify-self: start;
  }
}

/* src/app.css */
:root {
  --color-canvas: #f3f4f6;
  --color-surface: #ffffff;
  --color-sidebar: #3a3a3a;
  --color-primary: #b20018;
  --color-primary-hover: #8e1220;
  --color-text: #111111;
  --color-text-secondary: #232527;
  --color-muted: #6e7277;
  --color-muted-soft: #9ca0a6;
  --color-border: #e7e8ea;
  --color-border-strong: #dddfe3;
  --color-chart: #2563eb;
  --color-chart-light: #3b82f6;
  --color-high: #15803d;
  --color-high-surface: #dcfce7;
  --color-alert: #b91c1c;
  --color-alert-bright: #dc2626;
  --color-alert-surface: #fee2e2;
  --color-benchmark: #7c3aed;
  --color-benchmark-dark: #6d28d9;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --radius-control: 8px;
  --radius-panel: 12px;
  --sidebar-width: 224px;
  --content-max-width: 1360px;
  --shadow-panel: 0 1rem 2.5rem rgb(17 17 17 / 7%);
  color: var(--color-text);
  background: var(--color-canvas);
  font-family:
    Inter,
    "Noto Sans JP",
    "Hiragino Sans",
    system-ui,
    sans-serif;
  font-synthesis: none;
}
.auth-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: var(--color-canvas);
}
.auth-gate[hidden],
.auth-login[hidden],
.app-shell[hidden] {
  display: none;
}
.auth-card {
  width: min(440px, 100%);
  padding: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  background: var(--color-surface);
  box-shadow: var(--shadow-panel);
  text-align: center;
}
.auth-brand {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: var(--radius-control);
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
}
.auth-product {
  margin: 0 0 24px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.auth-card h1 {
  margin: 0 0 12px;
  font-size: 24px;
}
.auth-card p {
  color: var(--color-muted);
}
.auth-login {
  display: inline-flex;
  justify-content: center;
  margin-top: 20px;
  padding: 12px 20px;
  border-radius: var(--radius-control);
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
* {
  box-sizing: border-box;
}
body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  background: var(--color-canvas);
}
a {
  color: inherit;
}
.skip-link {
  position: fixed;
  z-index: 10;
  top: var(--space-4);
  left: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-panel);
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: translateY(0);
}
:focus-visible {
  outline: 3px solid var(--color-chart);
  outline-offset: 3px;
}
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 12px 12px;
  overflow: hidden;
  border-right: 1px solid #2f2f2f;
  background: var(--color-sidebar);
  color: var(--color-surface);
}
.brand {
  display: flex;
  min-height: 32px;
  padding: 0 4px;
  align-items: center;
  gap: var(--space-3);
}
.brand__mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 1.125rem;
  font-weight: 800;
}
.brand__name,
.brand__product,
.sidebar__notice,
.page-header__eyebrow,
.page-header__description {
  margin: 0;
}
.brand__name {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.brand__product {
  display: none;
}
.sidebar__notice {
  color: var(--color-muted-soft);
  font-size: 0.75rem;
}
.nav-group + .nav-group {
  margin-top: 16px;
}
#primary-navigation {
  flex: 1 1 auto;
  overflow-y: auto;
}
.nav-group__title {
  margin: 0;
  padding: 6px 10px 5px;
  color: var(--color-muted-soft);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.nav-group__section-label {
  display: none;
  padding: 0 var(--space-3);
  color: var(--color-surface);
  font-size: 0.8125rem;
  font-weight: 700;
}
.nav-list {
  display: grid;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-link {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-radius: var(--radius-control);
  color: #cdd0d3;
  font-size: 13px;
  text-decoration: none;
}
.nav-link__icon {
  display: inline-grid;
  width: 16px;
  flex: 0 0 16px;
  place-items: center;
  color: #d5d7da;
  font-size: 12px;
}
.nav-link:hover {
  background: rgb(255 255 255 / 8%);
}
.nav-link[aria-current=page] {
  background: var(--color-primary);
  color: var(--color-surface);
  font-weight: 700;
}
.sidebar__notice {
  margin-top: auto;
  padding-top: var(--space-6);
  border-top: 1px solid rgb(255 255 255 / 14%);
  line-height: 1.6;
}
.workspace {
  min-width: 0;
  overflow-y: auto;
}
.session-summary {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: var(--radius-control);
  background: rgb(255 255 255 / 6%);
  color: #d8b4b9;
  font-size: 11px;
}
#session-tenant {
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#session-user {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.logout-button,
.settings-action-slot button {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font: inherit;
}
.session-summary .logout-button {
  align-self: flex-start;
  margin-top: 5px;
  border-color: rgb(255 255 255 / 18%);
  background: transparent;
  color: #fff;
  font-size: 11px;
}
.logout-button:not(:disabled):hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  cursor: pointer;
}
.main-content {
  padding: 20px 26px 48px;
}
.content-frame {
  width: min(var(--content-max-width), 100%);
  margin: 0 auto;
}
.main-content[data-page-layout=cards-design-port],
.main-content[data-page-layout=feedback-design-port] {
  padding: 0;
}
.content-frame[data-page-layout=cards-design-port],
.content-frame[data-page-layout=feedback-design-port] {
  width: 100%;
  max-width: none;
  margin: 0;
}
.page-header {
  margin-bottom: 20px;
}
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 20px;
  margin-bottom: 6px;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 20px;
}
.page-breadcrumb[hidden] {
  display: none;
}
.page-breadcrumb__current {
  color: var(--color-text-secondary);
  font-weight: 700;
}
.page-breadcrumb__separator {
  color: var(--color-muted-soft);
}
.page-header__eyebrow {
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}
h1 {
  margin: 0 0 4px;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0;
}
.page-header__description {
  max-width: 44rem;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.7;
}
.view-state {
  min-height: 18rem;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-panel);
  background: var(--color-surface);
  box-shadow: var(--shadow-panel);
}
.view-state:not(.view-state--loading)::before {
  display: block;
  width: 2.5rem;
  height: 0.3rem;
  margin-bottom: var(--space-6);
  border-radius: 999px;
  background: var(--color-primary);
  content: "";
}
.view-state--error::before,
.view-state--permission-denied::before {
  background: var(--color-alert);
}
.view-state__title {
  margin: 0 0 var(--space-3);
  font-size: 1.5rem;
}
.view-state__description {
  max-width: 36rem;
  margin: 0;
  color: var(--color-muted);
  line-height: 1.7;
}
.settings-shell {
  display: block;
}
.settings-shell[hidden] {
  display: none;
}
.settings-page-root {
  min-width: 0;
}
.profile-editor-panel,
.profile-preview-panel {
  min-width: 0;
}
.profile-editor-panel[hidden],
.profile-preview-panel[hidden],
.settings-detail-panel[hidden] {
  display: none;
}
.settings-detail-panel {
  display: grid;
  gap: var(--space-4);
}
.settings-detail-panel[data-design-port=cards] {
  gap: 0;
}
.settings-detail__title,
.feedback-category__title {
  margin: 0;
}
.settings-detail__notice,
.settings-detail__unavailable,
.feedback-fixed-id {
  color: var(--color-muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}
.feedback-category,
.feedback-check,
.feedback-category details {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
}
.settings-control {
  display: grid;
  gap: var(--space-1);
  color: var(--color-text-secondary);
  font-size: 0.8125rem;
}
.settings-control input,
.settings-control textarea {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  background: var(--color-canvas);
  color: var(--color-muted);
  font: inherit;
}
.settings-control input:not(:disabled),
.settings-control textarea:not(:disabled) {
  background: var(--color-surface);
  color: var(--color-text-primary);
}
.crm-metadata__label {
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.crm-metadata__value {
  margin: 0 0 var(--space-3);
}
.audit-events {
  display: grid;
  gap: var(--space-3);
  padding-left: var(--space-6);
}
.audit-events li {
  display: grid;
  gap: var(--space-1);
}
.settings-action-slot {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: var(--sidebar-width);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  min-height: 64px;
  padding: 12px 26px;
  border-top: 1px solid var(--color-border);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(8px);
}
.settings-action-slot[hidden] {
  display: none;
}
.settings-action-slot button:disabled {
  color: var(--color-muted-soft);
  cursor: not-allowed;
}
@media (max-width: 48rem) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    gap: var(--space-4);
    padding: var(--space-4);
  }
  #primary-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
  }
  .nav-group + .nav-group {
    margin-top: 0;
  }
  .sidebar__notice {
    display: none;
  }
  .main-content {
    padding: var(--space-8) var(--space-4);
  }
  .settings-action-slot {
    left: 0;
    padding-right: 18px;
    padding-left: 18px;
  }
}
@media (max-width: 32rem) {
  #primary-navigation {
    grid-template-columns: 1fr;
  }
  .session-summary span {
    display: none;
  }
  .view-state {
    min-height: 14rem;
  }
}
