.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-create-new-bill-buttons {
  position: relative;
  isolation: isolate;
  overflow: visible;
  z-index: 0;
  animation: none;
}

.pgf-create-new-bill-buttons::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1px solid rgba(183, 145, 77, 0.48);
  box-shadow:
    0 0 0 0 rgba(183, 145, 77, 0.22),
    0 0 0 0 rgba(255, 230, 171, 0.14);
  opacity: 0.72;
  pointer-events: none;
  z-index: 1;
  animation: pgf-bills-create-oval 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.pgf-create-new-bill-buttons:hover,
.pgf-create-new-bill-buttons:focus {
  animation: none;
}

.pgf-create-new-bill-buttons:hover::before,
.pgf-create-new-bill-buttons:focus::before {
  animation-play-state: paused;
  opacity: 0.95;
  box-shadow:
    0 0 0 3px rgba(183, 145, 77, 0.2),
    0 0 18px rgba(183, 145, 77, 0.28);
}

@keyframes pgf-bills-create-oval {
  0%,
  100% {
    transform: scale(1);
    border-color: rgba(183, 145, 77, 0.42);
    box-shadow:
      0 0 0 0 rgba(183, 145, 77, 0.18),
      0 0 0 0 rgba(255, 230, 171, 0.1);
  }
  45% {
    transform: scale(1.015);
    border-color: rgba(201, 160, 89, 0.82);
    box-shadow:
      0 0 0 4px rgba(183, 145, 77, 0.13),
      0 0 18px rgba(255, 230, 171, 0.26);
  }
  75% {
    transform: scale(1.01);
    border-color: rgba(191, 149, 80, 0.56);
  }
}

.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-list-item.is-accepted {
  background: linear-gradient(180deg, #f1fbf2, #dfefdf);
  border-color: #b8d3b9;
}

.pgf-bills-list-item.is-rejected {
  background: linear-gradient(180deg, #fff0ee, #f7dbd8);
  border-color: #e0b9b4;
}

.pgf-bills-list-item.is-voting {
  position: relative;
  background: linear-gradient(180deg, #fff7e9, #f4e8cb);
  border-color: #d4c09b;
  animation: pgf-bills-voting-glow 3.2s ease-in-out infinite;
}

.pgf-bills-list-item.pgf-bills-voting-pending {
  position: relative;
  animation: pgf-bills-pending-glow 2.9s ease-in-out infinite;
}

.pgf-bills-list-item.pgf-bills-voting-pending::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(190, 151, 80, 0.3);
  pointer-events: none;
  animation: pgf-bills-pending-ring 2.9s ease-in-out infinite;
}

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

@keyframes pgf-bills-pending-glow {
  0%,
  100% {
    box-shadow:
      0 10px 26px rgba(28, 24, 18, 0.12),
      0 2px 8px rgba(28, 24, 18, 0.07),
      0 0 0 rgba(203, 160, 84, 0);
  }
  50% {
    box-shadow:
      0 12px 30px rgba(28, 24, 18, 0.14),
      0 3px 10px rgba(28, 24, 18, 0.09),
      0 0 24px rgba(203, 160, 84, 0.2);
  }
}

@keyframes pgf-bills-voting-glow {
  0%,
  100% {
    box-shadow:
      0 9px 22px rgba(28, 24, 18, 0.1),
      0 2px 7px rgba(28, 24, 18, 0.06),
      0 0 0 rgba(203, 160, 84, 0);
  }
  50% {
    box-shadow:
      0 11px 28px rgba(28, 24, 18, 0.12),
      0 3px 10px rgba(28, 24, 18, 0.08),
      0 0 16px rgba(203, 160, 84, 0.18);
  }
}

@keyframes pgf-bills-pending-ring {
  0%,
  100% {
    border-color: rgba(190, 151, 80, 0.22);
    opacity: 0.45;
  }
  50% {
    border-color: rgba(190, 151, 80, 0.58);
    opacity: 0.9;
  }
}

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

.pgf-bills-record-title a {
  display: inline;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  color: #6a4517;
  font-weight: 700;
  box-shadow: none;
  transition: color 0.16s ease, text-shadow 0.16s ease, background-size 0.16s ease;
  background-image: linear-gradient(
    180deg,
    rgba(168, 127, 56, 0.7),
    rgba(168, 127, 56, 0.7)
  );
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  text-decoration: none;
}

.pgf-bills-record-title a:hover,
.pgf-bills-record-title a:focus {
  color: #4d2f0a;
  text-shadow: 0 1px 0 rgba(255, 250, 236, 0.85);
  background-size: 100% 2px;
  text-decoration: none;
}

.pgf-bills-record-title a:focus-visible {
  outline: 2px solid rgba(168, 127, 56, 0.45);
  outline-offset: 2px;
}

.pgf-bills-voting-pending .pgf-bills-record-title a {
  color: #5c3b13;
  background-image: linear-gradient(
    180deg,
    rgba(188, 141, 62, 0.88),
    rgba(188, 141, 62, 0.88)
  );
  background-size: 100% 2px;
}

.pgf-bills-list-item.is-accepted .pgf-bills-record-title a {
  color: #2f5d34;
  background-image: linear-gradient(180deg, rgba(63, 133, 74, 0.65), rgba(63, 133, 74, 0.65));
}

.pgf-bills-list-item.is-rejected .pgf-bills-record-title a {
  color: #7b2f2f;
  background-image: linear-gradient(180deg, rgba(176, 73, 73, 0.66), rgba(176, 73, 73, 0.66));
}

.pgf-bills-list-item.is-voting .pgf-bills-record-title a {
  color: #6a4517;
  background-image: linear-gradient(180deg, rgba(188, 141, 62, 0.78), rgba(188, 141, 62, 0.78));
}

.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: 10px;
}

.pgf-bills-vote-button {
  --pgf-vote-rgb: 160, 130, 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 7px 14px;
  font-weight: 700;
  font-size: 0.93rem;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  box-shadow:
    0 2px 8px rgba(30, 24, 16, 0.12),
    0 0 0 rgba(var(--pgf-vote-rgb), 0);
  transition: transform 0.14s ease, box-shadow 0.16s ease, filter 0.16s ease;
  animation: pgf-bills-vote-attention 2.4s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.pgf-bills-vote-button.is-for {
  --pgf-vote-rgb: 28, 134, 74;
  background: linear-gradient(180deg, #e7f8ec, #c9ebd4);
  border-color: #5bb07a;
  color: #0f4e2f;
}

.pgf-bills-vote-button.is-against {
  --pgf-vote-rgb: 182, 66, 66;
  background: linear-gradient(180deg, #ffeaea, #f8cbcb);
  border-color: #c86f6f;
  color: #6d2626;
}

.pgf-bills-vote-button.is-refrained {
  --pgf-vote-rgb: 176, 132, 50;
  background: linear-gradient(180deg, #fff7df, #f2dfac);
  border-color: #c4a05b;
  color: #674c18;
}

.pgf-bills-vote-button:hover,
.pgf-bills-vote-button:focus {
  text-decoration: none;
  filter: brightness(1.03);
  transform: translateY(-1px);
  animation-play-state: paused;
  box-shadow:
    0 4px 12px rgba(30, 24, 16, 0.18),
    0 0 18px rgba(var(--pgf-vote-rgb), 0.34);
}

.pgf-bills-vote-button:active {
  transform: translateY(0);
}

@keyframes pgf-bills-vote-attention {
  0%,
  100% {
    box-shadow:
      0 2px 8px rgba(30, 24, 16, 0.12),
      0 0 0 rgba(var(--pgf-vote-rgb), 0);
  }
  50% {
    box-shadow:
      0 3px 10px rgba(30, 24, 16, 0.16),
      0 0 14px rgba(var(--pgf-vote-rgb), 0.26);
  }
}

.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%;
  }
}
