:root {
  font-family: Inter, "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
  color: #243b55;
  background: #f3f6fa;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #f3f6fa;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
.loading,
.fatal {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  color: #6e8094;
}
.fatal {
  flex-direction: column;
  gap: 8px;
}
.fatal b {
  color: #b64d59;
}
.auth-page {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(430px, 1.1fr);
  min-height: 100vh;
}
.auth-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px clamp(38px, 7vw, 110px);
  color: #fff;
  background: linear-gradient(145deg, #083e73, #0c6e8d 58%, #0b9f9a);
}
.auth-brand img {
  width: min(330px, 85%);
  height: auto;
  margin-bottom: 46px;
  filter: brightness(0) invert(1);
}
.auth-brand p,
.auth-copy p,
.dashboard-heading p,
.panel-head p,
.foundation-status p,
.quick-links p {
  margin: 0 0 7px;
  color: #75a1ca;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
}
.auth-brand p {
  color: #9bd8e1;
}
.auth-brand h1 {
  margin: 0 0 14px;
  font-size: 36px;
}
.auth-brand > span {
  max-width: 430px;
  color: #d6e8ef;
  font-size: 14px;
  line-height: 1.7;
}
.auth-card {
  align-self: center;
  width: min(480px, calc(100% - 48px));
  margin: 40px auto;
  padding: 36px;
  border: 1px solid #dce4ed;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px #173b6c16;
}
.auth-copy {
  margin-bottom: 23px;
}
.auth-copy h2 {
  margin: 0 0 9px;
  color: #153f72;
  font-size: 27px;
}
.auth-copy > span {
  color: #7a8ca0;
  font-size: 12px;
  line-height: 1.6;
}
.message {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
}
.message.error {
  border: 1px solid #efc5c9;
  background: #fff0f1;
  color: #b23f4a;
}
.message.success {
  border: 1px solid #b9dbc9;
  background: #edf9f4;
  color: #15775c;
}
.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 0 0 18px;
  padding: 5px;
  border: 1px solid #dce4ed;
  border-radius: 11px;
  background: #f3f6fa;
}
.auth-tabs button {
  min-width: 0;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #71849a;
  padding: 8px 6px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.auth-tabs button:hover {
  background: #e9f1f9;
  color: #245da8;
}
.auth-tabs button.active {
  background: #fff;
  color: #1f5da5;
  box-shadow: 0 2px 8px #173b6c14;
}
.stack-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.stack-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #5f748b;
  font-size: 11px;
  font-weight: 800;
}
.stack-form label > span {
  display: block;
}
.stack-form input {
  width: 100%;
  height: 44px;
  border: 1px solid #d5dfe9;
  border-radius: 9px;
  background: #fbfcfe;
  color: #243b55;
  padding: 0 12px;
  outline: 0;
}
.stack-form input:focus {
  border-color: #6f9dcc;
  box-shadow: 0 0 0 3px #6f9dcc20;
}
.stack-form .primary,
.stack-form .secondary {
  width: 100%;
  min-height: 44px;
  margin-top: 3px;
}
.fixed-id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 13px 14px;
  border: 1px solid #d7e3ee;
  border-radius: 10px;
  background: #f5f9fd;
}
.fixed-id span {
  color: #70859b;
  font-size: 10px;
  font-weight: 800;
}
.fixed-id b {
  color: #174f8d;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.security-tip {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
  padding: 11px 12px;
  border: 1px solid #e4d8bc;
  border-radius: 9px;
  background: #fffaf1;
  color: #766b55;
  font-size: 10px;
  line-height: 1.55;
}
.security-tip b {
  flex-shrink: 0;
  color: #8a671b;
}
.secondary {
  border: 1px solid #cfdce8;
  border-radius: 9px;
  background: #f5f9fd;
  color: #245da8;
  padding: 10px 13px;
  font-size: 11px;
  font-weight: 800;
}
.secondary:hover {
  border-color: #8fb0d1;
  background: #edf5fc;
}
.auth-card hr {
  height: 1px;
  margin: 20px 0;
  border: 0;
  background: #e4eaf1;
}
.muted {
  color: #8a99a9;
  font-size: 10px;
}

:root {
  --navy: #153f79;
  --blue: #245da8;
  --ink: #17283e;
  --muted: #718096;
  --line: #dce4ef;
  --soft: #f4f7fb;
  --white: #fff;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: #f6f8fb;
  color: var(--ink);
  font-family:
    Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.app-shell {
  min-height: 100vh;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.realtime-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #dce5ee;
  border-radius: 999px;
  padding: 7px 10px;
  color: #536d87;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.realtime-state i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cf4e59;
  box-shadow: 0 0 0 3px #cf4e5918;
}
.realtime-state.connected i {
  background: #1a9b6f;
  box-shadow: 0 0 0 3px #1a9b6f18;
}
.realtime-state.reconnecting i {
  background: #d59b2b;
  box-shadow: 0 0 0 3px #d59b2b18;
  animation: realtime-pulse 1.1s infinite;
}
@keyframes realtime-pulse {
  50% {
    opacity: 0.35;
  }
}
.refresh-button {
  width: 34px;
  height: 34px;
  border: 1px solid #dce5ee !important;
  border-radius: 9px !important;
  padding: 0 !important;
  color: #315473 !important;
  font-size: 20px !important;
  line-height: 1 !important;
}
.realtime-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 14px;
  border: 1px solid #e6c76e;
  border-radius: 10px;
  background: #fff9e8;
  padding: 12px 14px;
  color: #755817;
}
.realtime-banner span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.realtime-banner b {
  font-size: 12px;
}
.realtime-banner small {
  color: #8c7440;
  font-size: 10px;
}
.realtime-banner button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: #1765ad;
  padding: 0 14px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.conflict-dialog {
  width: min(610px, 100%);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 80px #18334d38;
  overflow: hidden;
}
.conflict-copy {
  padding: 22px 24px;
  color: #35516d;
}
.conflict-copy p {
  margin: 0 0 7px;
  font-size: 14px;
  font-weight: 900;
}
.conflict-copy small {
  color: #71869a;
  font-size: 11px;
}
.brand {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: var(--navy);
  padding: 6px;
}
.brand-logo {
  display: block;
  width: 156px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}
.brand-caption {
  padding-left: 12px;
  border-left: 1px solid #dce4ef;
}
.brand b {
  display: block;
  font-size: 17px;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.brand small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #6b7d93;
  font-weight: 600;
}
.top-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-actions button {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
}
.top-actions button:hover,
.top-actions button.active {
  background: #edf3fb;
}
.top-actions em {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: 5px;
  border-radius: 8px;
  background: #e8eff9;
  color: #245da8;
  font-size: 11px;
  font-style: normal;
}
.bell {
  position: relative;
  font-size: 25px;
  transform: rotate(45deg);
}
.bell i {
  position: absolute;
  right: 9px;
  top: 6px;
  width: 8px;
  height: 8px;
  background: #e55252;
  border: 2px solid white;
  border-radius: 50%;
}
.profile {
  display: flex;
  align-items: center;
  gap: 9px;
}
.profile span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e9eef5;
  color: #49627e;
}
.profile-copy {
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: none !important;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  gap: 2px;
}
.profile-copy small {
  color: #8493a5;
  font-size: 9px;
}
.user-menu {
  position: absolute;
  z-index: 45;
  top: 51px;
  right: 0;
  width: 220px;
  padding: 9px;
  border: 1px solid #dce4ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 35px #173b6c20;
}
.user-menu > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 10px 11px;
  border-bottom: 1px solid #e7ecf2;
}
.user-menu > div strong {
  color: #294764;
  font-size: 13px;
}
.user-menu > div small {
  color: #8998a8;
  font-size: 10px;
}
.user-menu > button {
  width: 100%;
  height: auto !important;
  padding: 10px !important;
  text-align: left;
  border-radius: 8px !important;
  color: #52677f !important;
  font-size: 12px;
}
.user-menu > button:first-of-type {
  margin-top: 5px;
  color: #1f5da5 !important;
  background: #f1f6fc !important;
}
.home-view {
  min-height: calc(100vh - 76px);
  padding: 48px 32px 60px;
}
.home-heading {
  max-width: 1440px;
  margin: 0 auto 26px;
}
.home-heading p,
.page-title p,
.detail-head p,
.panel-head p {
  margin: 0 0 7px;
  color: #7690af;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 800;
}
.home-heading h1,
.page-title h1 {
  margin: 0;
  color: #153f79;
  font-size: 28px;
  letter-spacing: -0.04em;
}
.title-with-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.heading-link {
  border: 1px solid #cbd9e8;
  border-radius: 8px;
  background: #f7faff;
  color: #245da8;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 800;
}
.heading-link:hover {
  border-color: #7ea4cc;
  background: #edf4fc;
}
.heading-link:disabled {
  border-color: #dce3ea;
  background: #f4f6f8;
  color: #9aa6b2;
  cursor: not-allowed;
}
.home-dashboard {
  display: grid;
  grid-template-columns: 154px minmax(560px, 1.55fr) minmax(340px, 0.85fr);
  gap: 22px;
  max-width: 1440px;
  margin: 0 auto;
  align-items: stretch;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.module-card {
  min-width: 0;
  height: 170px;
  border: 1px solid #d6dfeb;
  border-radius: 18px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 5px 18px #173b6c12;
  transition: 0.16s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.module-card:hover {
  transform: translateY(-4px);
  border-color: #245da8;
  box-shadow: 0 12px 28px #173b6c1c;
}
.module-card:active {
  transform: scale(0.985);
}
.module-card:focus-visible,
.topbar button:focus-visible,
.primary:focus-visible {
  outline: 3px solid #2457a633;
  outline-offset: 3px;
}
.module-card strong {
  font-size: 19px;
  letter-spacing: -0.04em;
}
.module-card-ready{gap:6px}
.module-helper{margin-top:-3px;color:#7b8996;font-size:12px;font-weight:700;letter-spacing:-.02em}
.module-icon {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 22px;
  background: #f0f5fb;
  color: #1c4e8d;
  font-size: 30px;
  font-weight: 500;
}
.line-icon{display:block;width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.module-icon .line-icon{width:30px;height:30px}
.module-icon .module-line-icon{width:64px;height:64px;stroke-width:3.2}
.completed-icon .line-icon{width:20px;height:20px}
.monthly-completed {
  min-height: 546px;
  overflow: hidden;
  border: 1px solid #d6dfeb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 18px #173b6c12;
}
.monthly-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 21px 21px 17px;
  border-bottom: 1px solid #e3e9f0;
}
.monthly-head p {
  margin: 0 0 5px;
  color: #7690af;
  letter-spacing: 0.14em;
  font-size: 9px;
  font-weight: 900;
}
.monthly-head h2 {
  margin: 0;
  color: #153f79;
  font-size: 20px;
}
.monthly-head input {
  width: 136px;
  height: 38px;
  border: 1px solid #d6e0eb;
  border-radius: 9px;
  background: #f9fbfd;
  color: #3b5878;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 800;
}
.monthly-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 21px;
  background: #f5f8fc;
  color: #6d8299;
  font-size: 11px;
  font-weight: 800;
}
.monthly-summary b {
  color: #1f5da5;
  font-size: 15px;
}
.completed-list {
  display: flex;
  flex-direction: column;
}
.completed-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  background: #fff;
  text-align: left;
}
.completed-item:hover {
  background: #f7faff;
}
.completed-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #edf4fb;
  color: #245da8;
  font-size: 18px;
  font-style: normal;
}
.completed-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}
.completed-copy small {
  overflow: hidden;
  color: #7b8fa5;
  font-size: 9px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.completed-copy strong {
  overflow: hidden;
  color: #2c4867;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.completed-copy em {
  color: #91a0af;
  font-size: 9px;
  font-style: normal;
}
.completed-item time {
  align-self: start;
  color: #386a9f;
  font-size: 10px;
  font-weight: 900;
}
.completed-empty {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 30px;
  text-align: center;
}
.completed-empty > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #edf4fb;
  color: #2b68a8;
  font-size: 20px;
}
.completed-empty b {
  color: #55708c;
  font-size: 13px;
}
.completed-empty small {
  color: #95a3b2;
  font-size: 10px;
}
.account-security-note {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
  padding: 11px 14px;
  border: 1px solid #e2d9b8;
  border-radius: 10px;
  background: #fffaf0;
  color: #75694b;
  font-size: 11px;
}
.account-security-note b {
  flex-shrink: 0;
  color: #8a671b;
}

.selection-count { margin-left: auto; white-space: nowrap; }
.selection-count b { color: var(--primary); }
.selection-cell {
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  padding: 0 !important;
  text-align: center !important;
  vertical-align: middle !important;
}
table .selection-checkbox {
  appearance: auto;
  display: block;
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0;
  border-radius: 3px;
  accent-color: #1677e8;
}
.row-management {
  width: 58px;
  min-width: 58px;
  text-align: center !important;
}
.row-trash {
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 14px;
  line-height: 1;
}
.account-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.account-link-card {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 92px;
  padding: 15px 16px;
  border: 1px solid #d9e3ed;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px #173b6c09;
}
.account-link-card > div:first-child {
  display: flex;
  min-width: 90px;
  flex-direction: column;
  gap: 4px;
}
.account-link-card > div:first-child button {
  width: max-content;
  border: 0;
  background: none;
  color: #1d5698;
  padding: 0;
  font-size: 18px;
  font-weight: 900;
}
.account-link-card > div:first-child button:hover {
  text-decoration: underline;
}
.account-link-card > div:first-child small {
  color: #8b9aaa;
  font-size: 9px;
}
.account-link-card label {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 5px;
}
.account-link-card label > span {
  color: #7890a8;
  font-size: 9px;
  font-weight: 800;
}
.account-link-card label > div {
  display: flex;
  min-width: 0;
  gap: 5px;
}
.account-link-card input {
  min-width: 0;
  width: 100%;
  height: 35px;
  border: 1px solid #d6e0ea;
  border-radius: 7px;
  background: #f9fbfd;
  color: #3f5874;
  padding: 0 9px;
  font-size: 10px;
}
.account-link-card label button {
  flex-shrink: 0;
  height: 35px;
  border: 0;
  border-radius: 7px;
  background: #245da8;
  color: #fff;
  padding: 0 10px;
  font-size: 10px;
  font-weight: 800;
}
.account-link-card label button:disabled {
  background: #d8e0e9;
  color: #8e9ba9;
  cursor: not-allowed;
}
.account-system-strip {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  overflow: auto;
  padding-bottom: 3px;
}
.account-system-strip button {
  flex-shrink: 0;
  padding: 8px 11px;
  border: 1px solid #d7e1eb;
  border-radius: 8px;
  background: #fff;
  color: #687d93;
  font-size: 11px;
  font-weight: 800;
}
.account-system-strip button.active {
  border-color: #7aa4cf;
  background: #eaf3fc;
  color: #1f5da5;
}
.account-area-switch {
  margin-top: 14px;
}
.account-filter-card {
  margin-bottom: 14px;
}
.account-filter-card .toolbar {
  border-bottom: 0;
}
.account-system-list {
  display: grid;
  gap: 16px;
}
.account-system-section {
  overflow: hidden;
}
.account-system-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid #dfe7ef;
  background: #f8fafc;
}
.account-system-head small {
  color: #8a9aae;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.account-system-head h2 {
  margin: 3px 0 0;
  color: #244c76;
  font-size: 17px;
}
.account-system-head .ghost {
  margin-left: auto;
}
.account-empty-state {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 28px;
  color: #7b8fa5;
  text-align: center;
}
.account-empty-state b {
  color: #3b5c7c;
}
.prototype-data-label {
  color: #8b9aaa;
  font-size: 10px;
  font-weight: 700;
}
.masked-account {
  color: #526d88;
  letter-spacing: 0.12em;
  font-family: Arial, sans-serif;
  font-weight: 800;
}
.module-view {
  padding: 22px 30px 60px;
  max-width: 1780px;
  margin: 0 auto;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #98a6b6;
  font-size: 13px;
  margin-bottom: 18px;
}
.breadcrumb button {
  border: 0;
  background: none;
  padding: 0;
  color: #6f8299;
}
.breadcrumb b {
  color: #324b67;
}
.back-link {
  border: 0;
  background: none;
  color: #245da8;
  padding: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
}
.page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
}
.page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.primary {
  border: 0;
  border-radius: 10px;
  background: #1f5da5;
  color: white;
  padding: 12px 18px;
  font-weight: 800;
  box-shadow: 0 5px 13px #1f5da52e;
}
.primary:hover {
  background: #174e8e;
}
.summary-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(118px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.summary-row.generic {
  grid-template-columns: repeat(4, minmax(150px, 210px));
}
.summary-row.oncall-summary {
  grid-template-columns: repeat(5, minmax(150px, 210px));
}
.summary-row button {
  border: 1px solid #dfe6ef;
  border-radius: 12px;
  background: #fff;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #63758b;
}
.summary-row button:hover {
  border-color: #8bafd7;
}
.summary-row span {
  font-size: 12px;
  font-weight: 700;
}
.summary-row b {
  font-size: 20px;
  color: #1b4f8c;
}
.summary-row .danger b {
  color: #cf4c4c;
}
.table-card {
  background: #fff;
  border: 1px solid #dfe6ef;
  border-radius: 14px;
  box-shadow: 0 4px 16px #173b6c0d;
  overflow: hidden;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 66px;
  padding: 12px 15px;
  border-bottom: 1px solid #e4eaf1;
}
.search {
  min-width: 340px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #d7e0ea;
  border-radius: 9px;
  background: #fbfcfe;
}
.search span {
  font-size: 22px;
  color: #6f8299;
}
.search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  color: #243b55;
}
.toolbar select {
  height: 40px;
  min-width: 128px;
  border: 1px solid #d7e0ea;
  border-radius: 9px;
  background: white;
  color: #52677f;
  padding: 0 30px 0 11px;
}
.check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #52677f;
  margin-left: 4px;
}
.ghost,
.detail-actions button {
  border: 1px solid #d7e0ea;
  background: #fff;
  color: #536a83;
  border-radius: 9px;
  padding: 9px 12px;
  font-weight: 700;
  font-size: 12px;
}
.ghost {
  margin-left: auto;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
  white-space: nowrap;
}
th {
  text-align: left;
  padding: 12px 13px;
  background: #f4f7fb;
  color: #61758d;
  font-size: 11px;
  border-bottom: 1px solid #dce4ee;
}
td {
  padding: 13px;
  border-bottom: 1px solid #e9eef4;
  color: #344c66;
}
tbody tr {
  transition: 0.12s;
}
tbody tr:hover,
tbody tr.selected-row {
  background: #f7faff;
}
tbody tr.selected-row td:first-child {
  box-shadow: inset 4px 0 #2b6cb0;
}
.master-detail .detail-box {
  border-top: 2px solid #7fa5d0;
}
.master-list {
  overscroll-behavior-x: contain;
  scrollbar-gutter: stable;
}
.progress-value {
  display: inline-flex;
  align-items: center;
  min-width: 150px;
}
.progress-value > b {
  color: #1f5da5;
}
.inline-link {
  display: flex;
  min-width: 205px;
  align-items: center;
  gap: 5px;
}
.inline-link input {
  width: 125px;
  min-width: 125px;
  height: 30px;
  border: 1px solid #d5dfe9;
  border-radius: 7px;
  padding: 0 6px;
  font-size: 10px;
}
.inline-link button {
  min-height: 30px;
  border: 0;
  background: transparent;
  color: #2362a7;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.inline-link button:disabled {
  color: #9aa7b5;
}
.row-title {
  border: 0;
  background: none;
  color: #183f73;
  font-weight: 800;
  text-align: left;
  max-width: 330px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-title span {
  display: inline-block;
  width: 18px;
  color: #7190b2;
}
.person {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  margin-right: 6px;
  background: #eaf1f9;
  color: #245da8;
  font-weight: 800;
}
.status {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
}
.status.green {
  color: #168064;
  background: #e5f6f0;
}
.status.red {
  color: #c64545;
  background: #feecec;
}
.status.purple {
  color: #7652b7;
  background: #f0eafd;
}
.status.amber {
  color: #a46919;
  background: #fff2db;
}
.status.gray {
  color: #667587;
  background: #edf1f5;
}
.status.blue {
  color: #2462a5;
  background: #e9f2fc;
}
.issue {
  display: block;
  margin-top: 5px;
  color: #c24c4c;
  font-weight: 800;
}
.link-btn {
  border: 0;
  background: none;
  color: #2362a7;
  font-weight: 800;
  padding: 3px;
}
.detail-box {
  padding: 23px;
  background: #f8fafd;
  border-top: 2px solid #8aabd0;
}
.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.detail-head h2 {
  margin: 0;
  font-size: 20px;
  color: #183f73;
}
.detail-head h2 span,
.detail-box h3 span {
  font-size: 12px;
  font-weight: 800;
  color: #66809e;
  margin-left: 7px;
}
.detail-actions {
  display: flex;
  gap: 7px;
}
.detail-box h3 {
  margin: 22px 0 9px;
  font-size: 14px;
  color: #2b4868;
}
.document-switches {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 17px;
  padding: 10px;
  border: 1px solid #dce5ef;
  border-radius: 12px;
  background: #fff;
}
.safety-health-switch small {
  color: #778ba2;
  font-size: 11px;
  font-weight: 700;
}
.switch-group {
  display: flex;
  gap: 5px;
}
.switch-group button {
  min-width: 116px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f0f4f8;
  color: #61758d;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 800;
}
.switch-group button.active {
  border-color: #245da8;
  background: #245da8;
  color: #fff;
  box-shadow: 0 3px 9px #245da82b;
}
.switch-group.secondary button {
  min-width: 92px;
  background: #f7f9fc;
}
.switch-group.secondary button.active {
  border-color: #9bb7d6;
  background: #e9f2fc;
  color: #1e5b9c;
  box-shadow: none;
}
.phase-completion-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px 18px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid #cfdceb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px #173b6c0a;
}
.completion-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.completion-copy strong {
  color: #23496f;
  font-size: 14px;
}
.completion-copy span {
  color: #7a8da3;
  font-size: 11px;
}
.team-complete-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid #b9cce1;
  border-radius: 9px;
  background: #f5f9fd;
  color: #1f5da5;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.team-complete-check input {
  width: 17px;
  height: 17px;
  accent-color: #1f5da5;
}
.completion-due-input {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  padding-top: 3px;
  color: #607890;
  font-size: 11px;
  font-weight: 800;
}
.completion-due-input input {
  height: 35px;
  border: 1px solid #d1dce7;
  border-radius: 8px;
  background: #fbfcfe;
  color: #31506f;
  padding: 0 8px;
  font-size: 11px;
}
.completion-summary {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 11px;
  border-top: 1px dashed #dce4ed;
}
.completion-summary span {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}
.completion-summary span.done {
  color: #168064;
  background: #e5f6f0;
}
.completion-summary span.pending {
  color: #667587;
  background: #edf1f5;
}
.completion-summary b {
  margin-left: auto;
  color: #165a98;
  font-size: 12px;
}
.completion-summary small {
  margin-left: auto;
  color: #7b8da1;
  font-size: 11px;
}
.completion-summary .completion-due-input {
  grid-column: auto;
  margin-left: auto;
  padding-top: 0;
}
.compact {
  border: 1px solid #dfe6ef;
  border-radius: 10px;
  background: white;
}
.compact table {
  white-space: normal;
}
.compact th,
.compact td {
  padding: 11px 12px;
}
.navigation-arrival {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: -6px 0 13px;
  padding: 9px 11px;
  border: 1px solid #e5cf87;
  border-radius: 9px;
  background: #fff9df;
  color: #75602c;
  font-size: 10px;
}
.navigation-arrival b {
  color: #8b6818;
}
.navigation-arrival span {
  font-weight: 800;
}
.attention-row {
  background: #fff6c9 !important;
  scroll-margin-top: 110px;
  animation: attentionPulse 2.2s ease-out;
}
.attention-row td:first-child {
  box-shadow: inset 4px 0 #e0a923;
}
.attention-row td {
  color: #4b4b30;
}
@keyframes attentionPulse {
  0%,
  35% {
    background: #ffe890;
  }
  100% {
    background: #fff6c9;
  }
}
.complex-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.complex-section {
  min-height: 320px;
  padding: 22px;
  border: 1px solid #dce4ef;
  border-radius: 16px;
  background: #f9fbfd;
}
.complex-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}
.complex-head span {
  color: #8295aa;
  letter-spacing: 0.14em;
  font-size: 10px;
  font-weight: 800;
}
.complex-head h2 {
  margin: 5px 0 0;
  color: #153f79;
  font-size: 22px;
}
.complex-head button {
  border: 1px solid #d4dfeb;
  border-radius: 8px;
  background: #fff;
  color: #245da8;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
}
.contract-card {
  width: 100%;
  border: 1px solid #d9e3ee;
  border-radius: 13px;
  background: #fff;
  padding: 20px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #243b55;
  box-shadow: 0 4px 14px #173b6c0a;
}
.contract-card:hover {
  border-color: #729bc7;
  transform: translateY(-2px);
}
.contract-card h3 {
  margin: 12px 0 0;
  font-size: 16px;
}
.contract-stats {
  display: flex;
  align-items: center;
  gap: 17px;
  color: #70839a;
  font-size: 12px;
}
.contract-card-wrap {
  position: relative;
}
.contract-card-wrap .contract-card {
  width: 100%;
}
.contract-edit {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid #d5e1ed;
  border-radius: 7px;
  background: #fff;
  color: #6a8096;
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 800;
}
.contract-stats span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.contract-stats b {
  color: #1d528f;
  font-size: 19px;
}
.contract-stats i {
  color: #245da8;
  font-size: 21px;
  font-style: normal;
}
.doc-count {
  color: #1f5da5;
}
.billing-tag {
  color: #4f51a8;
  background: #eeedff;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
}
.billing-rounds {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  overflow: auto;
}
.billing-rounds > button {
  display: flex;
  min-width: 250px;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #dce4ed;
  border-radius: 10px;
  background: #fff;
  color: inherit;
  text-align: left;
  transition: 0.12s;
}
.billing-rounds > button:hover {
  border-color: #729bc7;
  background: #f7faff;
}
.billing-rounds > button > span:first-child {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}
.billing-rounds b {
  color: #294b6f;
  font-size: 12px;
}
.billing-rounds small,
.billing-rounds p {
  color: #8494a5;
  font-size: 9px;
}
.billing-rounds > button > i {
  color: #245da8;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}
.billing-rounds > button.selected-row {
  border-color: #7fa5d0;
  background: #f7faff;
  box-shadow: inset 4px 0 #2b6cb0;
}
.billing-round-delete-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}
.modal-check-list.oncall-date-editor {
  margin: 12px 0;
  grid-template-columns: minmax(140px, 1fr) auto minmax(130px, 1fr) minmax(130px, 1fr) auto;
  background: #fff;
}
.oncall-date-editor label {
  flex-direction: column;
  align-items: stretch;
}
.modal-check-list.oncall-date-editor input[type="date"] {
  width: 100%;
  height: 40px;
  border: 1px solid #d4dfe9;
  border-radius: 9px;
  background: #fff;
  padding: 0 10px;
  color: #2c4865;
}
.oncall-date-editor > .secondary {
  align-self: end;
  min-height: 40px;
}
.oncall-date-list {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 30px;
  align-items: center;
}
.oncall-date-list .billing-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.oncall-date-list .delete-button {
  min-height: 24px;
}
.oncall-date-editor > small {
  grid-column: 1/-1;
  color: #8494a5;
  font-size: 9px;
  font-weight: 700;
}
.oncall-date-summary-button {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}
.oncall-date-summary-button i {
  font-style: normal;
}
.billing-target-list {
  margin: 12px 0;
}
.na-count {
  margin-left: 8px;
  color: #7b8a9a;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.inline-date-input,
.date-result {
  display: flex;
  min-width: 132px;
  flex-direction: column;
  gap: 4px;
}
.inline-date-input small,
.date-result small {
  color: #8494a5;
  font-size: 9px;
  font-weight: 800;
}
.inline-date-input input {
  width: 132px;
  height: 29px;
  border: 1px solid #d5dfe9;
  border-radius: 7px;
  background: #fbfcfe;
  color: #35516d;
  padding: 0 6px;
  font-size: 10px;
}
.date-result b {
  color: #34516e;
  font-size: 11px;
}
.progress-track {
  display: inline-block;
  vertical-align: middle;
  width: 74px;
  height: 5px;
  margin-left: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #e5ebf2;
}
.progress-track i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: #2c72b9;
}
.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.work-meta span {
  min-width: 135px;
  padding: 10px 12px;
  border: 1px solid #dfe6ef;
  border-radius: 9px;
  background: #fff;
  color: #71849a;
  font-size: 11px;
}
.work-meta b {
  display: block;
  min-height: 16px;
  margin-top: 4px;
  color: #2a4665;
  font-size: 12px;
}
.quarter-meta {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.quarter-meta > span {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #dfe6ef;
  border-radius: 9px;
  background: #fff;
  color: #71849a;
  font-size: 11px;
}
.quarter-meta > span > b {
  display: block;
  margin-top: 6px;
  color: #2a4665;
  font-size: 12px;
}
.quarter-meta .status {
  margin-top: -2px;
}
.detail-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 19px;
}
.detail-section-title h3 {
  margin: 0 0 9px;
}
.detail-section-title button {
  border: 0;
  background: none;
  color: #245da8;
  font-size: 12px;
  font-weight: 800;
}
.next-report-title {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px dashed #c8d5e4;
}
.next-report-title small {
  color: #7b8ea5;
  font-size: 11px;
  font-weight: 700;
}
.submission-completion-bar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: center;
  gap: 10px 15px;
  margin-bottom: 12px;
  padding: 14px 15px;
  border: 1px solid #cfdceb;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 3px 12px #173b6c0a;
}
.submission-completion-bar > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.submission-completion-bar > div strong {
  color: #23496f;
  font-size: 13px;
}
.submission-completion-bar > div span {
  color: #7a8da3;
  font-size: 10px;
}
.submission-completion-bar > label:not(.completion-due-input) {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid #b9cce1;
  border-radius: 9px;
  background: #f5f9fd;
  color: #1f5da5;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.submission-completion-bar > label:not(.completion-due-input) input {
  width: 17px;
  height: 17px;
  accent-color: #1f5da5;
}
.submission-completion-bar > .completion-due-input {
  grid-column: 1/2;
}
.submission-completion-bar > b {
  grid-column: 2;
  grid-row: 2;
  color: #176d58;
  font-size: 11px;
  text-align: right;
}
.admin-exit {
  border: 1px solid #d6e0eb;
  border-radius: 9px;
  background: #fff;
  color: #506983;
  padding: 10px 13px;
  font-size: 12px;
  font-weight: 800;
}
.admin-account-card {
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: 520px;
  margin-bottom: 13px;
  padding: 15px 17px;
  border: 1px solid #cbdbea;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 4px 14px #173b6c0b;
}
.admin-shield {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: #1f5da5;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}
.admin-account-card > div:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}
.admin-account-card span {
  color: #778ba1;
  font-size: 10px;
  font-weight: 800;
}
.admin-account-card strong {
  color: #173f72;
  font-size: 15px;
}
.admin-account-card small {
  color: #8a99a9;
  font-size: 10px;
}
.admin-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 15px;
  border: 1px solid #d9e5f1;
  border-radius: 10px;
  background: #f3f8fd;
  color: #627a93;
  font-size: 11px;
}
.admin-notice b {
  color: #215c99;
  white-space: nowrap;
}
.admin-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dce4ed;
}
.admin-tabs button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #74879d;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 800;
}
.admin-tabs button.active {
  background: #eaf2fb;
  color: #1f5da5;
}
.account-actions {
  display: flex;
  gap: 5px;
}
.account-actions button {
  border: 1px solid #d6e0eb;
  border-radius: 7px;
  background: #fff;
  color: #667a90;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 800;
}
.account-actions button.approve {
  border-color: #b6d8ca;
  background: #eaf7f2;
  color: #13765c;
}
.structure-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
  padding: 13px 15px;
  border: 1px solid #d7e4f0;
  border-radius: 11px;
  background: #f6f9fc;
}
.structure-intro > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.structure-intro b {
  color: #234d7b;
  font-size: 13px;
}
.structure-intro span,
.structure-intro small {
  color: #778ba0;
  font-size: 11px;
}
.structure-intro small {
  flex-shrink: 0;
  padding: 6px 9px;
  border-radius: 7px;
  background: #edf2f7;
}
.structure-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
}
.structure-modules,
.structure-content {
  border: 1px solid #dce4ed;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px #173b6c09;
}
.structure-modules {
  padding: 10px;
}
.structure-modules > p {
  margin: 3px 7px 8px;
  color: #8b9aab;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.structure-modules button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 2px 0;
  padding: 11px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #526a84;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
}
.structure-modules button:hover {
  background: #f5f8fb;
}
.structure-modules button.active {
  background: #eaf3fc;
  color: #1f5da5;
}
.structure-modules button small {
  color: #92a1b0;
  font-size: 10px;
}
.structure-modules button.active small {
  color: #4a79ad;
}
.structure-content {
  min-width: 0;
  padding: 15px;
}
.structure-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.structure-heading p {
  margin: 0 0 4px;
  color: #7f91a5;
  font-size: 10px;
  font-weight: 900;
}
.structure-heading h2 {
  margin: 0;
  color: #1f456f;
  font-size: 18px;
}
.primary.small {
  padding: 8px 11px;
  font-size: 11px;
}
.group-tabs {
  display: flex;
  gap: 6px;
  margin: 14px 0 10px;
  overflow: auto;
  padding-bottom: 3px;
}
.group-tabs button {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 8px 10px;
  border: 1px solid #dce4ed;
  border-radius: 8px;
  background: #fff;
  color: #6c7f94;
  font-size: 11px;
  font-weight: 800;
}
.group-tabs button.active {
  border-color: #8db6df;
  background: #eef6fe;
  color: #1f5da5;
}
.group-tabs small {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  background: #edf1f5;
  font-size: 9px;
}
.group-description {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #f7f9fb;
}
.group-description b {
  color: #395a7b;
  font-size: 11px;
}
.group-description span {
  color: #8091a3;
  font-size: 10px;
}
.template-table {
  min-width: 900px;
}
.template-table td {
  padding: 7px 6px;
}
.template-name-input,
.template-select {
  width: 100%;
  height: 34px;
  border: 1px solid #d8e1eb;
  border-radius: 7px;
  background: #fff;
  color: #38526f;
  padding: 0 8px;
  font-size: 11px;
}
.template-name-input {
  min-width: 270px;
  font-weight: 700;
}
.template-select:disabled {
  background: #f0f3f6;
  color: #9aa7b5;
}
.order-actions {
  display: flex;
  gap: 4px;
  white-space: nowrap;
}
.order-actions button {
  min-width: 29px;
  height: 29px;
  border: 1px solid #d6e0ea;
  border-radius: 6px;
  background: #fff;
  color: #60778f;
  font-size: 11px;
  font-weight: 800;
}
.order-actions button:disabled {
  opacity: 0.35;
}
.order-actions button.delete {
  color: #bd5261;
}
.link-admin-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid #d7e4f0;
  border-radius: 11px;
  background: #f6f9fc;
}
.link-admin-intro > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.link-admin-intro > div:first-child b {
  color: #234d7b;
  font-size: 13px;
}
.link-admin-intro > div:first-child span {
  color: #778ba0;
  font-size: 11px;
}
.link-admin-summary {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}
.link-admin-summary > span {
  color: #70849a;
  font-size: 11px;
  font-weight: 800;
}
.link-admin-summary > span b {
  color: #1f5da5;
  font-size: 13px;
}
.link-admin-summary button:disabled {
  background: #cfd9e3;
  box-shadow: none;
  cursor: not-allowed;
}
.link-save-message {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  padding: 9px 12px;
  border: 1px solid #b9dbc9;
  border-radius: 9px;
  background: #edf9f4;
  color: #597a6d;
  font-size: 10px;
}
.link-save-message b {
  color: #15775c;
}
.link-save-message span {
  color: #648278;
}
.shared-link-sections {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 13px;
  align-items: start;
}
.shared-link-section {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce4ed;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px #173b6c09;
}
.shared-link-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px 12px;
  border-bottom: 1px solid #e4eaf1;
  background: #f9fbfd;
}
.shared-link-section-head h2 {
  margin: 0;
  color: #21486f;
  font-size: 15px;
}
.shared-link-section-head span {
  color: #8192a5;
  font-size: 9px;
}
.shared-link-list {
  display: flex;
  flex-direction: column;
}
.shared-link-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(230px, 1.4fr) auto auto;
  align-items: end;
  gap: 10px;
  padding: 13px 15px;
  border-bottom: 1px solid #ebeff4;
}
.shared-link-row:last-child {
  border-bottom: 0;
}
.shared-link-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  align-self: center;
}
.shared-link-copy b {
  color: #294b6f;
  font-size: 12px;
}
.shared-link-copy span {
  overflow: hidden;
  color: #8393a4;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shared-link-row label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}
.shared-link-row label > span {
  color: #7b8ea2;
  font-size: 9px;
  font-weight: 800;
}
.shared-link-row input {
  width: 100%;
  min-width: 0;
  height: 36px;
  border: 1px solid #d6e0ea;
  border-radius: 8px;
  background: #fbfcfe;
  color: #334f6c;
  padding: 0 10px;
  font-size: 10px;
}
.shared-link-row input:focus {
  outline: 2px solid #b8d4ef;
  border-color: #6f9dcc;
}
.shared-link-open {
  height: 36px;
  border: 1px solid #c9d9e9;
  border-radius: 8px;
  background: #f3f8fd;
  color: #245da8;
  padding: 0 10px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.shared-link-open:disabled {
  border-color: #dfe5eb;
  background: #f4f5f7;
  color: #a0aab4;
  cursor: not-allowed;
}
.shared-link-row > .status {
  align-self: center;
}
.link-prototype-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid #e5d9bd;
  border-radius: 9px;
  background: #fffaf1;
  color: #766b55;
  font-size: 10px;
}
.link-prototype-note b {
  flex-shrink: 0;
  color: #8a671b;
}
.link-prototype-note span {
  line-height: 1.5;
}
.empty-template,
.admin-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  gap: 7px;
  border: 1px dashed #cad6e2;
  border-radius: 10px;
  background: #f9fbfd;
  color: #647b93;
}
.empty-template span,
.admin-placeholder span {
  color: #94a1af;
  font-size: 11px;
}
.admin-placeholder {
  min-height: 260px;
}
.side-panel {
  position: fixed;
  z-index: 40;
  top: 76px;
  right: 0;
  width: 430px;
  height: calc(100vh - 76px);
  background: #fff;
  border-left: 1px solid #dce4ef;
  box-shadow: -12px 0 35px #173b6c14;
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideIn 0.18s ease-out;
}
@keyframes slideIn {
  from {
    transform: translateX(25px);
    opacity: 0;
  }
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.panel-head h2 {
  margin: 0;
  font-size: 24px;
  color: #153f79;
}
.panel-head button {
  border: 0;
  background: #f0f4f8;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: #49627e;
  font-size: 22px;
}
.panel-tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid #e1e7ef;
  margin: 22px 0 4px;
}
.panel-tabs button {
  border: 0;
  background: none;
  padding: 10px 12px;
  color: #7d8da0;
  font-size: 12px;
  font-weight: 800;
}
.panel-tabs button.selected {
  color: #1d5a9f;
  border-bottom: 2px solid #1d5a9f;
}
.panel-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.panel-scroll-region {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.panel-item {
  border: 0;
  background: white;
  padding: 17px 4px;
  border-bottom: 1px solid #e9eef4;
  text-align: left;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
}
.panel-item:hover {
  background: #f8fafd;
}
.panel-item strong {
  color: #283e57;
  font-size: 14px;
}
.panel-item > span:not(.status) {
  color: #6e8095;
  font-size: 12px;
}
.panel-item small {
  color: #96a3b2;
  width: 100%;
}
.panel-item small b {
  float: right;
  color: #245da8;
}

@media (max-width: 900px) {
  .auth-page {
    display: block;
    min-height: 100vh;
    padding: 24px 0;
    background: linear-gradient(145deg, #083e73, #0c6e8d 58%, #0b9f9a);
  }
  .auth-brand {
    display: none;
  }
  .auth-card {
    width: min(480px, calc(100% - 24px));
    margin: 0 auto;
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 16px;
  }
  .brand small,
  .profile b {
    display: none;
  }
  .top-actions {
    gap: 0;
  }
  .top-actions button {
    padding: 0 9px;
  }
  .home-view {
    padding: 30px 18px 44px;
  }
  .home-dashboard {
    grid-template-columns: 1fr;
  }
  .module-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .module-card {
    height: 145px;
  }
  .module-card strong {
    font-size: 16px;
  }
  .module-icon {
    width: 78px;
    height: 78px;
    font-size: 25px;
  }
  .module-icon .module-line-icon {
    width: 54px;
    height: 54px;
    stroke-width: 3.2;
  }
  .monthly-completed {
    min-height: 420px;
  }
  .completed-empty {
    min-height: 250px;
  }
  .module-view {
    padding: 18px 12px 40px;
  }
  .summary-row,
  .summary-row.generic {
    display: flex;
    overflow: auto;
  }
  .summary-row button {
    min-width: 135px;
  }
  .page-title {
    align-items: center;
  }
  .page-title h1 {
    font-size: 23px;
  }
  .primary {
    padding: 10px 12px;
    font-size: 12px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .search {
    min-width: 100%;
  }
  .ghost {
    margin-left: 0;
  }
  .side-panel {
    width: 100%;
    top: 76px;
  }
  .detail-head {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }
  .document-switches {
    align-items: stretch;
    flex-direction: column;
  }
  .switch-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .switch-group button {
    min-width: 0;
  }
  .phase-completion-bar,
  .submission-completion-bar {
    grid-template-columns: 1fr;
  }
  .team-complete-check,
  .submission-completion-bar > label:not(.completion-due-input) {
    justify-content: center;
  }
  .completion-summary b,
  .completion-summary small {
    width: 100%;
    margin-left: 0;
  }
  .completion-summary .completion-due-input {
    margin-left: 0;
  }
  .completion-due-input,
  .submission-completion-bar > .completion-due-input {
    grid-column: 1;
    width: 100%;
    justify-content: space-between;
  }
  .submission-completion-bar > b {
    grid-column: 1;
    grid-row: auto;
    text-align: left;
  }
  .quarter-meta {
    grid-template-columns: 1fr 1fr;
  }
  .page-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .complex-grid {
    grid-template-columns: 1fr;
  }
  .contract-card {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }
  .brand-logo {
    width: 118px;
  }
  .brand-caption {
    display: none;
  }
  .account-link-grid {
    grid-template-columns: 1fr;
  }
  .account-link-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .account-link-card > div:first-child {
    min-width: 0;
  }
  .account-link-card label {
    width: 100%;
  }
  .admin-tabs {
    overflow: auto;
  }
  .admin-tabs button {
    flex-shrink: 0;
  }
  .structure-intro,
  .link-admin-intro {
    align-items: flex-start;
    flex-direction: column;
  }
  .structure-layout,
  .shared-link-sections {
    grid-template-columns: 1fr;
  }
  .structure-modules {
    display: flex;
    overflow: auto;
  }
  .structure-modules > p {
    display: none;
  }
  .structure-modules button {
    flex-shrink: 0;
    width: auto;
    gap: 15px;
  }
  .group-description {
    align-items: flex-start;
    flex-direction: column;
  }
  .link-admin-summary {
    width: 100%;
    justify-content: space-between;
  }
  .shared-link-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .shared-link-row > .status {
    justify-self: start;
  }
}
@media (max-width: 420px) {
  .auth-page {
    padding: 12px 0;
  }
  .auth-card {
    width: calc(100% - 16px);
    padding: 23px 17px;
    border-radius: 14px;
  }
  .auth-tabs button {
    min-height: 36px;
    padding: 7px 3px;
    font-size: 10px;
  }
  .auth-copy h2 {
    font-size: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
.create-dialog,
.confirm-dialog {
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid #dce5ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 80px #071d3766;
}
.confirm-dialog {
  width: min(480px, 100%);
}
.create-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 20px 24px 10px;
}
.create-form-grid > label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  color: #536d87;
  font-size: 11px;
  font-weight: 800;
}
.create-form-grid input,
.create-form-grid select {
  width: 100%;
  height: 40px;
  border: 1px solid #d4dfe9;
  border-radius: 9px;
  background: #fff;
  padding: 0 10px;
  color: #2c4865;
}
.form-error {
  min-height: 18px;
  margin: 3px 24px;
  color: #b33f4b;
  font-size: 11px;
  font-weight: 800;
}
.modal-check-list {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid #dce5ee;
  border-radius: 10px;
  padding: 12px;
}
.modal-check-list legend {
  color: #536d87;
  font-size: 11px;
  font-weight: 800;
}
.modal-check-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 7px;
  background: #f7fafc;
  color: #38526f;
  font-size: 11px;
}
.modal-check-list input {
  width: 17px;
  height: 17px;
}
.confirm-copy {
  padding: 22px 24px;
  color: #536d87;
  font-size: 12px;
  line-height: 1.6;
}
.confirm-copy strong {
  display: block;
  margin-top: 12px;
  border-radius: 8px;
  background: #f4f7fb;
  padding: 12px;
  color: #173f69;
}
.danger-button {
  min-height: 38px;
  border: 1px solid #d85e6b;
  border-radius: 8px;
  background: #bd4653;
  color: #fff;
  padding: 0 15px;
  font-size: 11px;
  font-weight: 800;
}
.record-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 8px;
}
.record-actions .delete-button {
  min-height: 34px;
}
.requested-doc-table thead th {
  background: #f4f7fb;
}
.requested-doc-table tbody td {
  background: #ffffff;
}
.document-row-na,
.document-row-na:hover,
.document-row-na td {
  background: #e4e7ea !important;
}
.document-row-na td {
  color: #344c66;
}
.document-row-na input,
.document-row-na select,
.document-row-na textarea {
  border-color: #c5cbd1 !important;
  background: #e4e7ea !important;
  color: #344c66 !important;
}
@media (max-width: 520px) {
  .create-dialog,
  .confirm-dialog {
    width: 100%;
    max-height: 94vh;
    border-radius: 18px 18px 0 0;
  }
  .create-form-grid {
    grid-template-columns: 1fr;
    padding: 18px 18px 8px;
  }
  .modal-check-list {
    grid-template-columns: 1fr;
  }
  .modal-check-list.oncall-date-editor {
    grid-template-columns: 1fr;
  }
}
/* R0.9.5 boards, action center and profile */
.profile-anchor {
  position: relative;
}
.profile-button {
  border: 0 !important;
  background: transparent !important;
  padding: 0 6px !important;
}
.profile-menu {
  position: absolute;
  z-index: 90;
  top: 52px;
  right: 0;
  width: 230px;
  overflow: hidden;
  border: 1px solid #d9e3ed;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 18px 45px #173b6c26;
  padding: 9px;
}
.profile-menu-user {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 11px 12px;
  border-bottom: 1px solid #e8edf3;
}
.profile-menu-user b {
  color: #244a70;
  font-size: 13px;
}
.profile-menu-user span {
  color: #8191a2;
  font-size: 10px;
}
.profile-menu button {
  display: block;
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #49647d;
  padding: 0 10px;
  text-align: left;
  font-size: 11px;
  font-weight: 800;
}
.profile-menu button:hover {
  background: #edf4fb;
  color: #1f5da5;
}
.admin-session-note {
  margin: 8px 2px;
  border-radius: 8px;
  background: #edf4fb;
  padding: 9px;
  color: #245da8;
  font-size: 10px;
  font-weight: 800;
}
.action-center .panel-head {
  align-items: flex-start;
}
.action-center .panel-head p {
  margin: 0 0 6px;
  color: #7890a8;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.panel-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid #dfe7ef;
  padding: 0 4px;
}
.panel-tabs button {
  position: relative;
  height: 46px;
  border: 0;
  background: transparent;
  color: #7f91a5;
  font-size: 11px;
  font-weight: 800;
}
.panel-tabs button.active {
  color: #155da2;
}
.panel-tabs button.active:after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #1765ad;
  content: "";
}
.notification-card {
  position: relative;
  display: flex !important;
  flex: 0 0 auto;
  height: auto !important;
  min-height: 126px;
  flex-direction: column;
  align-items: flex-start !important;
  gap: 8px;
  overflow: visible;
  padding: 18px 32px 18px 4px !important;
  border-bottom: 1px solid #e2e9f0 !important;
  text-align: left !important;
}
.notification-card.unread {
  background: #f7faff !important;
}
.notification-card strong {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  color: #264764 !important;
  font-size: 12px !important;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}
.notification-card > span:not(.event-badge) {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  color: #74899e !important;
  font-size: 10px !important;
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}
.notification-card small {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  color: #8a9aab !important;
  font-size: 10px !important;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}
.notification-card i {
  position: absolute;
  right: 8px;
  bottom: 22px;
  color: #1765ad;
  font-size: 15px;
  font-style: normal;
}
.event-badge {
  display: inline-flex;
  border-radius: 999px;
  background: #e9f3ff;
  color: #2468aa;
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 900;
}
.event-review_request {
  background: #f1eafd;
  color: #774db1;
}
.event-revision_request {
  background: #ffe9e8;
  color: #bd4d55;
}
.event-completion {
  background: #e5f7ee;
  color: #23815d;
}
.event-announcement {
  background: #fff2d9;
  color: #936a18;
}
.event-suggestion_status {
  background: #e8f7f6;
  color: #177f7b;
}
.board-list .one-line {
  display: block;
  max-width: 650px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-arrow {
  border: 0;
  background: transparent;
  color: #1765ad;
  font-size: 16px;
}
.unread-row {
  background: #f7faff;
}
.unread-dot,
.important-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 900;
}
.unread-dot {
  background: #e8f2ff;
  color: #1c63a8;
}
.important-badge {
  background: #fff0d4;
  color: #9a6812;
}
.board-dialog textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #d4dfe9;
  border-radius: 9px;
  padding: 11px;
  color: #2c4865;
  font: inherit;
  line-height: 1.6;
}
.board-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 24px 6px;
}
.board-form > label:not(.check-field) {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #536d87;
  font-size: 11px;
  font-weight: 800;
}
.board-form input[type="text"],
.board-form input:not([type]) {
  height: 40px;
  border: 1px solid #d4dfe9;
  border-radius: 9px;
  padding: 0 10px;
}
.check-field {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #49647d;
  font-size: 11px;
  font-weight: 800;
}
.board-detail {
  padding: 22px 24px;
}
.board-detail > p {
  min-height: 100px;
  margin: 18px 0;
  color: #334f6a;
  font-size: 12px;
  line-height: 1.75;
}
.board-detail h3 {
  margin: 20px 0 9px;
  color: #244a70;
  font-size: 12px;
}
.suggestion-images {
  margin: 18px 0;
  padding-top: 2px;
}
.suggestion-images h3 {
  display: flex;
  align-items: center;
  gap: 7px;
}
.suggestion-images h3 span {
  color: #7890a7;
  font-size: 10px;
}
.suggestion-thumbnail-grid,
.suggestion-upload-previews {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}
.suggestion-thumbnail {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d8e2ec;
  border-radius: 9px;
  background: #fff;
  padding: 5px;
  color: #536d87;
  text-align: left;
}
.suggestion-thumbnail:hover {
  border-color: #82a8d1;
  box-shadow: 0 3px 10px #245da817;
}
.suggestion-thumbnail img,
.suggestion-upload-preview img {
  width: 100%;
  height: 82px;
  border-radius: 6px;
  object-fit: cover;
  background: #edf2f7;
}
.suggestion-thumbnail span,
.suggestion-upload-preview > span {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.suggestion-upload-section {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 2px;
}
.suggestion-upload-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.suggestion-upload-heading > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.suggestion-upload-heading b {
  color: #536d87;
  font-size: 11px;
}
.suggestion-upload-heading span,
.suggestion-upload-section > small {
  color: #8799ab;
  font-size: 9px;
}
.suggestion-upload-heading em {
  color: #245da8;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}
.suggestion-drop-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  border: 1px dashed #aebfd1;
  border-radius: 10px;
  background: #f8fafc;
  color: #6d8298;
  cursor: pointer;
  transition: 0.16s ease;
}
.suggestion-drop-zone:hover,
.suggestion-drop-zone.dragging {
  border-color: #245da8;
  background: #eef5fc;
  color: #245da8;
}
.suggestion-drop-zone.full {
  opacity: 0.55;
  cursor: default;
}
.suggestion-drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.suggestion-drop-zone strong,
.suggestion-drop-zone span {
  font-size: 10px;
}
.suggestion-upload-preview {
  position: relative;
  min-width: 0;
  border: 1px solid #d8e2ec;
  border-radius: 9px;
  background: #fff;
  padding: 5px;
  color: #536d87;
}
.suggestion-upload-preview > button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #26384ccc;
  color: #fff;
  font-size: 15px;
  line-height: 1;
}
.image-viewer-dialog {
  width: min(920px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
}
.image-viewer-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  max-height: calc(100vh - 250px);
  padding: 14px 20px;
  overflow: auto;
  background: #eef2f6;
}
.image-viewer-stage > img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 280px);
  object-fit: contain;
}
.image-viewer-strip {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px 4px;
  overflow-x: auto;
}
.image-viewer-strip button {
  flex: 0 0 62px;
  height: 50px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 7px;
  background: #eef2f6;
  padding: 2px;
}
.image-viewer-strip button.active {
  border-color: #245da8;
}
.image-viewer-strip img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
}
.board-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7f91a5;
  font-size: 10px;
}
.board-meta time {
  margin-left: auto;
}
.status-history {
  margin: 0;
  padding: 0;
  list-style: none;
}
.status-history li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e7edf3;
}
.status-history b {
  color: #245da8;
  font-size: 11px;
}
.status-history span {
  color: #8294a7;
  font-size: 10px;
}
.profile-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 22px 24px;
}
.profile-detail span {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #dfe7ef;
  border-radius: 9px;
  padding: 11px;
  color: #8191a2;
  font-size: 9px;
}
.profile-detail b {
  color: #2d4d6c;
  font-size: 12px;
}
@media (max-width: 900px) {
  .action-center {
    width: min(100%, 430px);
  }
  .top-actions > button {
    font-size: 0;
  }
  .top-actions > button em {
    font-size: 10px;
  }
  .board-list table {
    min-width: 720px;
  }
}
@media (max-width: 520px) {
  .profile-menu {
    position: fixed;
    top: 70px;
    right: 8px;
    left: 8px;
    width: auto;
  }
  .board-dialog {
    width: 100%;
    max-height: 94vh;
    border-radius: 18px 18px 0 0;
  }
  .profile-detail {
    grid-template-columns: 1fr;
  }
  .board-meta {
    flex-wrap: wrap;
  }
  .board-meta time {
    width: 100%;
    margin-left: 0;
  }
  .action-center {
    width: 100%;
    padding: 18px;
  }
}

/* R0.9.5 completion filters, suggestion actions and permanent delete */
.include-completed {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  color: #526b83;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.include-completed input {
  width: 15px;
  height: 15px;
  accent-color: #1765ad;
}
.filter-count {
  color: #8294a6;
  font-size: 10px;
  white-space: nowrap;
}
.filter-reset {
  margin-left: auto;
}
.modal-actions-right {
  justify-content: flex-end;
}
.split-actions {
  justify-content: space-between;
}
.destructive-actions,
.primary-actions,
.trash-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dialog-actions button {
  min-height: 40px;
}
.suggestion-status-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 12px 0;
  color: #536d87;
  font-size: 11px;
  font-weight: 800;
}
.suggestion-status-control select {
  min-width: 150px;
  height: 38px;
  border: 1px solid #d4dfe9;
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
}
.event-suggestion_review {
  background: #e7f5ff;
  color: #17649e;
}
.permanent-delete-dialog {
  width: min(560px, 100%);
}
.delete-summary {
  margin: 0;
}
.delete-summary div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #e6edf3;
}
.delete-summary dt {
  color: #7b8da0;
  font-size: 10px;
  font-weight: 800;
}
.delete-summary dd {
  margin: 0;
  color: #294965;
  font-size: 11px;
  font-weight: 800;
}
.permanent-warning,
.child-delete-warning {
  border-radius: 8px;
  padding: 11px;
  color: #a43f49;
  font-size: 11px;
  font-weight: 800;
}
.permanent-warning {
  background: #fff0f0;
}
.child-delete-warning {
  background: #fff6e8;
  color: #9a641e;
}
.confirm-name-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 14px;
  color: #536d87;
  font-size: 11px;
  font-weight: 800;
}
.confirm-name-field input {
  height: 40px;
  border: 1px solid #d4dfe9;
  border-radius: 8px;
  padding: 0 10px;
}
.confirm-name-field small {
  color: #a43f49;
}
.danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
@media (max-width: 900px) {
  .toolbar {
    flex-wrap: wrap;
  }
  .filter-reset {
    margin-left: 0;
  }
  .filter-count {
    margin-left: auto;
  }
}
@media (max-width: 520px) {
  .include-completed {
    order: 3;
  }
  .filter-count {
    order: 4;
    margin-left: auto;
  }
  .filter-reset {
    order: 5;
    width: 100%;
  }
  .split-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 12px;
  }
  .destructive-actions,
  .primary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .destructive-actions {
    grid-template-columns: 1fr;
  }
  .split-actions > div button {
    width: 100%;
  }
  .delete-summary div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
/* NAS R0.2 forms and administration */
body {
  min-width: 320px;
}
button:disabled {
  cursor: not-allowed;
}
.loading,
.fatal {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  color: #6e8094;
}
.fatal {
  flex-direction: column;
  gap: 8px;
}
.fatal b {
  color: #b64d59;
}
.message {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
}
.message.error {
  border: 1px solid #efc5c9;
  background: #fff0f1;
  color: #b23f4a;
}
.message.success {
  border: 1px solid #b9dbc9;
  background: #edf9f4;
  color: #15775c;
}
.breadcrumb small {
  margin-left: auto;
  color: #168064;
  font-size: 10px;
  font-weight: 800;
}
table input,
table select,
.review-strip input,
.review-strip select {
  min-width: 110px;
  height: 34px;
  border: 1px solid #d7e0ea;
  border-radius: 7px;
  background: #fff;
  color: #38526f;
  padding: 0 8px;
  font-size: 11px;
}
table td:first-child input:not([type="checkbox"]) {
  min-width: 260px;
}
.mini-button {
  border: 1px solid #e0c5e5;
  border-radius: 7px;
  background: #f8effb;
  color: #744f92;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.request-actions {
  display: flex;
  gap: 4px;
}
.mini-button.review {
  border-color: #bdd6ec;
  background: #eef6fd;
  color: #245da8;
}
.mini-button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
.status-select {
  border-width: 1px;
  border-style: solid;
  border-radius: 8px;
  font-weight: 800;
}
.status-before {
  color: #667587 !important;
  background: #f2f4f6 !important;
  border-color: #d9dfe5 !important;
}
.status-writing {
  color: #8a6b14 !important;
  background: #fff8d8 !important;
  border-color: #eadb8a !important;
}
.status-written {
  color: #28734f !important;
  background: #e8f7ed !important;
  border-color: #a9d9b9 !important;
}
.status-received {
  color: #fff !important;
  background: #20734e !important;
  border-color: #155d3e !important;
}
.status-review {
  color: #2462a5 !important;
  background: #e9f2fc !important;
  border-color: #afd0ef !important;
}
.status-revision {
  color: #b83f59 !important;
  background: #feecef !important;
  border-color: #efb4c0 !important;
}
.status-revision-completed {
  color: #7a4b00 !important;
  background: #fff1c7 !important;
  border-color: #e4bd5b !important;
}
.revision-history-cell { width: 78px; text-align: center; }
.revision-history.active { box-shadow: 0 0 0 2px #efb4c0; }
.revision-side-overlay { position: fixed; inset: 0; z-index: 1300; background: #10263b66; display: flex; justify-content: flex-end; }
.revision-side-panel { width: min(560px, 100vw); height: 100%; background: #fff; display: flex; flex-direction: column; box-shadow: -12px 0 35px #10263b33; }
.revision-side-panel > header { padding: 22px; border-bottom: 1px solid #dce5ed; display: flex; justify-content: space-between; gap: 16px; }
.revision-side-panel header h2 { margin: 3px 0 5px; }
.revision-side-panel header p { margin: 2px 0; color: #667587; font-size: 12px; }
.revision-side-panel header > button { border: 0; background: transparent; font-size: 28px; }
.revision-create-items { padding: 18px 22px; overflow: auto; flex: 1; min-height: 0; }
.revision-rounds { padding: 18px 22px; }
.revision-create-items label, .revision-inline-add label { display: grid; grid-template-columns: 24px 1fr 34px; gap: 8px; align-items: start; margin-bottom: 10px; }
.revision-create-items textarea, .revision-inline-add textarea, .revision-item textarea { width: 100%; min-height: 72px; resize: vertical; border: 1px solid #ccd9e4; border-radius: 8px; padding: 9px; }
.revision-button,
.revision-icon-danger {
  min-height: 36px;
  border: 1px solid #b8cee3;
  border-radius: 8px;
  background: #fff;
  color: #245da8;
  padding: 0 12px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .08s ease;
}
.revision-button:hover:not(:disabled) { border-color: #7ca9d3; background: #f1f7fd; box-shadow: 0 4px 12px #245da816; }
.revision-button:active:not(:disabled), .revision-icon-danger:active:not(:disabled) { transform: translateY(1px) scale(.98); }
.revision-button.primary { border-color: #245da8; background: #245da8; color: #fff; }
.revision-button.primary:hover:not(:disabled) { background: #1c4f91; }
.revision-button:disabled, .revision-icon-danger:disabled { cursor: not-allowed; opacity: .58; }
.revision-icon-danger { width: 36px; min-width: 36px; padding: 0; color: #b43b4b; border-color: #e7b8bf; background: #fff7f8; }
.revision-icon-danger:hover:not(:disabled) { color: #fff; border-color: #b43b4b; background: #b43b4b; }
.revision-icon-danger svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.revision-add-item { margin: 0 22px; align-self: flex-start; }
.revision-add-current { margin: 0 22px 14px; align-self: flex-start; }
.revision-inline-add { margin: 0 22px 14px; padding: 16px; border: 1px solid #d8e2eb; border-radius: 10px; background: #f8fafc; }
.revision-inline-add h3 { margin: 0 0 12px; color: #2c4865; font-size: 14px; }
.revision-inline-actions { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 8px; margin-top: 12px; }
.revision-side-panel footer { margin-top: auto; padding: 16px 22px; border-top: 1px solid #dce5ed; display: flex; align-items: center; justify-content: flex-end; gap: 8px; background: #fff; }
.revision-side-panel footer strong { margin-right: auto; }
.button-spinner { display: inline-block; width: 13px; height: 13px; margin-right: 7px; border: 2px solid #ffffff66; border-top-color: currentColor; border-radius: 50%; vertical-align: -2px; animation: login-spin .75s linear infinite; }
.revision-rounds details { border: 1px solid #d8e2eb; border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.revision-rounds summary { padding: 13px; display: flex; justify-content: space-between; cursor: pointer; background: #f6f9fb; }
.revision-round-meta { padding: 12px 14px; color: #647588; font-size: 11px; line-height: 1.7; }
.revision-item { display: grid; grid-template-columns: 18px 1fr; gap: 9px; padding: 10px 14px; border-top: 1px solid #edf1f4; }
.revision-item span { display: grid; gap: 7px; }
@media (max-width: 700px) {
  .revision-side-panel { width: 100vw; }
  .revision-create-items { padding: 16px; }
  .revision-create-items label, .revision-inline-add label { grid-template-columns: 22px minmax(0, 1fr) 40px; }
  .revision-add-item { width: calc(100% - 32px); margin: 0 16px; }
  .revision-side-panel footer { padding: 12px 16px; flex-wrap: wrap; }
  .revision-side-panel footer .revision-button { flex: 1 1 130px; min-height: 42px; }
  .revision-inline-add { margin-left: 16px; margin-right: 16px; }
}
.status-reviewed {
  color: #fff !important;
  background: #20734e !important;
  border-color: #155d3e !important;
}
.status-na {
  color: #fff !important;
  background: #747f8b !important;
  border-color: #626d78 !important;
}
.document-status-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
  gap: 7px;
  margin: 12px 0;
}
.document-status-summary button {
  min-height: 65px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 6px;
  border: 1px solid #dce5ed;
  border-radius: 10px;
  padding: 9px;
  background: #fff;
  color: #405b74;
  text-align: left;
}
.document-status-summary button b {
  font-size: 17px;
}
.document-status-summary button span {
  grid-column: 1;
  font-size: 10px;
  font-weight: 800;
}
.document-status-summary button small {
  grid-column: 2;
  grid-row: 2;
  font-size: 9px;
}
.bulk-edit-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #d7e3ed;
  border-radius: 10px;
  background: #f7fafc;
}
.bulk-edit-bar.active {
  border-color: #91b8dd;
  background: #eef6fd;
  box-shadow: 0 0 0 3px #245da810;
}
.bulk-toggle-button,
.bulk-exit-button {
  min-height: 36px;
  border: 1px solid #b8cee3;
  border-radius: 8px;
  background: #fff;
  color: #245da8;
  padding: 0 12px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}
.bulk-edit-bar.active .bulk-toggle-button {
  border-color: #245da8;
  background: #245da8;
  color: #fff;
}
.bulk-exit-button {
  color: #60778f;
}
.bulk-select-column {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  padding-left: 13px !important;
  padding-right: 13px !important;
  text-align: center !important;
}
.bulk-select-checkbox {
  appearance: auto;
  display: inline-block;
  width: 16px !important;
  min-width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: middle;
  accent-color: #245da8;
}
.announcement-popup {
  width: min(560px, 100%);
}
.announcement-popup .board-detail > h3 {
  margin: 0 0 14px;
  color: #173f69;
  font-size: 18px;
}
.announcement-popup-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #e5ebf1;
  color: #71849a;
  font-size: 10px;
}
.announcement-popup-meta b {
  margin-left: 5px;
  color: #34516d;
}
.bulk-edit-bar strong {
  margin-right: auto;
  color: #31536f;
  font-size: 11px;
}
.bulk-edit-bar select,
.bulk-edit-bar input {
  min-height: 36px;
  border: 1px solid #cddbe7;
  border-radius: 8px;
  padding: 0 9px;
  background: #fff;
}
.review-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 12px;
  padding: 13px;
  border: 1px solid #dfe6ef;
  border-radius: 10px;
  background: #fff;
}
.review-strip label {
  display: flex;
  min-width: 190px;
  flex-direction: column;
  gap: 6px;
  color: #6a8096;
  font-size: 10px;
  font-weight: 800;
}
.detail-section-title small {
  color: #7f91a5;
  font-size: 10px;
}
.admin-panel-head {
  min-height: 70px;
  padding: 13px 16px;
  border-bottom: 1px solid #e4eaf1;
}
.admin-panel-head h2 {
  margin: 0;
  color: #21486f;
  font-size: 17px;
}
.link-form-list {
  display: flex;
  flex-direction: column;
}
.link-form-list label {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  gap: 18px;
  padding: 13px 17px;
  border-bottom: 1px solid #e8edf2;
}
.link-form-list label > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.link-form-list b {
  color: #34516d;
  font-size: 11px;
}
.link-form-list small {
  color: #8796a5;
  font-size: 9px;
}
.link-form-list input {
  width: 100%;
  height: 38px;
  border: 1px solid #d5dfe9;
  border-radius: 8px;
  padding: 0 10px;
}
.structure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.template-card {
  overflow: hidden;
  border: 1px solid #dce4ed;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px #173b6c09;
}
.template-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  border-bottom: 1px solid #e5eaf0;
  background: #f8fafc;
}
.template-card-head b {
  color: #244a70;
  font-size: 13px;
}
.template-card-head button {
  border: 1px solid #cfdce8;
  border-radius: 7px;
  background: #fff;
  color: #245da8;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 800;
}
.template-list {
  max-height: 330px;
  overflow: auto;
  padding: 6px 10px;
}
.template-list > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  padding: 6px 0;
  border-bottom: 1px solid #edf1f4;
}
.template-list input {
  min-width: 0;
  height: 34px;
  border: 1px solid #d9e2eb;
  border-radius: 7px;
  padding: 0 8px;
  color: #38526f;
}
.delete-button {
  border: 1px solid #efd1d5;
  border-radius: 7px;
  background: #fff4f5;
  color: #b34856;
  padding: 0 9px;
  font-size: 10px;
  font-weight: 800;
}
.admin-placeholder {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed #cad6e2;
  border-radius: 12px;
  background: #f9fbfd;
  color: #58718a;
}
.admin-placeholder span {
  color: #8c9aa8;
  font-size: 11px;
}
.empty-panel {
  padding: 40px 8px;
  color: #93a0ae;
  text-align: center;
  font-size: 12px;
}
.panel-head h2 small {
  color: #7c90a7;
  font-size: 12px;
}
.account-link-card button:disabled {
  color: #9ba7b3 !important;
  cursor: not-allowed;
}
.dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #10284299;
  backdrop-filter: blur(3px);
}
.revision-dialog {
  width: min(520px, 100%);
  overflow: hidden;
  border: 1px solid #dce5ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 80px #071d3766;
}
.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 17px;
  border-bottom: 1px solid #e7edf3;
  background: linear-gradient(135deg, #f8fbfe, #eef7f8);
}
.dialog-head small {
  color: #168c91;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.dialog-head h2 {
  margin: 4px 0 0;
  color: #173f69;
  font-size: 20px;
}
.dialog-head > button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #71869b;
  font-size: 23px;
}
.dialog-guide {
  margin: 0;
  padding: 18px 24px 10px;
  color: #6e8195;
  font-size: 12px;
}
.recipient-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 8px 24px 18px;
}
.recipient-choice {
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 1px 10px;
  min-height: 68px;
  border: 1px solid #dbe5ee;
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  text-align: left;
}
.recipient-choice:hover,
.recipient-choice:focus-visible {
  border-color: #168c91;
  background: #f1fbfa;
  box-shadow: 0 0 0 3px #168c9118;
}
.recipient-choice > span {
  grid-row: 1/3;
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #155da2, #19a39b);
  color: #fff;
  font-weight: 900;
}
.recipient-choice b {
  color: #294b6c;
  font-size: 13px;
}
.recipient-choice small {
  overflow: hidden;
  color: #8a99a9;
  font-size: 9px;
  text-overflow: ellipsis;
}
.selected-recipient {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 24px 12px;
  padding: 12px 14px;
  border: 1px solid #cce6e2;
  border-radius: 10px;
  background: #f1faf8;
}
.selected-recipient span {
  color: #72869a;
  font-size: 10px;
}
.selected-recipient b {
  color: #167f78;
  font-size: 13px;
}
.selected-recipient button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #245da8;
  font-size: 10px;
  font-weight: 800;
}
.revision-reason-form {
  padding: 0 24px 22px;
}
.revision-reason-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.revision-reason-form label > span {
  color: #536d87;
  font-size: 11px;
  font-weight: 800;
}
.revision-reason-form textarea {
  resize: vertical;
  width: 100%;
  min-height: 98px;
  border: 1px solid #d4dfe9;
  border-radius: 10px;
  padding: 11px 12px;
  color: #2c4865;
  font: inherit;
  line-height: 1.5;
}
.revision-reason-form textarea:focus {
  outline: 0;
  border-color: #168c91;
  box-shadow: 0 0 0 3px #168c9118;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 24px 20px;
}
.revision-reason-form .dialog-actions {
  padding: 15px 0 0;
}
.project-work-memo-add {
  display: flex;
  margin-top: 22px;
}
.project-work-memo {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid #cfdceb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px #173b6c0a;
}
.project-work-memo-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.project-work-memo-head h3 {
  margin: 0;
}
.project-work-memo-head small {
  color: #778ba2;
  font-size: 11px;
  font-weight: 700;
}
.project-work-memo textarea {
  min-height: 168px;
}
.work-memo-dialog {
  width: min(620px, 100%);
}
.work-memo-dialog-body {
  padding: 18px 24px 8px;
}
.work-memo-dialog-body textarea {
  width: 100%;
  min-height: 220px;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid #cfdceb;
  border-radius: 10px;
  padding: 13px;
  color: #2c4865;
  font: inherit;
  line-height: 1.5;
}
.work-memo-dialog-body textarea:focus {
  outline: 0;
  border-color: #168c91;
  box-shadow: 0 0 0 3px #168c9118;
}
.work-memo-dialog-actions {
  justify-content: space-between;
}
.work-memo-dialog-actions > div {
  display: flex;
  gap: 8px;
}
.other-work-memo-add {
  min-height: 40px;
  white-space: nowrap;
}
.other-work-memo-preview.contract-card {
  min-width: 210px;
  padding: 10px 12px;
  display: grid;
  gap: 5px;
  transform: none;
}
.other-work-memo-preview b {
  color: #245da8;
  font-size: 11px;
}
.other-work-memo-preview span {
  display: -webkit-box;
  overflow: hidden;
  color: #5f748b;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-line;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.project-work-memo-error {
  margin: 8px 0 0;
  color: #b43b4b;
  font-size: 11px;
  font-weight: 800;
}
.project-work-memo-actions,
.project-work-memo-save-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.project-work-memo-actions {
  justify-content: space-between;
  margin-top: 12px;
}
.project-work-memo-actions .ghost {
  margin-left: 0;
}
.project-work-memo-actions .delete-button,
.project-work-memo-actions .primary,
.project-work-memo-actions .ghost {
  min-height: 38px;
}
@media (max-width: 700px) {
  .project-work-memo-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .project-work-memo-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .project-work-memo-actions > .delete-button,
  .project-work-memo-save-actions,
  .project-work-memo-save-actions button {
    width: 100%;
  }
  .work-memo-dialog-actions,
  .work-memo-dialog-actions > div {
    align-items: stretch;
    flex-direction: column;
  }
}
.dialog-cancel {
  min-height: 38px;
  border: 1px solid #d6e0e9;
  border-radius: 8px;
  background: #fff;
  color: #667d94;
  padding: 0 15px;
  font-size: 11px;
  font-weight: 800;
}
.settings-card {
  overflow: hidden;
  border: 1px solid #dce4ed;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px #173b6c09;
}
.settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid #e7ecf1;
  background: #f9fbfd;
}
.settings-head p {
  margin: 0 0 3px;
  color: #8192a5;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.settings-head h2 {
  margin: 0;
  color: #21486f;
  font-size: 16px;
}
.settings-head > span {
  color: #7c8fa4;
  font-size: 10px;
}
.setting-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.setting-list label {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-right: 1px solid #edf1f4;
  border-bottom: 1px solid #edf1f4;
}
.setting-list label:nth-child(2n) {
  border-right: 0;
}
.setting-list label > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.setting-list b {
  color: #34516d;
  font-size: 12px;
}
.setting-list small {
  color: #8596a8;
  font-size: 10px;
  line-height: 1.45;
}
.setting-list input {
  width: 20px;
  height: 20px;
  accent-color: #1f5da5;
}
.backup-grid {
  display: grid;
  gap: 14px;
}
.backup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 18px;
}
.file-action {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid #cfdce8;
  border-radius: 8px;
  background: #f5f9fd;
  color: #245da8;
  padding: 0 13px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.file-action input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.backup-warning {
  display: flex;
  gap: 10px;
  margin: 0 18px 18px;
  padding: 10px 12px;
  border: 1px solid #ead8ad;
  border-radius: 8px;
  background: #fff9ec;
  color: #796c4e;
  font-size: 10px;
}
.backup-warning b {
  color: #916918;
}
.settings-description {
  margin: 0;
  padding: 12px 18px;
  color: #71849a;
  font-size: 10px;
  line-height: 1.6;
}
.editable-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.editable-meta label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  padding: 9px 11px;
  border: 1px solid #dfe6ef;
  border-radius: 9px;
  background: #fff;
  color: #71849a;
  font-size: 10px;
  font-weight: 800;
}
.editable-meta input,
.editable-meta select {
  width: 100%;
  min-width: 0;
  height: 34px;
  border: 1px solid #d8e1eb;
  border-radius: 7px;
  background: #fbfcfe;
  color: #2a4665;
  padding: 0 8px;
}
.template-list > div.template-row {
  grid-template-columns: minmax(180px, 1fr) auto auto;
  align-items: center;
}
.template-row select {
  height: 34px;
  border: 1px solid #d9e2eb;
  border-radius: 7px;
  color: #38526f;
}
.template-order {
  display: flex;
  gap: 4px;
}
.template-order button {
  width: 30px;
  height: 30px;
  border: 1px solid #d6e0ea;
  border-radius: 6px;
  background: #fff;
  color: #60778f;
}
@media (max-width: 900px) {
  .structure-grid {
    grid-template-columns: 1fr;
  }
  .link-form-list label {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  table input,
  table select {
    min-width: 130px;
  }
  .master-list table {
    min-width: 1180px;
  }
  .master-list th:first-child,
  .master-list td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 180px;
    background: inherit;
    box-shadow: 2px 0 5px #173b6c12;
  }
  .master-list th:first-child {
    z-index: 3;
    background: #f4f7fb;
  }
  .master-list td:last-child {
    padding-right: 18px;
  }
  .detail-box {
    padding: 17px 12px;
  }
  .detail-box .detail-head {
    gap: 10px;
  }
  .detail-box .detail-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .detail-box .detail-actions button {
    min-height: 40px;
    flex: 1;
  }
  .request-actions button {
    min-height: 40px;
  }
  .setting-list {
    grid-template-columns: 1fr;
  }
  .setting-list label {
    border-right: 0;
  }
  .settings-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .editable-meta {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .dialog-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .revision-dialog {
    border-radius: 18px 18px 0 0;
  }
  .dialog-head {
    padding: 19px 18px 15px;
  }
  .dialog-guide {
    padding: 16px 18px 8px;
  }
  .recipient-list {
    grid-template-columns: 1fr;
    padding: 8px 18px 16px;
  }
  .dialog-actions {
    padding: 8px 18px 18px;
  }
  .selected-recipient {
    margin: 18px 18px 12px;
  }
  .revision-reason-form {
    padding: 0 18px 20px;
  }
}
.multi-owner-field {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  min-width: 0;
}
.multi-owner-field legend {
  padding: 0 6px;
  font-weight: 700;
  color: var(--navy);
}
.multi-owner-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 7px;
}
.multi-owner-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #fff;
}
.multi-owner-options .inactive-owner {
  background: #f5f6f8;
  color: #77879a;
}
.multi-owner-summary {
  display: inline-block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.multi-owner-control {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.multi-owner-control > button {
  min-height: 40px;
  width: 100%;
  text-align: left;
  border: 1px solid #cbd9e8;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  padding: 8px 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.compact-owner-control {
  display: block;
}
.compact-owner-control > button,
.other-work-table td > input,
.other-work-table td > select {
  height: 40px;
  min-height: 40px;
  box-sizing: border-box;
}
.other-work-table td {
  vertical-align: middle;
}
.panel-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-head-actions .clear-panel-button {
  width: auto;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #fff;
  color: #6d7f92;
  font-size: 12px;
}
@media (max-width: 900px) {
  .multi-owner-field {
    grid-column: 1 / -1;
  }
  .multi-owner-summary {
    max-width: 130px;
  }
  .panel-head-actions {
    gap: 5px;
  }
  .panel-head-actions .clear-panel-button {
    padding: 0 7px;
    font-size: 11px;
  }
}

/* R0.9.6 RSWM login and installable PWA shell */
.auth-page {
  grid-template-columns: minmax(430px, 0.95fr) minmax(520px, 1.05fr);
  background: #f5f8fb;
}
.auth-brand {
  position: relative;
  overflow: hidden;
  justify-content: space-between;
  min-height: 100vh;
  padding: 7vh clamp(44px, 7vw, 110px) 4vh;
  background:
    radial-gradient(circle at 85% 42%, #0a839780, transparent 32%),
    linear-gradient(145deg, #062b59 0%, #07517a 56%, #09a89b 100%);
}
.auth-brand:after {
  position: absolute;
  right: -12%;
  bottom: -11%;
  width: 130%;
  height: 36%;
  border-radius: 50%;
  background: repeating-radial-gradient(
    ellipse at center,
    transparent 0 10px,
    #43d8dc22 11px 12px
  );
  transform: rotate(-8deg);
  content: "";
}
.auth-brand-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto 0;
  text-align: center;
}
.auth-logo-frame {
  position: relative;
  display: block;
  width: 190px;
  height: 190px;
  margin: 0 0 22px;
  overflow: hidden;
  border-radius: 42px;
  background: #fff;
  box-shadow: 0 22px 50px #001b3955;
}
.auth-logo-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}
.auth-logo-frame:after {
  position: absolute;
  top: 0;
  right: 0;
  width: 15%;
  height: 100%;
  background: #fff;
  content: "";
  pointer-events: none;
}
.auth-brand-main h1 {
  margin: 0;
  color: #fff;
  font-size: 72px;
  letter-spacing: 0.05em;
  line-height: 1;
}
.auth-brand-main h2 {
  margin: 13px 0 0;
  color: #eefaff;
  font-size: 24px;
  font-weight: 700;
}
.auth-brand-main i {
  width: 42px;
  height: 2px;
  margin: 20px 0 12px;
  background: #26d0cf;
}
.auth-brand-main b {
  border: 1px solid #4ac6da;
  border-radius: 99px;
  padding: 7px 14px;
  color: #e9fbff;
  font-size: 13px;
}
.auth-benefits {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  color: #8de7ee;
  text-align: center;
}
.auth-benefits > span {
  font-size: 28px;
}
.auth-benefits small {
  display: block;
  margin-top: 8px;
  color: #d8f4f6;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.55;
}
.auth-brand-foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  margin-top: 35px;
  text-align: center;
}
.auth-brand-foot p {
  margin: 0;
  color: #a1e4e8;
  font-size: 9px;
  letter-spacing: 0.22em;
}
.auth-brand-foot strong {
  color: #fff;
  font-size: 13px;
}
.auth-brand-foot small {
  margin-top: 20px;
  color: #d3edf0;
  font-size: 9px;
}
.auth-stage {
  display: flex;
  min-width: 0;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px clamp(28px, 6vw, 95px) 28px;
}
.auth-stage .auth-card {
  position: relative;
  width: min(590px, 100%);
  margin: auto;
  padding: 46px 48px 40px;
  border-radius: 27px;
  box-shadow: 0 26px 70px #173b6c1f;
}
.auth-lock {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: #edf4fa;
  color: #1f5da5;
}
.auth-stage .auth-copy {
  text-align: center;
}
.auth-stage .auth-copy p {
  color: #0799a2;
  font-size: 10px;
}
.auth-stage .auth-copy h2 {
  font-size: 34px;
}
.auth-stage .auth-copy > span {
  display: block;
  max-width: 300px;
  margin: auto;
}
.auth-stage .auth-tabs {
  margin-top: 28px;
}
.auth-stage .stack-form input {
  height: 52px;
  padding: 0 16px;
}
.auth-stage .stack-form .primary {
  min-height: 52px;
  margin-top: 8px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(100deg, #1557b2, #08a89d);
  box-shadow: 0 8px 18px #126ca52e;
  color: #fff;
  font-size: 14px;
}
.auth-stage .login-submit:active:not(:disabled) {
  transform: translateY(1px) scale(0.98);
  filter: brightness(0.9);
}
.auth-stage .login-submit:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}
.login-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 7px;
  border: 2px solid #ffffff66;
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -2px;
  animation: login-spin 0.75s linear infinite;
}
.auth-card .message { white-space: pre-line; }
@keyframes login-spin { to { transform: rotate(360deg); } }
.pwa-install {
  display: flex;
  width: min(680px, 100%);
  align-items: center;
  gap: 15px;
  margin: 24px auto 0;
  padding: 13px 17px;
  border: 1px solid #dbe4ed;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 13px 35px #173b6c18;
}
.pwa-install img {
  width: 54px;
  height: 54px;
  border-radius: 13px;
}
.pwa-install div {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}
.pwa-install b {
  color: #203b58;
  font-size: 13px;
}
.pwa-install span {
  color: #8191a2;
  font-size: 10px;
}
.pwa-install button {
  min-width: 94px;
  height: 40px;
  border: 0;
  border-radius: 9px;
  background: #155da7;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.auth-stage-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  margin-top: auto;
  color: #71859a;
  font-size: 10px;
}
.auth-stage-foot b {
  color: #188690;
}
@media (max-width: 900px) {
  .auth-page {
    display: block;
    padding: 0;
    background: #f5f8fb;
  }
  .auth-brand {
    min-height: auto;
    padding: 28px 20px 24px;
  }
  .auth-brand-main {
    margin: 0;
  }
  .auth-logo-frame {
    width: 82px;
    height: 82px;
    margin-bottom: 10px;
    border-radius: 20px;
  }
  .auth-brand-main h1 {
    font-size: 38px;
  }
  .auth-brand-main h2 {
    margin-top: 7px;
    font-size: 14px;
  }
  .auth-brand-main i,
  .auth-benefits,
  .auth-brand-foot strong {
    display: none;
  }
  .auth-brand-main b {
    margin-top: 9px;
    padding: 4px 9px;
    font-size: 9px;
  }
  .auth-brand-foot {
    margin-top: 14px;
  }
  .auth-brand-foot small {
    display: none;
  }
  .auth-stage {
    min-height: auto;
    padding: 22px 12px 26px;
  }
  .auth-stage .auth-card {
    width: min(560px, 100%);
    margin: 0;
    padding: 28px 22px;
    border-radius: 20px;
  }
  .auth-stage .auth-copy h2 {
    font-size: 27px;
  }
  .pwa-install {
    width: min(560px, 100%);
  }
  .auth-stage-foot {
    margin-top: 22px;
  }
}
@media (max-width: 520px) {
  .auth-brand {
    padding: 20px 16px;
  }
  .auth-logo-frame {
    width: 64px;
    height: 64px;
  }
  .auth-brand-main h1 {
    font-size: 31px;
  }
  .auth-brand-main h2 {
    font-size: 12px;
  }
  .auth-stage .auth-card {
    padding: 24px 16px;
  }
  .auth-stage .auth-tabs button {
    font-size: 9px;
  }
  .pwa-install {
    flex-wrap: wrap;
  }
  .pwa-install button {
    width: 100%;
  }
  .auth-stage-foot {
    gap: 16px;
    flex-wrap: wrap;
  }
}
/* TEST environment identity */
.test-server-banner {
  position: sticky;
  z-index: 9999;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 34px;
  padding: 7px 18px;
  border-bottom: 2px solid #7c2d12;
  background: #f97316;
  color: #fff;
  box-shadow: 0 3px 10px #7c2d1240;
  font-size: 12px;
}
.test-server-banner b {
  letter-spacing: 0.12em;
  font-size: 13px;
}
.test-server-banner span {
  font-weight: 800;
}
.test-server-banner strong {
  border-radius: 999px;
  background: #7c2d12;
  padding: 3px 9px;
  font-size: 10px;
}
.admin-create-user {
  margin-bottom: 14px;
}
.admin-create-user-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr auto;
  align-items: end;
  gap: 10px;
}
.admin-create-user-fields label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #7890a8;
  font-size: 10px;
  font-weight: 800;
}
.admin-create-user-fields input {
  height: 38px;
  border: 1px solid #d6e0ea;
  border-radius: 8px;
  padding: 0 10px;
}
@media (max-width: 900px) {
  .admin-create-user-fields {
    grid-template-columns: 1fr;
  }
}
/* R1.0.0 personal work reuses the home module-card visual language at a compact scale. */
.my-work-menu{display:flex;flex-direction:column;gap:9px;align-self:start;padding:12px;border:1px solid #d6dfeb;border-radius:18px;background:#fff;box-shadow:0 5px 18px #173b6c12}
.my-work-menu>small{padding:2px 4px 5px;color:#667b90;font-size:11px;font-weight:900;letter-spacing:.08em}
.my-work-menu-primary{display:flex;flex-direction:column;gap:9px;min-width:0}
.my-work-menu button{min-width:0;width:100%;height:64px;padding:9px 10px;text-align:left;white-space:nowrap;border:1px solid #d6dfeb;border-radius:12px;background:#fff;color:var(--navy);display:flex;align-items:center;gap:10px;box-shadow:0 3px 10px #173b6c0d;transition:.16s ease-out}
.my-work-menu button:hover{transform:translateY(-2px);border-color:#245da8;box-shadow:0 7px 16px #173b6c18}
.my-work-menu button strong{font-size:13px;letter-spacing:-.03em;white-space:nowrap;word-break:keep-all}
.my-work-menu-icon{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:10px;background:#f0f5fb;color:#1c4e8d}
.my-work-menu-icon .line-icon{width:19px;height:19px}
.my-work-menu-divider{height:1px;margin:2px 4px;background:#d6dfeb}
.my-work-shortcuts{display:flex;flex-direction:column;gap:7px;margin-top:7px;padding-top:3px}
.my-work-shortcut-label{padding:1px 4px;color:#8291a0;font-size:10px;font-weight:900;letter-spacing:.08em}
.my-work-menu .my-work-contact{height:58px;color:#1c4e8d;background:#f8fbfe;box-shadow:none}
.my-work-overlay{position:fixed;inset:0;background:rgba(20,32,43,.28);z-index:90}
.my-work-panel{position:absolute;right:0;top:0;height:100%;width:min(430px,92vw);background:#fff;box-shadow:-12px 0 32px rgba(20,32,43,.18);display:flex;flex-direction:column}
.my-work-panel>header{display:flex;justify-content:space-between;align-items:center;padding:22px;border-bottom:1px solid var(--line,#d9e1e8)}
.my-work-panel>header h2{margin:3px 0 0}.my-work-panel>header button{width:34px;height:34px;padding:0}
.my-work-list{padding:14px;display:grid;gap:10px}
.my-work-card{width:100%;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 12px 12px 14px;border:1px solid var(--line,#d9e1e8);border-radius:10px;background:#fff;transition:.16s ease-out}
.my-work-card:hover{border-color:#b7c9dc;box-shadow:0 5px 14px #173b6c12}
.my-work-card-main{min-width:0;flex:1;padding:2px 0;border:0;background:transparent;color:inherit;text-align:left}
.my-work-card-main:hover{color:#174f91}
.my-work-card-main:active,.my-work-start:active,.module-card:active,.my-work-menu button:active{transform:translateY(1px);filter:brightness(.96)}
.my-work-card span{min-width:0}.my-work-card b{display:block;white-space:normal;overflow-wrap:anywhere;line-height:1.45}.my-work-card small{display:block;margin-top:6px}.my-work-card em{white-space:nowrap;font-style:normal;font-size:12px;color:#647482}
.my-work-card-side{display:flex;flex:0 0 auto;flex-direction:column;align-items:flex-end;gap:8px;padding-top:2px}
.my-work-card .my-work-start{min-width:0;height:30px;padding:0 10px;border-radius:7px;font-size:11px;white-space:nowrap}
.email-recipient-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}.email-recipient-columns fieldset{min-width:0;border:1px solid var(--line,#d9e1e8);border-radius:10px;padding:12px}.email-search-wrap{position:relative}.email-recipient-columns input[data-email-search]{width:100%;margin:8px 0 0}.email-selected-list{min-height:35px;display:flex;align-items:center;flex-wrap:wrap;gap:6px}.email-selected-list>small{color:#7b8996}.email-recipient-chip{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:5px 6px 5px 9px;border:1px solid #cbd9e7;border-radius:999px;background:#f2f7fc;color:#173b6c}.email-recipient-chip b{font-size:12px;white-space:nowrap}.email-recipient-chip button{width:22px;height:22px;padding:0;border:0;border-radius:50%;background:transparent;color:#52697f}.email-person-list{position:absolute;z-index:4;top:100%;left:0;right:0;max-height:220px;overflow-y:auto;display:grid;gap:2px;padding:5px;border:1px solid #cbd9e7;border-radius:9px;background:#fff;box-shadow:0 10px 24px #173b6c22}.email-person{width:100%;display:flex;align-items:center;gap:8px;padding:9px;border:0;border-radius:7px;background:#fff;text-align:left}.email-person:hover{background:#f0f5fb}.email-person span{min-width:0}.email-person b,.email-person small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.email-empty-result{margin:0;padding:12px;color:#7b8996;text-align:center}.bulk-disabled-reason{flex-basis:100%;color:#8b5b00}
.multi-owner-options{display:flex;flex-wrap:wrap;gap:8px}.multi-owner-options label{display:inline-flex;align-items:center;gap:7px;min-width:0;width:auto;padding:8px 10px}.multi-owner-options input[type=checkbox]{width:16px;height:16px;flex:0 0 16px}.multi-owner-options span{white-space:nowrap;word-break:keep-all}
button:active:not(:disabled){transform:translateY(1px);filter:brightness(.96)}
@media(max-width:1100px) and (min-width:721px){.home-dashboard{grid-template-columns:144px minmax(480px,1fr)}.monthly-completed{grid-column:1/-1}}
@media(max-width:720px){.home-dashboard{display:block}.my-work-menu{display:block;padding:10px;margin-bottom:14px}.my-work-menu>small{display:none}.my-work-menu-primary{flex-direction:row;overflow-x:auto;gap:9px;padding-bottom:10px}.my-work-menu button{min-width:116px;width:auto;height:58px}.my-work-shortcuts{margin-top:2px;padding-top:0}.my-work-menu-divider{margin:0 4px 9px}.my-work-shortcut-label{display:block;margin:0 3px 5px}.my-work-menu .my-work-contact{width:100%}.my-work-panel{width:100%}.email-recipient-columns{grid-template-columns:1fr}.email-dialog{min-height:0;max-height:94vh;overflow:auto}.email-person-list{position:static;margin-top:5px}}

/* R1.0.0 TEST browser validation fixes. */
.my-work-menu .my-work-contact{gap:6px;padding-left:8px;padding-right:8px}
.my-work-menu .my-work-contact .my-work-menu-icon{flex-basis:28px;width:28px;height:28px;border-radius:8px}
.my-work-menu .my-work-contact .line-icon{width:16px;height:16px}
.my-work-menu .my-work-contact strong{font-size:12px;letter-spacing:-.055em;overflow:visible;text-overflow:clip}

.requested-bulk-bar{flex-wrap:nowrap;justify-content:space-between}
.requested-bulk-left,.requested-bulk-right{display:flex;min-width:0;align-items:center;gap:8px}
.requested-bulk-left strong{margin-right:0;white-space:nowrap}
.requested-bulk-right{margin-left:auto;justify-content:flex-end}
.requested-bulk-right [data-bulk-value-host]:empty{display:none}
.requested-bulk-bar button,.requested-bulk-bar select,.requested-bulk-bar input{min-height:36px}

.email-dialog{width:min(840px,100%);min-height:min(560px,calc(100vh - 40px));overflow:visible;display:flex;flex-direction:column}
.email-recipient-columns{padding:20px 24px 0}
.email-dialog>.dialog-actions{margin-top:auto}
.email-person-list{z-index:20;max-height:270px}
.email-person{min-height:50px}
.email-admin-actions{white-space:nowrap}
.email-admin-actions small{display:inline-block;min-width:58px;margin-right:8px;color:#718397;font-size:10px;font-weight:800;text-align:right}
.email-admin-actions small.error{color:#b43b4b}

@media(max-width:1000px){
  .requested-bulk-bar{flex-wrap:wrap;align-items:stretch}
  .requested-bulk-left,.requested-bulk-right{flex:1 1 100%;flex-wrap:wrap}
  .requested-bulk-right{margin-left:0;justify-content:flex-start}
}
@media(max-width:720px){
  .email-dialog{min-height:0;max-height:94vh;overflow:auto}
  .email-person-list{position:static;margin-top:5px}
  .requested-bulk-left,.requested-bulk-right{gap:7px}
  .requested-bulk-left strong{flex:1 1 auto}
  .requested-bulk-right select,.requested-bulk-right [data-bulk-value-host]{flex:1 1 130px}
  .requested-bulk-right [data-bulk-value-host]>*{width:100%}
}
