/* DokuTakt inline apps: production-only visual harmonization.
 * Scope limited to newly introduced #doku-processing-app and #doku-office-inline.
 * Never affects approved Transcribe, Meeting, homepage or original Dashboard styles.
 */
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) {
  --dt-form-ink: #182235;
  --dt-form-muted: #536078;
  --dt-form-border: #dce2ed;
  --dt-form-purple: #5431de;
  color: var(--dt-form-ink) !important;
  font-size: 14px;
  line-height: 1.5;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-head {
  align-items: flex-start;
  margin-bottom: 22px;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-head .eyebrow {
  color: #3c9782 !important;
  font-size: 11px !important;
  line-height: 1.5;
  letter-spacing: .10em;
  font-weight: 800;
  margin-bottom: 8px;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-head h2 {
  color: #162038 !important;
  opacity: 1 !important;
  font-size: clamp(23px,2.4vw,34px) !important;
  line-height: 1.18 !important;
  letter-spacing: -.034em !important;
  font-weight: 800 !important;
  margin: 0 0 10px;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-head p:not(.eyebrow) {
  color: #4f5e75 !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  max-width: 810px;
  margin: 0;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-auth {
  background: #f9f8ff !important;
  border: 1px solid #e6e2ff !important;
  border-radius: 16px;
  padding: clamp(15px,2.3vw,24px);
  gap: 16px;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-auth-copy strong {
  color: #202942 !important;
  font-size: 16px !important;
  line-height: 1.4;
  font-weight: 750;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-auth-copy span {
  color: #5e687d !important;
  font-size: 13px !important;
  line-height: 1.55;
  margin-top: 5px;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-auth-fields {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  align-items: stretch;
  gap: 11px;
  width: 100%;
}
body.dokutakt-redesign #doku-office-inline .ta-auth-fields {
  grid-template-columns: repeat(3,minmax(0,1fr));
}
body.dokutakt-redesign #doku-office-inline .ta-auth-fields > .ta-terms {
  grid-column: 1 / -1;
  margin: 0;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-auth-fields > .button {
  width: 100%;
  min-height: 44px;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-url-label {
  display: grid;
  gap: 8px;
  color: #344054 !important;
  font-size: 13px !important;
  line-height: 1.45;
  font-weight: 700 !important;
  margin: 0 0 16px;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-url-label > span {
  color: #26314a !important;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-url-label small,
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-drop small {
  color: #68768f !important;
  font-size: 12px !important;
  line-height: 1.55;
  font-weight: 450;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) :is(
  .ta-url-label input:not([type=checkbox]):not([type=file]),
  .ta-url-label select,
  .ta-url-label textarea,
  .ta-auth-fields input:not([type=checkbox]):not([type=file]),
  #of-fields input:not([type=checkbox]):not([type=file]),
  #of-fields select,
  #of-fields textarea
) {
  display: block;
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 46px;
  padding: 11px 14px !important;
  border: 1px solid #d4dbe8 !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: #1f2937 !important;
  box-shadow: 0 1px 2px rgba(20,29,49,.035);
  font: inherit !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  letter-spacing: normal;
  outline-offset: 2px;
  color-scheme: light;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) :is(.ta-url-label textarea,#of-fields textarea) {
  min-height: 98px;
  resize: vertical;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) :is(
  .ta-url-label input,
  .ta-url-label textarea,
  .ta-url-label select,
  .ta-auth-fields input,
  #of-fields input,
  #of-fields textarea
)::placeholder {
  color: #8290a5 !important;
  opacity: 1;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) :is(
  input:not([type=checkbox]):not([type=file]),
  textarea,select
):focus-visible {
  border-color: #6846e9 !important;
  outline: 3px solid rgba(107,76,224,.16) !important;
  outline-offset: 0;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-drop {
  padding: 26px 17px;
  margin: 4px 0 18px;
  min-height: 158px;
  border: 1.5px dashed #a99aed !important;
  border-radius: 16px;
  background: #f8f5ff !important;
  transition: border-color .15s ease,background-color .15s ease;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-drop:hover,
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-drop:focus-within {
  background: #f1ecff !important;
  border-color: #5431de !important;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-drop strong {
  font-size: 14px !important;
  color: #28344c !important;
  line-height: 1.35;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-chosen {
  font-size: 12px !important;
  overflow-wrap: anywhere;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-badge {
  padding: 7px 13px;
  font-size: 11px !important;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-account {
  font-size: 13px !important;
  padding-bottom: 15px;
  margin-bottom: 21px;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) :is(.ta-job,.ta-results) {
  background: #faf9ff;
  border: 1px solid #e5e0fa;
  border-radius: 14px;
  padding: 18px;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-job-head {
  font-size: 14px !important;
  align-items: center;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-job-head span {
  font-size: 13px !important;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-terms {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 12.5px !important;
  line-height: 1.55;
  color: #4a5970 !important;
  margin: 14px 0;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) input[type=checkbox] {
  appearance: auto !important;
  display: inline-block !important;
  flex: 0 0 18px;
  width: 18px !important;
  min-width: 18px;
  height: 18px !important;
  min-height: 18px;
  margin: 1px 0 0;
  accent-color: #5533dc;
  opacity: 1;
  vertical-align: top;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-terms a {
  color: #5030cc !important;
  text-decoration: underline;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) :is(.ta-status,.ta-msg) {
  font-size: 13px !important;
  line-height: 1.5 !important;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-outputs {
  gap: 9px;
  margin: 12px 0 22px;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-chip {
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 13px !important;
  font-weight: 650;
  line-height: 1.3;
}
body.dokutakt-redesign #doku-office-inline .db-kpis {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
}
body.dokutakt-redesign #doku-office-inline .db-kpis > div {
  background: #f8f6ff !important;
  border: 1px solid #e7e2fa !important;
  padding: 14px;
  min-width: 0;
}
body.dokutakt-redesign #doku-office-inline .db-kpis span {
  font-size: 12px !important;
  color: #56637c !important;
}
body.dokutakt-redesign #doku-office-inline .db-kpis strong {
  font-size: 17px !important;
  overflow-wrap: anywhere;
}
body.dokutakt-redesign #doku-office-inline .db-h3 {
  color: #1c2841 !important;
  font-size: 18px !important;
  font-weight: 760 !important;
  line-height: 1.3;
  margin: 22px 0 14px;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .button {
  font-size: 13px !important;
  font-weight: 750;
  min-height: 43px;
  border-radius: 10px;
  padding: 10px 17px;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-results a {
  display: inline-flex;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  align-items: center;
  justify-content: center;
  margin: 4px !important;
}
body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) :is(.ta-auth[hidden],.ta-job[hidden],.ta-status[hidden],.ta-results[hidden],#dp-app[hidden],#of-app[hidden]) {
  display:none !important;
}
@media (max-width: 930px) {
 body.dokutakt-redesign #doku-office-inline .ta-auth-fields {grid-template-columns:repeat(2,minmax(0,1fr))}
 body.dokutakt-redesign #doku-office-inline .ta-auth-fields > .ta-terms {grid-column:1 / -1}
}
@media (max-width: 680px) {
 body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) {font-size:14px}
 body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline).ta-card {padding:20px 16px;border-radius:17px}
 body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-head {flex-direction:row;gap:10px}
 body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-head h2 {font-size:24px!important}
 body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-head p:not(.eyebrow) {font-size:13.5px!important}
 body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-auth-fields,
 body.dokutakt-redesign #doku-office-inline .ta-auth-fields,
 body.dokutakt-redesign #doku-office-inline .db-kpis {grid-template-columns:minmax(0,1fr)}
 body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-auth-fields > *,
 body.dokutakt-redesign #doku-office-inline .ta-auth-fields > .ta-terms {grid-column:1/-1}
 body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-auth-fields .button,
 body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .actions .button {width:100%}
 body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-card {padding:17px}
 body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-outputs {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-chip {width:100%;white-space:normal;min-width:0}
 body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-job {padding:14px}
 body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-results {padding:14px}
}
@media (max-width: 375px) {
 body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-head {flex-direction:column}
 body.dokutakt-redesign :is(#doku-processing-app,#doku-office-inline) .ta-outputs {grid-template-columns:minmax(0,1fr)}
}

/* Respect HTML hidden on EVERY inline form element, including conditional angle/password labels. */
body.dokutakt-redesign #doku-processing-app [hidden],
body.dokutakt-redesign #doku-office-inline [hidden] { display:none !important; }

/* 2026-11-05: readable typography for approved Transcribe/Meeting layouts.
   No layout redesign; bring label and control sizes in line with other apps. */
body.dokutakt-redesign :is(#app:has(#ta-app),#meeting-app) .ta-head h2{
  font-size:clamp(23px,2.5vw,33px)!important;line-height:1.2!important;
  letter-spacing:-.025em;color:#17243f!important
}
body.dokutakt-redesign :is(#app:has(#ta-app),#meeting-app) .ta-head p:not(.eyebrow){
  font-size:14px!important;line-height:1.55!important;color:#536078!important
}
body.dokutakt-redesign :is(#app:has(#ta-app),#meeting-app) :is(.ta-account,.ta-balance,.ta-auth-copy span){
  font-size:13px!important;line-height:1.5!important
}
body.dokutakt-redesign :is(#app:has(#ta-app),#meeting-app) :is(.ta-drop strong,.ta-record strong,.ta-job-head,.ta-url-label){
  font-size:14px!important;line-height:1.45!important;color:#26344d
}
body.dokutakt-redesign :is(#app:has(#ta-app),#meeting-app) :is(.ta-drop small,.ta-record small,.ta-chosen,.ta-job-head span,.ta-terms,.ta-label,.ta-msg){
  font-size:12px!important;line-height:1.5!important;color:#607089
}
body.dokutakt-redesign :is(#app:has(#ta-app),#meeting-app) :is(.ta-chip,.ta-tab,.ta-record-actions .button,.ta-url-row .button){
  font-size:13px!important;min-height:40px;line-height:1.4
}
body.dokutakt-redesign :is(#app:has(#ta-app),#meeting-app) :is(.ta-url-row input,.ta-auth-fields input){
  min-height:45px!important;font-size:14px!important;padding:11px 13px!important;
  border:1px solid #d5dbe8!important;border-radius:10px!important;background:#fff!important;color:#26344d!important
}
body.dokutakt-redesign :is(#app:has(#ta-app),#meeting-app) :is(.ta-drop,.ta-job){
  border-radius:14px;padding:clamp(18px,2vw,25px)
}
body.dokutakt-redesign :is(#app:has(#ta-app),#meeting-app) :is(.ta-status,.ta-results,.ta-result){
  font-size:13px!important;line-height:1.55!important
}
body.dokutakt-redesign :is(#app:has(#ta-app),#meeting-app) [hidden]{display:none!important}
@media(max-width:680px){
  body.dokutakt-redesign :is(#app:has(#ta-app),#meeting-app) .ta-head h2{font-size:23px!important}
  body.dokutakt-redesign :is(#app:has(#ta-app),#meeting-app) .ta-record-actions{width:100%}
  body.dokutakt-redesign :is(#app:has(#ta-app),#meeting-app) .ta-record-actions .button{flex:1 1 135px;min-width:0}
}

/* Ensure delivered audio/meeting files remain legible on white cards. */
body.dokutakt-redesign :is(#app:has(#ta-app),#meeting-app) .ta-result{
  color:#26344d!important;background:#fff!important;
  border:1px solid #e2e7f0!important;padding:12px 14px!important;
  gap:12px!important;flex-wrap:wrap
}
body.dokutakt-redesign :is(#app:has(#ta-app),#meeting-app) .ta-result span{
  color:#26344d!important;font-size:13px!important;
  overflow-wrap:anywhere;flex:1 1 180px
}
body.dokutakt-redesign :is(#app:has(#ta-app),#meeting-app) .ta-result :is(button,a.ta-download){
  display:inline-flex;align-items:center;justify-content:center;
  min-height:40px!important;padding:10px 15px!important;
  font-size:13px!important;font-weight:750!important;border-radius:10px!important;
  border:0!important;background:#5131db!important;color:white!important;
  text-decoration:none!important
}
