/* 页面用途：PDF2Excel 网页的文件夹选择、访问验证与转换状态布局。 */
:root {
  color-scheme: light;
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  color: #1c344a;
  background: #eff4f8;
  font-size: 15px;
  --accent: #176590;
  --muted: #4a6479;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.shell {
  width: min(100%, 1180px); min-height: 100svh; margin: 0 auto; padding: 48px 28px;
  display: flex; flex-direction: column; justify-content: center;
}
.brand { position: relative; display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 28px; text-align: center; }
.brand img { width: 76px; height: 76px; flex: 0 0 auto; }
.brand > div { transform: translateX(-47px); }
.brand h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 5px; letter-spacing: -.036em; }
.brand p { margin: 0; color: var(--muted); }
.logout { position: absolute; right: 0; top: 0; }
.panel {
  background: white; border: 1px solid #dce7ef; border-radius: 14px;
  margin-bottom: 18px; padding: 26px 30px; box-shadow: 0 4px 16px #23415b0a;
}
h2 { font-size: 1.12rem; margin: 0 0 14px; }
.access { width: 100%; max-width: 760px; margin: 0 auto 18px; }
.access h2 { text-align: center; }
.login-controls {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-content: center;
  gap: 10px; width: min(100%, 600px); margin: 0 auto;
}
.login-controls label { grid-column: 1 / -1; justify-self: center; font-weight: 600; text-align: center; }
.login-controls input {
  width: 100%; min-width: 0; border: 1px solid #b8cbd9; border-radius: 8px;
  padding: 10px 12px; font: inherit; color: inherit; background: #fff;
}
.error { color: #a12e31; }
.error:empty { display: none; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; font: inherit;
  font-weight: 650; border-radius: 8px; min-height: 41px; padding: 8px 17px;
  background: var(--accent); color: white; text-decoration: none; border: 1px solid var(--accent); cursor: pointer;
}
button:hover:not(:disabled), .button:hover { background: #125476; }
button:disabled { background: #e7edf1; border-color: #e3e9ee; color: #587083; cursor: default; }
.secondary { background: white; color: var(--accent); border-color: #b9cedc; }
.secondary:hover:not(:disabled) { background: #edf6fb; }
:focus-visible { outline: 3px solid #169a94; outline-offset: 3px; }
.picker {
  background: #f7fafc; border: 1px dashed #9dbdce; border-radius: 10px;
  text-align: center; padding: 19px 12px; overflow-wrap: anywhere;
}
.picker .arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 37px; height: 37px; border-radius: 10px; background: #e5f2f8;
  font-weight: 700; color: var(--accent); font-size: 1.35rem;
}
.picker p { margin: 7px 0; }
.picker button { margin-top: 5px; }
#folder-name { font-weight: 650; }
.muted { color: var(--muted); font-size: .9rem; }
.option { display: inline-flex; align-items: center; font-weight: 600; gap: 8px; margin-top: 14px; cursor: pointer; }
.option input { width: 17px; height: 17px; accent-color: var(--accent); }
.option small { color: var(--muted); margin-left: 4px; font-weight: 400; }
.note { margin: 6px 0 0 3px; }
.progress-title { display: flex; align-items: baseline; justify-content: space-between; }
.progress-title h2 { margin-bottom: 9px; }
#fraction { color: var(--muted); font-variant-numeric: tabular-nums; }
progress { width: 100%; height: 9px; border: 0; border-radius: 8px; overflow: hidden; background: #e7eff4; color: #209b91; }
progress::-webkit-progress-bar { background: #e7eff4; }
progress::-webkit-progress-value { background: #209b91; }
progress::-moz-progress-bar { background: #209b91; }
.counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 15px 0 0; gap: 10px; }
.counts div { display: flex; flex-direction: column-reverse; }
.counts dt { color: var(--muted); font-size: .88rem; }
.counts dd { font-size: 1.5rem; font-weight: 650; margin: 0; font-variant-numeric: tabular-nums; }
.status { min-height: 1.4em; margin: 12px 0; overflow-wrap: anywhere; }
.actions { display: flex; gap: 9px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .shell { min-height: 100svh; padding: 24px 13px; }
  .brand { gap: 7px; margin-bottom: 15px; }
  .brand img { width: 52px; height: 52px; }
  .brand > div { transform: translateX(-29.5px); }
  .brand h1 { font-size: clamp(1.35rem, 6vw, 1.8rem); overflow-wrap: anywhere; }
  .brand p { font-size: .85rem; }
  .panel { padding: 16px; }
  .login-controls { gap: 8px; }
  .login-controls label { flex-basis: 72px; }
  .counts { gap: 5px; }
  .counts dt { font-size: .76rem; }
}
