/* EmlogStudio profile article editor.  The editor keeps the existing glass
 * language while giving writing controls a calmer, paper-like reading area. */
.profile-article-editor-panel{--editor-accent:var(--green,#18e276);--editor-ink:var(--text-primary,#edf7f2);--editor-muted:var(--text-muted,#8fa69e);--editor-line:rgba(255,255,255,.1);--editor-panel:rgba(9,23,27,.72);--editor-paper:#101d20}
.emstudio-view-profile .profile-article-editor-panel>.panel-heading{display:flex;align-items:flex-start;margin-bottom:0;padding:0 2px;background:transparent;border:0;box-shadow:none}
.article-editor-panel-heading{align-items:flex-start}
.article-editor-panel-heading .article-editor-quota{display:inline-flex;align-items:center;gap:7px;padding:7px 12px;border:1px solid var(--editor-line);border-radius:999px;color:var(--editor-muted);font-size:.76rem;white-space:nowrap}
.article-editor-panel-heading .article-editor-quota.is-ready{color:var(--editor-accent);border-color:rgba(var(--accent-rgb,24,226,118),.35)}
.article-editor-panel-heading .article-editor-quota.is-error{color:#ff9a9a;border-color:rgba(255,111,111,.35)}
.article-editor-shell{position:relative;min-width:0;margin-top:0}
.article-editor-form{display:block}
.article-editor-topbar{display:flex;align-items:center;gap:18px;min-height:66px;padding:10px 14px 10px 20px;border:1px solid var(--editor-line);border-radius:18px 18px 0 0;background:var(--editor-panel);box-shadow:0 2px 8px rgba(0,0,0,.055)}
.article-editor-title-wrap{flex:1;min-width:0}
.article-editor-title{display:block;width:100%;border:0!important;outline:0!important;background:transparent!important;color:var(--editor-ink);font-size:1.24rem;font-weight:700;letter-spacing:.01em;padding:8px 0}
.article-editor-title::placeholder{color:var(--editor-muted);opacity:.65}
.article-editor-top-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.article-editor-save-state{max-width:155px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--editor-muted);font-size:.74rem;margin-right:4px}
.article-editor-save-state.is-saving{color:#ffd889}.article-editor-save-state.is-success{color:var(--editor-accent)}.article-editor-save-state.is-error{color:#ff9a9a}
.article-editor-action{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:0 12px;border:1px solid transparent;border-radius:10px;font:inherit;font-size:.78rem;font-weight:650;cursor:pointer;transition:color .2s,border-color .2s,background .2s,transform .2s}
.article-editor-action .icon{width:15px;height:15px}.article-editor-action:hover{transform:translateY(-1px)}
.article-editor-action--ghost{background:transparent;color:var(--editor-muted)}.article-editor-action--ghost:hover{color:var(--editor-ink);border-color:var(--editor-line)}
.article-editor-action--secondary{background:rgba(255,255,255,.06);color:var(--editor-ink);border-color:var(--editor-line)}.article-editor-action--secondary:hover{border-color:rgba(var(--accent-rgb,24,226,118),.5);color:var(--editor-accent)}
.article-editor-action--primary{background:var(--editor-accent);color:#06170e;box-shadow:0 7px 18px rgba(var(--accent-rgb,24,226,118),.22)}.article-editor-action--primary:hover{filter:brightness(1.08)}
.article-editor-action[disabled],.article-ai-generate[disabled],.article-ai-save[disabled]{opacity:.5;cursor:not-allowed;transform:none}
.article-editor-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,320px);gap:16px;align-items:start}
.article-editor-main{min-width:0;overflow:hidden;border:1px solid var(--editor-line);border-top:0;border-radius:0 0 18px 18px;background:var(--editor-paper);box-shadow:0 3px 10px rgba(0,0,0,.05)}
.article-editor-toolbar{display:flex;align-items:center;gap:3px;min-height:46px;padding:6px 11px;border-bottom:1px solid var(--editor-line);background:rgba(255,255,255,.025);overflow:auto;scrollbar-width:none}
.article-editor-toolbar::-webkit-scrollbar{display:none}.article-editor-toolbar button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;height:30px;padding:0;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--editor-muted);font:inherit;font-size:.83rem;cursor:pointer;transition:color .18s,background .18s,border-color .18s}.article-editor-toolbar button:hover,.article-editor-toolbar button.is-active{color:var(--editor-accent);background:rgba(var(--accent-rgb,24,226,118),.1);border-color:rgba(var(--accent-rgb,24,226,118),.24)}.article-editor-toolbar button .icon{width:16px;height:16px}.article-editor-toolbar i{display:block;flex:0 0 1px;width:1px;height:19px;margin:0 5px;background:var(--editor-line)}
.article-editor-canvas-wrap{position:relative;min-height:520px}.article-editor-content,.article-editor-preview{min-height:520px;max-height:calc(100vh - 310px);overflow:auto;padding:30px 34px 42px;color:var(--editor-ink);font-size:1rem;line-height:1.9;outline:0;word-break:break-word;scrollbar-color:rgba(255,255,255,.22) transparent}.article-editor-content:empty::before{content:attr(data-placeholder);color:var(--editor-muted);opacity:.58;pointer-events:none}.article-editor-content.is-dragging{outline:2px dashed var(--editor-accent);outline-offset:-12px;background:rgba(var(--accent-rgb,24,226,118),.04)}.article-editor-content h2,.article-editor-content h3,.article-editor-content h4{line-height:1.35;margin:1.3em 0 .55em;color:var(--editor-ink)}.article-editor-content h2{font-size:1.55rem}.article-editor-content h3{font-size:1.28rem}.article-editor-content h4{font-size:1.1rem}.article-editor-content p{margin:.6em 0}.article-editor-content blockquote{margin:1em 0;padding:8px 16px;border-left:3px solid var(--editor-accent);background:rgba(var(--accent-rgb,24,226,118),.07);color:var(--editor-muted)}.article-editor-content ul,.article-editor-content ol{padding-left:1.6em}.article-editor-content a{color:var(--editor-accent);text-decoration:underline;text-underline-offset:3px}.article-editor-content pre{margin:1em 0;padding:14px 16px;border:1px solid var(--editor-line);border-radius:10px;background:#071113;color:#d9f8e6;overflow:auto;font:0.88rem/1.65 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.article-editor-content code{padding:.12em .35em;border-radius:4px;background:rgba(255,255,255,.08);font:0.88em ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.article-editor-content img,.article-editor-preview img{display:block;max-width:100%;height:auto;margin:18px auto;border-radius:12px}.article-editor-preview{background:var(--editor-paper)}.article-editor-preview[hidden]{display:none}.article-editor-drop-hint{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:9px;opacity:0;pointer-events:none;color:var(--editor-accent);background:rgba(3,18,15,.72);transition:opacity .18s;font-size:.9rem}.article-editor-canvas-wrap.is-dragging .article-editor-drop-hint{opacity:1}.article-editor-drop-hint .icon{width:23px;height:23px}
.article-editor-meta{display:flex;align-items:center;gap:15px;min-height:38px;padding:8px 17px;border-top:1px solid var(--editor-line);color:var(--editor-muted);font-size:.72rem}.article-editor-meta span:first-child{color:var(--editor-ink)}.article-editor-unsaved{margin-left:auto;color:#ffd889}.article-editor-unsaved[hidden]{display:none}
.article-editor-sidebar{display:grid;gap:14px;min-width:0}.article-editor-card{border:1px solid var(--editor-line);border-radius:16px;padding:16px;background:var(--editor-panel);box-shadow:0 2px 8px rgba(0,0,0,.05)}.article-editor-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:14px}.article-editor-card header h4{margin:3px 0 0;color:var(--editor-ink);font-size:.98rem}.article-editor-card-kicker{font-size:.68rem;letter-spacing:.12em;color:var(--editor-accent);text-transform:uppercase}.article-editor-ai-state{font-size:.7rem;color:var(--editor-muted)}.article-editor-ai-state.is-working{color:#ffd889}.article-editor-ai-state.is-error{color:#ff9a9a}.article-editor-ai-state.is-success{color:var(--editor-accent)}
.article-editor-ai-state.is-busy{color:#ffd889}.article-editor-ai-state.is-ready{color:var(--editor-accent)}
.article-ai-config{display:grid;gap:9px;padding-bottom:13px;margin-bottom:13px;border-bottom:1px solid var(--editor-line)}.article-ai-config label,.article-ai-key-field,.article-ai-prompt,.article-editor-field{display:grid;gap:6px;color:var(--editor-muted);font-size:.73rem}.article-ai-config label>span,.article-ai-prompt>span,.article-editor-field>span{color:var(--editor-muted)}.article-ai-config input,.article-ai-config select,.article-ai-prompt textarea,.article-editor-field input,.article-editor-field textarea,.article-editor-field select{width:100%;min-height:34px;padding:8px 10px;border:1px solid var(--editor-line);border-radius:8px;outline:0;background:rgba(255,255,255,.055);color:var(--editor-ink);font:inherit;font-size:.78rem;transition:border-color .18s,box-shadow .18s}.article-ai-config input:focus,.article-ai-config select:focus,.article-ai-prompt textarea:focus,.article-editor-field input:focus,.article-editor-field textarea:focus,.article-editor-field select:focus{border-color:rgba(var(--accent-rgb,24,226,118),.62);box-shadow:0 0 0 2px rgba(var(--accent-rgb,24,226,118),.1)}.article-ai-config select,.article-editor-field select{appearance:none}.article-ai-config select option,.article-editor-field select option{background:#142326;color:#edf7f2}.article-ai-config textarea,.article-ai-prompt textarea,.article-editor-field textarea{resize:vertical;line-height:1.55}.article-ai-clear{display:flex!important;align-items:center!important;grid-template-columns:none!important;gap:6px!important;margin-top:-2px;font-size:.7rem!important}.article-ai-clear input{width:14px!important;min-height:14px!important;accent-color:var(--editor-accent)}.article-ai-save,.article-ai-generate,.article-ai-cancel,.article-cover-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:33px;padding:0 10px;border:1px solid var(--editor-line);border-radius:8px;background:rgba(255,255,255,.055);color:var(--editor-ink);font:inherit;font-size:.74rem;cursor:pointer;transition:color .18s,border-color .18s,background .18s}.article-ai-save:hover,.article-cover-actions button:hover{color:var(--editor-accent);border-color:rgba(var(--accent-rgb,24,226,118),.45)}.article-ai-save .icon,.article-ai-generate .icon,.article-cover-actions .icon{width:14px;height:14px}.article-ai-prompt textarea{min-height:93px}.article-ai-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:9px}.article-ai-generate{border-color:transparent;background:var(--editor-accent);color:#06170e;font-weight:700}.article-ai-generate:hover{filter:brightness(1.08)}.article-ai-cancel{color:#ffb6b6}.article-ai-cancel[hidden]{display:none}.article-ai-prompt{margin:0}
.article-settings-collapse{display:inline-flex;align-items:center;justify-content:center;width:27px;height:27px;padding:0;border:0;border-radius:7px;background:transparent;color:var(--editor-muted);cursor:pointer}.article-settings-collapse:hover{color:var(--editor-accent);background:rgba(var(--accent-rgb,24,226,118),.1)}.article-settings-collapse .icon{width:15px;height:15px;transition:transform .2s}.article-settings-collapse[aria-expanded="false"] .icon{transform:rotate(-90deg)}.article-settings-body{display:grid;gap:13px}.article-settings-body[hidden]{display:none}.article-editor-field>span{display:flex;align-items:center;justify-content:space-between}.article-select-wrap{position:relative;display:block}.article-select-wrap select{padding-right:30px}.article-select-wrap>.icon{position:absolute;right:9px;top:50%;width:14px;height:14px;pointer-events:none;transform:translateY(-50%);color:var(--editor-muted)}.article-cover-preview{position:relative;display:flex;align-items:center;justify-content:center;min-height:100px;overflow:hidden;border:1px dashed var(--editor-line);border-radius:10px;background:rgba(255,255,255,.035);color:var(--editor-muted);font-size:.72rem}.article-cover-preview span{display:flex;align-items:center;gap:6px}.article-cover-preview span .icon{width:16px;height:16px}.article-cover-preview img{display:block;width:100%;height:100px;object-fit:cover}.article-cover-actions{display:flex;gap:7px;margin-top:7px}.article-cover-actions button{flex:1}.article-cover-actions button:last-child{color:#ffadad}.article-cover-field input[type="url"]{margin-top:2px}.article-toggle-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.article-toggle-grid label{display:flex;align-items:center;gap:6px;color:var(--editor-muted);font-size:.72rem;cursor:pointer}.article-toggle-grid input{accent-color:var(--editor-accent)}.article-advanced-toggle{padding-top:3px;border-top:1px solid var(--editor-line)}.article-advanced-toggle button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:10px 0;border:0;background:transparent;color:var(--editor-muted);font:inherit;font-size:.73rem;cursor:pointer}.article-advanced-toggle button:hover{color:var(--editor-accent)}.article-advanced-toggle .icon{width:14px;height:14px;transition:transform .2s}.article-advanced-toggle button[aria-expanded="true"] .icon{transform:rotate(180deg)}.article-advanced-body{display:grid;gap:11px}.article-advanced-body[hidden]{display:none}.article-custom-fields{display:grid;gap:9px;padding-top:8px;border-top:1px solid var(--editor-line)}.article-custom-field-row{display:grid;gap:5px}.article-custom-field-row small{color:var(--editor-muted);font-size:.66rem;line-height:1.45}.article-custom-field-row input,.article-custom-field-row textarea{width:100%;padding:8px 9px;border:1px solid var(--editor-line);border-radius:7px;outline:0;background:rgba(255,255,255,.045);color:var(--editor-ink);font:inherit;font-size:.75rem}
.article-editor-link-dialog{width:min(430px,calc(100vw - 32px));padding:0;border:1px solid var(--editor-line);border-radius:16px;background:#102124;color:var(--editor-ink);box-shadow:0 22px 70px rgba(0,0,0,.42)}.article-editor-link-dialog::backdrop{background:rgba(0,0,0,.62)}.article-editor-link-dialog form{display:grid;gap:13px;padding:20px}.article-editor-link-dialog header{display:flex;align-items:center;justify-content:space-between}.article-editor-link-dialog h3{margin:0;font-size:1rem}.article-editor-link-dialog label{display:grid;gap:6px;color:var(--editor-muted);font-size:.76rem}.article-editor-link-dialog input{min-height:36px;padding:8px 10px;border:1px solid var(--editor-line);border-radius:8px;background:rgba(255,255,255,.06);color:var(--editor-ink);outline:0}.article-editor-link-dialog footer{display:flex;justify-content:flex-end;gap:8px}.article-editor-link-dialog button{min-height:32px;padding:0 11px;border:1px solid var(--editor-line);border-radius:8px;background:transparent;color:var(--editor-muted);cursor:pointer}.article-editor-link-dialog button[type="submit"]{background:var(--editor-accent);border-color:transparent;color:#06170e;font-weight:700}.article-editor-link-dialog [data-article-link-close]{font-size:1.15rem}.article-editor-link-error{min-height:18px;margin:0;color:#ff9a9a;font-size:.72rem}
.article-ai-config-note{margin:-2px 0 1px;color:var(--editor-muted);font-size:.67rem;line-height:1.5}
html[data-theme="light"] .profile-article-editor-panel{--editor-ink:#23343b;--editor-muted:#6b7d84;--editor-line:rgba(28,63,73,.14);--editor-panel:#fff;--editor-paper:#fff;--editor-accent:var(--green,#147d4a)}html[data-theme="light"] .article-editor-topbar,html[data-theme="light"] .article-editor-card{box-shadow:0 2px 8px rgba(36,87,104,.045)}html[data-theme="light"] .article-editor-content pre{background:#eef5f3;color:#27473b}html[data-theme="light"] .article-ai-config select option,html[data-theme="light"] .article-editor-field select option{background:#fff;color:#23343b}html[data-theme="light"] .article-editor-link-dialog{background:#fff;color:#23343b}
@media (max-width:1080px){.article-editor-layout{grid-template-columns:minmax(0,1fr)}.article-editor-sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}.article-editor-sidebar .article-editor-settings{grid-column:span 1}}
@media (max-width:720px){.article-editor-topbar{display:grid;gap:8px;padding:13px 14px}.article-editor-top-actions{justify-content:flex-start}.article-editor-save-state{order:5;max-width:none;flex:1}.article-editor-content,.article-editor-preview{min-height:420px;max-height:none;padding:22px 18px 34px}.article-editor-sidebar{grid-template-columns:1fr}.article-editor-meta{flex-wrap:wrap;gap:7px 12px}.article-editor-unsaved{margin-left:0}.article-editor-panel-heading .article-editor-quota{font-size:.68rem}.article-toggle-grid{grid-template-columns:1fr 1fr}}
@media (prefers-reduced-motion:reduce){.article-editor-action,.article-editor-toolbar button,.article-ai-save,.article-ai-generate,.article-cover-actions button{transition:none!important}}

/* AI connection settings --------------------------------------------------
 * Keep the writing prompt in the sidebar, but move the long connection form
 * into a lightweight, theme-aware modal. This is a regular DOM overlay (not
 * the browser's native dialog), so it behaves consistently with PJAX swaps. */
.emstudio-ai-modal-open{overflow:hidden}
.article-ai-config-trigger{white-space:nowrap}
.article-ai-config-trigger[aria-expanded="true"]{color:var(--editor-accent);border-color:rgba(var(--accent-rgb,24,226,118),.38);background:rgba(var(--accent-rgb,24,226,118),.08)}
.article-ai-config-trigger .icon{width:15px;height:15px}
.article-editor-ai .article-ai-prompt textarea{min-height:118px}
.article-ai-modal{--editor-accent:var(--green,#18e276);--editor-ink:var(--text-primary,#edf7f2);--editor-muted:var(--text-muted,#8fa69e);--editor-line:rgba(255,255,255,.1);--editor-panel:rgba(9,23,27,.72);position:fixed;inset:0;z-index:10060;display:grid;place-items:center;padding:clamp(16px,4vw,42px)}
.article-ai-modal[hidden]{display:none!important}
.article-ai-modal-backdrop{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:rgba(1,9,7,.72);backdrop-filter:blur(7px);cursor:pointer}
.article-ai-modal-panel{position:relative;z-index:1;width:min(620px,100%);max-height:min(760px,calc(100vh - 32px));overflow:auto;border:1px solid rgba(153,255,194,.2);border-radius:22px;background:linear-gradient(145deg,rgba(11,28,24,.98),rgba(7,17,17,.98));color:var(--editor-ink);box-shadow:0 30px 90px rgba(0,0,0,.54),inset 0 1px 0 rgba(255,255,255,.08);opacity:0;transform:translateY(12px) scale(.98);transition:opacity .17s ease,transform .17s ease}
.article-ai-modal-panel.is-open{opacity:1;transform:none}
.article-ai-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:23px 25px 15px;border-bottom:1px solid var(--editor-line)}
.article-ai-modal-header h3{margin:4px 0 6px;color:var(--editor-ink);font-size:1.24rem;letter-spacing:.01em}
.article-ai-modal-header p{margin:0;color:var(--editor-muted);font-size:.74rem;line-height:1.55}
.article-ai-modal-close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;padding:0;border:1px solid var(--editor-line);border-radius:10px;background:transparent;color:var(--editor-muted);cursor:pointer;transition:color .18s,border-color .18s,background .18s}
.article-ai-modal-close:hover,.article-ai-modal-close:focus-visible{color:var(--editor-accent);border-color:rgba(var(--accent-rgb,24,226,118),.46);background:rgba(var(--accent-rgb,24,226,118),.08);outline:0}
.article-ai-modal-close .icon{width:17px;height:17px}
.article-ai-modal-form{display:grid;gap:13px;padding:20px 25px 24px}
.article-ai-modal-form .article-ai-config{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 14px;margin:0;padding:0;border:0}
.article-ai-modal-form .article-ai-config .article-ai-key-field{grid-column:1/-1}
.article-ai-modal-form .article-ai-config-note{margin:0;padding:11px 12px;border:1px solid rgba(var(--accent-rgb,24,226,118),.16);border-radius:10px;background:rgba(var(--accent-rgb,24,226,118),.045)}
.article-ai-modal-actions{display:flex;justify-content:flex-end;align-items:center;gap:9px;padding-top:3px}
.article-ai-cancel-config{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 13px;border:1px solid var(--editor-line);border-radius:9px;background:transparent;color:var(--editor-muted);font:inherit;font-size:.76rem;cursor:pointer;transition:color .18s,border-color .18s,background .18s}
.article-ai-cancel-config:hover,.article-ai-cancel-config:focus-visible{color:var(--editor-ink);border-color:rgba(var(--accent-rgb,24,226,118),.35);background:rgba(255,255,255,.04);outline:0}
.article-ai-modal-form .article-ai-save{min-width:148px}

/* The editor and the dashboard navigation share a top baseline, but they do
 * not share a height.  A stretched grid row makes an expanded settings card
 * distribute its extra height into every sibling: the profile menu buttons
 * become tall and the writing canvas grows with the sidebar.  Keep each
 * column at its natural height so only the panel that was expanded changes. */
.profile-layout--write,
.emstudio-view-profile .profile-dashboard-layout.profile-layout--write{align-items:start}
.profile-layout--write>.profile-dashboard-nav,
.emstudio-view-profile .profile-dashboard-layout.profile-layout--write>.profile-dashboard-nav{align-self:start;min-height:0;box-sizing:border-box;align-content:start}
.profile-layout--write>.profile-content,
.emstudio-view-profile .profile-dashboard-layout.profile-layout--write>.profile-dashboard-content{min-width:0;min-height:0;display:block}
.profile-layout--write .profile-article-editor-panel.active,
.profile-layout--write .article-editor-shell,
.profile-layout--write .article-editor-form{display:block;min-height:0}
.profile-layout--write .article-editor-layout{align-items:start;min-height:0}
.profile-layout--write .article-editor-main{display:block;min-height:0}
.profile-layout--write .article-editor-canvas-wrap{min-height:520px}
.profile-layout--write .article-editor-sidebar{align-self:start;align-content:start}
.profile-layout--write .article-editor-sidebar>.article-editor-card{align-self:start}

html[data-theme="light"] .article-ai-modal{--editor-ink:#23343b;--editor-muted:#6b7d84;--editor-line:rgba(28,63,73,.14);--editor-panel:#fff;--editor-accent:var(--green,#147d4a)}
html[data-theme="light"] .article-ai-modal-backdrop{background:rgba(26,55,63,.34);backdrop-filter:blur(8px)}
html[data-theme="light"] .article-ai-modal-panel{border-color:rgba(28,91,74,.18);background:#fff;color:#23343b;box-shadow:0 28px 80px rgba(36,87,104,.22),inset 0 1px 0 rgba(255,255,255,.9)}
html[data-theme="light"] .article-ai-modal-form .article-ai-config-note{background:rgba(20,125,74,.055);border-color:rgba(20,125,74,.16)}
html[data-theme="light"] .article-ai-cancel-config:hover,html[data-theme="light"] .article-ai-cancel-config:focus-visible{background:rgba(28,63,73,.045)}

@media (max-width:1080px){
  .profile-layout--write>.profile-dashboard-nav{min-height:0}
  .profile-layout--write .article-editor-layout{display:grid;min-height:0}
  .profile-layout--write .article-editor-canvas-wrap{min-height:520px}
  .profile-layout--write .article-editor-content,.profile-layout--write .article-editor-preview{height:auto;max-height:none}
}
@media (max-width:620px){
  .article-ai-modal{padding:10px}
  .article-ai-modal-panel{max-height:calc(100vh - 20px);border-radius:18px}
  .article-ai-modal-header{padding:19px 18px 13px}
  .article-ai-modal-form{padding:16px 18px 19px}
  .article-ai-modal-form .article-ai-config{grid-template-columns:1fr;gap:11px}
  .article-ai-modal-form .article-ai-config .article-ai-key-field{grid-column:auto}
  .article-ai-modal-actions{position:sticky;bottom:0;padding:10px 0 0;background:linear-gradient(180deg,transparent,var(--editor-panel) 35%)}
}
@media (prefers-reduced-motion:reduce){
  .article-ai-modal-panel,.article-ai-modal-close,.article-ai-cancel-config{transition:none!important}
}

/* Custom fields ----------------------------------------------------------
 * Mirrors the core Emlog writer's repeatable field rows while keeping the
 * front-end composer free of native dialogs or browser-specific controls. */
.article-custom-fields-shell{margin:0 17px 16px;padding:15px 0 2px;border-top:1px solid var(--editor-line)}
.article-custom-fields-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 11px}
.article-custom-fields-heading>div{min-width:0}
.article-custom-fields-heading h4{margin:3px 0 2px;color:var(--editor-ink);font-size:.9rem;line-height:1.3}
.article-custom-fields-heading p{margin:0;color:var(--editor-muted);font-size:.68rem;line-height:1.45}
.article-custom-field-add{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:0 0 auto;min-height:31px;padding:0 11px;border:1px solid rgba(var(--accent-rgb,24,226,118),.32);border-radius:8px;background:rgba(var(--accent-rgb,24,226,118),.08);color:var(--editor-accent);font:inherit;font-size:.73rem;font-weight:650;cursor:pointer;transition:color .18s,border-color .18s,background .18s,transform .18s}
.article-custom-field-add:hover,.article-custom-field-add:focus-visible{border-color:rgba(var(--accent-rgb,24,226,118),.62);background:rgba(var(--accent-rgb,24,226,118),.14);transform:translateY(-1px);outline:0}
.article-custom-field-add .icon{width:14px;height:14px}
.article-custom-fields{display:grid;gap:9px;padding:0;border:0}
.article-custom-fields[hidden]{display:none}
.article-custom-field-row{display:grid;grid-template-columns:minmax(130px,.36fr) minmax(0,1fr) auto;align-items:start;gap:9px;padding:10px;border:1px solid var(--editor-line);border-radius:10px;background:rgba(255,255,255,.025);transition:border-color .18s,background .18s}
.article-custom-field-row:focus-within{border-color:rgba(var(--accent-rgb,24,226,118),.38);background:rgba(var(--accent-rgb,24,226,118),.035)}
.article-custom-field-row label{display:grid;gap:5px;min-width:0;color:var(--editor-muted);font-size:.68rem}
.article-custom-field-row label>span{line-height:1.2}
.article-custom-field-row input,.article-custom-field-row textarea{width:100%;box-sizing:border-box;min-height:34px;padding:8px 9px;border:1px solid var(--editor-line);border-radius:7px;outline:0;background:rgba(255,255,255,.045);color:var(--editor-ink);font:inherit;font-size:.76rem;line-height:1.45;transition:border-color .18s,box-shadow .18s}
.article-custom-field-row textarea{min-height:62px;resize:vertical;white-space:pre-wrap}
.article-custom-field-row input:focus,.article-custom-field-row textarea:focus{border-color:rgba(var(--accent-rgb,24,226,118),.62);box-shadow:0 0 0 2px rgba(var(--accent-rgb,24,226,118),.1)}
.article-custom-field-row input::placeholder,.article-custom-field-row textarea::placeholder{color:var(--editor-muted);opacity:.62}
.article-custom-field-row small{grid-column:2;color:var(--editor-muted);font-size:.64rem;line-height:1.4}
.article-custom-field-remove{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:32px;margin-top:21px;padding:0 8px;border:1px solid rgba(255,111,111,.28);border-radius:7px;background:transparent;color:#ff9f9f;font:inherit;font-size:.68rem;cursor:pointer;transition:color .18s,border-color .18s,background .18s}
.article-custom-field-remove:hover,.article-custom-field-remove:focus-visible{border-color:rgba(255,111,111,.62);background:rgba(255,111,111,.09);color:#ffbcbc;outline:0}
.article-custom-field-remove .icon{width:13px;height:13px}
html[data-theme="light"] .article-custom-fields-shell{border-color:var(--editor-line)}
html[data-theme="light"] .article-custom-field-row{background:rgba(28,63,73,.025)}
html[data-theme="light"] .article-custom-field-row:focus-within{background:rgba(20,125,74,.035)}
html[data-theme="light"] .article-custom-field-row input,html[data-theme="light"] .article-custom-field-row textarea{background:#fff;color:var(--editor-ink)}
html[data-theme="light"] .article-custom-field-add{background:rgba(20,125,74,.07);border-color:rgba(20,125,74,.26)}
html[data-theme="light"] .article-custom-field-add:hover,html[data-theme="light"] .article-custom-field-add:focus-visible{background:rgba(20,125,74,.12);border-color:rgba(20,125,74,.5)}
@media (max-width:720px){
  .article-custom-fields-shell{margin-left:12px;margin-right:12px}
  .article-custom-fields-heading{align-items:flex-start}
  .article-custom-field-row{grid-template-columns:minmax(0,1fr) auto}
  .article-custom-field-row .article-custom-field-value{grid-column:1/-1}
  .article-custom-field-row small{grid-column:1/-1}
  .article-custom-field-remove{grid-column:2;grid-row:1;margin-top:21px}
}
@media (prefers-reduced-motion:reduce){.article-custom-field-add,.article-custom-field-row,.article-custom-field-remove{transition:none!important}}

/* Keep keyboard focus discoverable without changing the control's geometry.
 * The shared theme intentionally uses a quiet, one-pixel focus ring; the
 * editor controls follow that same rule instead of growing a bright outer
 * border when the caret enters a field. */
.article-editor-shell :is(input,textarea,select):focus,
.article-ai-modal :is(input,textarea,select):focus{border-color:var(--editor-line);box-shadow:none}
.article-editor-shell :is(input,textarea,select):focus-visible,
.article-ai-modal :is(input,textarea,select):focus-visible{outline:1px solid rgba(120,132,138,.9);outline-offset:2px;box-shadow:none}

/* Theme-owned listboxes --------------------------------------------------
 * Keep the actual form values in hidden inputs/selects while presenting a
 * consistent listbox on desktop and mobile. The menu is positioned within
 * the editor stacking context so it is not clipped by the sidebar card. */
.article-ai-config-field{display:grid;gap:6px;min-width:0;color:var(--editor-muted);font-size:.73rem}
.article-custom-select{position:relative;display:block;min-width:0}
.article-custom-select>select{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important;opacity:0!important;pointer-events:none!important}
.article-custom-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:34px;padding:8px 10px;border:1px solid var(--editor-line);border-radius:8px;background:rgba(255,255,255,.055);color:var(--editor-ink);font:inherit;font-size:.78rem;text-align:left;cursor:pointer;transition:border-color .18s,background .18s,color .18s}
.article-custom-select-trigger>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.article-custom-select-trigger .icon{flex:0 0 14px;width:14px;height:14px;color:var(--editor-muted);transition:transform .18s}
.article-custom-select.is-open .article-custom-select-trigger{border-color:rgba(var(--accent-rgb,24,226,118),.55);color:var(--editor-ink);background:rgba(var(--accent-rgb,24,226,118),.07)}
.article-custom-select.is-open .article-custom-select-trigger .icon{transform:rotate(180deg);color:var(--editor-accent)}
.article-custom-select-menu{position:absolute;z-index:10080;top:calc(100% + 6px);left:0;display:block;width:100%;max-height:230px;overflow:auto;padding:5px;border:1px solid rgba(var(--accent-rgb,24,226,118),.25);border-radius:10px;background:#122426;color:var(--editor-ink);box-shadow:0 18px 38px rgba(0,0,0,.36)}
.article-custom-select-menu[hidden]{display:none!important}
.article-custom-select-menu>[role="option"]{display:block;width:100%;min-height:32px;padding:7px 9px;border:0;border-radius:7px;background:transparent;color:var(--editor-muted);font:inherit;font-size:.75rem;line-height:1.35;text-align:left;cursor:pointer;transition:background .16s,color .16s}
.article-custom-select-menu>[role="option"]:hover,.article-custom-select-menu>[role="option"]:focus-visible,.article-custom-select-menu>[role="option"].is-selected{background:rgba(var(--accent-rgb,24,226,118),.12);color:var(--editor-accent);outline:0}
.article-ai-model-field{position:relative}
.article-ai-model-control{position:relative;display:flex;align-items:stretch;gap:7px;min-width:0}
.article-ai-model-control>input{flex:1 1 auto;min-width:0}
.article-ai-model-fetch{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:0 0 auto;min-height:34px;padding:0 10px;border:1px solid var(--editor-line);border-radius:8px;background:rgba(255,255,255,.055);color:var(--editor-muted);font:inherit;font-size:.72rem;cursor:pointer;transition:color .18s,border-color .18s,background .18s}
.article-ai-model-fetch:hover,.article-ai-model-fetch:focus-visible{border-color:rgba(var(--accent-rgb,24,226,118),.48);background:rgba(var(--accent-rgb,24,226,118),.08);color:var(--editor-accent);outline:0}
.article-ai-model-fetch[disabled]{opacity:.55;cursor:wait}
.article-ai-model-fetch.is-loading .icon{animation:emstudio-ai-spin .8s linear infinite}
.article-ai-model-fetch .icon{width:14px;height:14px}
.article-ai-model-menu{right:108px;width:auto;min-width:calc(100% - 108px)}
.article-ai-model-status{display:block;min-height:1em;margin-top:4px;color:var(--editor-muted);font-size:.66rem;line-height:1.35}
.article-ai-model-status[data-state="loading"]{color:#d7bd71}.article-ai-model-status[data-state="error"]{color:#ff9a9a}.article-ai-model-status[data-state="ready"]{color:var(--editor-accent)}
@keyframes emstudio-ai-spin{to{transform:rotate(360deg)}}
html[data-theme="light"] .article-custom-select-trigger{background:#fff;color:var(--editor-ink)}
html[data-theme="light"] .article-custom-select-menu{background:#fff;border-color:rgba(20,125,74,.2);box-shadow:0 18px 38px rgba(36,87,104,.18)}
html[data-theme="light"] .article-custom-select-menu>[role="option"]{color:var(--editor-muted)}
html[data-theme="light"] .article-custom-select-menu>[role="option"]:hover,html[data-theme="light"] .article-custom-select-menu>[role="option"]:focus-visible,html[data-theme="light"] .article-custom-select-menu>[role="option"].is-selected{background:rgba(20,125,74,.1);color:var(--editor-accent)}
html[data-theme="light"] .article-ai-model-fetch{background:#fff}
@media (max-width:620px){.article-ai-model-control{display:grid;grid-template-columns:minmax(0,1fr) auto}.article-ai-model-menu{right:0;width:calc(100% - 102px);min-width:0}}

/* 1.1.5 writing surface refinements --------------------------------------
 * The profile shell starts directly beneath its heading so the editor and
 * navigation column keep the same baseline.  The two settings cards are
 * intentionally square; the surrounding profile layout supplies the visual
 * grouping. */
.article-editor-shell{margin-top:0}
.article-editor-sidebar>.article-editor-ai,
.article-editor-sidebar>.article-editor-settings{border-radius:0}

/* Keep the repeatable custom-field controls aligned even when one value is
 * a multiline textarea.  Textareas may still be resized after the initial
 * equal-height state. */
.article-custom-field-row input,
.article-custom-field-row textarea{height:34px;min-height:34px;padding:6px 9px;box-sizing:border-box;line-height:1.25}
.article-custom-field-row textarea{resize:vertical}

/* Cover dropzone: clicking, pressing Enter/Space, or dropping an image all
 * use the same hidden file input. */
.article-cover-preview{cursor:pointer;isolation:isolate;transition:border-color .18s,background .18s,color .18s,box-shadow .18s}
.article-cover-preview:hover,
.article-cover-preview:focus-visible{border-color:rgba(var(--accent-rgb,24,226,118),.58);background:rgba(var(--accent-rgb,24,226,118),.06);color:var(--editor-accent);outline:0}
.article-cover-preview:focus-visible{box-shadow:0 0 0 2px rgba(var(--accent-rgb,24,226,118),.18)}
.article-cover-preview.is-dragging{border-style:solid;border-color:var(--editor-accent);background:rgba(var(--accent-rgb,24,226,118),.12);color:var(--editor-accent)}
.article-cover-preview .article-cover-placeholder{position:relative;z-index:2;display:flex;align-items:center;gap:7px}
.article-cover-preview .article-cover-placeholder>.icon{width:18px;height:18px}
.article-cover-preview .article-cover-upload-icon{width:13px!important;height:13px!important;margin-left:2px;padding:2px;border:1px solid currentColor;border-radius:50%;box-sizing:content-box}
.article-cover-preview .article-cover-drop-label{position:absolute;z-index:3;inset:auto 0 8px;display:block;text-align:center;opacity:0;font-size:.64rem;pointer-events:none;transition:opacity .18s}
.article-cover-preview.is-dragging .article-cover-drop-label{opacity:1}
.article-cover-preview.has-image .article-cover-placeholder{opacity:0;pointer-events:none}
.article-cover-preview.has-image:hover .article-cover-placeholder,
.article-cover-preview.has-image:focus-visible .article-cover-placeholder{opacity:1}
.article-cover-actions:empty{display:none}
.article-cover-actions button{align-items:center;gap:6px}
.article-cover-actions button .icon{width:14px;height:14px}

@media (prefers-reduced-motion:reduce){
  .article-cover-preview,.article-cover-preview .article-cover-drop-label{transition:none!important}
}

/* 1.1.5 profile navigation: keep the content column independent from the
 * navigation width while allowing the menu to collapse to icon-only mode. */
.emstudio-view-profile .profile-dashboard-layout.profile-layout--nav-collapsed{
  grid-template-columns:minmax(0,1fr) 72px;
}
.emstudio-view-profile .profile-dashboard-nav .profile-nav-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  min-height:28px;
}
.emstudio-view-profile .profile-dashboard-nav .profile-nav-heading .profile-nav-caption{
  min-width:0;
  margin:2px 8px 8px;
}
.emstudio-view-profile .profile-nav-collapse-toggle{
  display:inline-flex!important;
  width:28px!important;
  min-width:28px!important;
  min-height:28px!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 28px!important;
  padding:0!important;
  border:1px solid transparent!important;
  border-radius:8px!important;
  color:#738279!important;
  background:transparent!important;
}
.emstudio-view-profile .profile-nav-collapse-toggle:hover,
.emstudio-view-profile .profile-nav-collapse-toggle:focus-visible{
  color:var(--green-bright)!important;
  background:rgba(255,255,255,.06)!important;
  border-color:rgba(255,255,255,.1)!important;
  outline:none;
}
.emstudio-view-profile .profile-nav-collapse-toggle .icon{
  width:15px!important;
  height:15px!important;
  transition:transform .18s ease;
}
.emstudio-view-profile .profile-dashboard-nav.profile-nav--collapsed{
  padding-inline:8px;
}
.emstudio-view-profile .profile-dashboard-nav.profile-nav--collapsed .profile-nav-heading{
  justify-content:center;
}
.emstudio-view-profile .profile-dashboard-nav.profile-nav--collapsed .profile-nav-caption,
.emstudio-view-profile .profile-dashboard-nav.profile-nav--collapsed button[data-profile-tab] > span:not(.sr-only),
.emstudio-view-profile .profile-dashboard-nav.profile-nav--collapsed .profile-mall-link > span:not(.sr-only),
.emstudio-view-profile .profile-dashboard-nav.profile-nav--collapsed .logout-item > span:not(.sr-only),
.emstudio-view-profile .profile-dashboard-nav.profile-nav--collapsed .profile-feedback-nav-badge,
.emstudio-view-profile .profile-dashboard-nav.profile-nav--collapsed .profile-nav-arrow{
  display:none!important;
}
.emstudio-view-profile .profile-dashboard-nav.profile-nav--collapsed .profile-nav-collapse-toggle .icon{
  transform:rotate(180deg);
}
.emstudio-view-profile .profile-dashboard-nav.profile-nav--collapsed button[data-profile-tab],
.emstudio-view-profile .profile-dashboard-nav.profile-nav--collapsed .profile-mall-link,
.emstudio-view-profile .profile-dashboard-nav.profile-nav--collapsed .logout-item{
  justify-content:center!important;
  width:100%!important;
  min-width:0!important;
  padding-inline:0!important;
}
.emstudio-view-profile .profile-dashboard-nav.profile-nav--collapsed button[data-profile-tab] > .icon:first-child,
.emstudio-view-profile .profile-dashboard-nav.profile-nav--collapsed .profile-mall-link > .icon:first-child,
.emstudio-view-profile .profile-dashboard-nav.profile-nav--collapsed .logout-item > .icon:first-child{
  margin:0!important;
}

/* Day mode uses a dark teal action surface; keep both labels and glyphs at a
 * high-contrast white so the controls remain legible on light backgrounds. */
html[data-theme="light"] .profile-article-editor-panel .article-editor-action--primary,
html[data-theme="light"] .profile-article-editor-panel .article-editor-action--primary .icon,
html[data-theme="light"] .profile-article-editor-panel .article-ai-generate,
html[data-theme="light"] .profile-article-editor-panel .article-ai-generate .icon{
  color:#fff!important;
}

@media (max-width:760px){
  .emstudio-view-profile .profile-dashboard-layout.profile-layout--nav-collapsed{
    grid-template-columns:minmax(0,1fr);
  }
  .emstudio-view-profile .profile-dashboard-nav.profile-nav--collapsed{
    justify-content:flex-start;
    gap:7px;
    padding-inline:9px;
  }
  .emstudio-view-profile .profile-dashboard-nav.profile-nav--collapsed .profile-nav-heading{
    flex:0 0 auto;
  }
  .emstudio-view-profile .profile-dashboard-nav.profile-nav--collapsed button[data-profile-tab],
  .emstudio-view-profile .profile-dashboard-nav.profile-nav--collapsed .logout-item{
    width:42px!important;
    flex:0 0 42px!important;
  }
}

@media (prefers-reduced-motion:reduce){
  .emstudio-view-profile .profile-nav-collapse-toggle .icon{transition:none!important}
}

/* 1.1.5 article clone controls */
.article-ai-clone{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;margin:0 0 14px;padding:11px;border:1px solid var(--editor-line);border-radius:12px;background:rgba(255,255,255,.025)}
.article-ai-clone label{display:grid;min-width:0;gap:5px;font-size:.74rem;color:var(--editor-muted)}
.article-ai-clone label>span{color:var(--editor-muted)}
.article-ai-clone input{display:block;width:100%;min-height:35px;box-sizing:border-box;padding:8px 10px;border:1px solid var(--editor-line);border-radius:8px;outline:0;background:rgba(255,255,255,.055);color:var(--editor-ink);font:inherit;font-size:.76rem;transition:border-color .18s,background .18s}
.article-ai-clone input::placeholder{color:var(--editor-muted);opacity:.7}
.article-ai-clone input:focus{border-color:rgba(var(--accent-rgb,24,226,118),.52);background:rgba(var(--accent-rgb,24,226,118),.045)}
.article-ai-clone-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:35px;padding:0 13px;border:1px solid rgba(var(--accent-rgb,24,226,118),.38);border-radius:8px;background:rgba(var(--accent-rgb,24,226,118),.12);color:var(--editor-accent);font:inherit;font-size:.75rem;font-weight:700;white-space:nowrap;cursor:pointer;transition:background .18s,border-color .18s,color .18s,transform .18s}
.article-ai-clone-button:hover{background:rgba(var(--accent-rgb,24,226,118),.2);border-color:rgba(var(--accent-rgb,24,226,118),.65);transform:translateY(-1px)}
.article-ai-clone-button:disabled{opacity:.55;cursor:wait;transform:none}
.article-ai-clone-button .icon{width:15px;height:15px}
.article-ai-clone-status{grid-column:1/-1;display:block;min-height:1.1em;margin:0;color:var(--editor-muted);font-size:.7rem;line-height:1.4}
.article-ai-clone-status:empty{display:none}
.article-ai-clone-status.is-loading{color:var(--editor-accent)}
.article-ai-clone-status.is-optimizing{color:#ffd889}
.article-ai-clone-status.is-success{color:var(--editor-accent)}
.article-ai-clone-status.is-error{color:#ef8a8a}
html[data-theme="light"] .article-ai-clone{background:rgba(19,86,91,.025)}
html[data-theme="light"] .article-ai-clone input{background:#fff}
.profile-post-ai-button{display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;color:var(--profile-muted,#8fa69e);cursor:pointer;padding:6px;border-radius:8px;transition:color .18s ease,transform .18s ease}
.profile-post-ai-button:hover{color:var(--green-bright,#39ff14);background:transparent;transform:translateY(-1px)}
.emstudio-view-profile .profile-dashboard-content .user-list > div{
  grid-template-columns:63px minmax(0,1fr) auto 34px;
}
.profile-post-ai-button .icon{width:17px;height:17px}
.profile-post-ai-button:focus-visible{outline:1px solid var(--green-bright,#39ff14);outline-offset:2px}
@media (max-width:760px){
  .emstudio-view-profile .profile-dashboard-content .user-list > div{
    grid-template-columns:52px minmax(0,1fr) 34px;
  }
  .emstudio-view-profile .profile-dashboard-content .user-list > div > time{display:none}
}
@media (max-width:620px){
  .article-ai-clone{grid-template-columns:1fr;align-items:stretch}
  .article-ai-clone-button{width:100%}
}

/* 1.1.5 profile article operations */
.emstudio-view-profile .profile-dashboard-content .profile-post-list > .profile-post-row{
  position:relative;
  grid-template-columns:72px minmax(0,1fr) max-content 96px;
  min-width:0;
  align-items:center;
  gap:14px;
  transition:opacity .18s ease,transform .18s ease;
}
.emstudio-view-profile .profile-dashboard-content .profile-post-list > .profile-post-row.is-busy{opacity:.68;pointer-events:none}
.emstudio-view-profile .profile-dashboard-content .profile-post-list > .profile-post-row.is-removing{opacity:0;transform:translateX(10px)}
.emstudio-view-profile .profile-post-list .profile-post-actions{display:flex;align-items:center;justify-content:flex-end;gap:3px;width:96px;min-width:96px}
.emstudio-view-profile .profile-post-action-wrap{position:relative;display:inline-flex;z-index:4}
.emstudio-view-profile .profile-post-action-button{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--profile-muted,#8fa69e);cursor:pointer;transition:color .16s ease,background .16s ease}
.emstudio-view-profile .profile-post-action-button:hover,.emstudio-view-profile .profile-post-action-button:focus-visible{color:var(--green-bright,#39ff14);background:rgba(var(--accent-rgb),.08);outline:none}
.emstudio-view-profile .profile-post-action-button .icon{width:16px;height:16px}
.emstudio-view-profile .profile-post-action-menu{position:absolute;z-index:10030;top:calc(100% + 7px);right:0;display:grid;min-width:142px;max-width:210px;padding:5px;border:1px solid var(--profile-line,rgba(255,255,255,.12));border-radius:11px;background:var(--profile-surface,#10221d);box-shadow:0 16px 36px rgba(0,0,0,.32)}
.emstudio-view-profile .profile-post-action-menu[hidden]{display:none!important}
.emstudio-view-profile .profile-post-action-menu > button{display:flex;align-items:center;gap:8px;width:100%;min-height:32px;padding:7px 9px;border:0;border-radius:7px;background:transparent;color:var(--profile-ink,#dce8e0);font:inherit;font-size:12px;text-align:left;cursor:pointer;transition:background .16s ease,color .16s ease}
.emstudio-view-profile .profile-post-action-menu > button:hover,.emstudio-view-profile .profile-post-action-menu > button:focus-visible{background:rgba(var(--accent-rgb),.1);color:var(--green-bright,#39ff14);outline:none}
.emstudio-view-profile .profile-post-action-menu > button.is-danger{color:#ff9b9b}
.emstudio-view-profile .profile-post-action-menu > button.is-danger:hover,.emstudio-view-profile .profile-post-action-menu > button.is-danger:focus-visible{background:rgba(255,90,90,.1);color:#ff7777}
.emstudio-view-profile .profile-post-action-menu .icon{width:14px;height:14px;flex:0 0 14px}
.emstudio-view-profile .profile-post-category-menu{min-width:158px;max-height:230px;overflow:auto}
.emstudio-view-profile .profile-post-category-menu > button[aria-selected="true"]{color:var(--green-bright,#39ff14);background:rgba(var(--accent-rgb),.1)}
.emstudio-view-profile .profile-post-row-status{grid-column:2 / -1;min-height:0;margin:-9px 0 5px;color:var(--profile-muted,#8fa69e);font-size:11px;line-height:1.3}
.emstudio-view-profile .profile-post-row-status:empty{display:none}
.emstudio-view-profile .profile-post-row-status.is-error{color:#ff9b9b}
.emstudio-view-profile .profile-post-row-status.is-success{color:#72efaa}
.emstudio-view-profile .profile-post-list .list-status.pending{color:#9fc5ff;background:rgba(104,155,255,.1)}
html[data-theme="light"] .emstudio-view-profile .profile-post-action-menu{background:#fff;border-color:rgba(26,102,74,.18);box-shadow:0 16px 36px rgba(39,85,76,.18)}
html[data-theme="light"] .emstudio-view-profile .profile-post-action-menu > button{color:#24443b}
html[data-theme="light"] .emstudio-view-profile .profile-post-action-menu > button:hover,html[data-theme="light"] .emstudio-view-profile .profile-post-action-menu > button:focus-visible{background:rgba(23,138,83,.08);color:#0f8f58}
@media (max-width:760px){
  .emstudio-view-profile .profile-dashboard-content .profile-post-list > .profile-post-row{grid-template-columns:56px minmax(0,1fr) 96px;gap:10px;min-height:70px}
  .emstudio-view-profile .profile-dashboard-content .profile-post-list > .profile-post-row > time{display:none}
  .emstudio-view-profile .profile-post-list .profile-post-actions{grid-column:3;grid-row:1;align-self:center}
  .emstudio-view-profile .profile-post-row-status{grid-column:2 / -1;grid-row:2;margin-top:-4px}
}
