:root {
  --red: #06364d;
  --line: #dde5e9;
  --muted: #687681;
}

.logout-button { padding: 8px 14px; min-height: 44px; }
@media (max-width: 760px) {
  body { min-width: 320px; }
  header { flex-wrap: wrap; gap: 12px; padding: 12px; }
  header nav { flex-wrap: wrap; }
  main { padding: 14px; }
  .table-wrap { max-width: 100%; overflow: auto; }
  dialog { max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); overflow: auto; }
  input, select, textarea { font-size: 16px; min-width: 0; }
  button { min-height: 44px; }
}

body {
  color: #102431;
  background: #f3f7f9;
}

.logo {
  width: 116px;
  height: 116px;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}

.logo.small {
  width: 42px;
  height: 42px;
  border-radius: 0;
  object-fit: contain;
}

.module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 130px;
}

.module-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}

.module-tag.os { color: #06446a; background: #dff1fb; }
.module-tag.finance { color: #106443; background: #dcf7e9; }
.module-tag.ai { color: #6338a8; background: #eee5ff; }

.module-options {
  display: grid;
  gap: 10px;
  margin: 2px 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.module-options legend {
  padding: 0 6px;
  color: #334b59;
  font-size: 13px;
  font-weight: 800;
}

.module-option {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #dbe6eb;
  border-radius: 12px;
  background: #f8fbfc;
  cursor: pointer;
}

.module-option input { width: 18px; height: 18px; margin-top: 2px; }
.module-option span { display: grid; gap: 2px; }
.module-option b { color: #173847; font-size: 14px; }
.module-option small { color: var(--muted); line-height: 1.35; }
.dialog-note { margin: -5px 0 16px; color: var(--muted); font-size: 12px; }

.hidden { display: none !important; }
.client-ai-config { display: grid; gap: 12px; margin: -6px 0 18px; padding: 15px; border: 1px solid #c9dbea; border-radius: 14px; background: #f2f8fc; }
.client-ai-config>div:first-child { display: grid; gap: 3px; }
.client-ai-config>div:first-child b { color: #153c50; }
.client-ai-config>div:first-child small { color: var(--muted); }
.client-ai-grid { display: grid; grid-template-columns: minmax(210px,1.35fr) minmax(150px,.8fr) minmax(135px,.65fr); gap: 10px; }
.client-ai-config a { color: #07577a; font-size: 12px; font-weight: 800; text-decoration: none; }
.ai-clear { display: flex !important; grid-auto-flow: column; align-items: center; gap: 6px; color: #a22931; font-size: 11px; }
.ai-clear input { width: 16px; height: 16px; }
.ai-clear.hidden { display: none !important; }

@media(max-width:700px){.client-ai-grid{grid-template-columns:1fr}}
