:root {
  --navy: #14213d;
  --navy-2: #1b2b4e;
  --blue: #2762d7;
  --blue-soft: #edf3ff;
  --ink: #182238;
  --muted: #718096;
  --line: #e4e9f1;
  --surface: #ffffff;
  --canvas: #f5f7fb;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; min-height: 100%; }
body { color: var(--ink); background: var(--canvas); font-family: Pretendard, "Noto Sans KR", system-ui, sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.login-view { min-height: 100vh; display: grid; grid-template-columns: minmax(430px, 1.05fr) minmax(420px, .95fr); }
.login-brand {
  position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden;
  padding: clamp(50px, 8vw, 130px); color: white; background: var(--navy);
}
.login-brand::before, .login-brand::after { content: ""; position: absolute; border: 1px solid #ffffff1c; border-radius: 50%; }
.login-brand::before { width: 620px; height: 620px; right: -260px; bottom: -280px; }
.login-brand::after { width: 360px; height: 360px; right: -80px; bottom: -150px; }
.login-brand img { width: 150px; height: 82px; padding: 9px; border-radius: 10px; object-fit: contain; background: white; }
.login-brand > p, .kicker { margin: 34px 0 14px; color: #7ca8ff; font-size: 11px; font-weight: 850; letter-spacing: .18em; }
.login-brand h1 { max-width: 680px; margin: 0; font-size: clamp(48px, 5.3vw, 78px); line-height: 1.1; letter-spacing: -.055em; }
.login-brand > span { margin-top: 28px; color: #bfcae0; font-size: 18px; }
.login-panel { width: min(430px, calc(100% - 48px)); margin: auto; padding: 40px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 22px 70px #18223816; }
.login-panel .kicker { margin-top: 0; color: var(--blue); }
.login-panel h2 { margin: 0 0 8px; font-size: 31px; letter-spacing: -.04em; }
.login-panel form > p:not(.kicker, .form-error) { margin: 0 0 24px; color: var(--muted); line-height: 1.55; }
.login-panel label, #userForm > label { display: grid; gap: 8px; margin-top: 18px; }
.login-panel label span, #userForm > label span { color: #46546a; font-size: 13px; font-weight: 750; }
.login-panel input, #userForm input, #userForm select, .table-toolbar input {
  width: 100%; height: 50px; padding: 0 14px; border: 1px solid #d4dce8; border-radius: 9px; outline: 0; background: white;
}
.login-panel input:focus, #userForm input:focus, #userForm select:focus, .table-toolbar input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px #2762d715; }
.primary-button { min-height: 50px; width: 100%; border: 0; border-radius: 9px; color: white; background: var(--blue); font-weight: 800; }
.primary-button:hover { background: #1d51bc; }
.primary-button:disabled { opacity: .6; cursor: wait; }
.primary-button.compact { width: auto; min-height: 42px; padding: 0 18px; }
.login-panel small { display: block; margin-top: 22px; color: #99a3b2; text-align: center; }
.form-error { min-height: 20px; margin: 12px 0 4px; color: #c0392b; font-size: 13px; }
.mobile-logo { display: none; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: -12px -12px 30px; padding: 4px; border-radius: 10px; background: #f0f3f8; }
.auth-tabs button { height: 40px; border: 0; border-radius: 7px; color: #7b8798; background: transparent; font-size: 13px; font-weight: 800; }
.auth-tabs button.active { color: var(--blue); background: white; box-shadow: 0 2px 10px #18223812; }
.logout-notice { display: grid; gap: 4px; margin: 0 0 24px; padding: 14px 16px; border: 1px solid #bcd1f4; border-radius: 10px; color: #28549a; background: #f3f7ff; }
.logout-notice strong { font-size: 14px; }
.logout-notice span { font-size: 12px; line-height: 1.5; }
.signup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.signup-grid .wide { grid-column: 1 / -1; }
.signup-grid label small { margin: -3px 0 0; text-align: left; font-size: 10px; }
.privacy-box { margin-top: 22px; padding: 16px; border: 1px solid #dce3ee; border-radius: 11px; background: #fafbfd; }
.privacy-box h3 { margin: 0 0 12px; font-size: 14px; }
.privacy-box dl { max-height: 190px; margin: 0; padding-right: 5px; overflow-y: auto; }
.privacy-box dl div { display: grid; grid-template-columns: 90px 1fr; gap: 9px; padding: 8px 0; border-top: 1px solid #e8ecf2; font-size: 11px; line-height: 1.55; }
.privacy-box dt { color: #526075; font-weight: 800; }
.privacy-box dd { margin: 0; color: #717e90; }
.privacy-box .privacy-consent { display: flex; grid-template-columns: none; align-items: flex-start; gap: 9px; margin: 13px 0 0; padding-top: 13px; border-top: 1px solid #dfe5ed; }
.privacy-consent input { flex: 0 0 auto; width: 18px !important; height: 18px !important; padding: 0; accent-color: var(--blue); }
.privacy-consent span { line-height: 1.45; }
.signup-success { padding: 30px 0 10px; text-align: center; }
.signup-success > span { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; color: white; background: #2d7d57; font-size: 27px; }
.signup-success p { margin: 0 0 26px; color: var(--muted); line-height: 1.65; }
.logout-view {
  min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 34px;
  padding: 42px 20px; color: white; background: var(--navy);
}
.logout-brand { display: grid; justify-items: center; gap: 4px; }
.logout-brand p { margin: 0; color: #76a9ff; font-size: 11px; font-weight: 900; letter-spacing: .18em; }
.logout-brand strong { font-size: 29px; letter-spacing: -.05em; }
.logout-brand > span { color: #dbe5f7; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.logout-card {
  width: min(430px, 100%); padding: 44px 38px 34px; border-radius: 22px;
  color: var(--ink); background: white; box-shadow: 0 24px 70px #00000030; text-align: center;
}
.logout-check {
  width: 86px; height: 86px; display: grid; place-items: center; margin: 0 auto 28px;
  border-radius: 50%; color: #14866d; background: #eaf8f5; font-size: 34px; font-weight: 900;
}
.logout-card h1 { margin: 0; font-size: 25px; letter-spacing: -.045em; }
.logout-card p { margin: 18px 0 32px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.logout-signup-button {
  width: 100%; min-height: 50px; margin-top: 12px; border: 0; border-radius: 9px;
  color: var(--blue); background: var(--canvas); font-weight: 800;
}
.logout-card small { display: block; margin-top: 30px; color: #99a3b2; }

.portal-view { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.home-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 14px; color: white; background: var(--navy); }
.home-brand { display: block; padding: 6px 8px 18px; border-bottom: 1px solid #ffffff15; }
.home-brand img {
  display: block;
  width: 210px;
  max-width: none;
  height: auto;
  margin: 0 auto 12px;
  padding: 10px 12px;
  border-radius: 6px;
  object-fit: contain;
  background: white;
}
.home-sidebar nav { display: grid; gap: 6px; margin-top: 14px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border: 0; border-radius: 9px; color: #bac5da; background: transparent; text-align: left; }
.nav-item > span:first-child { flex: 0 0 22px; width: 22px; font-size: 19px; text-align: center; }
.nav-item .nav-label { min-width: 0; flex: 1 1 auto; width: auto; font-size: 14px; font-weight: 750; text-align: left; }
.nav-item .nav-pending-badge {
  flex: 0 0 auto;
  width: auto;
  min-width: 23px;
  height: 23px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--navy);
  border-radius: 999px;
  color: white;
  background: #e53935;
  box-shadow: 0 3px 10px #0000002e;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}
.nav-item:hover .nav-pending-badge, .nav-item.active .nav-pending-badge { border-color: #263553; }
.nav-item:hover, .nav-item.active { color: white; background: #ffffff13; }
.nav-item.active { box-shadow: inset 3px 0 #6090ff; }
.sidebar-account { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: auto; padding: 16px 8px 0; border-top: 1px solid #ffffff15; }
.avatar, .user-cell span { display: grid; place-items: center; border-radius: 50%; color: white; background: #3f6bc7; font-weight: 850; }
.avatar { width: 38px; height: 38px; }
.sidebar-account div:nth-child(2) { display: grid; min-width: 0; }
.sidebar-account strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; }
.sidebar-account span { color: #9eabc2; font-size: 11px; }
.sidebar-account .sidebar-logout-button {
  display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 9px;
  border: 1px solid #ffffff24; border-radius: 8px; color: #d5ddeb; background: #ffffff0a;
  font-size: 11px; font-weight: 800;
}
.sidebar-account .sidebar-logout-button:hover { color: white; border-color: #ffffff40; background: #ffffff16; }
.sidebar-logout-button span:first-child { font-size: 15px; }

.home-main { min-width: 0; padding: 56px clamp(28px, 5vw, 76px) 80px; }
.mobile-header { display: none; }
.mobile-bottom-nav { display: none; }
.welcome-bar, .page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; max-width: 1280px; margin: auto; }
.welcome-bar .kicker, .page-heading .kicker, .admin-summary .kicker { margin: 0 0 10px; color: var(--blue); }
.welcome-bar h1, .page-heading h1 { margin: 0; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.05em; }
.welcome-bar > div > p:last-child, .page-heading > div > p:last-child { margin: 12px 0 0; color: var(--muted); }
.daily-quote {
  max-width: 760px;
  margin: 18px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--blue);
  color: #334155;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -.02em;
}
.daily-quote::before { content: "“"; margin-right: 3px; color: var(--blue); }
.daily-quote::after { content: "”"; margin-left: 3px; color: var(--blue); }
.welcome-actions { display: flex; align-items: stretch; gap: 10px; }
.today-box { min-width: 126px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: white; text-align: right; }
.today-box span { display: block; color: var(--muted); font-size: 11px; }
.today-box strong { font-size: 14px; }
.header-logout-button {
  min-width: 92px; padding: 0 16px; border: 1px solid #cfd8e7; border-radius: 12px;
  color: #526075; background: white; font-size: 13px; font-weight: 800;
}
.header-logout-button:hover { color: #b42318; border-color: #efb6b1; background: #fff7f6; }
.content-block { max-width: 1280px; margin: 52px auto 0; }
.block-heading { display: flex; align-items: flex-end; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid #dce2eb; }
.block-heading h2 { margin: 0; font-size: 22px; }
.block-heading p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.count-badge { padding: 7px 11px; border-radius: 999px; color: var(--blue); background: var(--blue-soft); font-size: 12px; font-weight: 750; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.app-card {
  position: relative; min-height: 260px; display: flex; flex-direction: column; padding: 26px;
  border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: white; text-decoration: none;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.active-card:hover { transform: translateY(-4px); border-color: #9eb8ed; box-shadow: 0 18px 40px #25447115; }
.app-number { position: absolute; top: 22px; right: 24px; color: #cbd3df; font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.app-icon, .placeholder-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 13px; }
.app-icon { color: white; background: linear-gradient(145deg, #315fbe, #1c3f88); font-size: 18px; font-weight: 900; }
.placeholder-icon { border: 1px dashed #cbd4e1; color: #aeb9c9; background: #fafbfd; font-size: 25px; }
.app-card h3 { margin: 28px 0 9px; font-size: 22px; letter-spacing: -.035em; }
.app-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.card-action, .coming-label { margin-top: auto; padding-top: 24px; font-size: 12px; font-weight: 800; }
.card-action { color: var(--blue); }
.card-action b { margin-left: 6px; font-size: 16px; }
.coming-label { color: #aab4c3; letter-spacing: .08em; }
.placeholder-card { border-style: dashed; background: #fafbfc; }
.placeholder-card h3 { color: #8290a3; }
.admin-summary { max-width: 1280px; display: flex; align-items: center; justify-content: space-between; gap: 30px; margin: 28px auto 0; padding: 27px 30px; border-radius: 16px; color: white; background: var(--navy-2); }
.admin-summary h2 { margin: 0; font-size: 22px; }
.admin-summary p:last-child { margin: 8px 0 0; color: #b5c0d4; font-size: 13px; }
.outline-button { min-height: 42px; padding: 0 17px; border: 1px solid #ffffff48; border-radius: 9px; color: white; background: transparent; white-space: nowrap; }
.outline-button:hover { background: #ffffff12; }

.page-heading { align-items: center; }
.admin-stats { max-width: 1280px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 38px auto 18px; }
.admin-stats article { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.admin-stats span { color: var(--muted); font-size: 12px; }
.admin-stats strong { display: block; margin-top: 6px; font-size: 28px; }
.user-table-card { max-width: 1280px; margin: auto; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: white; }
.signup-request-card { margin-bottom: 18px; border-color: #cddaf1; }
.signup-request-card .table-toolbar { background: #f7f9fe; }
.table-toolbar p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.empty-table { margin: 0; padding: 24px; color: var(--muted); text-align: center; font-size: 13px; }
.integration-security-note { display:flex; align-items:center; gap:12px; max-width:1280px; margin:0 auto 18px; padding:15px 18px; border:1px solid #b9ded3; border-radius:12px; color:#315e54; background:#effaf6; }
.integration-security-note strong { color:#12735d; white-space:nowrap; }.integration-security-note span { font-size:12px; line-height:1.5; }
.integration-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; max-width:1280px; margin:auto; }
.integration-card { padding:20px; border:1px solid var(--line); border-radius:14px; background:#fff; box-shadow:0 8px 24px #15233b0b; }
.integration-card-head,.integration-card footer { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.integration-card-head span,.integration-card-head em { padding:5px 9px; border-radius:999px; background:#f0f2f5; font-size:10px; font-style:normal; font-weight:750; }
.integration-card h2 { margin:14px 0 5px; font-size:17px; }.integration-account { margin:0; color:var(--muted); font-size:12px; }
.integration-card dl { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:17px 0; }.integration-card dl div { min-width:0; padding:10px; border-radius:9px; background:#f8fafc; }
.integration-card dt { color:var(--muted); font-size:10px; }.integration-card dd { overflow:hidden; margin:5px 0 0; font-size:12px; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }
.integration-card button { min-height:38px; padding:0 13px; border:1px solid #d5dce6; border-radius:8px; background:white; }.integration-card .test-button { color:white; border-color:#147b63; background:#147b63; }
#integrationForm { max-height:calc(100vh - 44px); padding:28px; overflow-y:auto; } #integrationForm header { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; } #integrationForm header h2 { margin:0; } #integrationForm header p { margin:5px 0 0; color:var(--muted); font-size:12px; } #integrationForm header button { border:0; background:transparent; font-size:24px; }
.integration-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:18px; }.integration-form-grid label { display:grid; gap:7px; }.integration-form-grid label span { font-size:12px; font-weight:750; }.integration-form-grid input,.integration-form-grid select { width:100%; height:44px; }
#integrationForm fieldset { display:flex; flex-wrap:wrap; gap:14px; margin:18px 0; padding:14px; border:1px solid var(--line); border-radius:11px; } #integrationForm legend { padding:0 6px; font-size:12px; font-weight:750; }.check-row { display:flex; align-items:center; gap:8px; }
#integrationForm footer { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }
.pending-stat { border-color: #c9d8f2 !important; background: #f6f9ff !important; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.table-toolbar h2 { margin: 0; font-size: 18px; }
.table-toolbar input { width: 220px; height: 40px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px 20px; border-bottom: 1px solid #edf0f5; color: #526075; font-size: 13px; text-align: left; white-space: nowrap; }
th { color: #8a96a8; background: #fafbfc; font-size: 11px; letter-spacing: .04em; }
tbody tr:last-child td { border-bottom: 0; }
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell span { width: 34px; height: 34px; font-size: 12px; }
.user-cell strong { color: var(--ink); }
td em { padding: 5px 8px; border-radius: 6px; color: #315991; background: #edf3fb; font-style: normal; font-size: 11px; }
td button { padding: 7px 11px; border: 1px solid #d9e0ea; border-radius: 7px; color: #34435a; background: white; }

dialog { width: min(760px, calc(100% - 32px)); max-height: calc(100vh - 44px); padding: 0; border: 0; border-radius: 18px; color: var(--ink); box-shadow: 0 28px 90px #10182755; }
dialog::backdrop { background: #10182788; backdrop-filter: blur(3px); }
#userForm { max-height: calc(100vh - 44px); padding: 28px; overflow-y: auto; }
#userForm header { display: flex; align-items: flex-start; justify-content: space-between; }
#userForm header .kicker { margin: 0 0 7px; color: var(--blue); }
#userForm h2 { margin: 0; }
#closeUserDialog { border: 0; color: #7f8b9d; background: transparent; font-size: 25px; }
#userForm fieldset { margin: 22px 0 0; padding: 0; border: 0; }
#userForm legend { margin-bottom: 10px; font-size: 13px; font-weight: 750; }
.permission-intro { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.permission-list { display: grid; gap: 12px; }
.permission-group { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fafbfd; }
.permission-group.enabled { border-color: #a9bfed; background: white; box-shadow: 0 8px 24px #2544710c; }
.permission-group-toggle {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  width: 100%; padding: 15px 16px; border: 0; color: inherit; background: #f6f8fc; text-align: left;
}
.permission-group.enabled .permission-group-toggle { background: var(--blue-soft); }
.permission-group-toggle:hover { background: #eef3fb; }
.permission-group-title { display: grid; gap: 3px; min-width: 0; }
.permission-group-title strong { color: var(--ink); font-size: 14px; }
.permission-group-title small { overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.permission-group-summary { padding: 5px 8px; border-radius: 999px; color: #68758a; background: #e8edf5; font-size: 10px; font-weight: 750; white-space: nowrap; }
.permission-group.enabled .permission-group-summary { color: #2455a5; background: #dbe7ff; }
.permission-chevron { color: #708097; font-size: 20px; line-height: 1; transition: transform .18s ease; }
.permission-group.expanded .permission-chevron { transform: rotate(180deg); }
.permission-group-panel[hidden] { display: none !important; }
.permission-group-controls { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid #e3e9f2; background: white; }
.permission-parent { flex: 1; display: flex; align-items: center; gap: 11px; min-width: 0; cursor: pointer; }
.permission-parent input, .permission-child input { flex: 0 0 auto; width: 17px !important; height: 17px !important; accent-color: var(--blue); }
.permission-parent span { display: grid; gap: 3px; }
.permission-parent strong { color: var(--ink); font-size: 14px; }
.permission-parent small { color: var(--muted); font-size: 11px; font-weight: 500; }
.permission-all-button { padding: 7px 10px; border: 1px solid #cbd8ed; border-radius: 7px; color: #315991; background: white; font-size: 11px; font-weight: 750; white-space: nowrap; }
.permission-all-button:disabled { opacity: .45; cursor: default; }
.permission-group-body { display: grid; grid-template-columns: 1fr; gap: 9px; padding: 15px 16px; }
.permission-group-body section { min-width: 0; }
.permission-category { padding: 11px; border: 1px solid #e6ebf2; border-radius: 10px; background: #fbfcfe; }
.permission-category > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.permission-group-body h4 { margin: 0; color: #53647d; font-size: 11px; letter-spacing: .04em; }
.permission-category-all { padding: 5px 8px; border: 1px solid #d4deed; border-radius: 6px; color: #43638d; background: white; font-size: 10px; font-weight: 700; }
.permission-category-all:disabled { opacity: .45; }
.permission-items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.permission-child { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid #e2e7ef; border-radius: 8px; background: white; font-size: 11px; cursor: pointer; }
.permission-child:has(input:checked) { border-color: #b5c8ed; color: #224f9f; background: #f5f8ff; }
.permission-child:has(input:disabled) { opacity: .48; cursor: default; }
.permission-group footer { display: flex !important; justify-content: space-between !important; margin: 0 !important; padding: 9px 16px !important; border-top: 1px solid #edf0f5; color: var(--muted); background: #fbfcfe; font-size: 10px; }
.permission-group footer em { font-style: normal; }
#userForm footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.danger-button { margin-right: auto; padding: 0 14px; border: 1px solid #efc7c3; border-radius: 8px; color: #b8332a; background: #fff7f6; }
.request-profile { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; padding: 16px; border: 1px solid #dce4ef; border-radius: 11px; background: #f8faff; }
.request-profile div { display: grid; gap: 3px; min-width: 0; }
.request-profile span { color: var(--muted); font-size: 10px; }
.request-profile strong { overflow-wrap: anywhere; font-size: 13px; }
.employee-profile-fields { margin-top: 20px; padding: 18px; border: 1px solid #dce4ef; border-radius: 12px; background: #fbfcfe; }
.employee-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.employee-section-heading h3 { margin: 0; font-size: 15px; }
.employee-section-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.employee-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.employee-profile-grid label { display: grid; gap: 7px; margin: 0; }
.employee-profile-grid label.wide { grid-column: 1 / -1; }
.employee-profile-grid label span { color: #46546a; font-size: 12px; font-weight: 750; }
.employee-profile-grid input {
  width: 100%; height: 44px; padding: 0 13px; border: 1px solid #d4dce8; border-radius: 8px; outline: 0; background: white;
}
.employee-profile-grid input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px #2762d715; }
.password-reset-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
  margin-top: 18px; padding: 16px 18px; border: 1px solid #cddaf1; border-radius: 12px; background: #f7f9fe;
}
.password-reset-panel > div:first-child { display: grid; gap: 4px; }
.password-reset-panel strong { font-size: 13px; }
.password-reset-panel span { color: var(--muted); font-size: 11px; }
#resetPasswordButton { min-height: 38px; padding: 0 13px; border: 1px solid #9fb7df; border-radius: 8px; color: #28549a; background: white; font-weight: 750; }
#resetPasswordButton:hover { background: #edf3ff; }
.temporary-password-result {
  grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding-top: 12px; border-top: 1px solid #dce5f3;
}
.temporary-password-result code { padding: 9px 11px; border: 1px solid #cfd9e8; border-radius: 7px; color: #17284a; background: white; font-size: 14px; font-weight: 800; }
.temporary-password-result button { min-height: 34px; padding: 0 11px; border: 1px solid #c6d2e4; border-radius: 7px; color: #344f79; background: white; }
.profile-section { max-width: 720px; margin: 0 auto; }
.profile-heading .kicker { margin: 0 0 10px; color: var(--blue); }
.profile-heading h1 { margin: 0; font-size: clamp(34px, 4vw, 48px); letter-spacing: -.05em; }
.profile-heading > p:last-child { margin: 12px 0 0; color: var(--muted); }
.profile-card {
  display: grid; justify-items: center; margin-top: 34px; padding: 42px;
  border: 1px solid var(--line); border-radius: 20px; background: white;
}
.profile-avatar {
  width: 94px; height: 94px; display: grid; place-items: center; border-radius: 50%;
  color: var(--blue); background: var(--blue-soft); font-size: 30px; font-weight: 900;
}
.profile-card h2 { margin: 19px 0 8px; font-size: 25px; }
.profile-role { padding: 6px 13px; border-radius: 999px; color: #14866d; background: #eaf8f5; font-size: 12px; font-weight: 800; }
.profile-card dl { width: 100%; margin: 30px 0 0; border-top: 1px solid var(--line); }
.profile-card dl div { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 17px 4px; border-bottom: 1px solid var(--line); }
.profile-card dt { color: var(--muted); font-size: 12px; }
.profile-card dd { margin: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 750; text-align: right; }
.profile-security { width: 100%; display: grid; gap: 8px; margin-top: 24px; padding: 18px; border-radius: 12px; color: #41516d; background: var(--blue-soft); }
.profile-security strong { color: var(--blue); font-size: 13px; }
.profile-security span { font-size: 12px; }
.profile-logout-button {
  width: 100%; min-height: 50px; margin-top: 24px; border: 1px solid #efc7c3;
  border-radius: 9px; color: #b8332a; background: #fff7f6; font-weight: 800;
}

@media (max-width: 1050px) {
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  body { background: var(--canvas); }
  .login-view { display: block; min-height: 100vh; padding: 0 0 32px; background: var(--canvas); }
  .login-brand { min-height: 270px; padding: 38px 28px 82px; justify-content: flex-start; }
  .login-brand img { display: none; }
  .login-brand > p { margin: 0 0 18px; font-size: 10px; }
  .login-brand h1 { font-size: 31px; line-height: 1.18; }
  .login-brand > span { margin-top: 20px; font-size: 14px; }
  .login-panel {
    width: calc(100% - 32px); max-width: 430px; margin: -40px auto 0; padding: 28px 22px;
    position: relative; border: 0; border-radius: 18px; box-shadow: 0 18px 44px #18223816;
  }
  .login-panel h2 { font-size: 27px; }
  .login-panel input { height: 54px; background: #f8faff; }
  .login-panel .primary-button { min-height: 56px; }
  .signup-grid { grid-template-columns: 1fr; }
  .signup-grid .wide { grid-column: auto; }
  .signup-grid label { margin-top: 13px; }
  .privacy-box dl { max-height: 145px; }
  .mobile-logo { display: none; }
  .logout-view { align-content: start; padding: 46px 20px; gap: 52px; }
  .logout-card { padding: 42px 22px 32px; border-radius: 18px; }
  .logout-card h1 { font-size: 22px; }
  .portal-view { display: block; }
  .home-sidebar { display: none; }
  .home-main { padding: 0 16px 112px; }
  .mobile-header {
    display: flex; align-items: center; justify-content: space-between; margin: 0 -16px;
    padding: 16px 20px; color: white; background: var(--navy);
  }
  .mobile-header > div { display: grid; gap: 3px; }
  .mobile-header small { color: #76a9ff; font-size: 8px; font-weight: 900; letter-spacing: .14em; }
  .mobile-header strong { font-size: 13px; }
  .mobile-avatar {
    width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%;
    color: white; background: var(--blue); font-size: 13px; font-weight: 900;
  }
  .mobile-bottom-nav {
    position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; min-height: 76px;
    display: flex; align-items: stretch; justify-content: center; padding: 8px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    border-top: 1px solid var(--line); background: #fffffff2; box-shadow: 0 -10px 30px #14213d12; backdrop-filter: blur(14px);
  }
  .mobile-nav-item {
    position: relative; flex: 1 1 0; max-width: 150px; display: grid; place-items: center; align-content: center; gap: 3px;
    border: 0; border-radius: 10px; color: var(--muted); background: transparent;
  }
  .mobile-nav-item > span { font-size: 18px; line-height: 1; }
  .mobile-nav-item strong { font-size: 10px; }
  .mobile-nav-item.active { color: var(--blue); background: var(--blue-soft); }
  .mobile-nav-item em {
    position: absolute; top: 2px; left: 55%; min-width: 19px; height: 19px; display: grid; place-items: center;
    padding: 0 5px; border-radius: 999px; color: white; background: #e53935; font-size: 9px; font-style: normal; font-weight: 900;
  }
  #workspaceSection { margin: 0 -16px; }
  .welcome-bar {
    min-height: 205px; align-items: flex-start; padding: 30px 24px 54px;
    color: white; background: var(--navy);
  }
  .welcome-bar .kicker { color: #76a9ff; }
  .welcome-bar > div > p:last-child { color: #c9d6ee; font-size: 13px; }
  .welcome-bar, .page-heading { align-items: flex-start; }
  .welcome-actions { display: none; }
  .welcome-bar h1, .page-heading h1 { font-size: 26px; }
  .daily-quote {
    margin-top: 18px; padding: 15px 16px; border: 0; border-radius: 12px;
    color: var(--ink); background: white; box-shadow: 0 10px 24px #0b183038; font-size: 13px;
  }
  .content-block { margin: 0; padding: 34px 16px 0; }
  .block-heading { align-items: center; }
  .block-heading h2 { font-size: 19px; }
  .block-heading p { font-size: 11px; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
  .app-card { min-height: 174px; padding: 16px; border-radius: 13px; }
  .app-number { top: 15px; right: 15px; font-size: 9px; }
  .app-icon, .placeholder-icon { width: 42px; height: 42px; border-radius: 11px; font-size: 14px; }
  .app-card h3 { margin: 20px 0 6px; font-size: 15px; line-height: 1.35; }
  .app-card p { font-size: 10px; line-height: 1.55; }
  .card-action, .coming-label { padding-top: 14px; font-size: 10px; }
  .placeholder-card { min-height: 160px; }
  .admin-summary { align-items: flex-start; flex-direction: column; }
  .admin-summary { margin: 24px 16px 0; }
  #adminSection, .profile-section { padding-top: 28px; }
  .admin-stats { grid-template-columns: 1fr; }
  .page-heading { flex-direction: column; }
  .table-toolbar { align-items: stretch; flex-direction: column; }
  .table-toolbar input { width: 100%; }
  .permission-group-body { grid-template-columns: 1fr; }
  .permission-group-toggle { grid-template-columns: minmax(0, 1fr) auto; }
  .permission-group-summary { display: none; }
  .permission-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .request-profile { grid-template-columns: 1fr; }
  .employee-profile-grid { grid-template-columns: 1fr; }
  .employee-profile-grid label.wide { grid-column: auto; }
  .employee-section-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .password-reset-panel { grid-template-columns: 1fr; }
  .temporary-password-result { grid-column: auto; grid-template-columns: 1fr auto; }
  .temporary-password-result > span { grid-column: 1 / -1; }
  .profile-heading h1 { font-size: 30px; }
  .profile-card { margin-top: 24px; padding: 30px 20px 24px; border-radius: 16px; }
  .profile-avatar { width: 88px; height: 88px; }
  .profile-card dl div { grid-template-columns: 88px 1fr; }
}
