.phone-rotate-gate{display:none}
@media screen{html.phoneDevice{-webkit-text-size-adjust:100%;text-size-adjust:100%;font-size:14px}html.phoneDevice body{font-size:13px}html.phoneDevice button{white-space:nowrap}html.phoneDevice.phonePortrait body{overflow:hidden!important;height:100dvh}html.phoneDevice.phonePortrait body>:not(.phone-rotate-gate){display:none!important}html.phoneDevice.phonePortrait .phone-rotate-gate{display:grid;position:fixed;inset:0;z-index:2147483647;place-content:center;justify-items:center;box-sizing:border-box;padding:28px;background:#f5f2ea;color:#183e34;text-align:center;font-family:Arial,'Microsoft JhengHei',sans-serif}html.phoneDevice .phone-rotate-gate span{font-size:64px;line-height:1.2}html.phoneDevice .phone-rotate-gate strong{font-size:22px}html.phoneDevice .phone-rotate-gate p{font-size:14px;line-height:1.7;max-width:300px}html.phoneDevice .app{width:calc(100% - 24px);margin:12px auto 24px;font-size:13px}html.phoneDevice .topbar,html.phoneDevice .topbar.negotiation-enabled{grid-template-columns:repeat(4,minmax(0,1fr));padding:0 12px 12px;gap:9px;border-radius:12px}html.phoneDevice .brand{height:auto;min-height:52px;grid-column:1/-1;display:flex;align-items:center;justify-content:flex-start;gap:8px;padding-right:44px}html.phoneDevice .brand-logo{height:36px;max-width:110px;max-height:36px;object-fit:contain}html.phoneDevice .brand-title{font-size:17px;font-weight:900;white-space:normal;overflow:visible;text-overflow:clip;letter-spacing:0;line-height:1.4}html.phoneDevice .field label{font-size:12px}html.phoneDevice .field select,html.phoneDevice .field input{font-size:13px;height:36px}html.phoneDevice .btn{height:36px;font-size:12px;padding:0 10px}html.phoneDevice .print-tools{grid-column:span 3;flex-direction:row;flex-wrap:wrap;gap:10px}html.phoneDevice h1{font-size:22px}html.phoneDevice h2{font-size:18px}html.phoneDevice h3{font-size:16px}html.phoneDevice button,html.phoneDevice input,html.phoneDevice select,html.phoneDevice textarea{font-size:13px}html.phoneDevice .excel-template-download{font-size:12px}html.phoneDevice .parking-size{font-size:12px}html.phoneDevice .bottom-grid,html.phoneDevice .footer-grid{grid-template-columns:1fr;gap:12px}html.phoneDevice .big-number{font-size:27px}html.phoneDevice .step-name{font-size:14px}html.phoneDevice .step-amount{font-size:25px}html.phoneDevice .info-head,html.phoneDevice .step-time,html.phoneDevice .loan-label{font-size:12px;white-space:nowrap}html.phoneDevice .step-content{padding:0 8px}html.phoneDevice .loan-value{font-size:20px}html.phoneDevice .bank-account-value{font-size:16px}html.phoneDevice .contact-label,html.phoneDevice #notesContent{font-size:13px}html.phoneDevice .contact-value{font-size:20px}html.phoneDevice .info-grid{min-width:680px}html.phoneDevice .steps.dynamic{min-width:max(680px,calc(var(--step-count) * 110px))}html.phoneDevice .panel{padding:13px;margin-bottom:12px;border-radius:12px;overflow-x:auto}html.phoneDevice .login-shell{min-height:100dvh}html.phoneDevice .card h1{font-size:22px}}
@media screen {
  html.phoneDevice .phone-native-select { display: none; }
  html.phoneDevice .phone-select-trigger {
    width: 100%; min-width: 0; height: 36px; padding: 0 26px 0 10px;
    border: 1px solid rgba(255,255,255,.22); border-radius: 10px;
    background-color: rgba(255,255,255,.1); color: #fff;
    font: inherit; font-size: 13px; text-align: left; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='white' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 9px center;
  }
  html.phoneDevice .loan-value .phone-select-trigger {
    height: 40px; padding: 0 17px 0 4px; border: 0;
    border-bottom: 1px solid #aebbb4; border-radius: 0;
    background-color: transparent; color: var(--ink); text-align: center;
    font-family: var(--number-font); font-size: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23183c34' stroke-width='1.6'/%3E%3C/svg%3E");
    background-position: right 4px center;
  }
  html.phoneDevice .phone-select-trigger:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
  html.phoneDevice .phone-select-trigger:disabled { opacity: .55; cursor: default; }
  html.phoneDevice .phone-select-menu {
    position: fixed; z-index: 10001; box-sizing: border-box;
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 8px;
    background: #fff; color: var(--ink); box-shadow: 0 5px 16px rgba(0,0,0,.18);
    font-family: "Microsoft JhengHei","Noto Sans TC",Arial,sans-serif;
    animation: none; transition: none; transform: none;
  }
  html.phoneDevice .phone-select-option {
    display: block; width: 100%; min-height: 44px; margin: 0; padding: 10px 12px;
    border: 0; border-bottom: 1px solid #edf0ed; border-radius: 0;
    background: #fff; color: var(--ink); font: inherit; font-size: 13px;
    line-height: 1.45; text-align: left; white-space: normal;
    animation: none; transition: none;
  }
  html.phoneDevice .phone-select-option[aria-selected="true"] { background: var(--sage); font-weight: 700; }
  html.phoneDevice .phone-select-option:disabled { color: #89928e; }
  html.phoneDevice .phone-select-option:focus-visible { outline: 2px solid var(--deep); outline-offset: -2px; }
}
.phone-select-menu[hidden] { display: none !important; }
@media print { .phone-select-trigger, .phone-select-menu { display: none !important; } }

@media screen{html.phoneDevice .brand::after{content:"付款試算";font-size:17px;font-weight:900;color:#fff;line-height:1.4}html.phoneDevice .topbar .field{min-width:0}html.phoneDevice .loan-value,html.phoneDevice .bank-account-value,html.phoneDevice .contact-value{overflow-wrap:anywhere}html.phoneDevice .phone-select-trigger{white-space:normal;line-height:1.25}}
