.preview-form-note{padding:14px 18px;margin:18px 0;border:1px solid #e0e0e0;background:#fafafa;color:#555;font-size:14px;line-height:1.7;text-align:left;}
dialog.preview-dialog{position:fixed;inset:0;margin:auto;border:0;border-radius:10px;width:min(430px,calc(100vw - 32px));padding:28px;box-shadow:0 12px 60px #0003;z-index:100000;font:15px/1.7 sans-serif;color:#333;}
dialog.preview-dialog::backdrop{background:#0006;}
.preview-dialog h2{font-size:21px;margin-bottom:12px;}.preview-dialog button{display:block;background:#de1014;color:#fff;border-radius:4px;margin-top:22px;padding:9px 24px;}
textarea.preview-editor{display:block!important;width:100%;min-height:230px;border:1px solid #ddd;padding:16px;resize:vertical;}
.preview-focus:focus-visible{outline:2px solid #ec1419!important;outline-offset:4px;}
.ys-status{font:14px/1.6 'Yusung Text',sans-serif;color:#bb151a;margin:0;}.ys-status:not(:empty){padding:12px 0;}.ys-button,.ys-small-button{display:inline-block;cursor:pointer;text-decoration:none!important;border:1px solid #c8c8c8;background:#fff;color:#333!important;border-radius:2px;padding:9px 18px;line-height:1.4;font-size:14px;}.ys-small-button{font:12px/1.3 'Yusung Text',sans-serif;padding:3px 8px;border-color:#b9b9b9;}.ys-button.red{background:#dd1117;border-color:#dd1117;color:#fff!important;}.ys-button:disabled,.ys-small-button:disabled{opacity:.5;cursor:wait;}.ys-button:focus-visible,.ys-small-button:focus-visible{outline:2px solid #dd1117!important;outline-offset:3px;}
.ys-write{width:100%;border-collapse:collapse;border:1px solid #dedede;font-family:'Yusung Text',sans-serif;}.ys-write th,.ys-write td{padding:5px 15px;border-bottom:1px solid #dedede;font-size:13px;vertical-align:middle;}.ys-write th{width:15%;font-weight:400;background:#f8f8f8;color:#42596c;text-align:right;border-right:1px solid #dedede;}.ys-write td{background:#fff;color:#333;}.ys-write input:not([type=checkbox]):not([type=file]):not([type=hidden]){border:1px solid #d8d8d8;background:white;height:23px;width:80%;max-width:850px;padding:1px 5px;font-size:13px;}.ys-write input[type=checkbox]{width:auto;margin-right:4px;}.ys-write select{max-width:220px;width:auto;padding:4px;}.ys-write label{font-size:13px;font-weight:400;margin:0;}.ys-write h3{font-size:17px;margin:4px 0;}.ys-write .ys-editor-cell{padding:15px;}.ys-write input[type=file]{max-width:100%;font-size:12px;}.ys-write small{font-size:11px;color:#777;}.ys-text-editor{width:100%;min-height:400px;border:1px solid #ddd;padding:12px;}.ys-form-bottom,.ys-post-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:8px 0 20px;}.ys-files{margin:8px 0;}.ys-files li{padding:3px 0;font-size:13px;}.ys-files button{border:0;color:#c41a1d;margin-left:5px;font-size:20px;}.ys-body{padding:28px 12px;min-height:180px;line-height:1.8;overflow-wrap:anywhere;}.ys-body img{max-width:100%;height:auto;}.ys-replies article{margin-top:24px;border:1px solid #ddd;padding:24px;}.ys-replies h4{font-size:17px;margin-bottom:12px;}.ys-replies small{font-size:12px;color:#888;margin-left:12px;}.ys-replies form{margin-top:25px;}.ys-replies textarea{display:block;width:100%;min-height:120px;border:1px solid #ccc;padding:12px;margin:10px 0;}.ys-replies label{display:block;}.ys-locked{text-align:center;padding:70px 20px;border-top:2px solid #333;border-bottom:1px solid #ddd;}.ys-locked p{margin:20px 0;}.ys-list{width:100%;border-collapse:collapse;font-size:14px;}.ys-list th,.ys-list td{border-bottom:1px solid #ddd;padding:12px 8px;text-align:center;}.ys-list th{border-top:2px solid #333;background:#f8f8f8;font-weight:500;}.ys-list td:nth-child(2){text-align:left;width:58%;}.ys-list-controls{display:flex;justify-content:space-between;gap:12px;margin:22px 0;align-items:center;}.ys-search{display:flex;gap:7px;align-items:center;}.ys-search input{border:1px solid #ddd;padding:5px;width:220px;}.ys-search select{width:auto;font-size:12px;}.ys-pagination{text-align:center;margin:24px 0;}.ys-pagination a,.ys-pagination button{border:1px solid #ccc;padding:4px 10px;margin-right:4px;background:#fff;font-size:13px;color:#333;}.ys-pagination .selected{background:#555;color:#fff;}.ys-product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:35px 25px;}.ys-product-grid a{text-align:center;}.ys-product-grid img{width:100%;aspect-ratio:1;object-fit:contain;}.ys-product-grid strong{display:block;margin-top:12px;}.ys-quote-actions{text-align:right;margin:20px 0;}.ys-setup-link{text-align:center;font-size:14px;margin:20px;}.ys-dialog{position:fixed;inset:0;margin:auto;width:min(780px,calc(100vw - 30px));max-height:92vh;overflow:auto;padding:0;border:0;border-radius:8px;background:#fff;color:#333;box-shadow:0 15px 80px #0004;z-index:1000000;font-family:'Yusung Text','Malgun Gothic',sans-serif;}.ys-dialog::backdrop{background:#0008;}.ys-dialog-head{display:flex;align-items:center;justify-content:space-between;padding:20px 25px;border-bottom:1px solid #eee;position:sticky;top:0;background:#fff;z-index:2;}.ys-dialog-head h2{font-size:22px;margin:0;}.ys-dialog-head button{font-size:28px;border:0;background:none;cursor:pointer;}.ys-dialog-body{padding:25px;}.ys-dialog-body>form>label{display:block;}.ys-dialog-body>form>label>input{display:block;width:100%;padding:10px;border:1px solid #ccc;margin:12px 0;}.ys-dialog-wide{width:min(1160px,calc(100vw - 30px));}.ys-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px;}#ys-toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:13px 23px;background:#222;color:white;border-radius:6px;z-index:2000000;font-size:14px;}
.ys-admin{margin:0;background:#f5f6f8!important;font:14px/1.6 'Yusung Text','Malgun Gothic',sans-serif;color:#242424;}.ys-admin *{box-sizing:border-box;}.ys-admin button,.ys-admin input{font:inherit;}.ys-admin button{cursor:pointer;}.admin-header{height:84px;background:#fff;border-bottom:1px solid #e7e7e7;display:flex;align-items:center;gap:22px;padding:0 34px;position:sticky;top:0;z-index:10;}.admin-header img{width:180px;}.admin-header>strong{padding-left:22px;border-left:1px solid #ddd;font-size:17px;}.admin-header>div{margin-left:auto;display:flex;align-items:center;gap:22px;}.admin-header button{border:0;background:none;color:#555;}.admin-header a{color:#333;text-decoration:none;}.admin-layout{display:grid;grid-template-columns:225px 1fr;min-height:calc(100vh - 84px);}.admin-sidebar{background:#fff;border-right:1px solid #e7e7e7;padding:20px 15px;}.admin-sidebar p{margin:25px 15px 10px;font-size:11px;color:#999;font-weight:600;letter-spacing:1px;}.admin-sidebar button{width:100%;text-align:left;border:0;background:none;color:#505050;border-radius:5px;padding:13px 16px;}.admin-sidebar button.active{color:#d6171e;background:#fff0f0;font-weight:700;}.admin-sidebar button:hover{background:#f5f5f5;}.admin-sidebar small{float:right;font-size:10px;color:#888;}.admin-main{padding:34px 42px;min-width:0;}.admin-top{display:flex;justify-content:space-between;align-items:center;margin:3px 0 26px;}.admin-top h1{font-size:28px;margin:8px 0;font-weight:650;}.admin-eyebrow{font-size:10px;letter-spacing:2px;color:#999;}.admin-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:28px;}.admin-stats article{background:white;border:1px solid #e9e9e9;padding:22px 26px;border-radius:8px;}.admin-stats article>span{display:block;color:#777;font-size:13px;}.admin-stats strong{font-size:32px;display:block;margin-top:6px;}.admin-stats small{font-size:11px;color:#999;}.admin-card{background:#fff;border:1px solid #e7e7e7;border-radius:8px;overflow:hidden;}.admin-card-head{display:flex;justify-content:space-between;align-items:center;padding:22px 25px;gap:14px;}.admin-card-head p{margin:0;color:#777;font-size:13px;}.admin-card-head h2{font-size:19px;margin:0 0 6px;}.admin-search{display:flex;gap:8px;}.admin-search input{border:1px solid #ddd;border-radius:3px;padding:8px 12px;width:240px;}.admin-table{width:100%;border-collapse:collapse;}.admin-table th{font-size:12px;color:#888;font-weight:500;background:#fafafa;padding:14px 18px;border-block:1px solid #eee;text-align:left;}.admin-table td{padding:17px 18px;border-bottom:1px solid #f0f0f0;font-size:13px;white-space:nowrap;}.admin-table td:nth-child(2){white-space:normal;min-width:200px;}.admin-title-link{text-align:left;color:#333;background:none;border:0;padding:0;font-weight:600;}.admin-title-link:hover{color:#d6171e;}.admin-imported{font-size:9px;color:#999;border:1px solid #eee;margin-left:6px;padding:1px 4px;}.admin-badge{display:inline-block;font-size:11px;background:#fff5e4;color:#97631c;border-radius:10px;padding:3px 10px;}.admin-badge.done{background:#eaf6ed;color:#257240;}.admin-empty{text-align:center!important;padding:60px!important;color:#888;}.admin-table-wrap{overflow:auto;}.admin-auth{max-width:440px;margin:9vh auto 30px;padding:36px;background:#fff;border:1px solid #eee;border-radius:10px;}.admin-auth img{width:185px;margin-bottom:30px;}.admin-auth h1{font-size:24px;margin:0 0 12px;}.admin-auth>p{font-size:13px;color:#888;}.admin-auth label,.admin-password label{display:block;font-size:13px;margin:20px 0;}.admin-auth input,.admin-password input{width:100%;display:block;margin-top:8px;padding:12px;border:1px solid #ddd;border-radius:3px;}.admin-auth .ys-button{width:100%;margin-top:20px;}.admin-auth small{font-size:11px;color:#999;}.admin-home{display:block;text-align:center;font-size:12px;color:#777;margin-top:25px;}.admin-settings{display:grid;grid-template-columns:1fr 1fr;gap:22px;}.admin-settings>.admin-card{padding:28px;}.admin-settings h2{font-size:19px;margin:0 0 18px;}.admin-settings p{color:#777;font-size:13px;line-height:1.8;margin:18px 0;}.admin-settings h2:not(:first-child){margin-top:30px;}.admin-mail-body{white-space:pre-wrap;overflow-wrap:anywhere;max-height:50vh;overflow:auto;padding:20px;background:#f7f7f7;font:13px/1.7 sans-serif;}.ys-admin-loading{padding:50px;text-align:center;}
@media(max-width:700px){.ys-write th{width:26%;padding:6px;}.ys-write td{padding:6px;}.ys-write input:not([type=checkbox]):not([type=file]):not([type=hidden]){width:100%;height:32px;}.ys-write .ys-editor-cell{padding:5px;}.ys-dialog-head,.ys-dialog-body{padding:15px;}.ys-list-controls{align-items:stretch;flex-direction:column;}.ys-search input{min-width:0;width:100%;}.ys-search select{max-width:115px;}.ys-product-grid{grid-template-columns:repeat(2,1fr);gap:25px 12px;}.ys-list th,.ys-list td{padding:9px 4px;font-size:11px;}.ys-list td:nth-child(2){width:45%;}.ys-write .SE_TOOLBAR{max-width:100%;}.admin-layout{grid-template-columns:1fr;}.admin-sidebar{display:flex;gap:5px;overflow:auto;padding:10px;}.admin-sidebar p{display:none;}.admin-sidebar button{width:auto;white-space:nowrap;padding:8px 12px;}.admin-sidebar small{margin-left:5px;}.admin-header{height:65px;padding:0 15px;gap:10px;}.admin-header img{width:130px;}.admin-header>strong{display:none;}.admin-header>div{gap:12px;font-size:12px;}.admin-header span{display:none;}.admin-main{padding:22px 15px;}.admin-top h1{font-size:23px;}.admin-stats{gap:8px;}.admin-stats article{padding:14px 12px;}.admin-stats strong{font-size:26px;}.admin-card-head{flex-wrap:wrap;padding:15px;}.admin-search{width:100%;}.admin-search input{flex:1;min-width:0;width:100%;}.admin-settings{grid-template-columns:1fr;}.admin-auth{margin:30px 15px;max-width:none;}}
.ys-write input[type=checkbox]{appearance:auto;-webkit-appearance:checkbox;width:13px;height:13px;display:inline-block;vertical-align:middle;accent-color:#dd1117;}

.ys-quote-form {
    grid-column: 1 / -1;
    box-sizing: border-box;
    width: 100%;
    max-width: 960px;
    --quote-label-width: 7.4rem;
    margin: 0 auto;
    border: 1px solid #cdd4da;
    border-radius: 9px;
    background: #fff;
    color: #162835;
    font-size: 15px;
    line-height: 1.45;
    text-align: left;
}
.ys-quote-form *, .ys-dialog.ys-quote-dialog { box-sizing: border-box; }
.ys-quote-form .ys-quote-title, .ys-quote-dialog .ys-dialog-head h2 {
    margin: 0; color: #162835; font-size: 23px; font-weight: 700; line-height: 1.35;
}
.ys-quote-title, .ys-quote-dialog .ys-dialog-head { padding: 15px 24px; border-bottom: 1px solid #dce2e6; }
.ys-dialog.ys-quote-dialog[open] {
    display: flex; flex-direction: column; width: min(960px, calc(100% - 24px)); max-width: calc(100% - 24px);
    max-height: calc(100dvh - 32px); padding: 0; overflow: hidden;
}
.ys-quote-dialog .ys-dialog-head { flex: none; border-top: 3px solid #b72431; }
.ys-quote-dialog .ys-dialog-head button {
    width: 38px; height: 38px; border-radius: 4px; color: #344858; line-height: 1;
}
.ys-quote-dialog .ys-dialog-head button:hover { background: #f0f3f5; }
.ys-quote-dialog .ys-dialog-body, .ys-quote-dialog .ys-dialog-body > div, .ys-quote-dialog .ys-quote-form {
    display: flex; flex-direction: column; min-height: 0; padding: 0;
}
.ys-quote-dialog .ys-quote-form { border: 0; border-radius: 0; }
.ys-quote-scroll { padding: 20px 24px; }
.ys-quote-dialog .ys-quote-scroll { overflow: auto; overscroll-behavior: contain; scroll-padding: 14px; }
.ys-quote-form fieldset { position: relative; margin: 0; padding: 0; border: 0; min-width: 0; }
.ys-quote-form fieldset + fieldset { margin-top: 21px; }
.ys-quote-form legend {
    position: static; float: none; width: 100%; height: auto; overflow: visible; text-indent: 0;
    line-height: 1.4; margin: 0 0 10px; padding: 0 0 6px; border: 0;
    border-bottom: 1px solid #c7d1d8; color: #152e41; font-size: 17px; font-weight: 700;
}
.ys-quote-form .ys-required { color: #ac2834; }
.ys-quote-required { float: right; padding-top: 4px; color: #505e69; font-size: 12px; font-weight: 400; }
.ys-quote-products, .ys-quote-contact { display: grid; gap: 9px 14px; }
.ys-quote-products { grid-template-columns: minmax(0,1fr) minmax(0,1.35fr) minmax(0,.9fr); }
.ys-quote-contact { grid-template-columns: repeat(2, minmax(0,1fr)); }
.ys-quote-form label { margin: 0; font-weight: 400; }
.ys-quote-form .ys-quote-field {
    display: grid; grid-template-columns: var(--quote-label-width) minmax(0,1fr); align-items: center;
    min-width: 0; gap: 8px; color: #263c4b; font-size: 14px; font-weight: 600;
}
.ys-quote-products .ys-quote-field { grid-template-columns: auto minmax(0,1fr); }
.ys-quote-field > span { word-break: keep-all; }
.ys-quote-field > [data-editor] { min-width: 0; overflow-x: auto; }
.ys-quote-form fieldset > .ys-quote-field { margin-top: 9px; }
.ys-quote-field :is(input, textarea, select) {
    display: block; width: 100%; min-width: 0; height: 38px; margin: 0; padding: 6px 10px;
    border: 1px solid #aab6bf; border-radius: 4px; background: #fff; color: #142633;
    font: inherit; font-weight: 400; font-size: 15px; line-height: 1.4;
}
.ys-quote-field textarea { height: auto; min-height: 60px; resize: vertical; }
.ys-quote-field ::placeholder { color: #626e77; opacity: 1; }
.ys-quote-notify { display: flex; align-items: center; gap: 8px; min-height: 38px; align-self: end; font-size: 14px; cursor: pointer; }
.ys-quote-notify input { width: 17px; height: 17px; flex: none; margin: 0; accent-color: #204760; }
.ys-quote-attachment { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; margin-top: 8px; }
.ys-quote-attachment label {
    position: relative; display: inline-flex; align-items: center; padding: 5px 10px;
    border: 1px solid #acb9c2; border-radius: 4px; color: #243e52; font-size: 14px; cursor: pointer;
}
.ys-quote-attachment input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.ys-quote-attachment small { color: #54636e; font-size: 13px; }
.ys-quote-form .ys-files { margin: 4px 0 0; overflow-wrap: anywhere; }
.ys-quote-form .ys-files:empty { display: none; }
.ys-quote-form .ys-quote-actions {
    display: flex; flex: none; justify-content: flex-end; gap: 8px; padding: 12px 24px;
    border-top: 1px solid #dce2e6; background: #f5f7f8; border-radius: 0 0 9px 9px;
}
.ys-quote-actions button {
    min-height: 42px; margin: 0; padding: 8px 18px; border: 1px solid #acb8c0; border-radius: 4px;
    background: #fff; color: #2d414f; font: inherit; cursor: pointer;
}
.ys-quote-actions [type=submit] { border-color: #17394e; background: #17394e; color: #fff; font-weight: 700; }
.ys-quote-actions [type=submit]:hover { background: #244e69; }
.ys-quote-actions button:disabled { opacity: .6; }
.ys-quote-form :focus-visible, .ys-quote-attachment label:focus-within, .ys-quote-dialog [data-close]:focus-visible {
    outline: 2px solid #256297; outline-offset: 2px;
}
@media (max-width: 800px) {
    .ys-quote-products { grid-template-columns: minmax(0,1fr); }
    .ys-quote-products .ys-quote-field { grid-template-columns: var(--quote-label-width) minmax(0,1fr); }
}
@media (max-width: 580px) {
    .ys-quote-form { --quote-label-width: clamp(5.4rem, 24vw, 7rem); }
    .ys-dialog.ys-quote-dialog[open] { width: calc(100% - 12px); max-width: none; max-height: calc(100dvh - 16px); }
    .ys-quote-title, .ys-quote-dialog .ys-dialog-head { padding: 10px 16px; }
    .ys-quote-scroll { padding: 15px 16px; }
    .ys-quote-products, .ys-quote-contact { grid-template-columns: minmax(0,1fr); }
    .ys-quote-field :is(input, textarea, select) { min-height: 42px; font-size: 16px; }
    .ys-quote-form .ys-quote-actions { padding: 9px 16px max(9px, env(safe-area-inset-bottom)); }
    .ys-quote-actions [type=submit] { flex: 1; }
}
/* Touch screens zoom into fields under 16px, including phones held sideways (wider than 580px). */
@media (pointer: coarse) {
    .ys-quote-field :is(input, textarea, select) { min-height: 44px; font-size: 16px; }
    .ys-quote-dialog .ys-dialog-head button { width: 44px; height: 44px; }
    .ys-quote-actions button { min-height: 44px; }
    .ys-quote-attachment label { min-height: 44px; }
    .customer-receipt .ys-post-actions a, .customer-receipt .ys-post-actions button { min-height: 44px; }
}
@media (max-width: 400px) {
    /* Long English labels such as "Manufacturer" run into the field on 320px phones; put labels on top. */
    .ys-quote-form .ys-quote-field,
    .ys-quote-products .ys-quote-field { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
.ys-private-contact { margin: 20px 0; padding: 14px 0; border-top: 1px solid #d6dfe3; }
.ys-private-contact p { margin: 0 0 10px; }

.customer-receipt {
    grid-column: 1 / -1; box-sizing: border-box; width: 100%; min-width: 0; max-width: 960px; margin: 0 auto 34px;
    border: 1px solid #ccd8df; border-radius: 8px; background: #fff; color: #193444;
    overflow-wrap: anywhere; line-height: 1.55; text-align: left;
}
.m03p01 > .ys-locked { grid-column: 1 / -1; }
.receipt-head {
    padding: 20px 28px 22px; border-radius: 7px 7px 0 0; background: #17394c; color: #fff;
}
.receipt-head .receipt-line { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #dce9ef; font-size: 14px; }
.receipt-line b { margin-left: 5px; font-variant-numeric: tabular-nums; }
.receipt-head .receipt-status { padding: 2px 12px; border: 1px solid #819da9; border-radius: 16px; color: #fff; font-size: 13px; }
.customer-receipt .receipt-head h2 { margin: 8px 0 0; color: #fff; font-size: clamp(23px, 3vw, 30px); font-weight: 700; line-height: 1.35; }
.receipt-head p { margin: 6px 0 0; font-size: 14px; color: #dce9ef; }
.receipt-inner { padding: 2px 28px; }
.receipt-section { padding: 18px 0; }
.receipt-section + .receipt-section { border-top: 1px solid #dce4e8; }
.customer-receipt .receipt-section h3 { margin: 0 0 10px; color: #183b50; font-size: 18px; font-weight: 700; }
.receipt-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0; }
.receipt-contact > div { display: grid; grid-template-columns: 5.5rem minmax(0,1fr); align-items: baseline; gap: 10px; }
.receipt-contact dt { font-size: 13px; color: #526978; }
.receipt-contact dd { margin: 0; font-size: 16px; color: #142e3b; }
.receipt-items { width: 100%; table-layout: fixed; border-collapse: collapse; }
.receipt-items th,.receipt-items td { padding: 8px 12px; border-bottom: 1px solid #dbe4e8; text-align: left; font-size: 15px; }
.receipt-items th { background: #edf3f5; font-size: 13px; }
.receipt-items :last-child:is(th,td) { width: 30%; text-align: right; font-variant-numeric: tabular-nums; }
.receipt-message,.customer-receipt .ys-replies article>div { max-width: 100%; overflow: auto; line-height: 1.7; }
.receipt-message img,.customer-receipt .ys-replies img { max-width: 100%; height: auto; }
.receipt-vendor,.receipt-files { margin: 0 0 8px; }
.receipt-files { padding-left: 18px; }
.receipt-message a,.receipt-files a { color: #165778; text-decoration: underline; }
.receipt-archive { margin: 0 0 16px; padding: 9px 12px; border-left: 2px solid #91adbb; background: #f2f6f8; color: #425966; font-size: 14px; }
.receipt-original,.receipt-staff { margin: 0 0 14px; }
.receipt-original summary,.receipt-staff summary { cursor: pointer; color: #31586b; font-size: 14px; }
.customer-receipt .ys-replies article { padding: 15px 18px; margin: 0 0 16px; background: #f6f8f9; border: 1px solid #dbe4e8; }
.customer-receipt .ys-replies h4 { margin: 0 0 8px; }
.customer-receipt .ys-post-actions { padding: 12px 28px; margin: 0; border-top: 1px solid #dce4e8; }
.customer-receipt .ys-post-actions a,.customer-receipt .ys-post-actions button { min-height: 38px; box-sizing: border-box; }
@media (max-width: 580px) {
    .receipt-head { padding: 16px 17px; }
    .receipt-inner { padding: 0 17px; }
    .receipt-section { padding: 14px 0; }
    .receipt-contact { grid-template-columns: minmax(0,1fr); gap: 10px; }
    .receipt-items th,.receipt-items td { padding: 7px 6px; }
    .customer-receipt .ys-post-actions { padding: 10px 14px; }
    .customer-receipt .ys-post-actions a,.customer-receipt .ys-post-actions button { min-height: 42px; }
}

/* Reflow the archived company timeline before the desktop year column crowds the dates. */
@media (max-width: 767px) {
    .history-list-box { padding-left: 12px; }
    .history-list-box::before { left: 12px; }
    .history-list-box .history-item { padding-bottom: 30px; }
    .history-list-box .history-year { position: static; margin: 0 0 12px; padding-left: 16px; }
    .history-item .history-info p {
        display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px;
        margin: 0 0 10px 16px; padding: 0; line-height: 1.55;
    }
    .history-item .history-info p strong { margin: 0; }
    .history-item .history-info p span { overflow-wrap: anywhere; }
}
@media (max-width: 720px) {
    /* Prevent "Formerly" / "구 오므론" from splitting mid-word in narrow logo columns. */
    .line-directory .line-brands li > a:first-child {
        grid-template-columns: 88px minmax(0, 1fr) 8px;
        gap: 12px;
    }
    .line-directory .line-brands .line-logo .line-former {
        flex-wrap: wrap; justify-content: center; gap: 2px 4px;
        text-align: center; word-break: keep-all; overflow-wrap: normal;
    }
    .line-directory .line-brands .line-news-link:any-link { margin-inline-start: 106px; }
}
@media (max-width: 700px) {
    .ys-list-controls .ys-search select { max-width: 145px; }
}
@media (max-width: 600px) {
    /* Give ARATAS product card thumbnails enough room for the spec caption. */
    .sub_product .aratas-news .aratas-card,
    .sub_product .aratas-news .aratas-power .aratas-card {
        grid-template-columns: minmax(96px, 32%) minmax(0, 1fr);
        gap: 10px 12px;
    }
    .sub_product .aratas-news .relay-picture span {
        font-size: 12px; line-height: 1.3; word-break: keep-all; overflow-wrap: normal;
    }
    .sub_product .aratas-compare td:last-child { white-space: nowrap; }
}
@media (max-width: 575px) {
    .company-facts a { display: inline-block; max-width: 100%; }
    /* Keep English and Korean overview labels from splitting mid-word on narrow phones. */
    .sub-cont table.company-facts th {
        width: 35%; padding: 9px 7px; font-size: 13.5px;
        word-break: keep-all; overflow-wrap: break-word;
    }
    .sub-cont table.company-facts td { padding: 9px 8px; font-size: 14.5px; }
    .emailinfo .info_box {
        padding: 16px 14px 16px 62px;
        background-size: 32px auto; background-position: 15px 18px;
        overflow-wrap: anywhere;
    }
    .ys-post-form .ys-write { table-layout: fixed; }
    .ys-post-form .ys-write :is(th, td) { overflow-wrap: anywhere; }
    .ys-post-form .ys-write :is(input, iframe, textarea) { max-width: 100%; }
}
@media (max-width: 420px) {
    #subbg01 .profile-cover-copy h1 { font-size: 28px; }
}
@media (max-width: 767px) {
    .m01p06 .sub_table th.contact-email-label { white-space: nowrap; word-break: keep-all; }
    .m01p06 .sub_table td { overflow-wrap: anywhere; }
    #subbg01.compact-company-nav {
        display: block; width: 100%; min-width: 0; height: auto; min-height: 0;
        padding: 0; background: #183447;
    }
    #subbg01.compact-company-nav .submn-tit {
        position: static; transform: none; width: auto; min-width: 0; height: auto;
        margin: 0; padding: 18px 16px; color: white;
    }
    #subbg01.compact-company-nav .submn-tit h2 { margin: 0; font-size: 24px; color: white; }
    #subbg01.compact-company-nav .submn-tit p { display: none; }
    #subbg01.compact-company-nav .submn {
        display: flex; flex-wrap: wrap; justify-content: center; position: static;
        width: auto; min-width: 0; height: auto; margin: 0; padding: 0 6px;
    }
    #subbg01.compact-company-nav .submn li { width: auto; min-width: 0; }
    #subbg01.compact-company-nav .submn a { height: auto; padding: 6px 8px; line-height: 1.5; }
}

/* Company tabs pinned under the header while scrolling (preview.js stickyCompanyTabs). */
html #subbg01 > .submn.ys-tabs-stuck {
    position: fixed; left: 0; right: 0; bottom: auto; width: auto; max-width: none; height: auto; min-height: 0; margin: 0; transform: none;
    z-index: 1000; background: #fff; box-shadow: 0 2px 8px rgb(18 40 56 / 10%);
}
.ys-tabs-spacer { flex: 0 0 auto; width: 100%; height: 0; }
@media (max-width: 767px) {
    /* Pinned on a phone: one swipeable row so long English tabs do not take two lines. */
    html #subbg01 > .submn.ys-tabs-stuck {
        flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
    }
    html #subbg01 > .submn.ys-tabs-stuck::-webkit-scrollbar { display: none; }
}

/* ── Mobile review 2026-11-30: touch targets, 16px inputs, menu, contacts ── */
/* Phone numbers and map links added by preview.js contactLinks(). */
.ys-tel { color: inherit !important; text-decoration: underline; text-underline-offset: 3px; }
.ys-map-link:any-link {
    display: inline-block; margin-left: 6px; padding: 2px 8px; border: 1px solid #b8c4cc; border-radius: 3px;
    color: #1c485f; font-size: 13px; line-height: 1.5; white-space: nowrap; text-decoration: none;
}
.ys-write .ys-plain-body {
    display: block; width: 80%; max-width: 850px; min-height: 200px; padding: 8px 10px;
    border: 1px solid #d8d8d8; font-size: 14px; line-height: 1.6; resize: vertical;
}
@media (max-width: 1024px) {
    /* Keep the page behind the open drawer still. */
    html.show, html.show body { overflow: hidden; }
    html.show .main-nav { overscroll-behavior: contain; }
    /* Same position as before, with a 43px-tall touch area. */
    #header .mob-btn { padding: 12px 7px; margin: -7px 0; }
}
@media (max-width: 767px) {
    .ys-tel { display: inline-block; padding: 10px 0; }
    .ys-map-link:any-link { display: inline-flex; align-items: center; min-height: 44px; margin: 6px 0 0; padding: 0 12px; font-size: 14px; }
    #footerarea .footer_mn a { display: inline-block; padding-block: 12px; }
    #footerarea .footer_mn a::before { top: 50%; transform: translateY(-50%); }
    .m01p06 .sub_table td a, .org-chart .org-phone { display: inline-block; padding-block: 10px; }
}
@media (max-width: 700px) {
    /* Stack board forms (Q&A, edits) so fields use the full width and do not trigger iOS zoom. */
    .ys-post-form .ys-write, .ys-post-form .ys-write tbody, .ys-post-form .ys-write tr,
    .ys-post-form .ys-write th, .ys-post-form .ys-write td { display: block; width: 100%; }
    .ys-post-form .ys-write { border-width: 1px 0 0; }
    .ys-post-form .ys-write th {
        padding: 12px 12px 4px; border: 0; background: none; text-align: left; font-size: 14px; font-weight: 600;
    }
    .ys-post-form .ys-write td { padding: 0 12px 12px; }
    .ys-post-form .ys-write :is(input:not([type=checkbox]):not([type=file]):not([type=hidden]), select, textarea) {
        width: 100%; max-width: none; height: 44px; padding: 8px 10px; font-size: 16px;
    }
    .ys-post-form .ys-write textarea { height: auto; min-height: 180px; line-height: 1.6; }
    .ys-post-form .ys-write label { font-size: 15px; }
    .ys-post-form .ys-write input[type=checkbox] { width: 20px; height: 20px; }
    .ys-post-form .ys-write input[type=file] { font-size: 15px; }
    .ys-post-form .ys-write small { font-size: 13px; }
    .ys-post-form .ys-write .ys-editor-cell { padding: 8px 0; }
    .ys-form-bottom { flex-wrap: wrap; }
    .ys-small-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; font-size: 14px; }
    .ys-list-controls .ys-search :is(select, input, button) { min-height: 44px; font-size: 16px; }
    .ys-list-controls .ys-search button { min-width: 64px; }
    .ys-pagination a, .ys-pagination button {
        display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: 0 2px 4px;
    }
}
@media (max-width: 400px) {
    /* English product tabs wrap to three rows on small phones; keep them on one swipeable row. */
    html:lang(en) .submn-area #subbg02 .submn {
        flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
    }
    html:lang(en) .submn-area #subbg02 .submn::-webkit-scrollbar { display: none; }
}
