.workspace-readiness-indicator[hidden],
.ui-policy-notice[hidden] {
  display: none !important;
}

.workspace-readiness-indicator {
  position: fixed;
  z-index: 11000;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
}

.workspace-readiness-indicator::before {
  position: absolute;
  inset: 0 auto 0 -35%;
  width: 35%;
  content: "";
  background: #1769d2;
  box-shadow: 0 0 .7rem rgba(23, 105, 210, .55);
  animation: workspace-readiness-slide 1.1s ease-in-out infinite;
}

@keyframes workspace-readiness-slide {
  to { transform: translateX(390%); }
}

.dataweb-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

textarea[data-tab-navigation="ready"] {
  outline: 2px solid #d97706 !important;
  outline-offset: 2px !important;
}

html[data-file-input-policy="disabled"] input[type="file"],
html[data-file-input-policy="disabled"] [data-drop-zone],
html[data-file-input-policy="disabled"] [data-file-drop],
html[data-file-input-policy="disabled"] [data-file-panel],
html[data-file-input-policy="disabled"] [data-file-picker],
html[data-file-input-policy="disabled"] [data-upload],
html[data-file-input-policy="disabled"] #upload-button,
html[data-file-input-policy="disabled"] .drop-zone,
html[data-file-input-policy="disabled"] .dropzone,
html[data-file-input-policy="disabled"] .file-drop-zone,
html[data-file-input-policy="disabled"] .file-dropzone,
html[data-file-input-policy="disabled"] .file-panel,
html[data-file-input-policy="disabled"] .file-picker,
html[data-file-input-policy="disabled"] .file-upload,
html[data-file-input-policy="disabled"] .upload-button,
html[data-file-input-policy="disabled"] .upload-panel {
  display: none !important;
}

html[data-donation-ui="disabled"] :is(#donation-link, #donation-button, [data-donation], [id*="donation" i], [class*="donation" i]),
html[data-advertising-ui="disabled"] :is(#ad-slot, #ad-container, [data-ad-slot], [id^="ad-" i], [class^="ad-" i], [class*=" ad-" i], [id*="advertisement" i], [class*="advertisement" i]) {
  display: none !important;
}

.dataweb-download-link {
  position: fixed !important;
  left: -10000px !important;
  bottom: 0 !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.ui-policy-notice {
  position: fixed;
  z-index: 10000;
  right: 1rem;
  bottom: 1rem;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  max-width: min(26rem, calc(100vw - 2rem));
  padding: .8rem 1rem;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: .75rem;
  color: #fff;
  background: #1257b7;
  box-shadow: 0 .75rem 2rem rgba(8, 38, 84, .28);
  font: 600 .9rem/1.4 "IBM Plex Sans", "Noto Sans TC", sans-serif;
  overflow-wrap: anywhere;
  pointer-events: none;
  animation: ui-policy-notice-in 160ms ease-out both;
}

@keyframes ui-policy-notice-in {
  from { opacity: 0; transform: translateY(.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-readiness-indicator::before {
    left: 0;
    width: 100%;
    opacity: .7;
    animation: none;
  }
  .ui-policy-notice { animation: none; }
}

@media (max-width: 600px) {
  .ui-policy-notice {
    right: max(1rem, env(safe-area-inset-right));
    left: 1rem;
    left: max(1rem, env(safe-area-inset-left));
    max-width: none;
  }
}

@media (forced-colors: active) {
  .workspace-readiness-indicator::before {
    background: Highlight;
    box-shadow: none;
  }
  textarea[data-tab-navigation="ready"] { outline-color: Highlight !important; }
  .ui-policy-notice {
    border-color: CanvasText;
    color: CanvasText;
    background: Canvas;
    box-shadow: none;
  }
}

@media print {
  .workspace-readiness-indicator,
  .ui-policy-notice { display: none !important; }
}

@media print {
  .dataweb-workspace-delay {
    display: none !important;
  }
}

button[data-workspace-empty-disabled='true'],
button[data-workspace-input-empty-disabled='true'],
button[data-workspace-transition-disabled='true'] {
  cursor: not-allowed;
  opacity: 0.52;
}

[data-workspace-slot='output'][aria-busy='true'] {
  cursor: progress;
}

[data-workspace-slot='output'][data-workspace-tabindex-owned='true'] {
  cursor: text;
  user-select: text;
  -webkit-user-select: text;
}

[data-workspace-slot='output'][data-workspace-tabindex-owned='true']:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

button[data-workspace-action]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

button[data-workspace-action] {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

[data-workspace-slot] {
  box-sizing: border-box;
  caret-color: currentColor;
  font-variant-ligatures: none;
  min-inline-size: 0;
  overscroll-behavior: contain;
  scroll-margin-block-start: 6rem;
  scrollbar-gutter: stable;
  tab-size: 2;
  unicode-bidi: plaintext;
}

[data-workspace-slot='input'][contenteditable='true'] {
  overflow: auto;
  white-space: pre;
}

[data-workspace-slot]::placeholder {
  color: currentColor;
  opacity: 0.52;
}

[data-workspace-slot][aria-invalid='true'] {
  border-color: var(--danger, #b42318);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--danger, #b42318) 24%, transparent);
}

@media (pointer: coarse) {
  button[data-workspace-action] {
    min-block-size: 44px;
    min-inline-size: 44px;
  }
}

[data-workspace-slot='output'][data-output-state='empty'][data-empty-placeholder]::before {
  color: currentColor;
  content: attr(data-empty-placeholder);
  opacity: 0.52;
  pointer-events: none;
}

[data-workspace-slot='input'][data-input-state='empty'][data-empty-placeholder]::before {
  color: currentColor;
  content: attr(data-empty-placeholder);
  opacity: 0.52;
  pointer-events: none;
}

.dataweb-workspace-delay {
  background: var(--surface, Canvas);
  border: 1px solid var(--warning, #b54708);
  border-radius: 0.75rem;
  box-shadow: 0 0.75rem 2rem rgb(0 0 0 / 0.16);
  color: var(--text, CanvasText);
  inset-block-start: max(4.5rem, calc(env(safe-area-inset-top) + 1rem));
  inset-inline-start: 50%;
  max-inline-size: min(36rem, calc(100vw - 2rem));
  padding: 0.75rem 1rem;
  pointer-events: none;
  position: fixed;
  transform: translateX(-50%);
  z-index: 1200;
}

.dataweb-workspace-delay[hidden] {
  display: none !important;
}

@media (forced-colors: active) {
  button[data-workspace-empty-disabled='true'],
  button[data-workspace-input-empty-disabled='true'],
  button[data-workspace-transition-disabled='true'] {
    color: GrayText;
    opacity: 1;
  }


  [data-workspace-slot][aria-invalid='true'] {
    border-color: Mark;
    box-shadow: none;
    outline: 2px solid Mark;
    outline-offset: 2px;
  }

  [data-workspace-slot]::placeholder {
    color: GrayText;
    opacity: 1;
  }

  [data-workspace-slot][data-empty-placeholder]::before {
    color: GrayText;
    opacity: 1;
  }

  .dataweb-workspace-delay {
    background: Canvas;
    border-color: Highlight;
    box-shadow: none;
    color: CanvasText;
  }
}
#donate-button[aria-disabled="true"],
.donate-button[aria-disabled="true"],
.ad-slot[aria-hidden="true"] {
  display: none !important;
}
#active-tool-name,
#tools-heading {
  width: fit-content;
  max-width: 100%;
}

/* Keep shared blue controls readable against the dark workspace surfaces. */
html[data-dark] .quickbar button,
html[data-dark] .of-breadcrumb-root,
html[data-dark] #of-wrap-toggle {
  color: #93c5fd;
}

.editor-surface {
  display: block;
  flex: 1 1 auto;
  height: clamp(22rem, 55vh, 42rem);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.editor-surface > textarea,
.editor-surface > .of-editor-frame,
.editor-surface > .of-editor-frame > textarea {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.editor-surface > textarea,
.editor-surface > .of-editor-frame > textarea {
  resize: none;
  overflow: auto;
}

.editor-surface > .of-editor-frame {
  overflow: hidden;
}

.tool-view > .switch-tools {
  min-width: 0;
  margin: 0 0 1rem;
}

.tool-view > .switch-tools .switch-tool-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
}

.tool-view > .switch-tools [data-tool] {
  flex: 0 0 auto;
}

.tool-view > .switch-tools [data-tool][aria-current="page"] {
  border-color: var(--of-accent, #0f766e);
  color: var(--of-accent, #0f766e);
  box-shadow: inset 0 -2px 0 currentColor;
}

@media (max-width: 480px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .topbar,
  .top-actions,
  .tool-view,
  .tool-title-row,
  .tool-title-row > div,
  .tool-commandbar,
  .tool-commandbar > div {
    min-width: 0;
  }

  .topbar {
    column-gap: 0.5rem;
  }

  .topbar .brand {
    gap: 0.45rem;
    font-size: 1rem;
  }

  .top-actions {
    gap: 0.35rem;
    justify-self: end;
  }

  .top-actions .language-picker select {
    width: 4.75rem;
    min-width: 0;
  }

  .tool-view > .switch-tools .switch-title {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .tool-commandbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .tool-commandbar > div:last-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }

  .tool-commandbar > div:last-child > button,
  .tool-commandbar > div:last-child > details {
    width: 100%;
    min-width: 0;
  }

  .tool-commandbar .of-shortcut-hint {
    justify-self: center;
  }

  .editor-surface {
    height: clamp(18rem, 52vh, 32rem);
  }
}

/* yourconvertor-green-brand:start */
:root {
  --of-blue:#16875a; --of-blue-dark:#0f6f49; --of-cyan:#2dbb79;
  --of-ink:#153126; --of-muted:#61766b; --of-border:#cfe0d5; --of-canvas:#f2f8f4; --of-soft:#e7f6ed;
  --paper:var(--of-canvas); --panel:#fff; --ink:var(--of-ink); --muted:var(--of-muted); --line:var(--of-border);
  --navy:#0d3024; --accent:#35bd78; --accent-2:var(--of-blue); --soft-purple:#e7f6ed; --soft-green:#e5f7ec; --soft-blue:#edf8f1; --focus-ring:#159164;
}
:root[data-dark] {
  --of-blue:#45d28a; --of-blue-dark:#27ad70; --of-cyan:#65dfa0;
  --of-ink:#e8f7ee; --of-muted:#9eb9aa; --of-border:#294638; --of-canvas:#09150f; --of-soft:#173326;
  --paper:var(--of-canvas); --panel:#10231a; --ink:var(--of-ink); --muted:var(--of-muted); --line:var(--of-border);
  --navy:#e8f7ee; --accent:#53d993; --accent-2:#45d28a; --soft-purple:#173326; --soft-green:#143025; --soft-blue:#132b21; --focus-ring:#53d993;
}
body { background:radial-gradient(circle at 12% 18%,rgba(37,174,109,.11),transparent 29rem),var(--of-canvas) !important; }
body .topbar { border-bottom-color:var(--of-border); background:color-mix(in srgb,var(--panel) 94%,#dff5e7) !important; }
body .quickbar { border-bottom-color:var(--of-border); background:var(--panel) !important; box-shadow:0 5px 18px rgba(11,75,49,.08); }
:root[data-dark] body .topbar,
:root[data-dark] body .quickbar { background:#0c2118 !important; border-color:#274638; }
body .brand-mark,
body .tool-title-icon { background:linear-gradient(135deg,#0d7750,#36c981) !important; box-shadow:0 7px 20px rgba(20,139,89,.25) !important; }
body :is(.primary-button,.primary-actions button,#run-button,#run-arrow-button,.category-tabs button.active,#favorites-filter[aria-pressed="true"]) {
  border-color:#0d6341 !important; background:linear-gradient(180deg,#0d6341,#09472f) !important; color:#fff !important; box-shadow:0 6px 18px rgba(18,126,81,.24) !important;
}
body #run-button { background:#0d6341 !important; background-image:none !important; }
body #download-button:not(:disabled) { border-color:#277854 !important; color:#0b633f !important; background:#f0fff6 !important; }
:root[data-dark] body #download-button:not(:disabled) { border-color:#47705d !important; color:#b7d9ff !important; background:#173326 !important; }
body :is(.primary-button,.primary-actions button,#run-button,#run-arrow-button):hover { background:#0d6341 !important; }
body :is(.product-nav button,.quickbar button,.back-button,.text-button,.editor-panel footer button,.switch-title button):hover { color:var(--of-blue) !important; background:var(--of-soft) !important; }
body :is(.tool-card,.quick-studio,.tool-commandbar,.editor-panel,.trust-grid article):hover { border-color:#53bb84; }
body :is(input,textarea,select,button,a):focus-visible { outline-color:#39c982 !important; }
body .header-search:focus-within { border-color:#2ab473 !important; box-shadow:0 0 0 3px rgba(42,180,115,.15) !important; }
body .page-kicker,
body .privacy-link,
body .of-privacy-card { color:#0f7650 !important; border-color:#a9dfc0 !important; background:#eaf8ef !important; }
:root[data-dark] body :is(.page-kicker,.privacy-link,.of-privacy-card) { color:#7de5ad !important; border-color:#2c654b !important; background:#123024 !important; }
body .toast { background:#0c3023 !important; }
#datasets-view { --ds-panel:#10261c; --ds-line:#2c4a3a; --ds-text:#edf9f2; --ds-muted:#9eb8aa; --ds-blue:#25ae70; }
#datasets-view .datasets-hero { background:radial-gradient(circle at 90% 15%,rgba(37,174,112,.22),transparent 34%),linear-gradient(135deg,#123226,#0c1d15 58%,#113427) !important; }
#datasets-view .dataset-action.primary { background:#16875a !important; border-color:#35bd78 !important; }
/* yourconvertor-green-brand:end */

/* pro-tools-second-row:start */
.pro-tools-row {
  position: relative;
  z-index: 14;
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 3.65rem;
  padding: .55rem max(1rem, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid var(--of-border);
  background: color-mix(in srgb, var(--panel) 96%, #dff5e7);
  overflow-x: auto;
  scrollbar-width: thin;
}
.pro-tools-row > * { flex: 0 0 auto; min-height: 2.65rem; }
.pro-tools-row-label { order: 0; display:inline-flex; align-items:center; color:#16875a; font:800 .7rem/1 ui-monospace,monospace; letter-spacing:.12em; }
.pro-tools-row .ycc-studio-launch { order: 1; }
.pro-tools-row .yco-launch { order: 2; }
.pro-tools-row .ypo-launch { order: 3; }
.pro-tools-row .pro-row-pricing { order: 4; }
html[data-dark] .pro-tools-row-label { color:#65dfa0; }
.pro-row-pricing {
  display: inline-flex;
  align-items: center;
  gap: .58rem;
  padding: .55rem .9rem;
  border: 1px solid #49ad78;
  border-radius: .6rem;
  color: #0f6845;
  background: #e8f7ee;
  font-weight: 800;
  text-decoration: none;
}
.pro-row-pricing:hover { border-color: #16875a; color: #fff; background: #16875a; }
.pro-row-pricing-mark {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.65rem;
  border-radius: .45rem;
  color: #fff;
  background: linear-gradient(135deg,#0d7750,#36c981);
  font: 900 .8rem/1 ui-monospace,monospace;
}
html[data-dark] .pro-tools-row { border-color: #274638; background: #0c2118; }
html[data-dark] .pro-row-pricing { border-color: #3d795b; color: #9af0bf; background: #143025; }
html[data-dark] .pro-row-pricing:hover { color: #08150e; background: #65dfa0; }
@media (max-width: 700px) {
  .pro-tools-row { padding-inline: .75rem; }
  .pro-tools-row > :is(.ycc-studio-launch,.yco-launch,.ypo-launch) span:last-child { display: inline; }
}
/* pro-tools-second-row:end */

/* pro-row-pricing-alignment:start */
.pro-tools-row { justify-content:center; }
.pro-tools-row :is(.ycc-studio-launch,.yco-launch,.ypo-launch,.pro-row-pricing) {
  min-height:2.9rem;
  border:1px solid #49ad78 !important;
  border-radius:.65rem !important;
  color:#0f6845 !important;
  background:#e8f7ee !important;
  box-shadow:none !important;
  font-weight:800 !important;
}
.pro-tools-row :is(.ycc-studio-launch,.yco-launch,.ypo-launch,.pro-row-pricing):hover {
  border-color:#16875a !important;
  color:#fff !important;
  background:#16875a !important;
}
.pro-tools-row :is(.ycc-launch-mark,.yco-launch-mark,.ypo-launch-mark,.pro-row-pricing-mark) {
  color:#fff !important;
  background:linear-gradient(135deg,#0d7750,#36c981) !important;
}
.plan-title-row { flex-wrap:wrap; }
.plan-upgrade-button {
  display:inline-flex;
  align-items:center;
  min-height:1.9rem;
  padding:.28rem .72rem;
  border:1px solid #49ad78;
  border-radius:999px;
  color:#0f6845;
  background:#e8f7ee;
  font-size:.72rem;
  font-weight:800;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
}
.plan-upgrade-button:hover { border-color:#16875a; color:#fff; background:#16875a; }
html[data-dark] .plan-upgrade-button { border-color:#3d795b; color:#9af0bf; background:#143025; }
html[data-dark] .plan-upgrade-button:hover { color:#08150e; background:#65dfa0; }
@media (max-width:700px) { .pro-tools-row { justify-content:flex-start; } }
/* pro-row-pricing-alignment:end */

/* pro-dialog-theme-sync:start */
:is(.ycc-studio,.yco-dialog,.ypo-dialog) {
  border-color:var(--line) !important;
  color:var(--ink) !important;
  background:var(--panel) !important;
  box-shadow:0 30px 90px color-mix(in srgb,var(--ink) 24%,transparent) !important;
}
:is(.ycc-studio,.yco-dialog,.ypo-dialog)::backdrop {
  background:color-mix(in srgb,#06120c 72%,transparent) !important;
  backdrop-filter:blur(8px);
}
:is(.ycc-head,.yco-head,.ypo-head) {
  border-color:var(--line) !important;
  background:radial-gradient(circle at 82% 15%,color-mix(in srgb,var(--accent) 22%,transparent),transparent 38%),linear-gradient(135deg,var(--soft-green),var(--panel)) !important;
}
:is(.ycc-head,.yco-head,.ypo-head) :is(h2,h3) { color:var(--ink) !important; }
:is(.ycc-head,.yco-head,.ypo-head) :is(p,small) { color:var(--muted) !important; }
:is(.ycc-head,.yco-head,.ypo-head) > button {
  border-color:var(--line) !important;
  color:var(--ink) !important;
  background:var(--panel) !important;
}
:is(.ycc-grid,.yco-body,.ypo-body) {
  background:linear-gradient(150deg,var(--paper),color-mix(in srgb,var(--soft-green) 58%,var(--panel))) !important;
}
:is(.ycc-panel,.yco-input,.yco-output,.ypo-setup,.ypo-results) {
  border-color:var(--line) !important;
  color:var(--ink) !important;
  background:var(--panel) !important;
}
:is(.ycc-studio,.yco-dialog,.ypo-dialog) :is(input,select,textarea) {
  border-color:var(--line) !important;
  color:var(--ink) !important;
  background:var(--paper) !important;
}
:is(.ycc-drop,.yco-drop,.ypo-drop,.ycc-tree,.ycc-file,.ycc-preset-row,.ypo-document,.yco-preview) {
  border-color:var(--line) !important;
  color:var(--ink) !important;
  background:color-mix(in srgb,var(--soft-green) 45%,var(--panel)) !important;
}
:is(.ycc-studio,.yco-dialog,.ypo-dialog) :is(.ycc-muted,.ycc-empty,.ycc-message,.yco-placeholder,.yco-privacy,.ypo-note,.ypo-document span,.yco-drop span,.ypo-drop span,.yco-status-line,.ypo-status span,label) {
  color:var(--muted) !important;
}
:is(.ycc-studio,.yco-dialog,.ypo-dialog) :is(.ycc-actions button,.yco-actions button,.ypo-actions button,[data-save-preset],[data-tree-build]) {
  border-color:var(--line) !important;
  color:var(--ink) !important;
  background:var(--soft-green) !important;
}
:is(.ycc-studio,.yco-dialog,.ypo-dialog) :is(.ycc-primary,.yco-primary,.ypo-primary) {
  border-color:#35bd78 !important;
  color:#fff !important;
  background:linear-gradient(135deg,#0f7049,#2fbd78) !important;
}
:root[data-dark] :is(.ycc-studio,.yco-dialog,.ypo-dialog) {
  --panel:#10231a;
  --paper:#09150f;
  --ink:#e8f7ee;
  --muted:#9eb9aa;
  --line:#294638;
  --soft-green:#143025;
}
/* pro-dialog-theme-sync:end */
