:root { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif; color:#203942; background:#f5f8f8; font-synthesis:none; -webkit-font-smoothing:antialiased; }
* {box-sizing:border-box}
html {scroll-behavior:smooth}
body {margin:0;min-height:100vh;background:radial-gradient(ellipse at 8% 0%,#e9f4f0 0%,transparent 30%),radial-gradient(ellipse at 95% 15%,#e8f1f3 0%,transparent 29%),#f7f9fa}
button,input,select {font:inherit}
button {cursor:pointer}
button:disabled {opacity:.5;cursor:default}
[hidden] {display:none!important}
.shell {width:min(1150px,calc(100% - 40px));margin:0 auto}
.topbar {height:88px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand {display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none}
.brand-icon {display:block;width:40px;height:40px}
.brand-copy {display:flex;flex-direction:column;gap:3px}
.brand-copy strong {font-size:16px;line-height:1.1;letter-spacing:-.035em}
.brand-copy small {font-size:9px;letter-spacing:.11em;color:#759096;font-weight:800}
.topbar-right {display:flex;align-items:center;gap:7px;color:#53766e;font-size:11px;font-weight:750;white-space:nowrap}
.topbar-divider {color:#c8d9d7;margin:0 2px}
.status-dot {display:inline-block;background:#39ba83;width:7px;height:7px;border-radius:50%;box-shadow:0 0 0 3px #39ba8320;flex:none}
.hero {position:relative;display:flex;align-items:center;justify-content:space-between;gap:34px;background:#153e44;border-radius:25px;padding:40px 42px 38px;overflow:hidden;color:white;box-shadow:0 17px 46px #1b484a18}
.hero:after {content:"";position:absolute;top:-140px;right:11%;width:420px;height:420px;border:1px solid #ffffff15;border-radius:50%;box-shadow:0 0 0 66px #ffffff05,0 0 0 132px #ffffff04;pointer-events:none}
.hero-copy {position:relative;z-index:1;min-width:0}
.hero-tag {font-size:11px;letter-spacing:.035em;font-weight:750;color:#b2e2d6}
.sparkle {color:#7cf0cb;font-size:15px;margin-right:3px}
.hero h1 {font-size:clamp(24px,3.05vw,36px);font-weight:850;letter-spacing:-.06em;line-height:1.45;margin:14px 0}
.hero h1 span {color:#9ee6c8}
.hero p {font-size:13px;line-height:1.85;color:#d1e2e1;margin:0}
.hero p b {color:white}
.hero-chips {display:flex;gap:7px;flex-wrap:wrap;margin-top:20px}
.hero-chips span {font-size:10px;color:#d2f1e6;background:#ffffff12;border:1px solid #ffffff22;padding:7px 10px;border-radius:100px;font-weight:750}
.hero-mini {position:relative;z-index:1;background:#ffffff;border:1px solid #d8efea;color:#27454d;border-radius:15px;min-width:365px;width:365px;padding:14px;box-shadow:0 18px 38px #092c3142;transform:rotate(1deg)}
.hero-mini-label {display:flex;justify-content:space-between;color:#718a91;font-size:9px;letter-spacing:.08em;font-weight:900;margin-bottom:13px}
.hero-mini-label span {color:#a2bdba;letter-spacing:.08em}
.mini-head,.mini-data {display:grid;grid-template-columns:1fr 1.25fr .85fr;gap:9px;align-items:center}
.mini-head {padding:9px 8px;border-radius:6px 6px 0 0;background:#ecf6f2;color:#557d77;font-size:10px;font-weight:900}
.mini-data {border-bottom:1px solid #edf2f1;padding:10px 8px;font-size:10px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;white-space:nowrap}
.mini-data strong {font-size:11px;text-align:right}
.mini-head span:last-child {text-align:right}
.mini-foot {font-weight:750;text-align:right;color:#2e8567;font-size:10px;padding:14px 4px 2px}
.mini-foot span {color:#27bd8b}
.panel {background:#fff;border:1px solid #e3ebec;border-radius:21px;margin-top:20px;padding:28px 30px;box-shadow:0 8px 35px #294c5809}
.panel-head {display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px}
.section-title {display:flex;align-items:center;gap:12px}
.number {width:37px;height:37px;display:grid;place-items:center;flex:none;border-radius:11px;color:#287e6b;background:#e8f6f1;font-size:12px;font-weight:900}
.section-title h2 {font-size:19px;letter-spacing:-.035em;margin:0 0 3px}
.section-title p {font-size:11px;color:#84979b;margin:0}
.section-meta {font-size:11px;color:#8a9fa3;font-weight:750}
.drop-zone {display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px dashed #c6ddd6;border-radius:15px;background:#fbfdfc;padding:26px;min-height:244px;text-align:center;transition:background .2s,border-color .2s;outline-offset:3px}
.drop-zone:hover,.drop-zone.dragging {background:#eefbf6;border-color:#6bb89b}
.drop-zone:focus-visible {outline:3px solid #69bea6}
.upload-icon {display:grid;place-items:center;width:58px;height:58px;background:#e8f5ef;border-radius:17px;margin-bottom:10px}
.drop-title {margin:0;font-size:15px;font-weight:850;letter-spacing:-.03em}
.drop-sub {font-size:12px;color:#80959a;margin:7px 0 16px}
.drop-note {font-size:10px;color:#90a1a5;margin-top:14px}
.btn {display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:11px 17px;min-height:42px;border-radius:10px;font-size:12px;font-weight:800;border:1px solid transparent;white-space:nowrap;transition:background .15s,transform .15s,box-shadow .15s}
.btn:focus-visible {outline:3px solid #6fbaa7;outline-offset:2px}
.btn-main {background:#1f7162;color:#fff;border-color:#1f7162;box-shadow:0 5px 12px #1f71621b}
.btn-main:hover:not(:disabled) {background:#155b4e;transform:translateY(-1px)}
.btn-outline {background:#eff8f5;color:#256b60;border-color:#c5e2d7}
.btn-outline:hover {background:#e0f1ea}
.btn-ghost {background:#fff;color:#6f878e}
.btn-ghost:hover {background:#f4f7f7}
.file-list {display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}
.file-item {background:#eef6f4;border:1px solid #dbeae5;padding:8px 10px;color:#3e6e6b;border-radius:8px;font-size:11px;max-width:100%;overflow-wrap:anywhere}
.status {margin-top:12px;padding:12px 14px;border-radius:9px;font-size:12px;background:#f0f5fa;color:#41667c;line-height:1.7}
.status.success {background:#eaf8f1;color:#286d52}
.status.error {background:#fff2f0;color:#a6433e}
.privacy-note {display:flex;align-items:center;gap:7px;color:#7f969a;margin-top:15px;font-size:10px;line-height:1.6}
.privacy-note strong {color:#63877f}
.privacy-symbol {font-size:19px;color:#4c9b87;line-height:1}
/* Once records are available, reduce the upload form height: results are the primary task. */
.has-results .upload-panel {padding-top:18px;padding-bottom:17px}
.has-results .upload-panel .panel-head {margin-bottom:12px}
.has-results .upload-panel .drop-zone {min-height:92px;padding:13px 20px;display:flex;flex-direction:row;gap:14px;flex-wrap:wrap}
.has-results .drop-zone .upload-icon,.has-results .drop-zone .drop-sub,.has-results .drop-zone .drop-note {display:none}
.has-results .drop-zone .drop-title {font-size:12px;color:#54746f}
.has-results .upload-panel .privacy-note {display:none}
.has-results .upload-panel .btn {min-height:38px}
.results-panel {scroll-margin-top:20px}
.ready-pill {display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:40px;color:#2b7a5a;background:#e7f7ed;font-weight:800;font-size:11px}
.summary-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:25px}
.summary {border:1px solid #e6edee;border-radius:12px;background:#f9fbfb;min-height:105px;padding:18px 19px}
.summary-main {background:linear-gradient(120deg,#e8f8ef,#f2fbf7);border-color:#cde9dc}
.summary-label {display:block;color:#708b92;font-size:11px;font-weight:750}
.summary-value {display:flex;align-items:baseline;gap:5px;margin-top:8px}
.summary-value strong {font-family:ui-sans-serif,system-ui,sans-serif;font-size:30px;font-weight:850;letter-spacing:-.04em;color:#21474a;font-variant-numeric:tabular-nums}
.summary-main .summary-value strong {color:#1a8060}
.summary-value span {color:#739094;font-size:11px;font-weight:750}
.warning {background:#fff8e8;color:#926512;padding:12px 14px;border-radius:10px;border:1px solid #f5e4b7;margin-bottom:19px;font-size:12px;line-height:1.7}
.table-topline {display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:15px}
.table-topline h3 {font-size:15px;letter-spacing:-.02em;margin:0 0 5px}
.table-topline p {color:#84999e;font-size:11px;margin:0}
.results-toolbar {display:flex;gap:12px;margin-bottom:16px}
.field-wrap {flex:1;display:flex;flex-direction:column;gap:7px;min-width:0}
.field-wrap label {font-size:11px;font-weight:800;color:#557077}
.field-wrap select,.field-wrap input {border:1px solid #d5e1e2;border-radius:9px;background:#fff;color:#2a4651;min-height:43px;padding:0 12px;width:100%;font-size:12px}
.field-wrap select:focus,.field-wrap input:focus {outline:2px solid #70c1a9;border-color:#4daa92}
.search-wrap {flex:1.08}
.table-wrap {max-height:470px;overflow:auto;border:1px solid #e3eaeb;border-radius:12px}
table {border-collapse:separate;border-spacing:0;min-width:790px;width:100%;font-size:12px}
thead {position:sticky;top:0;z-index:2}
th {text-align:left;background:#eaf4f1;color:#3a6b67;font-size:11px;padding:13px 14px;white-space:nowrap;font-weight:850;border-bottom:1px solid #d6e8e2}
td {padding:11px 14px;border-bottom:1px solid #edf1f2;white-space:nowrap;color:#2e4a54}
tbody tr:last-child td {border-bottom:0}
tbody tr:nth-child(even) {background:#fcfdfd}
tbody tr:hover {background:#f2faf7}
td.code {font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;font-weight:750}
td.price {font-weight:850;font-variant-numeric:tabular-nums}
td.name {max-width:375px;overflow:hidden;text-overflow:ellipsis}
td.origin {font-size:10px;color:#8299a0}
.missing {color:#b55b20!important;font-weight:850}
.empty-search {padding:30px 12px;text-align:center;color:#718e94;font-size:12px}
.bottom-bar {display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:18px}
.copy-hint {display:flex;flex-direction:column;gap:5px}
.copy-hint strong {font-size:12px}
.copy-hint span {font-size:10px;color:#879b9d}
.actions {display:flex;align-items:center;gap:7px}
.guide {padding:32px 0 8px}
.guide-head {text-align:center;margin-bottom:20px}
.guide-head h2 {font-size:19px;letter-spacing:-.04em;margin:0 0 8px}
.guide-head p {font-size:11px;color:#83999b;margin:0}
.guide-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.guide-card {position:relative;min-height:168px;background:#fff;border:1px solid #e6eded;border-radius:15px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:17px 10px;box-shadow:0 3px 13px #23475408}
.guide-num {position:absolute;top:15px;left:16px;color:#9fb5b6;font-size:10px;font-weight:900}
.guide-emoji {font-size:23px;margin-bottom:10px}
.guide-card h3 {font-size:12px;margin:0 0 7px}
.guide-card p {font-size:10px;color:#82969b;line-height:1.7;margin:0}
footer {display:flex;justify-content:space-between;gap:15px;padding:26px 0 35px;color:#91a4a9;font-size:10px}
.footer-divider {padding:0 4px}
.toast {position:fixed;z-index:10;bottom:24px;left:50%;transform:translate(-50%,25px);opacity:0;pointer-events:none;background:#183f41;color:#fff;padding:13px 19px;border-radius:10px;box-shadow:0 14px 32px #214c4b30;transition:.2s;max-width:calc(100% - 28px);text-align:center;font-size:12px;font-weight:750}
.toast.show {transform:translate(-50%,0);opacity:1}
@media (max-width:940px) {.hero-mini{min-width:310px;width:310px}.hero{gap:20px;padding:32px}.hero h1{font-size:28px}.summary{padding:15px}}
@media (max-width:760px) {
 .shell{width:calc(100% - 24px)}
 .topbar{height:69px}.brand-icon{width:35px;height:35px}.brand-icon svg{width:35px;height:35px}.brand-copy strong{font-size:14px}.brand-copy small{font-size:8px}.topbar-right{font-size:10px}.topbar-divider{display:none}
 .hero{padding:25px 22px 24px;border-radius:18px}.hero h1{font-size:27px;line-height:1.45}.hero p{font-size:11px}.hero-mini{display:none}.desktop-break{display:none}.hero-chips{gap:5px;margin-top:17px}.hero-chips span{font-size:9px;padding:6px 8px}
 .panel{padding:19px 17px;border-radius:16px;margin-top:14px}.panel-head{margin-bottom:17px}.section-title h2{font-size:16px}.section-title p{font-size:10px}.number{width:33px;height:33px}.section-meta{font-size:9px}
 .drop-zone{min-height:240px;padding:22px 12px}.drop-title{font-size:14px}.drop-sub{font-size:11px}.drop-note{font-size:9px}
 .has-results .upload-panel .drop-zone{gap:10px;padding:13px}.has-results .drop-zone .drop-title{font-size:11px}.has-results .drop-zone .btn{font-size:11px}
 .summary-grid{gap:7px;margin-bottom:18px}.summary{padding:12px 9px;min-height:85px}.summary-label{font-size:9px}.summary-value strong{font-size:24px}.summary-value span{font-size:10px}
 .ready-pill{font-size:9px;padding:6px 8px}
 .table-topline{margin-bottom:15px}.table-topline h3{font-size:13px}.table-topline p{display:none}.quick-copy{display:inline-flex;padding:9px 10px;font-size:10px;min-height:37px}.quick-copy svg{width:13px;height:13px}
 .results-toolbar{flex-direction:column;gap:12px}.field-wrap select,.field-wrap input{min-height:42px}
 .table-wrap{max-height:480px}
 table{min-width:0;width:100%;table-layout:fixed}
 th,td{padding:11px 7px}
 th{font-size:10px}td.code{font-size:10px}td.price{font-size:11px}
 th:first-child,td:first-child{width:32%}th:nth-child(2),td:nth-child(2){width:40%}th:nth-child(3),td:nth-child(3){width:28%}
 .optional-col,td.name,td.origin{display:none}
 .bottom-bar{position:static;flex-direction:column;align-items:stretch;background:#f8fbfa;border:1px solid #e2ece8;border-radius:13px;padding:12px 10px;margin:14px 0 0;gap:10px}
 .copy-hint span{font-size:9px}.actions{display:grid;grid-template-columns:1fr 1.6fr;gap:8px}.actions #clear-btn{grid-row:2;grid-column:span 2;min-height:31px}.actions #csv-btn{grid-column:1}.actions #copy-btn{grid-column:2}.actions .btn{padding:10px 8px;font-size:11px}
 .guide{padding-top:31px}.guide-head h2{font-size:16px}.guide-grid{gap:7px}.guide-card{min-height:145px;padding:13px 6px}.guide-num{top:9px;left:9px;font-size:9px}.guide-emoji{font-size:19px}.guide-card h3{font-size:10px}.guide-card p{font-size:9px}
 footer{flex-direction:column;gap:8px;padding:22px 0 30px}
}
@media (max-width:370px) {td.code{font-size:9px}th,td{padding:10px 4px}.topbar-right{font-size:9px}.hero h1{font-size:24px}.guide-card p{font-size:8px}}
@media (prefers-reduced-motion:reduce) {html{scroll-behavior:auto}.toast,.btn,.drop-zone{transition:none}}
