/* Phone UI only. This file is deliberately excluded from PDF rendering. */
.mobile-view-switch,.mobile-action-dock,.mobile-group{display:none}
@media screen and (max-width:600px){
 body.mobile-desk{background:var(--blue);padding-bottom:calc(var(--mobile-dock-height,142px) + 24px);color:var(--ink)}
 .mobile-desk .top{padding:18px 22px;background:var(--blue);border-color:#d5dce0}
 .mobile-desk .brand{font-size:22px}
 .mobile-desk .top-right{font-size:0}
 .mobile-desk .top-right .online-dot{width:6px;height:6px;margin-right:0;background:#5c7a69}
 .mobile-desk .shell{padding:0 18px}
 .mobile-desk .intro{padding:30px 5px 26px}
 .mobile-desk .eyebrow{font-size:8px;letter-spacing:.1em;line-height:1.6;display:block;color:#65737c}
 .mobile-desk .eyebrow span{display:none}
 .mobile-desk .intro h1{font-size:63px;line-height:.85;letter-spacing:-.075em;margin:19px 0 19px}
 .mobile-desk .intro h1 br,.mobile-desk .intro .star{display:none}
 .mobile-desk .intro h1 em{display:block}
 .mobile-desk .intro-bottom{display:flex;flex-direction:row;align-items:center;gap:10px}
 .mobile-desk .intro-bottom p{font-size:12px;color:#5b6870;line-height:1.5}
 .mobile-desk .intro-bottom .pill{font-size:7px;padding:7px 9px;border-color:#aab7bf;color:#51626e;letter-spacing:.02em}
 .mobile-view-switch{display:grid;grid-template-columns:1fr 1fr;gap:5px;position:sticky;top:0;z-index:20;background:#e6edf2;padding:5px;border:1px solid #d1dbe1;border-radius:12px;margin-bottom:18px;scroll-margin-top:12px;box-shadow:0 5px 20px #1d252b06}
 .mobile-view-switch button{min-height:44px;border:0;border-radius:8px;background:transparent;color:#77868e;font:10px 'DM Mono',monospace;display:flex;gap:14px;align-items:center;justify-content:center}
 .mobile-view-switch button span{font:600 13px 'DM Sans',Arial,sans-serif;letter-spacing:.01em}
 .mobile-view-switch button[aria-selected=true]{background:#fff;color:#263942;box-shadow:0 2px 5px #344a5b0c}
 .mobile-desk .workspace{display:block!important;height:auto;min-height:0;max-height:none;overflow:visible;border:0;background:transparent;margin:0 0 24px}
 .mobile-desk .workspace>.editor,.mobile-desk .workspace>.preview-pane{height:auto;min-height:0;max-height:none;overflow:visible;border:0;position:static;padding:0;background:transparent}
 .mobile-desk .workspace>[hidden]{display:none!important}
 .mobile-group{display:block;background:var(--paper);border:1px solid #d5dfe5;border-radius:14px;margin-bottom:12px;overflow:hidden}
 .mobile-group summary{list-style:none;display:flex;align-items:center;gap:14px;min-height:86px;padding:20px;cursor:pointer;-webkit-tap-highlight-color:transparent}
 .mobile-group summary::-webkit-details-marker{display:none}
 .mobile-group-number{font:10px 'DM Mono',monospace;color:#7c919e;align-self:center}
 .mobile-group-title{display:flex;flex-direction:column;gap:6px}
 .mobile-group-title small{font:8px 'DM Mono',monospace;text-transform:uppercase;letter-spacing:.1em;color:#7c8b94}
 .mobile-group-title strong{font:500 17px 'DM Sans',Arial,sans-serif;letter-spacing:-.035em}
 .mobile-group-chevron{width:7px;height:7px;border-right:1px solid #70828f;border-bottom:1px solid #70828f;transform:rotate(45deg);margin-left:auto;margin-right:3px}
 .mobile-group[open] .mobile-group-chevron{transform:rotate(225deg)}
 .mobile-group[open] summary{padding-bottom:16px}
 .mobile-group-content{padding:0 20px 22px}
 .mobile-group-help{border-top:1px solid #e9eef0;padding:16px 0 0;margin:0 0 22px;font:12px/1.6 'DM Sans',Arial,sans-serif;color:#87939a}
 .mobile-group .section-head,.mobile-desk .editor>.rule{display:none}
 .mobile-desk .editor .form-grid{grid-template-columns:minmax(0,1fr);gap:20px}
 .mobile-desk .editor .form-grid label{font-size:9px;letter-spacing:.08em;gap:8px;color:#6b7b85;line-height:1.5}
 .mobile-desk .editor input,.mobile-desk .editor select,.mobile-desk .editor textarea{background:#f9fafb;border:1px solid #dce3e7;border-radius:7px;padding:12px 13px;min-height:47px;font:16px/1.4 'DM Sans',Arial,sans-serif;color:#24313a;box-shadow:none;scroll-margin-top:85px}
 .mobile-desk .editor input::placeholder,.mobile-desk .editor textarea::placeholder{color:#a5b0b7}
 .mobile-desk .editor input[type=file]{font-size:12px;padding:12px 9px}
 .mobile-desk .editor input[type=color]{height:47px;padding:6px}
 .mobile-desk .editor input[type=date]{width:100%;min-width:0;max-width:100%;padding-left:9px;padding-right:6px;font-size:14px}
 .mobile-desk .form-grid small{font:10px/1.6 'DM Sans',Arial,sans-serif;color:#96a2aa;letter-spacing:0}
 .mobile-group[data-step="2"] .form-grid:not(.extras){grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 10px}
 .mobile-desk .editor .items-head{display:none}
 .mobile-desk #items{margin-top:25px;display:grid;gap:12px}
 .mobile-desk .editor .line-item{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:14px 12px;border:1px solid #e0e6ea;background:#f9fafb;padding:16px;border-radius:9px;margin:0}
 .mobile-item-field{display:flex;flex-direction:column;min-width:0;gap:7px}
 .mobile-item-field>span{font:9px 'DM Mono',monospace;color:#83929b;letter-spacing:.03em}
 .mobile-item-field[data-field=description]{grid-column:1/-1;padding-right:27px}
 .mobile-desk .editor .line-item input{background:white;min-height:44px;font-size:16px;padding:10px 9px}
 .mobile-desk .editor .line-item .amount{grid-column:1/-1;text-align:right;font:600 13px 'DM Sans',Arial,sans-serif;border-top:1px solid #e1e7eb;padding-top:12px}
 .mobile-desk .editor .line-item .amount::before{content:'LINE TOTAL';float:left;font:8px/18px 'DM Mono',monospace;color:#86949d}
 .mobile-desk .editor .line-item .remove{position:absolute;right:5px;top:16px;width:36px;height:44px;padding:0;color:#94a2ab;font-size:21px}
 .mobile-desk .add-button{border:1px dashed #bacbd7;background:#edf3f7;color:#587284;border-radius:7px;min-height:47px;font-size:10px;margin-top:14px}
 .mobile-desk .extras{margin-top:24px}
 .mobile-desk .mobile-brand-settings{margin:0 0 25px;padding-bottom:25px;border-bottom:1px solid #e4eaee}
 .mobile-desk .design-help{font:12px/1.7 'DM Sans',Arial,sans-serif;color:#81909a;margin-bottom:22px}
 .mobile-desk .design-presets{gap:7px;margin-top:24px}
 .mobile-desk .preset{font-size:9px;border:1px solid #d7e0e6;border-radius:5px;padding:10px;min-height:40px}
 .mobile-desk .reset-design{font-size:9px;border-color:#d7e0e6;border-radius:5px;padding:12px;min-height:44px}
 .mobile-desk .editor #reset{display:block;margin:24px 0 0;padding:10px 0;min-height:44px;font-size:9px;letter-spacing:.07em;color:#7e8f9a}
 .mobile-desk .actions{margin-top:22px;gap:8px}
 .mobile-desk .actions .secondary,.mobile-desk .actions .import-button{display:flex;align-items:center;justify-content:center;min-height:44px;flex:1 1 calc(50% - 8px);font-size:9px;border:1px solid #c8d4dc;border-radius:7px;background:transparent;color:#677e8d;padding:12px 8px}
 .mobile-desk .actions [hidden]{display:none!important}
 .mobile-desk .mobile-notices{margin:0!important;padding:0!important}
 .mobile-desk .mobile-notices .privacy,.mobile-desk .mobile-notices #status{display:none}
 .mobile-action-dock{display:block;position:fixed;z-index:40;bottom:0;left:0;right:0;padding:13px 20px calc(13px + env(safe-area-inset-bottom));background:var(--paper);border-top:1px solid #d8e1e6;box-shadow:0 -6px 30px #253c4d06}
 .mobile-dock-total{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
 .mobile-dock-total>span{font:8px 'DM Mono',monospace;text-transform:uppercase;letter-spacing:.1em;color:#83939e}
 .mobile-dock-total strong{font:600 15px 'DM Sans',Arial,sans-serif;letter-spacing:-.02em}
 .mobile-dock-buttons{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:9px}
 .mobile-dock-buttons button{min-height:48px;border:1px solid #d0dce4;border-radius:7px;padding:10px 8px;font:500 11px 'DM Sans',Arial,sans-serif;white-space:nowrap;background:#eef3f6;color:#415c70;display:flex;gap:8px;justify-content:center;align-items:center}
 .mobile-dock-buttons #print{background:#263640;color:#fff;border-color:#263640;font-size:10px;letter-spacing:.04em}
 .mobile-dock-buttons button:disabled{opacity:.6}
 .mobile-dock-fallback{display:none;gap:8px;margin-top:8px}
 .mobile-pdf-ready .mobile-dock-fallback{display:flex}
 .mobile-dock-fallback button{border:1px solid #d0dce4;border-radius:6px;min-height:40px;padding:9px 12px;background:white;color:#547085;font:9px 'DM Mono',monospace}
 .mobile-dock-fallback [hidden]{display:none!important}
 .mobile-dock-status{font:10px/1.5 'DM Sans',Arial,sans-serif;color:#71838f;margin:8px 0 0;max-height:45px;overflow:auto}
 .mobile-dock-status:empty{display:none}
 .mobile-desk .preview-heading{padding:17px 4px;font-size:9px;margin:0;color:#748996}
 .mobile-desk .zoom-invoice{border:1px solid #bdcdd7;border-radius:5px;padding:9px 11px;min-height:38px;font-size:8px;color:#546f82}
 .mobile-desk .preview-sheet-holder{border:1px solid #dae2e6;border-radius:4px;box-shadow:0 8px 22px #29435309;background:#fff}
 .mobile-desk .preview-note{font-size:0!important;line-height:0!important;margin:17px 0 28px}
 .mobile-desk .preview-note::after{content:'A little preview. A proper invoice.';font:11px 'DM Sans',Arial,sans-serif;color:#8b9ca6}
 .mobile-desk .site-footer{padding:24px 23px;font-size:7px;color:#8b9da7;border-color:#d8e1e6;line-height:1.7}
 .mobile-desk .site-footer span:last-child{display:none}
 body.mobile-desk.invoice-zoom-open .preview-pane{position:fixed!important;inset:0!important;z-index:60!important;overflow:auto!important;padding:20px!important;background:#e6edf2!important;height:100dvh!important;width:100vw!important}
 body.mobile-desk.invoice-zoom-open .preview-heading{position:sticky;top:0;background:#e6edf2;z-index:2}
 body.mobile-desk.invoice-zoom-open .preview-sheet-holder{width:700px!important;height:auto!important;overflow:visible!important}
 body.mobile-desk.invoice-zoom-open .preview-pane .invoice{transform:none!important}
}
@media print{.mobile-view-switch,.mobile-action-dock{display:none!important}.mobile-group{display:none!important}.mobile-desk .workspace>.preview-pane[hidden]{display:block!important}}
