/* Shared design tokens. Text pairs are verified by the Phase 3 contrast script. */
:root {
  color-scheme: light;
  --ink:#1f2937; --muted:#475569; --surface:#ffffff; --page:#f4f7fb; --border:#64748b;
  --primary:#1d4ed8; --primary-hover:#1e40af; --soft-blue:#eff6ff;
  --neutral:#e2e8f0; --neutral-hover:#cbd5e1;
  --danger:#b91c1c; --danger-hover:#991b1b; --error-bg:#fef2f2;
  --success:#166534; --success-bg:#f0fdf4; --warning:#713f12; --warning-bg:#fffbeb;
}
* { box-sizing:border-box; }
[hidden], .hidden { display:none !important; }
html.auth-pending #protected-content { display:none !important; }
.auth-loading { padding:24px 20px; margin:20px auto; background:var(--surface); border:1px solid var(--border); border-radius:12px; }
/* WebKit may retain inherited hidden visibility on a previously display:none container. */
html:not(.auth-pending) #meeting-content:not([hidden]),
html:not(.auth-pending) #admin-section:not(.hidden) { visibility:visible; }
body { margin:0; padding:20px 16px 40px; background:var(--page); color:var(--ink); font:1.125rem/1.65 system-ui,-apple-system,"Segoe UI",Meiryo,sans-serif; text-align:left; }
.app-shell { width:100%; max-width:880px; margin:auto; min-width:0; }
.app-shell.wide { max-width:1200px; }
/* Meeting navigation: a quiet footer on desktop, a thumb-reachable bar on phones. */
.meeting-tabbar { position:static; margin-top:24px; border-top:1px solid var(--border); }
.meeting-tabbar-inner { display:flex; justify-content:center; flex-wrap:wrap; gap:4px 16px; padding:8px 0; }
.tabbar-item { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:48px; padding:8px; font-size:1rem; text-align:center; }
.tabbar-item.is-active { font-weight:700; color:var(--primary-hover); }
.tabbar-label { overflow-wrap:anywhere; }
@media (min-width:601px) {
  .meeting-tabbar { position:static; }
  .tabbar-icon { display:none; }
}
@media (max-width:600px) {
  html.has-meeting-tabbar { --meeting-tabbar-height:calc(72px + env(safe-area-inset-bottom, 0px)); scroll-padding-bottom:calc(var(--meeting-tabbar-height) + 12px); }
  html.has-meeting-tabbar body { padding-bottom:calc(var(--meeting-tabbar-height) + 24px); }
  .meeting-tabbar { position:fixed; bottom:0; left:0; right:0; z-index:100; margin:0; background:var(--surface); border-top:1px solid var(--border); box-shadow:0 -2px 8px rgba(0,0,0,0.06); padding-bottom:env(safe-area-inset-bottom, 0px); }
  .meeting-tabbar-inner { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; padding:0 env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px); }
  .tabbar-item { flex-direction:column; min-width:0; min-height:71px; padding:6px 4px; gap:2px; border-top:3px solid transparent; font-size:.875rem; line-height:1.4; text-decoration:none; }
  .tabbar-icon { font-size:1.25rem; line-height:1.2; }
  .tabbar-item.is-active { background:var(--soft-blue); border-top:3px solid var(--primary); }
  .tabbar-item:focus { outline-offset:-4px; }
  html.meeting-input-focused .meeting-tabbar { display:none; }
  html.has-meeting-tabbar.meeting-input-focused { scroll-padding-bottom:12px; }
}
@media print { .meeting-tabbar { display:none; } html.has-meeting-tabbar body { padding-bottom:0; } }
h1 { font-size:clamp(1.5rem,5vw,2rem); margin:8px 0 20px; line-height:1.4; }
h2 { font-size:1.375rem; margin:0 0 12px; line-height:1.45; }
h3 { font-size:1.2rem; margin:16px 0 12px; }
p { margin:8px 0 16px; }
h1,h2,h3,p,td,th,label,.notice { overflow-wrap:break-word; overflow-wrap:anywhere; }
a { color:var(--primary); text-underline-offset:3px; }
a:focus,button:focus,input:focus,select:focus,textarea:focus,[tabindex]:focus { outline:3px solid #b45309; outline-offset:3px; }
@supports selector(:focus-visible) {
  :where(a,button,input,select,textarea,[tabindex]):focus:not(:focus-visible) { outline:none; }
  :where(a,button,input,select,textarea,[tabindex]):focus-visible { outline:3px solid #b45309; outline-offset:3px; }
}
a,button,input,select,textarea,label { touch-action:manipulation; }
button,.btn,.button-link,.material-open {
  display:inline-flex; align-items:center; justify-content:center; min-height:48px; min-width:48px; max-width:100%;
  padding:10px 16px; margin:0; border:2px solid transparent; border-radius:8px; background:var(--primary); color:var(--surface);
  font:inherit; font-weight:600; line-height:1.4; cursor:pointer; text-decoration:none; text-align:center; overflow-wrap:break-word; overflow-wrap:anywhere;
  -webkit-appearance:none; appearance:none;
}
@media(hover:hover) { button:hover:enabled,.button-link:hover,.btn:hover { background:var(--primary-hover); } }
.secondary,.material-open { color:var(--primary-hover); border-color:var(--border); background:var(--surface); }
@media(hover:hover) { .secondary:hover:enabled,a.secondary:hover,.material-open:hover { background:var(--soft-blue); } }
.materials-notice-pending:enabled { background:var(--warning-bg); border-color:#92400e; color:var(--warning); }
@media(hover:hover) { .materials-notice-pending:hover:enabled { background:#fef3c7; } }
.materials-line-warning { background:#fef3c7; color:#713f12; border:1px solid #b45309; border-radius:8px; padding:12px 16px; }
.guidance-header-row { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; margin:16px 0 8px; }
.guidance-header-row h3 { margin:0; }
.test-mode-switch { display:inline-flex; align-items:center; gap:8px; min-height:48px; cursor:pointer; font-size:0.95rem; font-weight:600; padding:8px 10px; border-radius:6px; background:var(--neutral); border:1px solid var(--border); }
.test-mode-switch.is-selected { background:#f3e8ff; border-color:#c084fc; color:#6b21a8; }
.test-mode-switch input { width:1.2rem; height:1.2rem; cursor:pointer; accent-color:#7c3aed; }
button.is-test-mode:enabled { background:#f3e8ff !important; border-color:#6d28d9 !important; color:#6b21a8 !important; }
@media(hover:hover) { button.is-test-mode:hover:enabled { background:#e9d5ff !important; } }
button.is-test-mode:focus-visible { outline:3px solid #7c3aed !important; outline-offset:2px; }
.neutral,a.page-back,.page-back a { color:var(--ink); background:var(--surface); border:2px solid var(--border); }
@media(hover:hover) { .neutral:hover:enabled,a.neutral:hover,a.page-back:hover,.page-back a:hover { color:var(--ink); background:var(--soft-blue); } }
.danger { background:var(--danger); color:var(--surface); }
@media(hover:hover) { .danger:hover:enabled { background:var(--danger-hover); } }
button:disabled,[aria-disabled="true"] { color:var(--muted); background:var(--neutral); border-color:var(--border); cursor:not-allowed; opacity:1; }
.link-button { color:var(--primary); background:transparent; text-decoration:underline; padding:8px 0; justify-content:flex-start; }
@media(hover:hover) { .link-button:hover:enabled { color:var(--primary-hover); background:var(--soft-blue); } }
.page-nav,nav.page-back { text-align:left; margin:0 0 16px; }
a.page-back,.page-back a { display:inline-flex; align-items:center; min-height:48px; padding:8px 12px; font-size:1rem; border-radius:8px; }
/* Touch screens: hover colours above no longer stick after a tap, so show a press state instead. */
@media(hover:none),(pointer:coarse) {
  button,.btn,.button-link,.material-open,.btn-google,.choice,.page-back a { -webkit-tap-highlight-color:rgb(29 78 216 / 15%); }
  button:active:enabled,.button-link:active,.material-open:not([aria-disabled="true"]):active,.page-back a:active { filter:brightness(.92); transform:scale(.98); }
  .choice:not(.is-disabled):active { background:var(--soft-blue); }
}
@media(prefers-reduced-motion:reduce) { button:active:enabled,.button-link:active,.material-open:not([aria-disabled="true"]):active,.page-back a:active { transform:none; } }
.actions,.inline-controls { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:12px 0; min-width:0; }
.actions > *,.inline-controls > * { min-width:0; }
.card,.meeting-recovery { background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:20px; margin:16px 0; min-width:0; }
.meeting-card { border-left:6px solid var(--primary); }
.meeting-details { margin-top:10px; display:flex; flex-direction:column; gap:4px; color:var(--muted); font-size:.9375rem; }
.meeting-detail-item { margin:0; }
/* Annual materials navigation stays independent of the attendance meeting. */
.materials-matrix { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; padding:0; margin:12px 0 8px; list-style:none; }
.materials-matrix[aria-busy="true"]:empty { min-height:120px; }
.materials-matrix > li { min-width:0; }
.materials-matrix-date { display:grid; grid-template-rows:minmax(.9375rem,auto) auto; justify-items:center; align-content:center; gap:2px; width:100%; min-width:48px; min-height:56px; padding:4px 2px; border:2px solid transparent; border-radius:6px; color:var(--muted); background:var(--surface); font-variant-numeric:tabular-nums; }
.materials-matrix-date-label { grid-row:2; min-width:0; max-width:100%; }
.materials-matrix-badge { grid-row:1; min-width:0; max-width:100%; padding:0 2px; border-radius:3px; background:var(--soft-blue); color:var(--ink); font-size:.8125rem; font-weight:700; line-height:1.25; }
.materials-matrix-date[data-materials-state="has"] { color:var(--primary); }
.materials-matrix-date[data-materials-state="has"] .materials-matrix-date-label { text-decoration:underline; text-underline-offset:4px; }
.materials-matrix-date[data-materials-state="unknown"] .materials-matrix-date-label { text-decoration:underline dotted; text-underline-offset:4px; }
.materials-matrix-date[aria-pressed="true"] { background:var(--warning-bg); border-color:var(--warning); box-shadow:inset 0 -2px 0 var(--warning); }
@media(hover:hover) {
  .materials-matrix-date:hover:enabled { background:var(--soft-blue); }
  .materials-matrix-date[aria-pressed="true"]:hover:enabled { background:var(--warning-bg); }
}
.materials-matrix-legend { display:flex; flex-wrap:wrap; gap:6px 16px; margin:0 0 12px; color:var(--muted); font-size:.9375rem; }
.materials-legend-meeting { color:var(--ink); font-weight:700; }
.materials-legend-current { color:var(--warning); background:var(--warning-bg); border-bottom:3px solid var(--warning); }
.materials-legend-has { color:var(--primary); text-decoration:underline; text-underline-offset:3px; }
.materials-context-banner { margin:12px 0 16px; padding-top:12px; border-top:1px solid var(--border); }
.materials-context-banner[data-context="current"] { color:var(--success); }
.materials-context-banner[data-context="other"] { padding:12px; border:1px solid var(--warning); border-left-width:4px; border-radius:8px; color:var(--warning); background:var(--warning-bg); }
.materials-current-context { margin:0; font-weight:700; }
#materials-attendance-context { margin:8px 0; }
.materials-return-current { margin-top:4px; }
@media(max-width:600px) {
  .materials-matrix { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .materials-matrix[aria-busy="true"]:empty { min-height:184px; }
  .materials-return-current { width:100%; }
}
@media(max-width:340px) {
  .materials-matrix { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .materials-matrix[aria-busy="true"]:empty { min-height:248px; }
}
.meeting-date,.muted,.hint { color:var(--muted); }
.muted,.hint { font-size:1rem; }
.status-label { font-size:1.3rem; font-weight:700; }
.notice { border:1px solid var(--border); padding:14px 16px; margin:16px 0; border-radius:8px; white-space:pre-line; }
.notice[data-state="success"],.answer-state[data-state="answered"] { color:var(--success); background:var(--success-bg); border-color:var(--success); }
.notice[data-state="error"],.answer-state[data-state="error"] { color:var(--danger-hover); background:var(--error-bg); border-color:var(--danger); }
.notice[data-state="warning"],.answer-state[data-state="partial"] { color:var(--warning); background:var(--warning-bg); border-color:var(--warning); }
input:not([type="checkbox"]):not([type="radio"]),select,textarea { width:100%; max-width:100%; min-width:0; min-height:48px; padding:10px; color:var(--ink); background:var(--surface); border:1px solid var(--border); border-radius:6px; font:inherit; }
input::placeholder { color:var(--muted); opacity:1; }
input:disabled,select:disabled { color:var(--muted); background:var(--neutral); }
input[type="radio"],input[type="checkbox"] { width:24px; height:24px; flex:0 0 24px; margin:0; accent-color:var(--primary); }
fieldset { border:0; margin:24px 0; padding:0; min-width:0; }
legend { font-size:1.3rem; font-weight:700; margin-bottom:12px; }
.field-label,.form-field > label { display:block; font-weight:600; margin:12px 0 6px; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.form-field,.form-row { min-width:0; }
.form-row { display:grid; grid-template-columns:minmax(140px,1fr) minmax(0,3fr); gap:12px; align-items:center; margin:16px 0; }
.choice-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.choice-grid.two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.choice,.check-label { display:flex; align-items:center; gap:12px; min-height:48px; padding:12px; cursor:pointer; }
.choice { min-height:76px; border:2px solid var(--border); border-radius:10px; background:var(--surface); }
.choice.is-selected { background:var(--soft-blue); border-color:var(--primary); box-shadow:inset 0 0 0 1px var(--primary); }
.choice input:checked + span { color:var(--primary); font-weight:700; }
.choice:focus-within,.check-label:focus-within { outline:3px solid #b45309; outline-offset:3px; }
@supports selector(:has(*)) {
  .choice:focus-within:not(:has(:focus-visible)),
  .check-label:focus-within:not(:has(:focus-visible)) { outline:none; }
}
.choice.is-disabled { color:var(--muted); background:var(--neutral); cursor:not-allowed; }
.inline-attendance-form { margin-top: 14px; }
.inline-attendance-form fieldset { margin: 12px 0; }
.inline-attendance-form legend { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.inline-attendance-form .choice { min-height: 52px; padding: 10px 12px; }
.inline-attendance-form .actions { margin-top: 16px; }
/* Reserve the card stack inside the authorized shell before meeting data arrives.
   Static shapes avoid animation and keep the administrator controls below it. */
.meeting-loading-title { min-height:8rem; }
.meeting-loading-answer { min-height:27rem; }
.meeting-loading-summary { min-height:15rem; }
.meeting-loading-materials { min-height:15rem; }
.skeleton-line,.skeleton-block { display:block; border-radius:6px; background:var(--neutral); }
.skeleton-line { height:1.5rem; margin:12px 0; }
.skeleton-line.short { width:55%; }
.skeleton-block { min-height:5rem; margin-top:24px; }
#answer-detail { min-height:1.65em; }
.attendance-summary-card .speed-ranking-list[aria-busy="true"] { min-height:37px; }
@media (max-width:600px) {
  .meeting-loading-answer { min-height:43rem; }
  .meeting-loading-summary { min-height:21rem; }
  .attendance-summary-card .speed-ranking-list[aria-busy="true"] { min-height:119px; }
}
.login-card { width:100%; max-width:480px; margin:20px auto; }
/* Apply the remembered layout before the Auth SDK is ready; JS also sets hidden. */
html.google-linked-browser:not(.google-setup-expanded) #google-setup-entry,
html.google-linked-browser [data-unlinked-only] { display:none; }
.account-switch-link { color:var(--muted); font-size:0.85rem; font-weight:400; }
.login-card .login-setup-toggle { font-size:1rem; font-weight:400; text-align:left; }
.login-route .login-password-note { color:var(--muted); font-size:1rem; border-left:3px solid var(--danger); padding:8px 12px; margin-bottom:12px; }
/* One container only: the warning keeps its red title and a left accent bar, not a nested box. */
.login-security-warning { color:var(--ink); background:transparent; border:0; border-left:4px solid #be123c; border-radius:0; padding:0 0 0 12px; margin:0; }
.login-route .login-security-warning p { margin:0 0 10px; }
/* Keep the default list-item display so the ▶ disclosure marker stays visible; pad to a 48px target. */
.login-security-warning summary { min-height:48px; padding:12px 0; color:#9f1239; font-weight:700; cursor:pointer; }
.login-security-details[open] > summary { margin-bottom:8px; }
.login-route .login-security-warning p:last-child { margin-bottom:0; }
.login-route { display:grid; gap:12px; padding-block:20px; }
/* Separate the three audiences with spacing and one light line instead of dark borders. */
#login-panel > .login-route + .login-route { border-top:1px solid var(--neutral-hover); }
.login-route h2 { font-size:1.1rem; margin:0; }
.login-route p { margin:0; }
.google-guide-hint { min-width:0; font-size:1rem; }
.google-guide-hint p { color:var(--muted); }
html:not(.google-linked-browser) .login-card #login-context,
html:not(.google-linked-browser) .login-card #google-login-help,
html:not(.google-linked-browser) .login-card #google-skip-choice,
html:not(.google-linked-browser):not(.google-setup-expanded) .login-card #google-setup-entry { display:none; }
html:not(.google-linked-browser) .login-card #usual-login-heading {
  position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap;
}
html:not(.google-linked-browser) .login-card #login-procedures { gap:8px; padding-block:16px; }
html:not(.google-linked-browser) .login-card #login-procedures ul {
  display:grid; gap:4px; min-width:0; margin:0; padding:0; list-style:none;
}
html:not(.google-linked-browser) .login-card #login-procedures .login-procedure-action {
  display:flex; align-items:center; justify-content:flex-start; width:100%; min-width:48px; min-height:48px;
  padding:8px 4px; font-size:1rem; font-weight:400; line-height:1.5; text-align:left;
  white-space:normal; overflow-wrap:anywhere; text-decoration:underline; text-underline-offset:3px;
}
html:not(.google-linked-browser) .login-card #login-procedures .login-procedure-action:not(:disabled) { color:var(--primary-hover); }
.link-guide { display:flex; align-items:center; min-height:48px; max-width:100%; padding:6px 0; font-size:1rem; line-height:1.5; overflow-wrap:break-word; overflow-wrap:anywhere; }
.login-route-setup { padding-inline:0; border:0; border-radius:0; background:transparent; }
.login-route-setup:focus-within .setup-start-btn { border-color:var(--primary); box-shadow:0 0 0 2px var(--primary); }
.route-tag { display:inline-block; margin-left:6px; padding:2px 8px; border-radius:999px; background:var(--neutral); color:var(--ink); font-size:.875rem; font-weight:600; vertical-align:middle; }
#new-use-heading { font-size:1rem; color:var(--muted); }
.login-card button { min-height:48px; white-space:normal; overflow-wrap:break-word; overflow-wrap:anywhere; }
.google-skip-choice { margin: 0; text-align: left; }
.google-skip-choice .check-inline { font-size: 1rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; }
/* Align the note with the label text (18px box + 6px gap) and keep it readable. */
.login-auto-hint { font-size: .9rem; line-height: 1.5; margin: 0 0 0 24px; color: var(--muted); }
.login-route > button, #google-setup-panel button:not(.password-row button) { width:100%; }
#google-setup-panel form, #setup-step-2, #setup-step-3 { display:grid; gap:12px; }
#google-setup-panel { overflow-wrap:break-word; overflow-wrap:anywhere; }
.auth-steps { display:flex; flex-wrap:wrap; gap:8px 16px; list-style:none; padding:0; font-size:1rem; }
.auth-steps li { color:var(--muted); }
.auth-steps [aria-current="step"] { color:var(--ink); font-weight:700; text-decoration:underline; text-underline-offset:5px; }
.password-row { display:flex; align-items:stretch; gap:8px; }
.password-row input { min-width:0; flex:1; }
.password-row button { flex:0 0 auto; }
.menu-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:16px; }
.menu-grid button { min-height:80px; }
.table-scroll,.table-wrap,.materials-viewer-wrap { overflow:auto; max-width:100%; min-width:0; border:1px solid var(--border); background:var(--surface); margin:16px 0; }
table { width:100%; border-collapse:collapse; color:var(--ink); background:var(--surface); font-size:1rem; }
caption { padding:16px; font-size:1.2rem; font-weight:700; text-align:left; }
th,td { border:1px solid var(--border); padding:12px; vertical-align:middle; }
th { background:var(--neutral); text-align:left; }
tfoot { font-weight:700; }
.attendance-table { min-width:520px; }
.schedule-table { min-width:660px; }
.schedule-table td { overflow-wrap:break-word; overflow-wrap:anywhere; }
.schedule-meeting-name { display:block; font-weight:700; }
.schedule-meeting-details { display:block; margin-top:6px; color:var(--muted); }
.schedule-actions { display:flex; flex-wrap:wrap; gap:8px; }
.schedule-table .schedule-actions button { margin:0; }
.schedule-mobile-hint { display:none; }
@media(min-width:601px) {
  .schedule-table { table-layout:fixed; }
  .schedule-table th:first-child { width:8.5rem; }
  .schedule-table th:last-child { width:20rem; }
  .schedule-table td:first-child { white-space:nowrap; }
}
.materials-table { min-width:600px; }
.users-table { min-width:660px; }
td.actions { display:table-cell; }
td.actions button,.materials-table button,.materials-table a { margin:4px; }
.material-filename { font-weight:700; overflow-wrap:break-word; overflow-wrap:anywhere; }
.materials-loading,.materials-empty { padding:16px; color:var(--muted); }
.materials-global-error,.material-item-error,.err-text { padding:8px; color:var(--danger-hover); background:var(--error-bg); font-size:1rem; }
.material-item-success { color:var(--success); background:var(--success-bg); font-size:1rem; }
.material-item-complete { color:var(--danger-hover); background:var(--error-bg); font-size:1rem; font-weight:700; }
.status-circle { color:var(--primary-hover); background:var(--soft-blue); text-align:center; font-weight:700; }
.status-cross { color:var(--danger-hover); background:var(--error-bg); text-align:center; font-weight:700; }
.status-unknown { color:var(--warning); background:var(--warning-bg); text-align:center; font-weight:700; }
.badge-uploading { color:var(--primary-hover); background:var(--soft-blue); }
.toggle.ok { color:var(--success); background:var(--success-bg); border-color:var(--success); }
.toggle.ng { color:var(--danger-hover); background:var(--error-bg); border-color:var(--danger); }
.toggle.ok:hover:enabled { color:var(--success); background:var(--success-bg); }
.toggle.ng:hover:enabled { color:var(--danger-hover); background:var(--error-bg); }
.annual-table { min-width:100%; }
.annual-table th,.annual-table td { white-space:nowrap; text-align:center; }
.annual-table .day-name { display:block; white-space:normal; min-width:8em; max-width:12em; font-size:1rem; }
.annual-table a { display:inline-flex; align-items:center; min-height:48px; padding:8px; }
.annual-table.exporting { width:max-content; }
.preview-frame { width:100%; height:70vh; min-height:400px; border:1px solid var(--border); background:var(--surface); }
.preview-image { max-width:100%; max-height:75vh; display:block; margin:16px auto; object-fit:contain; }
.confirmation { width:min(620px,calc(100vw - 32px)); max-height:calc(100vh - 32px); max-height:calc(100dvh - 32px); overflow:auto; padding:24px; color:var(--ink); background:var(--surface); border:2px solid var(--border); border-radius:12px; }
.confirmation::backdrop { background:rgb(15 23 42 / 65%); }
.confirmation-detail { white-space:pre-wrap; overflow-wrap:break-word; overflow-wrap:anywhere; }
.confirmation-backdrop { position:fixed; inset:0; z-index:999; background:rgba(15,23,42,.65); }
.confirmation-fallback { display:block; position:fixed; top:16px; right:16px; left:16px; bottom:auto; margin:0 auto; z-index:1000; }
.export-stage { position:absolute; left:-100000px; top:0; width:max-content; max-width:none; background:var(--surface); }
.export-stage-capture { left:0; }
.export-table { width:800px; min-width:800px; max-width:none; }
.export-table th,.export-table td { overflow-wrap:break-word; overflow-wrap:anywhere; }
@media(max-width:600px) {
  .choice-grid,.choice-grid.two,.form-grid,.form-row { grid-template-columns:minmax(0,1fr); }
  .schedule-wide-hint { display:none; }
  .schedule-mobile-hint { display:inline; }
  .schedule-table { min-width:0; }
  /* Keep column headings available to assistive technology in the stacked table. */
  .schedule-table thead { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); clip-path:inset(50%); white-space:nowrap; }
  .schedule-table tbody,.schedule-table tbody tr,.schedule-table tbody td { display:block; width:100%; min-width:0; }
  .schedule-table tbody tr { padding:12px; border-bottom:1px solid var(--border); }
  .schedule-table tbody tr:last-child { border-bottom:0; }
  .schedule-table tbody td { padding:4px 0; border:0; }
  .schedule-table .schedule-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:8px; }
  .schedule-table .schedule-actions .danger { grid-column:1 / -1; }
  .schedule-table .schedule-actions button { min-width:0; min-height:48px; }
  .card,.meeting-recovery { padding:16px; }
  .primary-action { width:100%; }
  .actions { align-items:stretch; }
  .form-row { gap:6px; }
  .confirmation { padding:16px; }
  .confirmation .actions { display:grid; grid-template-columns:minmax(0,1fr); }
}
/* Phones: fit all four attendance columns (会議・懇親会 included) without horizontal scrolling.
   The PNG export table (.export-table) keeps its 800px layout. */
@media(max-width:600px) {
  .attendance-table:not(.export-table) { min-width:0; font-size:.9375rem; }
  .attendance-table:not(.export-table) caption { padding:12px; font-size:1.05rem; }
  .attendance-table:not(.export-table) th,.attendance-table:not(.export-table) td { padding:8px 6px; }
  .attendance-table:not(.export-table) thead th:nth-child(n+3),
  .attendance-table:not(.export-table) tbody td:nth-child(n+3),
  .attendance-table:not(.export-table) tfoot td:not([colspan]) { width:4.25rem; text-align:center; white-space:nowrap; }
  .attendance-table:not(.export-table) .status-circle,.attendance-table:not(.export-table) .status-cross { font-size:1.125rem; }
}
/* Phones and tablets: keep each member's name visible while the annual table scrolls sideways.
   Sticky cells lose collapsed borders, so the column edge is drawn with a shadow. */
@media(max-width:768px) {
  .annual-table:not(.exporting) tbody th[scope="row"],
  .annual-table:not(.exporting) thead tr:first-child th:nth-child(2) { position:sticky; left:0; z-index:1; background:var(--neutral); box-shadow:inset -2px 0 0 var(--border); }
  .annual-table:not(.exporting) thead tr:first-child th:nth-child(2) { z-index:2; }
}
@media(prefers-reduced-motion:reduce) { * { scroll-behavior:auto !important; } }

/* Googleログイン & 認証状態UI */
.btn-google {
  display:inline-flex; align-items:center; justify-content:center; gap:12px;
  width:100%; min-height:48px; padding:10px 16px;
  border:1px solid var(--border); border-radius:8px;
  background:var(--surface); color:var(--ink);
  font:inherit; font-weight:600; cursor:pointer; text-decoration:none;
}
@media(hover:hover) { .btn-google:hover:enabled { background:var(--soft-blue); border-color:var(--primary); } }
.google-icon { flex-shrink:0; width:20px; height:20px; }
.auth-state-card {
  background:var(--soft-blue); border:1px solid var(--border);
  border-radius:10px; padding:16px; margin:16px 0;
}
.user-profile-header { display:flex; align-items:center; gap:16px; margin-bottom:12px; }
.user-avatar, .user-avatar-fallback {
  width:56px; height:56px; border-radius:50%; flex-shrink:0;
}
.user-avatar { object-fit:cover; border:1px solid var(--border); background:var(--surface); }
.user-avatar-fallback {
  display:flex; align-items:center; justify-content:center;
  background:var(--neutral); color:var(--ink); font-size:1.5rem; font-weight:700;
  border:1px solid var(--border);
}
.user-profile-meta { min-width:0; flex:1; }
.user-display-name { font-weight:700; font-size:1.15rem; margin:0 0 4px; }
.user-email { font-size:0.95rem; margin:0; word-break:break-all; }

/* Materials library: clean compact accordion, touch targets and long filenames. */
.archive-filters { padding: 12px 16px; margin-bottom: 10px; }
.archive-filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.archive-filter-bar .filter-group { display: flex; align-items: center; gap: 8px; }
.archive-filter-bar .filter-label { font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.archive-filter-bar .inline-nav { display: inline-flex; align-items: center; gap: 4px; }
.archive-filter-bar .inline-nav button.secondary { min-height: 48px; min-width: 48px; padding: 4px 8px; font-weight: bold; }
.archive-filter-bar .inline-nav select, .archive-filter-bar .filter-group select { min-height: 48px; padding: 4px 8px; }
.archive-filter-bar .filter-materials-only { margin-left: auto; }
.check-inline { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; cursor: pointer; font-size: 0.95rem; font-weight: 600; }
.check-inline input[type="checkbox"] { width: 18px; height: 18px; margin: 0; }

#archive-status:not([data-state="error"]):not([data-state="warning"]) {
  background: transparent;
  border: none;
  padding: 4px 8px;
  margin: 2px 0 8px;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}

#archive-meetings { display: flex; flex-direction: column; gap: 6px; }
.archive-meeting.card {
  margin: 0;
  padding: 0;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.archive-meeting.card.is-open {
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.archive-meeting h2 { margin: 0; font-size: 1rem; font-weight: normal; }
button.archive-meeting-toggle {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
  transition: background 0.15s ease;
}
@media (hover: hover) {
  button.archive-meeting-toggle:hover:not(:disabled) {
    background: var(--soft-blue);
  }
}
/* The card's overflow:hidden would clip an outline drawn outside this full-width button. */
button.archive-meeting-toggle:focus { outline-offset: -3px; }
button.archive-meeting-toggle.is-open {
  background: var(--soft-blue);
  font-weight: 700;
  color: var(--primary);
}
.meeting-title-text { flex: 1 1 auto; margin-right: 12px; }
.badge { display: inline-flex; align-items: center; justify-content: center; padding: 4px 10px; border-radius: 9999px; font-size: 0.85rem; font-weight: 700; line-height: 1.2; white-space: nowrap; flex: 0 0 auto; }
.badge-has-material { background: #dbeafe; color: #1d4ed8; border: 1px solid #93c5fd; font-weight: 700; }
.badge-no-material { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; font-weight: 500; }
.archive-meeting.has-materials .meeting-title-text { font-weight: 700; color: var(--ink); }
.archive-meeting.no-materials .meeting-title-text { color: #475569; }
.archive-panel { padding: 12px 14px 14px; border-top: 1px solid var(--border); background: #fafbfc; }
.archive-meeting.card.is-open .archive-panel { border-top-color: rgba(30, 64, 175, 0.15); }
.archive-panel > .notice { margin: 0; }
/* Library management mode: the state stays visible while a long meeting list scrolls. */
.library-manage-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0 0 8px; padding: 8px 12px; border: 2px solid var(--warning); border-radius: 8px; color: var(--warning); background: var(--warning-bg); }
.library-manage-text { flex: 1 1 12rem; min-width: 0; margin: 0; overflow-wrap: anywhere; }
.library-manage-text strong { margin-right: 8px; }
.library-manage-exit { flex: 0 0 auto; }
/* On a phone the bar must not eat the screen: the status notice already said what the mode does. */
@media (max-width: 600px) { .library-manage-bar { flex-wrap: nowrap; } .library-manage-text { flex-basis: 0; } .library-manage-text span { display: none; } .library-manage-text span.is-important { display: block; font-size: .875rem; } }
#archive-meetings.is-managing .archive-meeting.card.is-open { border-color: var(--warning); box-shadow: inset 4px 0 0 var(--warning), 0 2px 6px rgba(0, 0, 0, 0.06); }
.library-manage-entry:empty { display: none; }
.library-manage-entry { margin: 0 0 12px; }
.materials-notice { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; overflow-wrap: anywhere; }
.materials-notice > * { margin: 0; }
.materials-manager.is-compact .editor-context { margin-top: 0; font-size: 1rem; scroll-margin-top: 96px; }
.materials-manager.is-compact .material-drop-zone { margin: 12px 0; padding: 12px; }
.materials-table { width: 100%; min-width: 0; table-layout: fixed; }
.materials-table td { overflow-wrap: break-word; overflow-wrap: anywhere; }
.material-open, .btn-download, .btn-delete, .btn-share, .btn-batch-download, .annual-material-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .5rem; margin: .2rem; }
.materials-toolbar { display: flex; flex-direction: column; align-items: flex-end; margin-bottom: .75rem; }
.btn-batch-download { font-weight: 600; }
.batch-status-region { margin-top: 4px; font-size: .875rem; color: var(--muted); }
.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; }
.annual-material-link { display: block; font-size: .875rem; }
.materials-management { margin-block: .75rem; }
.material-jobs { overflow-wrap: break-word; overflow-wrap: anywhere; }
.confirmation-details { display: grid; grid-template-columns: 6rem minmax(0,1fr); gap: .5rem; }
.confirmation-details dt { font-weight: bold; }
.confirmation-details dd { margin: 0; overflow-wrap: break-word; overflow-wrap: anywhere; white-space: pre-wrap; }
.confirmation-ack { display: flex; align-items: center; gap: .5rem; min-height:48px; padding: .75rem 0; cursor:pointer; }
.confirmation-ack input { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; }
@media (max-width: 600px) {
  .materials-toolbar { width: 100%; }
  .materials-toolbar .btn-batch-download { width: 100%; }
  .materials-table, .materials-table tbody, .materials-table tr, .materials-table td { display: block; width: auto; }
  .materials-table thead { display: none; }
  .materials-table tr { border-bottom: 1px solid var(--border, #ccc); padding-block: .75rem; }
  .materials-table td { border: 0; padding: .25rem 0; }
  .materials-table td:last-child { width: auto; display: flex; flex-wrap: wrap; gap: .25rem; }
  .confirmation-details { grid-template-columns: 1fr; }
  .confirmation-details dd { margin-bottom: .5rem; }
}

/* Final UI: stable actions, explicit states and contained mobile tables. */
.touch-link { display:inline-flex; align-items:center; min-height:48px; padding:8px 0; }
.admin-controls { border-top:4px solid var(--border); background:#f8fafc; }
.section-label { margin:0 0 8px; color:var(--muted); font-size:1rem; font-weight:700; }
.cooldown-hint { margin:8px 0; color:var(--warning); background:var(--warning-bg); border-left:4px solid var(--warning); padding:10px 12px; font-variant-numeric:tabular-nums; }
.save-indicator { border-left-width:5px; }
.form-footer { margin-top:24px; }
.summary-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:12px 0 20px; }
.summary-item { margin:0; padding:12px; border:1px solid var(--border); border-radius:8px; background:var(--surface); min-width:0; }
.summary-item strong { display:block; font-size:1.6rem; line-height:1.4; }
.summary-item.attending { color:var(--success); background:var(--success-bg); }
.summary-item.absent { color:var(--danger-hover); background:var(--error-bg); }
.summary-item.unanswered { color:var(--warning); background:var(--warning-bg); }
.filter-options { display:flex; flex-wrap:wrap; gap:8px; }
.filter-options .choice { position:relative; min-height:48px; flex:1 1 150px; padding:8px; gap:0; justify-content:center; }
.filter-options input { position:absolute; width:1px; height:1px; clip-path:inset(50%); }
.filter-options input:checked + span::before { content:"✓ "; }
.scroll-hint { color:var(--muted); font-size:1rem; margin:12px 0 4px; }
.table-scroll,.table-wrap { border-radius:8px; overscroll-behavior-x:contain; }
.table-scroll:focus-visible,.table-wrap:focus-visible { outline:3px solid #b45309; outline-offset:3px; }
.material-type { display:inline-block; border:1px solid var(--border); border-radius:4px; padding:2px 6px; margin:0 8px 4px 0; color:var(--primary-hover); background:var(--soft-blue); font-size:.875rem; font-weight:700; }
.material-meta { display:block; color:var(--muted); font-size:1rem; margin:6px 0; overflow-wrap:break-word; overflow-wrap:anywhere; }

/* Shared management panel: stable target, one upload queue, one inline preview. */
.materials-manager,.manager-content,.manager-content > section,.manager-viewer,.material-preview-panel { min-width:0; }
.materials-manager .editor-context { font-size:1.1rem; }
.material-drop-zone { border:2px dashed var(--border); border-radius:10px; padding:16px; margin:16px 0; background:var(--surface); }
.material-drop-zone.is-dragging { border-color:var(--primary); background:var(--soft-blue); }
.material-drop-zone h4 { margin-top:0; }
.material-queue { list-style:none; padding:0; margin:16px 0 0; display:grid; gap:12px; }
.material-queue-item { min-width:0; padding:12px; border:1px solid var(--border); border-radius:8px; overflow-wrap:break-word; overflow-wrap:anywhere; }
.material-queue-item button { display:block; margin-top:8px; }
.manager-content { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; }
.material-preview-panel { border:1px solid var(--border); border-radius:10px; padding:16px; margin-top:16px; background:var(--surface); overflow-wrap:break-word; overflow-wrap:anywhere; }
.material-preview-panel .preview-frame { min-height:280px; height:60vh; }
.material-preview-panel h3 { margin-top:0; }
.meeting-navigation { margin:20px 0; padding:0; }
.meeting-navigation legend { font-size:1rem; margin-bottom:8px; }
.meeting-picker,.meeting-navigation-selection { min-width:0; }
.meeting-navigation-bar { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:8px; }
/* Contain WebKit's invisible option overflow while leaving 6px for the focus outline. */
.meeting-navigation-selection { display:grid; grid-template-columns:7rem minmax(0,1fr); gap:8px; overflow:hidden; padding:6px; margin:-6px; }
.meeting-navigation-bar button,.meeting-navigation-bar select { font-size:1rem; min-height:48px; padding:8px; }
.meeting-other-year { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:8px; }
.meeting-other-year input { width:7rem; }
.meeting-nav-status { margin:8px 0 0; }
.meeting-nav-status[data-state="error"] { color:var(--danger-hover); }
@media(max-width:600px) {
  .meeting-navigation-bar { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .meeting-navigation-selection { grid-column:1 / -1; grid-row:1; }
  .meeting-navigation-selection { grid-template-columns:minmax(0,45%) minmax(0,1fr); }
}
@media(min-width:1100px) {
  .wide .manager-content.has-preview { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .wide .material-preview-panel { margin-top:0; }
}
/* table-layout:fixed takes column widths from the first row, so the header cells set the
   ratio (name 48% / size 17% / actions 35%). Body cells carry no width of their own. */
.materials-table th:first-child { width:48%; }
.materials-table th:nth-child(2) { width:17%; }
.materials-table th:last-child { width:35%; }
.materials-viewer-wrap { border-radius:8px; }
.materials-management,.material-jobs { margin:12px; }
.materials-loading { min-height:64px; }
progress { display:block; width:100%; min-width:0; height:16px; margin:8px 0; accent-color:var(--primary); }
.upload-progress-text { display:block; font-size:1rem; color:var(--primary-hover); }
.editor-context { padding:12px; margin:12px 0; border-left:5px solid var(--primary); background:var(--soft-blue); overflow-wrap:break-word; overflow-wrap:anywhere; }
.editor-context[data-state="new"] { border-color:var(--border); background:var(--page); }
.danger-zone-note { color:var(--danger-hover); background:var(--error-bg); padding:12px; border-left:4px solid var(--danger); }
/* 「Googleでログイン」 is the single primary action in every browser state. */
#google-login-btn:enabled,
#setup-link-btn:enabled { background:var(--primary); color:var(--surface); border-color:var(--primary); }
#google-login-btn { min-height:56px; }
@media(hover:hover) { #google-login-btn:hover:enabled,#setup-link-btn:hover:enabled { background:var(--primary-hover); border-color:var(--primary-hover); } }
.btn-google .google-icon { background:var(--surface); border-radius:50%; }
@media (max-width:600px) {
  .summary-grid { gap:6px; }
  .summary-item { padding:8px; font-size:.875rem; }
  .summary-item strong { font-size:1.4rem; }
  .filter-options .choice { flex-basis:calc(50% - 8px); font-size:1rem; }
  .materials-table tr { padding:12px; }
  .materials-table td:last-child > button,.materials-table td:last-child > a { flex:1 1 160px; margin:4px 0; }
  .materials-table td[data-label]::before { content:attr(data-label) "："; color:var(--muted); }
  .materials-viewer-wrap .material-open,.materials-viewer-wrap .btn-download { min-height:48px; }
}
.attendance-alert-banner { margin:0 0 1rem; padding:1rem; border:3px solid #a84a00; border-radius:10px; background:#fff4de; color:#713100; }
.attendance-alert-banner p { margin-top:0; font-weight:bold; }
.attendance-alert-banner a { background:#713100; color:white; }
.attendance-progress-card progress { width:100%; height:1.5rem; accent-color:#166534; }
.attendance-rank-message { padding:1rem; background:#fff4d5; color:#624300; border-left:5px solid #976a00; font-weight:bold; overflow-wrap:anywhere; }
.speed-ranking-list { list-style:none; padding:0; display:grid; gap:.75rem; }
.speed-ranking-badge { padding:1rem; border:2px solid #83651e; border-radius:10px; background:#fff7dd; color:#523e0d; font-weight:bold; overflow-wrap:anywhere; }
.speed-rank-2 { border-color:#6b7280; background:#f1f4f8; color:#334155; }
.speed-rank-3 { border-color:#98633b; background:#fff0e5; color:#71401d; }

/* 進捗と表彰を1枚にまとめ、長い氏名は省略せず折り返す。 */
.attendance-summary-card { padding:16px; }
.attendance-summary-card h2 { margin:0 0 6px; font-size:1.25rem; line-height:1.4; }
.attendance-summary-card #attendance-progress-text { margin:0 0 6px; font-size:1rem; line-height:1.5; }
.attendance-summary-card .attendance-progress-card progress { display:block; height:.75rem; }
.attendance-summary-card .speed-ranking-card { margin-top:12px; padding-top:12px; border-top:1px solid var(--neutral); }
.attendance-summary-card .speed-ranking-header { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 12px; margin-bottom:8px; }
.attendance-summary-card .speed-ranking-header h2 { margin:0; font-size:1.125rem; }
.attendance-summary-card #speed-ranking-year { margin:0; font-size:.9375rem; white-space:nowrap; }
.attendance-summary-card .speed-ranking-list { margin:0 0 8px; grid-template-columns:minmax(0,1fr); gap:4px 8px; }
.attendance-summary-card .speed-ranking-list:empty { margin:0; }
.attendance-summary-card .speed-ranking-badge {
  min-width:0; padding:6px 8px; border-width:0 0 1px 3px; border-radius:0; background:transparent;
  font-size:1rem; font-weight:600; line-height:1.5; white-space:normal; overflow-wrap:anywhere;
}
.attendance-summary-card #speed-ranking-status { margin:0; color:var(--muted); font-size:.9375rem; line-height:1.5; }
@media (min-width:601px) {
  .attendance-summary-card .speed-ranking-list { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

/* ログイン画面のブラウザ案内折り畳み */
.notice.browser-help {
  max-width: 480px;
  width: 100%;
  margin: 0 auto 24px;
  box-sizing: border-box;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
}
/* Closed, it is a quiet text row; opened (or auto-opened in LINE) it keeps the notice box. */
.notice.browser-help:not([open]) { background:transparent; border-color:transparent; padding-inline:0; }
.notice.browser-help summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
  user-select: none;
  /* Keep the default disclosure marker; padding alone gives a 44px+ tap target. */
  padding: 12px 0;
}
@media (hover: hover) {
  .notice.browser-help summary:hover {
    color: var(--primary);
  }
}
.notice.browser-help[open] summary {
  margin-bottom: 12px;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.notice.browser-help p {
  margin: 8px 0;
  font-size: 0.9rem;
  line-height: 1.5;
}
.notice.browser-help input {
  margin-top: 4px;
  margin-bottom: 10px;
  /* 16px: iOS zooms into focused inputs below this size (the copy fallback focuses it). */
  font-size: 1rem;
}
.notice.browser-help button {
  width: 100%;
}

.archive-chevron { flex:0 0 auto; margin-left:8px; transition:transform .15s ease; }
.archive-meeting-toggle[aria-expanded="true"] .archive-chevron { transform:rotate(180deg); }
@media (prefers-reduced-motion:reduce) { .archive-chevron { transition:none; } }

/* Offline / online status banner (connection-status.js) */
.connection-status { position:fixed; left:12px; right:12px; bottom:12px; z-index:1000; max-width:880px; margin:0 auto; padding:12px 16px; border-radius:10px; border:2px solid var(--border); background:var(--surface); color:var(--ink); font-size:1rem; line-height:1.5; box-shadow:0 2px 10px rgb(0 0 0 / 20%); }
.connection-status[hidden] { display:none; }
.connection-status[data-state="offline"] { border-color:#9f1239; }
@media (forced-colors:active) { .connection-status { border:2px solid CanvasText; } }

/* Application footer & credits */
.app-footer { margin-top:32px; padding:16px 0 8px; text-align:center; }
.app-footer-credit { display:inline-flex; align-items:center; justify-content:center; gap:6px; flex-wrap:wrap; margin:0; color:var(--muted); font-size:0.8125rem; line-height:1.5; }
.app-footer-logo { display:inline-block; vertical-align:middle; width:25px; height:14px; background:url('./office138-icon.png') no-repeat center / contain; opacity:0.55; }
@media print {
  .app-footer { margin-top:16px; padding:8px 0; }
}

