/* Customer portal: quiet surfaces, short labels, secondary controls on demand. */
:root{--blue:#5753d8;--blue-dark:#4541bc;--blue-soft:#f0effc;--text:#252835;--muted:#858996;--line:#e8e9ef;--bg:#f8f9fc;--shadow:none}
button,.btn,input,textarea,select{border-radius:8px}button,.btn{font-weight:500;min-height:38px}button.primary:hover,.btn.primary:hover{background:var(--blue-dark)}
.app-shell{grid-template-columns:224px minmax(0,1fr)}.sidebar{width:224px;padding:30px 16px 20px;border-color:var(--line);gap:8px}.sidebar nav{display:flex;flex-direction:column;gap:5px}.brand{display:inline-flex;align-items:center;gap:10px;color:var(--text);margin:0 10px 42px;text-decoration:none}.brand-mark{width:35px;height:35px;border-radius:10px;background:var(--blue);color:white;display:grid;place-items:center;flex-shrink:0}.brand-mark svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.8}.brand-name{font-size:16px;line-height:1.1;font-weight:650;letter-spacing:-.4px}.brand-name>span{display:block;font-size:11px;font-weight:450;color:var(--muted);letter-spacing:.2px;margin-top:4px}.nav-item{font-size:13px;padding:12px 14px;min-height:43px;border-radius:8px;gap:12px;color:#666b7b}.nav-item svg{width:18px;height:18px}.nav-item.active{background:var(--blue-soft);color:var(--blue);font-weight:600}.nav-item .badge{margin-left:auto}.sidebar-bottom{padding-top:16px;display:flex;flex-direction:column;gap:5px}.sidebar-more{margin-top:14px}.sidebar-more>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding:12px 14px;color:var(--muted);font-size:12px}.sidebar-more>summary svg{width:13px;height:13px}.sidebar-more[open]>summary svg{transform:rotate(90deg)}.sidebar-more nav{margin-top:5px}.sidebar-more .nav-item{font-size:12px;min-height:38px}
.topbar{height:64px;background:var(--bg);border:0;backdrop-filter:none;padding:0 36px;gap:16px;z-index:25}.breadcrumb{font-size:12px;color:var(--muted)}.breadcrumb strong{font-weight:450}.page{max-width:1240px;padding:22px 36px 60px}.page-intro{margin-bottom:28px;gap:16px}.page-intro h1{font-size:29px;font-weight:600;letter-spacing:-1px;line-height:1.2;margin:0}.card{border:1px solid var(--line);box-shadow:none;border-radius:12px;padding:26px}h2{font-size:16px;letter-spacing:-.25px;font-weight:600}h3{font-size:14px;font-weight:550}.section-head{margin-bottom:18px}.hint,.tiny{line-height:1.6}.notice{font-size:12px;border-radius:8px}.notice p{margin:0}.upload-card{padding:25px 28px}.upload-tabs{overflow:visible;gap:24px;align-items:center;margin-bottom:24px}.upload-tabs>.tab{padding-bottom:14px;font-size:13px}.upload-more{margin-left:auto}.upload-more>summary{font-size:12px}.dropzone{min-height:180px;background:#fcfcfe;border:1px dashed #d8d8e6;border-radius:10px;gap:8px}.dropzone .upload-icon{background:var(--blue-soft);color:var(--blue);width:42px;height:42px;border-radius:12px;margin-bottom:6px}.dropzone strong{font-size:14px;font-weight:550}.dropzone>span{font-size:11px;color:var(--muted)}.selected-file{background:#fcfcfe;border:1px solid var(--line);border-radius:10px;padding:22px}.upload-controls{display:grid;grid-template-columns:minmax(140px,1fr) auto auto;gap:18px;align-items:end;margin-top:22px}.upload-controls>label{max-width:220px;margin:0;font-size:11px;color:var(--muted);gap:7px}.upload-controls>label select{min-width:170px;background:white;color:var(--text);height:38px}.upload-controls>button{grid-column:3;grid-row:1;min-width:135px}.upload-options{grid-column:2;grid-row:1;align-self:end}.upload-options>summary{min-height:38px;display:flex;align-items:center;justify-content:center}.upload-options[open]{grid-column:1/-1;grid-row:2}.upload-options[open]>summary{justify-content:flex-start;padding:0}.upload-options>.portal-disclosure-body{padding:20px 0 0;border-top:1px solid var(--line);margin-top:8px}.upload-options label{font-size:12px}.upload-options input,.upload-options select,.upload-options textarea{width:100%}.upload-options input[type=checkbox]{width:auto}.upload-options #save-draft{justify-self:start}.list-controls{margin:32px 0 18px}.list-controls h2{font-size:15px;margin:0}.search{border-color:var(--line);background:white;border-radius:8px}.search input{font-size:12px;max-width:200px}.document-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}.doc-card{min-height:164px;box-shadow:none;border:1px solid var(--line);border-radius:11px;padding:21px;background:white}.doc-card:hover{border-color:#d2d0ea;box-shadow:0 4px 16px #29253c05;transform:none}.doc-card h3{font-size:14px;line-height:1.5;margin-top:18px;font-weight:550;letter-spacing:-.15px}.file-icon{background:var(--blue-soft);color:var(--blue);border-radius:9px}.doc-card p{font-size:11px}.doc-card .badge{font-size:9px}.empty-state{padding:35px 16px;min-height:160px}.empty-state h3{font-size:13px;color:var(--muted);font-weight:450}.empty-icon{width:40px;height:40px;background:transparent;color:#b6b8c5}.empty-icon svg{width:26px;height:26px}
.portal-disclosure>summary{cursor:pointer;list-style:none;color:#686c7c;font-size:12px;line-height:1.4}.portal-disclosure>summary::-webkit-details-marker,.sidebar-more>summary::-webkit-details-marker{display:none}.portal-disclosure>summary:focus-visible,.sidebar-more>summary:focus-visible{outline:3px solid #b8b5ef;outline-offset:4px;border-radius:4px}.portal-disclosure>summary::after{content:'⌄';display:inline-block;margin-left:9px;font-size:12px}.portal-disclosure[open]>summary::after{transform:rotate(180deg)}.portal-menu{position:relative}.portal-menu>.portal-disclosure-body{position:absolute;top:calc(100% + 10px);right:0;min-width:190px;background:white;box-shadow:0 10px 40px #25283514;border:1px solid var(--line);border-radius:12px;padding:7px;z-index:40;display:flex;flex-direction:column;gap:3px}.portal-menu>.portal-disclosure-body>button,.portal-menu>.portal-disclosure-body>a{border:0;width:100%;justify-content:flex-start;background:transparent;padding:10px 12px;font-size:12px;text-align:start}.portal-menu>.portal-disclosure-body>button:hover,.portal-menu>.portal-disclosure-body>a:hover{background:var(--blue-soft)}.portal-menu>.portal-disclosure-body>select{margin:6px;max-width:calc(100% - 12px)}.account-menu>summary{display:flex;align-items:center;gap:10px;padding:5px;min-height:42px;color:var(--text)}.account-menu>summary>svg{width:12px;height:12px;color:var(--muted);transform:rotate(90deg)}.account-menu>summary::after{display:none}.avatar{background:#eeedf8;color:#625d99;width:31px;height:31px;border-radius:50%;font-size:10px;font-weight:600}.profile-name{font-size:12px}.account-menu>.portal-disclosure-body{width:260px;max-width:calc(100vw - 30px)}.account-menu-identity{display:flex;flex-direction:column;gap:5px;padding:12px;border-bottom:1px solid var(--line);margin-bottom:4px;overflow-wrap:anywhere}.account-menu-identity strong{font-size:12px;font-weight:550}.account-menu-identity span{font-size:11px;color:var(--muted)}.account-language{font-size:11px;margin:5px 12px 8px;padding:10px 0;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}.account-language #locale{font-size:11px;width:110px;padding:7px;min-width:0}
.quick-grid{gap:20px}.quick-box{min-height:360px}.quick-box textarea,.quick-box .result-text{font-size:16px;line-height:1.9;min-height:270px}.quick-box h3{font-size:12px;color:var(--muted);font-weight:500}.quick-box .word-count{font-size:10px}.action-buttons{gap:10px}.action-picker{display:flex;gap:10px;align-items:center;width:100%;flex-wrap:wrap}.action-picker select{min-width:155px;flex:1}.action-picker>button{min-width:100px}.quick-grid+.card>.divider{margin:18px 0}.action-picker #translate-action[hidden]{display:none!important}.editor-sidebar .action-picker{align-items:stretch;flex-direction:column}.editor-sidebar .action-picker>*{width:100%;min-width:0}.editor-head{margin-bottom:20px}.title-input{font-size:22px;font-weight:550;letter-spacing:-.5px}.save-status{font-size:10px}.editor-head .portal-menu{order:2}.editor-head .portal-menu>summary{padding:10px}.editor-head #download-document{order:1}.toolbar{padding:10px 14px;gap:3px;border-radius:12px 12px 0 0;top:64px;background:white}.toolbar .tool-divider{display:none}.toolbar .portal-menu{margin-left:auto}.toolbar .portal-menu>summary{padding:8px}.toolbar .portal-disclosure-body{flex-direction:row;flex-wrap:wrap;width:245px}.toolbar .portal-disclosure-body>button{width:38px;justify-content:center}.editor-paper{border-radius:12px;box-shadow:none}.rich-editor{padding:38px;font-size:17px;line-height:1.9;min-height:420px}.editor-footer{font-size:10px}.side-panel{border-radius:12px;padding:20px;box-shadow:none}.editor-sidebar .tabs{gap:13px}.editor-sidebar .tab{font-size:11px}.side-panel>.portal-disclosure>.portal-disclosure-body{padding-top:12px}.side-panel>.portal-disclosure p{font-size:12px}.audio-panel{padding:20px 24px}.audio-panel>audio{width:100%}.audio-panel .transcript-tools{margin-top:14px}.transcript-tools>.portal-disclosure-body{padding-top:16px}.transcript-tools details{margin-top:14px}.transcript-tools #timestamp-lines{margin-top:14px}.live-options{display:flex;gap:24px;align-items:end}.live-options>label{min-width:180px;max-width:240px}.live-options>.portal-disclosure{flex:1;align-self:center}.live-options .portal-disclosure-body{padding-top:15px}.live-status-row{margin-top:24px}.live-caption-text{margin-top:12px;min-height:100px}.recorder{padding:35px 15px}.recorder p{font-size:12px}.record-time{font-size:38px;letter-spacing:-1px}.recovery-page .recovery-brand{display:flex;gap:10px;align-items:center;color:var(--text)}.recovery-card{box-shadow:none;border:1px solid var(--line);padding:30px;border-radius:14px}.recovery-card h1{font-size:22px;font-weight:600;letter-spacing:-.5px}.recovery-language{font-size:11px}.recovery-page{background:var(--bg);gap:28px}.portal-welcome{min-height:100dvh;max-width:1000px;margin:auto;display:flex;flex-direction:column;padding:45px 40px}.portal-welcome>.brand{align-self:start;margin:0}.portal-welcome>section{margin:auto 0;padding:80px 0}.portal-welcome h1{font-size:clamp(34px,6vw,58px);letter-spacing:-2px;font-weight:550;max-width:650px;line-height:1.12}.portal-welcome p{font-size:18px;color:var(--muted);margin:22px 0 32px}.portal-welcome footer{display:flex;gap:22px;font-size:11px;color:var(--muted)}.portal-welcome footer a{color:inherit}.settings-grid .card>h2{margin-bottom:24px}.settings-grid .portal-disclosure{padding:14px 0;border-top:1px solid var(--line);margin-top:18px}.settings-grid .portal-disclosure-body{padding-top:18px}.settings-grid .portal-disclosure-body label{margin-bottom:16px}.portal-help{max-width:820px}.portal-help details{padding:20px 0;border-top:1px solid var(--line)}.portal-help summary{font-size:14px;color:var(--text);font-weight:500}.portal-help details p{font-size:13px;line-height:1.8;color:#727786}.portal-help .card{margin-top:20px}.portal-app-download{max-width:760px}.portal-app-download .app-download-head{display:flex;gap:20px;align-items:center;margin-bottom:26px}.portal-app-download .brand-mark{width:56px;height:56px;border-radius:15px}.portal-app-download .brand-mark svg{width:32px;height:32px}.portal-app-download h2{font-size:21px;margin:0 0 7px}.portal-app-download p{font-size:12px;margin:6px 0}.portal-app-download>details{margin-top:26px;padding-top:20px;border-top:1px solid var(--line)}
@media(min-width:1500px){.sidebar{width:224px}.app-shell{grid-template-columns:224px minmax(0,1fr)}.page{padding:28px 46px 70px}.topbar{padding:0 46px}}
@media(max-width:1100px){.sidebar{width:205px;padding-inline:12px}.app-shell{grid-template-columns:205px minmax(0,1fr)}.page{padding-inline:25px}.topbar{padding-inline:25px}.editor-layout{grid-template-columns:minmax(0,1fr) 250px}}
@media(max-width:850px){.app-shell{display:block}.sidebar{width:240px}.page{padding:22px 20px 50px}.topbar{padding:0 20px;height:58px}.editor-layout{grid-template-columns:1fr}.editor-sidebar{display:block}.editor-sidebar .side-panel{margin-top:18px}.profile-name{display:none}.page-intro h1{font-size:26px}.toolbar{top:58px}.brand{margin-bottom:30px}.sidebar-more .nav-item{min-height:42px}.settings-grid{grid-template-columns:1fr}.account-menu .profile-name{display:none}}
@media(max-width:600px){.card{padding:20px}.upload-card{padding:18px}.upload-tabs{gap:20px}.upload-tabs>.tab{font-size:12px}.upload-controls{grid-template-columns:minmax(0,1fr) auto;gap:14px}.upload-controls>label{max-width:none}.upload-controls>label select{min-width:0;width:100%}.upload-controls>button{grid-column:2;min-width:115px}.upload-options{grid-column:1/-1;grid-row:2;justify-self:start;width:100%}.upload-options>summary{justify-content:flex-start;min-height:30px}.upload-options[open]{grid-row:2}.upload-options .form-grid{grid-template-columns:1fr}.list-controls{gap:15px;margin-top:28px}.list-controls>.row{gap:10px}.search input{width:100%;max-width:none}.document-grid{grid-template-columns:1fr}.doc-card{min-height:148px}.doc-card h3{font-size:14px}.quick-grid{grid-template-columns:1fr}.quick-box{min-height:230px}.quick-box textarea,.quick-box .result-text{min-height:160px;font-size:16px}.action-picker{gap:8px}.action-picker select{min-width:120px}.action-picker>button{min-width:85px}.editor-head{flex-wrap:wrap}.editor-head>.no-print{margin-left:auto}.rich-editor{padding:25px 20px}.title-input{font-size:19px}.toolbar{padding:8px;gap:0}.toolbar select{max-width:105px}.toolbar .portal-menu>summary{font-size:11px;padding:7px}.toolbar .portal-disclosure-body{right:0;width:210px}.audio-panel{padding:18px}.live-options{flex-wrap:wrap;gap:10px}.live-options>.portal-disclosure{flex-basis:100%}.portal-welcome{padding:30px 24px}.portal-welcome h1{letter-spacing:-1px}.portal-welcome p{font-size:15px}.portal-menu>.portal-disclosure-body{max-width:calc(100vw - 32px)}}
@media print{.app-shell{display:block}.page{padding:0}.portal-disclosure.portal-menu{display:none}.editor-sidebar,.toolbar,.topbar,.sidebar{display:none!important}.rich-editor{padding:0;font-size:12pt}.editor-paper{border:0}}
/* The page title belongs in the page; account controls stay in the sidebar. */
.topbar{display:none}.page{padding-top:38px}.toolbar{top:0}.sidebar-account>summary{display:flex;align-items:center;gap:12px;padding:12px 14px;min-height:43px;font-size:13px;color:#666b7b;border-radius:8px}.sidebar-account>summary>svg{width:18px;height:18px;flex-shrink:0}.sidebar-account>summary::after{margin-left:auto}.sidebar-account>.portal-disclosure-body{top:auto;bottom:calc(100% + 10px);left:0;right:auto;width:260px;max-width:calc(100vw - 32px)}
@media(max-width:850px){.topbar{display:flex;height:50px;position:relative;background:transparent;padding-left:14px}.page{padding-top:8px}.toolbar{top:0}}
/* Shared scale: 8 / 16 / 24 / 32. */
:root{--portal-space-1:8px;--portal-space-2:16px;--portal-space-3:24px;--portal-space-4:32px;--portal-control:40px;--portal-radius:10px}
.sidebar{padding:32px 16px 24px;gap:0}.sidebar .brand{padding:0;border:0;height:36px;margin:0 12px 32px;flex-shrink:0}.brand-mark{width:36px;height:36px}.sidebar nav{gap:4px}.sidebar .nav-item{margin:0;height:40px;min-height:40px;padding:10px 12px;font-size:13px;line-height:20px}.sidebar-more{margin:24px 0 0}.sidebar-more>summary{padding:8px 12px;font-size:12px}.sidebar-more nav{margin-top:8px}.sidebar-bottom{gap:4px;padding-top:24px}.sidebar-account>summary{height:40px;min-height:40px;padding:10px 12px;font-size:13px;line-height:20px}
.page{max-width:1184px;padding:32px 32px 48px}.page .page-intro,.page>.section-head,.page>.row:first-child{margin-bottom:24px;min-height:36px;gap:16px;align-items:center}.page h1:not(.rich-editor *){font-size:26px;line-height:34px;font-weight:600;letter-spacing:-.7px;margin:0}.page .page-intro h1{margin:0}.page h2:not(.rich-editor *){font-size:15px;line-height:22px;font-weight:600;letter-spacing:-.15px;margin:0 0 16px}.page h3:not(.rich-editor *){font-size:13px;line-height:20px;font-weight:600;margin:0 0 12px}.page p:empty,.page .hint:empty,#job-status:empty{display:none}.page .card,.page .side-panel{padding:24px;border-radius:var(--portal-radius);box-shadow:none}.page .settings-grid{gap:24px;align-items:start}.page .settings-grid>.card>h2{margin-bottom:24px}.page .section-head{gap:16px;align-items:center}.page .section-head h2{margin:0}.page .row.gap8{gap:8px}.page button:not(.record-circle):not(.tab):not(.toolbar button),.page .btn{min-height:var(--portal-control);padding:10px 14px;font-size:12px;line-height:18px;border-radius:8px}.page button.icon{width:40px;padding:10px}.page input:not([type=checkbox]):not([type=range]):not(.title-input),.page select{height:var(--portal-control);padding:9px 12px;line-height:20px;font-size:13px;border-radius:8px}.page label{font-size:12px;line-height:18px;gap:8px}.page .form-grid{gap:16px}.page .stack{gap:16px}.page .divider{margin:24px 0}.page .list-controls{margin:32px 0 16px;min-height:40px;gap:16px;align-items:center}.page .list-controls h2{margin:0}.page .search{height:40px;align-items:center}.page .search input{height:38px;padding:8px 0}.page .document-grid{gap:16px}.page .doc-card{padding:20px;min-height:160px;border-radius:10px}.page .doc-card h3{font-size:14px;line-height:21px;font-weight:550;margin:16px 0 8px}.page .doc-card p{margin:0;font-size:11px;line-height:18px}.page .folder-card{min-height:96px}.page .data-table th,.page .data-table td{padding:16px}.page .upload-card{padding:24px}.page .upload-tabs{margin:0 0 24px;gap:24px}.page .upload-tabs>.tab{min-height:40px;padding:0 0 16px}.page .dropzone{min-height:168px;padding:24px;gap:8px;border-radius:8px}.page .dropzone .upload-icon{margin-bottom:8px;width:40px;height:40px;border-radius:10px}.page .upload-controls{margin-top:24px;gap:16px}.page .upload-controls>label{gap:8px}.page .upload-options>summary{height:40px;min-height:40px}.page .upload-options .portal-disclosure-body{margin-top:8px;padding-top:24px}.page .empty-state{padding:32px 16px;min-height:144px}.page .empty-state h3{margin:16px 0 0;font-size:13px;font-weight:450}
.page .quick-workspace{padding:0;overflow:visible}.quick-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px 24px;border-bottom:1px solid var(--line)}.quick-toolbar>.action-buttons{margin:0;flex:1;max-width:540px}.quick-toolbar>.action-buttons .action-picker{gap:8px}.quick-toolbar>#quick-save{flex-shrink:0}.quick-workspace>.quick-grid{gap:0}.quick-workspace .quick-box{min-width:0;min-height:320px;padding:24px;gap:16px;box-shadow:none}.quick-workspace .quick-box+.quick-box{border-left:1px solid var(--line)}.quick-workspace .quick-box>.row{min-height:32px}.page .quick-box h3{margin:0;font-size:12px;line-height:20px;font-weight:500;color:var(--muted)}.quick-workspace .quick-box textarea,.quick-workspace .quick-box .result-text{min-height:210px;border:0;border-radius:0;background:transparent;padding:0;font-size:16px;line-height:1.85;flex:1}.quick-workspace .word-count{margin:0;padding:0;height:16px;font-size:10px}.quick-workspace .quick-box button{padding:6px 8px!important;min-height:32px!important;height:32px;font-size:11px!important}.page .editor-head{margin-bottom:24px;gap:16px;min-height:48px;align-items:center}.page .title-input{font-size:23px;line-height:30px;padding:0;height:32px}.page .save-status{display:block;font-size:10px;line-height:16px;margin-top:4px}.page .editor-layout{gap:24px;align-items:start}.page .editor-sidebar .tabs{margin-bottom:24px;gap:16px}.page .editor-sidebar .tabs button{font-size:11px;line-height:18px;padding:0 0 12px;min-height:30px}.page .editor-sidebar .action-buttons{margin:16px 0 0}.page .editor-sidebar #selection-hint{margin:0;color:var(--muted);font-size:11px;line-height:18px}.page .editor-sidebar .action-picker{gap:8px}.page .audio-panel{padding:24px;margin-bottom:24px}.page .toolbar{padding:12px 16px;gap:4px;min-height:56px}.page .toolbar select{height:32px;font-size:11px;padding:6px 8px}.page .toolbar button{height:32px;min-height:32px;padding:6px 8px;border-radius:6px}.page .rich-editor{padding:32px;line-height:1.85;font-size:16px}.page .editor-footer{padding:12px 24px;line-height:16px;font-size:10px}.page .billing-stats{gap:24px;margin:0 0 24px}.page .credit-filters{margin:16px 0;gap:16px}.page .credit-filters label{margin:0}.page .live-options{gap:24px;align-items:end}.page .live-options>label{margin:0}.page .recorder{padding:32px 16px}.page .live-status-row{margin-top:24px}.page .live-caption-text{margin-top:16px}.page .portal-help details{padding:24px 0}.page .portal-help details:first-child{border-top:0;padding-top:0}.page .portal-app-download .app-download-head{margin-bottom:24px}.page .portal-help p{margin:16px 0}.page .portal-help button{margin-top:0}
@media(min-width:1500px){.page{padding:32px 40px 56px}}
@media(max-width:1100px){.page{padding:32px 24px 48px}.page .editor-layout{gap:16px}}
@media(max-width:850px){.topbar{height:48px;padding:8px 16px}.page{padding:8px 24px 40px}.sidebar{padding-top:24px}.page .editor-layout{gap:0}.page .editor-sidebar .side-panel{margin-top:24px}.page .toolbar{top:0}}
@media(max-width:600px){.page{padding:8px 16px 32px}.page h1:not(.rich-editor *){font-size:24px;line-height:32px}.page .page-intro,.page>.section-head{margin-bottom:24px}.page .card,.page .side-panel,.page .upload-card{padding:20px}.page .upload-tabs{gap:20px}.page .upload-controls{gap:16px;margin-top:20px}.page .dropzone{padding:24px 16px;min-height:160px}.page .list-controls{margin-top:24px;gap:16px}.page .document-grid{gap:16px}.page .quick-workspace{padding:0}.quick-toolbar{padding:16px;gap:8px;flex-wrap:wrap}.quick-toolbar>.action-buttons{max-width:none;min-width:210px}.quick-toolbar>#quick-save{margin-left:auto}.quick-workspace .quick-box{padding:20px;min-height:260px}.quick-workspace .quick-box+.quick-box{border-left:0;border-top:1px solid var(--line)}.quick-workspace .quick-box textarea,.quick-workspace .quick-box .result-text{min-height:150px}.page .rich-editor{padding:24px 20px}.page .toolbar{padding:8px;gap:2px}.page .title-input{font-size:21px}.page .editor-head{gap:12px}.page .editor-footer{padding:12px 20px}.page .audio-panel{padding:20px}}
@media print{.page{padding:0}.page .rich-editor{padding:0}.page .editor-footer{display:none}}
.sidebar-account>.portal-disclosure-body{width:100%;min-width:0;max-width:none}.sidebar-account .account-language{display:flex;flex-wrap:wrap;gap:8px;margin:4px 12px;padding:12px 0}.sidebar-account .account-language #locale{width:100%;font-size:12px}.credit-history-head{margin-bottom:16px}.page .credit-history-head h2{margin:0}.credit-history-head>.row{align-items:center}.credit-history-head summary{padding:10px 8px;min-height:40px}.credit-history-head .portal-disclosure-body.credit-filters{margin:0;padding:16px;width:240px;gap:16px}.credit-history-head .portal-disclosure-body label{width:100%}.credit-history-head input{width:100%}.portal-menu [data-alert-hint]{font-size:11px;padding:8px 12px;margin:0;max-width:240px}
.account-form>.portal-disclosure{padding:4px 0}.account-form>.portal-disclosure>.portal-disclosure-body{padding-top:16px;gap:16px}.account-form .portal-disclosure summary{font-size:12px}
/* Shared control geometry and a single outline icon style. */
:root{--portal-icon:16px;--portal-icon-stroke:1.8}
button,.btn{vertical-align:middle;align-items:center;justify-content:center;gap:8px}
button>svg,.btn>svg,.action-buttons svg{display:block;width:var(--portal-icon);height:var(--portal-icon);flex:0 0 var(--portal-icon);stroke-width:var(--portal-icon-stroke)}
.sidebar .nav-item svg,.sidebar-account>summary>svg{display:block;width:18px;height:18px;flex:0 0 18px;stroke-width:var(--portal-icon-stroke)}
.page button.icon{height:40px;min-height:40px;width:40px;padding:0;flex-shrink:0}
.page .toolbar button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-height:32px;padding:0;flex:0 0 32px;font:inherit}
.page .toolbar button>svg{width:16px;height:16px;flex:0 0 16px;stroke-width:1.8}
.page .toolbar .portal-disclosure-body>button{width:32px;min-height:32px;padding:0}
.page .quick-box button{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.page .tab{display:inline-flex;align-items:center;justify-content:center;gap:8px;line-height:20px}
.page .tab>svg{width:16px;height:16px;flex:0 0 16px;stroke-width:1.8}
.portal-disclosure>summary{position:relative;display:flex;align-items:center;gap:8px;min-height:40px;line-height:20px}
.portal-disclosure>summary::after{content:'';display:block;width:12px;height:12px;flex:0 0 12px;margin:0;background:currentColor;clip-path:polygon(15% 30%,50% 65%,85% 30%,95% 40%,50% 85%,5% 40%);transform:translateY(-1px)}
.portal-disclosure[open]>summary::after{transform:rotate(180deg) translateY(-1px)}
.sidebar-account>summary::after{margin-inline-start:auto}
.upload-more>summary{justify-content:flex-end}.upload-options>summary{gap:8px}
.toolbar .portal-menu>summary{height:32px;min-height:32px;padding:0 8px;font-size:11px}
.record-circle>svg{width:24px;height:24px;flex:0 0 24px}
.portal-menu>.portal-disclosure-body>button.icon{width:100%;justify-content:flex-start;padding:10px 12px}
@media(pointer:coarse){.page .toolbar button,.page .toolbar .portal-disclosure-body>button{width:40px;height:40px;min-height:40px;flex-basis:40px}.page .toolbar .portal-menu>summary{height:40px;min-height:40px}.page .toolbar{flex-wrap:wrap}}
.page .doc-card .doc-menu{top:12px;right:12px}.page .doc-card .doc-select{top:24px;right:64px;width:16px;height:16px;margin:0}
.page .check{align-items:center;gap:8px}.page .check input[type=checkbox]{width:16px;height:16px;flex:0 0 16px;margin:0}.page .correction-consents .check{align-items:flex-start}
.page .upload-tabs>.tab{height:48px;min-height:48px;padding:0 4px}.upload-more>summary{height:48px;min-height:48px;padding:0 4px}.page .editor-sidebar .tabs .tab{height:40px;min-height:40px;padding:0 4px}
.page .search svg{width:16px;height:16px;stroke-width:1.8;top:50%;left:14px;transform:translateY(-50%);pointer-events:none}
.page .search input:not([type=checkbox]):not([type=range]):not(.title-input){height:40px;padding:9px 12px 9px 40px}
.page .search:dir(rtl) svg{left:auto;right:14px}
.page .search:dir(rtl) input:not([type=checkbox]):not([type=range]):not(.title-input){padding-left:12px;padding-right:40px}
.page .toolbar .portal-disclosure-body{display:grid;grid-template-columns:repeat(5,32px);gap:4px;width:max-content;padding:8px}
.topbar .menu-toggle,.page .recorder button:not(.record-circle){width:40px;height:40px;min-height:40px;padding:0}
@media(pointer:coarse){.page .toolbar .portal-disclosure-body{grid-template-columns:repeat(5,40px)}}
/* Keep text baselines and account menu rows on the same spacing grid. */
.quick-workspace .quick-box textarea,.quick-workspace .quick-box .result-text{margin:0}
.quick-workspace .quick-box textarea:focus{box-shadow:inset 0 -2px 0 var(--blue)}
.sidebar-account>.portal-disclosure-body{padding:8px;gap:4px}
.sidebar-account>.portal-disclosure-body>.nav-item{height:40px;min-height:40px;padding:10px 12px;font-size:13px;line-height:20px;gap:12px}
.sidebar-account .account-language{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;justify-content:normal;text-align:start;gap:8px;margin:4px 12px;padding:12px 0;font-size:12px;line-height:18px;font-weight:500}
.sidebar-account .account-language #locale{display:block;width:100%;height:36px;margin:0;padding:7px 10px;font-size:12px;line-height:20px}

/* Direct transcription tabs and aligned live settings. */
.page .upload-tabs{flex-wrap:wrap;row-gap:4px}
.page .live-options{display:block;margin-bottom:24px}
.live-controls{display:flex;align-items:flex-end;gap:12px}
.page .live-controls>label{width:240px;max-width:100%;min-width:0;margin:0}
.page .live-controls select{width:100%;min-width:0}
.page #live-options-toggle{height:40px;min-height:40px;padding:0 12px;flex-shrink:0;color:var(--muted)}
#live-options-toggle[aria-expanded=true]>svg{transform:rotate(180deg)}
.live-settings-panel{margin-top:20px;padding-top:20px;border-top:1px solid var(--line)}
.page .live-settings-panel label{width:100%;margin:0}
.page .live-settings-panel textarea{width:100%;min-height:80px;resize:vertical}
.page .live-recorder{padding:24px;gap:12px}
.page .live-recorder .record-time{font-size:32px;line-height:40px;font-variant-numeric:tabular-nums}
.page .live-recorder .wave-bars{height:24px}
.page .live-status-row{margin-top:16px}
.page .live-caption-text:empty{display:none}
.sidebar-account>.portal-disclosure-body{max-height:calc(100dvh - 96px);overflow-y:auto}
@media(max-width:600px){.page .live-controls>label{flex:1;width:auto}.page .live-recorder{padding:24px 16px}}

/* Official Lucide outlines, using the same optical weight in every control. */
:root{--portal-icon-stroke:2}
.ui-icon{display:block;stroke-width:2;fill:none;flex-shrink:0;overflow:visible}
.page .toolbar button>.ui-icon,.page .tab>.ui-icon,.page .search .ui-icon{stroke-width:2}
.brand-mark{width:40px;height:40px;display:block;background:none;border-radius:0}
.brand-mark img{display:block;width:100%;height:100%;object-fit:contain}
.sidebar .brand{height:40px;gap:10px}
.portal-app-download .brand-mark{width:56px;height:56px;background:none;border-radius:0}
.recovery-brand .brand-mark{width:44px;height:44px}
.portal-disclosure>summary::after{width:16px;height:16px;flex-basis:16px;clip-path:none;background:currentColor;mask:var(--portal-chevron) center/contain no-repeat;-webkit-mask:var(--portal-chevron) center/contain no-repeat;transform:none}
.portal-disclosure[open]>summary::after{transform:rotate(180deg)}
.sidebar-account>summary::after{margin-inline-start:auto}
.account-menu>summary::after{display:none}
.studio-segment [data-up],.studio-segment [data-down],.audio-edit-transport [id$="-cursor"],.audio-edit-item .audio-edit-apply{width:36px;height:36px;min-height:36px;padding:0;flex-shrink:0}
.studio-segment [data-up]>.ui-icon,.studio-segment [data-down]>.ui-icon{width:16px;height:16px}
.tutorial-play .ui-icon{width:24px;height:24px}
.account-settings{width:100%;max-width:640px;display:flex;flex-direction:column;gap:24px}
.account-profile .stack{gap:24px}
.account-photo-row{display:flex;align-items:center;gap:16px}
.account-photo{width:48px;height:48px;font-size:15px;overflow:hidden;flex-shrink:0}
.account-photo img{width:100%;height:100%;object-fit:cover}
.account-profile label,.account-profile .account-email{margin:0;gap:8px}
.account-profile input,.account-profile select{width:100%}
.account-email{display:flex;flex-direction:column;align-items:flex-start;font-size:14px;overflow-wrap:anywhere}
.account-field-label{font-size:12px;font-weight:500;color:var(--muted)}
.account-email-change{margin-top:-12px}
.account-email-change .portal-disclosure-body{padding-top:16px}
.card[data-wa-history]{margin-top:20px}
.wa-history-filters{display:grid;grid-template-columns:minmax(180px,2fr) repeat(2,minmax(120px,1fr)) auto;align-items:end;gap:12px;margin-bottom:16px}
.wa-history-filters label{margin:0}
.wa-history-filters button{height:42px}
.wa-message-list{display:grid;gap:12px}
.wa-message{border:1px solid var(--border,#e2e5ef);border-radius:12px;padding:16px;min-width:0}
.wa-message-outgoing{background:var(--panel-soft,#f8f9ff)}
.wa-message header{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:12px;font-size:12px;color:var(--muted,#7d8193)}
.wa-message header strong{color:var(--text,#252936);font-size:14px}
.wa-message header time{margin-inline-start:auto}
.wa-message-state{padding:3px 8px;border-radius:6px;background:var(--bg,#f3f4f8)}
.wa-message-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}
.wa-message .hint,.wa-message-events p{margin:8px 0;overflow-wrap:anywhere}
.wa-message audio{width:min(100%,480px);height:40px;margin:8px 0}
.wa-message details{margin-top:12px;font-size:12px;color:var(--muted,#7d8193)}
.wa-message summary{cursor:pointer}
.wa-message-events{margin-top:8px}
.wa-message-url{word-break:break-all}
@media(max-width:700px){.wa-history-filters{grid-template-columns:1fr 1fr}.wa-history-filters label:first-child{grid-column:1/-1}.wa-message header time{width:100%;margin:0}}
.account-save-row{display:flex;justify-content:flex-start}
.account-options{padding-block:0!important}
.account-setting-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 0;font-size:14px;font-weight:500}
.account-replacements{border-top:1px solid var(--line)}
.account-replacements>summary{min-height:72px;font-size:14px;font-weight:500;color:var(--text)}
.account-replacements>summary::after{margin-inline-start:auto}
.account-replacements>.portal-disclosure-body{padding:0 0 24px}
.account-admin-link{align-self:flex-start;font-size:12px;color:var(--muted);padding:0 4px}
.credit-help p{font-size:14px;line-height:1.7;margin:0 0 20px}
.credit-help dl{margin:0 0 20px}
.credit-help dl>div{display:grid;grid-template-columns:120px minmax(0,1fr);gap:16px;padding:16px 0;border-top:1px solid var(--line)}
.credit-help dt{font-size:13px;font-weight:500}
.credit-help dd{font-size:13px;margin:0}
.credit-help dd small{display:block;font-size:11px;line-height:1.6;margin-top:6px;color:var(--muted)}
.credit-help p:last-child{margin-bottom:0}
@media(max-width:600px){.account-settings{gap:16px}.account-setting-row{padding:20px 0}.credit-help dl>div{grid-template-columns:100px minmax(0,1fr);gap:12px}}

:root{--portal-chevron:url("data:image/svg+xml,%3Csvg%20class%3D%22lucide%20lucide-chevron-down%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22m6%209%206%206%206-6%22%20%2F%3E%20%3C%2Fsvg%3E")}

/* Contact support: one form, one action. */
.contact-support{max-width:640px}
.contact-support .stack{gap:24px}
.contact-support label{margin:0;gap:8px}
.contact-support input,.contact-support textarea{width:100%}
.contact-support textarea{min-height:180px;resize:vertical}
.contact-support-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.contact-support-footer>.hint{font-size:12px;overflow-wrap:anywhere}
.contact-support-status{margin:0;font-size:13px;line-height:1.6}
@media(max-width:600px){.contact-support-footer{align-items:flex-start;flex-direction:column}.contact-support-footer>button{align-self:flex-end}}

.whatsapp-login{display:grid;gap:12px;margin-top:20px;text-align:center}.whatsapp-login>.btn{width:100%;justify-content:center}.whatsapp-login .hint{margin:0}.wa-signin-code{font-size:28px;font-weight:650;letter-spacing:.16em;font-variant-numeric:tabular-nums}.daily-free-meter{display:grid;gap:12px}.daily-free-meter progress{width:100%;height:8px;accent-color:var(--primary,#5b4ee0)}

.mcp-consent{max-width:600px;margin-inline:auto}.mcp-consent li{margin-block:10px}

.mcp-settings{max-width:920px;gap:24px}.mcp-settings .card{padding:24px}.mcp-settings h2,.mcp-settings p{margin:0}.mcp-settings input[readonly]{min-width:180px;flex:1}.mcp-platforms{display:flex;gap:4px;border-bottom:1px solid var(--border,#e5e7ef);overflow-x:auto;padding-bottom:8px}.mcp-platforms button{border:0;background:transparent;white-space:nowrap;color:var(--muted,#777d8f);padding:9px 14px}.mcp-platforms button[aria-selected=true]{background:var(--primary-soft,#f0edff);color:var(--primary,#5753d8)}.mcp-steps{padding-inline-start:22px;margin:12px 0 20px;display:grid;gap:14px;line-height:1.7}.mcp-config{border:1px solid var(--border,#e5e7ef);border-radius:10px;overflow:hidden;margin-bottom:20px}.mcp-config>.row{padding:10px 14px;border-bottom:1px solid var(--border,#e5e7ef)}.mcp-config pre{margin:0;padding:16px;overflow:auto;background:#f8f9fc;font-size:13px;line-height:1.6}.mcp-official-guide{display:inline-flex;align-items:center;gap:6px;font-size:13px}.mcp-official-guide svg{width:14px;height:14px}.mcp-availability{background:#f8f9fc;border-radius:8px;padding:12px 14px;font-size:13px;color:var(--muted,#777d8f)}
@media(max-width:600px){.mcp-settings .card{padding:20px}.mcp-platforms button{padding-inline:12px}.mcp-settings .row>input{width:100%;flex-basis:100%}}
