.app-page { background: var(--paper); }
.app-page .login-brand__top .brand-logo { max-width: 260px; }
.app-page .login-content { min-height: 100vh; }
.form-message { padding: 13px 15px; margin: 0 0 20px; color: #245440; background: #e5f2ea; border: 1px solid #b9dac5; border-radius: 3px; font-size: 13px; line-height: 1.4; }
.form-message--error { color: #752d32; background: #fff0ef; border-color: #e5b8b8; }
.app-page .primary-button { cursor: pointer; justify-content: center; gap: 25px; }
.app-page .primary-button:hover { background: #384c59; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: var(--mist); }
.auth-panel { width: min(100%, 490px); padding: 42px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 38px rgba(27,44,55,.08); }
.auth-logo { display: block; width: 205px; height: auto; margin: 0 auto 35px; }
.auth-panel h1 { margin: 10px 0 15px; font-size: clamp(33px, 6vw, 48px); letter-spacing: -.06em; line-height: 1.05; }
.auth-panel p { color: #657782; line-height: 1.5; }
.auth-form { display: flex; flex-direction: column; margin-top: 27px; }
.auth-form label { margin: 0 0 8px; font-size: 13px; font-weight: 800; }
.auth-form input, .create-form input { min-height: 49px; width: 100%; margin: 0 0 22px; padding: 0 13px; border: 1px solid #cdd8da; border-radius: 3px; background: #fbfcfc; color: var(--graphite); font: inherit; }
.auth-form input:focus, .create-form input:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.quiet-button { display: inline-block; margin-top: 18px; padding: 7px 0; border: 0; background: transparent; color: #657782; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.app-nav { display: flex; flex-direction: column; gap: 5px; padding-top: 35px; }
.app-nav a { padding: 14px 16px; color: #d9e2e4; border-radius: 3px; font-size: 13px; }
.app-nav a:hover, .app-nav a.is-current { background: #3b4a54; }
.user-menu { position: relative; }
.user-menu__trigger { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 7px 4px 9px; color: var(--graphite); background: transparent; border: 1px solid transparent; border-radius: 4px; font: inherit; cursor: pointer; }
.user-menu__trigger:hover, .user-menu__trigger[aria-expanded="true"] { background: #f7f9f8; border-color: #e4e9e9; }
.user-menu__trigger:focus-visible, .user-menu__panel a:focus-visible, .user-menu__panel button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.user-menu__chevron { width: 8px; height: 8px; margin: -4px 2px 0 1px; border-right: 1.5px solid #71808a; border-bottom: 1.5px solid #71808a; transform: rotate(45deg); }
.user-menu__trigger[aria-expanded="true"] .user-menu__chevron { margin-top: 4px; transform: rotate(225deg); }
.user-menu__panel { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; width: 232px; padding: 6px; background: white; border: 1px solid #e0e6e6; border-radius: 5px; box-shadow: 0 12px 32px rgba(29,42,51,.16); }
.user-menu__panel[hidden] { display: none; }
.user-menu__panel a, .user-menu__panel button { display: block; width: 100%; min-height: 42px; padding: 12px 13px; color: var(--graphite); background: transparent; border: 0; border-radius: 3px; text-align: left; text-decoration: none; font: inherit; font-size: 13px; cursor: pointer; }
.user-menu__panel a:hover, .user-menu__panel button:hover { background: #f1f4f3; }
.user-menu__panel form { margin: 0; padding-top: 5px; border-top: 1px solid #edf0f0; }
.app-hero { position: relative; min-height: 265px; padding: 32px; overflow: hidden; color: white; background: linear-gradient(135deg,#27353f,#1c2931); border-radius: 3px; }
.app-hero::after { content: ''; position: absolute; right: -8%; top: -20%; width: 47%; height: 160%; transform: rotate(36deg); border: 1px solid rgba(255,255,255,.1); background: linear-gradient(90deg,transparent,rgba(255,255,255,.06),transparent); }
.app-hero h2 { margin: 51px 0 9px; font-size: 42px; letter-spacing: -.06em; }
.app-hero p { color: #bccbd0; }
.app-hero__link { position: relative; z-index: 2; display: inline-block; margin-top: 18px; padding-bottom: 7px; color: white; border-bottom: 2px solid var(--orange); font-size: 13px; font-weight: 800; }
.app-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); color: #71808a; font-size: 12px; }
.app-actions .quiet-button { margin: 0; }
.app-mobile-nav { display: none; }
.management-page { min-height: 100vh; }
.management-header { display: flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 103px; padding: 14px clamp(20px,5vw,72px); background: white; border-bottom: 1px solid var(--line); }
.management-header img { width: 150px; }
.management-header nav { display: flex; align-items: center; gap: 25px; font-size: 13px; }
.management-header .quiet-button { margin: 0; }
.management-content { max-width: 1140px; margin: 50px auto; padding: 0 22px; }
.management-content h1 { margin: 10px 0; font-size: 52px; letter-spacing: -.06em; }
.management-content>p { color: #71808a; }
.management-card { margin-top: 30px; padding: 27px; background: white; border: 1px solid var(--line); border-radius: 3px; }
.management-card h2, .issued-secret h2 { margin: 0 0 24px; font-size: 22px; }
.create-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 15px; }
.create-form label { font-weight: 700; font-size: 12px; }
.create-form input { display: block; margin: 8px 0 0; }
.create-form .primary-button { height: 49px; margin: 0; white-space: nowrap; font-size: 13px; }
.user-row { display: flex; justify-content: space-between; align-items: center; gap: 22px; padding: 18px 0; border-top: 1px solid var(--line); }
.user-row strong, .user-row small { display: block; }
.user-row small { margin-top: 6px; color: #71808a; }
.row-actions { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.row-actions button { padding: 8px 10px; background: #eef2f2; color: var(--graphite); border: 1px solid #d8e0e1; border-radius: 3px; cursor: pointer; font: inherit; font-size: 12px; }
.row-actions button:hover { background: #dce5e7; }
.issued-secret { margin: 25px 0; padding: 23px; background: #fff3e9; border: 1px solid #f1c49f; }
.issued-secret p { margin-bottom: 8px; }
.issued-secret .secret-text { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
@media (max-width: 800px) {
  .app-page .login-content { min-height: calc(100vh - 270px); }
  .app-page .login-brand__top .brand-logo { width: 185px; }
  .app-mobile-nav { display: flex; gap: 12px; margin-bottom: 25px; overflow-x: auto; }
  .app-mobile-nav a { white-space: nowrap; padding: 11px; background: white; border: 1px solid var(--line); font-size: 12px; }
  .app-hero { min-height: 230px; padding: 24px; }
  .app-hero h2 { font-size: 33px; }
  .management-header img { width: 110px; }
  .user-menu__trigger { gap: 8px; }
  .workspace-header .employee-label { display: inline; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
  .user-menu__panel { width: min(232px, calc(100vw - 32px)); }
  .management-header nav { gap: 12px; font-size: 11px; }
  .management-content { margin-top: 36px; }
  .management-content h1 { font-size: 39px; }
  .create-form { display: block; }
  .create-form label { display: block; }
  .create-form .primary-button { width: 100%; }
  .user-row { display: block; }
  .row-actions { justify-content: flex-start; margin-top: 12px; }
  .auth-panel { padding: 28px; }
}

@media (max-width: 360px) {
  .workspace-header { gap: 8px; padding: 0 12px; }
  .workspace-header__logo { width: 96px; }
  .user-menu__trigger { gap: 5px; padding-right: 4px; padding-left: 5px; }
  .workspace-header .employee-label { max-width: 72px; }
}
