:root{color:#111827;background:#fff;font-family:Inter,PingFang SC,Microsoft YaHei,system-ui,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}html,body,#root{width:100%;min-height:100%;margin:0}body{background:#fff}button,input,textarea{font:inherit}button{border:0}a{color:inherit}.account-link{text-decoration:none}.auth-frame--single{grid-template-columns:minmax(320px,460px);justify-content:center}.narrow-form{max-width:620px}.app-shell{min-height:100vh}.app-shell--loading{display:grid;place-items:center}.loading-state{display:inline-flex;align-items:center;gap:12px;color:#6b7280;letter-spacing:0}.spinner{animation:spin 1s linear infinite}.auth-shell{min-height:100vh;padding:24px;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:16px;place-items:center;background:#fff;overflow:hidden}.auth-frame{width:min(1160px,100%);height:min(760px,calc(100vh - 96px));display:grid;grid-template-columns:minmax(300px,.92fr) minmax(320px,420px);gap:36px;align-items:center}.auth-visual{display:flex;justify-content:center;align-items:center;width:100%;height:100%;background:#fff;overflow:hidden;border:1px solid #e5e7eb;box-shadow:0 18px 48px #0f172a14}.hero-image{display:block;width:100%;height:100%;object-fit:contain;object-position:center center;background:#fff}.auth-panel{align-self:center;padding:36px;border:1px solid #e5e7eb;background:#fffffff0;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 18px 48px #0f172a14}.brand-lockup{margin-bottom:28px}.brand-kicker{display:inline-block;margin-bottom:14px;color:#2563eb;font-size:12px;letter-spacing:.12em;text-transform:uppercase}.brand-lockup h1{margin:0;font-size:44px;line-height:1.05;letter-spacing:0}.brand-lockup p{margin:14px 0 0;color:#6b7280;line-height:1.6}.login-form{display:grid;gap:18px}.field{display:grid;gap:8px}.field span{font-size:14px;color:#374151}.field input{width:100%;height:52px;padding:0 16px;border:1px solid #d1d5db;background:#fafafa;color:#111827;outline:none}.field input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}.field textarea{width:100%;min-height:96px;padding:14px 16px;border:1px solid #d1d5db;background:#fafafa;color:#111827;outline:none;resize:vertical;line-height:1.6}.field textarea:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}.error-text{margin:-2px 0 0;color:#ff8d8d;font-size:14px}.primary-button,.ghost-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:50px;padding:0 18px;cursor:pointer;transition:transform .16s ease,background-color .16s ease,opacity .16s ease}.primary-button{margin-top:6px;background:#111827;color:#fff;font-weight:600}.primary-button:hover,.ghost-button:hover{transform:translateY(-1px)}.primary-button:disabled,.ghost-button:disabled{opacity:.7;cursor:not-allowed;transform:none}.auth-meta{margin-top:24px;display:flex;flex-wrap:wrap;gap:12px 18px;color:#6b7280;font-size:13px}.site-footer{width:100%;margin-top:auto;padding-top:24px;color:#6b7280;font-size:12px;line-height:1.5;text-align:center}.site-footer a{text-decoration:none}.site-footer a:hover,.site-footer a:focus-visible{color:#4b5563;text-decoration:underline}.records-shell{min-height:100vh;padding:32px;display:flex;flex-direction:column;background:#fff;font-size:14px}.records-topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:28px}.records-title{font-size:24px;font-weight:700}.records-subtitle{margin-top:6px;color:#6b7280;font-size:13px}.records-user{display:inline-flex;align-items:center;gap:12px}.user-chip{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 42px;overflow:hidden;padding:0 4px;border:1px solid #d1d5db;border-radius:50%;background:#fff;color:#374151;font-size:12px;font-weight:600;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.user-chip:focus-visible{outline:2px solid #2563eb;outline-offset:3px}.account-menu{position:relative;padding-bottom:8px;margin-bottom:-8px}.account-menu__panel{position:absolute;z-index:20;top:calc(100% + 4px);right:0;display:none;width:max-content;min-width:180px;overflow:hidden;border:1px solid #e5e7eb;background:#fff;box-shadow:0 14px 36px #0f172a24}.account-menu:hover .account-menu__panel,.account-menu:focus-within .account-menu__panel,.account-menu--open .account-menu__panel{display:block}.account-menu__username{max-width:280px;padding:13px 16px;overflow-wrap:anywhere;border-bottom:1px solid #eef2f7;color:#111827;font-weight:700;line-height:1.4;white-space:normal}.account-menu__item{width:100%;height:42px;display:flex;align-items:center;gap:10px;padding:0 16px;background:#fff;color:#374151;text-decoration:none;cursor:pointer}.account-menu__item:hover,.account-menu__item:focus-visible{background:#f9fafb;outline:none}.account-menu__item--danger{color:#b91c1c}.account-menu__item:disabled{opacity:.65;cursor:not-allowed}.ghost-button{border:1px solid #d1d5db;background:#fff;color:#111827}.text-button{display:inline-flex;align-items:center;gap:8px;margin:0 0 14px;padding:0;background:transparent;color:#4b5563;cursor:pointer}.text-button:hover{color:#111827}.records-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.records-add-button{margin-top:0;min-width:150px}.records-error{display:flex;align-items:center;gap:10px;margin-bottom:16px;padding:12px 14px;border:1px solid #fecaca;background:#fff1f2;color:#b91c1c;font-size:14px}.records-success{margin-bottom:16px;padding:12px 14px;border:1px solid #bbf7d0;background:#f0fdf4;color:#15803d;font-size:14px}.records-panel{min-height:62vh;border:1px solid #e5e7eb;background:#fff;box-shadow:0 18px 48px #0f172a0f}.records-state{min-height:62vh;display:grid;place-items:center;gap:16px;color:#6b7280;text-align:center}.records-state p{margin:0}.records-table-wrap{width:100%;overflow-x:auto}.records-table{width:100%;border-collapse:collapse;font-size:14px}.records-table th,.records-table td{height:56px;padding:0 18px;border-bottom:1px solid #eef2f7;text-align:left;white-space:nowrap}.records-table th{background:#f9fafb;color:#6b7280;font-weight:600}.records-table td{color:#111827}.records-table tbody tr:hover{background:#f9fafb}.clickable-row{cursor:pointer}.clickable-row:focus-visible{outline:2px solid #2563eb;outline-offset:-2px}.table-danger-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:74px;height:34px;padding:0 12px;border:1px solid #fecaca;background:#fff;color:#b91c1c;cursor:pointer}.table-danger-button:hover{background:#fff1f2}.table-danger-button:disabled{opacity:.7;cursor:not-allowed}.record-form{display:grid;gap:18px}.form-section{border:1px solid #e5e7eb;background:#fff;padding:22px;box-shadow:0 18px 48px #0f172a0a}.form-section-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.form-section-title{margin-bottom:18px;font-size:16px;font-weight:700}.form-section-header .form-section-title{margin-bottom:0}.form-grid{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(220px,1fr) minmax(220px,1fr);gap:18px}.question-list{display:grid;gap:16px}.question-item{display:grid;gap:16px;padding:18px;border:1px solid #eef2f7;background:#fbfdff}.question-item-header{display:flex;align-items:center;justify-content:space-between;gap:16px;color:#111827;font-weight:700}.form-actions{position:sticky;bottom:0;display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:16px 0 0;background:linear-gradient(to bottom,#fff0,#fff 30%)}.form-actions .primary-button{margin-top:0}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(max-width:980px){.auth-shell{grid-template-rows:auto auto;overflow:visible}.auth-frame{grid-template-columns:1fr;height:auto}.auth-visual{height:min(520px,60vh)}}@media(max-width:720px){.auth-shell,.records-shell{padding:16px}.auth-panel{padding:24px}.brand-lockup h1{font-size:32px}.records-topbar{flex-direction:column}.records-toolbar,.form-section-header{align-items:stretch;flex-direction:column}.form-grid{grid-template-columns:1fr}.records-user{align-self:flex-end}.records-table th,.records-table td{padding:0 12px}}
