:root{color:#16201b;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;background:#f5f7f4;font-family:Microsoft YaHei,PingFang SC,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100dvh;margin:0;overflow-x:hidden}button,textarea{font:inherit}a{color:inherit;text-decoration:none}.app-shell{grid-template-columns:280px minmax(0,1fr);min-height:100dvh;display:grid}.sidebar{color:#f8fbf6;background:#163629;border-right:1px solid #ffffff14;flex-direction:column;gap:28px;height:100dvh;padding:32px 24px;display:flex;position:sticky;top:0}.sidebar h1{letter-spacing:0;margin:8px 0 0;font-size:28px;line-height:1.18}.eyebrow{color:#628373;letter-spacing:0;text-transform:uppercase;margin:0;font-size:12px;font-weight:700}.sidebar .eyebrow{color:#b6cabe}.nav-links{gap:10px;display:grid}.nav-links a{color:#dfece5;background:#ffffff0a;border:1px solid #ffffff1f;border-radius:8px;padding:12px 14px;display:block}.nav-links a.router-link-active{color:#10261d;background:#d7f3df}.sidebar-note{color:#dfece5;background:#ffffff14;border-radius:8px;gap:8px;margin-top:auto;padding:16px;display:grid}.sidebar-note span{color:#bfd1c7;font-size:14px;line-height:1.6}.content{width:100%;min-width:0;max-width:1560px;margin:0 auto;padding:clamp(28px,3vw,48px)}.page-header{gap:10px;margin-bottom:22px;display:grid}.page-header h2{color:#15231c;letter-spacing:0;margin:0;font-size:34px;line-height:1.18}.page-header p:last-child{color:#627369;max-width:720px;margin:0;line-height:1.75}.safety-notice,.panel,.result-panel,.detail-hero{background:#fff;border:1px solid #dce5dd;border-radius:8px}.safety-notice{color:#33443a;background:#eef8f0;align-items:center;gap:14px;margin-bottom:18px;padding:14px 16px;display:flex}.safety-notice strong{white-space:nowrap}.safety-notice span{color:#53675b;line-height:1.6}.panel,.result-panel,.detail-hero,.summary-grid dd,.long-text,.medicine-table td{overflow-wrap:anywhere}.panel{padding:22px}.field-label{color:#26382e;margin-bottom:10px;font-weight:700;display:block}.diagnosis-input{resize:vertical;color:#16201b;background:#fbfcfa;border:1px solid #cad8cf;border-radius:8px;outline:none;width:100%;min-height:220px;padding:16px;line-height:1.7;display:block}.diagnosis-input:focus{border-color:#1f7a4d;box-shadow:0 0 0 3px #1f7a4d24}.form-actions{justify-content:space-between;align-items:center;gap:14px;margin-top:16px;display:flex}.primary-button,.secondary-button,.ghost-button,.primary-link,.secondary-link{cursor:pointer;border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;min-height:40px;padding:0 16px;font-weight:700;transition:transform .14s,background-color .14s,border-color .14s;display:inline-flex}.primary-button,.primary-link{color:#fff;background:#1f7a4d}.primary-button:hover,.primary-link:hover{background:#17633e}.primary-button:disabled{cursor:not-allowed;background:#8ba99a}.secondary-button,.secondary-link{color:#174a32;background:#e9f4ed;border-color:#cfe3d5}.secondary-button:hover,.secondary-link:hover{background:#dcefe3}.ghost-button{color:#8d302b;background:#fff7f5;border-color:#f0d3cf}.primary-button:active,.secondary-button:active,.ghost-button:active,.primary-link:active,.secondary-link:active{transform:translateY(1px)}.char-count,.state-text{color:#77877e;font-size:14px}.error-message{color:#a1332d;margin:14px 0 0;font-weight:700}.loading-panel{margin-top:18px}.skeleton-line,.skeleton-grid span{background:linear-gradient(90deg,#edf2ef,#dfe8e2,#edf2ef) 0 0/220% 100%;border-radius:8px;height:16px;animation:1.2s linear infinite shimmer;display:block}.skeleton-line{width:58%;margin-bottom:14px}.skeleton-line.wide{width:86%}.skeleton-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:22px;display:grid}@keyframes shimmer{0%{background-position:0 0}to{background-position:-220% 0}}.result-panel,.detail-hero{margin-top:18px;padding:24px}.result-heading,.detail-hero{justify-content:space-between;align-items:flex-start;gap:20px;display:flex}.result-heading h3,.detail-hero h3,.panel h3,.record-item h3{color:#17241d;margin:6px 0 0;font-size:22px;line-height:1.35}.summary-grid,.basis-grid{gap:14px;margin:20px 0;display:grid}.summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.summary-grid div{background:#fbfcfa;border:1px solid #e1e9e3;border-radius:8px;padding:16px}.summary-grid dt{color:#607268;font-size:13px;font-weight:700}.summary-grid dd{color:#25372d;margin:8px 0 0;line-height:1.65}.medicine-table-wrap{border:1px solid #dce5dd;border-radius:8px;overflow:hidden}.medicine-table{border-collapse:collapse;table-layout:fixed;background:#fff;width:100%;min-width:0}.medicine-col-name{width:24%}.medicine-col-dose{width:8%}.medicine-col-usage{width:22%}.medicine-col-caution{width:38%}.medicine-table th,.medicine-table td{text-align:left;vertical-align:top;border-bottom:1px solid #e6ede8;padding:14px;line-height:1.6}.medicine-table th{color:#50665a;background:#f4f8f5;font-size:13px}.medicine-table td:first-child{min-width:0}.medicine-table td strong,.medicine-table td span{display:block}.medicine-table td span{color:#687a70;margin-top:6px;font-size:14px}.record-list{gap:12px;margin:0;padding:0;list-style:none;display:grid}.record-item{background:#fbfcfa;border:1px solid #e0e9e2;border-radius:8px;grid-template-columns:minmax(0,1fr) auto;gap:16px;padding:18px;display:grid}.record-item p{color:#53675b;margin:8px 0;line-height:1.65}.record-item small,.record-time{color:#75877c}.record-actions{align-items:center;gap:10px;display:flex}.empty-state{color:#53675b;background:#fbfcfa;border:1px dashed #cbdacf;border-radius:8px;justify-items:start;gap:10px;padding:34px;display:grid}.empty-state strong{color:#25372d;font-size:20px}.long-text{color:#33443a;white-space:pre-wrap;line-height:1.85}.basis-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:18px}.wide-panel{grid-column:1/-1}@media (width<=900px){.app-shell{grid-template-columns:1fr}.sidebar{height:auto;position:static}.content{max-width:none;padding:24px 16px}.summary-grid,.basis-grid{grid-template-columns:1fr}.result-heading,.detail-hero,.form-actions,.record-item,.record-actions,.safety-notice{flex-direction:column;align-items:stretch}.record-item{grid-template-columns:1fr;display:grid}.primary-button,.secondary-button,.ghost-button,.primary-link,.secondary-link{width:100%}}@media (width<=700px){.page-header h2{text-wrap:balance;font-size:30px}.panel,.result-panel,.detail-hero{padding:18px}.medicine-table-wrap{border:0;border-radius:0;overflow:visible}.medicine-table,.medicine-table colgroup,.medicine-table thead,.medicine-table tbody,.medicine-table tr,.medicine-table td{width:100%;display:block}.medicine-table thead,.medicine-table colgroup{display:none}.medicine-table tbody{background:0 0;gap:12px;display:grid}.medicine-table tr{background:#fff;border:1px solid #dce5dd;border-radius:8px;padding:14px}.medicine-table td{border-bottom:0;grid-template-columns:86px minmax(0,1fr);gap:10px;padding:8px 0;line-height:1.6;display:grid}.medicine-table td:before{content:attr(data-label);color:#607268;font-size:12px;font-weight:700}.medicine-table td:first-child{border-bottom:1px solid #e6ede8;margin-bottom:4px;padding-top:0;padding-bottom:12px;display:block}.medicine-table td:first-child:before{display:none}.medicine-table td strong{font-size:17px}.medicine-table td span{margin-top:6px;font-size:13px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
