:root {
  --gutter: 48px;
  --page-padding-top: 36px;
  --topbar-height: 56px;
}
@media (max-width: 1023px) {
  :root {
    --gutter: 24px;
    --page-padding-top: 24px;
  }
}
@media (max-width: 639px) {
  :root {
    --gutter: 16px;
    --page-padding-top: 20px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
  min-height: 100vh;
  background: #F8FAFC;
  color: #0F172A;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: #2563EB;
  text-decoration: none;
}
a:hover {
  color: #1D4ED8;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

code {
  padding: 1px 6px;
  border-radius: 6px;
  background: #F1F5F9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

svg {
  flex-shrink: 0;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wordmark {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #0F172A;
}
.wordmark:hover {
  color: #0F172A;
}
.wordmark span {
  color: #2563EB;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 232px;
  min-width: 232px;
  height: 100vh;
  overflow-y: auto;
  padding: 22px 14px;
  border-right: 1px solid #E5E7EB;
  background: #FFFFFF;
}
.app-sidebar .wordmark {
  padding: 6px 8px 0;
}
@media (max-width: 1023px) {
  .app-sidebar {
    position: fixed;
    z-index: 40;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    transition: transform 200ms ease;
    box-shadow: none;
  }
  .app-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
  }
}

.app-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-nav-link {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #475569;
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.app-nav-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.app-nav-link:hover {
  background: #F1F5F9;
  color: #0F172A;
}
.app-nav-link.is-active {
  background: #EFF6FF;
  color: #2563EB;
  font-weight: 600;
}

.app-nav-section {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 14px 10px 6px;
  color: #94A3B8;
}

.switcher {
  position: relative;
}
.switcher[open] .switcher-summary {
  border-color: #D1D5DB;
}

.switcher-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: #FFFFFF;
  color: #64748B;
  list-style: none;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}
.switcher-summary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.switcher-summary::-webkit-details-marker {
  display: none;
}
.switcher-summary:hover {
  background: #F8FAFC;
}

.switcher-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.switcher-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94A3B8;
}

.switcher-name,
.switcher-brand-name {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.5;
  overflow: hidden;
  color: #0F172A;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.switcher-brand-name {
  color: #64748B;
  font-weight: 400;
}

.switcher-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 360px;
  margin-top: 6px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: #FFFFFF;
}

.switcher-group {
  display: flex;
  flex-direction: column;
}
.switcher-group + .switcher-group {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid #F1F5F9;
}

.switcher-item {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  padding: 7px 8px;
  overflow: hidden;
  border-radius: 6px;
  color: #334155;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.switcher-item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.switcher-item:is(a):hover {
  background: #F1F5F9;
  color: #0F172A;
}
.switcher-item.is-active {
  background: #EFF6FF;
  color: #2563EB;
  font-weight: 600;
}

.switcher-heading {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.5;
  color: #0F172A;
}

.switcher-brand {
  padding-left: 20px;
}

.switcher-static {
  color: #64748B;
}

.switcher-create {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 8px;
  border-top: 1px solid #F1F5F9;
  color: #2563EB;
}
.switcher-create:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.switcher-create:hover {
  color: #1D4ED8;
}

.app-sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #E5E7EB;
}
.app-sidebar-footer form {
  margin: 0;
}

.app-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px 10px;
}

.app-user-avatar {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #EFF6FF;
  color: #2563EB;
  text-transform: uppercase;
}

.app-user-name {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  overflow: hidden;
  color: #334155;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--topbar-height);
  padding: 0 var(--gutter);
  border-bottom: 1px solid #E5E7EB;
  background: #FFFFFF;
}
@media (min-width: 1024px) {
  .app-topbar:not(:has(.bell)) {
    display: none;
  }
}
.app-topbar .wordmark {
  display: none;
  font-size: 20px;
}
@media (max-width: 1023px) {
  .app-topbar .wordmark {
    display: inline;
  }
}

.bell {
  position: relative;
  margin-left: auto;
}

.bell-button {
  position: relative;
  width: 36px;
  height: 36px;
}

.bell-count {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.45;
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #DC2626;
  color: #FFFFFF;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

.bell-panel {
  position: absolute;
  z-index: 45;
  top: calc(100% + 8px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(380px, 100vw - 32px);
  max-height: 70vh;
  overflow-y: auto;
  padding: 14px;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.bell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bell-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bell-item {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  text-align: left;
  cursor: pointer;
}
.bell-item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.bell-item:hover {
  background: #F1F5F9;
}
.bell-item.is-unread {
  background: #EFF6FF;
  color: #0F172A;
  font-weight: 600;
}

.bell-item-day {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.45;
  color: #64748B;
}

.app-menu-button {
  display: none;
}
@media (max-width: 1023px) {
  .app-menu-button {
    display: inline-flex;
  }
}
.app-menu-button {
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: -8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #475569;
  cursor: pointer;
}
.app-menu-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.app-menu-button:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.app-backdrop {
  display: none;
}
@media (max-width: 1023px) {
  .app-backdrop.is-open {
    position: fixed;
    z-index: 35;
    inset: 0;
    display: block;
    background: rgba(15, 23, 42, 0.45);
  }
}

.app-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.app-main {
  flex: 1;
  width: 100%;
  max-width: 1240px;
  padding: var(--page-padding-top) var(--gutter) 48px;
}

.public-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 48px var(--gutter);
}

.public-panel {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}
.public-panel > .wordmark {
  display: block;
  margin-bottom: 28px;
  text-align: center;
}

.public-footer {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.45;
  margin-top: 24px;
  color: #94A3B8;
  text-align: center;
}

.public-links {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  margin-top: 18px;
  color: #64748B;
  text-align: center;
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.page-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.page-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.page-title-display {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.page-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  color: #64748B;
}

.page-lead {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
  max-width: 720px;
  text-wrap: pretty;
  color: #64748B;
  font-size: 15px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 639px) {
  .page-actions {
    width: 100%;
  }
  .page-actions .btn {
    flex: 1;
  }
}

.back-link {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  color: #64748B;
}
.back-link:hover {
  color: #0F172A;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
}

.section-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.55;
}

.btn {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font-size: 13.5px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.btn:disabled, .btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  padding: 9px 18px;
  background: #2563EB;
  color: #FFFFFF;
}
.btn-primary:hover:not(:disabled) {
  background: #1D4ED8;
  color: #FFFFFF;
}

.btn-secondary {
  border-color: #D1D5DB;
  background: #FFFFFF;
  color: #374151;
}
.btn-secondary:hover:not(:disabled) {
  background: #F8FAFC;
  color: #0F172A;
}

.btn-danger {
  background: #DC2626;
  color: #FFFFFF;
}
.btn-danger:hover:not(:disabled) {
  background: #B91C1C;
  color: #FFFFFF;
}

.btn-warning {
  background: #9A3412;
  color: #FFFFFF;
}
.btn-warning:hover:not(:disabled) {
  background: #92400E;
  color: #FFFFFF;
}

.btn-link {
  min-height: 0;
  padding: 0;
  color: #2563EB;
}
.btn-link:hover:not(:disabled) {
  color: #1D4ED8;
}

.btn-block {
  width: 100%;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #E5E7EB;
  border-radius: 7px;
  background: #FFFFFF;
  color: #64748B;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.icon-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.icon-btn:hover {
  background: #F8FAFC;
  color: #0F172A;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 944px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}
@media (max-width: 639px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
@media (max-width: 639px) {
  .form-actions .btn {
    flex: 1;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

fieldset.field {
  margin: 0;
  padding: 0;
  border: 0;
}

.field-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.55;
  color: #0F172A;
}

.field-required {
  color: #DC2626;
}

.field-optional {
  color: #64748B;
  font-weight: 400;
}

.field-input {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: #FFFFFF;
  color: #0F172A;
  font-size: 15px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.field-input::placeholder {
  color: #94A3B8;
}
.field-input:hover {
  border-color: #D1D5DB;
}
.field-input:focus {
  border-color: #2563EB;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.field-input[aria-invalid=true] {
  border-color: #DC2626;
}

.field-check {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0F172A;
}

.field-hint {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  color: #64748B;
}

.field-error {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  color: #B91C1C;
}

.card {
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  background: #FFFFFF;
}

.card-body {
  padding: 24px;
}
@media (max-width: 639px) {
  .card-body {
    padding: 20px 16px;
  }
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 48px 24px;
  text-align: center;
}

.empty-state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border-radius: 999px;
  background: #EFF6FF;
  color: #2563EB;
}

.empty-state-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.4;
}

.empty-state-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  max-width: 420px;
  color: #64748B;
  text-wrap: balance;
}

.callout {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  background: #FFFFFF;
  color: #334155;
}
.callout > svg {
  margin-top: 3px;
  color: #64748B;
}

.callout-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 2px;
}

.callout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.callout-info {
  border-color: #BFDBFE;
  background: #EFF6FF;
  color: #1E40AF;
}
.callout-info > svg {
  color: #2563EB;
}

.callout-warning {
  border-color: #FDE68A;
  background: #FFFBEB;
  color: #92400E;
}
.callout-warning > svg {
  color: #92400E;
}

.callout-success {
  border-color: #BBF7D0;
  background: #F0FDF4;
  color: #15803D;
}
.callout-success > svg {
  color: #15803D;
}

.callout-danger {
  border-color: #FECACA;
  background: #FEF2F2;
  color: #B91C1C;
}
.callout-danger > svg {
  color: #DC2626;
}

.footnote {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  display: flex;
  gap: 8px;
  margin-top: 14px;
  color: #64748B;
}
.footnote > svg {
  margin-top: 2px;
  color: #94A3B8;
}

.badge {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.45;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #F1F5F9;
  color: #64748B;
  white-space: nowrap;
}

.badge-success {
  background: #DCFCE7;
  color: #15803D;
}

.badge-info {
  background: #EFF6FF;
  color: #1D4ED8;
}

.badge-warning {
  background: #FEF3C7;
  color: #92400E;
}

.badge-danger {
  background: #FEE2E2;
  color: #B91C1C;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #F1F5F9;
  color: #334155;
  font-size: 14px;
}

.chip-accent {
  background: #EFF6FF;
  color: #2563EB;
  font-weight: 600;
}

.chip-warning {
  background: #FEF3C7;
  color: #92400E;
}

.chip-outline {
  border: 1px dashed #D1D5DB;
  background: transparent;
  color: #64748B;
}

.chip-remove {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.7;
}
.chip-remove:hover {
  opacity: 1;
}

.chip-input {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: #FFFFFF;
  cursor: text;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.chip-input:hover {
  border-color: #D1D5DB;
}
.chip-input:focus-within {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.chip-input:has([aria-invalid=true]) {
  border-color: #DC2626;
}
.chip-input .chip-list {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip-input-field {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
  flex: 1 1 160px;
  min-width: 120px;
  padding: 6px;
  border: 0;
  background: transparent;
  color: #0F172A;
  font-size: 15px;
}
.chip-input-field::placeholder {
  color: #94A3B8;
}
.chip-input-field:focus {
  outline: none;
}

.panel-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #334155;
}

.kv-list {
  margin: 0;
}
.kv-list > div {
  display: grid;
  grid-template-columns: minmax(120px, 220px) 1fr;
  gap: 4px 16px;
  padding: 12px 0;
  border-bottom: 1px solid #F1F5F9;
}
.kv-list > div:last-child {
  border-bottom: 0;
}
@media (max-width: 639px) {
  .kv-list > div {
    grid-template-columns: 1fr;
  }
}
.kv-list dt {
  color: #64748B;
}
.kv-list dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.tabs {
  display: flex;
  gap: 26px;
  margin-bottom: 20px;
  overflow-x: auto;
  border-bottom: 1px solid #E5E7EB;
  scrollbar-width: none;
}

.tab {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: -1px;
  padding: 11px 4px;
  border-bottom: 2px solid transparent;
  color: #64748B;
  white-space: nowrap;
}
.tab:hover {
  color: #0F172A;
}
.tab.is-active {
  border-bottom-color: #2563EB;
  color: #0F172A;
}

.table-card {
  overflow: hidden;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  background: #FFFFFF;
}

.table-scroll {
  position: relative;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}
.table th {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.45;
  padding: 10px 12px;
  border-bottom: 1px solid #E5E7EB;
  color: #64748B;
  font-size: 12.5px;
  text-align: left;
  white-space: nowrap;
}
.table td {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
  padding: 14px 12px;
  border-bottom: 1px solid #F1F5F9;
  color: #0F172A;
  vertical-align: middle;
}
.table tbody tr:last-child td {
  border-bottom: 0;
}
.table th:first-child,
.table td:first-child {
  padding-left: 18px;
}
.table th:last-child,
.table td:last-child {
  padding-right: 18px;
}

.cell-muted {
  color: #64748B;
}

.cell-subtle {
  color: #94A3B8;
}

.cell-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.table-empty {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  padding: 18px;
  color: #64748B;
  text-align: center;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.pager-summary {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  color: #64748B;
}

.pager-links {
  display: flex;
  gap: 8px;
}

.stepper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 28px;
  padding: 0;
  list-style: none;
}

.stepper-item {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.55;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #94A3B8;
}
.stepper-item:not(:last-child)::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 4px;
  border-top: 1.5px solid #94A3B8;
  border-right: 1.5px solid #94A3B8;
  transform: rotate(45deg);
}
.stepper-item.is-current, .stepper-item.is-done {
  color: #0F172A;
}

.stepper-index {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #F1F5F9;
  color: #64748B;
}
.is-current .stepper-index {
  background: #2563EB;
  color: #FFFFFF;
}
.is-done .stepper-index {
  background: #DCFCE7;
  color: #15803D;
}

.modal-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  background: rgba(15, 23, 42, 0.45);
}

.modal {
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 28px;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}
@media (max-width: 639px) {
  .modal {
    padding: 22px 18px;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #FEE2E2;
  color: #B91C1C;
}

.modal-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.4;
  font-size: 18px;
}

.modal-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  color: #64748B;
}

.modal-content {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
  padding: 16px 18px;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  background: #F8FAFC;
  color: #334155;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
@media (max-width: 639px) {
  .modal-actions .btn {
    flex: 1;
  }
}

.toast-container {
  position: fixed;
  z-index: 60;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(380px, 100vw - 32px);
}
@media (max-width: 639px) {
  .toast-container {
    right: 16px;
    bottom: 16px;
  }
}

.toast {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  padding: 12px 16px 12px 14px;
  border: 1px solid #E5E7EB;
  border-left: 4px solid #64748B;
  border-radius: 8px;
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}
.toast.toast-success {
  border-left-color: #15803D;
}
.toast.toast-error {
  border-left-color: #DC2626;
}
.toast.toast-warning {
  border-left-color: #D97706;
}
.toast.toast-info {
  border-left-color: #2563EB;
}

.error-icon {
  background: #FEE2E2;
  color: #B91C1C;
}

.error-request-id {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  color: #64748B;
}

.error-home {
  margin-top: 12px;
}
