
:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#202a3b;background:#f6f8fc;font-size:16px}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:0}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible{outline:3px solid #91b6fa;outline-offset:4px}input:focus,textarea:focus,select:focus{outline:none;border-color:#3475dc;box-shadow:0 0 0 3px #e7effe}a{color:#235db9}h1,h2,h3,p{margin:0}fieldset{border:0;padding:0;margin:0;min-width:0}label{display:block;font-size:.9rem;font-weight:600;margin-bottom:9px}input:not([type=checkbox]),textarea,select{width:100%;border:1px solid #dce2ec;background:white;border-radius:10px;color:#202a3b;padding:12px 14px;min-height:48px}textarea{resize:vertical;line-height:1.5;min-height:137px}textarea::placeholder{color:#8994a6}input[type=checkbox]{accent-color:#245fbd;width:17px;height:17px}select{appearance:none;padding-right:39px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23616f83' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}select:disabled{color:#718096;background-color:#f8f9fc}svg{flex-shrink:0}.app-shell{max-width:1320px;margin:0 auto;padding:0 52px}.app-header{height:104px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e3e8f1;gap:18px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#1e2c42;font-size:1.3rem;font-weight:650;letter-spacing:-.5px}.brand-icon{width:44px;height:44px;display:grid;place-items:center;background:#e4edff;border-radius:14px;color:#2b62ba}.brand-sub{display:block;font-size:.8rem;font-weight:400;letter-spacing:0;color:#738096;margin-top:3px}.connection-button{display:flex;align-items:center;gap:8px;padding:10px 13px;background:white;border:1px solid #dde4ef;border-radius:9px;font-size:.85rem;font-weight:550;color:#44556e;min-height:44px}.connection-button:hover{background:#eef3fc}.intro{padding:47px 0 32px}.eyebrow{font-size:.72rem;font-weight:700;letter-spacing:1.65px;color:#657a99}.intro h1{font-size:clamp(2rem,3.4vw,2.75rem);font-weight:600;letter-spacing:-1.5px;line-height:1.17;margin-top:11px}.intro p{color:#6c7a8e;font-size:1rem;margin-top:12px;line-height:1.6}.workspace{display:grid;grid-template-columns:minmax(300px,.87fr) minmax(0,1.25fr);gap:28px;align-items:start}.editor-panel{background:white;border:1px solid #e2e7f0;border-radius:18px;padding:28px;box-shadow:0 3px 8px #1e3b6012}.panel-heading{display:flex;gap:12px;align-items:center;margin-bottom:28px}.section-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#f0f5ff;color:#416bb0}.panel-heading h2{font-size:1.15rem;font-weight:650;letter-spacing:-.3px}.panel-heading p{font-size:.85rem;color:#7c8798;line-height:1.5;margin-top:3px}.date-label{margin-top:22px;display:flex;justify-content:space-between;align-items:center;gap:10px}.toggle-label{display:flex;gap:7px;align-items:center;color:#738096;font-size:.78rem;font-weight:450}.date-field{display:flex;align-items:center;border:1px solid #dce2ec;border-radius:10px;padding-left:13px;color:#7c8aa0;background:white}.date-field:focus-within{border-color:#3475dc;box-shadow:0 0 0 3px #e7effe}.date-field input{border:0;min-width:0;box-shadow:none!important;padding-left:10px;padding-right:5px}.date-field input::-webkit-calendar-picker-indicator{opacity:.6}.today-button{font-size:.78rem;background:#eef4ff;color:#3263ac;padding:8px 9px;border-radius:7px;margin-right:8px;flex-shrink:0}.field-hint{font-size:.78rem;line-height:1.6;color:#7d899b;margin-top:8px}.message-label{display:flex;justify-content:space-between;align-items:baseline;margin-top:24px;gap:8px}.message-label>span{font-size:.75rem;color:#93a0b2}.screen-section{border-top:1px solid #edf0f6;padding-top:22px;margin-top:24px}.screen-section>label{display:flex;align-items:center;gap:8px}.text-button{padding:8px 0;font-size:.82rem;font-weight:550;color:#3263ac;background:none;min-height:36px;text-align:left}.text-button:hover{text-decoration:underline}.screen-section .text-button{margin-top:2px}.preview-panel{padding:6px 0 0;min-width:0}.preview-top{display:flex;align-items:center;justify-content:space-between;margin:0 2px 21px}.preview-top .eyebrow{font-size:.65rem;letter-spacing:1.6px}.preview-top h2{font-size:1.3rem;font-weight:600;letter-spacing:-.5px;margin-top:6px}.icon-button{width:40px;height:40px;display:grid;place-items:center;background:transparent;border:1px solid #dde4ef;color:#61718b;border-radius:10px}.icon-button:hover{background:#eaf0fb}.screen-frame{border:8px solid #26334a;border-bottom:0;border-radius:15px 15px 11px 11px;background:#26334a;overflow:hidden;box-shadow:0 14px 30px #263e5b15;max-width:100%;margin:auto}.screen-frame canvas{display:block;width:100%;height:auto;background:white}.screen-frame.portrait{max-width:265px}.screen-chin{height:15px;display:flex;align-items:center;justify-content:center}.screen-chin span{width:23px;height:3px;border-radius:2px;background:#627088}.preview-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:16px;flex-wrap:wrap}.preview-controls>span{display:flex;align-items:center;gap:6px;color:#8591a5;font-size:.72rem}.orientation-picker{display:flex;border:1px solid #e0e6ef;padding:3px;border-radius:8px;gap:2px;background:#edf1f7}.orientation-picker button{display:flex;align-items:center;gap:5px;padding:7px 9px;border-radius:5px;background:transparent;color:#7d899e;font-size:.72rem;min-height:32px}.orientation-picker .selected{background:white;color:#36567f;box-shadow:0 1px 3px #1d365514}.readability{display:flex;gap:9px;align-items:center;margin-top:22px;color:#5a7c6e;font-size:.81rem;line-height:1.5}.readability svg{color:#579373}.readability.caution,.readability.caution svg{color:#94702a}.publish-area{padding-top:24px;margin-top:24px;border-top:1px solid #e1e7f0}.publish-area>p{display:flex;align-items:center;gap:7px;justify-content:center;font-size:.78rem;color:#7c899d;margin-bottom:12px}.publish-button{width:100%;min-height:54px;background:#2461bd;color:white;display:flex;align-items:center;justify-content:center;gap:10px;border-radius:11px;font-size:.95rem;font-weight:600;box-shadow:0 4px 9px #245ebd1c;padding:13px 15px}.publish-button:hover:not(:disabled){background:#174eaa}.download-button{display:flex;align-items:center;justify-content:center;gap:8px;font-size:.82rem;color:#63758d;background:transparent;min-height:44px;margin:7px auto 0;padding:8px 13px}.download-button:hover{color:#2461bd}.notice{display:flex;align-items:center;gap:10px;border-radius:12px;padding:15px 17px;margin-top:25px;border:1px solid #cadbf6;background:#edf4ff;font-size:.9rem;line-height:1.5;scroll-margin-top:20px}.notice>span{flex:1}.notice button{background:transparent;color:inherit;padding:7px;display:flex}.notice.error{border-color:#edc9c3;background:#fff2ee;color:#9e4433}.notice.success{border-color:#c6e0d2;background:#edf7f1;color:#35644f}.history-section{margin-top:52px}.history-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.history-heading .eyebrow{font-size:.65rem}.history-heading h2{font-size:1.35rem;letter-spacing:-.5px;margin-top:7px;font-weight:600}.empty-history{border:1px dashed #d6dfed;border-radius:13px;display:flex;align-items:center;gap:16px;padding:25px;background:#ffffff70}.empty-icon{width:45px;height:45px;border:1px solid #e1e7f0;background:white;border-radius:11px;display:grid;place-items:center;color:#8a9bb4;flex-shrink:0}.empty-history h3{font-size:.9rem;font-weight:550;color:#60738e}.empty-history p{font-size:.8rem;color:#8b97a9;line-height:1.5;margin-top:5px}.history-list{display:grid;gap:12px}.history-card{background:white;border:1px solid #e0e7f0;border-radius:12px;padding:15px;display:flex;gap:20px;align-items:center}.history-image{display:block;width:154px;flex-shrink:0;align-self:stretch;background:#f3f6fb;border:1px solid #edf0f4;border-radius:7px;overflow:hidden;min-height:75px}.history-image img{width:100%;height:100%;max-height:140px;object-fit:contain}.history-content{min-width:0}.history-date{font-size:.72rem;color:#8a96a8}.history-content h3{font-size:1rem;font-weight:550;line-height:1.5;margin-top:3px;overflow-wrap:anywhere}.history-content>p{font-size:.78rem;color:#8491a4;margin-top:3px}.history-actions{display:flex;flex-wrap:wrap;gap:4px 18px;align-items:center}.history-actions a{font-size:.82rem;text-decoration:none;padding:8px 0}.history-actions a:hover{text-decoration:underline}footer{border-top:1px solid #e2e8f0;margin-top:46px;padding:24px 0 28px;display:flex;gap:7px;align-items:center;color:#8b97a8;font-size:.73rem}footer>span{margin-left:auto}dialog{border:1px solid #dfe6f0;border-radius:19px;padding:0;background:white;color:#28374f;box-shadow:0 30px 100px #10274744;width:min(520px,calc(100% - 28px));max-height:90dvh}dialog::backdrop{background:#15263f65;backdrop-filter:blur(4px)}.dialog-content{padding:30px}.dialog-close{position:absolute;top:16px;right:16px}.dialog-icon{width:48px;height:48px;background:#edf3ff;color:#3569bb;border-radius:14px;display:grid;place-items:center;margin-bottom:18px}.dialog-content h2{font-size:1.5rem;font-weight:600;letter-spacing:-.5px}.dialog-intro{font-size:.9rem;line-height:1.6;color:#75839a;margin-top:10px}.setup-steps{font-size:.86rem;color:#5f7088;line-height:1.65;padding-left:22px;margin:20px 0 24px}.setup-steps li{margin:9px 0}.dialog-content form>label:not(:first-child){margin-top:18px}.dialog-content form>.publish-button{margin-top:22px}.connection-error{color:#a34432;background:#fff3ef;padding:10px;border-radius:8px;font-size:.85rem;margin-top:15px}.connection-tools{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:14px}.setup-help{font-size:.78rem;color:#8b96a8;line-height:1.6;border-top:1px solid #ebeff5;padding-top:16px;margin-top:19px}.preview-dialog{width:min(1100px,calc(100% - 24px));padding:20px;background:#f6f8fc}.full-preview-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.full-preview-top h2{font-size:1.1rem;font-weight:600}.preview-dialog>img{display:block;max-width:100%;max-height:71dvh;object-fit:contain;margin:auto;border:1px solid #e0e6ef;background:white}.preview-dialog>p{text-align:center;font-size:.8rem;color:#7f8ba0;margin-top:15px}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:1100px){.preview-panel{padding-left:8px}.screen-frame{margin-top:30px}.preview-controls{margin-top:19px}}
@media(max-width:950px){.app-shell{padding:0 28px}.workspace{gap:22px;grid-template-columns:minmax(300px,1fr) minmax(0,1.1fr)}.editor-panel{padding:22px}.preview-controls{justify-content:center}.preview-controls>span{width:100%;justify-content:center}.intro{padding-top:35px}.readability{font-size:.76rem}.preview-top .eyebrow{font-size:.6rem}}
@media(max-width:700px){.app-shell{padding:0 20px;max-width:520px}.app-header{height:86px}.brand{font-size:1.15rem;gap:9px}.brand-icon{width:39px;height:39px;border-radius:12px}.brand-sub{font-size:.65rem;max-width:145px}.connection-button{padding:10px;gap:6px;font-size:.75rem}.connection-button>span{max-width:83px;line-height:1.3}.intro{padding:29px 0 24px}.intro h1{font-size:2rem;letter-spacing:-1px;max-width:330px}.intro p{font-size:.9rem;margin-top:9px}.eyebrow{font-size:.65rem;letter-spacing:1.3px}.workspace{grid-template-columns:1fr;gap:28px}.editor-panel{padding:22px 20px;border-radius:15px}.panel-heading{margin-bottom:23px}.preview-panel{padding:0 1px}.preview-top{margin-bottom:17px}.preview-top .eyebrow{font-size:.65rem}.preview-top h2{font-size:1.35rem}.screen-frame{border-width:6px}.screen-frame.portrait{max-width:230px}.preview-controls{justify-content:space-between}.preview-controls>span{width:auto}.readability{font-size:.8rem;margin-top:18px}.publish-area{padding-top:20px;margin-top:20px}.publish-button{min-height:56px}.history-section{margin-top:35px}.empty-history{padding:20px 16px;gap:12px}.empty-history p{font-size:.78rem}.history-card{gap:12px;padding:12px}.history-image{width:91px}.history-content h3{font-size:.88rem}.history-date{font-size:.68rem}.history-actions{gap:0 13px}.history-actions .text-button,.history-actions a{font-size:.75rem}footer{margin-top:32px;flex-wrap:wrap;line-height:1.5}footer>span{display:none}.dialog-content{padding:25px 22px}.dialog-content h2{font-size:1.4rem}.date-label{gap:6px}.toggle-label{font-size:.75rem}.message-label label{font-size:.88rem}.notice{margin-top:22px}}
/* Keep touch controls readable and prevent narrow phone grids from overflowing. */
.editor-panel{min-width:0}.date-field input{flex:1;width:0}.connection-button,.today-button,.toggle-label,.text-button,.download-button,.orientation-picker button,.history-actions a,.history-actions .text-button{font-size:.875rem}
@media(max-width:700px){.workspace{grid-template-columns:minmax(0,1fr)}.preview-controls{justify-content:center}.preview-controls>span{width:100%;justify-content:center}.app-header{gap:10px}.brand{min-width:0}.connection-button{flex-shrink:0}.toggle-label{font-size:.8rem}.history-actions a,.history-actions .text-button{font-size:.82rem}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}.spin{animation:none}}

button,input,textarea,select{font-family:inherit}button{line-height:inherit}a{color:#235db9}body{line-height:1.5}img{max-width:100%}.auth-page{max-width:480px;margin:8vh auto;padding:0 20px}.auth-brand{display:block;font-size:1.5rem;font-weight:650;text-decoration:none;margin-bottom:25px}.auth-card{background:white;border:1px solid #e2e7f0;border-radius:18px;padding:30px;box-shadow:0 8px 30px #2039590a}.auth-card h1{font-size:1.7rem;font-weight:600;letter-spacing:-.7px}.auth-card>p{color:#718096;font-size:.9rem;line-height:1.65;margin-top:12px}.auth-card form{margin-top:25px}.auth-card form>label:not(:first-child){margin-top:18px}.auth-card form>.publish-button{margin-top:25px}.auth-card .connection-error{color:#a34432}.auth-foot{text-align:center;font-size:.8rem;color:#8b97a8;padding:20px}.signout-form{margin-top:14px;border-top:1px solid #e9eef5;padding-top:8px}input[type=hidden]{display:none}
