html.platform-theme { color-scheme: light; background: #f4f3f6; color: #29252e; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif; }
.platform-theme body { min-width: 0; margin: 0; background: #f4f3f6; }
.platform-shell { min-height: 100dvh; font-size: 14px; line-height: 1.6; }
.platform-shell *, .platform-dialog * { box-sizing: border-box; }
.platform-shell :is(button, input, select, textarea), .platform-dialog :is(button, input, select, textarea) { font: inherit; }
.platform-shell :is(button, input, select, textarea):focus-visible, .platform-dialog :is(button, input, select, textarea, summary):focus-visible { outline: 2px solid #854d89; outline-offset: 3px; }
.platform-shell button, .platform-dialog button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 13px; border: 1px solid #d7d1dc; border-radius: 5px; background: #fff; color: #423748; cursor: pointer; line-height: 1.4; }
.platform-shell button:hover:not(:disabled), .platform-dialog button:hover:not(:disabled) { background: #f0eaf3; border-color: #a995b2; }
.platform-shell :is(button, input, select, textarea):disabled, .platform-dialog :is(button, input, select, textarea):disabled { opacity: .5; cursor: not-allowed; }
.platform-shell .platform-primary, .platform-dialog .platform-primary { background: #67406e; color: #fff; border-color: #67406e; }
.platform-shell .platform-primary:hover:not(:disabled), .platform-dialog .platform-primary:hover:not(:disabled) { background: #523158; border-color: #523158; }
.platform-shell .platform-danger { background: #9a3541; color: #fff; border-color: #9a3541; }
.platform-shell input, .platform-shell select, .platform-shell textarea, .platform-dialog input, .platform-dialog select, .platform-dialog textarea { width: 100%; min-width: 0; min-height: 40px; padding: 8px 11px; border: 1px solid #d6cedb; border-radius: 5px; background: #fff; color: #29252e; }
.platform-shell textarea, .platform-dialog textarea { resize: vertical; }
.platform-shell label, .platform-dialog label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; min-width: 0; }
.platform-shell label small, .platform-dialog label small { color: #736b79; font-size: 12px; font-weight: 400; }
.platform-shell fieldset, .platform-dialog fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 16px; }
.platform-shell h1, .platform-dialog h1 { margin: 0 0 6px; font-size: 25px; line-height: 1.4; letter-spacing: -.025em; font-weight: 650; }
.platform-shell h2, .platform-dialog h2 { font-size: 20px; line-height: 1.4; letter-spacing: -.02em; margin: 0; }
.platform-shell h3 { font-size: 14px; margin: 0 0 16px; }
.platform-shell p, .platform-dialog p { margin: 6px 0 0; overflow-wrap: anywhere; }
.platform-mark { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 650; white-space: nowrap; }
.platform-mark > span { padding: 2px 5px; border: 1px solid #c9b7d1; color: #755480; font-size: 9px; letter-spacing: .08em; font-weight: 500; border-radius: 3px; }
.platform-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 28px; background: #fff; border-bottom: 1px solid #e0dbe4; }
.platform-header > div:last-child { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 14px; font-size: 12px; }
.platform-header > div:last-child > span { min-width: 0; overflow-wrap: anywhere; }
.platform-main { max-width: 1440px; padding: 28px; margin: auto; min-width: 0; }
.platform-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.platform-heading p:not(.platform-eyebrow) { color: #766d7d; font-size: 13px; }
.platform-eyebrow { font-size: 11px; letter-spacing: .04em; color: #776b7e; margin: 0 0 7px !important; }
.platform-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.platform-toolbar > label { flex: 0 1 170px; }
.platform-toolbar > .platform-search { position: relative; flex: 1 1 260px; max-width: 480px; }
.platform-search > svg { position: absolute; left: 11px; top: 12px; color: #8a7b92; }
.platform-search > input { padding-left: 36px; }
.platform-toolbar > span { color: #7b7181; font-size: 12px; margin-left: auto; }
.platform-table-wrap { border: 1px solid #ded7e3; border-radius: 7px; background: #fff; overflow: hidden; }
.platform-table { width: 100%; border-collapse: collapse; text-align: left; table-layout: fixed; }
.platform-table :is(th, td) { padding: 14px 15px; border-bottom: 1px solid #e7e1eb; font-size: 12px; vertical-align: middle; overflow-wrap: anywhere; }
.platform-table tr:last-child > :is(th, td) { border-bottom: 0; }
.platform-table thead th { color: #7f7288; font-weight: 500; background: #faf9fb; font-size: 11px; }
.platform-table th:first-child { width: 30%; }
.platform-table td:last-child, .platform-table th:last-child { width: 75px; text-align: right; }
.platform-table th[scope="row"] { font-weight: 400; }
.platform-table th[scope="row"] button { display: inline; text-align: left; padding: 0; min-height: 0; border: 0; background: transparent; color: #5d3768; font-weight: 600; }
.platform-table th small { display: block; color: #807487; font-size: 11px; margin-top: 5px; font-weight: 400; }
.platform-table tbody tr:hover { background: #faf7fc; }
.platform-table tr.selected { background: #f3edf7; }
.platform-status { display: inline-block; padding: 3px 7px; border: 1px solid #ded6e4; border-radius: 4px; background: #f5f1f7; color: #6e5c78; font-size: 11px; }
.platform-status.is-active { background: #edf5ed; border-color: #caddca; color: #3d6a40; }
.platform-status:is(.is-suspended, .is-expired, .is-trial_expired) { background: #fff4e7; border-color: #e8d3b7; color: #8b6532; }
.platform-status.is-exited { background: #f0eef2; color: #817487; }
.platform-detail { margin-top: 24px; border: 1px solid #ded7e3; background: #fff; border-radius: 7px; overflow: hidden; }
.platform-detail > header { padding: 20px; display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; border-bottom: 1px solid #e5dfe9; }
.platform-detail > header p:last-child { color: #7d6e86; font-size: 12px; }
.platform-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 22px; }
.platform-detail-grid > div { min-width: 0; }
.platform-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0 0 24px; }
.platform-facts dt { color: #87778e; font-size: 11px; }
.platform-facts dd { margin: 4px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.platform-modules { display: flex; flex-wrap: wrap; gap: 7px; }
.platform-modules > span { font-size: 11px; padding: 4px 7px; border: 1px solid #dfd8e5; border-radius: 4px; }
.platform-modules .enabled { color: #61416f; background: #f3edf7; }
.platform-modules .disabled { color: #a69cab; background: #faf9fb; }
.platform-muted { color: #807387; font-size: 12px; line-height: 1.7; margin-top: 16px !important; }
.platform-confirm-id { display: block; padding: 8px; border-radius: 4px; background: #f5f1f7; color: #6d4f76; font-size: 12px; overflow-wrap: anywhere; }
.platform-audit { padding: 18px 22px; border-top: 1px solid #e5dfe9; }
.platform-audit summary { color: #62416e; cursor: pointer; font-size: 13px; }
.platform-audit > div { padding: 13px 0; border-bottom: 1px solid #eee9f1; font-size: 12px; }
.platform-audit > div > span { float: right; color: #8b7d93; font-size: 11px; }
.platform-error, .platform-recovery, .platform-notice, .platform-readonly { padding: 14px 16px; margin-bottom: 18px; border-radius: 5px; font-size: 12px; overflow-wrap: anywhere; }
.platform-error { border: 1px solid #e8c9cc; background: #fff1f2; color: #943e48; }
.platform-error button { margin-top: 10px; }
.platform-recovery { border: 1px solid #e4d0ad; background: #fff8e9; color: #87632b; }
.platform-recovery button { margin-top: 10px; }
.platform-notice { border: 1px solid #cadcc8; background: #eef6ed; color: #476c42; }
.platform-readonly { border: 1px solid #d6c9e1; background: #f6f1fa; color: #705783; }
.platform-empty { border: 1px dashed #d6cedc; border-radius: 7px; background: #faf8fc; padding: 38px 20px; text-align: center; color: #86768f; }
.platform-empty h2 { font-size: 16px; margin-top: 10px; color: #51405d; }
.platform-empty p { margin: 8px 0 16px; }
.platform-footer { padding: 26px 0 6px; color: #97899f; font-size: 11px; }
.platform-login { width: min(440px, calc(100% - 32px)); padding: 32px; margin: 9vh auto; border: 1px solid #ded7e3; border-radius: 8px; background: #fff; }
.platform-login .platform-mark { margin-bottom: 28px; }
.platform-login > p { color: #85768e; font-size: 13px; margin-bottom: 24px; }
.platform-login form { display: grid; gap: 18px; }
.platform-demo { display: grid; gap: 3px; padding-top: 20px; margin-top: 24px; border-top: 1px solid #e7e0eb; font-size: 12px; color: #86738e; }
.platform-demo code { font-size: 12px; color: #725180; }
.platform-demo p { font-size: 11px; margin-top: 8px; }
.platform-session-state { display: grid; place-items: center; align-content: center; gap: 12px; min-height: 60vh; color: #85748f; }
.platform-dialog { width: min(600px, calc(100% - 32px)); max-height: 90dvh; overflow: auto; padding: 0 24px 24px; border: 1px solid #d3c6dd; border-radius: 8px; background: #fff; color: #312839; }
.platform-dialog::backdrop { background: #27183299; }
.platform-dialog > header { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; padding: 16px 0; margin-bottom: 18px; border-bottom: 1px solid #e4dce9; }
.platform-dialog h2 { font-size: 18px; }
.platform-dialog .platform-icon { width: 36px; min-height: 36px; padding: 0; }
.platform-form-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.platform-form-actions { display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid #e7e0eb; padding-top: 16px; }
.platform-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip: rect(0, 0, 0, 0); overflow: hidden; white-space: nowrap; }
@media (max-width: 800px) {
  .platform-main { padding: 22px 16px; }
  .platform-header { padding: 14px 16px; }
  .platform-detail-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .platform-table thead { display: none; }
  .platform-table :is(tbody, tr, th, td) { display: block; width: 100%; }
  .platform-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 18px; padding: 16px; border-bottom: 1px solid #e4dce9; }
  .platform-table :is(th, td) { border: 0; padding: 0; }
  .platform-table th:first-child { width: 100%; grid-column: 1 / -1; }
  .platform-table td:last-child { width: auto; text-align: right; }
  .platform-table td[data-label]::before { display: block; content: attr(data-label); color: #a18cae; font-size: 10px; margin-bottom: 3px; }
  .platform-table th[scope="row"] button { min-height: 35px; }
}
@media (max-width: 480px) {
  .platform-header { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .platform-header > div:last-child { width: 100%; justify-content: space-between; }
  .platform-main { padding: 22px 14px; }
  .platform-heading { flex-direction: column; align-items: flex-start; gap: 14px; }
  .platform-heading > button { width: 100%; }
  .platform-shell h1 { font-size: 23px; }
  .platform-toolbar > .platform-search { flex-basis: 100%; max-width: none; }
  .platform-toolbar > label { flex: 1; }
  .platform-toolbar > span { flex-basis: 100%; margin-left: 0; }
  .platform-shell :is(button, input, select), .platform-dialog :is(button, input, select) { min-height: 44px; }
  .platform-shell :is(input, select, textarea), .platform-dialog :is(input, select, textarea) { font-size: 16px; }
  .platform-detail > header { flex-wrap: wrap; padding: 18px 16px; }
  .platform-detail-grid { padding: 18px 16px; }
  .platform-facts { gap: 15px 12px; }
  .platform-login { padding: 26px 22px; margin-top: 5vh; }
  .platform-form-pair { grid-template-columns: minmax(0, 1fr); }
  .platform-dialog { padding: 0 18px 18px; max-height: 94dvh; }
  .platform-form-actions > button { flex: 1; min-width: 0; }
}
.platform-table td:last-child > button { min-width: 64px; white-space: nowrap; }
