.morfema-portal{max-width:1080px;margin:30px auto;padding:28px;border-radius:18px;background:#fff;box-shadow:0 10px 35px rgba(0,0,0,.08);font-family:inherit;color:#202020}.morfema-portal h2,.morfema-portal h3{margin-top:0}.morfema-form{display:grid;gap:16px;margin-top:18px}.morfema-form label{display:grid;gap:7px;font-weight:600}.morfema-form input[type=text],.morfema-form input[type=email],.morfema-form input[type=password],.morfema-form input[type=file],.morfema-form textarea{width:100%;padding:12px 14px;border:1px solid #d9d4ca;border-radius:10px;background:#fff;font:inherit}.morfema-form textarea{min-height:120px}.morfema-checkbox{display:flex!important;grid-template-columns:auto 1fr;align-items:flex-start;gap:10px;font-weight:400}.morfema-button{display:inline-block;border:0;border-radius:999px;padding:12px 22px;background:#1f2b46;color:#fff!important;text-decoration:none;font-weight:700;cursor:pointer}.morfema-button:hover{opacity:.9}.morfema-button-light{background:#f4efe6!important;color:#1f2b46!important}.morfema-success{padding:14px 16px;border-radius:10px;background:#edf8f0;border:1px solid #bde5c8;margin-bottom:18px}.morfema-error{padding:14px 16px;border-radius:10px;background:#fff1f1;border:1px solid #e6b8b8;margin-bottom:18px}.morfema-table{overflow-x:auto;margin:20px 0}.morfema-table table{width:100%;border-collapse:collapse}.morfema-table th,.morfema-table td{padding:14px 12px;border-bottom:1px solid #eee;text-align:left}.morfema-status{display:inline-block;padding:6px 11px;border-radius:999px;background:#f3efe7;font-size:13px;font-weight:700}.morfema-status-review{background:#eaf1ff}.morfema-status-approved,.morfema-status-published{background:#e9f8ef}.morfema-status-rejected{background:#fff1f1}.morfema-status-contract_sent{background:#fff6db}.morfema-admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px;margin:24px 0}.morfema-admin-card{background:#fff;border:1px solid #ddd;border-radius:12px;padding:18px}.morfema-admin-card strong{display:block;font-size:30px}.morfema-admin-card span{color:#555}.morfema-premium{padding:0;background:#faf8f4;box-shadow:none}.morfema-hero{display:grid;grid-template-columns:1fr minmax(180px,260px);gap:22px;padding:34px;border-radius:24px;background:linear-gradient(135deg,#1f2b46,#0f1728);color:#fff}.morfema-hero h2{font-size:34px;line-height:1.1;margin:8px 0 12px;color:#fff}.morfema-hero p{font-size:16px;line-height:1.65;max-width:720px;color:rgba(255,255,255,.88)}.morfema-eyebrow{display:inline-block;text-transform:uppercase;letter-spacing:.14em;font-size:12px;font-weight:800;color:#b99a5b}.morfema-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}.morfema-hero-panel{align-self:stretch;display:grid;place-content:center;text-align:center;border:1px solid rgba(255,255,255,.18);border-radius:20px;background:rgba(255,255,255,.08);padding:22px}.morfema-hero-panel strong{font-size:58px;line-height:1;color:#fff}.morfema-hero-panel span{display:block;margin-top:10px;color:rgba(255,255,255,.8)}.morfema-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:18px 0}.morfema-stats div,.morfema-card{background:#fff;border:1px solid #eee3d4;border-radius:20px;box-shadow:0 10px 28px rgba(31,43,70,.06)}.morfema-stats div{padding:20px}.morfema-stats strong{display:block;font-size:30px;color:#1f2b46}.morfema-stats span{color:#6c6458}.morfema-workflow{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}.morfema-workflow div{display:flex;align-items:center;gap:10px;padding:14px;border-radius:16px;background:#f4efe6}.morfema-workflow b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#1f2b46;color:#fff}.morfema-section-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.morfema-card{padding:24px;margin-top:18px}.morfema-submit-card{margin-bottom:30px}.morfema-small-link{font-weight:800;color:#1f2b46;text-decoration:none}.morfema-empty{display:grid;gap:4px;padding:20px;text-align:center}.morfema-empty span{color:#6c6458}@media(max-width:760px){.morfema-hero,.morfema-stats,.morfema-workflow{grid-template-columns:1fr}.morfema-hero h2{font-size:28px}.morfema-section-head{display:block}.morfema-portal{margin:18px auto}.morfema-card,.morfema-hero{padding:22px}}
.morfema-button-ghost{background:rgba(255,255,255,.12)!important;color:#fff!important;border:1px solid rgba(255,255,255,.28)}
body.morfema-author-portal-page a[href*="customer-logout"],body.morfema-author-portal-page a[href*="wp-login.php?action=logout"]{display:none!important}.morfema-portal a.morfema-logout{display:inline-flex!important;align-items:center;justify-content:center}
.morfema-admin-wrap{--morfema-navy:#1f2b46;--morfema-gold:#b99a5b;--morfema-cream:#faf8f4}.morfema-admin-hero{display:flex;justify-content:space-between;gap:24px;align-items:center;margin:20px 0 22px;padding:28px 30px;border-radius:20px;background:linear-gradient(135deg,#1f2b46,#111827);color:#fff;box-shadow:0 16px 35px rgba(31,43,70,.18)}.morfema-admin-hero h1{margin:6px 0 8px;color:#fff;font-size:32px}.morfema-admin-hero p{margin:0;color:rgba(255,255,255,.82);font-size:15px}.morfema-admin-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.morfema-admin-kpis{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:14px;margin:18px 0}.morfema-admin-kpis div,.morfema-admin-panel{background:#fff;border:1px solid #e7dfd3;border-radius:18px;box-shadow:0 10px 28px rgba(31,43,70,.06)}.morfema-admin-kpis div{padding:20px}.morfema-admin-kpis strong{display:block;font-size:34px;line-height:1;color:var(--morfema-navy)}.morfema-admin-kpis span{display:block;margin-top:8px;color:#625b50;font-weight:600}.morfema-admin-layout{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(420px,1.2fr);gap:18px;margin-top:18px}.morfema-admin-panel{padding:22px}.morfema-admin-panel h2{margin:0;color:var(--morfema-navy)}.morfema-admin-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.morfema-admin-panel-head a{font-weight:700;text-decoration:none}.morfema-admin-pipeline{display:grid;gap:10px}.morfema-admin-stage{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-radius:14px;background:#f7f3ec;text-decoration:none;color:#1f2b46;border:1px solid #eee3d4}.morfema-admin-stage:hover{background:#efe7da;color:#1f2b46}.morfema-admin-stage span{font-weight:700}.morfema-admin-stage strong{font-size:24px}.morfema-admin-table td,.morfema-admin-table th{vertical-align:middle}.morfema-admin-help{margin-top:18px}.morfema-admin-help ul{margin:12px 0 0 20px}.morfema-admin-help li{margin:6px 0}@media(max-width:960px){.morfema-admin-hero,.morfema-admin-layout{display:block}.morfema-admin-actions{justify-content:flex-start;margin-top:16px}.morfema-admin-kpis{grid-template-columns:repeat(2,1fr)}.morfema-admin-panel{margin-top:16px}}@media(max-width:640px){.morfema-admin-kpis{grid-template-columns:1fr}}
.morfema-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(240px,1fr));gap:18px;margin:24px 0}.morfema-choice-card{padding:24px;border:1px solid #eee3d4;border-radius:20px;background:#fff;box-shadow:0 10px 28px rgba(31,43,70,.06)}.morfema-choice-card h3{margin:8px 0 10px;color:#1f2b46}.morfema-choice-card p{color:#625b50;line-height:1.6}.morfema-choice-card-author{background:linear-gradient(135deg,#fff,#faf4e8)}.morfema-author-register-block{margin-top:18px;padding:22px;border-radius:18px;background:#faf8f4;border:1px solid #eee3d4}.morfema-wc-account-type{margin:0 0 18px;padding:16px;border:1px solid #eee3d4;border-radius:14px;background:#faf8f4}.morfema-wc-account-type label{display:block;margin:8px 0;font-weight:600}.morfema-wc-account-type input{margin-right:8px}.morfema-field-help{margin:8px 0 0;color:#6c6458;font-size:13px}@media(max-width:760px){.morfema-choice-grid{grid-template-columns:1fr}}

/* v1.8 - Premium author entry/login experience */
.morfema-entry{padding:0;background:#faf8f4;border:1px solid #eee3d4;overflow:hidden;box-shadow:0 18px 45px rgba(31,43,70,.08)}
.morfema-entry-hero{padding:34px 36px;background:radial-gradient(circle at 85% 20%,rgba(185,154,91,.22),transparent 28%),linear-gradient(135deg,#1f2b46,#101827);color:#fff}
.morfema-entry-hero h2{margin:8px 0 10px;color:#fff;font-size:38px;line-height:1.08;letter-spacing:-.02em}
.morfema-entry-hero p{max-width:760px;margin:0;color:rgba(255,255,255,.86);font-size:16px;line-height:1.7}
.morfema-entry .morfema-choice-grid{padding:28px 30px 10px;margin:0}
.morfema-entry .morfema-author-register-block{margin:18px 30px 30px;background:#fff;box-shadow:0 12px 30px rgba(31,43,70,.06)}
.morfema-login-card{display:grid;grid-template-columns:minmax(260px,.9fr) minmax(320px,1.1fr);gap:0;margin:0 30px 34px;border:1px solid #e9dfcf;border-radius:24px;overflow:hidden;background:#fff;box-shadow:0 16px 38px rgba(31,43,70,.08)}
.morfema-login-copy{position:relative;padding:32px;background:linear-gradient(145deg,#fffaf1,#f5ecdd);border-right:1px solid #eadfce}
.morfema-login-icon{display:grid;place-items:center;width:52px;height:52px;margin-bottom:18px;border-radius:18px;background:#1f2b46;color:#b99a5b;font-size:26px;box-shadow:0 12px 22px rgba(31,43,70,.18)}
.morfema-login-copy h3{margin:8px 0 12px;color:#1f2b46;font-size:28px;line-height:1.15}
.morfema-login-copy p{margin:0;color:#625b50;line-height:1.65}
.morfema-login-copy ul{display:grid;gap:9px;margin:20px 0 0;padding:0;list-style:none;color:#1f2b46;font-weight:700}
.morfema-login-copy li{display:flex;align-items:center;gap:9px}
.morfema-login-copy li:before{content:'✓';display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#1f2b46;color:#fff;font-size:12px}
.morfema-login-form{padding:32px;align-self:center}
.morfema-login-form form{display:grid;gap:16px;margin:0}
.morfema-login-form p{margin:0}
.morfema-login-form label{display:grid;gap:7px;color:#1f2b46;font-weight:700}
.morfema-login-form input[type=text],.morfema-login-form input[type=password]{width:100%;padding:14px 15px;border:1px solid #d9d0c1;border-radius:14px;background:#fff;font:inherit;box-shadow:inset 0 1px 0 rgba(31,43,70,.03)}
.morfema-login-form input[type=text]:focus,.morfema-login-form input[type=password]:focus{outline:none;border-color:#b99a5b;box-shadow:0 0 0 4px rgba(185,154,91,.14)}
.morfema-login-form .login-remember label{display:flex;align-items:center;gap:8px;font-weight:600;color:#625b50}
.morfema-login-form .login-submit input[type=submit]{width:100%;border:0;border-radius:999px;padding:14px 22px;background:#1f2b46;color:#fff;font-weight:800;cursor:pointer;box-shadow:0 12px 22px rgba(31,43,70,.16)}
.morfema-login-form .login-submit input[type=submit]:hover{filter:brightness(1.08)}
.morfema-login-form .login-username,.morfema-login-form .login-password{display:grid;gap:7px}
@media(max-width:820px){.morfema-entry-hero{padding:28px 24px}.morfema-entry-hero h2{font-size:31px}.morfema-entry .morfema-choice-grid{padding:22px 20px 8px}.morfema-entry .morfema-author-register-block,.morfema-login-card{margin-left:20px;margin-right:20px}.morfema-login-card{grid-template-columns:1fr}.morfema-login-copy{border-right:0;border-bottom:1px solid #eadfce}.morfema-login-copy,.morfema-login-form{padding:24px}}



.morfema-comm-box,.morfema-files-box{padding:16px;border:1px solid #eadfce;border-radius:18px;background:#fffaf3}
.morfema-comm-box>strong,.morfema-files-box>strong{display:block;margin-bottom:12px;color:#1f2b46;font-size:16px}
.morfema-muted{margin:0 0 12px;color:#776e61;font-size:14px;line-height:1.5}
.morfema-message-thread{display:grid;gap:10px;margin-bottom:14px;max-height:260px;overflow:auto;padding-right:4px}
.morfema-message{padding:12px 13px;border:1px solid #eee3d4;border-radius:14px;background:#fff;box-shadow:0 6px 14px rgba(31,43,70,.04)}
.morfema-message span{display:block;margin-bottom:5px;color:#7d7366;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.morfema-message p{margin:0;color:#2d2a26;line-height:1.55}
.morfema-inline-form{display:grid;gap:10px;margin-top:12px}
.morfema-inline-form textarea{min-height:78px;resize:vertical}
.morfema-inline-form textarea,.morfema-inline-form input[type=text],.morfema-inline-form input[type=file]{width:100%;padding:11px 12px;border:1px solid #d9d0c1;border-radius:12px;background:#fff;font:inherit}
.morfema-button-small{padding:10px 16px;font-size:13px;justify-self:start}
.morfema-file-list{display:grid;gap:9px;margin:0 0 12px;padding:0;list-style:none}
.morfema-file-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid #eee3d4;border-radius:12px;background:#fff}
.morfema-file-list a{font-weight:800;color:#1f2b46;text-decoration:none}
.morfema-file-list a:hover{text-decoration:underline}
.morfema-file-list span{color:#7d7366;font-size:12px;font-weight:700}
.morfema-admin-message-log{display:grid;gap:10px;margin:10px 0 18px;max-height:320px;overflow:auto}
.morfema-admin-message{padding:12px 14px;border:1px solid #e5dac9;border-radius:12px;background:#fff}
.morfema-admin-message strong{display:inline-block;margin-right:8px;color:#1f2b46}
.morfema-admin-message span{color:#7d7366;font-size:12px}
.morfema-admin-message p{margin:7px 0 0;line-height:1.55}
.morfema-admin-file-list{display:grid;gap:8px;margin:10px 0 18px;padding:0;list-style:none}
.morfema-admin-file-list li{padding:10px 12px;border-radius:10px;background:#f7f1e8;border:1px solid #eee3d4}
.morfema-admin-file-list a{font-weight:800;text-decoration:none;color:#1f2b46}
.morfema-admin-file-list span{margin-left:8px;color:#7d7366;font-size:12px}

.morfema-royalty-panel{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:16px 0;padding:14px;border:1px solid rgba(160,120,50,.22);border-radius:18px;background:linear-gradient(135deg,rgba(255,250,240,.95),rgba(255,255,255,.88))}
.morfema-royalty-panel div{padding:10px;border-radius:14px;background:rgba(255,255,255,.75)}
.morfema-royalty-panel small{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#7a6a52;margin-bottom:5px}
.morfema-royalty-panel strong{font-size:15px;color:#211a13}
@media(max-width:900px){.morfema-royalty-panel{grid-template-columns:1fr 1fr}.morfema-royalty-panel div:last-child{grid-column:1/-1}}

/* v4.6.1 - apenas collapse das submissões e miniatura WooCommerce */
.morfema-project-collapse details{display:block}
.morfema-project-collapse summary{list-style:none;cursor:pointer}
.morfema-project-collapse summary::-webkit-details-marker{display:none}
.morfema-project-summary{display:block}
.morfema-project-title-wrap{display:flex;align-items:center;gap:14px;min-width:0}
.morfema-project-thumb{width:58px!important;height:78px!important;object-fit:cover;border-radius:10px;box-shadow:0 8px 20px rgba(31,43,70,.14);background:#f4efe6;flex:0 0 auto}
.morfema-collapse-label{display:inline-flex;align-items:center;justify-content:center;gap:6px;margin-top:12px;border:0;border-radius:999px;padding:9px 16px;background:#1f2b46;color:#fff!important;font-weight:800;font-size:13px;line-height:1;cursor:pointer;text-decoration:none;appearance:none;-webkit-appearance:none}
.morfema-collapse-label:hover,.morfema-collapse-label:focus{opacity:.9;color:#fff!important}
.morfema-collapse-label:after{display:none!important;content:none!important}
.morfema-project-body{margin-top:14px}
@media(max-width:640px){.morfema-project-title-wrap{align-items:flex-start}.morfema-project-thumb{width:48px!important;height:66px!important}}
.morfema-admin-actions .morfema-admin-manual-btn{background:#b99a5b!important;border-color:#b99a5b!important;color:#fff!important;box-shadow:none!important}.morfema-admin-actions .morfema-admin-manual-btn:hover,.morfema-admin-actions .morfema-admin-manual-btn:focus{background:#a78745!important;border-color:#a78745!important;color:#fff!important}
/* v4.6.5 - remove seta nativa do collapse e coloca o botão no topo */
.morfema-project-collapse summary,
.morfema-project-collapse summary.morfema-project-summary{
  list-style: none !important;
  list-style-type: none !important;
  cursor: default !important;
  position: relative;
}
.morfema-project-collapse summary::-webkit-details-marker{display:none!important;width:0!important;height:0!important;margin:0!important;padding:0!important;content:""!important;}
.morfema-project-collapse summary::marker{content:""!important;font-size:0!important;color:transparent!important;}
.morfema-project-collapse summary:before,
.morfema-project-collapse summary:after,
.morfema-project-collapse .morfema-project-summary:before,
.morfema-project-collapse .morfema-project-summary:after{
  display:none!important;
  content:none!important;
}
.morfema-project-collapse .morfema-collapse-label{
  display:flex!important;
  width:max-content!important;
  margin:0 0 26px auto!important;
}

/* v4.6.9 - espaco apenas entre o botao de detalhes e o badge/etapa */
.morfema-project-collapse .morfema-collapse-label + .morfema-project-main,
.morfema-project-collapse summary .morfema-project-main{
  margin-top:14px!important;
}

/* v4.7.1 - alinha o botao Ver detalhes no topo direito do card */
.morfema-project-collapse .morfema-detail-toggle-row{display:flex!important;justify-content:flex-end!important;align-items:center!important;width:100%!important;margin:0 0 16px 0!important;padding:0!important;text-align:right!important;}
.morfema-project-collapse .morfema-detail-toggle-row .morfema-collapse-label{margin:0!important;flex:0 0 auto!important;}

/* v4.7.2 - remove details/summary arrow entirely and keep toggle at top right */
.morfema-project-collapse .morfema-project-summary{display:block!important;cursor:default!important;list-style:none!important;}
.morfema-project-collapse .morfema-project-summary:before,
.morfema-project-collapse .morfema-project-summary:after{display:none!important;content:none!important;}
.morfema-project-collapse .morfema-detail-toggle-row{display:flex!important;justify-content:flex-end!important;align-items:center!important;width:100%!important;margin:0 0 16px 0!important;padding:0!important;text-align:right!important;}
.morfema-project-collapse .morfema-collapse-label{margin:0!important;flex:0 0 auto!important;}
.morfema-project-collapse .morfema-project-body[hidden]{display:none!important;}

/* v4.7.3 - alinhar apenas o botao Ver detalhes ao lado oposto */
.morfema-project-collapse .morfema-detail-toggle-row{
  display:flex!important;
  justify-content:flex-end!important;
  text-align:right!important;
  width:100%!important;
}
.morfema-project-collapse .morfema-detail-toggle-row .morfema-collapse-label{
  margin-left:auto!important;
  margin-right:0!important;
}

/* v4.7.4 - coloca o botao de detalhes acima do valor de progresso */
.morfema-project-collapse .morfema-project-progress{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-end!important;
  gap:8px!important;
}
.morfema-project-collapse .morfema-project-progress .morfema-collapse-label{
  margin:0!important;
  align-self:flex-end!important;
}

/* v4.7.5 - botao Ver detalhes mais premium, sem alterar layout */
.morfema-project-collapse .morfema-project-progress .morfema-collapse-label{
  padding:11px 18px!important;
  border-radius:999px!important;
  background:linear-gradient(135deg,#1f2b46,#111827)!important;
  color:#fff!important;
  font-weight:800!important;
  letter-spacing:.01em!important;
  box-shadow:0 10px 22px rgba(31,43,70,.18)!important;
  border:1px solid rgba(255,255,255,.12)!important;
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease!important;
}
.morfema-project-collapse .morfema-project-progress .morfema-collapse-label:hover,
.morfema-project-collapse .morfema-project-progress .morfema-collapse-label:focus{
  transform:translateY(-1px)!important;
  filter:brightness(1.06)!important;
  box-shadow:0 14px 28px rgba(31,43,70,.24)!important;
  outline:none!important;
}
