@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+KR:wght@400;500;600;700&display=swap');

:root {
  --ink: #18202b;
  --muted: #6e7784;
  --line: #dfe4ea;
  --surface: #fff;
  --bg: #f3f5f8;
  --navy: #171d26;
  --navy-soft: #253044;
  --accent: #3157d5;
  --accent-dark: #2647b5;
  --danger: #b93243;
  --success: #147453;
  --font: Inter, "Noto Sans KR", system-ui, sans-serif;
  --shadow: 0 28px 80px rgba(19, 28, 42, .16);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--bg); font-family: var(--font); }
button, input { font: inherit; }
a { color: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(49,87,213,.25); outline-offset: 2px; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 9px 13px; background: white; border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.auth-kicker { margin: 0 0 9px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.auth-brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.auth-brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--navy); color: white; font-size: 18px; font-weight: 800; }
.auth-brand strong, .auth-brand small { display: block; }
.auth-brand strong { font-size: 16px; }
.auth-brand small { margin-top: 2px; color: #8993a1; font-size: 10px; }
.auth-brand-dark { color: white; }
.auth-brand-dark .auth-brand-mark { background: white; color: var(--navy); }

/* Login: strong, minimal structure from the supplied login reference. */
.login-shell { min-height: 100dvh; display: grid; grid-template-columns: minmax(360px, .92fr) minmax(460px, 1.08fr); }
.login-intro { position: relative; overflow: hidden; padding: clamp(34px, 5vw, 72px); display: flex; flex-direction: column; background: var(--navy); color: white; }
.login-intro::before, .login-intro::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.login-intro::before { width: 520px; height: 520px; right: -280px; top: -210px; background: radial-gradient(circle, rgba(70,98,181,.36), transparent 68%); }
.login-intro::after { width: 430px; height: 430px; left: -250px; bottom: -250px; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 0 0 70px rgba(255,255,255,.018), 0 0 0 140px rgba(255,255,255,.012); }
.intro-copy { position: relative; z-index: 1; margin: auto 0; max-width: 530px; }
.intro-copy .auth-kicker { color: #9bb0f4; }
.intro-copy h1 { margin: 0; font-size: clamp(34px, 4.2vw, 58px); line-height: 1.18; letter-spacing: -.055em; }
.intro-copy > p:last-child { max-width: 440px; margin: 24px 0 0; color: #aeb8c6; font-size: 14px; line-height: 1.8; }
.security-note { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.1); }
.security-note > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: rgba(84,181,142,.13); color: #65d3aa; font-weight: 800; }
.security-note p { margin: 0; }
.security-note strong, .security-note small { display: block; }
.security-note strong { font-size: 11px; }
.security-note small { margin-top: 3px; color: #8995a6; font-size: 9px; }
.login-panel { min-height: 100dvh; padding: clamp(30px, 6vw, 80px); display: flex; flex-direction: column; justify-content: center; background: white; }
.login-form-wrap { width: min(410px, 100%); margin: auto; }
.login-form-wrap h2 { margin: 0; font-size: 31px; letter-spacing: -.045em; }
.form-guide { margin: 9px 0 29px; color: var(--muted); font-size: 13px; }
.auth-form { display: grid; gap: 16px; }
.floating-field { position: relative; display: block; }
.floating-field input { width: 100%; height: 58px; padding: 22px 14px 8px; border: 0; border-bottom: 1px solid #bfc6d0; background: transparent; color: var(--ink); outline: 0; font-size: 16px; transition: .18s; }
.floating-field span { position: absolute; left: 14px; top: 19px; color: #7e8793; font-size: 15px; pointer-events: none; transition: .18s; }
.floating-field input:focus { border-color: var(--accent); box-shadow: inset 0 -1px var(--accent); }
.floating-field input:focus + span, .floating-field input:not(:placeholder-shown) + span { top: 7px; color: var(--accent); font-size: 10px; font-weight: 700; }
.auth-submit { width: 100%; min-height: 50px; margin-top: 11px; padding: 0 19px; border: 0; border-radius: 10px; background: var(--accent); color: white; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 700; box-shadow: 0 8px 20px rgba(49,87,213,.2); transition: .16s; }
.auth-submit:hover { background: var(--accent-dark); transform: translateY(-1px); }
.auth-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.login-links { margin-top: 25px; padding-top: 20px; border-top: 1px solid #eceef1; display: flex; justify-content: center; gap: 6px; color: var(--muted); font-size: 12px; }
.login-links a { color: var(--accent); font-weight: 700; text-decoration: none; }
.auth-footer { width: min(410px, 100%); margin: 45px auto 0; color: #a0a6af; font-size: 10px; text-align: center; }
.mobile-brand { display: none; }
.form-alert { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #f0cbd1; border-radius: 9px; background: #fff5f6; color: var(--danger); font-size: 12px; line-height: 1.55; }

/* Minimal login — intentionally close to the supplied login reference. */
.minimal-login {
  position: relative;
  min-height: 100dvh;
  padding: 34px 20px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .5), transparent 42%),
    linear-gradient(135deg, #edf4ff 0%, #e8f0fe 46%, #dce8f5 100%);
}
.minimal-login::before {
  content: "";
  position: absolute;
  width: min(68vw, 880px);
  aspect-ratio: 1;
  left: -24vw;
  top: -48%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .86) 0 18%, rgba(169, 190, 218, .16) 49%, transparent 70%);
  box-shadow: 92vw 92vh 0 min(8vw, 110px) rgba(112, 142, 178, .08);
  filter: blur(3px);
}
.minimal-login-form {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  padding: 46px 42px 38px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 27px;
  background: rgba(250, 252, 255, .68);
  color: #24364a;
  text-align: center;
  box-shadow:
    0 28px 70px rgba(58, 79, 106, .14),
    inset 0 1px 0 rgba(255, 255, 255, .85);
  backdrop-filter: blur(18px);
  transition: opacity .16s ease, transform .16s ease;
}
.page-leaving .minimal-login-form { opacity: 0; transform: translateY(-8px); }
.page-leaving .minimal-login::before { opacity: .7; }
.minimal-login-form h1 {
  margin: 0 0 48px;
  font-size: 29px;
  letter-spacing: -.04em;
}
.minimal-login-form h1::after {
  content: "";
  width: 34px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #849ab5, #b4c5d8);
  display: block;
}
.minimal-auth-form { display: grid; gap: 18px; }
.minimal-field { position: relative; display: block; text-align: left; }
.minimal-field input {
  width: 100%;
  height: 60px;
  padding: 24px 15px 8px;
  border: 1px solid #cbd7e6;
  border-radius: 14px;
  background: #f4f7fc;
  color: #24364a;
  outline: none;
  font-size: 16px;
  box-shadow: inset 0 1px 2px rgba(60, 78, 101, .035);
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.minimal-field span {
  position: absolute;
  left: 16px;
  top: 19px;
  color: #52667d;
  font-size: 15px;
  pointer-events: none;
  transition: .2s ease;
}
.minimal-field input:hover { border-color: #adbed2; }
.minimal-field input:focus {
  border-color: #7d93ad;
  background: #f8faff;
  box-shadow: 0 0 0 4px rgba(98, 121, 148, .11);
}
.minimal-field input:-webkit-autofill,
.minimal-field input:-webkit-autofill:hover,
.minimal-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #24364a;
  caret-color: #24364a;
  -webkit-box-shadow: 0 0 0 1000px #f4f7fc inset;
  box-shadow: 0 0 0 1000px #f4f7fc inset;
  transition: background-color 9999s ease-out 0s;
}
.minimal-field input:focus + span,
.minimal-field input:not(:placeholder-shown) + span {
  top: 7px;
  color: #526b88;
  font-size: 10px;
  font-weight: 700;
}
.minimal-login-button {
  width: 100%;
  height: 52px;
  margin-top: 9px;
  border: 1px solid rgba(42, 58, 77, .18);
  border-radius: 14px;
  background: linear-gradient(135deg, #596f87, #465c74);
  color: white;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(53, 72, 94, .18);
  transition: background .16s, transform .16s, box-shadow .16s;
}
.minimal-login-button:hover {
  background: linear-gradient(135deg, #52677e, #3f5369);
  box-shadow: 0 12px 25px rgba(53, 72, 94, .23);
  transform: translateY(-1px);
}
.minimal-login-button:active { transform: translateY(0); box-shadow: 0 6px 14px rgba(53, 72, 94, .16); }
.minimal-signup-link {
  display: inline-block;
  margin-top: 24px;
  color: #526a84;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}
.minimal-signup-link:hover { color: #344b65; }
.minimal-login-error {
  margin: -31px 0 22px;
  padding: 10px 12px;
  border: 1px solid #e3abb3;
  border-radius: 8px;
  background: #fff3f5;
  color: #9f303d;
  font-size: 11px;
  line-height: 1.5;
}

/* Request flow borrows the compact progress and card grammar of ip-request. */
.request-body { min-height: 100dvh; display: grid; grid-template-rows: 82px minmax(0, 1fr) 48px; background: var(--bg); }
.request-progress { padding: 0 clamp(18px, 4vw, 58px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.95); display: flex; align-items: center; justify-content: space-between; gap: 35px; animation: request-header-in .3s ease-out both; }
.progress-block { min-width: 0; display: flex; align-items: center; gap: 28px; }
.progress-label { min-width: 100px; }
.progress-label span, .progress-label strong { display: block; }
.progress-label span { color: #929aa5; font-size: 9px; font-weight: 700; }
.progress-label strong { margin-top: 3px; font-size: 11px; }
.progress-steps { width: min(520px, 48vw); margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; }
.progress-steps.three-steps { grid-template-columns: repeat(3, 1fr); }
.progress-steps.two-steps { width: auto; display: flex; align-items: center; gap: 15px; }
.progress-steps.two-steps li { min-width: auto; flex: 0 0 auto; }
.progress-steps.two-steps li:not(:last-child)::after {
  content: "→";
  position: static;
  width: auto;
  height: auto;
  margin-left: 15px;
  background: none;
  color: #a6afbb;
  font-size: 13px;
  line-height: 1;
}
.progress-steps li { position: relative; min-width: 74px; display: flex; align-items: center; gap: 7px; color: #9ba3ae; font-size: 9px; font-weight: 700; }
.progress-steps li:not(:last-child)::after { content: ""; position: absolute; z-index: 0; left: 28px; right: 7px; top: 12px; height: 1px; background: #dce1e7; }
.progress-steps li > span { position: relative; z-index: 1; width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #d6dce4; border-radius: 50%; background: white; }
.progress-steps li.active { color: var(--accent); }
.progress-steps li.active > span { border-color: var(--accent); background: var(--accent); color: white; }
.progress-steps li.complete { color: var(--success); }
.progress-steps li.complete > span { border-color: #c7e6da; background: #e9f7f1; }
.progress-steps li.complete::after { background: #bddfD2; }
.request-main { width: min(780px, calc(100% - 32px)); margin: auto; padding: 28px 0; animation: request-card-in .38s cubic-bezier(.22,.7,.25,1) .06s both; }
.request-card { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: 0 15px 40px rgba(20,31,48,.07); }
.request-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid #eceff2; }
.request-heading h1, .request-card > h1 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.request-heading p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.step-chip { padding: 5px 9px; border-radius: 999px; background: #eef2fd; color: var(--accent); font-size: 10px; font-weight: 800; white-space: nowrap; }
.request-form { padding-top: 21px; }
.form-grid-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 15px; }
.form-grid-auth.one-column { grid-template-columns: 1fr; }
.signup-fields { width: 100%; margin-inline: 0; }
.standard-field { display: grid; gap: 6px; }
.standard-field > span { font-size: 11px; font-weight: 700; }
.standard-field b { color: var(--danger); }
.standard-field small { min-height: 14px; color: #9299a3; font-size: 9px; }
.standard-field input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #d8dde5; border-radius: 9px; outline: none; color: var(--ink); }
.standard-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(49,87,213,.1); }
.field-wide { grid-column: 1 / -1; }
.request-actions { margin-top: 25px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.request-actions > a { color: var(--muted); font-size: 11px; text-decoration: none; }
.request-actions .auth-submit { width: 180px; margin: 0; }
.request-footer { padding: 0 clamp(18px, 4vw, 58px); border-top: 1px solid var(--line); background: white; display: flex; align-items: center; justify-content: space-between; color: #8e96a1; font-size: 9px; }
.request-footer { animation: request-footer-in .3s ease-out .12s both; }
.request-footer span:first-child { display: flex; align-items: center; gap: 6px; }
.request-footer i { width: 6px; height: 6px; border-radius: 50%; background: #2ca174; box-shadow: 0 0 0 3px #e5f5ee; }
.request-complete-icon { width: 53px; height: 53px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 15px; background: #eef2fd; color: var(--accent); font-size: 23px; }
.request-card:has(.request-complete-icon) { text-align: center; }
.complete-guide { margin: 13px auto 25px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.link-button { width: 220px; margin: auto; text-decoration: none; }
.device-card { width: min(610px, 100%); margin: auto; }
.device-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #eef2fd; color: var(--accent); font-size: 25px; }
.identity-summary { margin: 18px 0 4px; padding: 13px; display: flex; align-items: center; gap: 11px; border-radius: 10px; background: #f5f7fa; }
.identity-summary > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; background: var(--navy-soft); color: white; font-weight: 800; }
.identity-summary p { margin: 0; }
.identity-summary strong, .identity-summary small { display: block; }
.identity-summary strong { font-size: 11px; }
.identity-summary small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.privacy-note { margin: 20px 0 0; padding-top: 15px; border-top: 1px solid #eceff2; color: #8a929d; font-size: 9px; line-height: 1.6; }

/* Admin */
.admin-body { min-height: 100dvh; background: var(--bg); }
.admin-header { height: 74px; padding: 0 clamp(18px, 4vw, 58px); border-bottom: 1px solid var(--line); background: white; display: flex; align-items: center; justify-content: space-between; }
.admin-header > div { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 11px; }
.admin-header > div a { color: var(--accent); font-weight: 700; text-decoration: none; }
.admin-main { width: min(1280px, calc(100% - 36px)); margin: 0 auto; padding: 34px 0 60px; }
.admin-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.admin-title h1 { margin: 0; font-size: 27px; letter-spacing: -.04em; }
.admin-title p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.admin-role-badge { padding: 6px 10px; border: 1px solid #d9e1f7; border-radius: 999px; background: #f2f5fd; color: var(--accent); font-size: 9px; font-weight: 800; white-space: nowrap; }
.admin-section-nav { position: sticky; z-index: 8; top: 0; margin-top: 22px; padding: 7px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.94); display: flex; gap: 4px; overflow-x: auto; box-shadow: 0 8px 24px rgba(19,28,42,.06); backdrop-filter: blur(10px); }
.admin-section-nav a { min-height: 34px; padding: 0 13px; border-radius: 7px; display: inline-flex; align-items: center; color: #66717f; font-size: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.admin-section-nav a:hover, .admin-section-nav a:focus-visible { background: #f0f3fa; color: var(--accent); }
.admin-overview { margin-top: 15px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; scroll-margin-top: 65px; }
.admin-overview.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-overview article { min-width: 0; min-height: 112px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: white; display: flex; align-items: flex-start; gap: 12px; }
.admin-overview article > div { min-width: 0; }
.overview-icon, .feature-mark { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.overview-icon.is-blue { background: #edf2ff; color: #3157d5; }
.overview-icon.is-green { background: #eaf7f1; color: #147453; }
.overview-icon.is-teal { background: #e9f7f7; color: #147477; }
.overview-icon.is-violet, .feature-mark.is-violet { background: #f2edff; color: #7046c6; }
.admin-overview small, .admin-overview strong, .admin-overview p { display: block; }
.admin-overview small { color: #737d8a; font-size: 9px; font-weight: 700; }
.admin-overview strong { margin-top: 5px; font-size: 24px; letter-spacing: -.04em; }
.admin-overview strong.overview-text { margin-top: 8px; font-size: 14px; letter-spacing: -.02em; }
.admin-overview p { margin: 5px 0 0; overflow: hidden; color: #9aa1ab; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.admin-section { margin-top: 23px; border: 1px solid var(--line); border-radius: 14px; background: white; overflow: hidden; }
.admin-section, .admin-feature-card { scroll-margin-top: 65px; }
.section-title { min-height: 75px; padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.section-title h2 { margin: 0; font-size: 15px; }
.section-title p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.section-title > span { padding: 5px 8px; border-radius: 999px; background: #eef2fd; color: var(--accent); font-size: 9px; font-weight: 800; }
.admin-table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th { padding: 10px 14px; background: #f8f9fb; color: #77808c; font-size: 9px; text-align: left; white-space: nowrap; }
td { max-width: 260px; padding: 13px 14px; border-top: 1px solid #eef0f3; color: #505a67; }
td strong, td small { display: block; }
td strong { color: var(--ink); }
td small { margin-top: 3px; color: #8f97a2; font-size: 9px; }
.ua-cell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.status { display: inline-flex; padding: 4px 7px; border-radius: 999px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.status-pending { color: #8a6113; background: #fff5d9; }
.status-approved { color: var(--success); background: #e9f7f1; }
.status-rejected { color: var(--danger); background: #fff0f2; }
.table-actions { display: flex; gap: 5px; }
.mini-button { min-height: 29px; padding: 0 9px; border: 1px solid #dbe0e6; border-radius: 7px; background: white; cursor: pointer; font-size: 9px; font-weight: 700; }
.mini-button.approve { border-color: #cbd7fa; color: var(--accent); background: #f3f6ff; }
.mini-button.danger { border-color: #efced3; color: var(--danger); background: #fff6f7; }
.empty-row { height: 90px; color: #969da7; text-align: center; }
.admin-messages { margin-top: 12px; display: grid; gap: 6px; }
.admin-message { margin: 0; padding: 10px 12px; border: 1px solid #dce2e9; border-radius: 9px; background: white; color: #596473; font-size: 10px; }
.admin-message.is-success { border-color: #cbe7dc; background: #f1faf6; color: var(--success); }
.admin-message.is-error { border-color: #efced3; background: #fff6f7; color: var(--danger); }
.member-manager { padding: 19px 20px 21px; display: grid; grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr); align-items: start; gap: 22px; }
.member-add-form { display: grid; gap: 7px; }
.member-add-form > label { font-size: 10px; font-weight: 700; }
.member-add-form > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.member-add-form input { min-width: 0; height: 39px; padding: 0 11px; border: 1px solid #d8dde5; border-radius: 8px; outline: none; color: var(--ink); }
.member-add-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(49,87,213,.1); }
.member-add-form .mini-button { min-height: 39px; padding-inline: 14px; }
.member-add-form > small { color: #959ca6; font-size: 8px; }
.member-list { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.member-list article { min-width: 0; min-height: 50px; padding: 6px 7px; border: 1px solid #e2e6eb; border-radius: 9px; background: #fafbfc; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 7px; transition: border-color .15s, box-shadow .15s, opacity .15s; }
.member-list.is-sorting { user-select: none; }
.member-list article.is-dragging { z-index: 2; border-color: #9dafeb; background: #f4f6ff; box-shadow: 0 8px 22px rgba(49,87,213,.16); opacity: .72; }
.member-drag-handle { width: 22px !important; height: 30px !important; border-radius: 6px !important; color: #a2aab5 !important; cursor: grab !important; touch-action: none; }
.member-drag-handle:hover, .member-drag-handle:focus-visible { background: #edf1fa !important; color: var(--accent) !important; }
.member-drag-handle:active { cursor: grabbing !important; }
.member-avatar { width: 27px; height: 27px; border-radius: 8px; background: #e8f4f1; color: #176b5b; display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.member-name { min-width: 0; }
.member-name strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.member-order { width: fit-content; margin-top: 3px; padding: 1px 4px; border-radius: 4px; background: #edf0f4; color: #89919c; display: block; font-size: 6px; font-weight: 800; letter-spacing: .05em; }
.member-list article form { margin: 0; }
.member-list article button { width: 25px; height: 25px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #9aa2ac; cursor: pointer; }
.member-list article button:hover { background: #fff0f2; color: var(--danger); }
.member-empty { grid-column: 1 / -1; min-height: 70px; padding: 18px; border: 1px dashed #d9dee5; border-radius: 9px; color: #929aa5; display: grid; place-items: center; font-size: 9px; text-align: center; }
.member-sort-status { grid-column: 2; margin: -12px 0 0; color: #929aa5; font-size: 8px; }
.member-sort-status.is-saving { color: var(--accent); }
.member-sort-status.is-success { color: var(--success); }
.member-sort-status.is-error { color: var(--danger); }
.admin-feature-grid { margin-top: 23px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-feature-grid.is-single { grid-template-columns: minmax(0, 1fr); }
.admin-feature-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.admin-feature-card > header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; }
.admin-feature-card .auth-kicker { margin-bottom: 4px; font-size: 8px; }
.admin-feature-card h2 { margin: 0; font-size: 15px; }
.feature-status { padding: 5px 8px; border-radius: 999px; background: #f1f3f6; color: #77808c; font-size: 8px; font-weight: 800; }
.feature-description { margin: 17px 0 13px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.feature-preview { margin: 0; padding: 4px 13px; border: 1px solid #e8ebef; border-radius: 10px; background: #fafbfc; }
.feature-preview div { min-height: 41px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid #eceff2; }
.feature-preview div:last-child { border-bottom: 0; }
.feature-preview dt { color: #8a929d; font-size: 9px; }
.feature-preview dd { margin: 0; overflow: hidden; color: #4d5764; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.noip-auth-slot { margin-top: 13px; padding: 13px; border: 1px solid #ded5fa; border-radius: 10px; background: #faf8ff; display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .8fr); align-items: center; gap: 15px; }
.noip-auth-slot > div:first-child { min-width: 0; display: flex; align-items: center; gap: 10px; }
.noip-auth-icon { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px; background: #eee8ff; color: #7046c6; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.noip-auth-slot strong { display: block; font-size: 10px; }
.noip-auth-slot p { margin: 4px 0 0; color: #7d768a; font-size: 8px; line-height: 1.5; }
.noip-auth-link { min-width: 0; min-height: 37px; padding: 5px 5px 5px 10px; border: 1px solid #e3deef; border-radius: 8px; background: white; display: flex; align-items: center; gap: 8px; }
.noip-auth-link code { min-width: 0; flex: 1; overflow: hidden; color: #96909f; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.admin-feature-card > footer { min-height: 45px; margin-top: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-feature-card > footer span { color: #979ea8; font-size: 8px; line-height: 1.5; }
.admin-feature-card .mini-button:disabled { color: #a3aab3; background: #f6f7f9; cursor: not-allowed; }

@keyframes request-header-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes request-card-in {
  from { opacity: 0; transform: translateY(14px) scale(.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes request-footer-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .minimal-login-form { transition: none; }
  .request-progress, .request-main, .request-footer { animation: none; }
}

@media (max-width: 820px) {
  .login-shell { display: block; min-height: 100dvh; background: linear-gradient(155deg, #171d26 0 31%, #f4f5f7 31%); padding: 28px 16px; }
  .login-intro { display: none; }
  .login-panel { min-height: calc(100dvh - 56px); padding: 24px; border-radius: 18px; box-shadow: var(--shadow); justify-content: flex-start; }
  .mobile-brand { margin-bottom: clamp(60px, 15vh, 120px); display: flex; align-items: center; gap: 10px; }
  .mobile-brand .auth-brand-mark { width: 35px; height: 35px; }
  .login-form-wrap { margin: 0 auto; }
  .auth-footer { margin-top: auto; padding-top: 50px; }
  .request-progress { height: 72px; gap: 14px; }
  .request-progress .auth-brand small, .progress-label, .progress-steps strong { display: none; }
  .progress-block { flex: 1; }
  .progress-steps { width: 100%; }
  .progress-steps li { min-width: 40px; gap: 0; }
  .progress-steps li:not(:last-child)::after { left: 26px; right: 3px; }
}

@media (max-width: 560px) {
  .minimal-login { padding: 22px 16px; }
  .minimal-login-form { padding: 40px 24px 34px; border-radius: 23px; }
  .minimal-login-form h1 { margin-bottom: 42px; font-size: 27px; }
  .login-shell { padding: 0; background: white; }
  .login-panel { min-height: 100dvh; padding: 25px 20px; border-radius: 0; box-shadow: none; }
  .mobile-brand { margin-bottom: clamp(65px, 16vh, 125px); }
  .floating-field input { height: 59px; }
  .auth-submit { min-height: 52px; }
  .request-body { grid-template-rows: 70px minmax(0, 1fr) 44px; }
  .request-progress { padding-inline: 14px; }
  .request-progress .auth-brand span:last-child { display: none; }
  .request-progress .auth-brand-mark { width: 35px; height: 35px; }
  .request-main { width: calc(100% - 20px); padding: 10px 0; }
  .request-card { padding: 22px 17px; border-radius: 14px; }
  .request-heading h1, .request-card > h1 { font-size: 21px; }
  .form-grid-auth { grid-template-columns: 1fr; gap: 13px; }
  .field-wide { grid-column: auto; }
  .request-actions { align-items: stretch; flex-direction: column-reverse; }
  .request-actions .auth-submit { width: 100%; }
  .request-actions > a { text-align: center; }
  .request-footer { padding-inline: 14px; }
  .request-footer span:last-child { display: none; }
  .admin-main { width: calc(100% - 20px); padding-top: 22px; }
  .admin-header { padding-inline: 14px; }
  .admin-header .auth-brand small, .admin-header > div span { display: none; }
  .admin-role-badge { display: none; }
  .admin-section-nav { margin-top: 17px; }
  .admin-overview, .admin-overview.three-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-overview article { min-height: 99px; padding: 13px; }
  .admin-feature-grid { grid-template-columns: 1fr; }
  .admin-feature-card { padding: 16px; }
  .noip-auth-slot { grid-template-columns: 1fr; }
  .member-manager { grid-template-columns: 1fr; padding: 15px; }
  .member-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-sort-status { grid-column: 1; margin-top: -12px; }
  .section-title { padding-inline: 15px; }
}
