.author-search-workspace {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 20px 70px;
}

.author-search-shell {
  background: rgba(252,249,242,.96);
  border: 1px solid rgba(184,141,75,.48);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 18px 48px rgba(46,31,17,.14);
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  box-sizing: border-box;
}

.author-search-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.author-search-head h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.author-search-head p {
  margin: 0;
  color: #667085;
  line-height: 2;
}

.author-search-back {
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  white-space: nowrap;
}

.author-search-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 22px;
}

.author-search-bar input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d9dde5;
  border-radius: 13px;
  padding: 0 15px;
  font: inherit;
}

.author-search-bar button {
  min-width: 125px;
  border: 0;
  border-radius: 13px;
  padding: 0 22px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  background: #111827;
  color: #fff;
}

.author-search-summary {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  color: #667085;
}

.author-search-summary strong {
  color: #111827;
  font-size: 18px;
}

.author-results {
  display: grid;
  gap: 14px;
}

.author-card {
  border: 1px solid #e4e7ec;
  border-radius: 17px;
  padding: 20px;
  background: #fff;
}

.author-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.author-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.author-source {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f2f4f7;
  font-size: 12px;
  color: #475467;
}

.author-grid {
  display: grid;
  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    );
  gap: 10px;
  margin-top: 16px;
}

.author-field {
  border: 1px solid #edf0f3;
  background: #fafafa;
  border-radius: 12px;
  padding: 11px 13px;
}

.author-field small {
  display: block;
  color: #667085;
  margin-bottom: 5px;
}

.author-actions {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}

.author-actions button {
  border: 0;
  border-radius: 10px;
  padding: 9px 15px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.author-edit-button {
  background: #111827;
  color: #fff;
}

.author-entry-note {
  background: #ecfdf3;
  color: #067647;
  border-radius: 11px;
  padding: 9px 12px;
  margin-top: 13px;
}

.author-empty,
.author-loading,
.author-error {
  border: 1px dashed #d0d5dd;
  border-radius: 15px;
  padding: 28px;
  text-align: center;
  color: #667085;
}

.author-error {
  color: #b42318;
  background: #fff6f5;
}

.author-empty strong,
.author-empty span,
.author-error strong,
.author-error span {
  display: block;
  margin: 5px auto;
}

.author-empty strong,
.author-error strong {
  color: #17395f;
  font-size: 16px;
}

.author-empty button,
.author-error button {
  min-height: 40px;
  margin-top: 10px;
  padding: 7px 15px;
  border: 1px solid #cbbd9f;
  border-radius: 9px;
  background: #fffdf8;
  color: #17395f;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.author-loading-indicator {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin: 0 0 -5px 8px;
  border: 2px solid #d8c8a7;
  border-top-color: #17395f;
  border-radius: 50%;
  animation: author-loading-spin .8s linear infinite;
}

@keyframes author-loading-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .author-loading-indicator { animation: none; }
}

@media (
  max-width: 900px
) {

  .author-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }

}

@media (
  max-width: 620px
) {

  .author-search-head,
  .author-card-top {
    flex-direction: column;
  }

  .author-search-bar {
    grid-template-columns: 1fr;
  }

  .author-grid {
    grid-template-columns: 1fr;
  }

}


/* === AUTHOR STRUCTURED SEARCH UI V4 === */

.author-filter-panel{
  margin-bottom:26px;
  padding:22px;
  border:1px solid #e1d8c7;
  border-radius:18px;
  background:#fffdf8;
}

.author-filter-title{
  display:flex;
  align-items:baseline;
  gap:12px;
  flex-wrap:wrap;
  padding-bottom:15px;
  margin-bottom:18px;
  border-bottom:1px solid #eee6d8;
}

.author-filter-title strong{
  color:#17385e;
  font-size:18px;
}

.author-filter-title span{
  color:#7a746a;
  font-size:13px;
}

.author-filter-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:15px;
}

.author-filter-field{
  display:flex;
  flex-direction:column;
  gap:7px;
  min-width:0;
}

.author-filter-field > span,
.author-filter-range > .author-range-title{
  font-size:13px;
  font-weight:700;
  color:#38485b;
}

.author-filter-field input,
.author-filter-field select,
.author-filter-range input{
  width:100%;
  height:46px;
  box-sizing:border-box;
  border:1px solid #d9d0c0;
  border-radius:10px;
  background:#fff;
  padding:0 12px;
  font:inherit;
  color:#243447;
  outline:none;
}

.author-filter-field input:focus,
.author-filter-field select:focus,
.author-filter-range input:focus{
  border-color:#94722f;
  box-shadow:0 0 0 3px rgba(148,114,47,.08);
}

.author-filter-wide{
  grid-column:span 2;
}

.author-filter-range{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  align-items:end;
  padding:12px;
  border:1px solid #ebe3d4;
  border-radius:12px;
  background:#faf7f0;
}

.author-filter-range .author-range-title{
  grid-column:1 / -1;
}

.author-filter-range label{
  display:flex;
  flex-direction:column;
  gap:5px;
}

.author-filter-range label span{
  font-size:12px;
  color:#7b7469;
}

.author-filter-check{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:46px;
  padding:0 13px;
  border:1px solid #ebe3d4;
  border-radius:10px;
  background:#faf7f0;
  cursor:pointer;
}

.author-filter-check input{
  width:18px;
  height:18px;
  accent-color:#17385e;
}

.author-filter-check span{
  color:#38485b;
  font-size:13px;
}

.author-filter-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:20px;
}

.author-filter-actions button{
  min-height:44px;
  padding:9px 22px;
  border-radius:10px;
  font:inherit;
  font-weight:700;
  cursor:pointer;
}

.author-search-submit{
  border:1px solid #17385e;
  background:#17385e;
  color:#fff;
}

.author-search-reset{
  border:1px solid #d8cdb9;
  background:#fff;
  color:#5b554b;
}

@media(max-width:950px){
  .author-filter-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:620px){

  .author-search-workspace{
    padding:20px 12px 55px;
  }

  .author-search-shell{
    padding:18px 14px;
  }

  .author-filter-panel{
    padding:15px 12px;
  }

  .author-filter-grid{
    grid-template-columns:1fr;
  }

  .author-filter-wide{
    grid-column:auto;
  }

  .author-filter-range{
    grid-template-columns:1fr 1fr;
  }

  .author-filter-actions{
    flex-direction:column-reverse;
  }

  .author-filter-actions button{
    width:100%;
  }
}
.author-search-pagination{display:flex;align-items:center;justify-content:center;gap:10px;margin:16px 0}.author-search-pagination button{min-height:38px;padding:7px 14px;border:1px solid #cbbd9f;border-radius:9px;background:#fffdf8;color:#17395f;font:inherit;font-weight:800;cursor:pointer}.author-search-pagination button:disabled{opacity:.45;cursor:not-allowed}.author-search-pagination span{min-width:150px;text-align:center;color:#657383;font-size:12px}

html[dir="ltr"] body.internal-site-page .author-search-workspace,
html[dir="ltr"] body.internal-site-page .author-search-shell,
html[dir="ltr"] body.internal-site-page .author-card,
html[dir="ltr"] body.internal-site-page .author-filter-panel {
  direction: ltr;
  text-align: left;
}
