/* stylelint-disable */
html,
body {
  width: 100%;
  height: 100%;
}
input::-ms-clear,
input::-ms-reveal {
  display: none;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -ms-overflow-style: scrollbar;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
  margin: 0;
}
[tabindex='-1']:focus {
  outline: none;
}
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 500;
}
p {
  margin-top: 0;
  margin-bottom: 1em;
}
abbr[title],
abbr[data-original-title] {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
  border-bottom: 0;
  cursor: help;
}
address {
  margin-bottom: 1em;
  font-style: normal;
  line-height: inherit;
}
input[type='text'],
input[type='password'],
input[type='number'],
textarea {
  -webkit-appearance: none;
}
ol,
ul,
dl {
  margin-top: 0;
  margin-bottom: 1em;
}
ol ol,
ul ul,
ol ul,
ul ol {
  margin-bottom: 0;
}
dt {
  font-weight: 500;
}
dd {
  margin-bottom: 0.5em;
  margin-left: 0;
}
blockquote {
  margin: 0 0 1em;
}
dfn {
  font-style: italic;
}
b,
strong {
  font-weight: bolder;
}
small {
  font-size: 80%;
}
sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
pre,
code,
kbd,
samp {
  font-size: 1em;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}
pre {
  margin-top: 0;
  margin-bottom: 1em;
  overflow: auto;
}
figure {
  margin: 0 0 1em;
}
img {
  vertical-align: middle;
  border-style: none;
}
a,
area,
button,
[role='button'],
input:not([type='range']),
label,
select,
summary,
textarea {
  touch-action: manipulation;
}
table {
  border-collapse: collapse;
}
caption {
  padding-top: 0.75em;
  padding-bottom: 0.3em;
  text-align: left;
  caption-side: bottom;
}
input,
button,
select,
optgroup,
textarea {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
}
button,
input {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
button,
html [type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
}
button::-moz-focus-inner,
[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner {
  padding: 0;
  border-style: none;
}
input[type='radio'],
input[type='checkbox'] {
  box-sizing: border-box;
  padding: 0;
}
input[type='date'],
input[type='time'],
input[type='datetime-local'],
input[type='month'] {
  -webkit-appearance: listbox;
}
textarea {
  overflow: auto;
  resize: vertical;
}
fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
legend {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0.5em;
  padding: 0;
  color: inherit;
  font-size: 1.5em;
  line-height: inherit;
  white-space: normal;
}
progress {
  vertical-align: baseline;
}
[type='number']::-webkit-inner-spin-button,
[type='number']::-webkit-outer-spin-button {
  height: auto;
}
[type='search'] {
  outline-offset: -2px;
  -webkit-appearance: none;
}
[type='search']::-webkit-search-cancel-button,
[type='search']::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-file-upload-button {
  font: inherit;
  -webkit-appearance: button;
}
output {
  display: inline-block;
}
summary {
  display: list-item;
}
template {
  display: none;
}
[hidden] {
  display: none !important;
}

:root {
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #18202b;
  background: #f3f6f8;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }

.session-check,
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f5f5f5;
}

.session-check-space { width: 240px; height: 80px; }
.login-card { width: min(440px, 100%); box-shadow: 0 24px 64px rgba(0, 0, 0, .12); }
.login-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.login-brand h2 { margin: 0 !important; }

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: #1677ff;
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(22, 119, 255, .24);
}

.app-shell { min-height: 100vh; }
.app-sider { box-shadow: 6px 0 24px rgba(0, 0, 0, .08); }
.brand { height: 88px; display: flex; align-items: center; gap: 12px; padding: 18px 22px; color: #fff; }
.brand strong,
.brand small { display: block; }
.brand strong { font-size: 16px; }
.brand small { margin-top: 3px; color: rgba(255, 255, 255, .62); }

.app-header {
  height: auto;
  min-height: 88px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  line-height: normal;
}

.app-header h3 { margin: 0 0 5px !important; }
.app-content { min-width: 0; padding: 28px; }
.feedback { margin-bottom: 18px; }
.page-stack { width: 100%; }
.full-width { width: 100%; }
.form-grid { display: grid; gap: 0 16px; }
.server-form-grid { grid-template-columns: minmax(150px, .7fr) minmax(180px, 1fr) minmax(280px, 1.5fr) minmax(160px, .8fr); }
.token-form-grid { grid-template-columns: minmax(240px, 1fr) minmax(220px, .7fr); max-width: 760px; }
.grant-form-grid { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
.module-options { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 12px; width: 100%; }
.module-option { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid #f0f0f0; border-radius: 8px; }
.module-option-copy { min-width: 0; }
.module-option-copy strong,
.module-option-copy span { display: block; }
.module-option-copy span { margin-top: 3px; color: rgba(0, 0, 0, .45); overflow-wrap: anywhere; }
.table-card { overflow: hidden; }
.token-warning { margin-bottom: 16px; }
.issued-token { padding: 14px; border-radius: 8px; background: #f5f5f5; overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .server-form-grid,
  .grant-form-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .module-options { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
  .app-sider .ant-layout-sider-zero-width-trigger { top: 16px; }
  .app-header { padding-left: 72px; }
}

@media (max-width: 767px) {
  .app-header { min-height: 104px; padding: 14px 16px 14px 72px; align-items: flex-start; }
  .app-header h3 { font-size: 20px; }
  .app-header .ant-typography-secondary { display: block; max-width: 54vw; }
  .app-content { padding: 16px; }
  .server-form-grid,
  .token-form-grid,
  .grant-form-grid { grid-template-columns: 1fr; }
  .ant-modal { max-width: calc(100vw - 24px); }
}

@media (max-width: 480px) {
  .app-header { flex-direction: column; }
  .app-header .ant-typography-secondary { max-width: none; }
}

