@charset "UTF-8";
:root {
  font-family: Inter, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  color: #202a43;
  background: #f4f6fa;
  font-synthesis: none;
  --primary: #3348bc;
  --line: #e3e8f0;
  --muted: #6c778d;
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
[hidden] {
  display: none !important;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #dce2ee;
  background: #fff;
  color: #364369;
  padding: 9px 15px;
  border-radius: 9px;
  font-weight: 600;
  transition: background 0.15s;
}
button:hover {
  background: #f0f3fb;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button.primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
button.primary:hover {
  background: #263aab;
}
button.danger {
  color: #b02b3c;
}
input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d5dce8;
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
  color: #202a43;
}
input:focus,
select:focus,
button:focus-visible {
  outline: 3px solid #a9b7ff;
  outline-offset: 2px;
}
input:disabled {
  background: #f0f2f5;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #4e5b74;
}
label input,
label select {
  margin-top: 6px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.5px;
}
h2 {
  font-size: 19px;
}
h3 {
  font-size: 16px;
}
.muted {
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
}
.fine {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #7885a0;
  margin-bottom: 7px;
}
.wide {
  width: 100%;
}
.error-text {
  color: #b02840;
  min-height: 22px;
  margin: 12px 0;
  white-space: pre-wrap;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 80px;
  max-width: 1040px;
  padding: 48px;
  margin: auto;
}
.login-intro h1 {
  font-size: 48px;
  line-height: 1.4;
  margin: 24px 0;
}
.login-intro .brand-mark {
  width: 60px;
  height: 60px;
  margin-bottom: 24px;
}
.login-intro > p:last-child {
  color: #69758b;
  line-height: 2;
}
.login-card {
  padding: 36px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 20px 70px #263d7310;
}
.login-card label {
  margin-top: 22px;
}
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1280px;
  margin: auto;
  padding: 17px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand strong {
  font-size: 16px;
}
.brand small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
}
.account {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.account button {
  padding: 6px 10px;
  font-size: 12px;
}
.shell {
  max-width: 1280px;
  margin: auto;
  padding: 30px 28px;
}
.workspace-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.period-switch {
  min-width: 260px;
  font-size: 11px;
}
.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  overflow: auto;
}
.tabs button {
  border: 0;
  border-radius: 8px 8px 0 0;
  background: transparent;
  padding: 13px 22px;
  white-space: nowrap;
  color: var(--muted);
}
.tabs button.active {
  color: var(--primary);
  background: #e9edff;
  box-shadow: inset 0 -3px var(--primary);
}
.notice {
  padding: 12px 16px;
  border: 1px solid #c5d2ed;
  background: #ebf1ff;
  border-radius: 10px;
  margin-bottom: 20px;
  white-space: pre-wrap;
}
.notice.error {
  background: #fff0f2;
  border-color: #edc3cd;
  color: #a72b42;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.inspection-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: start;
  gap: 24px;
}
.form-stack {
  display: grid;
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.form-stack .card {
  margin: 0;
}
.card-title {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}
.step {
  font-size: 11px;
  font-weight: 800;
  background: #edf0ff;
  color: var(--primary);
  border-radius: 6px;
  padding: 5px 7px;
}
.fields {
  display: grid;
  gap: 16px;
}
.fields.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.fields.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.info-strip {
  padding: 12px;
  background: #f1f4fb;
  border-radius: 8px;
  color: #53627c;
  font-size: 12px;
  margin-top: 18px;
}
.criterion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid #eef0f5;
}
.criterion:last-child {
  border-bottom: 0;
}
.criterion > label {
  font-weight: 500;
  flex: 1;
}
.score-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.score-controls button {
  width: 32px;
  height: 34px;
  padding: 0;
  font-size: 20px;
}
.score-controls input {
  width: 52px;
  text-align: center;
  padding: 6px;
  min-height: 34px;
  margin: 0;
}
.score-card {
  position: sticky;
  top: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.total {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 8px 0;
}
.total span {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -3px;
  color: var(--primary);
  line-height: 1.2;
}
.total small {
  color: var(--muted);
  font-size: 16px;
}
.badge {
  display: inline-block;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 600;
  background: #e7f4ed;
  color: #21734d;
}
.badge.bad {
  background: #ffedf0;
  color: #aa2f4b;
}
.badge.fair {
  background: #fff4dd;
  color: #926317;
}
.badge.good {
  background: #eaf1ff;
  color: #3864a3;
}
.score-rules {
  margin: 25px 0;
  padding: 16px 0;
  border-block: 1px solid var(--line);
  font-size: 12px;
  line-height: 2;
  color: var(--muted);
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.photo-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  overflow: hidden;
}
.photo-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 7px;
  display: block;
  margin: 10px 0;
}
.photo-card input[type='file'] {
  font-size: 11px;
  min-height: 0;
  padding: 7px;
}
.photo-card button {
  font-size: 11px;
  padding: 5px 8px;
  margin-top: 8px;
}
.photo-placeholder {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f8fc;
  color: #9aa4b6;
  border-radius: 7px;
  margin: 10px 0;
  font-size: 12px;
}
.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
  padding: 18px;
  background: #f8f9fc;
  border-radius: 10px;
  margin: 16px 0;
}
.filters label {
  flex: 1;
  min-width: 110px;
  font-size: 11px;
}
.filters label.keyword {
  flex: 1.8;
  min-width: 160px;
}
.filters button {
  min-height: 42px;
}
.list-status {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
th {
  background: #f5f7fb;
  color: #6f7d93;
  font-weight: 600;
  white-space: nowrap;
}
th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid #e9edf4;
  vertical-align: middle;
}
td small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
td.actions {
  white-space: nowrap;
}
td button {
  font-size: 11px;
  padding: 5px 8px;
  margin: 2px;
}
.empty {
  text-align: center;
  padding: 40px;
  color: var(--muted);
}
.pager {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
  font-size: 12px;
}
.pager .pager-summary {
  margin-right: auto;
  color: var(--muted);
}
.pager button {
  padding: 6px 10px;
  font-size: 12px;
}
.pager select {
  width: 100px;
  min-height: 32px;
  padding: 5px;
}
.pager input {
  width: 65px;
  min-height: 32px;
  padding: 5px;
}
.period-form {
  grid-template-columns: 2fr 1.5fr 90px auto;
  align-items: end;
  margin-top: 20px;
}
.period-row {
  padding: 12px 0;
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.period-row > span {
  flex: 1;
}
.period-row button {
  font-size: 12px;
}
.period-row small {
  color: var(--muted);
  display: block;
}
footer {
  display: flex;
  justify-content: space-between;
  color: #98a2b4;
  font-size: 11px;
  margin: 32px 0 10px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  max-width: 720px;
  width: calc(100% - 32px);
  padding: 28px;
  color: #202a43;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 24px 80px #15204430;
}
dialog::backdrop {
  background: #18234070;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
dialog label {
  margin: 14px 0;
}
#user-dialog,
#password-dialog {
  max-width: 460px;
}
.detail-summary {
  background: #f2f5fc;
  border-radius: 10px;
  padding: 16px;
  line-height: 2;
}
.detail-score {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.detail-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}
.detail-photos img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 9px;
}
.detail-photos p {
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 950px) {
  .inspection-layout {
    grid-template-columns: minmax(0, 1fr) 210px;
  }
  .shell {
    padding: 24px 18px;
  }
  .card {
    padding: 20px;
  }
  .filters label {
    flex-basis: 26%;
  }
  .login-layout {
    gap: 35px;
    padding: 30px;
  }
  .login-intro h1 {
    font-size: 36px;
  }
  .period-form {
    grid-template-columns: 1fr 1fr;
  }
  .fields.three {
    grid-template-columns: 1fr 1fr;
  }
  .fields.three label:last-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 650px) {
  .login-layout {
    display: block;
    padding: 28px 20px;
  }
  .login-intro {
    margin-bottom: 28px;
  }
  .login-intro h1 {
    font-size: 28px;
    margin: 10px 0;
  }
  .login-intro .brand-mark {
    margin-bottom: 15px;
    width: 42px;
    height: 42px;
  }
  .login-intro > p:last-child {
    display: none;
  }
  .login-card {
    padding: 24px;
  }
  .header-inner {
    padding: 14px 16px;
    align-items: start;
    flex-wrap: wrap;
  }
  .account {
    width: 100%;
    justify-content: flex-end;
  }
  .account span {
    margin-right: auto;
  }
  .shell {
    padding: 20px 12px;
  }
  .workspace-heading {
    align-items: start;
    flex-direction: column;
  }
  .period-switch {
    width: 100%;
  }
  h1 {
    font-size: 25px;
  }
  .tabs button {
    padding: 12px 15px;
  }
  .inspection-layout {
    display: flex;
    flex-direction: column;
  }
  .form-stack,
  .score-card {
    width: 100%;
  }
  .score-card {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .score-card .eyebrow {
    grid-column: 1/-1;
  }
  .score-card .badge {
    justify-self: end;
    align-self: center;
  }
  .score-card .score-rules {
    display: none;
  }
  .score-card .primary,
  .score-card .fine {
    grid-column: 1/-1;
  }
  .total span {
    font-size: 48px;
  }
  .section-heading {
    align-items: start;
    flex-wrap: wrap;
  }
  .card {
    padding: 16px;
  }
  .fields {
    gap: 12px;
  }
  .photo-grid {
    gap: 10px;
  }
  .photo-card {
    padding: 9px;
  }
  .photo-card img {
    height: 110px;
  }
  .criterion {
    gap: 12px;
  }
  .criterion > label {
    font-size: 12px;
  }
  .filters {
    padding: 12px;
    gap: 10px;
  }
  .filters label {
    flex-basis: 40%;
  }
  .filters label.keyword {
    flex-basis: 65%;
  }
  .pager {
    gap: 6px;
  }
  .pager .pager-summary {
    width: 100%;
  }
  .period-form {
    grid-template-columns: 1fr;
  }
  .period-row {
    flex-wrap: wrap;
  }
  .detail-photos {
    grid-template-columns: 1fr;
  }
  dialog {
    padding: 20px;
  }
  .brand strong {
    font-size: 15px;
  }
}
