/* WRKDOCS Universal Workspace — clarity first, no ads or fake upload behavior */
:root{color-scheme:light;--ink:#182f4b;--muted:#657891;--blue:#2865da;--line:#dfe7f1;--wash:#f7f9fc;--white:#fff;--green:#087b65}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f8fafc;color:var(--ink);font:14px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}
button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.53}[hidden]{display:none!important}
:focus-visible{outline:3px solid #83b2ff;outline-offset:2px}
.shell{width:min(1560px,100%);margin:0 auto;padding:0 24px}
.skip{position:absolute;left:-9000px;top:0;background:#fff;padding:12px;z-index:100}.skip:focus{left:16px}
.site-head{background:#fff;border-bottom:1px solid var(--line);position:relative;z-index:3}
.head-inner{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:22px}
.brand{font-size:30px;font-weight:850;letter-spacing:-2.5px;line-height:1;color:#152c4f;white-space:nowrap}.brand span{color:#457ef1}.brand b{color:#df6f93}
.site-head nav{display:flex;align-items:center;gap:19px;flex-wrap:wrap;justify-content:flex-end}
.site-head nav a{font-size:12px;color:#52677f;font-weight:750;white-space:nowrap}
.intro{display:flex;justify-content:space-between;align-items:flex-end;gap:30px;margin:28px auto 20px}
.eyebrow{font-weight:800;font-size:10px;letter-spacing:1.4px;color:#3768c1;margin:0 0 5px}
.intro h1{font-size:clamp(30px,3.5vw,43px);letter-spacing:-1.5px;line-height:1.16;margin:0 0 6px}
.intro p{margin:0;color:var(--muted);font-size:13px;max-width:690px}.trust{display:flex;flex-wrap:wrap;gap:10px}.trust span{white-space:nowrap;background:#ecf7f1;color:#116b52;font-size:11px;padding:5px 11px;border-radius:18px;font-weight:700}
.workspace{display:grid;grid-template-columns:minmax(210px,.74fr) minmax(360px,1.85fr) minmax(285px,1fr);align-items:stretch;gap:15px;min-height:650px}
.pane{background:#fff;border:1px solid var(--line);border-radius:16px;min-width:0;box-shadow:0 4px 20px #20385907;overflow:hidden}
.pane-header{padding:20px 19px 13px;display:flex;align-items:center;gap:10px;justify-content:space-between;border-bottom:1px solid #edf1f6}
.pane-title{font-weight:800;font-size:14px;letter-spacing:-.1px;margin:0}.pane-subtitle{font-size:11px;color:#7a8b9f;margin:3px 0 0}.number{font-weight:800;color:#4972b9;background:#ecf3ff;border-radius:8px;padding:3px 8px;font-size:11px}
.pane-content{padding:17px 18px}.section-label{font-size:10px;letter-spacing:1px;color:#77899f;font-weight:850;text-transform:uppercase;margin:0 0 10px}
.file-list,.result-list{display:grid;gap:9px;list-style:none;padding:0;margin:0}
.file-entry,.result-entry{display:flex;align-items:center;gap:9px;background:#f7f9fe;border:1px solid #e4eaf4;border-radius:12px;padding:10px;min-width:0}
.file-entry.selected{border-color:#a8c2f7;background:#f1f6ff}
.file-entry button.remove-file{border:0;background:transparent;color:#7388a1;font-size:18px;padding:2px 5px;border-radius:6px}
.file-icon{height:35px;width:35px;display:grid;place-items:center;flex-shrink:0;border-radius:9px;background:#e6efff;font-size:17px}
.file-info{min-width:0;flex:1}.file-info strong{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-info small{display:block;font-size:10px;color:#8493a6}
.empty-state{font-size:12px;color:#8190a5;line-height:1.6;margin:8px 0 18px}
.action{display:inline-flex;justify-content:center;align-items:center;gap:7px;min-height:40px;padding:9px 13px;border:1px solid #d6e1f1;background:#fff;color:#294f87;font-weight:760;font-size:12px;border-radius:10px}
.action:hover{background:#f4f8ff;text-decoration:none}.action.primary{background:#3269e4;color:white;border-color:#3269e4}.action.primary:hover{background:#2659ca}.action.block{width:100%}
.stack{display:grid;gap:9px}.rule{margin:19px 0;border:0;border-top:1px solid #edf1f5}
.result-entry{display:block}.result-row{display:flex;align-items:center;gap:9px}.result-row strong{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.result-actions{display:flex;gap:6px;margin-top:9px;flex-wrap:wrap}.result-actions button{border:1px solid #dbe5f4;background:#fff;padding:5px 8px;font-size:11px;font-weight:700;color:#2e5aa0;border-radius:7px}
.center-pane{display:flex;flex-direction:column;min-height:650px}
.center-heading{padding:19px 22px 13px;border-bottom:1px solid #edf1f6;display:flex;align-items:center;justify-content:space-between;gap:12px}
.center-heading h2{margin:0;font-size:17px;letter-spacing:-.5px}.center-heading small{color:var(--muted);font-size:11px}
.workspace-body{padding:19px 21px 24px;flex:1;display:flex;flex-direction:column;gap:15px}
.dropzone{background:linear-gradient(130deg,#f8fbff,#f2f7ff);border:2px dashed #bed0ed;border-radius:16px;display:grid;place-items:center;text-align:center;padding:36px 24px;min-height:228px;transition:background .15s,border-color .15s;position:relative}
.dropzone.dragging{background:#e7f2ff;border-color:#497ce0}
.upload-symbol{width:55px;height:55px;border-radius:17px;background:#e0ebfd;color:#2b67da;display:grid;place-items:center;font-size:26px;margin-bottom:9px}
.dropzone h3{font-size:17px;letter-spacing:-.35px;margin:0 0 3px}.dropzone p{font-size:12px;color:#6e8097;margin:0 0 15px}
.dropzone .subline{font-size:10px;color:#8b9db2;margin:12px 0 0}
.preview-panel{min-height:190px;display:flex;flex-direction:column;border:1px solid #e6ecf4;background:#fafbff;border-radius:13px;overflow:hidden}
.preview-top{padding:11px 15px;border-bottom:1px solid #e7edf6;display:flex;gap:12px;justify-content:space-between;align-items:center}.preview-top strong{font-size:12px}.preview-top span{font-size:11px;color:#7c8b9e}
.preview-content{flex:1;min-height:155px;max-height:435px;overflow:auto;display:grid;place-items:center;padding:14px;text-align:center}
.preview-content img{max-width:100%;max-height:375px;object-fit:contain;border-radius:6px}
.preview-content iframe{width:100%;height:390px;border:0;border-radius:7px;background:white}
.preview-content pre{white-space:pre-wrap;word-break:break-word;text-align:start;width:100%;max-width:750px;margin:0;font:12px/1.6 ui-monospace,monospace}
.preview-content .icon-preview{font-size:38px;display:block;margin-bottom:8px}.preview-content p{font-size:12px;color:#72839a;margin:4px 0}
.status{background:#eff5ff;color:#2a5696;padding:11px 13px;border-radius:10px;font-size:12px;min-height:40px;margin:0}
.status.error{background:#fff0f1;color:#ae344c}.status.success{background:#e8f8f0;color:#136e52}
.workspace-note{font-size:11px;color:#8190a3;line-height:1.55;margin:0}
.tools-pane{display:flex;flex-direction:column;min-height:650px}
.tool-config{padding:15px 18px 16px;border-bottom:1px solid #e7eef7;background:#f9fbff}
.tool-config h3{font-size:14px;margin:0 0 3px}.tool-config p{font-size:11px;color:#788aa1;margin:5px 0 12px}
.tool-config label{display:block;font-weight:720;font-size:11px;margin:10px 0 5px;color:#415c7c}
.tool-config input:not([type=checkbox]),.tool-config select,.tool-config textarea,.tool-search{display:block;width:100%;min-height:39px;padding:8px 11px;font-size:12px;border:1px solid #cfdaea;border-radius:9px;background:#fff;color:#173251}
.tool-config textarea{min-height:95px;resize:vertical}
.inline-options{display:grid;grid-template-columns:1fr 1fr;gap:9px}.tool-config .help{color:#70839d;font-size:10px;line-height:1.5}
.tool-config .action{margin-top:13px}
.tool-config .coming{padding:10px;background:#edf3fc;border:1px solid #dfebf9;border-radius:9px}
.tool-list-head{padding:15px 18px 7px}.tool-list-head h3{font-size:13px;margin:0 0 8px}
.category-row{display:flex;gap:6px;flex-wrap:wrap;margin:9px 0}
.category{border:1px solid #d8e1ee;padding:5px 9px;border-radius:9px;color:#566b87;background:#fff;font-size:10px;font-weight:780}
.category.active{color:#fff;background:#2d68dd;border-color:#2d68dd}
.tool-list{overflow-y:auto;flex:1;min-height:200px;max-height:480px;padding:0 10px 12px}
.tool-choice{display:flex;align-items:center;gap:3px;padding:0 3px}.tool-choice>.tool-item{flex:1;min-width:0}.tool-choice>a{flex:0 0 22px;text-align:center;font-size:17px;color:#7d96b9;border-radius:6px}.tool-choice>a:hover{color:#2865da;background:#eef5ff}.tool-item{display:flex;align-items:center;gap:9px;width:100%;min-height:43px;padding:9px 10px;text-align:start;background:#fff;border:1px solid transparent;border-radius:9px;color:#3d526d;font-size:11.5px;font-weight:740;margin-bottom:3px}
.tool-item:hover{background:#f2f6fc}.tool-item.active{background:#eaf2ff;border-color:#bad2ff;color:#1d55b4}
.tool-item small{font-size:9px;font-weight:600;color:#8998ac;margin-left:auto;white-space:nowrap}.tool-item .tool-emoji{font-size:17px;min-width:25px;text-align:center}
.bottom-note{padding:15px 0 12px}.bottom-note p{font-size:12px;color:#6e8094}.bottom-note a{font-weight:780}
footer{border-top:1px solid #e2e9f3;background:#fff;margin-top:12px;padding:19px 0;font-size:11px;color:#74869d}footer .foot{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}footer a{margin-left:14px}
@media(max-width:1120px){.workspace{grid-template-columns:minmax(188px,.73fr) minmax(300px,1.6fr) minmax(255px,1fr);gap:10px}.shell{padding:0 16px}.intro{align-items:flex-start;flex-direction:column;gap:12px}.site-head nav{gap:10px}.tool-list{max-height:390px}}
@media(max-width:830px){.workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.center-pane{grid-column:1/-1;grid-row:1;min-height:0}.tools-pane{grid-column:2;grid-row:2;min-height:0}.results-pane{grid-column:1;grid-row:2}.tool-list{max-height:410px}.center-heading{padding:16px}.workspace-body{padding:15px}.intro{margin-top:23px}}
@media(max-width:540px){.shell{padding:0 12px}.head-inner{padding:10px 0;gap:10px;align-items:flex-start}.brand{font-size:25px}.site-head nav{gap:8px}.site-head nav a{font-size:10px}.intro{margin:21px auto 15px}.intro h1{font-size:30px}.trust{gap:6px}.trust span{font-size:10px}.workspace{grid-template-columns:1fr;gap:11px}.center-pane{grid-column:1;grid-row:1}.tools-pane{grid-column:1;grid-row:2}.results-pane{grid-column:1;grid-row:3}.dropzone{min-height:188px;padding:24px 12px}.pane-header{padding:15px}.pane-content{padding:14px}.tool-list{max-height:295px}.preview-content iframe{height:260px}.bottom-note{padding:8px 0}}
@media print{.workspace,.site-head,.intro,.bottom-note,footer{display:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.dropzone{transition:none}}


/* WRKDOCS Workspace v2 — calmer navigation, prominent featured actions, AI and embedded editors. */
.workspace{grid-template-columns:minmax(245px,.94fr) minmax(390px,1.85fr) minmax(290px,1fr)}
.tools-pane{grid-column:1}.center-pane{grid-column:2}.results-pane{grid-column:3}
.mode-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 14px}
.mode-tabs{display:flex;gap:6px;background:#ebf1fa;border:1px solid #dce6f3;border-radius:12px;padding:4px}
.mode-tab{background:transparent;border:0;color:#58708e;border-radius:9px;padding:9px 17px;font-weight:800;font-size:12px}
.mode-tab.active,.mode-tab[aria-pressed=true]{background:#fff;color:#1d5dcc;box-shadow:0 2px 7px #213c6514}
.mode-help{font-size:12px;font-weight:750}
.featured-top{display:flex;align-items:end;justify-content:space-between;gap:10px;margin:0 0 11px}
.section-eyebrow{display:block;font-size:10px;font-weight:830;letter-spacing:1.15px;color:#4c71ac}
.featured-top h2{margin:0;font-size:19px;letter-spacing:-.5px}
.featured-top a{font-size:11px;font-weight:760;color:#4571ba}
.featured-strip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin-bottom:20px}
.featured-tile{min-width:0;display:flex;align-items:flex-start;flex-direction:column;gap:4px;text-align:start;background:#fff;border:1px solid #dfe7f2;border-radius:12px;padding:13px 11px;min-height:126px;box-shadow:0 3px 12px #23426f09;transition:transform .15s,border-color .15s}
.featured-tile:hover{border-color:#8caee9;transform:translateY(-1px);background:#f9fbff}
.featured-icon{font-size:22px;width:39px;height:39px;display:grid;place-items:center;background:#edf4ff;border-radius:11px;margin-bottom:3px}
.featured-tile strong{font-size:11px;line-height:1.35;color:#203c60}
.featured-tile small{font-size:10px;line-height:1.4;color:#7c8fa6}
.tool-list{max-height:660px;padding:0 11px 12px}
.tools-pane .pane-header{padding-bottom:12px}
.tools-pane .pane-subtitle{max-width:200px}
.results-pane .tool-config{background:linear-gradient(145deg,#f8fbff,#fff)}
.results-pane .pane-content{padding-top:16px}
.results-pane .tool-config .coming p{margin:6px 0}
.embedded-panel{flex:1;min-height:550px;display:flex;flex-direction:column;background:#fff}
.embedded-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;background:#f5f9ff;border-bottom:1px solid #dfe8f6}
.embedded-top strong{font-size:13px}
.embedded-top p{font-size:11px;line-height:1.5;color:#698098;max-width:510px;margin:4px 0 0}
.embedded-controls{display:flex;gap:7px;flex-wrap:wrap}
.embedded-controls .action{min-height:34px;padding:7px 10px}
#embeddedToolFrame{display:block;width:100%;border:0;background:white;flex:1;min-height:690px}
.ai-experience{margin-bottom:22px;background:#fff;border:1px solid #dfe8f4;border-radius:16px;overflow:hidden}
.ai-experience-head{padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:15px;background:linear-gradient(110deg,#f0f5ff,#fff)}
.ai-experience-head h2{font-size:25px;letter-spacing:-.7px;margin:4px 0 5px}
.ai-experience-head p{color:#637993;font-size:12px;margin:0;max-width:660px}
.ai-experience-head a{white-space:nowrap;font-size:12px;font-weight:800}
#aiModeFrame{width:100%;display:block;border:0;height:840px;background:white}
.tool-list-head{padding-top:16px}
.tool-config .action.primary{min-height:44px}
.results-pane .file-list{max-height:175px;overflow-y:auto}
@media(max-width:1180px){.workspace{grid-template-columns:minmax(205px,.92fr) minmax(315px,1.6fr) minmax(260px,1fr);gap:10px}.featured-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.featured-tile{min-height:112px}}
@media(max-width:830px){.workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.center-pane{grid-column:1/-1;grid-row:1}.tools-pane{grid-column:1;grid-row:2}.results-pane{grid-column:2;grid-row:2}.featured-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.embedded-panel{min-height:520px}#embeddedToolFrame{min-height:630px}}
@media(max-width:540px){.mode-top{align-items:stretch}.mode-tabs{flex:1}.mode-tab{flex:1;padding:8px}.mode-help{display:none}.featured-top h2{font-size:17px}.featured-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.featured-tile{min-height:101px;padding:11px}.featured-icon{height:31px;width:31px;font-size:18px}.featured-tile strong{font-size:11px}.featured-tile small{font-size:10px}.workspace{grid-template-columns:1fr}.center-pane{grid-column:1;grid-row:1}.tools-pane{grid-column:1;grid-row:2}.results-pane{grid-column:1;grid-row:3}.ai-experience-head{flex-wrap:wrap;padding:17px}#aiModeFrame{height:680px}.embedded-top{padding:12px}.embedded-controls .action{font-size:11px}#embeddedToolFrame{min-height:700px}}
@media(prefers-reduced-motion:reduce){.featured-tile{transition:none}}


.smart-suggestions{background:#f5f9ff;border:1px solid #dfeaf9;border-radius:11px;padding:11px 10px;margin:0 0 15px}
.smart-suggestions .suggest-title{font-size:11px;font-weight:820;color:#3764a2;margin:0 0 7px}
.suggest-chips{display:flex;flex-wrap:wrap;gap:6px}
.suggest-chip{font-size:10px;line-height:1.35;text-align:start;font-weight:750;padding:6px 9px;background:#fff;border:1px solid #d7e4f6;border-radius:8px;color:#2857a2}
.suggest-chip:hover{background:#eaf3ff}
