.account-entry,
.ws-control,
.ws-tabs a,
.ws-side-foot a,
.ws-side-foot button,
.ws-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.account-entry {
  padding: 9px 13px;
  border-radius: 7px;
  background: #2b3028;
  color: #fffdf5;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}
.auth-layout {
  margin: clamp(28px, 5vw, 80px) auto;
  max-width: 900px;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  background: #fffefa;
}
.auth-art {
  position: relative;
  min-height: 100%;
  background: #f3e3c6;
  overflow: hidden;
}
.auth-art img {
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: 42% 50%;
}
.auth-art span {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: #fff9ecdf;
  padding: 5px 9px;
  border-radius: 4px;
  color: #644a2a;
  font-size: 12px;
}
.auth-pane {
  padding: clamp(25px, 3.4vw, 52px);
}
.auth-pane h1,
.ws-heading h1 {
  font: 500 clamp(36px, 3.5vw, 53px)/1.1 var(--display);
  letter-spacing: -0.05em;
}
.auth-pane h1 {
  margin: 14px 0;
}
.auth-pane > p,
.ws-muted,
.ws-empty p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 16px;
}
.account-form {
  display: grid;
  gap: 15px;
  margin: 24px 0 16px;
}
.account-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
}
.account-form input,
.ws-search input {
  border: 1px solid #cbccc2;
  background: #fffefa;
  border-radius: 7px;
  padding: 10px 12px;
  width: 100%;
  min-width: 0;
  font-size: 16px;
}
.account-form small,
.ws-caption {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.account-form .button {
  width: 100%;
}
.form-error {
  color: #9a3c2d;
  font-size: 14px;
}
.form-error:empty {
  display: none;
}
.auth-switch {
  font-size: 14px;
  color: var(--muted);
}
.auth-switch a,
.ws-pagination a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.account-form button:disabled,
.ws-control:disabled {
  opacity: 0.5;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(175px, 220px) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 60px);
  margin: 34px 0;
  align-items: start;
}
.ws-side {
  border: 1px solid var(--line);
  background: #f6f4ed;
  border-radius: 13px;
  padding: 16px;
  position: sticky;
  top: 16px;
}
.ws-identity {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 0 19px;
  border-bottom: 1px solid var(--line);
}
.ws-identity > span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  background: #e5d5b9;
  color: #604321;
  border-radius: 9px;
  font: 600 22px var(--display);
  flex: none;
}
.ws-identity > div {
  min-width: 0;
}
.ws-identity b,
.ws-identity small {
  display: block;
  overflow-wrap: anywhere;
}
.ws-identity b {
  font-size: 15px;
}
.ws-identity small,
.ws-list small,
.ws-table-scroll small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.ws-nav-label {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.05em;
  color: #646658;
  margin: 20px 6px 8px;
}
.ws-nav,
.ws-side-foot {
  display: grid;
  gap: 4px;
}
.ws-nav a,
.ws-side-foot a,
.ws-side-foot button {
  min-height: 38px;
  padding: 8px 9px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 550;
  text-align: left;
}
.ws-nav a[aria-current] {
  background: #e5e9db;
  color: #31412c;
}
.ws-nav a:hover,
.ws-side-foot a:hover,
.ws-side-foot button:hover {
  background: #eeece4;
}
.ws-side-foot {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 12px;
}
.ws-side-foot a,
.ws-side-foot button {
  color: #586051;
}
.ws-main {
  min-width: 0;
}
.ws-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 24px;
}
.ws-heading .secondary-button {
  white-space: nowrap;
}
.ws-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ws-tabs a {
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 14px;
}
.ws-tabs a[aria-current] {
  background: #2c3028;
  border-color: #2c3028;
  color: #fffdf6;
}
.ws-tabs b {
  font-weight: 500;
  opacity: 0.85;
}
.ws-library-controls {
  margin-bottom: 18px;
}
.ws-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ws-empty,
.ws-panel {
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(18px, 2.4vw, 32px);
  margin-bottom: 18px;
}
.ws-empty {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
  padding-block: clamp(38px, 6vw, 76px);
}
.ws-empty > svg {
  color: var(--accent);
}
.ws-empty h2,
.ws-panel h2 {
  font: 500 clamp(23px, 2vw, 31px)/1.15 var(--display);
  letter-spacing: -0.035em;
}
.ws-caption {
  margin: 6px 0;
}
.ws-panel > .ws-muted {
  margin-top: 15px;
}
.ws-loading {
  padding: 60px 0;
  color: var(--muted);
}
.ws-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.ws-stats > div {
  padding: clamp(12px, 1.6vw, 22px);
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f4f2e9;
}
.ws-stats dt {
  font-weight: 550;
  font-size: 14px;
  color: #575e50;
}
.ws-stats dd {
  margin: 8px 0 0;
  font: 500 35px/1 var(--display);
}
.ws-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: clamp(4px, 1vw, 14px);
  text-align: center;
  padding-top: 16px;
}
.ws-chart b,
.ws-chart small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.bar-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 95px;
  border-bottom: 1px solid #b6b8aa;
}
.bar-track i {
  display: block;
  width: 66%;
  background: #87997a;
  border-radius: 3px 3px 0 0;
}
.ws-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.ws-list li,
.ws-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.ws-list a:hover {
  text-decoration: underline;
}
.ws-list b {
  font-size: 14px;
}
.ws-badge {
  display: inline-block;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 30px;
  background: #e8eedc;
  color: #425c39;
  white-space: nowrap;
}
.ws-badge.inactive {
  background: #f1ded3;
  color: #81452f;
}
.ws-control {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 13px;
  background: #fffdfa;
  white-space: nowrap;
}
.ws-control:hover {
  border-color: #83867a;
}
.ws-search {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.ws-table-scroll {
  overflow-x: auto;
}
.ws-table-scroll table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 14px;
}
.ws-table-scroll th,
.ws-table-scroll td {
  padding: 12px 9px;
  border-bottom: 1px solid var(--line);
}
.ws-table-scroll th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}
.ws-table-scroll td:first-child {
  overflow-wrap: anywhere;
}
.ws-pagination {
  border: 0;
  padding-bottom: 0;
  font-size: 13px;
  color: var(--muted);
}
.ws-pagination div {
  display: flex;
  gap: 8px;
}
@media (min-width: 1350px) {
  .ws-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 850px) {
  .header-row {
    gap: 18px;
  }
  .header-tools {
    gap: 9px;
  }
  .header-row nav {
    gap: 13px;
  }
  .workspace {
    grid-template-columns: 165px minmax(0, 1fr);
    gap: 20px;
  }
  .ws-side {
    padding: 12px;
  }
}
@media (max-width: 740px) {
  .workspace {
    display: block;
    margin: 20px 0;
  }
  .ws-side {
    position: static;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    margin-bottom: 22px;
  }
  .ws-identity,
  .ws-nav-label {
    display: none;
  }
  .ws-nav,
  .ws-side-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
  }
  .ws-side-foot {
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
  }
  .ws-nav a,
  .ws-side-foot a,
  .ws-side-foot button {
    padding: 6px;
    min-height: 32px;
  }
  .ws-heading h1 {
    font-size: 34px;
  }
  .header-tools .separator {
    display: none;
  }
  .auth-layout {
    grid-template-columns: 0.6fr 1fr;
  }
  .ws-stats {
    gap: 6px;
  }
}
@media (max-width: 520px) {
  .auth-layout {
    display: block;
  }
  .auth-art {
    height: 100px;
  }
  .auth-art img {
    object-position: center 49%;
  }
  .auth-art span {
    left: 10px;
    bottom: 8px;
  }
  .ws-cards {
    grid-template-columns: 1fr;
  }
  .ws-side-foot {
    margin-left: 0;
  }
  .ws-nav a,
  .ws-side-foot button,
  .ws-side-foot a {
    font-size: 13px;
  }
  .account-entry {
    padding: 7px 9px;
  }
  .header-tools .saved-link span {
    display: none;
  }
  .header-tools {
    gap: 8px;
  }
  .ws-stats dt {
    font-size: 12px;
  }
  .ws-stats dd {
    font-size: 27px;
  }
  .ws-tabs {
    gap: 5px;
  }
  .ws-tabs a {
    padding: 7px 8px;
  }
  .ws-heading .secondary-button {
    padding: 8px 10px;
  }
  .ws-chart small {
    font-size: 11px;
  }
}
@media (max-width: 350px) {
  .header-tools .language svg,
  .account-entry svg {
    display: none;
  }
}
