.pgf-bills-shell {
  width: min(1260px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.pgf-bills-shell a {
  color: #4f5f2c;
}

.pgf-bills-shell a:hover,
.pgf-bills-shell a:focus {
  color: #3f4d23;
}

.pgf-bills-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  background:
    radial-gradient(circle at 8% 12%, rgba(180, 137, 63, 0.2), transparent 34%),
    radial-gradient(circle at 95% -20%, rgba(115, 141, 84, 0.2), transparent 34%),
    linear-gradient(180deg, #fcf7ee, #f4e8d6);
}

.pgf-bills-header-main {
  min-width: 0;
  flex: 1 1 auto;
}

.pgf-bills-title {
  margin: 0;
  font-size: clamp(1.42rem, 2.2vw, 1.95rem);
  line-height: 1.1;
  color: #2e2418;
}

.pgf-bills-subtitle {
  margin: 8px 0 0;
  max-width: 65ch;
  color: #6e5f4e;
  font-size: 0.95rem;
  line-height: 1.38;
}

.pgf-bills-nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.pgf-bills-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid #c3b08f;
  background: #f6ecd9;
  color: #4b3a22;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 2px 7px rgba(70, 54, 31, 0.08);
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.pgf-bills-nav-link:hover,
.pgf-bills-nav-link:focus {
  text-decoration: none;
  color: #3e2f1b;
  border-color: #af9a72;
  background: #efdfc3;
  transform: translateY(-1px);
}

.pgf-bills-nav-link.is-active {
  background: linear-gradient(180deg, #fff4da, #f0d7a6);
  border-color: #b48a47;
  color: #5f4215;
  box-shadow: 0 4px 12px rgba(130, 98, 41, 0.24);
}

.pgf-bills-create-dropdown {
  position: relative;
}

.pgf-bills-create-dropdown .caret {
  border-top-color: currentColor;
}

.pgf-bills-dropdown-menu {
  left: 0;
  right: auto;
  transform: none;
  margin-top: 8px;
  border-radius: 14px;
  border: 1px solid #d1c2ac;
  box-shadow: 0 14px 30px rgba(37, 30, 20, 0.2);
  padding: 8px;
  min-width: 270px;
  max-height: 62vh;
  overflow: auto;
}

.pgf-bills-dropdown-menu > li > a {
  border-radius: 10px;
  padding: 8px 12px;
  color: #332a21;
  font-size: 0.95rem;
}

.pgf-bills-dropdown-menu > li > a:hover,
.pgf-bills-dropdown-menu > li > a:focus {
  background: #eee2cf;
  color: #2a231c;
}

.pgf-bills-content {
  display: grid;
  gap: 12px;
}

.pgf-bills-lead {
  background: linear-gradient(180deg, #fcf8f1, #f7ecdc);
}

.pgf-bills-lead p {
  margin: 0;
  color: #41382d;
}

.pgf-bills-lead p + p {
  margin-top: 8px;
}

.pgf-bills-section-title {
  margin: 0;
  font-size: clamp(1.06rem, 1.8vw, 1.21rem);
  color: #2f281f;
}

.pgf-bills-subsection-title {
  margin: 0;
  font-size: 1.02rem;
  color: #3d3226;
}

.pgf-bills-filters-card {
  background: linear-gradient(180deg, rgba(248, 240, 227, 0.96), rgba(244, 233, 217, 0.78));
}

.pgf-bills-filters-content {
  margin-top: 10px;
}

.pgf-bills-shell .btn-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pgf-bills-shell .btn-group {
  margin: 0;
}

.pgf-bills-shell .btn-toolbar form {
  margin: 0;
}

.pgf-bills-shell .btn-toolbar input[type="text"] {
  width: min(260px, 72vw);
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid #cbbaa2;
  padding: 6px 10px;
  background: #fffdf8;
  color: #2d2821;
}

.pgf-bills-shell .btn-toolbar input[type="text"]:focus {
  outline: none;
  border-color: #ad9064;
  box-shadow: 0 0 0 3px rgba(173, 144, 100, 0.2);
}

.pgf-bills-shell .btn-group > .btn,
.pgf-bills-shell .btn-group > .btn.dropdown-toggle {
  border-radius: 10px;
  border: 1px solid #cab79c;
  background: #f8efdf;
  color: #403326;
  font-weight: 700;
  text-shadow: none;
}

.pgf-bills-shell .btn-group > .btn:hover,
.pgf-bills-shell .btn-group > .btn:focus {
  background: #f1e1c6;
  border-color: #b89f79;
  color: #32271d;
}

.pgf-bills-shell .btn-group .dropdown-menu {
  border-radius: 12px;
  border: 1px solid #cdbca3;
  box-shadow: 0 10px 26px rgba(40, 34, 25, 0.2);
}

.pgf-bills-shell .btn-group .dropdown-menu > li > a {
  border-radius: 8px;
  margin: 2px 6px;
  padding: 6px 10px;
}

.pgf-bills-shell .btn-group .dropdown-menu > li > a:hover,
.pgf-bills-shell .btn-group .dropdown-menu > li > a:focus {
  background: #eee1cb;
}

.pgf-bills-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.pgf-bills-list-item {
  margin: 0;
  background: linear-gradient(180deg, #faf6ef, #f3e9db);
  border-color: #d9cbb8;
}

.pgf-bills-record {
  line-height: 1.34;
}

.pgf-bills-record-title {
  margin: 0;
  font-size: 1.13rem;
  line-height: 1.26;
}

.pgf-bills-record-title a {
  color: #5d4723;
  text-decoration: none;
}

.pgf-bills-record-title a:hover,
.pgf-bills-record-title a:focus {
  color: #4b381a;
  text-decoration: underline;
}

.pgf-bills-record-meta {
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  color: #6d5f4d;
  font-size: 0.95rem;
}

.pgf-bills-record-type {
  font-weight: 700;
  color: #8a6a34;
}

.pgf-bills-record-sep {
  color: #ad9980;
}

.pgf-bills-record-actors a {
  color: #466735;
}

.pgf-bills-summary {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 8px;
}

.pgf-bills-summary-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #d7c8b4;
  background: #fffaf1;
}

.pgf-bills-summary-item.is-results {
  border-color: #ccb892;
  background: linear-gradient(180deg, #fff4dd, #f8ebd0);
}

.pgf-bills-summary-item.is-vote {
  background: #f9f2e5;
}

.pgf-bills-summary-label {
  color: #6a5a45;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
  font-size: 0.76rem;
  line-height: 1.2;
}

.pgf-bills-summary-value {
  color: #2f2a23;
  font-size: 0.95rem;
  line-height: 1.32;
}

.pgf-bills-summary-item.is-results .pgf-bills-summary-value {
  font-weight: 700;
}

.pgf-bills-vote-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  padding: 4px 9px;
}

.pgf-bills-vote-badge.is-for {
  background: rgba(37, 128, 80, 0.16);
  border-color: rgba(37, 128, 80, 0.28);
  color: #145038;
}

.pgf-bills-vote-badge.is-against {
  background: rgba(168, 70, 70, 0.15);
  border-color: rgba(168, 70, 70, 0.29);
  color: #7b2f2f;
}

.pgf-bills-vote-badge.is-refrained {
  background: rgba(150, 121, 66, 0.16);
  border-color: rgba(150, 121, 66, 0.3);
  color: #6d5220;
}

.pgf-bills-vote-muted {
  color: #6f6354;
  font-size: 0.88rem;
}

.pgf-bills-results-summary,
.pgf-bills-results-detailed {
  color: #4a4034;
}

.pgf-bills-meta-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
}

.pgf-bills-meta-item {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #dfd2bf;
  background: rgba(255, 252, 246, 0.9);
}

.pgf-bills-meta-item.is-wide {
  grid-column: 1 / -1;
}

.pgf-bills-meta-label {
  display: block;
  color: #685843;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.18;
}

.pgf-bills-meta-value {
  display: block;
  margin-top: 4px;
  color: #2f2922;
  font-size: 0.95rem;
  line-height: 1.34;
}

.pgf-bills-state-text {
  font-weight: 700;
}

.pgf-bills-paginator .pagination {
  margin: 0;
}

.pgf-bills-paginator .pagination ul {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.pgf-bills-paginator .pagination ul > li > a {
  border-radius: 8px;
  border: 1px solid #cab799;
  background: #f8efdd;
  color: #4f3d2a;
  text-shadow: none;
}

.pgf-bills-paginator .pagination ul > li.active > a,
.pgf-bills-paginator .pagination ul > li > a:hover {
  background: #eddcbf;
  border-color: #b69d72;
}

.pgf-bills-empty {
  text-align: center;
  color: #635749;
  font-weight: 700;
  background: linear-gradient(180deg, #faf6ee, #f2e7d7);
}

.pgf-bills-show-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.pgf-bills-show-title {
  margin: 0;
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  line-height: 1.24;
}

.pgf-bills-show-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.pgf-bills-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid #cab89d;
  background: #f7ecd8;
  color: #3d3124;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.pgf-bills-action-link:hover,
.pgf-bills-action-link:focus {
  text-decoration: none;
  background: #efdebf;
  border-color: #b89f78;
  color: #2f251b;
}

.pgf-bills-action-link.is-danger {
  border-color: rgba(160, 61, 61, 0.4);
  background: rgba(180, 83, 83, 0.1);
  color: #803636;
}

.pgf-voting-block h3 {
  margin-bottom: 8px;
}

.pgf-bills-guidelines-list,
.pgf-bills-rules-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pgf-bills-guidelines-list li,
.pgf-bills-rules-list li {
  position: relative;
  padding-left: 16px;
  color: #4a3f33;
}

.pgf-bills-guidelines-list li::before,
.pgf-bills-rules-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.53em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #bfa26a;
}

.pgf-bills-guidelines-list li + li,
.pgf-bills-rules-list li + li {
  margin-top: 6px;
}

.pgf-bills-vote-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pgf-bills-vote-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 6px 12px;
  font-weight: 700;
  text-decoration: none;
}

.pgf-bills-vote-button.is-for {
  background: rgba(37, 128, 80, 0.16);
  border-color: rgba(37, 128, 80, 0.28);
  color: #145038;
}

.pgf-bills-vote-button.is-against {
  background: rgba(168, 70, 70, 0.16);
  border-color: rgba(168, 70, 70, 0.28);
  color: #7b2f2f;
}

.pgf-bills-vote-button.is-refrained {
  background: rgba(150, 121, 66, 0.16);
  border-color: rgba(150, 121, 66, 0.3);
  color: #6d5220;
}

.pgf-bills-vote-button:hover,
.pgf-bills-vote-button:focus {
  text-decoration: none;
  filter: brightness(0.96);
}

.pgf-bills-details-list {
  margin: 10px 0 0;
  font-size: 0.94rem;
}

.pgf-bills-details-list li + li {
  margin-top: 6px;
}

.pgf-bills-chronicle-text {
  margin-top: 8px;
  color: #3b3228;
}

.pgf-bills-form-card {
  display: grid;
  gap: 10px;
  background: linear-gradient(180deg, #fcf8f1, #f4e8d6);
}

.pgf-bills-form-description {
  margin: 0;
  color: #514434;
}

.pgf-bills-form-widget + .pgf-bills-form-widget {
  margin-top: 8px;
}

.pgf-bills-form-note {
  margin: 4px 0;
  color: #5e5142;
}

.pgf-bills-rules-footnote {
  margin: 10px 0 0;
  color: #4f4336;
}

.pgf-bills-primary-button {
  border-radius: 10px;
  border: 1px solid #b48d57;
  background: linear-gradient(180deg, #fdf2d8, #ecd19a);
  color: #5a4117;
  font-weight: 700;
  min-height: 36px;
  min-width: 140px;
}

.pgf-bills-primary-button:hover,
.pgf-bills-primary-button:focus {
  background: linear-gradient(180deg, #fff6e2, #e9ca8a);
  color: #4b360f;
}

.pgf-bills-shell .alert {
  margin: 0;
  border-radius: 12px;
  border: 1px solid #d8cab5;
  background: #f9f0e2;
  color: #41372d;
}

.pgf-bills-shell input[type="text"],
.pgf-bills-shell input[type="number"],
.pgf-bills-shell input[type="email"],
.pgf-bills-shell textarea,
.pgf-bills-shell select {
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid #cabca7;
  padding: 6px 10px;
  background: #fffdf9;
}

.pgf-bills-shell input[type="text"]:focus,
.pgf-bills-shell input[type="number"]:focus,
.pgf-bills-shell input[type="email"]:focus,
.pgf-bills-shell textarea:focus,
.pgf-bills-shell select:focus {
  outline: none;
  border-color: #a7906d;
  box-shadow: 0 0 0 3px rgba(167, 144, 109, 0.2);
}

@media (max-width: 1100px) {
  .pgf-bills-header {
    flex-direction: column;
    align-items: stretch;
  }

  .pgf-bills-nav {
    justify-content: flex-start;
  }

  .pgf-bills-show-top {
    flex-direction: column;
    align-items: stretch;
  }

  .pgf-bills-show-actions {
    justify-content: flex-start;
  }

  .pgf-bills-summary,
  .pgf-bills-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .pgf-bills-shell {
    gap: 10px;
  }

  .pgf-bills-shell .easy-block {
    padding: 10px;
    border-radius: 12px;
  }

  .pgf-bills-nav-link {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 0.84rem;
  }

  .pgf-bills-create-dropdown {
    width: 100%;
  }

  .pgf-bills-create-dropdown .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .pgf-bills-dropdown-menu {
    left: 0 !important;
    right: 0 !important;
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .pgf-bills-shell .btn-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .pgf-bills-shell .btn-group,
  .pgf-bills-shell .btn-group .btn,
  .pgf-bills-shell .btn-group .dropdown-toggle {
    width: 100%;
  }

  .pgf-bills-shell .btn-toolbar input[type="text"] {
    width: 100%;
  }
}
