
:root{font:62.5% -apple-system,BlinkMacSystemFont,sans-serif;color:#243c36;background:#f5f6f2;color-scheme:light}*{box-sizing:border-box}body{margin:0;font-size:1.5rem}header{padding:3.8rem 4.2rem 2.4rem}h1{font-size:2.9rem;font-weight:650;letter-spacing:.02em;margin:0}header p{color:#687a72;margin:.8rem 0}.grid{padding:1.2rem 4.2rem;display:grid;grid-template-columns:1fr 1fr;gap:1.8rem}button{cursor:pointer;font:inherit;border:0;border-radius:1rem;padding:1.2rem 2rem;background:#e5eae5;color:#234137}button:focus-visible,input:focus-visible,select:focus-visible{outline:.3rem solid #73a89a;outline-offset:.3rem}button:disabled{opacity:.45;cursor:not-allowed}.tile{text-align:left;min-height:15.2rem;background:white;border:1px solid #dce3dc;box-shadow:0 .4rem 1.2rem #263d3106;padding:2.5rem;transition:transform .15s}.tile:hover{transform:translateY(-2px);border-color:#9fbbb0}.tile strong{display:block;font-size:2rem;margin-bottom:1.2rem}.tile span{font-size:1.3rem;color:#64776d}.tile em{display:block;font-style:normal;font-size:1.1rem;color:#7b9385;letter-spacing:.13em;margin-bottom:1.2rem}.primary{background:#285e4e;color:white}.footer{position:fixed;bottom:0;padding:1.8rem 4.2rem;width:100%;font-size:1.2rem;color:#6b7c72;background:#f5f6f2}dialog{border:1px solid #dce4dd;border-radius:1.8rem;padding:0;width:65rem;max-height:88vh;box-shadow:0 2rem 9rem #12322530;color:inherit}dialog::backdrop{background:#203e3440;backdrop-filter:blur(.3rem)}.content{padding:2.8rem 3rem}h2{font-size:2.2rem;margin:0 0 1rem}.sub{font-size:1.3rem;color:#6c7c74;line-height:1.7}.fields{display:grid;grid-template-columns:1fr 1fr;gap:1.8rem;margin:2.2rem 0}label{font-size:1.3rem;font-weight:500;display:block}input,select{display:block;width:100%;font:inherit;color:inherit;border:1px solid #cad6cc;border-radius:.8rem;padding:1.1rem;background:#fff;margin-top:.7rem}.full{grid-column:1/-1}.actions{display:flex;gap:1rem;justify-content:flex-end;margin-top:2.4rem;flex-wrap:wrap}.result{background:#eaf1eb;padding:1.7rem;border-radius:1rem;line-height:1.8}.result b{font-size:2.4rem}.error{color:#a23c32;font-size:1.3rem;white-space:pre-wrap;line-height:1.6;margin-top:1.2rem}.success{color:#286449;font-size:1.3rem;line-height:1.7}.warn{background:#fff4dd;padding:1.2rem;border-radius:.8rem;font-size:1.3rem;line-height:1.6}table{border-collapse:collapse;width:100%;font-size:1.2rem;margin-top:2rem}td,th{padding:1rem .6rem;text-align:left;border-bottom:1px solid #e0e6df;vertical-align:top}th{color:#677b6e;font-weight:500}td.num{text-align:right}.scroll{max-height:28rem;overflow:auto}.badge{font-size:1.1rem;background:#ecf0e9;border-radius:.5rem;padding:.4rem .6rem}#banner{margin:.4rem 4.2rem;font-size:1.3rem;color:#a23c32}.empty{padding:2.4rem 0;color:#758276;font-size:1.3rem}
.categories{padding:.4rem 4.2rem 2.4rem}.category{margin-bottom:2.8rem}.category-heading{display:flex;align-items:center;gap:1.2rem;margin-bottom:1.3rem}.category-heading h2{font-size:1.8rem;margin:0;white-space:nowrap}.category-heading::after{content:"";height:1px;background:#d5dfd6;flex:1}.category .grid{padding:0}.category .tile{min-height:13.2rem}.tile em{display:none}.footer{position:static}.categories + #banner{margin-bottom:1.2rem}@media(max-width:620px){header{padding:2.8rem 2.4rem 1.8rem}.categories{padding:.4rem 2.4rem 1.2rem}.category .grid{grid-template-columns:1fr}.footer{padding:1.8rem 2.4rem}}
.route-list{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem}.route-choice{text-align:left;background:#edf3ee;border:1px solid #cddcd1;padding:1.7rem;min-height:9rem}.route-choice strong{display:block;font-size:1.5rem;margin-bottom:.8rem}.route-choice span{font-size:1.2rem;color:#62796b}.route-choice.other{background:#fff;border-style:dashed}@media(max-width:500px){.route-list{grid-template-columns:1fr}}

/* tayla visual identity: supplied local assets, no external requests. */
:root{color:#241006;background:#eeece3;font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif}
body{min-height:100vh;background:url("page_bg.webp") center center / cover fixed no-repeat}
header,.categories,.footer,#banner{width:calc(100% - 9.6rem);max-width:136.6rem;margin-left:auto;margin-right:auto}
.brand-header{padding:4rem 0 3.6rem;display:flex;align-items:center;justify-content:space-between;gap:2.4rem}
.brand-logo{display:block;width:15rem;height:auto;object-fit:contain}
.brand-title{text-align:right}.brand-title .eyebrow{font:1.2rem Georgia,serif;letter-spacing:.25em;color:#655438;margin:0 0 1rem}
.brand-title h1{font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-size:2.3rem;font-weight:500;letter-spacing:.16em}
.categories{padding:.8rem 0 3rem}.category{margin-bottom:4.2rem}
.category-heading{gap:2.2rem;margin-bottom:2.4rem}
.category-heading h2{font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-weight:500;font-size:2rem;letter-spacing:.12em}
.category-heading::after{background:#40271a40}
.category .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:2.8rem 5.8rem;padding-right:2.6rem}
.tile{position:relative;border:1px solid #301e12;border-radius:0;background:#ffffff26;box-shadow:none;padding:2.8rem 11.2rem 2.8rem 3rem;min-height:12.2rem!important}
.tile strong{font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-size:2.1rem;font-weight:500;letter-spacing:.06em;margin-bottom:1rem;line-height:1.6}
.tile span{color:#625648;font-size:1.2rem;line-height:1.8;display:block}
.tile::after{content:"";position:absolute;right:-2.7rem;top:50%;width:12rem;height:3.3rem;background:url("arrow.webp") center / contain no-repeat;transform:translateY(-50%);transition:transform .2s}
.tile:hover{border-color:#301e12;background:#ffffff70;transform:none;box-shadow:0 .5rem 2.4rem #4d3a1610}
.tile:hover::after{transform:translate(.5rem,-50%)}
button{border-radius:0;background:#f4f0e8;border:1px solid #715f48;color:#241006;transition:background .18s}
button:hover{background:#e9e2d1}
button:focus-visible,input:focus-visible,select:focus-visible{outline:.3rem solid #99865a;outline-offset:.4rem}
.primary{background:#332116;border-color:#332116;color:#fffdf6}.primary:hover{background:#59422c}
.footer{position:static;background:none;padding:1.4rem 0 2.6rem;border-top:1px solid #40271a35;color:#655746;font-size:1.1rem;line-height:1.8}
#banner{margin:0 auto 2rem;color:#766142;font-size:1.2rem;line-height:1.8}
dialog{width:72rem;max-width:calc(100% - 4rem);max-height:90vh;border:1px solid #49311c;border-radius:0;background:linear-gradient(#faf8f0ee,#faf8f0ee),url("page_bg.webp") center / cover;box-shadow:0 2.4rem 10rem #38261238}
dialog::backdrop{background:#2a211646;backdrop-filter:blur(.5rem)}
.content{padding:3.4rem 3.8rem}
.content h2{font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-weight:500;font-size:2.3rem;letter-spacing:.07em;line-height:1.6}
.sub{color:#756751}.fields{gap:2rem}label{color:#4c3b28}
input,select{border:1px solid #b9ae96;border-radius:0;background:#fffefa;color:#241006}
.result{border-radius:0;border-left:.3rem solid #a99468;background:#e9e2d282;color:#372a19}
.warn{border-radius:0;background:#ece5d7;color:#705830;border-left:2px solid #ad9560}
.route-list{gap:1.5rem}.route-choice{border:1px solid #7f6b4e;border-radius:0;background:#ffffff45;min-height:9.4rem}
.route-choice strong{font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-weight:500;font-size:1.6rem;line-height:1.6}
.route-choice span{color:#716046}.route-choice.other{background:transparent}.route-choice:hover{background:#e9e2d1}
th{color:#766348}td,th{border-color:#d7cbb7}.empty{color:#76664f}
@media(min-width:1500px){.brand-header{padding-top:4.8rem;padding-bottom:5rem}.brand-logo{width:17.5rem}.category{margin-bottom:5rem}.tile{padding-top:3.5rem;padding-bottom:3.5rem}}
@media(max-width:900px){header,.categories,.footer,#banner{width:calc(100% - 6.4rem)}.category .grid{gap:2.4rem 4rem}.tile{padding:2.2rem 6.5rem 2.2rem 2rem}.tile strong{font-size:1.8rem}.tile::after{width:8.5rem;right:-2.2rem}.brand-logo{width:12.5rem}}
@media(max-width:620px){header,.categories,.footer,#banner{width:calc(100% - 4rem)}.brand-header{padding:2.4rem 0 3rem}.brand-logo{width:10rem}.brand-title h1{font-size:1.8rem}.category .grid{grid-template-columns:1fr;padding-right:2rem;gap:2rem}.category-heading h2{font-size:1.8rem}.categories{padding:.4rem 0 2rem}.tile{min-height:10.8rem!important}.content{padding:2.4rem 2rem}.fields{grid-template-columns:1fr}.route-list{grid-template-columns:1fr}.footer{padding:1.5rem 0}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}


/* Emphasize travel date and fuel price labels only. */
label.travel-key-label{font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-size:1.7rem;font-weight:500;color:#963f32;line-height:1.6}
label.travel-key-label input{font-size:1.5rem;font-weight:400;color:#241006;line-height:normal}

/* Supplied heading artwork; logo dimensions match tayla.jp (2026-09-28). */
.brand-header{padding:3.4rem 0 3.2rem;min-height:0}
.brand-header picture{display:block;max-width:100%}
.brand-header .brand-logo{display:block;width:85.3rem;max-width:100%;height:auto}
/* The heading is outside the bounded content, so only its rules span the page. */
.app-heading{--heading-width:min(136.6rem,calc(100vw - 9.6rem));width:100%;text-align:center;margin:0 0 4.8rem;padding:2px 0 2.4rem}
.app-heading-title{margin:0;font-weight:400}
.heading-artwork{display:flex;justify-content:center;position:relative;isolation:isolate;width:100%;overflow:hidden;line-height:0}
/* Extend beyond the artwork for wide displays; the central PNG keeps its previous size. */
.heading-artwork::before{content:"";position:absolute;left:0;right:0;top:74.596774%;height:calc(var(--heading-width) / 640);background:#251006;transform:translateY(-50%);z-index:-1}
.heading-artwork img{display:block;flex:0 0 auto;width:calc(var(--heading-width) * 1.5);max-width:none;height:auto;margin:0}
.heading-ja{position:relative;display:table;margin:1.7rem auto 0;padding:.4rem 1.6rem .5rem;background:#302014;color:#d1c095;font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-size:1.7rem;font-weight:400;line-height:1.5;letter-spacing:.22em}
.heading-square{display:inline-block;margin-right:.55em;color:#2d2018;font-family:Arial,sans-serif;font-size:.7em;vertical-align:.1em}
@media(max-width:900px){.app-heading{--heading-width:calc(100vw - 6.4rem)}}
@media(max-width:620px){
 .brand-header{padding:2.4rem 0}
 .app-heading{--heading-width:calc(100vw - 6.4rem);margin-bottom:2.8rem;padding-bottom:1.5rem}
 .heading-artwork img{width:calc(var(--heading-width) * 1.2222222222)}
 .heading-artwork::before{height:calc(var(--heading-width) / 372)}
 .heading-ja{font-size:1.4rem;margin-top:1.2rem}
}
@media(max-width:559px){.brand-header .brand-logo{width:13.7rem;height:auto}}

[hidden]{display:none!important}.auth-card{max-width:49rem;margin:2rem auto 6rem;padding:3.2rem;border:1px solid #715f4880;background:#ffffff66}.auth-card label{margin:1.8rem 0}.auth-card h2{font-family:"Yu Mincho",serif}.account-bar{display:flex;gap:1.2rem;justify-content:flex-end;align-items:center;flex-wrap:wrap;margin:0 auto 2.4rem;max-width:136.6rem;width:calc(100% - 9.6rem);font-size:1.3rem}.account-bar button{padding:.8rem 1.2rem}.checkbox{display:flex;align-items:center;gap:.8rem}.checkbox input{width:auto;margin:0}.status{max-width:90rem;margin:1.2rem auto;padding:0 2.4rem;white-space:pre-wrap;line-height:1.7}.status:empty{display:none}.dialog-title{display:flex;justify-content:space-between;align-items:center;gap:1.6rem}.dialog-title h2{margin:0}.dialog-title button{padding:.7rem 1.2rem}.content form>label{margin:1.6rem 0}.preview-label{background:#fff4dd;border-bottom:1px solid #715f48;padding:1.4rem 2.4rem;font-size:1.3rem;line-height:1.8}.preview-label select{display:inline-block;width:auto;margin:0 1.2rem}.invite-url{font:1.3rem monospace;word-break:break-all;background:white;padding:1.2rem;border:1px solid #aa9e88}.account-entry{padding:1.6rem 0;border-bottom:1px solid #b6ad9d}.account-entry p{margin:.6rem 0;font-size:1.3rem}.danger{color:#8b2828}.muted{font-size:1.3rem;color:#625648;line-height:1.8}dialog{max-width:calc(100% - 2.4rem)}.table-wrap{overflow:auto}.amount{font-size:2.8rem}.auth-card button[type=submit]{width:100%}.auth-card .checkbox{font-weight:normal}input,select{min-height:4.4rem}.footer{font-size:1.2rem;line-height:1.8} @media(max-width:620px){.auth-card{margin:2rem 2rem 4rem;padding:2.4rem}.account-bar{width:calc(100% - 4rem)}.content{padding:2.2rem 1.8rem}.fields{grid-template-columns:1fr}.category .grid{grid-template-columns:1fr}.preview-label select{display:block;width:100%;margin:.8rem 0}}

/* Familiar daily workflow; account settings remain secondary. */
.settings-actions{justify-content:flex-start;margin-top:1.2rem}.travel-fields label{font-family:"Yu Mincho",serif;color:#963f32;font-size:1.7rem}.travel-fields input,.travel-fields select{font-family:inherit;color:#241006}.route-list{margin:2rem 0}.route-choice{padding:1.9rem 1.7rem}.route-choice strong{font-size:1.7rem}.route-choice span{font-size:1.3rem}.dialog-title{margin-bottom:1.8rem}

.history-dialog #close-modal{display:none}.history-dialog .dialog-title{margin-bottom:2.2rem}.history-dialog .content{padding:3.2rem}.history-dialog .sub{margin-bottom:1.6rem}.history-dialog #history-result{min-height:12rem;margin-top:2.2rem}.history-dialog .history-actions{margin-top:2.8rem;gap:1rem;justify-content:flex-end}.history-actions button{min-height:4.6rem;padding:1.2rem 2rem}#print-sheet{display:none}
@media(max-width:500px){.history-dialog .content{padding:2.4rem 1.8rem}.history-actions button{padding:1rem 1.3rem}.history-dialog #history-result{min-height:9.5rem}}
@media print{
 @page{size:A4 portrait;margin:20mm}
 html,body{background:white!important;color:black!important;height:auto!important;overflow:visible!important;margin:0!important;padding:0!important}
 body>*{display:none!important}body>#print-sheet{display:block!important;font:11pt sans-serif;color:black}
 dialog::backdrop{display:none!important}#print-sheet h1{font-size:26pt;font-weight:700;line-height:1.4;text-align:center;margin:0 0 10mm}#print-sheet table{width:100%;border-collapse:collapse;font-size:10pt}
 #print-sheet th,#print-sheet td{border-bottom:1px solid #aaa;padding:3mm 1.5mm;color:black;overflow-wrap:anywhere}
 #print-sheet thead{display:table-header-group}#print-sheet tr{break-inside:avoid}#print-sheet .table-wrap{overflow:visible}#print-sheet .print-footer{margin-top:8mm;font-size:9pt}#print-sheet .empty{color:black}
}

/* Readable expense history: deliberate wrapping and separated actions. */
.travel-history .date-year,.travel-history .date-day{display:block}
@media screen{
 .history-dialog{width:96rem;max-width:calc(100% - 3.2rem)}
 .history-dialog .travel-history{table-layout:fixed;font-size:1.4rem;line-height:1.75;margin-top:1rem}
 .history-dialog .travel-history th{font-size:1.2rem;padding:1.2rem 1rem;font-weight:500}
 .history-dialog .travel-history td{padding:2rem 1rem;vertical-align:top;border-bottom:1px solid #b8aa9055}
 .history-dialog .history-name{width:10rem;white-space:nowrap}
 .history-dialog .history-date{width:9.4rem;white-space:nowrap;font-variant-numeric:tabular-nums}
 .history-dialog .date-year{font-size:1.2rem;color:#786a55}.history-dialog .date-day{white-space:nowrap}
 .history-dialog .history-purpose{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9}
 .history-dialog .history-distance{width:8.8rem;white-space:nowrap;text-align:right}
 .history-dialog .history-toll{width:8.8rem;white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}
 .history-dialog .history-parking{width:10.4rem;white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}
 .history-dialog .history-amount{width:11rem;white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums;font-weight:600}
 .history-dialog .history-controls{width:10.4rem}
 .record-actions{display:flex;flex-direction:column;gap:1rem;align-items:stretch}
 .record-actions button{margin:0;padding:.9rem .8rem;min-height:4rem;font-size:1.2rem;line-height:1.5;white-space:nowrap}
 .record-actions [data-cancel]{color:#89523c;border-color:#b39a85;background:transparent}
 .history-dialog .history-total{display:flex;justify-content:flex-end;align-items:baseline;gap:2.4rem;margin:2.4rem 0;padding:1.4rem 0;border-bottom:1px solid #b8aa9055;font-size:1.4rem}
 .history-dialog .history-total strong{font-size:2.3rem;font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums}
}
@media screen and (max-width:760px){
 .history-dialog{max-width:calc(100% - 2rem)}.history-dialog .content{padding:2.4rem 1.8rem}
 .history-dialog .travel-history,.history-dialog .travel-history tbody{display:block;width:100%}
 .history-dialog .travel-history thead{display:none}
 .history-dialog .travel-history tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.6rem 2rem;border:1px solid #b8aa9066;background:#ffffff40;padding:1.8rem;margin-bottom:1.6rem}
 .history-dialog .travel-history td{display:block;width:auto;padding:0;border:0;text-align:left;min-width:0}
 .history-dialog .travel-history td::before{content:attr(data-label);display:block;font-size:1.1rem;color:#786a55;font-weight:400;margin-bottom:.4rem}
 .history-dialog .history-purpose{grid-column:1/-1;grid-row:2}
 .history-dialog .history-controls{grid-column:1/-1;padding-top:1.2rem!important;border-top:1px solid #b8aa9044!important}
 .history-dialog .history-controls::before{display:none!important}
 .history-dialog .record-actions{flex-direction:row;justify-content:flex-end;gap:1.2rem}
 .history-dialog .record-actions button{min-width:8.8rem;min-height:4.4rem}
 .history-dialog .date-year,.history-dialog .date-day{display:inline;font-size:1.4rem;color:inherit}
 .history-dialog .history-name{white-space:normal;overflow-wrap:anywhere}
 .history-dialog .history-total{justify-content:space-between}
 .history-dialog .history-actions{gap:.8rem}.history-dialog .history-actions button{flex:1;white-space:nowrap;padding:1.2rem .8rem;font-size:1.4rem}
}

.lock-notice p{margin:0 0 1rem}.lock-notice p:last-child{margin:0}.lock-notice button{padding:.8rem 1.6rem;font-size:1.3rem}@media print{.lock-notice{display:none}}
.auth-log td{font-size:1.2rem;line-height:1.6}.auth-log .muted{font-size:1.1rem}.auth-log tr.auth-warn td{font-weight:700;color:#963F32}
/* Text links in the sign-in card: same red Mincho as the travel date label, no button frame. */
.link-button{background:none;border:0;padding:0;color:#963f32;font-family:"Yu Mincho",serif;font-size:1.7rem;text-underline-offset:.4rem}.link-button:hover{background:none;text-decoration:underline}

/* Footer matches tayla.jp. */
.footer{border-top:0;text-align:left;color:#251006}.footer small{font-family:"Cormorant Garamond","Cormorant",Garamond,"Times New Roman",serif;font-size:1.2rem;font-weight:500;letter-spacing:.1em}

/* Account menu: inline on desktop, right-side drawer on phones. */
.menu-toggle{background:none;border:0;padding:0;color:inherit;cursor:default;display:inline-flex;align-items:center;gap:1rem}.menu-toggle:hover{background:none}
.menu-icon,.drawer-head{display:none}
.account-menu{display:flex;gap:1.2rem;align-items:center;flex-wrap:wrap}
@media(max-width:620px){
 .menu-toggle{cursor:pointer;padding:.8rem 0;font-size:1.3rem;text-align:right}
 .menu-icon{display:block;flex:none;position:relative;width:2rem;height:1.3rem;border-top:1px solid #715f48;border-bottom:1px solid #715f48}
 .menu-icon::before{content:"";position:absolute;left:0;right:0;top:.5rem;border-top:1px solid #715f48}
 .account-menu{position:fixed;top:0;right:0;bottom:0;z-index:50;width:min(32rem,85vw);flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:1rem;padding:1rem 2rem 3.2rem;background:#f8f5ee;border-left:1px solid #715f48;box-shadow:-1.2rem 0 4rem #25100626;overflow-y:auto;transform:translateX(100%);visibility:hidden;transition:transform .25s,visibility .25s}
 html.menu-open{overflow:hidden}html.menu-open .account-menu{transform:none;visibility:visible}
 .account-menu{gap:0}
 .drawer-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:.6rem;font-family:"Cormorant Garamond","Cormorant",Garamond,"Times New Roman",serif;font-size:2rem;letter-spacing:.15em}
 .account-menu>button,.settings-submenu button{border:0;background:none;text-align:left;padding:1.5rem .4rem;font-size:1.5rem}
 .account-menu>button{border-bottom:1px solid #715f4830}.account-menu>button:hover,.settings-submenu button:hover{background:none;color:#963f32}
 #settings-button{display:flex;justify-content:space-between;align-items:center}
 #settings-button::after{content:"";width:0;height:0;margin-right:.6rem;border-left:.5rem solid transparent;border-right:.5rem solid transparent;border-top:.7rem solid #715f48;transition:transform .2s}
 #settings-button[aria-expanded="true"]::after{transform:rotate(180deg)}
 .settings-submenu{display:flex;flex-direction:column;margin:.4rem 0 .8rem;padding:0 0 0 1.6rem;border-left:2px solid #a99468}
 .settings-submenu button{padding:1.1rem .4rem;font-size:1.4rem;color:#4a3a2a}
 .menu-backdrop{position:fixed;inset:0;z-index:40;background:#25100640}
}

/* Top-right close buttons: a plain × without a frame. */
button.close-x{font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;border:0;background:none;padding:0 .4rem;font-size:3.6rem;font-weight:300;line-height:1;color:#241006}button.close-x:hover{background:none;color:#963f32}

/* Signed-in name and menu overlay the top right corner (4rem from the edge, 2rem on phones) without moving the logo. */
.account-bar{position:absolute;top:1.4rem;right:4rem;z-index:20;width:auto;max-width:none;margin:0}
@media(max-width:620px){.account-bar{top:1rem;right:2rem;width:auto}}
.footer{text-align:center}

/* Parking payment method under the amount in the history list and PDF. */
.parking-method{display:block;font-size:1.1rem;color:#76664f;font-weight:normal}
@media print{#print-sheet .history-distance,#print-sheet .history-toll,#print-sheet .history-parking,#print-sheet .history-amount{text-align:right;white-space:nowrap}#print-sheet .parking-method{color:black;font-size:8pt}}

/* "その他" manual entry: same spacing as other form fields, and room above the confirm button. */
#manual-fields label{margin:1.6rem 0}
#manual-fields .primary{margin-top:1.2rem}

/* iOS Safari gives date/month inputs an intrinsic minimum width that overflows narrow screens. */
.fields>label,.content form>label{min-width:0}
input[type=date],input[type=month]{min-width:0;max-width:100%;-webkit-appearance:none;appearance:none}
input::-webkit-date-and-time-value{text-align:left}
/* iOS Safari zooms into inputs smaller than 16px, which shifts the page sideways. Keep 17px fields as they are. */
@media(max-width:620px){input,select,textarea{font-size:max(1.6rem,1em)}}
/* × buttons: no focus frame (dialogs focus them automatically when opened); show focus by colour instead. */
button.close-x:focus,button.close-x:focus-visible{outline:none}
button.close-x:focus-visible{color:#963f32}

/* Petty cash */
#petty-guess{margin:1.4rem 0}.petty-pick strong{font-size:1.8rem}
.petty-others{display:flex;flex-wrap:wrap;gap:.8rem;align-items:center;margin:1.2rem 0}.petty-others button{padding:.8rem 1.2rem;font-size:1.3rem}
.petty-list{margin:1.2rem 0}.petty-list .route-choice{min-height:0}.route-choice.selected{border-width:2px;border-color:#963f32}
.petty-review{display:inline-block;font-size:1.1rem;background:#963f32;color:#fff;padding:.2rem .6rem;margin-top:.4rem}
.petty-ledger td,.petty-journal td{font-size:1.3rem}.petty-ledger .num,.petty-journal .num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.petty-ledger .petty-date{white-space:nowrap}.petty-ledger .petty-item{overflow-wrap:anywhere}.petty-carry td{background:#ffffff55}
.petty-negative{color:#a23c32;font-weight:600}.petty-opening{margin:1.6rem 0}
.petty-note{display:inline-block;margin-top:.6rem;font-size:1.3rem;color:#705830}

/* Travel: car / train-bus-taxi switch */
.mode-tabs{display:grid;grid-template-columns:1fr 1fr;border:1px solid #7f6b4e;margin:1.6rem 0 2rem}
.mode-tabs button{border-radius:0;background:transparent;padding:1.2rem .6rem;font-family:"Yu Mincho",serif;font-size:1.6rem;color:#716046}
.mode-tabs button.on{background:#963f32;color:#fff}
.field-label{display:block;font-size:1.3rem;font-weight:500;margin:1.6rem 0 0}
.choice-row{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:.7rem}
.choice{position:relative;font-weight:400}.choice input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.choice span{display:inline-block;padding:.9rem 1.6rem;border:1px solid #cad6cc;background:#fff;font-size:1.4rem;cursor:pointer}
.choice input:checked+span{border:2px solid #963f32;color:#963f32;padding:.8rem 1.5rem}
.choice input:focus-visible+span{outline:.3rem solid #73a89a;outline-offset:.3rem}
.fare-presets button{padding:.9rem 1.2rem;font-size:1.3rem;background:#fff;border:1px dashed #7f6b4e;border-radius:0}
.history-sub{font-family:"Yu Mincho",serif;font-weight:500;font-size:1.6rem;margin:2.4rem 0 .4rem}
.fare-total{display:block;margin-top:.6rem;font-size:1.3rem;color:#625648}
/* Registration screens: every field name looks like 利用日 (red Mincho). Choice buttons keep their own style. */
.entry-form label:not(.choice),.entry-form .field-label{font-family:"Yu Mincho",serif;color:#963f32;font-size:1.7rem;font-weight:500}
.entry-form input,.entry-form select{font-family:inherit;color:#241006}
.entry-form .petty-note,.entry-form .fare-total{font-family:-apple-system,BlinkMacSystemFont,sans-serif}
.fields .field-label{margin-top:0}
.entry-form .label-note{font-family:-apple-system,BlinkMacSystemFont,sans-serif;font-size:1.3rem;font-weight:400;color:#4c3b28}
/* Pull-downs: same height as text fields, and the same down triangle as 設定 in the phone drawer (#settings-button::after). */
select{-webkit-appearance:none;appearance:none;background:#fffefa url(select-arrow.svg) no-repeat right 1.8rem center/1rem .7rem;padding:1.1rem 4.8rem 1.1rem 1.1rem;line-height:normal}
/* Every text field and pull-down has the same height (date fields were 52px, text 50px, pull-downs 44px). */
input:not([type=checkbox]):not([type=radio]),select{height:5.2rem}
@media(max-width:620px){.mode-tabs button{font-size:1.4rem;padding:1.1rem .4rem}}
/* Petty cash: list / account reference links, and the account reference dialog (opened over the entry dialog). */
.petty-tools{display:flex;gap:2.4rem;align-items:center;flex-wrap:wrap;margin:1.2rem 0}
.ref-dialog{width:56rem}.ref-dialog .content form>label,.ref-dialog label{margin:1.2rem 0;font-size:1.3rem}
.ref-table{max-height:50vh;overflow:auto;margin-top:1rem}.ref-table table{margin-top:0}.ref-table td button{padding:.5rem 1.2rem;font-size:1.2rem}
/* 一覧から選ぶ / 勘定科目参照: same shape as 保存内容を確認, in red with white text. */
.petty-tools{gap:1.6rem}
.petty-tools .link-button{background:#963f32;color:#fff;border:1px solid #963f32;padding:1.2rem 2rem;font-family:"Hiragino Kaku Gothic ProN","Hiragino Sans",sans-serif;font-size:1.5rem;line-height:normal}
.petty-tools .link-button:hover{background:#7d3329;border-color:#7d3329;text-decoration:none}
/* The typed-in account field is a text box with suggestions, not a pull-down: hide the browser's suggestion arrow. */
#petty-account::-webkit-calendar-picker-indicator{display:none!important}
#petty-account::-webkit-list-button{display:none!important}
/* PC: section headings (請求・入金管理 etc.) clearly larger than the tile titles below them. */
@media(min-width:621px){.category-heading h2{font-size:2.6rem}.category-heading .heading-square{font-size:1.6rem}}
/* Settings → 登録済みの距離・燃費: space between the list and the add buttons. */
#add-route,#add-fare-route{margin-top:2.4rem}
.petty-flip{margin-bottom:1.2rem}.petty-flip button{margin-top:.8rem;background:#963f32;color:#fff;border:1px solid #963f32;padding:.8rem 1.6rem;font-size:1.4rem}

/* Receipt: the client name is the main title of the client card. */
.receipt-client strong{font-size:2.2rem;letter-spacing:.06em}

/* PC: the signed-in name (with a person icon and an "open" icon) opens the menu in a dialog, in the same order as the phone drawer. */
.sp-i{fill:currentColor;fill-rule:evenodd}
.sp-chev{fill:none;stroke:#8a7a62;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
@media(min-width:621px){
 .account-menu,.menu-backdrop{display:none!important}
 .menu-toggle,.menu-toggle:hover{cursor:pointer;gap:.8rem;padding:.8rem 1.2rem;border:0;background:none;font-size:1.7rem;color:#241006;letter-spacing:.04em}
 .menu-toggle .sp-i{width:2.8rem;height:2.8rem}
 input[type="date"],input[type="month"]{cursor:pointer}
 .pc-id{margin-left:.2rem;font-size:1.3rem;color:#655746}
 /* "Opens another window" icon (a box with an arrow out of the top right) */
 .pc-open{display:block;flex:none;width:2.3rem;height:2.3rem;margin-left:.2rem;fill:#715f48}
 .pc-open-box{fill:none;stroke:#715f48;stroke-width:2.2}
}
dialog.menu-modal{width:44rem}
.menu-dialog .sp-i{display:block;flex:none}
.menu-dialog .sp-drawer-user{display:flex;align-items:center;gap:1rem;padding-bottom:1.8rem;border-bottom:1px solid #40271a30}
.menu-dialog .sp-drawer-user .sp-i{width:3.2rem;height:3.2rem}
.menu-dialog .sp-drawer-user b{display:block;font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-weight:600;font-size:1.8rem;letter-spacing:.06em}.menu-dialog .sp-drawer-user small{display:block;margin-top:.1rem;font-size:1.2rem;color:#756751}
.menu-dialog .sp-menu-sec{padding-top:2.2rem}
.menu-dialog .sp-menu-sec h3{display:flex;align-items:center;gap:.8rem;margin:0 0 .8rem;font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-weight:600;font-size:1.8rem;letter-spacing:.1em;color:#963f32}
.menu-dialog .sp-menu-sec h3 .sp-i{width:2.3rem;height:2.3rem}
.menu-dialog .sp-menu-sec button{display:flex;align-items:center;gap:1.2rem;width:calc(100% - 1.6rem);margin-left:1.6rem;padding:1.35rem .2rem;border:0;border-bottom:1px solid #40271a20;background:none;color:#241006;text-align:left;font-size:1.5rem}
.menu-dialog .sp-menu-sec button:hover{background:none;color:#963f32}
.menu-dialog .sp-menu-sec button .sp-i{width:2.2rem;height:2.2rem}
.menu-dialog .sp-chev{width:1.8rem;height:1.8rem;margin-left:auto}
.menu-logout{display:flex;align-items:center;justify-content:center;gap:.8rem;width:100%;margin-top:3rem;padding:1.3rem;border:1px solid #715f48;font-size:1.5rem}
.menu-logout .sp-i{width:2rem;height:2rem}

/* ---- Phone app layout (max-width 620px). The elements are added by app.js and hidden on wider screens. ---- */
.sp-top,.sp-home,.sp-page,.sp-tabs,.sp-menu,.sp-drawer-user,.account-menu .sp-i{display:none}
@media(max-width:620px){
 html.sp-signed .brand-header,html.sp-signed .app-heading,html.sp-signed .footer,html.sp-signed #dashboard{display:none!important}
 html.sp-signed body{padding-bottom:calc(10rem + env(safe-area-inset-bottom))}
 html.sp-signed[data-sp-tab="home"] .sp-home,html.sp-signed:not([data-sp-tab="home"]) .sp-page{display:block}
 .sp-i{display:block;flex:none;width:2.4rem;height:2.4rem;fill:currentColor;fill-rule:evenodd}
 .sp-chev{flex:none;width:1.8rem;height:1.8rem;margin-left:auto;fill:none;stroke:#8a7a62;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
 /* Top bar: menu at the left, then the logo; the signed-in name at the right */
 .account-bar{position:sticky;top:0;left:0;right:auto;z-index:30;display:block;width:100%;max-width:none;margin:0;padding:env(safe-area-inset-top) 0 0;background:#eeece3f5;border-bottom:1px solid #40271a1f}
 .account-bar .menu-toggle{display:none}
 .sp-top{display:flex;align-items:center;gap:.4rem;padding:.6rem 2rem .6rem 1rem}
 .sp-menu-button,.sp-menu-button:hover{display:grid;place-items:center;width:4.4rem;height:4.4rem;padding:0;border:0;background:none;color:#241006}
 .sp-menu-button .sp-i{width:2.6rem;height:2.6rem}
 .sp-logo{display:block;width:8rem;height:4.2rem;overflow:hidden;margin-right:auto}.sp-logo img{display:block;width:8rem;height:auto}
 .sp-who{display:flex;align-items:center;gap:.5rem;font-size:1.2rem;color:#655746;letter-spacing:.04em}.sp-who .sp-i{width:2rem;height:2rem}
 /* Menu drawer from the left */
 .account-menu{left:0;right:auto;width:min(30rem,85vw);padding:calc(1.4rem + env(safe-area-inset-top)) 0 calc(2.4rem + env(safe-area-inset-bottom));background:#faf8f0;border-left:0;border-right:1px solid #49311c;box-shadow:1.2rem 0 4rem #25100626;transform:translateX(-100%)}
 .account-menu .sp-i{display:block}
 .drawer-head{margin:0;padding:0 1.2rem 1.6rem 2rem;border-bottom:1px solid #40271a30;font:inherit;letter-spacing:0}
 .drawer-head>span:not(.sp-drawer-user){display:none}
 .sp-drawer-user{display:flex;align-items:center;gap:1rem}.sp-drawer-user .sp-i{width:3.2rem;height:3.2rem;color:#241006}
 .sp-drawer-user b{display:block;font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-weight:600;font-size:1.7rem;letter-spacing:.06em}.sp-drawer-user small{display:block;margin-top:.1rem;font-size:1.1rem;color:#756751}
 #menu-close{width:4rem;height:4rem}
 #settings-button,#settings-submenu,#password-button{display:none!important}
 .sp-menu{display:block}
 .sp-menu-sec{padding:2rem 2rem 0}
 .sp-menu-sec h3{display:flex;align-items:center;gap:.8rem;margin:0 0 .8rem;font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-weight:600;font-size:1.8rem;letter-spacing:.1em;color:#963f32}
 .sp-menu-sec h3 .sp-i{width:2.3rem;height:2.3rem}
 .sp-menu-sec button,.sp-menu-sec button:hover{display:flex;align-items:center;gap:1.2rem;width:calc(100% - 1.6rem);margin-left:1.6rem;padding:1.35rem .2rem;border:0;border-bottom:1px solid #40271a20;background:none;color:#241006;text-align:left;font-size:1.45rem}
 .sp-menu-sec button .sp-i{width:2.2rem;height:2.2rem}
 .account-menu>#logout{display:flex;align-items:center;justify-content:center;gap:.8rem;margin:auto 2rem 0;padding:1.3rem;border:1px solid #715f48;font-size:1.45rem}
 .account-menu>#logout .sp-i{width:2rem;height:2rem}
 /* Home */
 .sp-home,.sp-page{padding:0 2rem}
 .sp-hello{padding:2.4rem 0 1.6rem}.sp-hello p{margin:0;font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-size:2rem;letter-spacing:.06em}.sp-hello span{display:block;margin-top:.6rem;font-size:1.2rem;color:#756751;letter-spacing:.04em}
 .sp-quick{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem}
 .sp-quick button,.sp-quick button:hover{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.2rem;min-height:13rem;padding:1.8rem 1.2rem;background:#f4f0e8;border:1px solid #715f48;color:#241006;text-align:center}
 .sp-quick button.primary,.sp-quick button.primary:hover{background:#59422c;border-color:#59422c;color:#fffdf6}
 .sp-quick .sp-i{width:4.4rem;height:4.4rem}.sp-quick .primary .sp-i{color:#f3ead8}
 .sp-quick strong{font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-weight:500;font-size:1.4rem;letter-spacing:.2em;line-height:1.5}
 .sp-quick strong b{display:block;margin-bottom:.2rem;font-size:2.2rem;font-weight:600;letter-spacing:.08em}
 .sp-summary{display:grid;grid-template-columns:1fr 1fr;margin-top:1.6rem;border:1px solid #301e12;background:#ffffff40}
 .sp-summary>div{min-width:0;padding:1.4rem 1.6rem}.sp-summary>div+div{border-left:1px solid #40271a30}
 .sp-summary small{display:block;font-size:1.1rem;color:#756751}
 .sp-summary b{display:block;margin-top:.4rem;font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-weight:500;font-size:2rem;white-space:nowrap}
 .sp-summary em,.sp-yen em{margin-left:.2rem;font-style:normal;font-size:1.2rem}
 .sp-unset{font-size:1.4rem;color:#756751}
 .sp-note{margin:1.2rem 0 0;font-size:1.2rem;line-height:1.7;color:#756751}
 .sp-sec{padding-top:3.2rem}
 .sp-sec h2{display:flex;align-items:center;gap:1rem;margin:0 0 1.4rem;font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-weight:600;font-size:1.9rem;letter-spacing:.1em;color:#241006}
 .sp-sec h2::before{content:"";flex:none;width:.8rem;height:.8rem;background:#241006}
 .sp-sec h2::after{content:"";flex:1;height:1px;background:#40271a60}
 .sp-list{border:1px solid #301e12;background:#ffffff40}
 .sp-row,.sp-row:hover{display:flex;align-items:center;gap:1.4rem;width:100%;padding:1.5rem 1.4rem;border:0;background:none;color:#241006;text-align:left}
 .sp-row+.sp-row,.sp-rec+.sp-rec{border-top:1px solid #40271a25}
 .sp-row .sp-i{width:3rem;height:3rem}.sp-row>span{min-width:0}
 .sp-row strong{display:block;font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-size:1.75rem;font-weight:600;letter-spacing:.03em;line-height:1.5}
 .sp-row small{display:block;margin-top:.2rem;font-size:1.1rem;color:#756751}
 .sp-row .warn{display:block;margin-top:.6rem;padding:.6rem .8rem;font-style:normal;font-size:1.15rem}
 .sp-client strong{font-size:2.1rem;letter-spacing:.06em}
 .sp-badge{display:inline-block;margin-top:.5rem;padding:0 .7rem;border:1px solid #c4a96a;background:#fbf3df;color:#8a6a2c;font-style:normal;font-size:1.1rem}
 /* Tab pages */
 .sp-head{display:flex;align-items:baseline;justify-content:space-between;padding-top:2.2rem}
 .sp-head h1{margin:0;font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-weight:600;font-size:2.4rem;letter-spacing:.1em}
 .sp-month{display:flex;align-items:center;gap:.2rem;font-size:1.4rem;color:#4c3b28}
 .sp-month button,.sp-month button:hover{display:grid;place-items:center;width:3.6rem;height:3.6rem;padding:0;border:0;background:none}
 .sp-month svg{width:2.2rem;height:2.2rem;fill:none;stroke:#59422c;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.sp-month button:disabled svg{stroke:#c9bfa9}
 .sp-wide{display:flex;align-items:center;justify-content:center;gap:1rem;width:100%;margin-top:1.6rem;padding:1.6rem;font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-size:1.7rem;letter-spacing:.06em}
 .sp-wide.primary,.sp-wide.primary:hover{background:#59422c;border-color:#59422c}
 .sp-wide .sp-i{width:2.2rem;height:2.2rem}
 .sp-page .warn{margin:1.6rem 0 0}
 .sp-rec,button.sp-rec:hover{display:flex;align-items:center;gap:1.4rem;width:100%;padding:1.4rem;border:0;background:none;color:#241006;text-align:left;font:inherit}
 .sp-rec time{flex:none;width:4.4rem;text-align:center;font-family:"Hiragino Mincho ProN","Yu Mincho",serif;line-height:1.2}
 .sp-rec time b{display:block;font-size:2rem;font-weight:500}.sp-rec time small{font-size:1.05rem;color:#756751}
 .sp-what{flex:1;min-width:0}.sp-what strong{display:block;font-size:1.5rem;font-weight:400;overflow-wrap:anywhere}.sp-what small{display:block;margin-top:.2rem;font-size:1.1rem;color:#756751;overflow-wrap:anywhere}
 .sp-yen{flex:none;text-align:right;font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-size:1.7rem;white-space:nowrap}
 .sp-yen small{display:block;margin-top:.2rem;font:1rem "Hiragino Kaku Gothic ProN",sans-serif;color:#756751}
 .sp-yen.plus{color:#4f6e4a}
 .sp-empty{padding:2rem 0;font-size:1.3rem;color:#756751}
 /* Bottom tab bar: only the selected page is gold. Kept below the top bar (z-index 30) so the menu drawer covers it. */
 html.sp-signed .sp-tabs{position:fixed;left:0;right:0;bottom:0;z-index:25;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;padding:.6rem .8rem calc(.8rem + env(safe-area-inset-bottom));background:#f6f3eaf5;border-top:1px solid #40271a30}
 .sp-tabs button,.sp-tabs button:hover{position:relative;display:flex;flex-direction:column;align-items:center;gap:.5rem;padding:.8rem 0;border:0;background:none;color:#8a7a62;font-size:1.25rem;letter-spacing:.02em}
 .sp-tabs .sp-i{width:2.9rem;height:2.9rem;color:#241006}
 .sp-tabs button.on,.sp-tabs .on .sp-i{color:#a99468}.sp-tabs button.on{font-weight:600}
 .sp-tabs button.on::before{content:"";position:absolute;top:0;left:50%;width:.5rem;height:.5rem;margin-left:-.25rem;border-radius:50%;background:#a99468}
 /* Dialogs fill the screen like app pages; the title bar stays at the top, the main buttons at the bottom */
 dialog,.history-dialog{width:100%;max-width:100%;height:calc(100% - 3.2rem);height:calc(100dvh - 3.2rem - env(safe-area-inset-top));max-height:none;margin:auto 0 0;overflow:auto;border:0;border-top:1px solid #49311c;background:#faf8f0}
 dialog .content,.history-dialog .content{min-height:100%;display:flex;flex-direction:column;padding:0 2rem calc(2.4rem + env(safe-area-inset-bottom))}
 #dialog-body,#dialog-body>form:last-child{flex:1;display:flex;flex-direction:column}
 #dialog-body>.actions:last-child,#dialog-body>form:last-child>.actions:last-child{margin-top:auto}
 dialog .dialog-title,.history-dialog .dialog-title{position:sticky;top:0;z-index:2;margin:0 -2rem 1.6rem;padding:1.2rem 1.2rem 1.2rem 2rem;background:#faf8f0;border-bottom:1px solid #40271a1f}
 dialog .dialog-title h2{font-size:1.9rem;line-height:1.5}
 input,select,textarea{font-size:1.6rem}
 /* Month and date fields show the same triangle as the pull-down fields (iPhone shows no marker on its own) */
 input[type="month"],input[type="date"]{-webkit-appearance:none;appearance:none;background:#fffefa url(select-arrow.svg) no-repeat right 1.8rem center/1rem .7rem;padding-right:4.8rem;text-align:left}
 input[type="month"]::-webkit-calendar-picker-indicator,input[type="date"]::-webkit-calendar-picker-indicator{opacity:0}
 /* Bottom buttons keep 1.6rem of space above the screen edge on every phone (plus the iPhone home bar area) */
 #dialog-body>.actions:last-child,#dialog-body form>.actions:last-child{position:sticky;bottom:0;z-index:2;margin-bottom:calc(-2.4rem - env(safe-area-inset-bottom));padding:1.2rem 0 calc(1.6rem + env(safe-area-inset-bottom));background:#faf8f0;border-top:1px solid #40271a20}
 #dialog-body>form:last-child>button.primary:last-child{position:sticky;bottom:calc(1.6rem + env(safe-area-inset-bottom));width:100%;margin-top:auto;box-shadow:0 calc(1.6rem + env(safe-area-inset-bottom)) 0 #faf8f0}
}

/* Sales list */
.sales-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.sales-table{min-width:780px}.sales-table td{vertical-align:top}.sales-table small{overflow-wrap:anywhere}
.sales-table .sales-memo{white-space:pre-wrap;overflow-wrap:anywhere;min-width:180px;max-width:320px}
.sales-competitor{color:#a22828;background:#fff4f4}
#sales-edit textarea{box-sizing:border-box;width:100%;font:inherit;padding:12px;border:1px solid #ccc;border-radius:8px}
#sales-results{margin:20px 0}#dialog-body details{margin-top:20px}#dialog-body details p{line-height:1.8}
@media(max-width:620px){.sales-filters{grid-template-columns:1fr}}

.sales-dialog{width:110rem;max-width:calc(100% - 3.2rem)}
.sales-table th,.sales-table td:first-child,.sales-table td:nth-child(4),.sales-table td:last-child,.sales-table button{white-space:nowrap}
@media(max-width:620px){.sales-dialog{width:100%;max-width:100%;margin:auto 0 0}}
.sales-unknown{color:#756f64}.sales-table{min-width:940px}
